diff --git a/demo-quiz-upm2024/assets/404View.756a0a0c.js b/demo-quiz-upm2024/assets/404View.756a0a0c.js new file mode 100644 index 0000000..69cd5a4 --- /dev/null +++ b/demo-quiz-upm2024/assets/404View.756a0a0c.js @@ -0,0 +1,2 @@ +import{_ as e,o as s,c,b as t}from"./index.6adc36fa.js";const o={},n={class:"404"},_=t("h1",{class:"text-white text-center text-3xl mb-4"},"404",-1),a=t("h1",{class:"text-white text-center text-2xl"},"Page not found",-1),r=[_,a];function i(x,d){return s(),c("div",n,r)}const l=e(o,[["render",i]]);export{l as default}; +//# sourceMappingURL=404View.756a0a0c.js.map diff --git a/demo-quiz-upm2024/assets/404View.756a0a0c.js.map b/demo-quiz-upm2024/assets/404View.756a0a0c.js.map new file mode 100644 index 0000000..d62fc59 --- /dev/null +++ b/demo-quiz-upm2024/assets/404View.756a0a0c.js.map @@ -0,0 +1 @@ +{"version":3,"file":"404View.756a0a0c.js","sources":["../../src/views/404View.vue"],"sourcesContent":["\n"],"names":["_hoisted_1","_hoisted_2","_createElementVNode","_hoisted_4","_sfc_render","_ctx","_cache"],"mappings":"mEAEIA,EAAA,CAAA,MAAA,KAAA,EACAC,EAAAC,EAA+D,KAA3D,CAAA,MAAM,wCAAgD,MAAA,EAAA,0EADDC,EAAA,CACzDF,KAFF,SAAAG,EAAAC,EAAAC,EAAA"} \ No newline at end of file diff --git a/demo-quiz-upm2024/assets/QuizView.1acacd9d.js b/demo-quiz-upm2024/assets/QuizView.1acacd9d.js new file mode 100644 index 0000000..90143ac --- /dev/null +++ b/demo-quiz-upm2024/assets/QuizView.1acacd9d.js @@ -0,0 +1,2 @@ +var ee=(i,s,e)=>{if(!s.has(i))throw TypeError("Cannot "+e)};var Z=(i,s,e)=>(ee(i,s,"read from private field"),e?e.call(i):s.get(i)),te=(i,s,e)=>{if(s.has(i))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(i):s.set(i,e)},ae=(i,s,e,n)=>(ee(i,s,"write to private field"),n?n.call(i,e):s.set(i,e),e);import{J as we,a as xe,_ as q,o as r,c as o,b as a,d as x,e as t,r as ke,f as T,m as be,g as R,w as I,u as Ce,h as Se,i as je,j as d,k as Ee,F as N,l as U,n as m,A as L,p as Ie,v as Ae,q as Me,s as $e,t as ze,Z as se,x as E,y as w,z as ne,B as De,C as Te}from"./index.6adc36fa.js";var M;class re extends we{constructor(e,n){super(n,{batchMaxCount:1});te(this,M,void 0);ae(this,M,async(g,f)=>{const v={method:g,params:f};this.emit("debug",{action:"sendEip1193Request",payload:v});try{const u=await e.request(v);return this.emit("debug",{action:"receiveEip1193Result",result:u}),u}catch(u){const y=new Error(u.message);throw y.code=u.code,y.data=u.data,y.payload=v,this.emit("debug",{action:"receiveEip1193Error",error:y}),y}})}async send(e,n){return await this._start(),await super.send(e,n)}async _send(e){xe(!Array.isArray(e),"EIP-1193 does not support batch request","payload",e);try{const n=await Z(this,M).call(this,e.method,e.params||[]);return[{id:e.id,result:n}]}catch(n){return[{id:e.id,error:{code:n.code,data:n.data,message:n.message}}]}}getRpcError(e,n){switch(n=JSON.parse(JSON.stringify(n)),n.error.code||-1){case 4001:n.error.message=`ethers-user-denied: ${n.error.message}`;break;case 4200:n.error.message=`ethers-unsupported: ${n.error.message}`;break}return super.getRpcError(e,n)}async hasSigner(e){e==null&&(e=0);const n=await this.send("eth_accounts",[]);return typeof e=="number"?n.length>e:(e=e.toLowerCase(),n.filter(g=>g.toLowerCase()===e).length!==0)}async getSigner(e){if(e==null&&(e=0),!await this.hasSigner(e))try{await Z(this,M).call(this,"eth_requestAccounts",[])}catch(n){const g=n.payload;throw this.getRpcError(g,{id:g.id,error:n})}return await super.getSigner(e)}}M=new WeakMap;const Ne={},Re={width:"97",height:"96",viewBox:"0 0 97 96",fill:"none",xmlns:"http://www.w3.org/2000/svg"},qe=a("g",{"clip-path":"url(#clip0_35_4428)"},[a("path",{d:"M48.5 8C26.42 8 8.5 25.92 8.5 48C8.5 70.08 26.42 88 48.5 88C70.58 88 88.5 70.08 88.5 48C88.5 25.92 70.58 8 48.5 8ZM40.5 68L20.5 48L26.14 42.36L40.5 56.68L70.86 26.32L76.5 32L40.5 68Z",fill:"#6efffa"})],-1),Be=a("defs",null,[a("clipPath",{id:"clip0_35_4428"},[a("rect",{width:"96",height:"96",fill:"white",transform:"translate(0.5)"})])],-1),Ve=[qe,Be];function Fe(i,s){return r(),o("svg",Re,Ve)}const Oe=q(Ne,[["render",Fe]]),Ue={class:"success-info"},Le=x({__name:"SuccessInfo",setup(i){return(s,e)=>(r(),o("div",Ue,[t(Oe,{class:"mb-4"}),ke(s.$slots,"default",{},void 0,!0)]))}});const ie=q(Le,[["__scopeId","data-v-fd5ab0e8"]]),Pe={},Qe={width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ke=a("g",{"clip-path":"url(#clip0_56_971)"},[a("path",{d:"M12 7.1333C9.24 7.1333 7 9.3733 7 12.1333C7 14.8933 9.24 17.1333 12 17.1333C14.76 17.1333 17 14.8933 17 12.1333C17 9.3733 14.76 7.1333 12 7.1333ZM12 2.1333C6.48 2.1333 2 6.6133 2 12.1333C2 17.6533 6.48 22.1333 12 22.1333C17.52 22.1333 22 17.6533 22 12.1333C22 6.6133 17.52 2.1333 12 2.1333ZM12 20.1333C7.58 20.1333 4 16.5533 4 12.1333C4 7.7133 7.58 4.1333 12 4.1333C16.42 4.1333 20 7.7133 20 12.1333C20 16.5533 16.42 20.1333 12 20.1333Z",fill:"currentColor"})],-1),Ze=a("defs",null,[a("clipPath",{id:"clip0_56_971"},[a("rect",{width:"24",height:"24",fill:"white",transform:"translate(0 0.133301)"})])],-1),Ge=[Ke,Ze];function He(i,s){return r(),o("svg",Qe,Ge)}const Je=q(Pe,[["render",He]]),We={},Ye={width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Xe=a("g",{"clip-path":"url(#clip0_56_273)"},[a("path",{d:"M12 2.1333C6.48 2.1333 2 6.6133 2 12.1333C2 17.6533 6.48 22.1333 12 22.1333C17.52 22.1333 22 17.6533 22 12.1333C22 6.6133 17.52 2.1333 12 2.1333ZM12 20.1333C7.58 20.1333 4 16.5533 4 12.1333C4 7.7133 7.58 4.1333 12 4.1333C16.42 4.1333 20 7.7133 20 12.1333C20 16.5533 16.42 20.1333 12 20.1333Z",fill:"currentColor"})],-1),et=a("defs",null,[a("clipPath",{id:"clip0_56_273"},[a("rect",{width:"24",height:"24",fill:"white",transform:"translate(0 0.133301)"})])],-1),tt=[Xe,et];function at(i,s){return r(),o("svg",Ye,tt)}const st=q(We,[["render",at]]);var oe=function(){return Math.random().toString(36).substring(2)},$=x({name:"ContentLoader",props:{width:{type:[Number,String]},height:{type:[Number,String]},viewBox:{type:String},preserveAspectRatio:{type:String,default:"xMidYMid meet"},speed:{type:Number,default:2},baseUrl:{type:String,default:""},primaryColor:{type:String,default:"#f9f9f9"},secondaryColor:{type:String,default:"#ecebeb"},primaryOpacity:{type:Number,default:1},secondaryOpacity:{type:Number,default:1},uniqueKey:{type:String},animate:{type:Boolean,default:!0}},setup:function(s){var e=T(function(){return s.uniqueKey?"".concat(s.uniqueKey,"-idClip"):oe()}),n=T(function(){return s.uniqueKey?"".concat(s.uniqueKey,"-idGradient"):oe()}),g=T(function(){var u;return(u=s.width)!==null&&u!==void 0?u:400}),f=T(function(){var u;return(u=s.height)!==null&&u!==void 0?u:130}),v=T(function(){var u;return(u=s.viewBox)!==null&&u!==void 0?u:"0 0 ".concat(g.value," ").concat(f.value)});return{idClip:e,idGradient:n,computedViewBox:v}},render:function(){return t("svg",{width:this.width,height:this.height,viewBox:this.computedViewBox,version:"1.1",preserveAspectRatio:this.preserveAspectRatio},[t("rect",{style:{fill:"url(".concat(this.baseUrl,"#").concat(this.idGradient,")")},"clip-path":"url(".concat(this.baseUrl,"#").concat(this.idClip,")"),x:"0",y:"0",width:"100%",height:"100%"},null),t("defs",null,[t("clipPath",{id:this.idClip},[this.$slots.default?this.$slots.default():t("rect",{x:"0",y:"0",rx:"5",ry:"5",width:"100%",height:"100%"},null)]),t("linearGradient",{id:this.idGradient},[t("stop",{offset:"0%","stop-color":this.primaryColor,"stop-opacity":this.primaryOpacity},[this.animate?t("animate",{attributeName:"offset",values:"-2; 1",dur:"".concat(this.speed,"s"),repeatCount:"indefinite"},null):null]),t("stop",{offset:"50%","stop-color":this.secondaryColor,"stop-opacity":this.secondaryOpacity},[this.animate?t("animate",{attributeName:"offset",values:"-1.5; 1.5",dur:"".concat(this.speed,"s"),repeatCount:"indefinite"},null):null]),t("stop",{offset:"100%","stop-color":this.primaryColor,"stop-opacity":this.primaryOpacity},[this.animate?t("animate",{attributeName:"offset",values:"-1; 2",dur:"".concat(this.speed,"s"),repeatCount:"indefinite"},null):null])])])])}});x(function(i,s){var e=s.attrs;return function(){return t($,e,{default:function(){return[t("circle",{cx:"10",cy:"20",r:"8"},null),t("rect",{x:"25",y:"15",rx:"5",ry:"5",width:"220",height:"10"},null),t("circle",{cx:"10",cy:"50",r:"8"},null),t("rect",{x:"25",y:"45",rx:"5",ry:"5",width:"220",height:"10"},null),t("circle",{cx:"10",cy:"80",r:"8"},null),t("rect",{x:"25",y:"75",rx:"5",ry:"5",width:"220",height:"10"},null),t("circle",{cx:"10",cy:"110",r:"8"},null),t("rect",{x:"25",y:"105",rx:"5",ry:"5",width:"220",height:"10"},null)]}})}});x(function(i,s){var e=s.attrs;return function(){return t($,e,{default:function(){return[t("rect",{x:"0",y:"0",rx:"3",ry:"3",width:"70",height:"10"},null),t("rect",{x:"80",y:"0",rx:"3",ry:"3",width:"100",height:"10"},null),t("rect",{x:"190",y:"0",rx:"3",ry:"3",width:"10",height:"10"},null),t("rect",{x:"15",y:"20",rx:"3",ry:"3",width:"130",height:"10"},null),t("rect",{x:"155",y:"20",rx:"3",ry:"3",width:"130",height:"10"},null),t("rect",{x:"15",y:"40",rx:"3",ry:"3",width:"90",height:"10"},null),t("rect",{x:"115",y:"40",rx:"3",ry:"3",width:"60",height:"10"},null),t("rect",{x:"185",y:"40",rx:"3",ry:"3",width:"60",height:"10"},null),t("rect",{x:"0",y:"60",rx:"3",ry:"3",width:"30",height:"10"},null)]}})}});x(function(i,s){var e=s.attrs;return function(){return t($,e,{default:function(){return[t("rect",{x:"70",y:"15",rx:"4",ry:"4",width:"117",height:"6.4"},null),t("rect",{x:"70",y:"35",rx:"3",ry:"3",width:"85",height:"6.4"},null),t("rect",{x:"0",y:"80",rx:"3",ry:"3",width:"350",height:"6.4"},null),t("rect",{x:"0",y:"100",rx:"3",ry:"3",width:"380",height:"6.4"},null),t("rect",{x:"0",y:"120",rx:"3",ry:"3",width:"201",height:"6.4"},null),t("circle",{cx:"30",cy:"30",r:"30"},null)]}})}});x(function(i,s){var e=s.attrs;return function(){return t($,e,{default:function(){return[t("rect",{x:"0",y:"0",rx:"3",ry:"3",width:"250",height:"10"},null),t("rect",{x:"20",y:"20",rx:"3",ry:"3",width:"220",height:"10"},null),t("rect",{x:"20",y:"40",rx:"3",ry:"3",width:"170",height:"10"},null),t("rect",{x:"0",y:"60",rx:"3",ry:"3",width:"250",height:"10"},null),t("rect",{x:"20",y:"80",rx:"3",ry:"3",width:"200",height:"10"},null),t("rect",{x:"20",y:"100",rx:"3",ry:"3",width:"80",height:"10"},null)]}})}});x(function(i,s){var e=s.attrs;return function(){return t($,be(e,{viewBox:"0 0 400 480"}),{default:function(){return[t("circle",{cx:"30",cy:"30",r:"30"},null),t("rect",{x:"75",y:"13",rx:"4",ry:"4",width:"100",height:"13"},null),t("rect",{x:"75",y:"37",rx:"4",ry:"4",width:"50",height:"8"},null),t("rect",{x:"0",y:"70",rx:"5",ry:"5",width:"400",height:"400"},null)]}})}});const nt=a("rect",{x:"5",y:"10",rx:"3",ry:"3",width:"361",height:"28"},null,-1),rt=a("rect",{x:"5",y:"26",rx:"3",ry:"3",width:"52",height:"6"},null,-1),it=a("rect",{x:"5",y:"61",rx:"3",ry:"3",width:"410",height:"16"},null,-1),ot=a("rect",{x:"680",y:"10",rx:"0",ry:"0",width:"80",height:"19"},null,-1),lt=x({__name:"QuizDetailsLoader",setup(i){return(s,e)=>(r(),R(Ce($),{viewBox:"0 0 768 124",speed:2,primaryColor:"white",secondaryColor:"#e3e3e3"},{default:I(()=>[nt,rt,it,ot]),_:1}))}}),k=i=>(De("data-v-83d1f406"),i=i(),Te(),i),ct={key:0,class:"text-red-500 px-3 mt-5 rounded-xl-sm"},ut=k(()=>a("span",{class:"font-bold"},"Error:",-1)),dt={key:1},ht={key:0},pt={style:{cursor:"default"},class:"text-white text-base mb-5"},gt={key:0},ft={key:0},vt={key:1},_t={class:"flex gap-2"},mt={class:"align-middle"},yt={class:"leading-6 normal-case text-left"},wt={key:0,class:"text-red-500 px-3 mt-5 rounded-xl-sm"},xt=k(()=>a("span",{class:"font-bold"},"Error:",-1)),kt={class:"flex justify-between items-start mt-6 mb-20"},bt={key:0},Ct={key:1},St={key:2,class:"pt-5"},jt=k(()=>a("h2",{class:"text-2xl text-white text-base mb-5 mt-10"}," Kviz ste uspe\u0161no re\u0161ili! ",-1)),Et=k(()=>a("p",{class:"text-white text-base mb-5 mt-10"},[w(" \u010Ce \u017Eelite prejeti nagrado, v spodnje polje vpi\u0161ite naslov va\u0161e kriptodenarnice. Kovan\u010Dke ROSE boste prejeli na verigi "),a("a",{href:"https://docs.oasis.io/dapp/sapphire/#chain-information",target:"_blank"},"Oasis Sapphire Mainnet"),w(". ")],-1)),It={class:"form-group"},At=k(()=>a("label",{for:"addressText",class:"peer-focus:text-primaryDark peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-5"},[w(" Va\u0161 naslov (0x...): "),a("span",{class:"text-red-500"},"*")],-1)),Mt=Me('
Kaj je kriptodenarnica?

Kriptodenarnica hrani va\u0161 zasebni klju\u010D, s katerim podpisujete razli\u010Dne transakcije na omre\u017Eju, na primer za po\u0161iljanje va\u0161ega virtualnega denarja. Denarnica je lahko v obliki samostojne aplikacije na ra\u010Dunalniku ali telefonu, kot raz\u0161iritev za spletni brskalnik, lahko pa je samostojna naprava, saj je s tem najbolj odporna na zlonamerno kodo, ki bi lahko odtujila va\u0161 zasebni klju\u010D.

\u010Ce ste za\u010Detnik in zasebnega klju\u010Da \u0161e nimate, predlagamo uporabo denarnice Metamask. Po namestitvi ne pozabite povezati denarnice z omre\u017Ejem Oasis Sapphire. To najla\u017Eje storite s pritiskom na enega od gumbov "Add to Metamask" v seznamu dostopnih to\u010Dk Mainnet.

',1),$t={key:0,class:"normal-case"},zt={key:1,class:"normal-case"},Dt={key:3},Tt={key:0},Nt=k(()=>a("h2",{class:"text-white text-3xl mb-10"}," Congratulations, you received an NFT: ",-1)),Rt={class:"featured-container"},qt=["src"],Bt={class:"text-white"},Vt={class:"text-white mb-10"},Ft=k(()=>a("h3",{class:"text-white text-3xl mb-10"},"Hvala za sodelovanje v nagradnem kvizu!",-1)),Ot={key:1},Ut={key:0,class:"normal-case"},Lt={key:1,class:"normal-case"},Pt=k(()=>a("p",{class:"text-white"},[w(" Vabljeni, da sprogramirate "),a("a",{href:"https://docs.oasis.io/dapp/sapphire/quickstart",target:"_blank"},"aplikacijo na omre\u017Eju Oasis Sapphire.")],-1)),Qt=k(()=>a("p",{class:"text-white"},[a("br"),w(" \u010Ce potrebujete pomo\u010D ali pa \u017Eelite svoje znanje deliti ostalim, se pridru\u017Eite slovenski skupnosti Oasis na "),a("a",{href:"https://oasis.io/discord",target:"_blank"},"Discord kanalu #slovenia \u{1F1F8}\u{1F1EE} "),w(". ")],-1)),Kt=x({__name:"QuizView",props:{coupon:null},setup(i){const s=i;console.log("Debug: QuizView");const e=Se(),n=je(),g=d(null),f=d("");d(0),console.log("Debug: QuizView loaded variables.");const v=d([]),u=d(!1),y=d(!1),G=d(!1),z=d(!1),B=d([]),b=d([]),H=d(!1),P=d([]),A=d(""),Q=d(!1),J=d(!1),W=d(!1),K=d(!1),D=d(!1);d(!1),d(!1);const C=d([]),V=d("");console.log("Debug: QuizView loaded variables 2.");function F(l,h){v.value=Array(),v.value.push(`${h}`),console.error(l)}async function le(l,h){console.log("Debug: Choice clicked"),b.value[l]=BigInt(h);let c=!0;for(let p=0;p{console.log("Debug: Adding NFT to MetaMask");try{if(z.value=!0,typeof window.ethereum<"u"){await window.ethereum.request({method:"eth_requestAccounts"});const h=await new re(window.ethereum).getSigner(),c=C.value[C.value.length-1];console.log(c),console.log("Requesting account access");const p=await window.ethereum.request({method:"eth_chainId"}),S="0x5afe",_="https://sapphire.oasis.io",j={}.VITE_CHAIN_NAME;p!==S&&await window.ethereum.request({method:"wallet_addEthereumChain",params:[{chainId:S,rpcUrls:[_],chainName:j,nativeCurrency:{name:"ROSE",symbol:"ROSE",decimals:18}}]}),await window.ethereum.request({method:"wallet_watchAsset",params:{type:"ERC721",options:{address:f.value,tokenId:V.value}}}),console.log("NFT added to MetaMask successfully")}else console.error("MetaMask is not installed")}catch(l){console.error("Error adding NFT to MetaMask:",l)}finally{z.value=!1}},ge=()=>{Q.value=!0,setTimeout(()=>{Q.value=!1},1e3)};return Ee(async()=>{await ue()}),(l,h)=>(r(),o(N,null,[v.value.length>0?(r(),o("div",ct,[ut,(r(!0),o(N,null,U(v.value,c=>(r(),o("div",{key:c},E(c),1))),128))])):m("",!0),J.value&&!K.value?(r(),o("section",dt,[B.value?(r(),o("div",ht,[a("form",{onSubmit:Y},[(r(!0),o(N,null,U(Object.entries(B.value),([c,p])=>(r(),o("fieldset",{class:"mb-5",key:c},[a("p",pt,[w(E(parseInt(c)+1)+". "+E(p.question)+" ",1),W.value?(r(),o("span",gt,[P.value[parseInt(c)]?(r(),o("span",ft,"\u2705")):m("",!0),P.value[parseInt(c)]?m("",!0):(r(),o("span",vt,"\u274C"))])):m("",!0)]),(r(!0),o(N,null,U(p.choices,(S,_)=>(r(),R(L,{key:_,class:ne([{selected:b.value[parseInt(c)]===BigInt(_),"pointer-events-none":u.value},"choice-btn mb-2 w-full"]),variant:"choice",onClick:j=>le(parseInt(c),_)},{default:I(()=>[a("span",_t,[a("div",mt,[b.value[parseInt(c)]===BigInt(_)?(r(),R(Je,{key:0})):(r(),R(st,{key:1}))]),a("span",yt,E(S),1)])]),_:2},1032,["class","onClick"]))),128))]))),128)),v.value.length>0?(r(),o("div",wt,[xt,(r(!0),o(N,null,U(v.value,c=>(r(),o("div",{key:c},E(c),1))),128))])):m("",!0),a("div",kt,[t(L,{type:"submit",variant:"primary",disabled:u.value||!H.value,onClick:Y},{default:I(()=>[y.value?(r(),o("span",bt,"Preverjam odgovore\u2026")):(r(),o("span",Ct,"Preveri odgovore"))]),_:1},8,["disabled"])])],32)])):(r(),R(lt,{key:1}))])):m("",!0),K.value&&!D.value?(r(),o("section",St,[t(ie,null,{default:I(()=>[jt]),_:1}),a("section",null,[Et,a("form",{onSubmit:he},[a("div",It,[Ie(a("input",{type:"text",id:"addressText",class:"peer",placeholder:" ","onUpdate:modelValue":h[0]||(h[0]=c=>A.value=c),pattern:"^(0x)?[0-9a-fA-F]{40}$",required:""},null,512),[[Ae,A.value]]),At]),Mt,t(L,{class:"mb-20 no-capitalize",type:"submit",variant:"primary",disabled:z.value},{default:I(()=>[z.value?(r(),o("span",$t,"Generiram transakcijo in po\u0161iljam nagrado\u2026")):(r(),o("span",zt,"Prejmi nagrado"))]),_:1},8,["disabled"])],32)])])):m("",!0),D.value?(r(),o("section",Dt,[t(ie,{class:"mb-20"},{default:I(()=>[f.value!=="0x0000000000000000000000000000000000000000"?(r(),o("section",Tt,[Nt,a("div",Rt,[C.value.length>0?(r(),o("img",{src:C.value[C.value.length-1],key:C.value[C.value.length-1],alt:"Featured",class:ne(["featured-image",{"animate-spin":Q.value}]),onClick:ge},null,10,qt)):m("",!0)]),a("p",Bt,[w(" Token ID: "),a("strong",null,E(V.value),1)]),a("p",Vt,[w(" NFT Contract Address: "),a("strong",null,E(f.value),1)])])):m("",!0),Ft,f.value!=="0x0000000000000000000000000000000000000000"?(r(),o("section",Ot,[t(L,{class:"mb-20 no-capitalize",type:"submit",variant:"primary",onClick:pe},{default:I(()=>[z.value?(r(),o("span",Ut,"Adding NFT to MetaMask...")):(r(),o("span",Lt,"Add reward to wallet"))]),_:1})])):m("",!0),Pt,Qt]),_:1})])):m("",!0)],64))}});const Jt=q(Kt,[["__scopeId","data-v-83d1f406"]]);export{Jt as default}; +//# sourceMappingURL=QuizView.1acacd9d.js.map diff --git a/demo-quiz-upm2024/assets/QuizView.1acacd9d.js.map b/demo-quiz-upm2024/assets/QuizView.1acacd9d.js.map new file mode 100644 index 0000000..70bc8b5 --- /dev/null +++ b/demo-quiz-upm2024/assets/QuizView.1acacd9d.js.map @@ -0,0 +1 @@ +{"version":3,"file":"QuizView.1acacd9d.js","sources":["../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/providers/provider-browser.js","../../src/components/SuccessIcon.vue","../../src/components/CheckedIcon.vue","../../src/components/UncheckedIcon.vue","../../../node_modules/.pnpm/vue-content-loader@2.0.1_vue@3.2.45/node_modules/vue-content-loader/dist/vue-content-loader.es.js","../../src/views/QuizView.vue"],"sourcesContent":["import { assertArgument } from \"../utils/index.js\";\nimport { JsonRpcApiPollingProvider } from \"./provider-jsonrpc.js\";\n;\n/**\n * A **BrowserProvider** is intended to wrap an injected provider which\n * adheres to the [[link-eip-1193]] standard, which most (if not all)\n * currently do.\n */\nexport class BrowserProvider extends JsonRpcApiPollingProvider {\n #request;\n /**\n * Connnect to the %%ethereum%% provider, optionally forcing the\n * %%network%%.\n */\n constructor(ethereum, network) {\n super(network, { batchMaxCount: 1 });\n this.#request = async (method, params) => {\n const payload = { method, params };\n this.emit(\"debug\", { action: \"sendEip1193Request\", payload });\n try {\n const result = await ethereum.request(payload);\n this.emit(\"debug\", { action: \"receiveEip1193Result\", result });\n return result;\n }\n catch (e) {\n const error = new Error(e.message);\n error.code = e.code;\n error.data = e.data;\n error.payload = payload;\n this.emit(\"debug\", { action: \"receiveEip1193Error\", error });\n throw error;\n }\n };\n }\n async send(method, params) {\n await this._start();\n return await super.send(method, params);\n }\n async _send(payload) {\n assertArgument(!Array.isArray(payload), \"EIP-1193 does not support batch request\", \"payload\", payload);\n try {\n const result = await this.#request(payload.method, payload.params || []);\n return [{ id: payload.id, result }];\n }\n catch (e) {\n return [{\n id: payload.id,\n error: { code: e.code, data: e.data, message: e.message }\n }];\n }\n }\n getRpcError(payload, error) {\n error = JSON.parse(JSON.stringify(error));\n // EIP-1193 gives us some machine-readable error codes, so rewrite\n // them into \n switch (error.error.code || -1) {\n case 4001:\n error.error.message = `ethers-user-denied: ${error.error.message}`;\n break;\n case 4200:\n error.error.message = `ethers-unsupported: ${error.error.message}`;\n break;\n }\n return super.getRpcError(payload, error);\n }\n /**\n * Resolves to ``true`` if the provider manages the %%address%%.\n */\n async hasSigner(address) {\n if (address == null) {\n address = 0;\n }\n const accounts = await this.send(\"eth_accounts\", []);\n if (typeof (address) === \"number\") {\n return (accounts.length > address);\n }\n address = address.toLowerCase();\n return accounts.filter((a) => (a.toLowerCase() === address)).length !== 0;\n }\n async getSigner(address) {\n if (address == null) {\n address = 0;\n }\n if (!(await this.hasSigner(address))) {\n try {\n //const resp = \n await this.#request(\"eth_requestAccounts\", []);\n //console.log(\"RESP\", resp);\n }\n catch (error) {\n const payload = error.payload;\n throw this.getRpcError(payload, { id: payload.id, error });\n }\n }\n return await super.getSigner(address);\n }\n}\n//# sourceMappingURL=provider-browser.js.map","\n\n\n\n\n","\n\n\n\n\n","\n\n\n\n\n","import { defineComponent, computed, createVNode, mergeProps } from 'vue';\n\nvar uid = (function () {\n return Math.random().toString(36).substring(2);\n});\n\nvar ContentLoader = defineComponent({\n name: 'ContentLoader',\n props: {\n width: {\n type: [Number, String]\n },\n height: {\n type: [Number, String]\n },\n viewBox: {\n type: String\n },\n preserveAspectRatio: {\n type: String,\n \"default\": 'xMidYMid meet'\n },\n speed: {\n type: Number,\n \"default\": 2\n },\n baseUrl: {\n type: String,\n \"default\": ''\n },\n primaryColor: {\n type: String,\n \"default\": '#f9f9f9'\n },\n secondaryColor: {\n type: String,\n \"default\": '#ecebeb'\n },\n primaryOpacity: {\n type: Number,\n \"default\": 1\n },\n secondaryOpacity: {\n type: Number,\n \"default\": 1\n },\n uniqueKey: {\n type: String\n },\n animate: {\n type: Boolean,\n \"default\": true\n }\n },\n setup: function setup(props) {\n var idClip = computed(function () {\n return props.uniqueKey ? \"\".concat(props.uniqueKey, \"-idClip\") : uid();\n });\n var idGradient = computed(function () {\n return props.uniqueKey ? \"\".concat(props.uniqueKey, \"-idGradient\") : uid();\n });\n var width = computed(function () {\n var _a;\n\n return (_a = props.width) !== null && _a !== void 0 ? _a : 400;\n });\n var height = computed(function () {\n var _a;\n\n return (_a = props.height) !== null && _a !== void 0 ? _a : 130;\n });\n var computedViewBox = computed(function () {\n var _a;\n\n return (_a = props.viewBox) !== null && _a !== void 0 ? _a : \"0 0 \".concat(width.value, \" \").concat(height.value);\n });\n return {\n idClip: idClip,\n idGradient: idGradient,\n computedViewBox: computedViewBox\n };\n },\n render: function render() {\n return createVNode(\"svg\", {\n \"width\": this.width,\n \"height\": this.height,\n \"viewBox\": this.computedViewBox,\n \"version\": \"1.1\",\n \"preserveAspectRatio\": this.preserveAspectRatio\n }, [createVNode(\"rect\", {\n \"style\": {\n fill: \"url(\".concat(this.baseUrl, \"#\").concat(this.idGradient, \")\")\n },\n \"clip-path\": \"url(\".concat(this.baseUrl, \"#\").concat(this.idClip, \")\"),\n \"x\": \"0\",\n \"y\": \"0\",\n \"width\": \"100%\",\n \"height\": \"100%\"\n }, null), createVNode(\"defs\", null, [createVNode(\"clipPath\", {\n \"id\": this.idClip\n }, [this.$slots[\"default\"] ? this.$slots[\"default\"]() : createVNode(\"rect\", {\n \"x\": \"0\",\n \"y\": \"0\",\n \"rx\": \"5\",\n \"ry\": \"5\",\n \"width\": \"100%\",\n \"height\": \"100%\"\n }, null)]), createVNode(\"linearGradient\", {\n \"id\": this.idGradient\n }, [createVNode(\"stop\", {\n \"offset\": \"0%\",\n \"stop-color\": this.primaryColor,\n \"stop-opacity\": this.primaryOpacity\n }, [this.animate ? createVNode(\"animate\", {\n \"attributeName\": \"offset\",\n \"values\": \"-2; 1\",\n \"dur\": \"\".concat(this.speed, \"s\"),\n \"repeatCount\": \"indefinite\"\n }, null) : null]), createVNode(\"stop\", {\n \"offset\": \"50%\",\n \"stop-color\": this.secondaryColor,\n \"stop-opacity\": this.secondaryOpacity\n }, [this.animate ? createVNode(\"animate\", {\n \"attributeName\": \"offset\",\n \"values\": \"-1.5; 1.5\",\n \"dur\": \"\".concat(this.speed, \"s\"),\n \"repeatCount\": \"indefinite\"\n }, null) : null]), createVNode(\"stop\", {\n \"offset\": \"100%\",\n \"stop-color\": this.primaryColor,\n \"stop-opacity\": this.primaryOpacity\n }, [this.animate ? createVNode(\"animate\", {\n \"attributeName\": \"offset\",\n \"values\": \"-1; 2\",\n \"dur\": \"\".concat(this.speed, \"s\"),\n \"repeatCount\": \"indefinite\"\n }, null) : null])])])]);\n }\n});\n\nvar BulletListLoader = defineComponent(function (props, _a) {\n var attrs = _a.attrs;\n return function () {\n return createVNode(ContentLoader, attrs, {\n \"default\": function _default() {\n return [createVNode(\"circle\", {\n \"cx\": \"10\",\n \"cy\": \"20\",\n \"r\": \"8\"\n }, null), createVNode(\"rect\", {\n \"x\": \"25\",\n \"y\": \"15\",\n \"rx\": \"5\",\n \"ry\": \"5\",\n \"width\": \"220\",\n \"height\": \"10\"\n }, null), createVNode(\"circle\", {\n \"cx\": \"10\",\n \"cy\": \"50\",\n \"r\": \"8\"\n }, null), createVNode(\"rect\", {\n \"x\": \"25\",\n \"y\": \"45\",\n \"rx\": \"5\",\n \"ry\": \"5\",\n \"width\": \"220\",\n \"height\": \"10\"\n }, null), createVNode(\"circle\", {\n \"cx\": \"10\",\n \"cy\": \"80\",\n \"r\": \"8\"\n }, null), createVNode(\"rect\", {\n \"x\": \"25\",\n \"y\": \"75\",\n \"rx\": \"5\",\n \"ry\": \"5\",\n \"width\": \"220\",\n \"height\": \"10\"\n }, null), createVNode(\"circle\", {\n \"cx\": \"10\",\n \"cy\": \"110\",\n \"r\": \"8\"\n }, null), createVNode(\"rect\", {\n \"x\": \"25\",\n \"y\": \"105\",\n \"rx\": \"5\",\n \"ry\": \"5\",\n \"width\": \"220\",\n \"height\": \"10\"\n }, null)];\n }\n });\n };\n});\n\nvar CodeLoader = defineComponent(function (props, _a) {\n var attrs = _a.attrs;\n return function () {\n return createVNode(ContentLoader, attrs, {\n \"default\": function _default() {\n return [createVNode(\"rect\", {\n \"x\": \"0\",\n \"y\": \"0\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"70\",\n \"height\": \"10\"\n }, null), createVNode(\"rect\", {\n \"x\": \"80\",\n \"y\": \"0\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"100\",\n \"height\": \"10\"\n }, null), createVNode(\"rect\", {\n \"x\": \"190\",\n \"y\": \"0\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"10\",\n \"height\": \"10\"\n }, null), createVNode(\"rect\", {\n \"x\": \"15\",\n \"y\": \"20\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"130\",\n \"height\": \"10\"\n }, null), createVNode(\"rect\", {\n \"x\": \"155\",\n \"y\": \"20\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"130\",\n \"height\": \"10\"\n }, null), createVNode(\"rect\", {\n \"x\": \"15\",\n \"y\": \"40\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"90\",\n \"height\": \"10\"\n }, null), createVNode(\"rect\", {\n \"x\": \"115\",\n \"y\": \"40\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"60\",\n \"height\": \"10\"\n }, null), createVNode(\"rect\", {\n \"x\": \"185\",\n \"y\": \"40\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"60\",\n \"height\": \"10\"\n }, null), createVNode(\"rect\", {\n \"x\": \"0\",\n \"y\": \"60\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"30\",\n \"height\": \"10\"\n }, null)];\n }\n });\n };\n});\n\nvar FacebookLoader = defineComponent(function (props, _a) {\n var attrs = _a.attrs;\n return function () {\n return createVNode(ContentLoader, attrs, {\n \"default\": function _default() {\n return [createVNode(\"rect\", {\n \"x\": \"70\",\n \"y\": \"15\",\n \"rx\": \"4\",\n \"ry\": \"4\",\n \"width\": \"117\",\n \"height\": \"6.4\"\n }, null), createVNode(\"rect\", {\n \"x\": \"70\",\n \"y\": \"35\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"85\",\n \"height\": \"6.4\"\n }, null), createVNode(\"rect\", {\n \"x\": \"0\",\n \"y\": \"80\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"350\",\n \"height\": \"6.4\"\n }, null), createVNode(\"rect\", {\n \"x\": \"0\",\n \"y\": \"100\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"380\",\n \"height\": \"6.4\"\n }, null), createVNode(\"rect\", {\n \"x\": \"0\",\n \"y\": \"120\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"201\",\n \"height\": \"6.4\"\n }, null), createVNode(\"circle\", {\n \"cx\": \"30\",\n \"cy\": \"30\",\n \"r\": \"30\"\n }, null)];\n }\n });\n };\n});\n\nvar ListLoader = defineComponent(function (props, _a) {\n var attrs = _a.attrs;\n return function () {\n return createVNode(ContentLoader, attrs, {\n \"default\": function _default() {\n return [createVNode(\"rect\", {\n \"x\": \"0\",\n \"y\": \"0\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"250\",\n \"height\": \"10\"\n }, null), createVNode(\"rect\", {\n \"x\": \"20\",\n \"y\": \"20\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"220\",\n \"height\": \"10\"\n }, null), createVNode(\"rect\", {\n \"x\": \"20\",\n \"y\": \"40\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"170\",\n \"height\": \"10\"\n }, null), createVNode(\"rect\", {\n \"x\": \"0\",\n \"y\": \"60\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"250\",\n \"height\": \"10\"\n }, null), createVNode(\"rect\", {\n \"x\": \"20\",\n \"y\": \"80\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"200\",\n \"height\": \"10\"\n }, null), createVNode(\"rect\", {\n \"x\": \"20\",\n \"y\": \"100\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"80\",\n \"height\": \"10\"\n }, null)];\n }\n });\n };\n});\n\nvar InstagramLoader = defineComponent(function (props, _a) {\n var attrs = _a.attrs;\n return function () {\n return createVNode(ContentLoader, mergeProps(attrs, {\n \"viewBox\": \"0 0 400 480\"\n }), {\n \"default\": function _default() {\n return [createVNode(\"circle\", {\n \"cx\": \"30\",\n \"cy\": \"30\",\n \"r\": \"30\"\n }, null), createVNode(\"rect\", {\n \"x\": \"75\",\n \"y\": \"13\",\n \"rx\": \"4\",\n \"ry\": \"4\",\n \"width\": \"100\",\n \"height\": \"13\"\n }, null), createVNode(\"rect\", {\n \"x\": \"75\",\n \"y\": \"37\",\n \"rx\": \"4\",\n \"ry\": \"4\",\n \"width\": \"50\",\n \"height\": \"8\"\n }, null), createVNode(\"rect\", {\n \"x\": \"0\",\n \"y\": \"70\",\n \"rx\": \"5\",\n \"ry\": \"5\",\n \"width\": \"400\",\n \"height\": \"400\"\n }, null)];\n }\n });\n };\n});\n\nexport { BulletListLoader, CodeLoader, ContentLoader, FacebookLoader, InstagramLoader, ListLoader };\n","\n\n\n\n\n\n"],"names":["BrowserProvider","JsonRpcApiPollingProvider","ethereum","network","__privateAdd","_request","__privateSet","method","params","payload","result","e","error","assertArgument","__privateGet","address","accounts","a","_hoisted_1","_createElementVNode","_hoisted_4","_hoisted_2","_sfc_render","_ctx","_cache","uid","ContentLoader","defineComponent","props","idClip","computed","idGradient","width","_a","height","computedViewBox","createVNode","attrs","mergeProps","quiz","useQuiz","eth","useEthereumStore","nft","ref","addrNFT","errors","isLoading","isCheckingAnswers","isClaimingReward","isAddingReward","questions","selectedChoices","allQuestionsAnswered","correctVector","isSpinning","couponValid","answersChecked","answersCorrect","rewardClaimed","userImages","tokenId","handleError","errorMessage","onChoiceClick","qId","choiceId","allAns","i","doCheckAnswers","cv","gaslessTx","ethers.ZeroAddress","allCorrect","fetchQuestions","useNFT","fetchImages","tokens","modifiedTokenURI","metadata","claimReward","TIMEOUT_LIMIT","timeout","receipt","gaslessKeyPair","ethers.getAddress","chainId","expectedChainId","rpcUrl","chainName","signer","ethers.BrowserProvider","quizWithSigner","tx_hash","checkAnswers","addNFTToMetaMask","imageUrl","handleClick","onMounted"],"mappings":"unBAQO,MAAMA,WAAwBC,EAA0B,CAM3D,YAAYC,EAAUC,EAAS,CAC3B,MAAMA,EAAS,CAAE,cAAe,CAAG,CAAA,EANvCC,GAAA,KAAAC,EAAA,QAOIC,GAAA,KAAKD,EAAW,MAAOE,EAAQC,IAAW,CACtC,MAAMC,EAAU,CAAE,OAAAF,EAAQ,OAAAC,GAC1B,KAAK,KAAK,QAAS,CAAE,OAAQ,qBAAsB,QAAAC,CAAO,CAAE,EAC5D,GAAI,CACA,MAAMC,EAAS,MAAMR,EAAS,QAAQO,CAAO,EAC7C,YAAK,KAAK,QAAS,CAAE,OAAQ,uBAAwB,OAAAC,CAAM,CAAE,EACtDA,CACV,OACMC,EAAP,CACI,MAAMC,EAAQ,IAAI,MAAMD,EAAE,OAAO,EACjC,MAAAC,EAAM,KAAOD,EAAE,KACfC,EAAM,KAAOD,EAAE,KACfC,EAAM,QAAUH,EAChB,KAAK,KAAK,QAAS,CAAE,OAAQ,sBAAuB,MAAAG,CAAK,CAAE,EACrDA,CACT,CACb,EACK,CACD,MAAM,KAAKL,EAAQC,EAAQ,CACvB,aAAM,KAAK,SACJ,MAAM,MAAM,KAAKD,EAAQC,CAAM,CACzC,CACD,MAAM,MAAMC,EAAS,CACjB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,GAAe,CAAA,CACtB"} \ No newline at end of file diff --git a/demo-quiz-upm2024/assets/QuizView.b4b14ed4.css b/demo-quiz-upm2024/assets/QuizView.b4b14ed4.css new file mode 100644 index 0000000..54957a7 --- /dev/null +++ b/demo-quiz-upm2024/assets/QuizView.b4b14ed4.css @@ -0,0 +1 @@ +.success-info[data-v-fd5ab0e8]{align-items:center;display:flex;flex-direction:column;margin-top:5vw}.error[data-v-83d1f406]{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))} diff --git a/demo-quiz-upm2024/assets/favicon.567acd67.svg b/demo-quiz-upm2024/assets/favicon.567acd67.svg new file mode 100644 index 0000000..b932afa --- /dev/null +++ b/demo-quiz-upm2024/assets/favicon.567acd67.svg @@ -0,0 +1,19 @@ + + + + + + + + + diff --git a/demo-quiz-upm2024/assets/index.0334608a.css b/demo-quiz-upm2024/assets/index.0334608a.css new file mode 100644 index 0000000..b420729 --- /dev/null +++ b/demo-quiz-upm2024/assets/index.0334608a.css @@ -0,0 +1 @@ +/*! tailwindcss v3.2.4 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.pointer-events-none{pointer-events:none}.sticky{position:sticky}.top-0{top:0}.m-auto{margin:auto}.mx-auto{margin-left:auto;margin-right:auto}.mt-3{margin-top:.75rem}.mr-3{margin-right:.75rem}.mb-4{margin-bottom:1rem}.mt-5{margin-top:1.25rem}.mb-5{margin-bottom:1.25rem}.mb-2{margin-bottom:.5rem}.mt-6{margin-top:1.5rem}.mb-20{margin-bottom:5rem}.mt-10{margin-top:2.5rem}.mb-3{margin-bottom:.75rem}.ml-3\.5{margin-left:.875rem}.ml-3{margin-left:.75rem}.mb-10{margin-bottom:2.5rem}.inline-block{display:inline-block}.flex{display:flex}.h-6{height:1.5rem}.w-full{width:100%}.max-w-screen-md{max-width:768px}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.border{border-width:1px}.border-primary{--tw-border-opacity:1;border-color:rgb(1 15 152/var(--tw-border-opacity))}.border-black{--tw-border-opacity:1;border-color:rgb(0 0 0/var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.bg-primary{--tw-bg-opacity:1;background-color:rgb(1 15 152/var(--tw-bg-opacity))}.bg-secondary{--tw-bg-opacity:1;background-color:rgb(110 255 250/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-primaryMedium{--tw-bg-opacity:1;background-color:rgb(62 200 255/var(--tw-bg-opacity))}.p-2{padding:.5rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.font-normal{font-weight:400}.font-bold{font-weight:700}.capitalize{text-transform:capitalize}.normal-case{text-transform:none}.leading-6{line-height:1.5rem}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-mediumDark{--tw-text-opacity:1;color:rgb(86 91 97/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}a{text-decoration-line:underline}input{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity));border-width:1px;display:block;font-size:1.875rem;line-height:2.25rem;margin:1rem auto;padding:.25rem}.form-group{margin-bottom:1.5rem;position:relative}.form-group input,textarea{--tw-bg-opacity:1;--tw-text-opacity:1;-webkit-appearance:none;appearance:none;background-color:rgb(255 255 255/var(--tw-bg-opacity));color:rgb(0 0 0/var(--tw-text-opacity));display:block;font-size:1rem;line-height:1.5rem;padding:1.5rem 1.25rem;width:100%}.form-group input:focus,textarea:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000);outline:2px solid transparent;outline-offset:2px}.form-group label{--tw-translate-y:-1.25rem;--tw-scale-x:.75;--tw-scale-y:.75;--tw-text-opacity:1;color:rgb(0 0 98/var(--tw-text-opacity));font-size:1rem;left:1.25rem;line-height:1.5rem;position:absolute;top:1.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform-origin:0;transition-duration:.3s;z-index:10}.message{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(1 15 152/var(--tw-border-opacity));box-shadow:0 7px 7px #0000002b}button{color:#000!important;font-family:Azeret Mono,sans-serif}fieldset button{border-style:none!important}.image-grid{position:relative}.grid-container,.image-grid{display:grid;gap:2px;grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.grid-image{height:150px;object-fit:cover;width:100%}.featured-container{display:flex;justify-content:center;margin-bottom:20px}.featured-image{background-color:#f0f0f0;border:3px solid gold;box-shadow:0 0 20px #00000080;height:165px;width:165px;z-index:10}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s ease-in-out}.peer:placeholder-shown~.peer-placeholder-shown\:translate-y-0{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:placeholder-shown~.peer-placeholder-shown\:scale-100{--tw-scale-x:1;--tw-scale-y:1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:focus~.peer-focus\:-translate-y-5{--tw-translate-y:-1.25rem}.peer:focus~.peer-focus\:-translate-y-5,.peer:focus~.peer-focus\:scale-75{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:focus~.peer-focus\:scale-75{--tw-scale-x:.75;--tw-scale-y:.75}.peer:focus~.peer-focus\:text-primaryDark{--tw-text-opacity:1;color:rgb(0 0 98/var(--tw-text-opacity))}@media (min-width:640px){.sm\:h-9{height:2.25rem}}@media (min-width:1024px){.lg\:px-0{padding-left:0;padding-right:0}}@media (min-width:1280px){.xl\:py-4{padding-bottom:1rem;padding-top:1rem}.xl\:px-0{padding-left:0;padding-right:0}}.btn[data-v-0d906a14]{font-size:1.125rem;font-weight:400;line-height:1.75rem;padding:.75rem 2rem;text-transform:capitalize}.btn-small[data-v-0d906a14]{font-size:1rem;font-weight:400;line-height:1.5rem;padding:.25rem .5rem}.btn[data-v-0d906a14]:not(.btn-choice):not(.btn-tertiary):disabled{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity));cursor:not-allowed}.btn-primary[data-v-0d906a14]{background-color:rgb(110 255 250/var(--tw-bg-opacity));border-color:rgb(0 0 0/var(--tw-border-opacity));border-width:3px;color:rgb(0 0 0/var(--tw-text-opacity))}.btn-primary[data-v-0d906a14],.btn-secondary[data-v-0d906a14]{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1}.btn-secondary[data-v-0d906a14]{background-color:rgb(1 15 152/var(--tw-bg-opacity));border-color:rgb(255 255 255/var(--tw-border-opacity));border-width:3px}.btn-danger[data-v-0d906a14],.btn-secondary[data-v-0d906a14]{color:rgb(255 255 255/var(--tw-text-opacity))}.btn-danger[data-v-0d906a14]{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.btn-tertiary[data-v-0d906a14]{--tw-text-opacity:1;background-color:transparent;color:rgb(86 91 97/var(--tw-text-opacity));padding-left:0;padding-right:0}.btn-choice[data-v-0d906a14]{background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(1 15 152/var(--tw-border-opacity));border-style:solid;border-width:3px;box-shadow:0 7px 7px #0000002b;color:rgb(0 0 0/var(--tw-text-opacity))}.btn-choice[data-v-0d906a14],.btn-choice[data-v-0d906a14]:hover{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1}.btn-choice[data-v-0d906a14]:hover{background-color:rgb(110 255 250/var(--tw-bg-opacity));border-color:rgb(255 255 255/var(--tw-border-opacity));color:rgb(255 255 255/var(--tw-text-opacity))}.btn-choice.selected[data-v-0d906a14]{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(62 200 255/var(--tw-bg-opacity));border-color:rgb(0 0 0/var(--tw-border-opacity));color:rgb(255 255 255/var(--tw-text-opacity))}.btn-choice.voted[data-v-0d906a14]{--tw-text-opacity:1;background:#e8faf3;border:3px solid #4cd4a9;color:rgb(0 0 0/var(--tw-text-opacity))}.btn-choice[data-v-0d906a14]:disabled{--tw-border-opacity:1;--tw-text-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity));color:rgb(156 163 175/var(--tw-text-opacity))} diff --git a/demo-quiz-upm2024/assets/index.6adc36fa.js b/demo-quiz-upm2024/assets/index.6adc36fa.js new file mode 100644 index 0000000..eb26147 --- /dev/null +++ b/demo-quiz-upm2024/assets/index.6adc36fa.js @@ -0,0 +1,10 @@ +var T2=Object.defineProperty;var P2=(t,e,n)=>e in t?T2(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var v=(t,e,n)=>(P2(t,typeof e!="symbol"?e+"":e,n),n),zo=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var d=(t,e,n)=>(zo(t,e,"read from private field"),n?n.call(t):e.get(t)),T=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},g=(t,e,n,r)=>(zo(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),Ys=(t,e,n,r)=>({set _(s){g(t,e,s,n)},get _(){return d(t,e,r)}}),V=(t,e,n)=>(zo(t,e,"access private method"),n);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerpolicy&&(i.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?i.credentials="include":s.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function ic(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s!!n[s.toLowerCase()]:s=>!!n[s]}function oc(t){if(oe(t)){const e={};for(let n=0;n{if(n){const r=n.split(C2);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function po(t){let e="";if(ze(t))e=t;else if(oe(t))for(let n=0;nze(t)?t:t==null?"":oe(t)||Oe(t)&&(t.toString===yl||!le(t.toString))?JSON.stringify(t,bl,2):String(t),bl=(t,e)=>e&&e.__v_isRef?bl(t,e.value):G0(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:pl(e)?{[`Set(${e.size})`]:[...e.values()]}:Oe(e)&&!oe(e)&&!ml(e)?String(e):e,Ne={},Q0=[],en=()=>{},B2=()=>!1,S2=/^on[^a-z]/,go=t=>S2.test(t),ac=t=>t.startsWith("onUpdate:"),bt=Object.assign,cc=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},M2=Object.prototype.hasOwnProperty,be=(t,e)=>M2.call(t,e),oe=Array.isArray,G0=t=>yo(t)==="[object Map]",pl=t=>yo(t)==="[object Set]",le=t=>typeof t=="function",ze=t=>typeof t=="string",lc=t=>typeof t=="symbol",Oe=t=>t!==null&&typeof t=="object",gl=t=>Oe(t)&&le(t.then)&&le(t.catch),yl=Object.prototype.toString,yo=t=>yl.call(t),_2=t=>yo(t).slice(8,-1),ml=t=>yo(t)==="[object Object]",uc=t=>ze(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,v1=ic(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),mo=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},F2=/-(\w)/g,Pn=mo(t=>t.replace(F2,(e,n)=>n?n.toUpperCase():"")),U2=/\B([A-Z])/g,js=mo(t=>t.replace(U2,"-$1").toLowerCase()),wo=mo(t=>t.charAt(0).toUpperCase()+t.slice(1)),Vo=mo(t=>t?`on${wo(t)}`:""),Ei=(t,e)=>!Object.is(t,e),T1=(t,e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},z1=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let o6;const D2=()=>o6||(o6=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Rt;class wl{constructor(e=!1){this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Rt,!e&&Rt&&(this.index=(Rt.scopes||(Rt.scopes=[])).push(this)-1)}run(e){if(this.active){const n=Rt;try{return Rt=this,e()}finally{Rt=n}}}on(){Rt=this}off(){Rt=this.parent}stop(e){if(this.active){let n,r;for(n=0,r=this.effects.length;n{const e=new Set(t);return e.w=0,e.n=0,e},El=t=>(t.w&Or)>0,xl=t=>(t.n&Or)>0,G2=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let n=0;for(let r=0;r{(u==="length"||u>=c)&&a.push(l)})}else switch(n!==void 0&&a.push(o.get(n)),e){case"add":oe(t)?uc(n)&&a.push(o.get("length")):(a.push(o.get(f0)),G0(t)&&a.push(o.get(ga)));break;case"delete":oe(t)||(a.push(o.get(f0)),G0(t)&&a.push(o.get(ga)));break;case"set":G0(t)&&a.push(o.get(f0));break}if(a.length===1)a[0]&&ya(a[0]);else{const c=[];for(const l of a)l&&c.push(...l);ya(fc(c))}}function ya(t,e){const n=oe(t)?t:[...t];for(const r of n)r.computed&&c6(r);for(const r of n)r.computed||c6(r)}function c6(t,e){(t!==qt||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const V2=ic("__proto__,__v_isRef,__isVue"),Pl=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(lc)),j2=hc(),K2=hc(!1,!0),J2=hc(!0),l6=W2();function W2(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const r=ye(this);for(let i=0,o=this.length;i{t[e]=function(...n){Ks();const r=ye(this)[e].apply(this,n);return Js(),r}}),t}function hc(t=!1,e=!1){return function(r,s,i){if(s==="__v_isReactive")return!t;if(s==="__v_isReadonly")return t;if(s==="__v_isShallow")return e;if(s==="__v_raw"&&i===(t?e?u8:Rl:e?Ol:Nl).get(r))return r;const o=oe(r);if(!t&&o&&be(l6,s))return Reflect.get(l6,s,i);const a=Reflect.get(r,s,i);return(lc(s)?Pl.has(s):V2(s))||(t||St(r,"get",s),e)?a:De(a)?o&&uc(s)?a:a.value:Oe(a)?t?kl(a):Ws(a):a}}const Z2=Il(),Y2=Il(!0);function Il(t=!1){return function(n,r,s,i){let o=n[r];if(Bs(o)&&De(o)&&!De(s))return!1;if(!t&&(!V1(s)&&!Bs(s)&&(o=ye(o),s=ye(s)),!oe(n)&&De(o)&&!De(s)))return o.value=s,!0;const a=oe(n)&&uc(r)?Number(r)t,Ao=t=>Reflect.getPrototypeOf(t);function l1(t,e,n=!1,r=!1){t=t.__v_raw;const s=ye(t),i=ye(e);n||(e!==i&&St(s,"get",e),St(s,"get",i));const{has:o}=Ao(s),a=r?bc:n?yc:xi;if(o.call(s,e))return a(t.get(e));if(o.call(s,i))return a(t.get(i));t!==s&&t.get(e)}function u1(t,e=!1){const n=this.__v_raw,r=ye(n),s=ye(t);return e||(t!==s&&St(r,"has",t),St(r,"has",s)),t===s?n.has(t):n.has(t)||n.has(s)}function f1(t,e=!1){return t=t.__v_raw,!e&&St(ye(t),"iterate",f0),Reflect.get(t,"size",t)}function u6(t){t=ye(t);const e=ye(this);return Ao(e).has.call(e,t)||(e.add(t),Wn(e,"add",t,t)),this}function f6(t,e){e=ye(e);const n=ye(this),{has:r,get:s}=Ao(n);let i=r.call(n,t);i||(t=ye(t),i=r.call(n,t));const o=s.call(n,t);return n.set(t,e),i?Ei(e,o)&&Wn(n,"set",t,e):Wn(n,"add",t,e),this}function d6(t){const e=ye(this),{has:n,get:r}=Ao(e);let s=n.call(e,t);s||(t=ye(t),s=n.call(e,t)),r&&r.call(e,t);const i=e.delete(t);return s&&Wn(e,"delete",t,void 0),i}function h6(){const t=ye(this),e=t.size!==0,n=t.clear();return e&&Wn(t,"clear",void 0,void 0),n}function d1(t,e){return function(r,s){const i=this,o=i.__v_raw,a=ye(o),c=e?bc:t?yc:xi;return!t&&St(a,"iterate",f0),o.forEach((l,u)=>r.call(s,c(l),c(u),i))}}function h1(t,e,n){return function(...r){const s=this.__v_raw,i=ye(s),o=G0(i),a=t==="entries"||t===Symbol.iterator&&o,c=t==="keys"&&o,l=s[t](...r),u=n?bc:e?yc:xi;return!e&&St(i,"iterate",c?ga:f0),{next(){const{value:f,done:h}=l.next();return h?{value:f,done:h}:{value:a?[u(f[0]),u(f[1])]:u(f),done:h}},[Symbol.iterator](){return this}}}}function er(t){return function(...e){return t==="delete"?!1:this}}function n8(){const t={get(i){return l1(this,i)},get size(){return f1(this)},has:u1,add:u6,set:f6,delete:d6,clear:h6,forEach:d1(!1,!1)},e={get(i){return l1(this,i,!1,!0)},get size(){return f1(this)},has:u1,add:u6,set:f6,delete:d6,clear:h6,forEach:d1(!1,!0)},n={get(i){return l1(this,i,!0)},get size(){return f1(this,!0)},has(i){return u1.call(this,i,!0)},add:er("add"),set:er("set"),delete:er("delete"),clear:er("clear"),forEach:d1(!0,!1)},r={get(i){return l1(this,i,!0,!0)},get size(){return f1(this,!0)},has(i){return u1.call(this,i,!0)},add:er("add"),set:er("set"),delete:er("delete"),clear:er("clear"),forEach:d1(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{t[i]=h1(i,!1,!1),n[i]=h1(i,!0,!1),e[i]=h1(i,!1,!0),r[i]=h1(i,!0,!0)}),[t,n,e,r]}const[r8,s8,i8,o8]=n8();function pc(t,e){const n=e?t?o8:i8:t?s8:r8;return(r,s,i)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?r:Reflect.get(be(n,s)&&s in r?n:r,s,i)}const a8={get:pc(!1,!1)},c8={get:pc(!1,!0)},l8={get:pc(!0,!1)},Nl=new WeakMap,Ol=new WeakMap,Rl=new WeakMap,u8=new WeakMap;function f8(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function d8(t){return t.__v_skip||!Object.isExtensible(t)?0:f8(_2(t))}function Ws(t){return Bs(t)?t:gc(t,!1,Cl,a8,Nl)}function h8(t){return gc(t,!1,t8,c8,Ol)}function kl(t){return gc(t,!0,e8,l8,Rl)}function gc(t,e,n,r,s){if(!Oe(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const i=s.get(t);if(i)return i;const o=d8(t);if(o===0)return t;const a=new Proxy(t,o===2?r:n);return s.set(t,a),a}function Ir(t){return Bs(t)?Ir(t.__v_raw):!!(t&&t.__v_isReactive)}function Bs(t){return!!(t&&t.__v_isReadonly)}function V1(t){return!!(t&&t.__v_isShallow)}function Bl(t){return Ir(t)||Bs(t)}function ye(t){const e=t&&t.__v_raw;return e?ye(e):t}function Ss(t){return G1(t,"__v_skip",!0),t}const xi=t=>Oe(t)?Ws(t):t,yc=t=>Oe(t)?kl(t):t;function Sl(t){Pr&&qt&&(t=ye(t),Tl(t.dep||(t.dep=fc())))}function Ml(t,e){t=ye(t),t.dep&&ya(t.dep)}function De(t){return!!(t&&t.__v_isRef===!0)}function mn(t){return Fl(t,!1)}function _l(t){return Fl(t,!0)}function Fl(t,e){return De(t)?t:new b8(t,e)}class b8{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:ye(e),this._value=n?e:xi(e)}get value(){return Sl(this),this._value}set value(e){const n=this.__v_isShallow||V1(e)||Bs(e);e=n?e:ye(e),Ei(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:xi(e),Ml(this))}}function d0(t){return De(t)?t.value:t}const p8={get:(t,e,n)=>d0(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const s=t[e];return De(s)&&!De(n)?(s.value=n,!0):Reflect.set(t,e,n,r)}};function Ul(t){return Ir(t)?t:new Proxy(t,p8)}function g8(t){const e=oe(t)?new Array(t.length):{};for(const n in t)e[n]=m8(t,n);return e}class y8{constructor(e,n,r){this._object=e,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}}function m8(t,e,n){const r=t[e];return De(r)?r:new y8(t,e,n)}var Dl;class w8{constructor(e,n,r,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[Dl]=!1,this._dirty=!0,this.effect=new dc(e,()=>{this._dirty||(this._dirty=!0,Ml(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const e=ye(this);return Sl(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}Dl="__v_isReadonly";function A8(t,e,n=!1){let r,s;const i=le(t);return i?(r=t,s=en):(r=t.get,s=t.set),new w8(r,s,i||!s,n)}function Cr(t,e,n,r){let s;try{s=r?t(...r):t()}catch(i){Eo(i,e,n)}return s}function tn(t,e,n,r){if(le(t)){const i=Cr(t,e,n,r);return i&&gl(i)&&i.catch(o=>{Eo(o,e,n)}),i}const s=[];for(let i=0;i>>1;Ti(tt[r])wn&&tt.splice(e,1)}function T8(t){oe(t)?z0.push(...t):(!Cn||!Cn.includes(t,t.allowRecurse?Fr+1:Fr))&&z0.push(t),Hl()}function b6(t,e=vi?wn+1:0){for(;eTi(n)-Ti(r)),Fr=0;Frt.id==null?1/0:t.id,P8=(t,e)=>{const n=Ti(t)-Ti(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function Gl(t){ma=!1,vi=!0,tt.sort(P8);const e=en;try{for(wn=0;wnze(p)?p.trim():p)),f&&(s=n.map(z1))}let a,c=r[a=Vo(e)]||r[a=Vo(Pn(e))];!c&&i&&(c=r[a=Vo(js(e))]),c&&tn(c,t,6,s);const l=r[a+"Once"];if(l){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,tn(l,t,6,s)}}function zl(t,e,n=!1){const r=e.emitsCache,s=r.get(t);if(s!==void 0)return s;const i=t.emits;let o={},a=!1;if(!le(t)){const c=l=>{const u=zl(l,e,!0);u&&(a=!0,bt(o,u))};!n&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}return!i&&!a?(Oe(t)&&r.set(t,null),null):(oe(i)?i.forEach(c=>o[c]=null):bt(o,i),Oe(t)&&r.set(t,o),o)}function xo(t,e){return!t||!go(e)?!1:(e=e.slice(2).replace(/Once$/,""),be(t,e[0].toLowerCase()+e.slice(1))||be(t,js(e))||be(t,e))}let Ze=null,vo=null;function j1(t){const e=Ze;return Ze=t,vo=t&&t.type.__scopeId||null,e}function rg(t){vo=t}function sg(){vo=null}function K1(t,e=Ze,n){if(!e||t._n)return t;const r=(...s)=>{r._d&&v6(-1);const i=j1(e);let o;try{o=t(...s)}finally{j1(i),r._d&&v6(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function jo(t){const{type:e,vnode:n,proxy:r,withProxy:s,props:i,propsOptions:[o],slots:a,attrs:c,emit:l,render:u,renderCache:f,data:h,setupState:p,ctx:w,inheritAttrs:m}=t;let x,A;const N=j1(t);try{if(n.shapeFlag&4){const K=s||r;x=yn(u.call(K,K,f,i,p,h,w)),A=c}else{const K=e;x=yn(K.length>1?K(i,{attrs:c,slots:a,emit:l}):K(i,null)),A=e.props?c:C8(c)}}catch(K){fi.length=0,Eo(K,t,1),x=Le(Rr)}let O=x;if(A&&m!==!1){const K=Object.keys(A),{shapeFlag:G}=O;K.length&&G&7&&(o&&K.some(ac)&&(A=N8(A,o)),O=Ms(O,A))}return n.dirs&&(O=Ms(O),O.dirs=O.dirs?O.dirs.concat(n.dirs):n.dirs),n.transition&&(O.transition=n.transition),x=O,j1(N),x}const C8=t=>{let e;for(const n in t)(n==="class"||n==="style"||go(n))&&((e||(e={}))[n]=t[n]);return e},N8=(t,e)=>{const n={};for(const r in t)(!ac(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function O8(t,e,n){const{props:r,children:s,component:i}=t,{props:o,children:a,patchFlag:c}=e,l=i.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?p6(r,o,l):!!o;if(c&8){const u=e.dynamicProps;for(let f=0;ft.__isSuspense;function B8(t,e){e&&e.pendingBranch?oe(t)?e.effects.push(...t):e.effects.push(t):T8(t)}function P1(t,e){if(je){let n=je.provides;const r=je.parent&&je.parent.provides;r===n&&(n=je.provides=Object.create(r)),n[t]=e}}function vn(t,e,n=!1){const r=je||Ze;if(r){const s=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(s&&t in s)return s[t];if(arguments.length>1)return n&&le(e)?e.call(r.proxy):e}}const b1={};function ci(t,e,n){return Vl(t,e,n)}function Vl(t,e,{immediate:n,deep:r,flush:s,onTrack:i,onTrigger:o}=Ne){const a=je;let c,l=!1,u=!1;if(De(t)?(c=()=>t.value,l=V1(t)):Ir(t)?(c=()=>t,r=!0):oe(t)?(u=!0,l=t.some(O=>Ir(O)||V1(O)),c=()=>t.map(O=>{if(De(O))return O.value;if(Ir(O))return Hr(O);if(le(O))return Cr(O,a,2)})):le(t)?e?c=()=>Cr(t,a,2):c=()=>{if(!(a&&a.isUnmounted))return f&&f(),tn(t,a,3,[h])}:c=en,e&&r){const O=c;c=()=>Hr(O())}let f,h=O=>{f=A.onStop=()=>{Cr(O,a,4)}},p;if(Ii)if(h=en,e?n&&tn(e,a,3,[c(),u?[]:void 0,h]):c(),s==="sync"){const O=Nd();p=O.__watcherHandles||(O.__watcherHandles=[])}else return en;let w=u?new Array(t.length).fill(b1):b1;const m=()=>{if(!!A.active)if(e){const O=A.run();(r||l||(u?O.some((K,G)=>Ei(K,w[G])):Ei(O,w)))&&(f&&f(),tn(e,a,3,[O,w===b1?void 0:u&&w[0]===b1?[]:w,h]),w=O)}else A.run()};m.allowRecurse=!!e;let x;s==="sync"?x=m:s==="post"?x=()=>pt(m,a&&a.suspense):(m.pre=!0,a&&(m.id=a.uid),x=()=>Ac(m));const A=new dc(c,x);e?n?m():w=A.run():s==="post"?pt(A.run.bind(A),a&&a.suspense):A.run();const N=()=>{A.stop(),a&&a.scope&&cc(a.scope.effects,A)};return p&&p.push(N),N}function S8(t,e,n){const r=this.proxy,s=ze(t)?t.includes(".")?jl(r,t):()=>r[t]:t.bind(r,r);let i;le(e)?i=e:(i=e.handler,n=e);const o=je;_s(this);const a=Vl(s,i.bind(r),n);return o?_s(o):h0(),a}function jl(t,e){const n=e.split(".");return()=>{let r=t;for(let s=0;s{Hr(n,e)});else if(ml(t))for(const n in t)Hr(t[n],e);return t}function r1(t){return le(t)?{setup:t,name:t.name}:t}const li=t=>!!t.type.__asyncLoader,Kl=t=>t.type.__isKeepAlive;function M8(t,e){Jl(t,"a",e)}function _8(t,e){Jl(t,"da",e)}function Jl(t,e,n=je){const r=t.__wdc||(t.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return t()});if(To(e,r,n),n){let s=n.parent;for(;s&&s.parent;)Kl(s.parent.vnode)&&F8(r,e,n,s),s=s.parent}}function F8(t,e,n,r){const s=To(e,t,r,!0);Zl(()=>{cc(r[e],s)},n)}function To(t,e,n=je,r=!1){if(n){const s=n[t]||(n[t]=[]),i=e.__weh||(e.__weh=(...o)=>{if(n.isUnmounted)return;Ks(),_s(n);const a=tn(e,n,t,o);return h0(),Js(),a});return r?s.unshift(i):s.push(i),i}}const Xn=t=>(e,n=je)=>(!Ii||t==="sp")&&To(t,(...r)=>e(...r),n),U8=Xn("bm"),Wl=Xn("m"),D8=Xn("bu"),L8=Xn("u"),H8=Xn("bum"),Zl=Xn("um"),Q8=Xn("sp"),G8=Xn("rtg"),z8=Xn("rtc");function V8(t,e=je){To("ec",t,e)}function j8(t,e){const n=Ze;if(n===null)return t;const r=Co(n)||n.proxy,s=t.dirs||(t.dirs=[]);for(let i=0;ie(o,a,void 0,i&&i[a]));else{const o=Object.keys(t);s=new Array(o.length);for(let a=0,c=o.length;aW1(e)?!(e.type===Rr||e.type===Gt&&!Xl(e.children)):!0)?t:null}const wa=t=>t?uu(t)?Co(t)||t.proxy:wa(t.parent):null,ui=bt(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>wa(t.parent),$root:t=>wa(t.root),$emit:t=>t.emit,$options:t=>Ec(t),$forceUpdate:t=>t.f||(t.f=()=>Ac(t.update)),$nextTick:t=>t.n||(t.n=wc.bind(t.proxy)),$watch:t=>S8.bind(t)}),Ko=(t,e)=>t!==Ne&&!t.__isScriptSetup&&be(t,e),Z8={get({_:t},e){const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:c}=t;let l;if(e[0]!=="$"){const p=o[e];if(p!==void 0)switch(p){case 1:return r[e];case 2:return s[e];case 4:return n[e];case 3:return i[e]}else{if(Ko(r,e))return o[e]=1,r[e];if(s!==Ne&&be(s,e))return o[e]=2,s[e];if((l=t.propsOptions[0])&&be(l,e))return o[e]=3,i[e];if(n!==Ne&&be(n,e))return o[e]=4,n[e];Aa&&(o[e]=0)}}const u=ui[e];let f,h;if(u)return e==="$attrs"&&St(t,"get",e),u(t);if((f=a.__cssModules)&&(f=f[e]))return f;if(n!==Ne&&be(n,e))return o[e]=4,n[e];if(h=c.config.globalProperties,be(h,e))return h[e]},set({_:t},e,n){const{data:r,setupState:s,ctx:i}=t;return Ko(s,e)?(s[e]=n,!0):r!==Ne&&be(r,e)?(r[e]=n,!0):be(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(i[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:s,propsOptions:i}},o){let a;return!!n[o]||t!==Ne&&be(t,o)||Ko(e,o)||(a=i[0])&&be(a,o)||be(r,o)||be(ui,o)||be(s.config.globalProperties,o)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:be(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};let Aa=!0;function Y8(t){const e=Ec(t),n=t.proxy,r=t.ctx;Aa=!1,e.beforeCreate&&y6(e.beforeCreate,t,"bc");const{data:s,computed:i,methods:o,watch:a,provide:c,inject:l,created:u,beforeMount:f,mounted:h,beforeUpdate:p,updated:w,activated:m,deactivated:x,beforeDestroy:A,beforeUnmount:N,destroyed:O,unmounted:K,render:G,renderTracked:Q,renderTriggered:L,errorCaptured:D,serverPrefetch:de,expose:re,inheritAttrs:se,components:ve,directives:Me,filters:_e}=e;if(l&&q8(l,r,null,t.appContext.config.unwrapInjectedRef),o)for(const W in o){const $=o[W];le($)&&(r[W]=$.bind(n))}if(s){const W=s.call(n,n);Oe(W)&&(t.data=Ws(W))}if(Aa=!0,i)for(const W in i){const $=i[W],ue=le($)?$.bind(n,n):le($.get)?$.get.bind(n,n):en,Te=!le($)&&le($.set)?$.set.bind(n):en,Ce=lt({get:ue,set:Te});Object.defineProperty(r,W,{enumerable:!0,configurable:!0,get:()=>Ce.value,set:Ee=>Ce.value=Ee})}if(a)for(const W in a)$l(a[W],r,n,W);if(c){const W=le(c)?c.call(n):c;Reflect.ownKeys(W).forEach($=>{P1($,W[$])})}u&&y6(u,t,"c");function F(W,$){oe($)?$.forEach(ue=>W(ue.bind(n))):$&&W($.bind(n))}if(F(U8,f),F(Wl,h),F(D8,p),F(L8,w),F(M8,m),F(_8,x),F(V8,D),F(z8,Q),F(G8,L),F(H8,N),F(Zl,K),F(Q8,de),oe(re))if(re.length){const W=t.exposed||(t.exposed={});re.forEach($=>{Object.defineProperty(W,$,{get:()=>n[$],set:ue=>n[$]=ue})})}else t.exposed||(t.exposed={});G&&t.render===en&&(t.render=G),se!=null&&(t.inheritAttrs=se),ve&&(t.components=ve),Me&&(t.directives=Me)}function q8(t,e,n=en,r=!1){oe(t)&&(t=Ea(t));for(const s in t){const i=t[s];let o;Oe(i)?"default"in i?o=vn(i.from||s,i.default,!0):o=vn(i.from||s):o=vn(i),De(o)&&r?Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):e[s]=o}}function y6(t,e,n){tn(oe(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function $l(t,e,n,r){const s=r.includes(".")?jl(n,r):()=>n[r];if(ze(t)){const i=e[t];le(i)&&ci(s,i)}else if(le(t))ci(s,t.bind(n));else if(Oe(t))if(oe(t))t.forEach(i=>$l(i,e,n,r));else{const i=le(t.handler)?t.handler.bind(n):e[t.handler];le(i)&&ci(s,i,t)}}function Ec(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=t.appContext,a=i.get(e);let c;return a?c=a:!s.length&&!n&&!r?c=e:(c={},s.length&&s.forEach(l=>J1(c,l,o,!0)),J1(c,e,o)),Oe(e)&&i.set(e,c),c}function J1(t,e,n,r=!1){const{mixins:s,extends:i}=e;i&&J1(t,i,n,!0),s&&s.forEach(o=>J1(t,o,n,!0));for(const o in e)if(!(r&&o==="expose")){const a=X8[o]||n&&n[o];t[o]=a?a(t[o],e[o]):e[o]}return t}const X8={data:m6,props:_r,emits:_r,methods:_r,computed:_r,beforeCreate:it,created:it,beforeMount:it,mounted:it,beforeUpdate:it,updated:it,beforeDestroy:it,beforeUnmount:it,destroyed:it,unmounted:it,activated:it,deactivated:it,errorCaptured:it,serverPrefetch:it,components:_r,directives:_r,watch:ed,provide:m6,inject:$8};function m6(t,e){return e?t?function(){return bt(le(t)?t.call(this,this):t,le(e)?e.call(this,this):e)}:e:t}function $8(t,e){return _r(Ea(t),Ea(e))}function Ea(t){if(oe(t)){const e={};for(let n=0;n0)&&!(o&16)){if(o&8){const u=t.vnode.dynamicProps;for(let f=0;f{c=!0;const[h,p]=tu(f,e,!0);bt(o,h),p&&a.push(...p)};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!i&&!c)return Oe(t)&&r.set(t,Q0),Q0;if(oe(i))for(let u=0;u-1,p[1]=m<0||w-1||be(p,"default"))&&a.push(f)}}}const l=[o,a];return Oe(t)&&r.set(t,l),l}function w6(t){return t[0]!=="$"}function A6(t){const e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:t===null?"null":""}function E6(t,e){return A6(t)===A6(e)}function x6(t,e){return oe(e)?e.findIndex(n=>E6(n,t)):le(e)&&E6(e,t)?0:-1}const nu=t=>t[0]==="_"||t==="$stable",xc=t=>oe(t)?t.map(yn):[yn(t)],rd=(t,e,n)=>{if(e._n)return e;const r=K1((...s)=>xc(e(...s)),n);return r._c=!1,r},ru=(t,e,n)=>{const r=t._ctx;for(const s in t){if(nu(s))continue;const i=t[s];if(le(i))e[s]=rd(s,i,r);else if(i!=null){const o=xc(i);e[s]=()=>o}}},su=(t,e)=>{const n=xc(e);t.slots.default=()=>n},sd=(t,e)=>{if(t.vnode.shapeFlag&32){const n=e._;n?(t.slots=ye(e),G1(e,"_",n)):ru(e,t.slots={})}else t.slots={},e&&su(t,e);G1(t.slots,Io,1)},id=(t,e,n)=>{const{vnode:r,slots:s}=t;let i=!0,o=Ne;if(r.shapeFlag&32){const a=e._;a?n&&a===1?i=!1:(bt(s,e),!n&&a===1&&delete s._):(i=!e.$stable,ru(e,s)),o=e}else e&&(su(t,e),o={default:1});if(i)for(const a in s)!nu(a)&&!(a in o)&&delete s[a]};function iu(){return{app:null,config:{isNativeTag:B2,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let od=0;function ad(t,e){return function(r,s=null){le(r)||(r=Object.assign({},r)),s!=null&&!Oe(s)&&(s=null);const i=iu(),o=new Set;let a=!1;const c=i.app={_uid:od++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:Od,get config(){return i.config},set config(l){},use(l,...u){return o.has(l)||(l&&le(l.install)?(o.add(l),l.install(c,...u)):le(l)&&(o.add(l),l(c,...u))),c},mixin(l){return i.mixins.includes(l)||i.mixins.push(l),c},component(l,u){return u?(i.components[l]=u,c):i.components[l]},directive(l,u){return u?(i.directives[l]=u,c):i.directives[l]},mount(l,u,f){if(!a){const h=Le(r,s);return h.appContext=i,u&&e?e(h,l):t(h,l,f),a=!0,c._container=l,l.__vue_app__=c,Co(h.component)||h.component.proxy}},unmount(){a&&(t(null,c._container),delete c._container.__vue_app__)},provide(l,u){return i.provides[l]=u,c}};return c}}function va(t,e,n,r,s=!1){if(oe(t)){t.forEach((h,p)=>va(h,e&&(oe(e)?e[p]:e),n,r,s));return}if(li(r)&&!s)return;const i=r.shapeFlag&4?Co(r.component)||r.component.proxy:r.el,o=s?null:i,{i:a,r:c}=t,l=e&&e.r,u=a.refs===Ne?a.refs={}:a.refs,f=a.setupState;if(l!=null&&l!==c&&(ze(l)?(u[l]=null,be(f,l)&&(f[l]=null)):De(l)&&(l.value=null)),le(c))Cr(c,a,12,[o,u]);else{const h=ze(c),p=De(c);if(h||p){const w=()=>{if(t.f){const m=h?be(f,c)?f[c]:u[c]:c.value;s?oe(m)&&cc(m,i):oe(m)?m.includes(i)||m.push(i):h?(u[c]=[i],be(f,c)&&(f[c]=u[c])):(c.value=[i],t.k&&(u[t.k]=c.value))}else h?(u[c]=o,be(f,c)&&(f[c]=o)):p&&(c.value=o,t.k&&(u[t.k]=o))};o?(w.id=-1,pt(w,n)):w()}}}const pt=B8;function cd(t){return ld(t)}function ld(t,e){const n=D2();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:c,setText:l,setElementText:u,parentNode:f,nextSibling:h,setScopeId:p=en,insertStaticContent:w}=t,m=(b,y,P,I=null,R=null,_=null,j=!1,M=null,H=!!y.dynamicChildren)=>{if(b===y)return;b&&!qs(b,y)&&(I=U(b),Ee(b,R,_,!0),b=null),y.patchFlag===-2&&(H=!1,y.dynamicChildren=null);const{type:B,ref:ee,shapeFlag:Z}=y;switch(B){case Po:x(b,y,P,I);break;case Rr:A(b,y,P,I);break;case I1:b==null&&N(y,P,I,j);break;case Gt:ve(b,y,P,I,R,_,j,M,H);break;default:Z&1?G(b,y,P,I,R,_,j,M,H):Z&6?Me(b,y,P,I,R,_,j,M,H):(Z&64||Z&128)&&B.process(b,y,P,I,R,_,j,M,H,ae)}ee!=null&&R&&va(ee,b&&b.ref,_,y||b,!y)},x=(b,y,P,I)=>{if(b==null)r(y.el=a(y.children),P,I);else{const R=y.el=b.el;y.children!==b.children&&l(R,y.children)}},A=(b,y,P,I)=>{b==null?r(y.el=c(y.children||""),P,I):y.el=b.el},N=(b,y,P,I)=>{[b.el,b.anchor]=w(b.children,y,P,I,b.el,b.anchor)},O=({el:b,anchor:y},P,I)=>{let R;for(;b&&b!==y;)R=h(b),r(b,P,I),b=R;r(y,P,I)},K=({el:b,anchor:y})=>{let P;for(;b&&b!==y;)P=h(b),s(b),b=P;s(y)},G=(b,y,P,I,R,_,j,M,H)=>{j=j||y.type==="svg",b==null?Q(y,P,I,R,_,j,M,H):de(b,y,R,_,j,M,H)},Q=(b,y,P,I,R,_,j,M)=>{let H,B;const{type:ee,props:Z,shapeFlag:te,transition:ie,dirs:he}=b;if(H=b.el=o(b.type,_,Z&&Z.is,Z),te&8?u(H,b.children):te&16&&D(b.children,H,null,I,R,_&&ee!=="foreignObject",j,M),he&&Sr(b,null,I,"created"),Z){for(const xe in Z)xe!=="value"&&!v1(xe)&&i(H,xe,null,Z[xe],_,b.children,I,R,z);"value"in Z&&i(H,"value",null,Z.value),(B=Z.onVnodeBeforeMount)&&cn(B,I,b)}L(H,b,b.scopeId,j,I),he&&Sr(b,null,I,"beforeMount");const Pe=(!R||R&&!R.pendingBranch)&&ie&&!ie.persisted;Pe&&ie.beforeEnter(H),r(H,y,P),((B=Z&&Z.onVnodeMounted)||Pe||he)&&pt(()=>{B&&cn(B,I,b),Pe&&ie.enter(H),he&&Sr(b,null,I,"mounted")},R)},L=(b,y,P,I,R)=>{if(P&&p(b,P),I)for(let _=0;_{for(let B=H;B{const M=y.el=b.el;let{patchFlag:H,dynamicChildren:B,dirs:ee}=y;H|=b.patchFlag&16;const Z=b.props||Ne,te=y.props||Ne;let ie;P&&Mr(P,!1),(ie=te.onVnodeBeforeUpdate)&&cn(ie,P,y,b),ee&&Sr(y,b,P,"beforeUpdate"),P&&Mr(P,!0);const he=R&&y.type!=="foreignObject";if(B?re(b.dynamicChildren,B,M,P,I,he,_):j||$(b,y,M,null,P,I,he,_,!1),H>0){if(H&16)se(M,y,Z,te,P,I,R);else if(H&2&&Z.class!==te.class&&i(M,"class",null,te.class,R),H&4&&i(M,"style",Z.style,te.style,R),H&8){const Pe=y.dynamicProps;for(let xe=0;xe{ie&&cn(ie,P,y,b),ee&&Sr(y,b,P,"updated")},I)},re=(b,y,P,I,R,_,j)=>{for(let M=0;M{if(P!==I){if(P!==Ne)for(const M in P)!v1(M)&&!(M in I)&&i(b,M,P[M],null,j,y.children,R,_,z);for(const M in I){if(v1(M))continue;const H=I[M],B=P[M];H!==B&&M!=="value"&&i(b,M,B,H,j,y.children,R,_,z)}"value"in I&&i(b,"value",P.value,I.value)}},ve=(b,y,P,I,R,_,j,M,H)=>{const B=y.el=b?b.el:a(""),ee=y.anchor=b?b.anchor:a("");let{patchFlag:Z,dynamicChildren:te,slotScopeIds:ie}=y;ie&&(M=M?M.concat(ie):ie),b==null?(r(B,P,I),r(ee,P,I),D(y.children,P,ee,R,_,j,M,H)):Z>0&&Z&64&&te&&b.dynamicChildren?(re(b.dynamicChildren,te,P,R,_,j,M),(y.key!=null||R&&y===R.subTree)&&ou(b,y,!0)):$(b,y,P,ee,R,_,j,M,H)},Me=(b,y,P,I,R,_,j,M,H)=>{y.slotScopeIds=M,b==null?y.shapeFlag&512?R.ctx.activate(y,P,I,j,H):_e(y,P,I,R,_,j,H):S(b,y,H)},_e=(b,y,P,I,R,_,j)=>{const M=b.component=wd(b,I,R);if(Kl(b)&&(M.ctx.renderer=ae),Ed(M),M.asyncDep){if(R&&R.registerDep(M,F),!b.el){const H=M.subTree=Le(Rr);A(null,H,y,P)}return}F(M,b,y,P,R,_,j)},S=(b,y,P)=>{const I=y.component=b.component;if(O8(b,y,P))if(I.asyncDep&&!I.asyncResolved){W(I,y,P);return}else I.next=y,v8(I.update),I.update();else y.el=b.el,I.vnode=y},F=(b,y,P,I,R,_,j)=>{const M=()=>{if(b.isMounted){let{next:ee,bu:Z,u:te,parent:ie,vnode:he}=b,Pe=ee,xe;Mr(b,!1),ee?(ee.el=he.el,W(b,ee,j)):ee=he,Z&&T1(Z),(xe=ee.props&&ee.props.onVnodeBeforeUpdate)&&cn(xe,ie,ee,he),Mr(b,!0);const He=jo(b),Vt=b.subTree;b.subTree=He,m(Vt,He,f(Vt.el),U(Vt),b,R,_),ee.el=He.el,Pe===null&&R8(b,He.el),te&&pt(te,R),(xe=ee.props&&ee.props.onVnodeUpdated)&&pt(()=>cn(xe,ie,ee,he),R)}else{let ee;const{el:Z,props:te}=y,{bm:ie,m:he,parent:Pe}=b,xe=li(y);if(Mr(b,!1),ie&&T1(ie),!xe&&(ee=te&&te.onVnodeBeforeMount)&&cn(ee,Pe,y),Mr(b,!0),Z&&ce){const He=()=>{b.subTree=jo(b),ce(Z,b.subTree,b,R,null)};xe?y.type.__asyncLoader().then(()=>!b.isUnmounted&&He()):He()}else{const He=b.subTree=jo(b);m(null,He,P,I,b,R,_),y.el=He.el}if(he&&pt(he,R),!xe&&(ee=te&&te.onVnodeMounted)){const He=y;pt(()=>cn(ee,Pe,He),R)}(y.shapeFlag&256||Pe&&li(Pe.vnode)&&Pe.vnode.shapeFlag&256)&&b.a&&pt(b.a,R),b.isMounted=!0,y=P=I=null}},H=b.effect=new dc(M,()=>Ac(B),b.scope),B=b.update=()=>H.run();B.id=b.uid,Mr(b,!0),B()},W=(b,y,P)=>{y.component=b;const I=b.vnode.props;b.vnode=y,b.next=null,nd(b,y.props,I,P),id(b,y.children,P),Ks(),b6(),Js()},$=(b,y,P,I,R,_,j,M,H=!1)=>{const B=b&&b.children,ee=b?b.shapeFlag:0,Z=y.children,{patchFlag:te,shapeFlag:ie}=y;if(te>0){if(te&128){Te(B,Z,P,I,R,_,j,M,H);return}else if(te&256){ue(B,Z,P,I,R,_,j,M,H);return}}ie&8?(ee&16&&z(B,R,_),Z!==B&&u(P,Z)):ee&16?ie&16?Te(B,Z,P,I,R,_,j,M,H):z(B,R,_,!0):(ee&8&&u(P,""),ie&16&&D(Z,P,I,R,_,j,M,H))},ue=(b,y,P,I,R,_,j,M,H)=>{b=b||Q0,y=y||Q0;const B=b.length,ee=y.length,Z=Math.min(B,ee);let te;for(te=0;teee?z(b,R,_,!0,!1,Z):D(y,P,I,R,_,j,M,H,Z)},Te=(b,y,P,I,R,_,j,M,H)=>{let B=0;const ee=y.length;let Z=b.length-1,te=ee-1;for(;B<=Z&&B<=te;){const ie=b[B],he=y[B]=H?ir(y[B]):yn(y[B]);if(qs(ie,he))m(ie,he,P,null,R,_,j,M,H);else break;B++}for(;B<=Z&&B<=te;){const ie=b[Z],he=y[te]=H?ir(y[te]):yn(y[te]);if(qs(ie,he))m(ie,he,P,null,R,_,j,M,H);else break;Z--,te--}if(B>Z){if(B<=te){const ie=te+1,he=iete)for(;B<=Z;)Ee(b[B],R,_,!0),B++;else{const ie=B,he=B,Pe=new Map;for(B=he;B<=te;B++){const Tt=y[B]=H?ir(y[B]):yn(y[B]);Tt.key!=null&&Pe.set(Tt.key,B)}let xe,He=0;const Vt=te-he+1;let T0=!1,r6=0;const Zs=new Array(Vt);for(B=0;B=Vt){Ee(Tt,R,_,!0);continue}let an;if(Tt.key!=null)an=Pe.get(Tt.key);else for(xe=he;xe<=te;xe++)if(Zs[xe-he]===0&&qs(Tt,y[xe])){an=xe;break}an===void 0?Ee(Tt,R,_,!0):(Zs[an-he]=B+1,an>=r6?r6=an:T0=!0,m(Tt,y[an],P,null,R,_,j,M,H),He++)}const s6=T0?ud(Zs):Q0;for(xe=s6.length-1,B=Vt-1;B>=0;B--){const Tt=he+B,an=y[Tt],i6=Tt+1{const{el:_,type:j,transition:M,children:H,shapeFlag:B}=b;if(B&6){Ce(b.component.subTree,y,P,I);return}if(B&128){b.suspense.move(y,P,I);return}if(B&64){j.move(b,y,P,ae);return}if(j===Gt){r(_,y,P);for(let Z=0;ZM.enter(_),R);else{const{leave:Z,delayLeave:te,afterLeave:ie}=M,he=()=>r(_,y,P),Pe=()=>{Z(_,()=>{he(),ie&&ie()})};te?te(_,he,Pe):Pe()}else r(_,y,P)},Ee=(b,y,P,I=!1,R=!1)=>{const{type:_,props:j,ref:M,children:H,dynamicChildren:B,shapeFlag:ee,patchFlag:Z,dirs:te}=b;if(M!=null&&va(M,null,P,b,!0),ee&256){y.ctx.deactivate(b);return}const ie=ee&1&&te,he=!li(b);let Pe;if(he&&(Pe=j&&j.onVnodeBeforeUnmount)&&cn(Pe,y,b),ee&6)C(b.component,P,I);else{if(ee&128){b.suspense.unmount(P,I);return}ie&&Sr(b,null,y,"beforeUnmount"),ee&64?b.type.remove(b,y,P,R,ae,I):B&&(_!==Gt||Z>0&&Z&64)?z(B,y,P,!1,!0):(_===Gt&&Z&384||!R&&ee&16)&&z(H,y,P),I&&st(b)}(he&&(Pe=j&&j.onVnodeUnmounted)||ie)&&pt(()=>{Pe&&cn(Pe,y,b),ie&&Sr(b,null,y,"unmounted")},P)},st=b=>{const{type:y,el:P,anchor:I,transition:R}=b;if(y===Gt){vt(P,I);return}if(y===I1){K(b);return}const _=()=>{s(P),R&&!R.persisted&&R.afterLeave&&R.afterLeave()};if(b.shapeFlag&1&&R&&!R.persisted){const{leave:j,delayLeave:M}=R,H=()=>j(P,_);M?M(b.el,_,H):H()}else _()},vt=(b,y)=>{let P;for(;b!==y;)P=h(b),s(b),b=P;s(y)},C=(b,y,P)=>{const{bum:I,scope:R,update:_,subTree:j,um:M}=b;I&&T1(I),R.stop(),_&&(_.active=!1,Ee(j,b,y,P)),M&&pt(M,y),pt(()=>{b.isUnmounted=!0},y),y&&y.pendingBranch&&!y.isUnmounted&&b.asyncDep&&!b.asyncResolved&&b.suspenseId===y.pendingId&&(y.deps--,y.deps===0&&y.resolve())},z=(b,y,P,I=!1,R=!1,_=0)=>{for(let j=_;jb.shapeFlag&6?U(b.component.subTree):b.shapeFlag&128?b.suspense.next():h(b.anchor||b.el),Y=(b,y,P)=>{b==null?y._vnode&&Ee(y._vnode,null,null,!0):m(y._vnode||null,b,y,null,null,null,P),b6(),Ql(),y._vnode=b},ae={p:m,um:Ee,m:Ce,r:st,mt:_e,mc:D,pc:$,pbc:re,n:U,o:t};let we,ce;return e&&([we,ce]=e(ae)),{render:Y,hydrate:we,createApp:ad(Y,we)}}function Mr({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function ou(t,e,n=!1){const r=t.children,s=e.children;if(oe(r)&&oe(s))for(let i=0;i>1,t[n[a]]0&&(e[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=e[o];return n}const fd=t=>t.__isTeleport,Gt=Symbol(void 0),Po=Symbol(void 0),Rr=Symbol(void 0),I1=Symbol(void 0),fi=[];let $t=null;function E0(t=!1){fi.push($t=t?null:[])}function dd(){fi.pop(),$t=fi[fi.length-1]||null}let Pi=1;function v6(t){Pi+=t}function au(t){return t.dynamicChildren=Pi>0?$t||Q0:null,dd(),Pi>0&&$t&&$t.push(t),t}function s1(t,e,n,r,s,i){return au(Ie(t,e,n,r,s,i,!0))}function cu(t,e,n,r,s){return au(Le(t,e,n,r,s,!0))}function W1(t){return t?t.__v_isVNode===!0:!1}function qs(t,e){return t.type===e.type&&t.key===e.key}const Io="__vInternal",lu=({key:t})=>t!=null?t:null,C1=({ref:t,ref_key:e,ref_for:n})=>t!=null?ze(t)||De(t)||le(t)?{i:Ze,r:t,k:e,f:!!n}:t:null;function Ie(t,e=null,n=null,r=0,s=null,i=t===Gt?0:1,o=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&lu(e),ref:e&&C1(e),scopeId:vo,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Ze};return a?(vc(c,n),i&128&&t.normalize(c)):n&&(c.shapeFlag|=ze(n)?8:16),Pi>0&&!o&&$t&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&$t.push(c),c}const Le=hd;function hd(t,e=null,n=null,r=0,s=null,i=!1){if((!t||t===K8)&&(t=Rr),W1(t)){const a=Ms(t,e,!0);return n&&vc(a,n),Pi>0&&!i&&$t&&(a.shapeFlag&6?$t[$t.indexOf(t)]=a:$t.push(a)),a.patchFlag|=-2,a}if(Id(t)&&(t=t.__vccOpts),e){e=bd(e);let{class:a,style:c}=e;a&&!ze(a)&&(e.class=po(a)),Oe(c)&&(Bl(c)&&!oe(c)&&(c=bt({},c)),e.style=oc(c))}const o=ze(t)?1:k8(t)?128:fd(t)?64:Oe(t)?4:le(t)?2:0;return Ie(t,e,n,r,s,o,i,!0)}function bd(t){return t?Bl(t)||Io in t?bt({},t):t:null}function Ms(t,e,n=!1){const{props:r,ref:s,patchFlag:i,children:o}=t,a=e?gd(r||{},e):r;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&lu(a),ref:e&&e.ref?n&&s?oe(s)?s.concat(C1(e)):[s,C1(e)]:C1(e):s,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Gt?i===-1?16:i|16:i,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Ms(t.ssContent),ssFallback:t.ssFallback&&Ms(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx}}function kt(t=" ",e=0){return Le(Po,null,t,e)}function pd(t,e){const n=Le(I1,null,t);return n.staticCount=e,n}function og(t="",e=!1){return e?(E0(),cu(Rr,null,t)):Le(Rr,null,t)}function yn(t){return t==null||typeof t=="boolean"?Le(Rr):oe(t)?Le(Gt,null,t.slice()):typeof t=="object"?ir(t):Le(Po,null,String(t))}function ir(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Ms(t)}function vc(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(oe(e))n=16;else if(typeof e=="object")if(r&65){const s=e.default;s&&(s._c&&(s._d=!1),vc(t,s()),s._c&&(s._d=!0));return}else{n=32;const s=e._;!s&&!(Io in e)?e._ctx=Ze:s===3&&Ze&&(Ze.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else le(e)?(e={default:e,_ctx:Ze},n=32):(e=String(e),r&64?(n=16,e=[kt(e)]):n=8);t.children=e,t.shapeFlag|=n}function gd(...t){const e={};for(let n=0;nje||Ze,_s=t=>{je=t,t.scope.on()},h0=()=>{je&&je.scope.off(),je=null};function uu(t){return t.vnode.shapeFlag&4}let Ii=!1;function Ed(t,e=!1){Ii=e;const{props:n,children:r}=t.vnode,s=uu(t);td(t,n,s,e),sd(t,r);const i=s?xd(t,e):void 0;return Ii=!1,i}function xd(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=Ss(new Proxy(t.ctx,Z8));const{setup:r}=n;if(r){const s=t.setupContext=r.length>1?Td(t):null;_s(t),Ks();const i=Cr(r,t,0,[t.props,s]);if(Js(),h0(),gl(i)){if(i.then(h0,h0),e)return i.then(o=>{T6(t,o,e)}).catch(o=>{Eo(o,t,0)});t.asyncDep=i}else T6(t,i,e)}else fu(t,e)}function T6(t,e,n){le(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Oe(e)&&(t.setupState=Ul(e)),fu(t,n)}let P6;function fu(t,e,n){const r=t.type;if(!t.render){if(!e&&P6&&!r.render){const s=r.template||Ec(t).template;if(s){const{isCustomElement:i,compilerOptions:o}=t.appContext.config,{delimiters:a,compilerOptions:c}=r,l=bt(bt({isCustomElement:i,delimiters:a},o),c);r.render=P6(s,l)}}t.render=r.render||en}_s(t),Ks(),Y8(t),Js(),h0()}function vd(t){return new Proxy(t.attrs,{get(e,n){return St(t,"get","$attrs"),e[n]}})}function Td(t){const e=r=>{t.exposed=r||{}};let n;return{get attrs(){return n||(n=vd(t))},slots:t.slots,emit:t.emit,expose:e}}function Co(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(Ul(Ss(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in ui)return ui[n](t)},has(e,n){return n in e||n in ui}}))}function Pd(t,e=!0){return le(t)?t.displayName||t.name:t.name||e&&t.__name}function Id(t){return le(t)&&"__vccOpts"in t}const lt=(t,e)=>A8(t,e,Ii);function du(t,e,n){const r=arguments.length;return r===2?Oe(e)&&!oe(e)?W1(e)?Le(t,null,[e]):Le(t,e):Le(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&W1(n)&&(n=[n]),Le(t,e,n))}const Cd=Symbol(""),Nd=()=>vn(Cd),Od="3.2.45",Rd="http://www.w3.org/2000/svg",Ur=typeof document<"u"?document:null,I6=Ur&&Ur.createElement("template"),kd={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const s=e?Ur.createElementNS(Rd,t):Ur.createElement(t,n?{is:n}:void 0);return t==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:t=>Ur.createTextNode(t),createComment:t=>Ur.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Ur.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,s,i){const o=n?n.previousSibling:e.lastChild;if(s&&(s===i||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{I6.innerHTML=r?`${t}`:t;const a=I6.content;if(r){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}e.insertBefore(a,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}};function Bd(t,e,n){const r=t._vtc;r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}function Sd(t,e,n){const r=t.style,s=ze(n);if(n&&!s){for(const i in n)Ta(r,i,n[i]);if(e&&!ze(e))for(const i in e)n[i]==null&&Ta(r,i,"")}else{const i=r.display;s?e!==n&&(r.cssText=n):e&&t.removeAttribute("style"),"_vod"in t&&(r.display=i)}}const C6=/\s*!important$/;function Ta(t,e,n){if(oe(n))n.forEach(r=>Ta(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=Md(t,e);C6.test(n)?t.setProperty(js(r),n.replace(C6,""),"important"):t[r]=n}}const N6=["Webkit","Moz","ms"],Jo={};function Md(t,e){const n=Jo[e];if(n)return n;let r=Pn(e);if(r!=="filter"&&r in t)return Jo[e]=r;r=wo(r);for(let s=0;sWo||(Hd.then(()=>Wo=0),Wo=Date.now());function Gd(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;tn(zd(r,n.value),e,5,[r])};return n.value=t,n.attached=Qd(),n}function zd(t,e){if(oe(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>s=>!s._stopped&&r&&r(s))}else return e}const k6=/^on[a-z]/,Vd=(t,e,n,r,s=!1,i,o,a,c)=>{e==="class"?Bd(t,r,s):e==="style"?Sd(t,n,r):go(e)?ac(e)||Dd(t,e,n,r,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):jd(t,e,r,s))?Fd(t,e,r,i,o,a,c):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),_d(t,e,r,s))};function jd(t,e,n,r){return r?!!(e==="innerHTML"||e==="textContent"||e in t&&k6.test(e)&&le(n)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||k6.test(e)&&ze(n)?!1:e in t}const B6=t=>{const e=t.props["onUpdate:modelValue"]||!1;return oe(e)?n=>T1(e,n):e};function Kd(t){t.target.composing=!0}function S6(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Jd={created(t,{modifiers:{lazy:e,trim:n,number:r}},s){t._assign=B6(s);const i=r||s.props&&s.props.type==="number";R0(t,e?"change":"input",o=>{if(o.target.composing)return;let a=t.value;n&&(a=a.trim()),i&&(a=z1(a)),t._assign(a)}),n&&R0(t,"change",()=>{t.value=t.value.trim()}),e||(R0(t,"compositionstart",Kd),R0(t,"compositionend",S6),R0(t,"change",S6))},mounted(t,{value:e}){t.value=e==null?"":e},beforeUpdate(t,{value:e,modifiers:{lazy:n,trim:r,number:s}},i){if(t._assign=B6(i),t.composing||document.activeElement===t&&t.type!=="range"&&(n||r&&t.value.trim()===e||(s||t.type==="number")&&z1(t.value)===e))return;const o=e==null?"":e;t.value!==o&&(t.value=o)}},Wd=bt({patchProp:Vd},kd);let M6;function Zd(){return M6||(M6=cd(Wd))}const Yd=(...t)=>{const e=Zd().createApp(...t),{mount:n}=e;return e.mount=r=>{const s=qd(r);if(!s)return;const i=e._component;!le(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.innerHTML="";const o=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},e};function qd(t){return ze(t)?document.querySelector(t):t}var Xd=!1;/*! + * pinia v2.0.28 + * (c) 2022 Eduardo San Martin Morote + * @license MIT + */let hu;const No=t=>hu=t,bu=Symbol();function Pa(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var di;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(di||(di={}));function $d(){const t=Al(!0),e=t.run(()=>mn({}));let n=[],r=[];const s=Ss({install(i){No(s),s._a=i,i.provide(bu,s),i.config.globalProperties.$pinia=s,r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!Xd?r.push(i):n.push(i),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return s}const pu=()=>{};function _6(t,e,n,r=pu){t.push(e);const s=()=>{const i=t.indexOf(e);i>-1&&(t.splice(i,1),r())};return!n&&H2()&&Q2(s),s}function P0(t,...e){t.slice().forEach(n=>{n(...e)})}function Ia(t,e){t instanceof Map&&e instanceof Map&&e.forEach((n,r)=>t.set(r,n)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n],s=t[n];Pa(s)&&Pa(r)&&t.hasOwnProperty(n)&&!De(r)&&!Ir(r)?t[n]=Ia(s,r):t[n]=r}return t}const eh=Symbol();function th(t){return!Pa(t)||!t.hasOwnProperty(eh)}const{assign:or}=Object;function nh(t){return!!(De(t)&&t.effect)}function rh(t,e,n,r){const{state:s,actions:i,getters:o}=e,a=n.state.value[t];let c;function l(){a||(n.state.value[t]=s?s():{});const u=g8(n.state.value[t]);return or(u,i,Object.keys(o||{}).reduce((f,h)=>(f[h]=Ss(lt(()=>{No(n);const p=n._s.get(t);return o[h].call(p,p)})),f),{}))}return c=gu(t,l,e,n,r,!0),c.$reset=function(){const f=s?s():{};this.$patch(h=>{or(h,f)})},c}function gu(t,e,n={},r,s,i){let o;const a=or({actions:{}},n),c={deep:!0};let l,u,f=Ss([]),h=Ss([]),p;const w=r.state.value[t];!i&&!w&&(r.state.value[t]={}),mn({});let m;function x(L){let D;l=u=!1,typeof L=="function"?(L(r.state.value[t]),D={type:di.patchFunction,storeId:t,events:p}):(Ia(r.state.value[t],L),D={type:di.patchObject,payload:L,storeId:t,events:p});const de=m=Symbol();wc().then(()=>{m===de&&(l=!0)}),u=!0,P0(f,D,r.state.value[t])}const A=pu;function N(){o.stop(),f=[],h=[],r._s.delete(t)}function O(L,D){return function(){No(r);const de=Array.from(arguments),re=[],se=[];function ve(S){re.push(S)}function Me(S){se.push(S)}P0(h,{args:de,name:L,store:G,after:ve,onError:Me});let _e;try{_e=D.apply(this&&this.$id===t?this:G,de)}catch(S){throw P0(se,S),S}return _e instanceof Promise?_e.then(S=>(P0(re,S),S)).catch(S=>(P0(se,S),Promise.reject(S))):(P0(re,_e),_e)}}const K={_p:r,$id:t,$onAction:_6.bind(null,h),$patch:x,$reset:A,$subscribe(L,D={}){const de=_6(f,L,D.detached,()=>re()),re=o.run(()=>ci(()=>r.state.value[t],se=>{(D.flush==="sync"?u:l)&&L({storeId:t,type:di.direct,events:p},se)},or({},c,D)));return de},$dispose:N},G=Ws(K);r._s.set(t,G);const Q=r._e.run(()=>(o=Al(),o.run(()=>e())));for(const L in Q){const D=Q[L];if(De(D)&&!nh(D)||Ir(D))i||(w&&th(D)&&(De(D)?D.value=w[L]:Ia(D,w[L])),r.state.value[t][L]=D);else if(typeof D=="function"){const de=O(L,D);Q[L]=de,a.actions[L]=D}}return or(G,Q),or(ye(G),Q),Object.defineProperty(G,"$state",{get:()=>r.state.value[t],set:L=>{x(D=>{or(D,L)})}}),r._p.forEach(L=>{or(G,o.run(()=>L({store:G,app:r._a,pinia:r,options:a})))}),w&&i&&n.hydrate&&n.hydrate(G.$state,w),l=!0,u=!0,G}function sh(t,e,n){let r,s;const i=typeof e=="function";typeof t=="string"?(r=t,s=i?n:e):(s=t,r=t.id);function o(a,c){const l=Ad();return a=a||l&&vn(bu,null),a&&No(a),a=hu,a._s.has(r)||(i?gu(r,e,s,a):rh(r,s,a)),a._s.get(r)}return o.$id=r,o}/*! + * vue-router v4.1.6 + * (c) 2022 Eduardo San Martin Morote + * @license MIT + */const k0=typeof window<"u";function ih(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const Ae=Object.assign;function Zo(t,e){const n={};for(const r in e){const s=e[r];n[r]=nn(s)?s.map(t):t(s)}return n}const hi=()=>{},nn=Array.isArray,oh=/\/$/,ah=t=>t.replace(oh,"");function Yo(t,e,n="/"){let r,s={},i="",o="";const a=e.indexOf("#");let c=e.indexOf("?");return a=0&&(c=-1),c>-1&&(r=e.slice(0,c),i=e.slice(c+1,a>-1?a:e.length),s=t(i)),a>-1&&(r=r||e.slice(0,a),o=e.slice(a,e.length)),r=fh(r!=null?r:e,n),{fullPath:r+(i&&"?")+i+o,path:r,query:s,hash:o}}function ch(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function F6(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function lh(t,e,n){const r=e.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Fs(e.matched[r],n.matched[s])&&yu(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function Fs(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function yu(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!uh(t[n],e[n]))return!1;return!0}function uh(t,e){return nn(t)?U6(t,e):nn(e)?U6(e,t):t===e}function U6(t,e){return nn(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function fh(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/");let s=n.length-1,i,o;for(i=0;i1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var Ci;(function(t){t.pop="pop",t.push="push"})(Ci||(Ci={}));var bi;(function(t){t.back="back",t.forward="forward",t.unknown=""})(bi||(bi={}));function dh(t){if(!t)if(k0){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),ah(t)}const hh=/^[^#]+#/;function bh(t,e){return t.replace(hh,"#")+e}function ph(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const Oo=()=>({left:window.pageXOffset,top:window.pageYOffset});function gh(t){let e;if("el"in t){const n=t.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;e=ph(s,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function D6(t,e){return(history.state?history.state.position-e:-1)+t}const Ca=new Map;function yh(t,e){Ca.set(t,e)}function mh(t){const e=Ca.get(t);return Ca.delete(t),e}let wh=()=>location.protocol+"//"+location.host;function mu(t,e){const{pathname:n,search:r,hash:s}=e,i=t.indexOf("#");if(i>-1){let a=s.includes(t.slice(i))?t.slice(i).length:1,c=s.slice(a);return c[0]!=="/"&&(c="/"+c),F6(c,"")}return F6(n,t)+r+s}function Ah(t,e,n,r){let s=[],i=[],o=null;const a=({state:h})=>{const p=mu(t,location),w=n.value,m=e.value;let x=0;if(h){if(n.value=p,e.value=h,o&&o===w){o=null;return}x=m?h.position-m.position:0}else r(p);s.forEach(A=>{A(n.value,w,{delta:x,type:Ci.pop,direction:x?x>0?bi.forward:bi.back:bi.unknown})})};function c(){o=n.value}function l(h){s.push(h);const p=()=>{const w=s.indexOf(h);w>-1&&s.splice(w,1)};return i.push(p),p}function u(){const{history:h}=window;!h.state||h.replaceState(Ae({},h.state,{scroll:Oo()}),"")}function f(){for(const h of i)h();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u),{pauseListeners:c,listen:l,destroy:f}}function L6(t,e,n,r=!1,s=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:s?Oo():null}}function Eh(t){const{history:e,location:n}=window,r={value:mu(t,n)},s={value:e.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function i(c,l,u){const f=t.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?t:t.slice(f))+c:wh()+t+c;try{e[u?"replaceState":"pushState"](l,"",h),s.value=l}catch(p){console.error(p),n[u?"replace":"assign"](h)}}function o(c,l){const u=Ae({},e.state,L6(s.value.back,c,s.value.forward,!0),l,{position:s.value.position});i(c,u,!0),r.value=c}function a(c,l){const u=Ae({},s.value,e.state,{forward:c,scroll:Oo()});i(u.current,u,!0);const f=Ae({},L6(r.value,c,null),{position:u.position+1},l);i(c,f,!1),r.value=c}return{location:r,state:s,push:a,replace:o}}function xh(t){t=dh(t);const e=Eh(t),n=Ah(t,e.state,e.location,e.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const s=Ae({location:"",base:t,go:r,createHref:bh.bind(null,t)},e,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>e.state.value}),s}function vh(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),xh(t)}function Th(t){return typeof t=="string"||t&&typeof t=="object"}function wu(t){return typeof t=="string"||typeof t=="symbol"}const tr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Au=Symbol("");var H6;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(H6||(H6={}));function Us(t,e){return Ae(new Error,{type:t,[Au]:!0},e)}function In(t,e){return t instanceof Error&&Au in t&&(e==null||!!(t.type&e))}const Q6="[^/]+?",Ph={sensitive:!1,strict:!1,start:!0,end:!0},Ih=/[.+*?^${}()[\]/\\]/g;function Ch(t,e){const n=Ae({},Ph,e),r=[];let s=n.start?"^":"";const i=[];for(const l of t){const u=l.length?[]:[90];n.strict&&!l.length&&(s+="/");for(let f=0;fe.length?e.length===1&&e[0]===40+40?1:-1:0}function Oh(t,e){let n=0;const r=t.score,s=e.score;for(;n0&&e[e.length-1]<0}const Rh={type:0,value:""},kh=/[a-zA-Z0-9_]/;function Bh(t){if(!t)return[[]];if(t==="/")return[[Rh]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(p){throw new Error(`ERR (${n})/"${l}": ${p}`)}let n=0,r=n;const s=[];let i;function o(){i&&s.push(i),i=[]}let a=0,c,l="",u="";function f(){!l||(n===0?i.push({type:0,value:l}):n===1||n===2||n===3?(i.length>1&&(c==="*"||c==="+")&&e(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:l,regexp:u,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):e("Invalid state to consume buffer"),l="")}function h(){l+=c}for(;a{o(N)}:hi}function o(u){if(wu(u)){const f=r.get(u);f&&(r.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(o),u.alias.forEach(o))}}function a(){return n}function c(u){let f=0;for(;f=0&&(u.record.path!==n[f].record.path||!Eu(u,n[f]));)f++;n.splice(f,0,u),u.record.name&&!V6(u)&&r.set(u.record.name,u)}function l(u,f){let h,p={},w,m;if("name"in u&&u.name){if(h=r.get(u.name),!h)throw Us(1,{location:u});m=h.record.name,p=Ae(z6(f.params,h.keys.filter(N=>!N.optional).map(N=>N.name)),u.params&&z6(u.params,h.keys.map(N=>N.name))),w=h.stringify(p)}else if("path"in u)w=u.path,h=n.find(N=>N.re.test(w)),h&&(p=h.parse(w),m=h.record.name);else{if(h=f.name?r.get(f.name):n.find(N=>N.re.test(f.path)),!h)throw Us(1,{location:u,currentLocation:f});m=h.record.name,p=Ae({},f.params,u.params),w=h.stringify(p)}const x=[];let A=h;for(;A;)x.unshift(A.record),A=A.parent;return{name:m,path:w,params:p,matched:x,meta:Uh(x)}}return t.forEach(u=>i(u)),{addRoute:i,resolve:l,removeRoute:o,getRoutes:a,getRecordMatcher:s}}function z6(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function _h(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:Fh(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function Fh(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const r in t.components)e[r]=typeof n=="boolean"?n:n[r];return e}function V6(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function Uh(t){return t.reduce((e,n)=>Ae(e,n.meta),{})}function j6(t,e){const n={};for(const r in t)n[r]=r in e?e[r]:t[r];return n}function Eu(t,e){return e.children.some(n=>n===t||Eu(t,n))}const xu=/#/g,Dh=/&/g,Lh=/\//g,Hh=/=/g,Qh=/\?/g,vu=/\+/g,Gh=/%5B/g,zh=/%5D/g,Tu=/%5E/g,Vh=/%60/g,Pu=/%7B/g,jh=/%7C/g,Iu=/%7D/g,Kh=/%20/g;function Tc(t){return encodeURI(""+t).replace(jh,"|").replace(Gh,"[").replace(zh,"]")}function Jh(t){return Tc(t).replace(Pu,"{").replace(Iu,"}").replace(Tu,"^")}function Na(t){return Tc(t).replace(vu,"%2B").replace(Kh,"+").replace(xu,"%23").replace(Dh,"%26").replace(Vh,"`").replace(Pu,"{").replace(Iu,"}").replace(Tu,"^")}function Wh(t){return Na(t).replace(Hh,"%3D")}function Zh(t){return Tc(t).replace(xu,"%23").replace(Qh,"%3F")}function Yh(t){return t==null?"":Zh(t).replace(Lh,"%2F")}function Z1(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function qh(t){const e={};if(t===""||t==="?")return e;const r=(t[0]==="?"?t.slice(1):t).split("&");for(let s=0;si&&Na(i)):[r&&Na(r)]).forEach(i=>{i!==void 0&&(e+=(e.length?"&":"")+n,i!=null&&(e+="="+i))})}return e}function Xh(t){const e={};for(const n in t){const r=t[n];r!==void 0&&(e[n]=nn(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return e}const $h=Symbol(""),J6=Symbol(""),Pc=Symbol(""),Cu=Symbol(""),Oa=Symbol("");function Xs(){let t=[];function e(r){return t.push(r),()=>{const s=t.indexOf(r);s>-1&&t.splice(s,1)}}function n(){t=[]}return{add:e,list:()=>t,reset:n}}function ar(t,e,n,r,s){const i=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((o,a)=>{const c=f=>{f===!1?a(Us(4,{from:n,to:e})):f instanceof Error?a(f):Th(f)?a(Us(2,{from:e,to:f})):(i&&r.enterCallbacks[s]===i&&typeof f=="function"&&i.push(f),o())},l=t.call(r&&r.instances[s],e,n,c);let u=Promise.resolve(l);t.length<3&&(u=u.then(c)),u.catch(f=>a(f))})}function qo(t,e,n,r){const s=[];for(const i of t)for(const o in i.components){let a=i.components[o];if(!(e!=="beforeRouteEnter"&&!i.instances[o]))if(eb(a)){const l=(a.__vccOpts||a)[e];l&&s.push(ar(l,n,r,i,o))}else{let c=a();s.push(()=>c.then(l=>{if(!l)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${i.path}"`));const u=ih(l)?l.default:l;i.components[o]=u;const h=(u.__vccOpts||u)[e];return h&&ar(h,n,r,i,o)()}))}}return s}function eb(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function W6(t){const e=vn(Pc),n=vn(Cu),r=lt(()=>e.resolve(d0(t.to))),s=lt(()=>{const{matched:c}=r.value,{length:l}=c,u=c[l-1],f=n.matched;if(!u||!f.length)return-1;const h=f.findIndex(Fs.bind(null,u));if(h>-1)return h;const p=Z6(c[l-2]);return l>1&&Z6(u)===p&&f[f.length-1].path!==p?f.findIndex(Fs.bind(null,c[l-2])):h}),i=lt(()=>s.value>-1&&sb(n.params,r.value.params)),o=lt(()=>s.value>-1&&s.value===n.matched.length-1&&yu(n.params,r.value.params));function a(c={}){return rb(c)?e[d0(t.replace)?"replace":"push"](d0(t.to)).catch(hi):Promise.resolve()}return{route:r,href:lt(()=>r.value.href),isActive:i,isExactActive:o,navigate:a}}const tb=r1({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:W6,setup(t,{slots:e}){const n=Ws(W6(t)),{options:r}=vn(Pc),s=lt(()=>({[Y6(t.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Y6(t.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=e.default&&e.default(n);return t.custom?i:du("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),nb=tb;function rb(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function sb(t,e){for(const n in e){const r=e[n],s=t[n];if(typeof r=="string"){if(r!==s)return!1}else if(!nn(s)||s.length!==r.length||r.some((i,o)=>i!==s[o]))return!1}return!0}function Z6(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Y6=(t,e,n)=>t!=null?t:e!=null?e:n,ib=r1({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const r=vn(Oa),s=lt(()=>t.route||r.value),i=vn(J6,0),o=lt(()=>{let l=d0(i);const{matched:u}=s.value;let f;for(;(f=u[l])&&!f.components;)l++;return l}),a=lt(()=>s.value.matched[o.value]);P1(J6,lt(()=>o.value+1)),P1($h,a),P1(Oa,s);const c=mn();return ci(()=>[c.value,a.value,t.name],([l,u,f],[h,p,w])=>{u&&(u.instances[f]=l,p&&p!==u&&l&&l===h&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),l&&u&&(!p||!Fs(u,p)||!h)&&(u.enterCallbacks[f]||[]).forEach(m=>m(l))},{flush:"post"}),()=>{const l=s.value,u=t.name,f=a.value,h=f&&f.components[u];if(!h)return q6(n.default,{Component:h,route:l});const p=f.props[u],w=p?p===!0?l.params:typeof p=="function"?p(l):p:null,x=du(h,Ae({},w,e,{onVnodeUnmounted:A=>{A.component.isUnmounted&&(f.instances[u]=null)},ref:c}));return q6(n.default,{Component:x,route:l})||x}}});function q6(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const Nu=ib;function ob(t){const e=Mh(t.routes,t),n=t.parseQuery||qh,r=t.stringifyQuery||K6,s=t.history,i=Xs(),o=Xs(),a=Xs(),c=_l(tr);let l=tr;k0&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Zo.bind(null,C=>""+C),f=Zo.bind(null,Yh),h=Zo.bind(null,Z1);function p(C,z){let U,Y;return wu(C)?(U=e.getRecordMatcher(C),Y=z):Y=C,e.addRoute(Y,U)}function w(C){const z=e.getRecordMatcher(C);z&&e.removeRoute(z)}function m(){return e.getRoutes().map(C=>C.record)}function x(C){return!!e.getRecordMatcher(C)}function A(C,z){if(z=Ae({},z||c.value),typeof C=="string"){const b=Yo(n,C,z.path),y=e.resolve({path:b.path},z),P=s.createHref(b.fullPath);return Ae(b,y,{params:h(y.params),hash:Z1(b.hash),redirectedFrom:void 0,href:P})}let U;if("path"in C)U=Ae({},C,{path:Yo(n,C.path,z.path).path});else{const b=Ae({},C.params);for(const y in b)b[y]==null&&delete b[y];U=Ae({},C,{params:f(C.params)}),z.params=f(z.params)}const Y=e.resolve(U,z),ae=C.hash||"";Y.params=u(h(Y.params));const we=ch(r,Ae({},C,{hash:Jh(ae),path:Y.path})),ce=s.createHref(we);return Ae({fullPath:we,hash:ae,query:r===K6?Xh(C.query):C.query||{}},Y,{redirectedFrom:void 0,href:ce})}function N(C){return typeof C=="string"?Yo(n,C,c.value.path):Ae({},C)}function O(C,z){if(l!==C)return Us(8,{from:z,to:C})}function K(C){return L(C)}function G(C){return K(Ae(N(C),{replace:!0}))}function Q(C){const z=C.matched[C.matched.length-1];if(z&&z.redirect){const{redirect:U}=z;let Y=typeof U=="function"?U(C):U;return typeof Y=="string"&&(Y=Y.includes("?")||Y.includes("#")?Y=N(Y):{path:Y},Y.params={}),Ae({query:C.query,hash:C.hash,params:"path"in Y?{}:C.params},Y)}}function L(C,z){const U=l=A(C),Y=c.value,ae=C.state,we=C.force,ce=C.replace===!0,b=Q(U);if(b)return L(Ae(N(b),{state:typeof b=="object"?Ae({},ae,b.state):ae,force:we,replace:ce}),z||U);const y=U;y.redirectedFrom=z;let P;return!we&&lh(r,Y,U)&&(P=Us(16,{to:y,from:Y}),Te(Y,Y,!0,!1)),(P?Promise.resolve(P):de(y,Y)).catch(I=>In(I)?In(I,2)?I:ue(I):W(I,y,Y)).then(I=>{if(I){if(In(I,2))return L(Ae({replace:ce},N(I.to),{state:typeof I.to=="object"?Ae({},ae,I.to.state):ae,force:we}),z||y)}else I=se(y,Y,!0,ce,ae);return re(y,Y,I),I})}function D(C,z){const U=O(C,z);return U?Promise.reject(U):Promise.resolve()}function de(C,z){let U;const[Y,ae,we]=ab(C,z);U=qo(Y.reverse(),"beforeRouteLeave",C,z);for(const b of Y)b.leaveGuards.forEach(y=>{U.push(ar(y,C,z))});const ce=D.bind(null,C,z);return U.push(ce),I0(U).then(()=>{U=[];for(const b of i.list())U.push(ar(b,C,z));return U.push(ce),I0(U)}).then(()=>{U=qo(ae,"beforeRouteUpdate",C,z);for(const b of ae)b.updateGuards.forEach(y=>{U.push(ar(y,C,z))});return U.push(ce),I0(U)}).then(()=>{U=[];for(const b of C.matched)if(b.beforeEnter&&!z.matched.includes(b))if(nn(b.beforeEnter))for(const y of b.beforeEnter)U.push(ar(y,C,z));else U.push(ar(b.beforeEnter,C,z));return U.push(ce),I0(U)}).then(()=>(C.matched.forEach(b=>b.enterCallbacks={}),U=qo(we,"beforeRouteEnter",C,z),U.push(ce),I0(U))).then(()=>{U=[];for(const b of o.list())U.push(ar(b,C,z));return U.push(ce),I0(U)}).catch(b=>In(b,8)?b:Promise.reject(b))}function re(C,z,U){for(const Y of a.list())Y(C,z,U)}function se(C,z,U,Y,ae){const we=O(C,z);if(we)return we;const ce=z===tr,b=k0?history.state:{};U&&(Y||ce?s.replace(C.fullPath,Ae({scroll:ce&&b&&b.scroll},ae)):s.push(C.fullPath,ae)),c.value=C,Te(C,z,U,ce),ue()}let ve;function Me(){ve||(ve=s.listen((C,z,U)=>{if(!vt.listening)return;const Y=A(C),ae=Q(Y);if(ae){L(Ae(ae,{replace:!0}),Y).catch(hi);return}l=Y;const we=c.value;k0&&yh(D6(we.fullPath,U.delta),Oo()),de(Y,we).catch(ce=>In(ce,12)?ce:In(ce,2)?(L(ce.to,Y).then(b=>{In(b,20)&&!U.delta&&U.type===Ci.pop&&s.go(-1,!1)}).catch(hi),Promise.reject()):(U.delta&&s.go(-U.delta,!1),W(ce,Y,we))).then(ce=>{ce=ce||se(Y,we,!1),ce&&(U.delta&&!In(ce,8)?s.go(-U.delta,!1):U.type===Ci.pop&&In(ce,20)&&s.go(-1,!1)),re(Y,we,ce)}).catch(hi)}))}let _e=Xs(),S=Xs(),F;function W(C,z,U){ue(C);const Y=S.list();return Y.length?Y.forEach(ae=>ae(C,z,U)):console.error(C),Promise.reject(C)}function $(){return F&&c.value!==tr?Promise.resolve():new Promise((C,z)=>{_e.add([C,z])})}function ue(C){return F||(F=!C,Me(),_e.list().forEach(([z,U])=>C?U(C):z()),_e.reset()),C}function Te(C,z,U,Y){const{scrollBehavior:ae}=t;if(!k0||!ae)return Promise.resolve();const we=!U&&mh(D6(C.fullPath,0))||(Y||!U)&&history.state&&history.state.scroll||null;return wc().then(()=>ae(C,z,we)).then(ce=>ce&&gh(ce)).catch(ce=>W(ce,C,z))}const Ce=C=>s.go(C);let Ee;const st=new Set,vt={currentRoute:c,listening:!0,addRoute:p,removeRoute:w,hasRoute:x,getRoutes:m,resolve:A,options:t,push:K,replace:G,go:Ce,back:()=>Ce(-1),forward:()=>Ce(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:S.add,isReady:$,install(C){const z=this;C.component("RouterLink",nb),C.component("RouterView",Nu),C.config.globalProperties.$router=z,Object.defineProperty(C.config.globalProperties,"$route",{enumerable:!0,get:()=>d0(c)}),k0&&!Ee&&c.value===tr&&(Ee=!0,K(s.location).catch(ae=>{}));const U={};for(const ae in tr)U[ae]=lt(()=>c.value[ae]);C.provide(Pc,z),C.provide(Cu,Ws(U)),C.provide(Oa,c);const Y=C.unmount;st.add(C),C.unmount=function(){st.delete(C),st.size<1&&(l=tr,ve&&ve(),ve=null,c.value=tr,Ee=!1,F=!1),Y()}}};return vt}function I0(t){return t.reduce((e,n)=>e.then(()=>n()),Promise.resolve())}function ab(t,e){const n=[],r=[],s=[],i=Math.max(e.matched.length,t.matched.length);for(let o=0;oFs(l,a))?r.push(a):n.push(a));const c=t.matched[o];c&&(e.matched.find(l=>Fs(l,c))||s.push(c))}return[n,r,s]}const cb="/demo-quiz-upm2024/assets/logo.a47ed3d4.svg",lb="/demo-quiz-upm2024/assets/upm-logo.8534f477.png",Ic=(t,e)=>{const n=t.__vccOpts||t;for(const[r,s]of e)n[r]=s;return n},ub={},fb={class:"sticky top-0"},db={class:"bg-primaryMedium border-gray-200 p-2 xl:py-4 xl:px-0"},hb={class:"flex flex-wrap justify-between items-center mx-auto max-w-screen-md"},bb=Ie("img",{src:cb,class:"h-6 sm:h-9",alt:"Oasis logo"},null,-1),pb=Ie("a",{href:"https://tekmovanja.acm.si/?q=upm"},[Ie("img",{src:lb,class:"h-6 sm:h-9",alt:"UPM logo"})],-1),gb=Ie("p",{class:"text-white text-right mt-3 mr-3"},[kt(" Te\u017Eave, vpra\u0161anja, pohvale?"),Ie("br"),kt(" Obi\u0161\u010Dite "),Ie("a",{href:"https://oasis.io/discord",target:"_blank"},"Discord kanal #slovenia \u{1F1F8}\u{1F1EE} ")],-1);function yb(t,e){const n=ql("RouterLink");return E0(),s1("header",fb,[Ie("nav",db,[Ie("div",hb,[Le(n,{to:"/"},{default:K1(()=>[bb]),_:1}),pb])]),gb])}const mb=Ic(ub,[["render",yb]]),wb={},Ab={class:""},Eb=Ie("p",{class:"text-white text-center"},[kt(" Copyright \xA9 2024 "),Ie("a",{href:"https://oasisprotocol.org",target:"_blank"},"Oasis Protocol Foundation"),kt(" pod licen\u010Dnimi pogoji "),Ie("a",{href:"https://www.apache.org/licenses/LICENSE-2.0",target:"_blank"},"Apache 2.0"),kt(". ")],-1),xb=[Eb];function vb(t,e){return E0(),s1("footer",Ab,xb)}const Tb=Ic(wb,[["render",vb]]),Pb={class:"py-5 px-2 m-auto max-w-screen-md lg:px-0"},Ib=r1({__name:"App",setup(t){return(e,n)=>(E0(),s1(Gt,null,[Le(mb),Ie("main",Pb,[Le(d0(Nu),{el:"main"})]),Le(Tb)],64))}});const Cb="modulepreload",Nb=function(t){return"/demo-quiz-upm2024/"+t},X6={},$6=function(e,n,r){if(!n||n.length===0)return e();const s=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=Nb(i),i in X6)return;X6[i]=!0;const o=i.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!r)for(let u=s.length-1;u>=0;u--){const f=s[u];if(f.href===i&&(!o||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const l=document.createElement("link");if(l.rel=o?"stylesheet":Cb,o||(l.as="script",l.crossOrigin=""),l.href=i,document.head.appendChild(l),o)return new Promise((u,f)=>{l.addEventListener("load",u),l.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>e())},Ob="6.10.0";function Rb(t,e,n){const r=e.split("|").map(i=>i.trim());for(let i=0;iPromise.resolve(t[r])))).reduce((r,s,i)=>(r[e[i]]=s,r),{})}function ne(t,e,n){for(let r in e){let s=e[r];const i=n?n[r]:null;i&&Rb(s,i,r),Object.defineProperty(t,r,{enumerable:!0,value:s,writable:!1})}}function _0(t){if(t==null)return"null";if(Array.isArray(t))return"[ "+t.map(_0).join(", ")+" ]";if(t instanceof Uint8Array){const e="0123456789abcdef";let n="0x";for(let r=0;r>4],n+=e[t[r]&15];return n}if(typeof t=="object"&&typeof t.toJSON=="function")return _0(t.toJSON());switch(typeof t){case"boolean":case"symbol":return t.toString();case"bigint":return BigInt(t).toString();case"number":return t.toString();case"string":return JSON.stringify(t);case"object":{const e=Object.keys(t);return e.sort(),"{ "+e.map(n=>`${_0(n)}: ${_0(t[n])}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function nt(t,e){return t&&t.code===e}function Cc(t){return nt(t,"CALL_EXCEPTION")}function Qe(t,e,n){let r=t;{const i=[];if(n){if("message"in n||"code"in n||"name"in n)throw new Error(`value will overwrite populated values: ${_0(n)}`);for(const o in n){if(o==="shortMessage")continue;const a=n[o];i.push(o+"="+_0(a))}}i.push(`code=${e}`),i.push(`version=${Ob}`),i.length&&(t+=" ("+i.join(", ")+")")}let s;switch(e){case"INVALID_ARGUMENT":s=new TypeError(t);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":s=new RangeError(t);break;default:s=new Error(t)}return ne(s,{code:e}),n&&Object.assign(s,n),s.shortMessage==null&&ne(s,{shortMessage:r}),s}function k(t,e,n,r){if(!t)throw Qe(e,n,r)}function E(t,e,n,r){k(t,e,"INVALID_ARGUMENT",{argument:n,value:r})}function Ou(t,e,n){n==null&&(n=""),n&&(n=": "+n),k(t>=e,"missing arguemnt"+n,"MISSING_ARGUMENT",{count:t,expectedCount:e}),k(t<=e,"too many arguemnts"+n,"UNEXPECTED_ARGUMENT",{count:t,expectedCount:e})}const kb=["NFD","NFC","NFKD","NFKC"].reduce((t,e)=>{try{if("test".normalize(e)!=="test")throw new Error("bad");if(e==="NFD"){const n=String.fromCharCode(233).normalize("NFD"),r=String.fromCharCode(101,769);if(n!==r)throw new Error("broken")}t.push(e)}catch{}return t},[]);function Bb(t){k(kb.indexOf(t)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:t}})}function Ro(t,e,n){if(n==null&&(n=""),t!==e){let r=n,s="new";n&&(r+=".",s+=" "+n),k(!1,`private constructor; use ${r}from* methods`,"UNSUPPORTED_OPERATION",{operation:s})}}function Ru(t,e,n){if(t instanceof Uint8Array)return n?new Uint8Array(t):t;if(typeof t=="string"&&t.match(/^0x([0-9a-f][0-9a-f])*$/i)){const r=new Uint8Array((t.length-2)/2);let s=2;for(let i=0;i>4]+e5[s&15]}return n}function Ge(t){return"0x"+t.map(e=>q(e).substring(2)).join("")}function V0(t){return Se(t,!0)?(t.length-2)/2:ge(t).length}function Fe(t,e,n){const r=ge(t);return n!=null&&n>r.length&&k(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:r,length:r.length,offset:n}),q(r.slice(e==null?0:e,n==null?r.length:n))}function ku(t,e,n){const r=ge(t);k(e>=r.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(r),length:e,offset:e+1});const s=new Uint8Array(e);return s.fill(0),n?s.set(r,e-r.length):s.set(r,0),q(s)}function g0(t,e){return ku(t,e,!0)}function Mb(t,e){return ku(t,e,!1)}const ko=BigInt(0),Xt=BigInt(1),F0=9007199254740991;function _b(t,e){const n=Bo(t,"value"),r=BigInt(fe(e,"width"));if(k(n>>r===ko,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:t}),n>>r-Xt){const s=(Xt<=-F0&&t<=F0,"overflow",e||"value",t),BigInt(t);case"string":try{if(t==="")throw new Error("empty string");return t[0]==="-"&&t[1]!=="-"?-BigInt(t.substring(1)):BigInt(t)}catch(n){E(!1,`invalid BigNumberish string: ${n.message}`,e||"value",t)}}E(!1,"invalid BigNumberish value",e||"value",t)}function Bo(t,e){const n=X(t,e);return k(n>=ko,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:t}),n}const t5="0123456789abcdef";function Nc(t){if(t instanceof Uint8Array){let e="0x0";for(const n of t)e+=t5[n>>4],e+=t5[n&15];return BigInt(e)}return X(t)}function fe(t,e){switch(typeof t){case"bigint":return E(t>=-F0&&t<=F0,"overflow",e||"value",t),Number(t);case"number":return E(Number.isInteger(t),"underflow",e||"value",t),E(t>=-F0&&t<=F0,"overflow",e||"value",t),t;case"string":try{if(t==="")throw new Error("empty string");return fe(BigInt(t),e)}catch(n){E(!1,`invalid numeric string: ${n.message}`,e||"value",t)}}E(!1,"invalid numeric value",e||"value",t)}function Fb(t){return fe(Nc(t))}function kr(t,e){let r=Bo(t,"value").toString(16);if(e==null)r.length%2&&(r="0"+r);else{const s=fe(e,"width");for(k(s*2>=r.length,`value exceeds width (${s} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:t});r.length>6===2;o++)i++;return i}return t==="OVERRUN"?n.length-e-1:0}function Qb(t,e,n,r,s){return t==="OVERLONG"?(E(typeof s=="number","invalid bad code point for replacement","badCodepoint",s),r.push(s),0):(r.push(65533),Mu(t,e,n))}const Gb=Object.freeze({error:Hb,ignore:Mu,replace:Qb});function zb(t,e){e==null&&(e=Gb.error);const n=ge(t,"bytes"),r=[];let s=0;for(;s>7===0){r.push(i);continue}let o=null,a=null;if((i&224)===192)o=1,a=127;else if((i&240)===224)o=2,a=2047;else if((i&248)===240)o=3,a=65535;else{(i&192)===128?s+=e("UNEXPECTED_CONTINUE",s-1,n,r):s+=e("BAD_PREFIX",s-1,n,r);continue}if(s-1+o>=n.length){s+=e("OVERRUN",s-1,n,r);continue}let c=i&(1<<8-o-1)-1;for(let l=0;l1114111){s+=e("OUT_OF_RANGE",s-1-o,n,r,c);continue}if(c>=55296&&c<=57343){s+=e("UTF16_SURROGATE",s-1-o,n,r,c);continue}if(c<=a){s+=e("OVERLONG",s-1-o,n,r,c);continue}r.push(c)}}return r}function Kn(t,e){e!=null&&(Bb(e),t=t.normalize(e));let n=[];for(let r=0;r>6|192),n.push(s&63|128);else if((s&64512)==55296){r++;const i=t.charCodeAt(r);E(r>18|240),n.push(o>>12&63|128),n.push(o>>6&63|128),n.push(o&63|128)}else n.push(s>>12|224),n.push(s>>6&63|128),n.push(s&63|128)}return new Uint8Array(n)}function Vb(t){return t.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))).join("")}function Oc(t,e){return Vb(zb(t,e))}function _u(t){async function e(n,r){const s=n.url.split(":")[0].toLowerCase();k(s==="http"||s==="https",`unsupported protocol ${s}`,"UNSUPPORTED_OPERATION",{info:{protocol:s},operation:"request"}),k(s==="https"||!n.credentials||n.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let i;if(r){const f=new AbortController;i=f.signal,r.addListener(()=>{f.abort()})}const o={method:n.method,headers:new Headers(Array.from(n)),body:n.body||void 0,signal:i},a=await fetch(n.url,o),c={};a.headers.forEach((f,h)=>{c[h.toLowerCase()]=f});const l=await a.arrayBuffer(),u=l==null?null:new Uint8Array(l);return{statusCode:a.status,statusMessage:a.statusText,headers:c,body:u}}return e}const jb=12,Kb=250;let s5=_u();const Jb=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),Wb=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let Xo=!1;async function Fu(t,e){try{const n=t.match(Jb);if(!n)throw new Error("invalid data");return new Nr(200,"OK",{"content-type":n[1]||"text/plain"},n[2]?Db(n[3]):Yb(n[3]))}catch{return new Nr(599,"BAD REQUEST (invalid data: URI)",{},null,new Zn(t))}}function Uu(t){async function e(n,r){try{const s=n.match(Wb);if(!s)throw new Error("invalid link");return new Zn(`${t}${s[2]}`)}catch{return new Nr(599,"BAD REQUEST (invalid IPFS URI)",{},null,new Zn(n))}}return e}const p1={data:Fu,ipfs:Uu("https://gateway.ipfs.io/ipfs/")},Du=new WeakMap;var Vr,lr;class Zb{constructor(e){T(this,Vr,void 0);T(this,lr,void 0);g(this,Vr,[]),g(this,lr,!1),Du.set(e,()=>{if(!d(this,lr)){g(this,lr,!0);for(const n of d(this,Vr))setTimeout(()=>{n()},0);g(this,Vr,[])}})}addListener(e){k(!d(this,lr),"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),d(this,Vr).push(e)}get cancelled(){return d(this,lr)}checkSignal(){k(!this.cancelled,"cancelled","CANCELLED",{})}}Vr=new WeakMap,lr=new WeakMap;function g1(t){if(t==null)throw new Error("missing signal; should not happen");return t.checkSignal(),t}var J0,W0,Jt,kn,Z0,Y0,Ve,Ct,Bn,jr,Kr,Jr,un,Sn,ur,Wr,ri;const oo=class{constructor(e){T(this,Wr);T(this,J0,void 0);T(this,W0,void 0);T(this,Jt,void 0);T(this,kn,void 0);T(this,Z0,void 0);T(this,Y0,void 0);T(this,Ve,void 0);T(this,Ct,void 0);T(this,Bn,void 0);T(this,jr,void 0);T(this,Kr,void 0);T(this,Jr,void 0);T(this,un,void 0);T(this,Sn,void 0);T(this,ur,void 0);g(this,Y0,String(e)),g(this,J0,!1),g(this,W0,!0),g(this,Jt,{}),g(this,kn,""),g(this,Z0,3e5),g(this,Sn,{slotInterval:Kb,maxAttempts:jb}),g(this,ur,null)}get url(){return d(this,Y0)}set url(e){g(this,Y0,String(e))}get body(){return d(this,Ve)==null?null:new Uint8Array(d(this,Ve))}set body(e){if(e==null)g(this,Ve,void 0),g(this,Ct,void 0);else if(typeof e=="string")g(this,Ve,Kn(e)),g(this,Ct,"text/plain");else if(e instanceof Uint8Array)g(this,Ve,e),g(this,Ct,"application/octet-stream");else if(typeof e=="object")g(this,Ve,Kn(JSON.stringify(e))),g(this,Ct,"application/json");else throw new Error("invalid body")}hasBody(){return d(this,Ve)!=null}get method(){return d(this,kn)?d(this,kn):this.hasBody()?"POST":"GET"}set method(e){e==null&&(e=""),g(this,kn,String(e).toUpperCase())}get headers(){const e=Object.assign({},d(this,Jt));return d(this,Bn)&&(e.authorization=`Basic ${Lb(Kn(d(this,Bn)))}`),this.allowGzip&&(e["accept-encoding"]="gzip"),e["content-type"]==null&&d(this,Ct)&&(e["content-type"]=d(this,Ct)),this.body&&(e["content-length"]=String(this.body.length)),e}getHeader(e){return this.headers[e.toLowerCase()]}setHeader(e,n){d(this,Jt)[String(e).toLowerCase()]=String(n)}clearHeaders(){g(this,Jt,{})}[Symbol.iterator](){const e=this.headers,n=Object.keys(e);let r=0;return{next:()=>{if(r=0,"timeout must be non-zero","timeout",e),g(this,Z0,e)}get preflightFunc(){return d(this,jr)||null}set preflightFunc(e){g(this,jr,e)}get processFunc(){return d(this,Kr)||null}set processFunc(e){g(this,Kr,e)}get retryFunc(){return d(this,Jr)||null}set retryFunc(e){g(this,Jr,e)}get getUrlFunc(){return d(this,ur)||s5}set getUrlFunc(e){g(this,ur,e)}toString(){return``}setThrottleParams(e){e.slotInterval!=null&&(d(this,Sn).slotInterval=e.slotInterval),e.maxAttempts!=null&&(d(this,Sn).maxAttempts=e.maxAttempts)}send(){return k(d(this,un)==null,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),g(this,un,new Zb(this)),V(this,Wr,ri).call(this,0,i5()+this.timeout,0,this,new Nr(0,"",{},null,this))}cancel(){k(d(this,un)!=null,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const e=Du.get(this);if(!e)throw new Error("missing signal; should not happen");e()}redirect(e){const n=this.url.split(":")[0].toLowerCase(),r=e.split(":")[0].toLowerCase();k(this.method==="GET"&&(n!=="https"||r!=="http")&&e.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(e)})`});const s=new oo(e);return s.method="GET",s.allowGzip=this.allowGzip,s.timeout=this.timeout,g(s,Jt,Object.assign({},d(this,Jt))),d(this,Ve)&&g(s,Ve,new Uint8Array(d(this,Ve))),g(s,Ct,d(this,Ct)),s}clone(){const e=new oo(this.url);return g(e,kn,d(this,kn)),d(this,Ve)&&g(e,Ve,d(this,Ve)),g(e,Ct,d(this,Ct)),g(e,Jt,Object.assign({},d(this,Jt))),g(e,Bn,d(this,Bn)),this.allowGzip&&(e.allowGzip=!0),e.timeout=this.timeout,this.allowInsecureAuthentication&&(e.allowInsecureAuthentication=!0),g(e,jr,d(this,jr)),g(e,Kr,d(this,Kr)),g(e,Jr,d(this,Jr)),g(e,ur,d(this,ur)),e}static lockConfig(){Xo=!0}static getGateway(e){return p1[e.toLowerCase()]||null}static registerGateway(e,n){if(e=e.toLowerCase(),e==="http"||e==="https")throw new Error(`cannot intercept ${e}; use registerGetUrl`);if(Xo)throw new Error("gateways locked");p1[e]=n}static registerGetUrl(e){if(Xo)throw new Error("gateways locked");s5=e}static createGetUrlFunc(e){return _u()}static createDataGateway(){return Fu}static createIpfsGatewayFunc(e){return Uu(e)}};let Zn=oo;J0=new WeakMap,W0=new WeakMap,Jt=new WeakMap,kn=new WeakMap,Z0=new WeakMap,Y0=new WeakMap,Ve=new WeakMap,Ct=new WeakMap,Bn=new WeakMap,jr=new WeakMap,Kr=new WeakMap,Jr=new WeakMap,un=new WeakMap,Sn=new WeakMap,ur=new WeakMap,Wr=new WeakSet,ri=async function(e,n,r,s,i){var u,f,h;if(e>=d(this,Sn).maxAttempts)return i.makeServerError("exceeded maximum retry limit");k(i5()<=n,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:s}),r>0&&await qb(r);let o=this.clone();const a=(o.url.split(":")[0]||"").toLowerCase();if(a in p1){const p=await p1[a](o.url,g1(d(s,un)));if(p instanceof Nr){let w=p;if(this.processFunc){g1(d(s,un));try{w=await this.processFunc(o,w)}catch(m){(m.throttle==null||typeof m.stall!="number")&&w.makeServerError("error in post-processing function",m).assertOk()}}return w}o=p}this.preflightFunc&&(o=await this.preflightFunc(o));const c=await this.getUrlFunc(o,g1(d(s,un)));let l=new Nr(c.statusCode,c.statusMessage,c.headers,c.body,s);if(l.statusCode===301||l.statusCode===302){try{const p=l.headers.location||"";return V(u=o.redirect(p),Wr,ri).call(u,e+1,n,0,s,l)}catch{}return l}else if(l.statusCode===429&&(this.retryFunc==null||await this.retryFunc(o,l,e))){const p=l.headers["retry-after"];let w=d(this,Sn).slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return typeof p=="string"&&p.match(/^[1-9][0-9]*$/)&&(w=parseInt(p)),V(f=o.clone(),Wr,ri).call(f,e+1,n,w,s,l)}if(this.processFunc){g1(d(s,un));try{l=await this.processFunc(o,l)}catch(p){(p.throttle==null||typeof p.stall!="number")&&l.makeServerError("error in post-processing function",p).assertOk();let w=d(this,Sn).slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return p.stall>=0&&(w=p.stall),V(h=o.clone(),Wr,ri).call(h,e+1,n,w,s,l)}}return l};var Li,Hi,Qi,Wt,q0,Zr;const e6=class{constructor(e,n,r,s,i){T(this,Li,void 0);T(this,Hi,void 0);T(this,Qi,void 0);T(this,Wt,void 0);T(this,q0,void 0);T(this,Zr,void 0);g(this,Li,e),g(this,Hi,n),g(this,Qi,Object.keys(r).reduce((o,a)=>(o[a.toLowerCase()]=String(r[a]),o),{})),g(this,Wt,s==null?null:new Uint8Array(s)),g(this,q0,i||null),g(this,Zr,{message:""})}toString(){return``}get statusCode(){return d(this,Li)}get statusMessage(){return d(this,Hi)}get headers(){return Object.assign({},d(this,Qi))}get body(){return d(this,Wt)==null?null:new Uint8Array(d(this,Wt))}get bodyText(){try{return d(this,Wt)==null?"":Oc(d(this,Wt))}catch{k(!1,"response body is not valid UTF-8 data","UNSUPPORTED_OPERATION",{operation:"bodyText",info:{response:this}})}}get bodyJson(){try{return JSON.parse(this.bodyText)}catch{k(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){const e=this.headers,n=Object.keys(e);let r=0;return{next:()=>{if(r=0,"invalid stall timeout","stall",n);const r=new Error(e||"throttling requests");throw ne(r,{stall:n,throttle:!0}),r}getHeader(e){return this.headers[e.toLowerCase()]}hasBody(){return d(this,Wt)!=null}get request(){return d(this,q0)}ok(){return d(this,Zr).message===""&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:e,error:n}=d(this,Zr);e===""&&(e=`server response ${this.statusCode} ${this.statusMessage}`),k(!1,e,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:n})}};let Nr=e6;Li=new WeakMap,Hi=new WeakMap,Qi=new WeakMap,Wt=new WeakMap,q0=new WeakMap,Zr=new WeakMap;function i5(){return new Date().getTime()}function Yb(t){return Kn(t.replace(/%([0-9a-f][0-9a-f])/gi,(e,n)=>String.fromCharCode(parseInt(n,16))))}function qb(t){return new Promise(e=>setTimeout(e,t))}function Xb(t){let e=t.toString(16);for(;e.length<2;)e="0"+e;return"0x"+e}function o5(t,e,n){let r=0;for(let s=0;s{k(r<=t.length,"data short segment too short","BUFFER_OVERRUN",{buffer:t,length:t.length,offset:r})};if(t[e]>=248){const r=t[e]-247;n(e+1+r);const s=o5(t,e+1,r);return n(e+1+r+s),a5(t,e,e+1+r,r+s)}else if(t[e]>=192){const r=t[e]-192;return n(e+1+r),a5(t,e,e+1,r)}else if(t[e]>=184){const r=t[e]-183;n(e+1+r);const s=o5(t,e+1,r);n(e+1+r+s);const i=q(t.slice(e+1+r,e+1+r+s));return{consumed:1+r+s,result:i}}else if(t[e]>=128){const r=t[e]-128;n(e+1+r);const s=q(t.slice(e+1,e+1+r));return{consumed:1+r,result:s}}return{consumed:1,result:Xb(t[e])}}function Rc(t){const e=ge(t,"data"),n=Lu(e,0);return E(n.consumed===e.length,"unexpected junk after rlp payload","data",t),n.result}function c5(t){const e=[];for(;t;)e.unshift(t&255),t>>=8;return e}function Hu(t){if(Array.isArray(t)){let r=[];if(t.forEach(function(i){r=r.concat(Hu(i))}),r.length<=55)return r.unshift(192+r.length),r;const s=c5(r.length);return s.unshift(247+s.length),s.concat(r)}const e=Array.prototype.slice.call(ge(t,"object"));if(e.length===1&&e[0]<=127)return e;if(e.length<=55)return e.unshift(128+e.length),e;const n=c5(e.length);return n.unshift(183+n.length),n.concat(e)}const l5="0123456789abcdef";function Ni(t){let e="0x";for(const n of Hu(t))e+=l5[n>>4],e+=l5[n&15];return e}const ft=32,Ra=new Uint8Array(ft),$b=["then"],y1={};function $s(t,e){const n=new Error(`deferred error during ABI decoding triggered accessing ${t}`);throw n.error=e,n}var fr;const mi=class extends Array{constructor(...n){const r=n[0];let s=n[1],i=(n[2]||[]).slice(),o=!0;r!==y1&&(s=n,i=[],o=!1);super(s.length);T(this,fr,void 0);s.forEach((c,l)=>{this[l]=c});const a=i.reduce((c,l)=>(typeof l=="string"&&c.set(l,(c.get(l)||0)+1),c),new Map);if(g(this,fr,Object.freeze(s.map((c,l)=>{const u=i[l];return u!=null&&a.get(u)===1?u:null}))),!!o)return Object.freeze(this),new Proxy(this,{get:(c,l,u)=>{if(typeof l=="string"){if(l.match(/^[0-9]+$/)){const h=fe(l,"%index");if(h<0||h>=this.length)throw new RangeError("out of result range");const p=c[h];return p instanceof Error&&$s(`index ${h}`,p),p}if($b.indexOf(l)>=0)return Reflect.get(c,l,u);const f=c[l];if(f instanceof Function)return function(...h){return f.apply(this===u?c:this,h)};if(!(l in c))return c.getValue.apply(this===u?c:this,[l])}return Reflect.get(c,l,u)}})}toArray(){const n=[];return this.forEach((r,s)=>{r instanceof Error&&$s(`index ${s}`,r),n.push(r)}),n}toObject(){return d(this,fr).reduce((n,r,s)=>(k(r!=null,"value at index ${ index } unnamed","UNSUPPORTED_OPERATION",{operation:"toObject()"}),r in n||(n[r]=this.getValue(r)),n),{})}slice(n,r){n==null&&(n=0),n<0&&(n+=this.length,n<0&&(n=0)),r==null&&(r=this.length),r<0&&(r+=this.length,r<0&&(r=0)),r>this.length&&(r=this.length);const s=[],i=[];for(let o=n;o{d(this,Mn)[e]=u5(n)}}}Mn=new WeakMap,Yr=new WeakMap,X0=new WeakSet,N1=function(e){return d(this,Mn).push(e),g(this,Yr,d(this,Yr)+e.length),e.length};var gt,Nt,qr,Xr,dr,Gi,Sa,ao,Qu;const t6=class{constructor(e,n,r){T(this,Gi);T(this,ao);v(this,"allowLoose");T(this,gt,void 0);T(this,Nt,void 0);T(this,qr,void 0);T(this,Xr,void 0);T(this,dr,void 0);ne(this,{allowLoose:!!n}),g(this,gt,ut(e)),g(this,qr,0),g(this,Xr,null),g(this,dr,r!=null?r:1024),g(this,Nt,0)}get data(){return q(d(this,gt))}get dataLength(){return d(this,gt).length}get consumed(){return d(this,Nt)}get bytes(){return new Uint8Array(d(this,gt))}subReader(e){const n=new t6(d(this,gt).slice(d(this,Nt)+e),this.allowLoose,d(this,dr));return g(n,Xr,this),n}readBytes(e,n){let r=V(this,ao,Qu).call(this,0,e,!!n);return V(this,Gi,Sa).call(this,e),g(this,Nt,d(this,Nt)+r.length),r.slice(0,e)}readValue(){return Nc(this.readBytes(ft))}readIndex(){return Fb(this.readBytes(ft))}};let Ba=t6;gt=new WeakMap,Nt=new WeakMap,qr=new WeakMap,Xr=new WeakMap,dr=new WeakMap,Gi=new WeakSet,Sa=function(e){var n;if(d(this,Xr))return V(n=d(this,Xr),Gi,Sa).call(n,e);g(this,qr,d(this,qr)+e),k(d(this,dr)<1||d(this,qr)<=d(this,dr)*this.dataLength,`compressed ABI data exceeds inflation ratio of ${d(this,dr)} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:ut(d(this,gt)),offset:d(this,Nt),length:e,info:{bytesRead:d(this,qr),dataLength:this.dataLength}})},ao=new WeakSet,Qu=function(e,n,r){let s=Math.ceil(n/ft)*ft;return d(this,Nt)+s>d(this,gt).length&&(this.allowLoose&&r&&d(this,Nt)+n<=d(this,gt).length?s=n:k(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:ut(d(this,gt)),length:d(this,gt).length,offset:d(this,Nt)+s})),d(this,gt).slice(d(this,Nt),d(this,Nt)+s)};function q1(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function kc(t,...e){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}function ep(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");q1(t.outputLen),q1(t.blockLen)}function Ds(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function Gu(t,e){kc(t);const n=e.outputLen;if(t.lengtht instanceof Uint8Array,tp=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),ea=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),ln=(t,e)=>t<<32-e|t>>>e,np=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!np)throw new Error("Non little-endian hardware is not supported");function rp(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function So(t){if(typeof t=="string"&&(t=rp(t)),!zu(t))throw new Error(`expected Uint8Array, got ${typeof t}`);return t}function sp(...t){const e=new Uint8Array(t.reduce((r,s)=>r+s.length,0));let n=0;return t.forEach(r=>{if(!zu(r))throw new Error("Uint8Array expected");e.set(r,n),n+=r.length}),e}class Bc{clone(){return this._cloneInto()}}function Vu(t){const e=r=>t().update(So(r)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function ip(t=32){if($o&&typeof $o.getRandomValues=="function")return $o.getRandomValues(new Uint8Array(t));throw new Error("crypto.getRandomValues must be defined")}class ju extends Bc{constructor(e,n){super(),this.finished=!1,this.destroyed=!1,ep(e);const r=So(n);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const s=this.blockLen,i=new Uint8Array(s);i.set(r.length>s?e.create().update(r).digest():r);for(let o=0;onew ju(t,e).update(n).digest();Ku.create=(t,e)=>new ju(t,e);function op(t,e,n,r){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,n,r);const s=BigInt(32),i=BigInt(4294967295),o=Number(n>>s&i),a=Number(n&i),c=r?4:0,l=r?0:4;t.setUint32(e+c,o,r),t.setUint32(e+l,a,r)}class ap extends Bc{constructor(e,n,r,s){super(),this.blockLen=e,this.outputLen=n,this.padOffset=r,this.isLE=s,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=ea(this.buffer)}update(e){Ds(this);const{view:n,buffer:r,blockLen:s}=this;e=So(e);const i=e.length;for(let o=0;os-o&&(this.process(r,0),o=0);for(let f=o;fu.length)throw new Error("_sha2: outputLen bigger than state");for(let f=0;ft&e^~t&n,lp=(t,e,n)=>t&e^t&n^e&n,up=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),nr=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),rr=new Uint32Array(64);class fp extends ap{constructor(){super(64,32,8,!1),this.A=nr[0]|0,this.B=nr[1]|0,this.C=nr[2]|0,this.D=nr[3]|0,this.E=nr[4]|0,this.F=nr[5]|0,this.G=nr[6]|0,this.H=nr[7]|0}get(){const{A:e,B:n,C:r,D:s,E:i,F:o,G:a,H:c}=this;return[e,n,r,s,i,o,a,c]}set(e,n,r,s,i,o,a,c){this.A=e|0,this.B=n|0,this.C=r|0,this.D=s|0,this.E=i|0,this.F=o|0,this.G=a|0,this.H=c|0}process(e,n){for(let f=0;f<16;f++,n+=4)rr[f]=e.getUint32(n,!1);for(let f=16;f<64;f++){const h=rr[f-15],p=rr[f-2],w=ln(h,7)^ln(h,18)^h>>>3,m=ln(p,17)^ln(p,19)^p>>>10;rr[f]=m+rr[f-7]+w+rr[f-16]|0}let{A:r,B:s,C:i,D:o,E:a,F:c,G:l,H:u}=this;for(let f=0;f<64;f++){const h=ln(a,6)^ln(a,11)^ln(a,25),p=u+h+cp(a,c,l)+up[f]+rr[f]|0,m=(ln(r,2)^ln(r,13)^ln(r,22))+lp(r,s,i)|0;u=l,l=c,c=a,a=o+p|0,o=i,i=s,s=r,r=p+m|0}r=r+this.A|0,s=s+this.B|0,i=i+this.C|0,o=o+this.D|0,a=a+this.E|0,c=c+this.F|0,l=l+this.G|0,u=u+this.H|0,this.set(r,s,i,o,a,c,l,u)}roundClean(){rr.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const dp=Vu(()=>new fp),m1=BigInt(2**32-1),f5=BigInt(32);function hp(t,e=!1){return e?{h:Number(t&m1),l:Number(t>>f5&m1)}:{h:Number(t>>f5&m1)|0,l:Number(t&m1)|0}}function bp(t,e=!1){let n=new Uint32Array(t.length),r=new Uint32Array(t.length);for(let s=0;st<>>32-n,gp=(t,e,n)=>e<>>32-n,yp=(t,e,n)=>e<>>64-n,mp=(t,e,n)=>t<>>64-n,[Ju,Wu,Zu]=[[],[],[]],wp=BigInt(0),ei=BigInt(1),Ap=BigInt(2),Ep=BigInt(7),xp=BigInt(256),vp=BigInt(113);for(let t=0,e=ei,n=1,r=0;t<24;t++){[n,r]=[r,(2*n+3*r)%5],Ju.push(2*(5*r+n)),Wu.push((t+1)*(t+2)/2%64);let s=wp;for(let i=0;i<7;i++)e=(e<>Ep)*vp)%xp,e&Ap&&(s^=ei<<(ei<n>32?yp(t,e,n):pp(t,e,n),h5=(t,e,n)=>n>32?mp(t,e,n):gp(t,e,n);function Ip(t,e=24){const n=new Uint32Array(10);for(let r=24-e;r<24;r++){for(let o=0;o<10;o++)n[o]=t[o]^t[o+10]^t[o+20]^t[o+30]^t[o+40];for(let o=0;o<10;o+=2){const a=(o+8)%10,c=(o+2)%10,l=n[c],u=n[c+1],f=d5(l,u,1)^n[a],h=h5(l,u,1)^n[a+1];for(let p=0;p<50;p+=10)t[o+p]^=f,t[o+p+1]^=h}let s=t[2],i=t[3];for(let o=0;o<24;o++){const a=Wu[o],c=d5(s,i,a),l=h5(s,i,a),u=Ju[o];s=t[u],i=t[u+1],t[u]=c,t[u+1]=l}for(let o=0;o<50;o+=10){for(let a=0;a<10;a++)n[a]=t[o+a];for(let a=0;a<10;a++)t[o+a]^=~n[(a+2)%10]&n[(a+4)%10]}t[0]^=Tp[r],t[1]^=Pp[r]}n.fill(0)}class Sc extends Bc{constructor(e,n,r,s=!1,i=24){if(super(),this.blockLen=e,this.suffix=n,this.outputLen=r,this.enableXOF=s,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,q1(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=tp(this.state)}keccak(){Ip(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){Ds(this);const{blockLen:n,state:r}=this;e=So(e);const s=e.length;for(let i=0;i=r&&this.keccak();const o=Math.min(r-this.posOut,i-s);e.set(n.subarray(this.posOut,this.posOut+o),s),this.posOut+=o,s+=o}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return q1(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(Gu(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:n,suffix:r,outputLen:s,rounds:i,enableXOF:o}=this;return e||(e=new Sc(n,r,s,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=s,e.enableXOF=o,e.destroyed=this.destroyed,e}}const Cp=(t,e,n)=>Vu(()=>new Sc(e,t,n)),Np=Cp(1,136,256/8);let Yu=!1;const qu=function(t){return Np(t)};let Xu=qu;function Be(t){const e=ge(t,"data");return q(Xu(e))}Be._=qu;Be.lock=function(){Yu=!0};Be.register=function(t){if(Yu)throw new TypeError("keccak256 is locked");Xu=t};Object.freeze(Be);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const $u=BigInt(0),Mo=BigInt(1),Op=BigInt(2),_o=t=>t instanceof Uint8Array,Rp=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function Ls(t){if(!_o(t))throw new Error("Uint8Array expected");let e="";for(let n=0;nr+s.length,0));let n=0;return t.forEach(r=>{if(!_o(r))throw new Error("Uint8Array expected");e.set(r,n),n+=r.length}),e}function Bp(t,e){if(t.length!==e.length)return!1;for(let n=0;n$u;t>>=Mo,e+=1);return e}function _p(t,e){return t>>BigInt(e)&Mo}const Fp=(t,e,n)=>t|(n?Mo:$u)<(Op<new Uint8Array(t),b5=t=>Uint8Array.from(t);function tf(t,e,n){if(typeof t!="number"||t<2)throw new Error("hashLen must be a number");if(typeof e!="number"||e<2)throw new Error("qByteLen must be a number");if(typeof n!="function")throw new Error("hmacFn must be a function");let r=ta(t),s=ta(t),i=0;const o=()=>{r.fill(1),s.fill(0),i=0},a=(...f)=>n(s,r,...f),c=(f=ta())=>{s=a(b5([0]),f),r=a(),f.length!==0&&(s=a(b5([1]),f),r=a())},l=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let f=0;const h=[];for(;f{o(),c(f);let p;for(;!(p=h(l()));)c();return o(),p}}const Up={bigint:t=>typeof t=="bigint",function:t=>typeof t=="function",boolean:t=>typeof t=="boolean",string:t=>typeof t=="string",stringOrUint8Array:t=>typeof t=="string"||t instanceof Uint8Array,isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>typeof t=="function"&&Number.isSafeInteger(t.outputLen)};function i1(t,e,n={}){const r=(s,i,o)=>{const a=Up[i];if(typeof a!="function")throw new Error(`Invalid validator "${i}", expected function`);const c=t[s];if(!(o&&c===void 0)&&!a(c,t))throw new Error(`Invalid param ${String(s)}=${c} (${typeof c}), expected ${i}`)};for(const[s,i]of Object.entries(e))r(s,i,!1);for(const[s,i]of Object.entries(n))r(s,i,!0);return t}const Dp=Object.freeze(Object.defineProperty({__proto__:null,bytesToHex:Ls,numberToHexUnpadded:ef,hexToNumber:Mc,hexToBytes:Hs,bytesToNumberBE:b0,bytesToNumberLE:_c,numberToBytesBE:Qs,numberToBytesLE:Fc,numberToVarBytesBE:kp,ensureBytes:Kt,concatBytes:Oi,equalBytes:Bp,utf8ToBytes:Sp,bitLen:Mp,bitGet:_p,bitSet:Fp,bitMask:Uc,createHmacDrbg:tf,validateObject:i1},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Ke=BigInt(0),Ue=BigInt(1),Dr=BigInt(2),Lp=BigInt(3),Ma=BigInt(4),p5=BigInt(5),g5=BigInt(8);BigInt(9);BigInt(16);function wt(t,e){const n=t%e;return n>=Ke?n:e+n}function Hp(t,e,n){if(n<=Ke||e 0");if(n===Ue)return Ke;let r=Ue;for(;e>Ke;)e&Ue&&(r=r*t%n),t=t*t%n,e>>=Ue;return r}function Mt(t,e,n){let r=t;for(;e-- >Ke;)r*=r,r%=n;return r}function _a(t,e){if(t===Ke||e<=Ke)throw new Error(`invert: expected positive integers, got n=${t} mod=${e}`);let n=wt(t,e),r=e,s=Ke,i=Ue;for(;n!==Ke;){const a=r/n,c=r%n,l=s-i*a;r=n,n=c,s=i,i=l}if(r!==Ue)throw new Error("invert: does not exist");return wt(s,e)}function Qp(t){const e=(t-Ue)/Dr;let n,r,s;for(n=t-Ue,r=0;n%Dr===Ke;n/=Dr,r++);for(s=Dr;s(r[s]="function",r),e);return i1(t,n)}function jp(t,e,n){if(n 0");if(n===Ke)return t.ONE;if(n===Ue)return e;let r=t.ONE,s=e;for(;n>Ke;)n&Ue&&(r=t.mul(r,s)),s=t.sqr(s),n>>=Ue;return r}function Kp(t,e){const n=new Array(e.length),r=e.reduce((i,o,a)=>t.is0(o)?i:(n[a]=i,t.mul(i,o)),t.ONE),s=t.inv(r);return e.reduceRight((i,o,a)=>t.is0(o)?i:(n[a]=t.mul(i,n[a]),t.mul(i,o)),s),n}function nf(t,e){const n=e!==void 0?e:t.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}function Jp(t,e,n=!1,r={}){if(t<=Ke)throw new Error(`Expected Field ORDER > 0, got ${t}`);const{nBitLength:s,nByteLength:i}=nf(t,e);if(i>2048)throw new Error("Field lengths over 2048 bytes are not supported");const o=Gp(t),a=Object.freeze({ORDER:t,BITS:s,BYTES:i,MASK:Uc(s),ZERO:Ke,ONE:Ue,create:c=>wt(c,t),isValid:c=>{if(typeof c!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof c}`);return Ke<=c&&cc===Ke,isOdd:c=>(c&Ue)===Ue,neg:c=>wt(-c,t),eql:(c,l)=>c===l,sqr:c=>wt(c*c,t),add:(c,l)=>wt(c+l,t),sub:(c,l)=>wt(c-l,t),mul:(c,l)=>wt(c*l,t),pow:(c,l)=>jp(a,c,l),div:(c,l)=>wt(c*_a(l,t),t),sqrN:c=>c*c,addN:(c,l)=>c+l,subN:(c,l)=>c-l,mulN:(c,l)=>c*l,inv:c=>_a(c,t),sqrt:r.sqrt||(c=>o(a,c)),invertBatch:c=>Kp(a,c),cmov:(c,l,u)=>u?l:c,toBytes:c=>n?Fc(c,i):Qs(c,i),fromBytes:c=>{if(c.length!==i)throw new Error(`Fp.fromBytes: expected ${i}, got ${c.length}`);return n?_c(c):b0(c)}});return Object.freeze(a)}function rf(t){if(typeof t!="bigint")throw new Error("field order must be bigint");const e=t.toString(2).length;return Math.ceil(e/8)}function sf(t){const e=rf(t);return e+Math.ceil(e/2)}function Wp(t,e,n=!1){const r=t.length,s=rf(e),i=sf(e);if(r<16||r1024)throw new Error(`expected ${i}-1024 bytes of input, got ${r}`);const o=n?b0(t):_c(t),a=wt(o,e-Ue)+Ue;return n?Fc(a,s):Qs(a,s)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Zp=BigInt(0),na=BigInt(1);function Yp(t,e){const n=(s,i)=>{const o=i.negate();return s?o:i},r=s=>{const i=Math.ceil(e/s)+1,o=2**(s-1);return{windows:i,windowSize:o}};return{constTimeNegate:n,unsafeLadder(s,i){let o=t.ZERO,a=s;for(;i>Zp;)i&na&&(o=o.add(a)),a=a.double(),i>>=na;return o},precomputeWindow(s,i){const{windows:o,windowSize:a}=r(i),c=[];let l=s,u=l;for(let f=0;f>=p,x>c&&(x-=h,o+=na);const A=m,N=m+Math.abs(x)-1,O=w%2!==0,K=x<0;x===0?u=u.add(n(O,i[A])):l=l.add(n(K,i[N]))}return{p:l,f:u}},wNAFCached(s,i,o,a){const c=s._WINDOW_SIZE||1;let l=i.get(s);return l||(l=this.precomputeWindow(s,c),c!==1&&i.set(s,a(l))),this.wNAF(c,l,o)}}}function of(t){return Vp(t.Fp),i1(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...nf(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function qp(t){const e=of(t);i1(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:n,Fp:r,a:s}=e;if(n){if(!r.eql(s,r.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof n!="object"||typeof n.beta!="bigint"||typeof n.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...e})}const{bytesToNumberBE:Xp,hexToBytes:$p}=Dp,Qr={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(t){const{Err:e}=Qr;if(t.length<2||t[0]!==2)throw new e("Invalid signature integer tag");const n=t[1],r=t.subarray(2,n+2);if(!n||r.length!==n)throw new e("Invalid signature integer: wrong length");if(r[0]&128)throw new e("Invalid signature integer: negative");if(r[0]===0&&!(r[1]&128))throw new e("Invalid signature integer: unnecessary leading zero");return{d:Xp(r),l:t.subarray(n+2)}},toSig(t){const{Err:e}=Qr,n=typeof t=="string"?$p(t):t;if(!(n instanceof Uint8Array))throw new Error("ui8a expected");let r=n.length;if(r<2||n[0]!=48)throw new e("Invalid signature tag");if(n[1]!==r-2)throw new e("Invalid signature: incorrect length");const{d:s,l:i}=Qr._parseInt(n.subarray(2)),{d:o,l:a}=Qr._parseInt(i);if(a.length)throw new e("Invalid signature: left bytes after parsing");return{r:s,s:o}},hexFromSig(t){const e=l=>Number.parseInt(l[0],16)&8?"00"+l:l,n=l=>{const u=l.toString(16);return u.length&1?`0${u}`:u},r=e(n(t.s)),s=e(n(t.r)),i=r.length/2,o=s.length/2,a=n(i),c=n(o);return`30${n(o+i+4)}02${c}${s}02${a}${r}`}},Vn=BigInt(0),Qt=BigInt(1);BigInt(2);const y5=BigInt(3);BigInt(4);function e9(t){const e=qp(t),{Fp:n}=e,r=e.toBytes||((w,m,x)=>{const A=m.toAffine();return Oi(Uint8Array.from([4]),n.toBytes(A.x),n.toBytes(A.y))}),s=e.fromBytes||(w=>{const m=w.subarray(1),x=n.fromBytes(m.subarray(0,n.BYTES)),A=n.fromBytes(m.subarray(n.BYTES,2*n.BYTES));return{x,y:A}});function i(w){const{a:m,b:x}=e,A=n.sqr(w),N=n.mul(A,w);return n.add(n.add(N,n.mul(w,m)),x)}if(!n.eql(n.sqr(e.Gy),i(e.Gx)))throw new Error("bad generator point: equation left != right");function o(w){return typeof w=="bigint"&&Vnn.eql(O,n.ZERO);return N(x)&&N(A)?f.ZERO:new f(x,A,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(m){const x=n.invertBatch(m.map(A=>A.pz));return m.map((A,N)=>A.toAffine(x[N])).map(f.fromAffine)}static fromHex(m){const x=f.fromAffine(s(Kt("pointHex",m)));return x.assertValidity(),x}static fromPrivateKey(m){return f.BASE.multiply(c(m))}_setWindowSize(m){this._WINDOW_SIZE=m,l.delete(this)}assertValidity(){if(this.is0()){if(e.allowInfinityPoint&&!n.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:m,y:x}=this.toAffine();if(!n.isValid(m)||!n.isValid(x))throw new Error("bad point: x or y not FE");const A=n.sqr(x),N=i(m);if(!n.eql(A,N))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:m}=this.toAffine();if(n.isOdd)return!n.isOdd(m);throw new Error("Field doesn't support isOdd")}equals(m){u(m);const{px:x,py:A,pz:N}=this,{px:O,py:K,pz:G}=m,Q=n.eql(n.mul(x,G),n.mul(O,N)),L=n.eql(n.mul(A,G),n.mul(K,N));return Q&&L}negate(){return new f(this.px,n.neg(this.py),this.pz)}double(){const{a:m,b:x}=e,A=n.mul(x,y5),{px:N,py:O,pz:K}=this;let G=n.ZERO,Q=n.ZERO,L=n.ZERO,D=n.mul(N,N),de=n.mul(O,O),re=n.mul(K,K),se=n.mul(N,O);return se=n.add(se,se),L=n.mul(N,K),L=n.add(L,L),G=n.mul(m,L),Q=n.mul(A,re),Q=n.add(G,Q),G=n.sub(de,Q),Q=n.add(de,Q),Q=n.mul(G,Q),G=n.mul(se,G),L=n.mul(A,L),re=n.mul(m,re),se=n.sub(D,re),se=n.mul(m,se),se=n.add(se,L),L=n.add(D,D),D=n.add(L,D),D=n.add(D,re),D=n.mul(D,se),Q=n.add(Q,D),re=n.mul(O,K),re=n.add(re,re),D=n.mul(re,se),G=n.sub(G,D),L=n.mul(re,de),L=n.add(L,L),L=n.add(L,L),new f(G,Q,L)}add(m){u(m);const{px:x,py:A,pz:N}=this,{px:O,py:K,pz:G}=m;let Q=n.ZERO,L=n.ZERO,D=n.ZERO;const de=e.a,re=n.mul(e.b,y5);let se=n.mul(x,O),ve=n.mul(A,K),Me=n.mul(N,G),_e=n.add(x,A),S=n.add(O,K);_e=n.mul(_e,S),S=n.add(se,ve),_e=n.sub(_e,S),S=n.add(x,N);let F=n.add(O,G);return S=n.mul(S,F),F=n.add(se,Me),S=n.sub(S,F),F=n.add(A,N),Q=n.add(K,G),F=n.mul(F,Q),Q=n.add(ve,Me),F=n.sub(F,Q),D=n.mul(de,S),Q=n.mul(re,Me),D=n.add(Q,D),Q=n.sub(ve,D),D=n.add(ve,D),L=n.mul(Q,D),ve=n.add(se,se),ve=n.add(ve,se),Me=n.mul(de,Me),S=n.mul(re,S),ve=n.add(ve,Me),Me=n.sub(se,Me),Me=n.mul(de,Me),S=n.add(S,Me),se=n.mul(ve,S),L=n.add(L,se),se=n.mul(F,S),Q=n.mul(_e,Q),Q=n.sub(Q,se),se=n.mul(_e,ve),D=n.mul(F,D),D=n.add(D,se),new f(Q,L,D)}subtract(m){return this.add(m.negate())}is0(){return this.equals(f.ZERO)}wNAF(m){return p.wNAFCached(this,l,m,x=>{const A=n.invertBatch(x.map(N=>N.pz));return x.map((N,O)=>N.toAffine(A[O])).map(f.fromAffine)})}multiplyUnsafe(m){const x=f.ZERO;if(m===Vn)return x;if(a(m),m===Qt)return this;const{endo:A}=e;if(!A)return p.unsafeLadder(this,m);let{k1neg:N,k1:O,k2neg:K,k2:G}=A.splitScalar(m),Q=x,L=x,D=this;for(;O>Vn||G>Vn;)O&Qt&&(Q=Q.add(D)),G&Qt&&(L=L.add(D)),D=D.double(),O>>=Qt,G>>=Qt;return N&&(Q=Q.negate()),K&&(L=L.negate()),L=new f(n.mul(L.px,A.beta),L.py,L.pz),Q.add(L)}multiply(m){a(m);let x=m,A,N;const{endo:O}=e;if(O){const{k1neg:K,k1:G,k2neg:Q,k2:L}=O.splitScalar(x);let{p:D,f:de}=this.wNAF(G),{p:re,f:se}=this.wNAF(L);D=p.constTimeNegate(K,D),re=p.constTimeNegate(Q,re),re=new f(n.mul(re.px,O.beta),re.py,re.pz),A=D.add(re),N=de.add(se)}else{const{p:K,f:G}=this.wNAF(x);A=K,N=G}return f.normalizeZ([A,N])[0]}multiplyAndAddUnsafe(m,x,A){const N=f.BASE,O=(G,Q)=>Q===Vn||Q===Qt||!G.equals(N)?G.multiplyUnsafe(Q):G.multiply(Q),K=O(this,x).add(O(m,A));return K.is0()?void 0:K}toAffine(m){const{px:x,py:A,pz:N}=this,O=this.is0();m==null&&(m=O?n.ONE:n.inv(N));const K=n.mul(x,m),G=n.mul(A,m),Q=n.mul(N,m);if(O)return{x:n.ZERO,y:n.ZERO};if(!n.eql(Q,n.ONE))throw new Error("invZ was invalid");return{x:K,y:G}}isTorsionFree(){const{h:m,isTorsionFree:x}=e;if(m===Qt)return!0;if(x)return x(f,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:m,clearCofactor:x}=e;return m===Qt?this:x?x(f,this):this.multiplyUnsafe(e.h)}toRawBytes(m=!0){return this.assertValidity(),r(f,this,m)}toHex(m=!0){return Ls(this.toRawBytes(m))}}f.BASE=new f(e.Gx,e.Gy,n.ONE),f.ZERO=new f(n.ZERO,n.ONE,n.ZERO);const h=e.nBitLength,p=Yp(f,e.endo?Math.ceil(h/2):h);return{CURVE:e,ProjectivePoint:f,normPrivateKeyToScalar:c,weierstrassEquation:i,isWithinCurveOrder:o}}function t9(t){const e=of(t);return i1(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}function n9(t){const e=t9(t),{Fp:n,n:r}=e,s=n.BYTES+1,i=2*n.BYTES+1;function o(S){return VnLs(Qs(S,e.nByteLength));function w(S){const F=r>>Qt;return S>F}function m(S){return w(S)?a(-S):S}const x=(S,F,W)=>b0(S.slice(F,W));class A{constructor(F,W,$){this.r=F,this.s=W,this.recovery=$,this.assertValidity()}static fromCompact(F){const W=e.nByteLength;return F=Kt("compactSignature",F,W*2),new A(x(F,0,W),x(F,W,2*W))}static fromDER(F){const{r:W,s:$}=Qr.toSig(Kt("DER",F));return new A(W,$)}assertValidity(){if(!h(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!h(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(F){return new A(this.r,this.s,F)}recoverPublicKey(F){const{r:W,s:$,recovery:ue}=this,Te=L(Kt("msgHash",F));if(ue==null||![0,1,2,3].includes(ue))throw new Error("recovery id invalid");const Ce=ue===2||ue===3?W+e.n:W;if(Ce>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");const Ee=(ue&1)===0?"02":"03",st=l.fromHex(Ee+p(Ce)),vt=c(Ce),C=a(-Te*vt),z=a($*vt),U=l.BASE.multiplyAndAddUnsafe(st,C,z);if(!U)throw new Error("point at infinify");return U.assertValidity(),U}hasHighS(){return w(this.s)}normalizeS(){return this.hasHighS()?new A(this.r,a(-this.s),this.recovery):this}toDERRawBytes(){return Hs(this.toDERHex())}toDERHex(){return Qr.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return Hs(this.toCompactHex())}toCompactHex(){return p(this.r)+p(this.s)}}const N={isValidPrivateKey(S){try{return u(S),!0}catch{return!1}},normPrivateKeyToScalar:u,randomPrivateKey:()=>{const S=sf(e.n);return Wp(e.randomBytes(S),e.n)},precompute(S=8,F=l.BASE){return F._setWindowSize(S),F.multiply(BigInt(3)),F}};function O(S,F=!0){return l.fromPrivateKey(S).toRawBytes(F)}function K(S){const F=S instanceof Uint8Array,W=typeof S=="string",$=(F||W)&&S.length;return F?$===s||$===i:W?$===2*s||$===2*i:S instanceof l}function G(S,F,W=!0){if(K(S))throw new Error("first arg must be private key");if(!K(F))throw new Error("second arg must be public key");return l.fromHex(F).multiply(u(S)).toRawBytes(W)}const Q=e.bits2int||function(S){const F=b0(S),W=S.length*8-e.nBitLength;return W>0?F>>BigInt(W):F},L=e.bits2int_modN||function(S){return a(Q(S))},D=Uc(e.nBitLength);function de(S){if(typeof S!="bigint")throw new Error("bigint expected");if(!(Vn<=S&&Sae in W))throw new Error("sign() legacy options not supported");const{hash:$,randomBytes:ue}=e;let{lowS:Te,prehash:Ce,extraEntropy:Ee}=W;Te==null&&(Te=!0),S=Kt("msgHash",S),Ce&&(S=Kt("prehashed msgHash",$(S)));const st=L(S),vt=u(F),C=[de(vt),de(st)];if(Ee!=null){const ae=Ee===!0?ue(n.BYTES):Ee;C.push(Kt("extraEntropy",ae))}const z=Oi(...C),U=st;function Y(ae){const we=Q(ae);if(!h(we))return;const ce=c(we),b=l.BASE.multiply(we).toAffine(),y=a(b.x);if(y===Vn)return;const P=a(ce*a(U+y*vt));if(P===Vn)return;let I=(b.x===y?0:2)|Number(b.y&Qt),R=P;return Te&&w(P)&&(R=m(P),I^=1),new A(y,R,I)}return{seed:z,k2sig:Y}}const se={lowS:e.lowS,prehash:!1},ve={lowS:e.lowS,prehash:!1};function Me(S,F,W=se){const{seed:$,k2sig:ue}=re(S,F,W),Te=e;return tf(Te.hash.outputLen,Te.nByteLength,Te.hmac)($,ue)}l.BASE._setWindowSize(8);function _e(S,F,W,$=ve){var b;const ue=S;if(F=Kt("msgHash",F),W=Kt("publicKey",W),"strict"in $)throw new Error("options.strict was renamed to lowS");const{lowS:Te,prehash:Ce}=$;let Ee,st;try{if(typeof ue=="string"||ue instanceof Uint8Array)try{Ee=A.fromDER(ue)}catch(y){if(!(y instanceof Qr.Err))throw y;Ee=A.fromCompact(ue)}else if(typeof ue=="object"&&typeof ue.r=="bigint"&&typeof ue.s=="bigint"){const{r:y,s:P}=ue;Ee=new A(y,P)}else throw new Error("PARSE");st=l.fromHex(W)}catch(y){if(y.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(Te&&Ee.hasHighS())return!1;Ce&&(F=e.hash(F));const{r:vt,s:C}=Ee,z=L(F),U=c(C),Y=a(z*U),ae=a(vt*U),we=(b=l.BASE.multiplyAndAddUnsafe(st,Y,ae))==null?void 0:b.toAffine();return we?a(we.x)===vt:!1}return{CURVE:e,getPublicKey:O,getSharedSecret:G,sign:Me,verify:_e,ProjectivePoint:l,Signature:A,utils:N}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function r9(t){return{hash:t,hmac:(e,...n)=>Ku(t,e,sp(...n)),randomBytes:ip}}function s9(t,e){const n=r=>n9({...t,...r9(r)});return Object.freeze({...n(e),create:n})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const af=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),m5=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),i9=BigInt(1),Fa=BigInt(2),w5=(t,e)=>(t+e/Fa)/e;function o9(t){const e=af,n=BigInt(3),r=BigInt(6),s=BigInt(11),i=BigInt(22),o=BigInt(23),a=BigInt(44),c=BigInt(88),l=t*t*t%e,u=l*l*t%e,f=Mt(u,n,e)*u%e,h=Mt(f,n,e)*u%e,p=Mt(h,Fa,e)*l%e,w=Mt(p,s,e)*p%e,m=Mt(w,i,e)*w%e,x=Mt(m,a,e)*m%e,A=Mt(x,c,e)*x%e,N=Mt(A,a,e)*m%e,O=Mt(N,n,e)*u%e,K=Mt(O,o,e)*w%e,G=Mt(K,r,e)*l%e,Q=Mt(G,Fa,e);if(!Ua.eql(Ua.sqr(Q),t))throw new Error("Cannot find square root");return Q}const Ua=Jp(af,void 0,void 0,{sqrt:o9}),sr=s9({a:BigInt(0),b:BigInt(7),Fp:Ua,n:m5,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const e=m5,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-i9*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),s=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=n,o=BigInt("0x100000000000000000000000000000000"),a=w5(i*t,e),c=w5(-r*t,e);let l=wt(t-a*n-c*s,e),u=wt(-a*r-c*i,e);const f=l>o,h=u>o;if(f&&(l=e-l),h&&(u=e-u),l>o||u>o)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:f,k1:l,k2neg:h,k2:u}}}},dp);BigInt(0);sr.ProjectivePoint;const Da="0x0000000000000000000000000000000000000000",A5="0x0000000000000000000000000000000000000000000000000000000000000000",E5=BigInt(0),x5=BigInt(1),v5=BigInt(2),T5=BigInt(27),P5=BigInt(28),w1=BigInt(35),C0={};function I5(t){return g0(Bt(t),32)}var $0,es,ts,$r;const jt=class{constructor(e,n,r,s){T(this,$0,void 0);T(this,es,void 0);T(this,ts,void 0);T(this,$r,void 0);Ro(e,C0,"Signature"),g(this,$0,n),g(this,es,r),g(this,ts,s),g(this,$r,null)}get r(){return d(this,$0)}set r(e){E(V0(e)===32,"invalid r","value",e),g(this,$0,q(e))}get s(){return d(this,es)}set s(e){E(V0(e)===32,"invalid s","value",e);const n=q(e);E(parseInt(n.substring(0,3))<8,"non-canonical s","value",n),g(this,es,n)}get v(){return d(this,ts)}set v(e){const n=fe(e,"value");E(n===27||n===28,"invalid v","v",e),g(this,ts,n)}get networkV(){return d(this,$r)}get legacyChainId(){const e=this.networkV;return e==null?null:jt.getChainId(e)}get yParity(){return this.v===27?0:1}get yParityAndS(){const e=ge(this.s);return this.yParity&&(e[0]|=128),q(e)}get compactSerialized(){return Ge([this.r,this.yParityAndS])}get serialized(){return Ge([this.r,this.s,this.yParity?"0x1c":"0x1b"])}[Symbol.for("nodejs.util.inspect.custom")](){return`Signature { r: "${this.r}", s: "${this.s}", yParity: ${this.yParity}, networkV: ${this.networkV} }`}clone(){const e=new jt(C0,this.r,this.s,this.v);return this.networkV&&g(e,$r,this.networkV),e}toJSON(){const e=this.networkV;return{_type:"signature",networkV:e!=null?e.toString():null,r:this.r,s:this.s,v:this.v}}static getChainId(e){const n=X(e,"v");return n==T5||n==P5?E5:(E(n>=w1,"invalid EIP-155 v","v",e),(n-w1)/v5)}static getChainIdV(e,n){return X(e)*v5+BigInt(35+n-27)}static getNormalizedV(e){const n=X(e);return n===E5||n===T5?27:n===x5||n===P5?28:(E(n>=w1,"invalid v","v",e),n&x5?27:28)}static from(e){function n(l,u){E(l,u,"signature",e)}if(e==null)return new jt(C0,A5,A5,27);if(typeof e=="string"){const l=ge(e,"signature");if(l.length===64){const u=q(l.slice(0,32)),f=l.slice(32,64),h=f[0]&128?28:27;return f[0]&=127,new jt(C0,u,q(f),h)}if(l.length===65){const u=q(l.slice(0,32)),f=l.slice(32,64);n((f[0]&128)===0,"non-canonical s");const h=jt.getNormalizedV(l[64]);return new jt(C0,u,q(f),h)}n(!1,"invalid raw signature length")}if(e instanceof jt)return e.clone();const r=e.r;n(r!=null,"missing r");const s=I5(r),i=function(l,u){if(l!=null)return I5(l);if(u!=null){n(Se(u,32),"invalid yParityAndS");const f=ge(u);return f[0]&=127,q(f)}n(!1,"missing s")}(e.s,e.yParityAndS);n((ge(i)[0]&128)==0,"non-canonical s");const{networkV:o,v:a}=function(l,u,f){if(l!=null){const h=X(l);return{networkV:h>=w1?h:void 0,v:jt.getNormalizedV(h)}}if(u!=null)return n(Se(u,32),"invalid yParityAndS"),{v:ge(u)[0]&128?28:27};if(f!=null){switch(fe(f,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}n(!1,"invalid yParity")}n(!1,"missing v")}(e.v,e.yParityAndS,e.yParity),c=new jt(C0,s,i,a);return o&&g(c,$r,o),n(e.yParity==null||fe(e.yParity,"sig.yParity")===c.yParity,"yParity mismatch"),n(e.yParityAndS==null||e.yParityAndS===c.yParityAndS,"yParityAndS mismatch"),c}};let rn=jt;$0=new WeakMap,es=new WeakMap,ts=new WeakMap,$r=new WeakMap;var _n;const Lr=class{constructor(e){T(this,_n,void 0);E(V0(e)===32,"invalid private key","privateKey","[REDACTED]"),g(this,_n,q(e))}get privateKey(){return d(this,_n)}get publicKey(){return Lr.computePublicKey(d(this,_n))}get compressedPublicKey(){return Lr.computePublicKey(d(this,_n),!0)}sign(e){E(V0(e)===32,"invalid digest length","digest",e);const n=sr.sign(ut(e),ut(d(this,_n)),{lowS:!0});return rn.from({r:kr(n.r,32),s:kr(n.s,32),v:n.recovery?28:27})}computeSharedSecret(e){const n=Lr.computePublicKey(e);return q(sr.getSharedSecret(ut(d(this,_n)),ge(n),!1))}static computePublicKey(e,n){let r=ge(e,"key");if(r.length===32){const i=sr.getPublicKey(r,!!n);return q(i)}if(r.length===64){const i=new Uint8Array(65);i[0]=4,i.set(r,1),r=i}const s=sr.ProjectivePoint.fromHex(r);return q(s.toRawBytes(n))}static recoverPublicKey(e,n){E(V0(e)===32,"invalid digest length","digest",e);const r=rn.from(n);let s=sr.Signature.fromCompact(ut(Ge([r.r,r.s])));s=s.addRecoveryBit(r.yParity);const i=s.recoverPublicKey(ut(e));return E(i!=null,"invalid signautre for digest","signature",n),"0x"+i.toHex(!1)}static addPoints(e,n,r){const s=sr.ProjectivePoint.fromHex(Lr.computePublicKey(e).substring(2)),i=sr.ProjectivePoint.fromHex(Lr.computePublicKey(n).substring(2));return"0x"+s.add(i).toHex(!!r)}};let Ri=Lr;_n=new WeakMap;const a9=BigInt(0),c9=BigInt(36);function C5(t){t=t.toLowerCase();const e=t.substring(2).split(""),n=new Uint8Array(40);for(let s=0;s<40;s++)n[s]=e[s].charCodeAt(0);const r=ge(Be(n));for(let s=0;s<40;s+=2)r[s>>1]>>4>=8&&(e[s]=e[s].toUpperCase()),(r[s>>1]&15)>=8&&(e[s+1]=e[s+1].toUpperCase());return"0x"+e.join("")}const Dc={};for(let t=0;t<10;t++)Dc[String(t)]=String(t);for(let t=0;t<26;t++)Dc[String.fromCharCode(65+t)]=String(10+t);const N5=15;function l9(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";let e=t.split("").map(r=>Dc[r]).join("");for(;e.length>=N5;){let r=e.substring(0,N5);e=parseInt(r,10)%97+e.substring(r.length)}let n=String(98-parseInt(e,10)%97);for(;n.length<2;)n="0"+n;return n}const u9=function(){const t={};for(let e=0;e<36;e++){const n="0123456789abcdefghijklmnopqrstuvwxyz"[e];t[n]=BigInt(e)}return t}();function f9(t){t=t.toLowerCase();let e=a9;for(let n=0;ne.format()).join(",")})`:this.type}defaultValue(){return 0}minValue(){return 0}maxValue(){return 0}isBigInt(){return!!this.type.match(/^u?int[0-9]+$/)}isData(){return this.type.startsWith("bytes")}isString(){return this.type==="string"}get tupleName(){if(this.type!=="tuple")throw TypeError("not a tuple");return d(this,e0)}get arrayLength(){if(this.type!=="array")throw TypeError("not an array");return d(this,e0)===!0?-1:d(this,e0)===!1?this.value.length:null}static from(e,n){return new On(Nn,e,n)}static uint8(e){return J(e,8)}static uint16(e){return J(e,16)}static uint24(e){return J(e,24)}static uint32(e){return J(e,32)}static uint40(e){return J(e,40)}static uint48(e){return J(e,48)}static uint56(e){return J(e,56)}static uint64(e){return J(e,64)}static uint72(e){return J(e,72)}static uint80(e){return J(e,80)}static uint88(e){return J(e,88)}static uint96(e){return J(e,96)}static uint104(e){return J(e,104)}static uint112(e){return J(e,112)}static uint120(e){return J(e,120)}static uint128(e){return J(e,128)}static uint136(e){return J(e,136)}static uint144(e){return J(e,144)}static uint152(e){return J(e,152)}static uint160(e){return J(e,160)}static uint168(e){return J(e,168)}static uint176(e){return J(e,176)}static uint184(e){return J(e,184)}static uint192(e){return J(e,192)}static uint200(e){return J(e,200)}static uint208(e){return J(e,208)}static uint216(e){return J(e,216)}static uint224(e){return J(e,224)}static uint232(e){return J(e,232)}static uint240(e){return J(e,240)}static uint248(e){return J(e,248)}static uint256(e){return J(e,256)}static uint(e){return J(e,256)}static int8(e){return J(e,-8)}static int16(e){return J(e,-16)}static int24(e){return J(e,-24)}static int32(e){return J(e,-32)}static int40(e){return J(e,-40)}static int48(e){return J(e,-48)}static int56(e){return J(e,-56)}static int64(e){return J(e,-64)}static int72(e){return J(e,-72)}static int80(e){return J(e,-80)}static int88(e){return J(e,-88)}static int96(e){return J(e,-96)}static int104(e){return J(e,-104)}static int112(e){return J(e,-112)}static int120(e){return J(e,-120)}static int128(e){return J(e,-128)}static int136(e){return J(e,-136)}static int144(e){return J(e,-144)}static int152(e){return J(e,-152)}static int160(e){return J(e,-160)}static int168(e){return J(e,-168)}static int176(e){return J(e,-176)}static int184(e){return J(e,-184)}static int192(e){return J(e,-192)}static int200(e){return J(e,-200)}static int208(e){return J(e,-208)}static int216(e){return J(e,-216)}static int224(e){return J(e,-224)}static int232(e){return J(e,-232)}static int240(e){return J(e,-240)}static int248(e){return J(e,-248)}static int256(e){return J(e,-256)}static int(e){return J(e,-256)}static bytes1(e){return pe(e,1)}static bytes2(e){return pe(e,2)}static bytes3(e){return pe(e,3)}static bytes4(e){return pe(e,4)}static bytes5(e){return pe(e,5)}static bytes6(e){return pe(e,6)}static bytes7(e){return pe(e,7)}static bytes8(e){return pe(e,8)}static bytes9(e){return pe(e,9)}static bytes10(e){return pe(e,10)}static bytes11(e){return pe(e,11)}static bytes12(e){return pe(e,12)}static bytes13(e){return pe(e,13)}static bytes14(e){return pe(e,14)}static bytes15(e){return pe(e,15)}static bytes16(e){return pe(e,16)}static bytes17(e){return pe(e,17)}static bytes18(e){return pe(e,18)}static bytes19(e){return pe(e,19)}static bytes20(e){return pe(e,20)}static bytes21(e){return pe(e,21)}static bytes22(e){return pe(e,22)}static bytes23(e){return pe(e,23)}static bytes24(e){return pe(e,24)}static bytes25(e){return pe(e,25)}static bytes26(e){return pe(e,26)}static bytes27(e){return pe(e,27)}static bytes28(e){return pe(e,28)}static bytes29(e){return pe(e,29)}static bytes30(e){return pe(e,30)}static bytes31(e){return pe(e,31)}static bytes32(e){return pe(e,32)}static address(e){return new On(Nn,"address",e)}static bool(e){return new On(Nn,"bool",!!e)}static bytes(e){return new On(Nn,"bytes",e)}static string(e){return new On(Nn,"string",e)}static array(e,n){throw new Error("not implemented yet")}static tuple(e,n){throw new Error("not implemented yet")}static overrides(e){return new On(Nn,"overrides",Object.assign({},e))}static isTyped(e){return e&&typeof e=="object"&&"_typedSymbol"in e&&e._typedSymbol===O5}static dereference(e,n){if(On.isTyped(e)){if(e.type!==n)throw new Error(`invalid type: expecetd ${n}, got ${e.type}`);return e.value}return e}};let rt=On;e0=new WeakMap;class d9 extends $n{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,n){let r=rt.dereference(n,"string");try{r=me(r)}catch(s){return this._throwError(s.message,n)}return e.writeValue(r)}decode(e){return me(kr(e.readValue(),20))}}class h9 extends $n{constructor(n){super(n.name,n.type,"_",n.dynamic);v(this,"coder");this.coder=n}defaultValue(){return this.coder.defaultValue()}encode(n,r){return this.coder.encode(n,r)}decode(n){return this.coder.decode(n)}}function uf(t,e,n){let r=[];if(Array.isArray(n))r=n;else if(n&&typeof n=="object"){let c={};r=e.map(l=>{const u=l.localName;return k(u,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:l},value:n}),k(!c[u],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:l},value:n}),c[u]=!0,n[u]})}else E(!1,"invalid tuple value","tuple",n);E(e.length===r.length,"types/value length mismatch","tuple",n);let s=new ka,i=new ka,o=[];e.forEach((c,l)=>{let u=r[l];if(c.dynamic){let f=i.length;c.encode(i,u);let h=s.writeUpdatableValue();o.push(p=>{h(p+f)})}else c.encode(s,u)}),o.forEach(c=>{c(s.length)});let a=t.appendWriter(s);return a+=t.appendWriter(i),a}function ff(t,e){let n=[],r=[],s=t.subReader(0);return e.forEach(i=>{let o=null;if(i.dynamic){let a=t.readIndex(),c=s.subReader(a);try{o=i.decode(c)}catch(l){if(nt(l,"BUFFER_OVERRUN"))throw l;o=l,o.baseType=i.name,o.name=i.localName,o.type=i.type}}else try{o=i.decode(t)}catch(a){if(nt(a,"BUFFER_OVERRUN"))throw a;o=a,o.baseType=i.name,o.name=i.localName,o.type=i.type}if(o==null)throw new Error("investigate");n.push(o),r.push(i.localName||null)}),Y1.fromItems(n,r)}class b9 extends $n{constructor(n,r,s){const i=n.type+"["+(r>=0?r:"")+"]",o=r===-1||n.dynamic;super("array",i,s,o);v(this,"coder");v(this,"length");ne(this,{coder:n,length:r})}defaultValue(){const n=this.coder.defaultValue(),r=[];for(let s=0;so||s<-(o+E9))&&this._throwError("value out-of-bounds",r),s=Bu(s,8*ft)}else(sni(i,this.size*8))&&this._throwError("value out-of-bounds",r);return n.writeValue(s)}decode(n){let r=ni(n.readValue(),this.size*8);return this.signed&&(r=_b(r,this.size*8)),r}}class T9 extends df{constructor(e){super("string",e)}defaultValue(){return""}encode(e,n){return super.encode(e,Kn(rt.dereference(n,"string")))}decode(e){return Oc(super.decode(e))}}class A1 extends $n{constructor(n,r){let s=!1;const i=[];n.forEach(a=>{a.dynamic&&(s=!0),i.push(a.type)});const o="tuple("+i.join(",")+")";super("tuple",o,r,s);v(this,"coders");ne(this,{coders:Object.freeze(n.slice())})}defaultValue(){const n=[];this.coders.forEach(s=>{n.push(s.defaultValue())});const r=this.coders.reduce((s,i)=>{const o=i.localName;return o&&(s[o]||(s[o]=0),s[o]++),s},{});return this.coders.forEach((s,i)=>{let o=s.localName;!o||r[o]!==1||(o==="length"&&(o="_length"),n[o]==null&&(n[o]=n[i]))}),Object.freeze(n)}encode(n,r){const s=rt.dereference(r,"tuple");return uf(n,this.coders,s)}decode(n){return ff(n,this.coders)}}function y0(t){return Be(Kn(t))}var P9="AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVCkeXAOsA6godAB/cwdAUE0WlBCN/AQUCQRjFD/MRBjHxDQSJbw0jBzUAswBxme+tnIcAYwabAysG8QAjAEMMmxcDqgPKQyDXCMMxA7kUQwD3NXOrAKmFIAAfBC0D3x4BJQDBGdUFAhEgVD8JnwmQJiNWYUzrg0oAGwAUAB0AFnNcACkAFgBP9h3gPfsDOWDKneY2ChglX1UDYD30ABsAFAAdABZzIGRAnwDD8wAjAEEMzRbDqgMB2sAFYwXqAtCnAsS4AwpUJKRtFHsadUz9AMMVbwLpABM1NJEX0ZkCgYM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QHdPfsxChU/KtLG2Mn8i4ZqKdSlIaBZadxJmRzVS/o4yA65RTSViq60oa395Lqw0pzY4SipwE0SXXsKV+GZraGSkr/RW08wPRvqvSUkYBMA9lPx4m24az+IHmCbXA+0faxTRE9wuGeO06DIXa6QlKJ3puIyiuAVfPr736vzo2pBirS+Vxel3TMm3JKhz9o2ZoRvaFVpIkykb0Hcm4oHFBMcNSNj7/4GJt43ogonY2Vg4nsDQIWxAcorpXACzgBqQPjYsE/VUpXpwNManEru4NwMCFPkXvMoqvoeLN3qyu/N1eWEHttMD65v19l/0kH2mR35iv/FI+yjoHJ9gPMz67af3Mq/BoWXqu3rphiWMXVkmnPSEkpGpUI2h1MThideGFEOK6YZHPwYzMBvpNC7+ZHxPb7epfefGyIB4JzO9DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI";const R5=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),k5=4;function I9(t){let e=0;function n(){return t[e++]<<8|t[e++]}let r=n(),s=1,i=[0,1];for(let G=1;G>--c&1}const f=31,h=2**f,p=h>>>1,w=p>>1,m=h-1;let x=0;for(let G=0;G1;){let re=Q+L>>>1;G>>1|u(),D=D<<1^p,de=(de^p)<<1|p|1;N=D,O=1+de-D}let K=r-4;return A.map(G=>{switch(G-K){case 3:return K+65792+(t[a++]<<16|t[a++]<<8|t[a++]);case 2:return K+256+(t[a++]<<8|t[a++]);case 1:return K+t[a++];default:return G-1}})}function C9(t){let e=0;return()=>t[e++]}function hf(t){return C9(I9(N9(t)))}function N9(t){let e=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((s,i)=>e[s.charCodeAt(0)]=i);let n=t.length,r=new Uint8Array(6*n>>3);for(let s=0,i=0,o=0,a=0;s=8&&(r[i++]=a>>(o-=8));return r}function O9(t){return t&1?~t>>1:t>>1}function R9(t,e){let n=Array(t);for(let r=0,s=0;r{let e=ki(t);if(e.length)return e})}function pf(t){let e=[];for(;;){let n=t();if(n==0)break;e.push(k9(n,t))}for(;;){let n=t()-1;if(n<0)break;e.push(B9(n,t))}return e.flat()}function Bi(t){let e=[];for(;;){let n=t(e.length);if(!n)break;e.push(n)}return e}function gf(t,e,n){let r=Array(t).fill().map(()=>[]);for(let s=0;sr[o].push(i));return r}function k9(t,e){let n=1+e(),r=e(),s=Bi(e);return gf(s.length,1+t,e).flatMap((o,a)=>{let[c,...l]=o;return Array(s[a]).fill().map((u,f)=>{let h=f*r;return[c+f*n,l.map(p=>p+h)]})})}function B9(t,e){let n=1+e();return gf(n,1+t,e).map(s=>[s[0],s.slice(1)])}function S9(t){let e=[],n=ki(t);return s(r([]),[]),e;function r(i){let o=t(),a=Bi(()=>{let c=ki(t).map(l=>n[l]);if(c.length)return r(c)});return{S:o,B:a,Q:i}}function s({S:i,B:o},a,c){if(!(i&4&&c===a[a.length-1])){i&2&&(c=a[a.length-1]),i&1&&e.push(a);for(let l of o)for(let u of l.Q)s(l,[...a,u],c)}}}function M9(t){return t.toString(16).toUpperCase().padStart(2,"0")}function yf(t){return`{${M9(t)}}`}function _9(t){let e=[];for(let n=0,r=t.length;n>24&255}function Af(t){return t&16777215}let La,B5,Ha,O1;function z9(){let t=hf(U9);La=new Map(bf(t).flatMap((e,n)=>e.map(r=>[r,n+1<<24]))),B5=new Set(ki(t)),Ha=new Map,O1=new Map;for(let[e,n]of pf(t)){if(!B5.has(e)&&n.length==2){let[r,s]=n,i=O1.get(r);i||(i=new Map,O1.set(r,i)),i.set(s,e)}Ha.set(e,n.reverse())}}function Ef(t){return t>=Si&&t=X1&&t=$1&&eeo&&e0&&s(eo+l)}else{let o=Ha.get(i);o?n.push(...o):s(i)}if(!n.length)break;i=n.pop()}if(r&&e.length>1){let i=si(e[0]);for(let o=1;o0&&s>=o)o==0?(e.push(r,...n),n.length=0,r=a):n.push(a),s=o;else{let c=V9(r,a);c>=0?r=c:s==0&&o==0?(e.push(r),r=a):(n.push(a),s=o)}}return r>=0&&e.push(r,...n),e}function vf(t){return xf(t).map(Af)}function K9(t){return j9(xf(t))}const S5=45,Tf=".",Pf=65039,If=1,D0=t=>Array.from(t);function Mi(t,e){return t.P.has(e)||t.Q.has(e)}class J9 extends Array{get is_emoji(){return!0}}let Qa,Cf,Gr,Ga,Nf,j0,sa,B0,Of,M5,za;function Lc(){if(Qa)return;let t=hf(P9);const e=()=>ki(t),n=()=>new Set(e());Qa=new Map(pf(t)),Cf=n(),Gr=e(),Ga=new Set(e().map(u=>Gr[u])),Gr=new Set(Gr),Nf=n(),n();let r=bf(t),s=t();const i=()=>new Set(e().flatMap(u=>r[u]).concat(e()));j0=Bi(u=>{let f=Bi(t).map(h=>h+96);if(f.length){let h=u>=s;f[0]-=32,f=Gs(f),h&&(f=`Restricted[${f}]`);let p=i(),w=i(),m=!t();return{N:f,P:p,Q:w,M:m,R:h}}}),sa=n(),B0=new Map;let o=e().concat(D0(sa)).sort((u,f)=>u-f);o.forEach((u,f)=>{let h=t(),p=o[f]=h?o[f-h]:{V:[],M:new Map};p.V.push(u),sa.has(u)||B0.set(u,p)});for(let{V:u,M:f}of new Set(B0.values())){let h=[];for(let w of u){let m=j0.filter(A=>Mi(A,w)),x=h.find(({G:A})=>m.some(N=>A.has(N)));x||(x={G:new Set,V:[]},h.push(x)),x.V.push(w),m.forEach(A=>x.G.add(A))}let p=h.flatMap(w=>D0(w.G));for(let{G:w,V:m}of h){let x=new Set(p.filter(A=>!w.has(A)));for(let A of m)f.set(A,x)}}let a=new Set,c=new Set;const l=u=>a.has(u)?c.add(u):a.add(u);for(let u of j0){for(let f of u.P)l(f);for(let f of u.Q)l(f)}for(let u of a)!B0.has(u)&&!c.has(u)&&B0.set(u,If);Of=new Set(D0(a).concat(D0(vf(a)))),M5=S9(t).map(u=>J9.from(u)).sort(F9),za=new Map;for(let u of M5){let f=[za];for(let h of u){let p=f.map(w=>{let m=w.get(h);return m||(m=new Map,w.set(h,m)),m});h===Pf?f.push(...p):f=p}for(let h of f)h.V=u}}function Hc(t){return(Rf(t)?"":`${Qc(Fo([t]))} `)+yf(t)}function Qc(t){return`"${t}"\u200E`}function W9(t){if(t.length>=4&&t[2]==S5&&t[3]==S5)throw new Error(`invalid label extension: "${Gs(t.slice(0,4))}"`)}function Z9(t){for(let n=t.lastIndexOf(95);n>0;)if(t[--n]!==95)throw new Error("underscore allowed only at start")}function Y9(t){let e=t[0],n=R5.get(e);if(n)throw pi(`leading ${n}`);let r=t.length,s=-1;for(let i=1;i{let i=_9(s),o={input:i,offset:r};r+=i.length+1;try{let a=o.tokens=s3(i,e,n),c=a.length,l;if(!c)throw new Error("empty label");let u=o.output=a.flat();if(Z9(u),!(o.emoji=c>1||a[0].is_emoji)&&u.every(h=>h<128))W9(u),l="ASCII";else{let h=a.flatMap(p=>p.is_emoji?[]:p);if(!h.length)l="Emoji";else{if(Gr.has(u[0]))throw pi("leading combining mark");for(let m=1;mo.has(a)):D0(o),!n.length)return}else r.push(s)}if(n){for(let s of n)if(r.every(i=>Mi(s,i)))throw new Error(`whole-script confusable: ${t.N}/${s.N}`)}}function t3(t){let e=j0;for(let n of t){let r=e.filter(s=>Mi(s,n));if(!r.length)throw j0.some(s=>Mi(s,n))?Bf(e[0],n):kf(n);if(e=r,r.length==1)break}return e}function n3(t){return t.map(({input:e,error:n,output:r})=>{if(n){let s=n.message;throw new Error(t.length==1?s:`Invalid label ${Qc(Fo(e))}: ${s}`)}return Gs(r)}).join(Tf)}function kf(t){return new Error(`disallowed character: ${Hc(t)}`)}function Bf(t,e){let n=Hc(e),r=j0.find(s=>s.P.has(e));return r&&(n=`${r.N} ${n}`),new Error(`illegal mixture: ${t.N} + ${n}`)}function pi(t){return new Error(`illegal placement: ${t}`)}function r3(t,e){for(let n of e)if(!Mi(t,n))throw Bf(t,n);if(t.M){let n=vf(e);for(let r=1,s=n.length;rk5)throw new Error(`excessive non-spacing marks: ${Qc(Fo(n.slice(r-1,i)))} (${i-r}/${k5})`);r=i}}}function s3(t,e,n){let r=[],s=[];for(t=t.slice().reverse();t.length;){let i=o3(t);if(i)s.length&&(r.push(e(s)),s=[]),r.push(n(i));else{let o=t.pop();if(Of.has(o))s.push(o);else{let a=Qa.get(o);if(a)s.push(...a);else if(!Cf.has(o))throw kf(o)}}}return s.length&&r.push(e(s)),r}function i3(t){return t.filter(e=>e!=Pf)}function o3(t,e){let n=za,r,s=t.length;for(;s&&(n=n.get(t[--s]),!!n);){let{V:i}=n;i&&(r=i,e&&e.push(...t.slice(s).reverse()),t.length=s)}return r}const Sf=new Uint8Array(32);Sf.fill(0);function _5(t){return E(t.length!==0,"invalid ENS name; empty component","comp",t),t}function Mf(t){const e=Kn(a3(t)),n=[];if(t.length===0)return n;let r=0;for(let s=0;s{if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const n=new Uint8Array(e.length+1);return n.set(e,1),n[0]=n.length-1,n})))+"00"}function ia(t,e){return{address:me(t),storageKeys:e.map((n,r)=>(E(Se(n,32),"invalid slot",`storageKeys[${r}]`,n),n.toLowerCase()))}}function x0(t){if(Array.isArray(t))return t.map((n,r)=>Array.isArray(n)?(E(n.length===2,"invalid slot set",`value[${r}]`,n),ia(n[0],n[1])):(E(n!=null&&typeof n=="object","invalid address-slot set","value",t),ia(n.address,n.storageKeys)));E(t!=null&&typeof t=="object","invalid access list","value",t);const e=Object.keys(t).map(n=>{const r=t[n].reduce((s,i)=>(s[i]=!0,s),{});return ia(n,Object.keys(r).sort())});return e.sort((n,r)=>n.address.localeCompare(r.address)),e}function l3(t){let e;return typeof t=="string"?e=Ri.computePublicKey(t,!1):e=t.publicKey,me(Be("0x"+e.substring(4)).substring(26))}function u3(t,e){return l3(Ri.recoverPublicKey(t,e))}const At=BigInt(0),f3=BigInt(2),d3=BigInt(27),h3=BigInt(28),b3=BigInt(35),p3=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function Gc(t){return t==="0x"?null:me(t)}function _f(t,e){try{return x0(t)}catch(n){E(!1,n.message,e,t)}}function Uo(t,e){return t==="0x"?0:fe(t,e)}function ct(t,e){if(t==="0x")return At;const n=X(t,e);return E(n<=p3,"value exceeds uint size",e,n),n}function We(t,e){const n=X(t,"value"),r=Bt(n);return E(r.length<=32,"value too large",`tx.${e}`,n),r}function Ff(t){return x0(t).map(e=>[e.address,e.storageKeys])}function g3(t){const e=Rc(t);E(Array.isArray(e)&&(e.length===9||e.length===6),"invalid field count for legacy transaction","data",t);const n={type:0,nonce:Uo(e[0],"nonce"),gasPrice:ct(e[1],"gasPrice"),gasLimit:ct(e[2],"gasLimit"),to:Gc(e[3]),value:ct(e[4],"value"),data:q(e[5]),chainId:At};if(e.length===6)return n;const r=ct(e[6],"v"),s=ct(e[7],"r"),i=ct(e[8],"s");if(s===At&&i===At)n.chainId=r;else{let o=(r-b3)/f3;o=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),k(!n||this.type!==0&&this.type!==1,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),k(this.type!==0||!r,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const s=[];return this.type!=null?s.push(this.type):n?s.push(2):e?(s.push(1),r||s.push(0)):r?(s.push(1),s.push(2)):(s.push(0),s.push(1),s.push(2)),s.sort(),s}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}clone(){return cr.from(this)}toJSON(){const e=n=>n==null?null:n.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:e(this.gasLimit),gasPrice:e(this.gasPrice),maxPriorityFeePerGas:e(this.maxPriorityFeePerGas),maxFeePerGas:e(this.maxFeePerGas),value:e(this.value),chainId:e(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}static from(e){if(e==null)return new cr;if(typeof e=="string"){const r=ge(e);if(r[0]>=127)return cr.from(g3(r));switch(r[0]){case 1:return cr.from(m3(r));case 2:return cr.from(y3(r))}k(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}const n=new cr;return e.type!=null&&(n.type=e.type),e.to!=null&&(n.to=e.to),e.nonce!=null&&(n.nonce=e.nonce),e.gasLimit!=null&&(n.gasLimit=e.gasLimit),e.gasPrice!=null&&(n.gasPrice=e.gasPrice),e.maxPriorityFeePerGas!=null&&(n.maxPriorityFeePerGas=e.maxPriorityFeePerGas),e.maxFeePerGas!=null&&(n.maxFeePerGas=e.maxFeePerGas),e.data!=null&&(n.data=e.data),e.value!=null&&(n.value=e.value),e.chainId!=null&&(n.chainId=e.chainId),e.signature!=null&&(n.signature=rn.from(e.signature)),e.accessList!=null&&(n.accessList=e.accessList),e.hash!=null&&(E(n.isSigned(),"unsigned transaction cannot define hash","tx",e),E(n.hash===e.hash,"hash mismatch","tx",e)),e.from!=null&&(E(n.isSigned(),"unsigned transaction cannot define from","tx",e),E(n.from.toLowerCase()===(e.from||"").toLowerCase(),"from mismatch","tx",e)),n}};let no=cr;Fn=new WeakMap,ns=new WeakMap,rs=new WeakMap,ss=new WeakMap,is=new WeakMap,os=new WeakMap,as=new WeakMap,cs=new WeakMap,ls=new WeakMap,us=new WeakMap,fs=new WeakMap,ds=new WeakMap;const Df=new Uint8Array(32);Df.fill(0);const w3=BigInt(-1),Lf=BigInt(0),Hf=BigInt(1),A3=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function E3(t){const e=ge(t),n=e.length%32;return n?Ge([e,Df.slice(n)]):q(e)}const x3=kr(Hf,32),v3=kr(Lf,32),L5={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},oa=["name","version","chainId","verifyingContract","salt"];function H5(t){return function(e){return E(typeof e=="string",`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}const T3={name:H5("name"),version:H5("version"),chainId:function(t){const e=X(t,"domain.chainId");return E(e>=0,"invalid chain ID","domain.chainId",t),Number.isSafeInteger(e)?Number(e):U0(e)},verifyingContract:function(t){try{return me(t).toLowerCase()}catch{}E(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){const e=ge(t,"domain.salt");return E(e.length===32,'invalid domain value "salt"',"domain.salt",t),q(e)}};function aa(t){{const e=t.match(/^(u?)int(\d*)$/);if(e){const n=e[1]==="",r=parseInt(e[2]||"256");E(r%8===0&&r!==0&&r<=256&&(e[2]==null||e[2]===String(r)),"invalid numeric width","type",t);const s=ni(A3,n?r-1:r),i=n?(s+Hf)*w3:Lf;return function(o){const a=X(o,"value");return E(a>=i&&a<=s,`value out-of-bounds for ${t}`,"value",a),kr(n?Bu(a,256):a,32)}}}{const e=t.match(/^bytes(\d+)$/);if(e){const n=parseInt(e[1]);return E(n!==0&&n<=32&&e[1]===String(n),"invalid bytes width","type",t),function(r){const s=ge(r);return E(s.length===n,`invalid length for ${t}`,"value",r),E3(r)}}}switch(t){case"address":return function(e){return g0(me(e),32)};case"bool":return function(e){return e?x3:v3};case"bytes":return function(e){return Be(e)};case"string":return function(e){return y0(e)}}return null}function Q5(t,e){return`${t}(${e.map(({name:n,type:r})=>r+" "+n).join(",")})`}var zi,Un,hs,co,Qf;const _t=class{constructor(e){T(this,co);v(this,"primaryType");T(this,zi,void 0);T(this,Un,void 0);T(this,hs,void 0);g(this,zi,JSON.stringify(e)),g(this,Un,new Map),g(this,hs,new Map);const n=new Map,r=new Map,s=new Map;Object.keys(e).forEach(a=>{n.set(a,new Set),r.set(a,[]),s.set(a,new Set)});for(const a in e){const c=new Set;for(const l of e[a]){E(!c.has(l.name),`duplicate variable name ${JSON.stringify(l.name)} in ${JSON.stringify(a)}`,"types",e),c.add(l.name);const u=l.type.match(/^([^\x5b]*)(\x5b|$)/)[1]||null;E(u!==a,`circular type reference to ${JSON.stringify(u)}`,"types",e),!aa(u)&&(E(r.has(u),`unknown type ${JSON.stringify(u)}`,"types",e),r.get(u).push(a),n.get(a).add(u))}}const i=Array.from(r.keys()).filter(a=>r.get(a).length===0);E(i.length!==0,"missing primary type","types",e),E(i.length===1,`ambiguous primary types or unused types: ${i.map(a=>JSON.stringify(a)).join(", ")}`,"types",e),ne(this,{primaryType:i[0]});function o(a,c){E(!c.has(a),`circular type reference to ${JSON.stringify(a)}`,"types",e),c.add(a);for(const l of n.get(a))if(!!r.has(l)){o(l,c);for(const u of c)s.get(u).add(l)}c.delete(a)}o(this.primaryType,new Set);for(const[a,c]of s){const l=Array.from(c);l.sort(),d(this,Un).set(a,Q5(a,e[a])+l.map(u=>Q5(u,e[u])).join(""))}}get types(){return JSON.parse(d(this,zi))}getEncoder(e){let n=d(this,hs).get(e);return n||(n=V(this,co,Qf).call(this,e),d(this,hs).set(e,n)),n}encodeType(e){const n=d(this,Un).get(e);return E(n,`unknown type: ${JSON.stringify(e)}`,"name",e),n}encodeData(e,n){return this.getEncoder(e)(n)}hashStruct(e,n){return Be(this.encodeData(e,n))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,n,r){if(aa(e))return r(e,n);const s=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(s)return E(!s[3]||parseInt(s[3])===n.length,`array length mismatch; expected length ${parseInt(s[3])}`,"value",n),n.map(o=>this._visit(s[1],o,r));const i=this.types[e];if(i)return i.reduce((o,{name:a,type:c})=>(o[a]=this._visit(c,n[a],r),o),{});E(!1,`unknown type: ${e}`,"type",e)}visit(e,n){return this._visit(this.primaryType,e,n)}static from(e){return new _t(e)}static getPrimaryType(e){return _t.from(e).primaryType}static hashStruct(e,n,r){return _t.from(n).hashStruct(e,r)}static hashDomain(e){const n=[];for(const r in e){if(e[r]==null)continue;const s=L5[r];E(s,`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",e),n.push({name:r,type:s})}return n.sort((r,s)=>oa.indexOf(r.name)-oa.indexOf(s.name)),_t.hashStruct("EIP712Domain",{EIP712Domain:n},e)}static encode(e,n,r){return Ge(["0x1901",_t.hashDomain(e),_t.from(n).hash(r)])}static hash(e,n,r){return Be(_t.encode(e,n,r))}static async resolveNames(e,n,r,s){e=Object.assign({},e);for(const a in e)e[a]==null&&delete e[a];const i={};e.verifyingContract&&!Se(e.verifyingContract,20)&&(i[e.verifyingContract]="0x");const o=_t.from(n);o.visit(r,(a,c)=>(a==="address"&&!Se(c,20)&&(i[c]="0x"),c));for(const a in i)i[a]=await s(a);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),r=o.visit(r,(a,c)=>a==="address"&&i[c]?i[c]:c),{domain:e,value:r}}static getPayload(e,n,r){_t.hashDomain(e);const s={},i=[];oa.forEach(c=>{const l=e[c];l!=null&&(s[c]=T3[c](l),i.push({name:c,type:L5[c]}))});const o=_t.from(n),a=Object.assign({},n);return E(a.EIP712Domain==null,"types must not contain EIP712Domain type","types.EIP712Domain",n),a.EIP712Domain=i,o.encode(r),{types:a,domain:s,primaryType:o.primaryType,message:o.visit(r,(c,l)=>{if(c.match(/^bytes(\d*)/))return q(ge(l));if(c.match(/^u?int/))return X(l).toString();switch(c){case"address":return l.toLowerCase();case"bool":return!!l;case"string":return E(typeof l=="string","invalid string","value",l),l}E(!1,"unsupported type","type",c)})}}};let ro=_t;zi=new WeakMap,Un=new WeakMap,hs=new WeakMap,co=new WeakSet,Qf=function(e){{const s=aa(e);if(s)return s}const n=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){const s=n[1],i=this.getEncoder(s);return o=>{E(!n[3]||parseInt(n[3])===o.length,`array length mismatch; expected length ${parseInt(n[3])}`,"value",o);let a=o.map(i);return d(this,Un).has(s)&&(a=a.map(Be)),Be(Ge(a))}}const r=this.types[e];if(r){const s=y0(d(this,Un).get(e));return i=>{const o=r.map(({name:a,type:c})=>{const l=this.getEncoder(c)(i[a]);return d(this,Un).has(c)?Be(l):l});return o.unshift(s),Ge(o)}}E(!1,`unknown type: ${e}`,"type",e)};function ht(t){const e=new Set;return t.forEach(n=>e.add(n)),Object.freeze(e)}const P3="external public payable",I3=ht(P3.split(" ")),Gf="constant external internal payable private public pure view",C3=ht(Gf.split(" ")),zf="constructor error event fallback function receive struct",Vf=ht(zf.split(" ")),jf="calldata memory storage payable indexed",N3=ht(jf.split(" ")),O3="tuple returns",R3=[zf,jf,O3,Gf].join(" "),k3=ht(R3.split(" ")),B3={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},S3=new RegExp("^(\\s*)"),M3=new RegExp("^([0-9]+)"),_3=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),Kf=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),Jf=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");var Je,Zt,Vi,ja;const lo=class{constructor(e){T(this,Vi);T(this,Je,void 0);T(this,Zt,void 0);g(this,Je,0),g(this,Zt,e.slice())}get offset(){return d(this,Je)}get length(){return d(this,Zt).length-d(this,Je)}clone(){return new lo(d(this,Zt))}reset(){g(this,Je,0)}popKeyword(e){const n=this.peek();if(n.type!=="KEYWORD"||!e.has(n.text))throw new Error(`expected keyword ${n.text}`);return this.pop().text}popType(e){if(this.peek().type!==e)throw new Error(`expected ${e}; got ${JSON.stringify(this.peek())}`);return this.pop().text}popParen(){const e=this.peek();if(e.type!=="OPEN_PAREN")throw new Error("bad start");const n=V(this,Vi,ja).call(this,d(this,Je)+1,e.match+1);return g(this,Je,e.match+1),n}popParams(){const e=this.peek();if(e.type!=="OPEN_PAREN")throw new Error("bad start");const n=[];for(;d(this,Je)=d(this,Zt).length)throw new Error("out-of-bounds");return d(this,Zt)[d(this,Je)]}peekKeyword(e){const n=this.peekType("KEYWORD");return n!=null&&e.has(n)?n:null}peekType(e){if(this.length===0)return null;const n=this.peek();return n.type===e?n.text:null}pop(){const e=this.peek();return Ys(this,Je)._++,e}toString(){const e=[];for(let n=d(this,Je);n`}};let sn=lo;Je=new WeakMap,Zt=new WeakMap,Vi=new WeakSet,ja=function(e=0,n=0){return new lo(d(this,Zt).slice(e,n).map(r=>Object.freeze(Object.assign({},r,{match:r.match-e,linkBack:r.linkBack-e,linkNext:r.linkNext-e}))))};function Br(t){const e=[],n=o=>{const a=i0&&e[e.length-1].type==="NUMBER"){const f=e.pop().text;u=f+u,e[e.length-1].value=fe(f)}if(e.length===0||e[e.length-1].type!=="BRACKET")throw new Error("missing opening bracket");e[e.length-1].text+=u}continue}if(a=o.match(_3),a){if(c.text=a[1],i+=c.text.length,k3.has(c.text)){c.type="KEYWORD";continue}if(c.text.match(Jf)){c.type="TYPE";continue}c.type="ID";continue}if(a=o.match(M3),a){c.text=a[1],c.type="NUMBER",i+=c.text.length;continue}throw new Error(`unexpected token ${JSON.stringify(o[0])} at position ${i}`)}return new sn(e.map(o=>Object.freeze(o)))}function G5(t,e){let n=[];for(const r in e.keys())t.has(r)&&n.push(r);if(n.length>1)throw new Error(`conflicting types: ${n.join(", ")}`)}function Do(t,e){if(e.peekKeyword(Vf)){const n=e.pop().text;if(n!==t)throw new Error(`expected ${t}, got ${n}`)}return e.popType("ID")}function Yn(t,e){const n=new Set;for(;;){const r=t.peekType("KEYWORD");if(r==null||e&&!e.has(r))break;if(t.pop(),n.has(r))throw new Error(`duplicate keywords: ${JSON.stringify(r)}`);n.add(r)}return Object.freeze(n)}function Wf(t){let e=Yn(t,C3);return G5(e,ht("constant payable nonpayable".split(" "))),G5(e,ht("pure view payable nonpayable".split(" "))),e.has("view")?"view":e.has("pure")?"pure":e.has("payable")?"payable":e.has("nonpayable")?"nonpayable":e.has("constant")?"view":"nonpayable"}function Jn(t,e){return t.popParams().map(n=>Ye.from(n,e))}function Zf(t){if(t.peekType("AT")){if(t.pop(),t.peekType("NUMBER"))return X(t.pop().text);throw new Error("invalid gas")}return null}function m0(t){if(t.length)throw new Error(`unexpected tokens: ${t.toString()}`)}const F3=new RegExp(/^(.*)\[([0-9]*)\]$/);function z5(t){const e=t.match(Jf);if(E(e,"invalid type","type",t),t==="uint")return"uint256";if(t==="int")return"int256";if(e[2]){const n=parseInt(e[2]);E(n!==0&&n<=32,"invalid bytes length","type",t)}else if(e[3]){const n=parseInt(e[3]);E(n!==0&&n<=256&&n%8===0,"invalid numeric width","type",t)}return t}const ke={},xt=Symbol.for("_ethers_internal"),V5="_ParamTypeInternal",j5="_ErrorInternal",K5="_EventInternal",J5="_ConstructorInternal",W5="_FallbackInternal",Z5="_FunctionInternal",Y5="_StructInternal";var bs,R1;const Ft=class{constructor(e,n,r,s,i,o,a,c){T(this,bs);v(this,"name");v(this,"type");v(this,"baseType");v(this,"indexed");v(this,"components");v(this,"arrayLength");v(this,"arrayChildren");if(Ro(e,ke,"ParamType"),Object.defineProperty(this,xt,{value:V5}),o&&(o=Object.freeze(o.slice())),s==="array"){if(a==null||c==null)throw new Error("")}else if(a!=null||c!=null)throw new Error("");if(s==="tuple"){if(o==null)throw new Error("")}else if(o!=null)throw new Error("");ne(this,{name:n,type:r,baseType:s,indexed:i,components:o,arrayLength:a,arrayChildren:c})}format(e){if(e==null&&(e="sighash"),e==="json"){const r=this.name||"";if(this.isArray()){const i=JSON.parse(this.arrayChildren.format("json"));return i.name=r,i.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(i)}const s={type:this.baseType==="tuple"?"tuple":this.type,name:r};return typeof this.indexed=="boolean"&&(s.indexed=this.indexed),this.isTuple()&&(s.components=this.components.map(i=>JSON.parse(i.format(e)))),JSON.stringify(s)}let n="";return this.isArray()?(n+=this.arrayChildren.format(e),n+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?n+="("+this.components.map(r=>r.format(e)).join(e==="full"?", ":",")+")":n+=this.type,e!=="sighash"&&(this.indexed===!0&&(n+=" indexed"),e==="full"&&this.name&&(n+=" "+this.name)),n}isArray(){return this.baseType==="array"}isTuple(){return this.baseType==="tuple"}isIndexable(){return this.indexed!=null}walk(e,n){if(this.isArray()){if(!Array.isArray(e))throw new Error("invalid array value");if(this.arrayLength!==-1&&e.length!==this.arrayLength)throw new Error("array is wrong length");const r=this;return e.map(s=>r.arrayChildren.walk(s,n))}if(this.isTuple()){if(!Array.isArray(e))throw new Error("invalid tuple value");if(e.length!==this.components.length)throw new Error("array is wrong length");const r=this;return e.map((s,i)=>r.components[i].walk(s,n))}return n(this.type,e)}async walkAsync(e,n){const r=[],s=[e];return V(this,bs,R1).call(this,r,e,n,i=>{s[0]=i}),r.length&&await Promise.all(r),s[0]}static from(e,n){if(Ft.isParamType(e))return e;if(typeof e=="string")try{return Ft.from(Br(e),n)}catch{E(!1,"invalid param type","obj",e)}else if(e instanceof sn){let a="",c="",l=null;Yn(e,ht(["tuple"])).has("tuple")||e.peekType("OPEN_PAREN")?(c="tuple",l=e.popParams().map(m=>Ft.from(m)),a=`tuple(${l.map(m=>m.format()).join(",")})`):(a=z5(e.popType("TYPE")),c=a);let u=null,f=null;for(;e.length&&e.peekType("BRACKET");){const m=e.pop();u=new Ft(ke,"",a,c,null,l,f,u),f=m.value,a+=m.text,c="array",l=null}let h=null;if(Yn(e,N3).has("indexed")){if(!n)throw new Error("");h=!0}const w=e.peekType("ID")?e.pop().text:"";if(e.length)throw new Error("leftover tokens");return new Ft(ke,w,a,c,h,l,f,u)}const r=e.name;E(!r||typeof r=="string"&&r.match(Kf),"invalid name","obj.name",r);let s=e.indexed;s!=null&&(E(n,"parameter cannot be indexed","obj.indexed",e.indexed),s=!!s);let i=e.type,o=i.match(F3);if(o){const a=parseInt(o[2]||"-1"),c=Ft.from({type:o[1],components:e.components});return new Ft(ke,r||"",i,"array",s,null,a,c)}if(i==="tuple"||i.startsWith("tuple(")||i.startsWith("(")){const a=e.components!=null?e.components.map(l=>Ft.from(l)):null;return new Ft(ke,r||"",i,"tuple",s,a,null,null)}return i=z5(e.type),new Ft(ke,r||"",i,i,s,null,null,null)}static isParamType(e){return e&&e[xt]===V5}};let Ye=Ft;bs=new WeakSet,R1=function(e,n,r,s){if(this.isArray()){if(!Array.isArray(n))throw new Error("invalid array value");if(this.arrayLength!==-1&&n.length!==this.arrayLength)throw new Error("array is wrong length");const o=this.arrayChildren,a=n.slice();a.forEach((c,l)=>{var u;V(u=o,bs,R1).call(u,e,c,r,f=>{a[l]=f})}),s(a);return}if(this.isTuple()){const o=this.components;let a;if(Array.isArray(n))a=n.slice();else{if(n==null||typeof n!="object")throw new Error("invalid tuple value");a=o.map(c=>{if(!c.name)throw new Error("cannot use object value with unnamed components");if(!(c.name in n))throw new Error(`missing value for component ${c.name}`);return n[c.name]})}if(a.length!==this.components.length)throw new Error("array is wrong length");a.forEach((c,l)=>{var u;V(u=o[l],bs,R1).call(u,e,c,r,f=>{a[l]=f})}),s(a);return}const i=r(this.type,n);i.then?e.push(async function(){s(await i)}()):s(i)};class w0{constructor(e,n,r){v(this,"type");v(this,"inputs");Ro(e,ke,"Fragment"),r=Object.freeze(r.slice()),ne(this,{type:n,inputs:r})}static from(e){if(typeof e=="string"){try{w0.from(JSON.parse(e))}catch{}return w0.from(Br(e))}if(e instanceof sn)switch(e.peekKeyword(Vf)){case"constructor":return jn.from(e);case"error":return Et.from(e);case"event":return An.from(e);case"fallback":case"receive":return Rn.from(e);case"function":return En.from(e);case"struct":return p0.from(e)}else if(typeof e=="object"){switch(e.type){case"constructor":return jn.from(e);case"error":return Et.from(e);case"event":return An.from(e);case"fallback":case"receive":return Rn.from(e);case"function":return En.from(e);case"struct":return p0.from(e)}k(!1,`unsupported type: ${e.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}E(!1,"unsupported frgament object","obj",e)}static isConstructor(e){return jn.isFragment(e)}static isError(e){return Et.isFragment(e)}static isEvent(e){return An.isFragment(e)}static isFunction(e){return En.isFragment(e)}static isStruct(e){return p0.isFragment(e)}}class Lo extends w0{constructor(n,r,s,i){super(n,r,i);v(this,"name");E(typeof s=="string"&&s.match(Kf),"invalid identifier","name",s),i=Object.freeze(i.slice()),ne(this,{name:s})}}function _i(t,e){return"("+e.map(n=>n.format(t)).join(t==="full"?", ":",")+")"}class Et extends Lo{constructor(e,n,r){super(e,"error",n,r),Object.defineProperty(this,xt,{value:j5})}get selector(){return y0(this.format("sighash")).substring(0,10)}format(e){if(e==null&&(e="sighash"),e==="json")return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(r=>JSON.parse(r.format(e)))});const n=[];return e!=="sighash"&&n.push("error"),n.push(this.name+_i(e,this.inputs)),n.join(" ")}static from(e){if(Et.isFragment(e))return e;if(typeof e=="string")return Et.from(Br(e));if(e instanceof sn){const n=Do("error",e),r=Jn(e);return m0(e),new Et(ke,n,r)}return new Et(ke,e.name,e.inputs?e.inputs.map(Ye.from):[])}static isFragment(e){return e&&e[xt]===j5}}class An extends Lo{constructor(n,r,s,i){super(n,"event",r,s);v(this,"anonymous");Object.defineProperty(this,xt,{value:K5}),ne(this,{anonymous:i})}get topicHash(){return y0(this.format("sighash"))}format(n){if(n==null&&(n="sighash"),n==="json")return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(s=>JSON.parse(s.format(n)))});const r=[];return n!=="sighash"&&r.push("event"),r.push(this.name+_i(n,this.inputs)),n!=="sighash"&&this.anonymous&&r.push("anonymous"),r.join(" ")}static getTopicHash(n,r){return r=(r||[]).map(i=>Ye.from(i)),new An(ke,n,r,!1).topicHash}static from(n){if(An.isFragment(n))return n;if(typeof n=="string")try{return An.from(Br(n))}catch{E(!1,"invalid event fragment","obj",n)}else if(n instanceof sn){const r=Do("event",n),s=Jn(n,!0),i=!!Yn(n,ht(["anonymous"])).has("anonymous");return m0(n),new An(ke,r,s,i)}return new An(ke,n.name,n.inputs?n.inputs.map(r=>Ye.from(r,!0)):[],!!n.anonymous)}static isFragment(n){return n&&n[xt]===K5}}class jn extends w0{constructor(n,r,s,i,o){super(n,r,s);v(this,"payable");v(this,"gas");Object.defineProperty(this,xt,{value:J5}),ne(this,{payable:i,gas:o})}format(n){if(k(n!=null&&n!=="sighash","cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),n==="json")return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(s=>JSON.parse(s.format(n)))});const r=[`constructor${_i(n,this.inputs)}`];return this.payable&&r.push("payable"),this.gas!=null&&r.push(`@${this.gas.toString()}`),r.join(" ")}static from(n){if(jn.isFragment(n))return n;if(typeof n=="string")try{return jn.from(Br(n))}catch{E(!1,"invalid constuctor fragment","obj",n)}else if(n instanceof sn){Yn(n,ht(["constructor"]));const r=Jn(n),s=!!Yn(n,I3).has("payable"),i=Zf(n);return m0(n),new jn(ke,"constructor",r,s,i)}return new jn(ke,"constructor",n.inputs?n.inputs.map(Ye.from):[],!!n.payable,n.gas!=null?n.gas:null)}static isFragment(n){return n&&n[xt]===J5}}class Rn extends w0{constructor(n,r,s){super(n,"fallback",r);v(this,"payable");Object.defineProperty(this,xt,{value:W5}),ne(this,{payable:s})}format(n){const r=this.inputs.length===0?"receive":"fallback";if(n==="json"){const s=this.payable?"payable":"nonpayable";return JSON.stringify({type:r,stateMutability:s})}return`${r}()${this.payable?" payable":""}`}static from(n){if(Rn.isFragment(n))return n;if(typeof n=="string")try{return Rn.from(Br(n))}catch{E(!1,"invalid fallback fragment","obj",n)}else if(n instanceof sn){const r=n.toString(),s=n.peekKeyword(ht(["fallback","receive"]));if(E(s,"type must be fallback or receive","obj",r),n.popKeyword(ht(["fallback","receive"]))==="receive"){const c=Jn(n);return E(c.length===0,"receive cannot have arguments","obj.inputs",c),Yn(n,ht(["payable"])),m0(n),new Rn(ke,[],!0)}let o=Jn(n);o.length?E(o.length===1&&o[0].type==="bytes","invalid fallback inputs","obj.inputs",o.map(c=>c.format("minimal")).join(", ")):o=[Ye.from("bytes")];const a=Wf(n);if(E(a==="nonpayable"||a==="payable","fallback cannot be constants","obj.stateMutability",a),Yn(n,ht(["returns"])).has("returns")){const c=Jn(n);E(c.length===1&&c[0].type==="bytes","invalid fallback outputs","obj.outputs",c.map(l=>l.format("minimal")).join(", "))}return m0(n),new Rn(ke,o,a==="payable")}if(n.type==="receive")return new Rn(ke,[],!0);if(n.type==="fallback"){const r=[Ye.from("bytes")],s=n.stateMutability==="payable";return new Rn(ke,r,s)}E(!1,"invalid fallback description","obj",n)}static isFragment(n){return n&&n[xt]===W5}}class En extends Lo{constructor(n,r,s,i,o,a){super(n,"function",r,i);v(this,"constant");v(this,"outputs");v(this,"stateMutability");v(this,"payable");v(this,"gas");Object.defineProperty(this,xt,{value:Z5}),o=Object.freeze(o.slice()),ne(this,{constant:s==="view"||s==="pure",gas:a,outputs:o,payable:s==="payable",stateMutability:s})}get selector(){return y0(this.format("sighash")).substring(0,10)}format(n){if(n==null&&(n="sighash"),n==="json")return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(s=>JSON.parse(s.format(n))),outputs:this.outputs.map(s=>JSON.parse(s.format(n)))});const r=[];return n!=="sighash"&&r.push("function"),r.push(this.name+_i(n,this.inputs)),n!=="sighash"&&(this.stateMutability!=="nonpayable"&&r.push(this.stateMutability),this.outputs&&this.outputs.length&&(r.push("returns"),r.push(_i(n,this.outputs))),this.gas!=null&&r.push(`@${this.gas.toString()}`)),r.join(" ")}static getSelector(n,r){return r=(r||[]).map(i=>Ye.from(i)),new En(ke,n,"view",r,[],null).selector}static from(n){if(En.isFragment(n))return n;if(typeof n=="string")try{return En.from(Br(n))}catch{E(!1,"invalid function fragment","obj",n)}else if(n instanceof sn){const s=Do("function",n),i=Jn(n),o=Wf(n);let a=[];Yn(n,ht(["returns"])).has("returns")&&(a=Jn(n));const c=Zf(n);return m0(n),new En(ke,s,o,i,a,c)}let r=n.stateMutability;return r==null&&(r="payable",typeof n.constant=="boolean"?(r="view",n.constant||(r="payable",typeof n.payable=="boolean"&&!n.payable&&(r="nonpayable"))):typeof n.payable=="boolean"&&!n.payable&&(r="nonpayable")),new En(ke,n.name,r,n.inputs?n.inputs.map(Ye.from):[],n.outputs?n.outputs.map(Ye.from):[],n.gas!=null?n.gas:null)}static isFragment(n){return n&&n[xt]===Z5}}class p0 extends Lo{constructor(e,n,r){super(e,"struct",n,r),Object.defineProperty(this,xt,{value:Y5})}format(){throw new Error("@TODO")}static from(e){if(typeof e=="string")try{return p0.from(Br(e))}catch{E(!1,"invalid struct fragment","obj",e)}else if(e instanceof sn){const n=Do("struct",e),r=Jn(e);return m0(e),new p0(ke,n,r)}return new p0(ke,e.name,e.inputs?e.inputs.map(Ye.from):[])}static isFragment(e){return e&&e[xt]===Y5}}const on=new Map;on.set(0,"GENERIC_PANIC");on.set(1,"ASSERT_FALSE");on.set(17,"OVERFLOW");on.set(18,"DIVIDE_BY_ZERO");on.set(33,"ENUM_RANGE_ERROR");on.set(34,"BAD_STORAGE_DATA");on.set(49,"STACK_UNDERFLOW");on.set(50,"ARRAY_RANGE_ERROR");on.set(65,"OUT_OF_MEMORY");on.set(81,"UNINITIALIZED_FUNCTION_CALL");const U3=new RegExp(/^bytes([0-9]*)$/),D3=new RegExp(/^(u?int)([0-9]*)$/);let ca=null,q5=1024;function L3(t,e,n,r){let s="missing revert data",i=null;const o=null;let a=null;if(n){s="execution reverted";const l=ge(n);if(n=q(n),l.length===0)s+=" (no data present; likely require(false) occurred",i="require(false)";else if(l.length%32!==4)s+=" (could not decode reason; invalid data length)";else if(q(l.slice(0,4))==="0x08c379a0")try{i=r.decode(["string"],l.slice(4))[0],a={signature:"Error(string)",name:"Error",args:[i]},s+=`: ${JSON.stringify(i)}`}catch{s+=" (could not decode reason; invalid string data)"}else if(q(l.slice(0,4))==="0x4e487b71")try{const u=Number(r.decode(["uint256"],l.slice(4))[0]);a={signature:"Panic(uint256)",name:"Panic",args:[u]},i=`Panic due to ${on.get(u)||"UNKNOWN"}(${u})`,s+=`: ${i}`}catch{s+=" (could not decode panic code)"}else s+=" (unknown custom error)"}const c={to:e.to?me(e.to):null,data:e.data||"0x"};return e.from&&(c.from=me(e.from)),Qe(s,"CALL_EXCEPTION",{action:t,data:n,reason:i,transaction:c,invocation:o,revert:a})}var hr,S0;const uo=class{constructor(){T(this,hr)}getDefaultValue(e){const n=e.map(s=>V(this,hr,S0).call(this,Ye.from(s)));return new A1(n,"_").defaultValue()}encode(e,n){Ou(n.length,e.length,"types/values length mismatch");const r=e.map(o=>V(this,hr,S0).call(this,Ye.from(o))),s=new A1(r,"_"),i=new ka;return s.encode(i,n),i.data}decode(e,n,r){const s=e.map(o=>V(this,hr,S0).call(this,Ye.from(o)));return new A1(s,"_").decode(new Ba(n,r,q5))}static _setDefaultMaxInflation(e){E(typeof e=="number"&&Number.isInteger(e),"invalid defaultMaxInflation factor","value",e),q5=e}static defaultAbiCoder(){return ca==null&&(ca=new uo),ca}static getBuiltinCallException(e,n,r){return L3(e,n,r,uo.defaultAbiCoder())}};let Fi=uo;hr=new WeakSet,S0=function(e){if(e.isArray())return new b9(V(this,hr,S0).call(this,e.arrayChildren),e.arrayLength,e.name);if(e.isTuple())return new A1(e.components.map(r=>V(this,hr,S0).call(this,r)),e.name);switch(e.baseType){case"address":return new d9(e.name);case"bool":return new p9(e.name);case"string":return new T9(e.name);case"bytes":return new g9(e.name);case"":return new w9(e.name)}let n=e.type.match(D3);if(n){let r=parseInt(n[2]||"256");return E(r!==0&&r<=256&&r%8===0,"invalid "+n[1]+" bit length","param",e),new v9(r/8,n[1]==="int",e.name)}if(n=e.type.match(U3),n){let r=parseInt(n[1]);return E(r!==0&&r<=32,"invalid bytes length","param",e),new y9(r,e.name)}E(!1,"invalid type","type",e.type)};class H3{constructor(e,n,r){v(this,"fragment");v(this,"name");v(this,"signature");v(this,"topic");v(this,"args");const s=e.name,i=e.format();ne(this,{fragment:e,name:s,signature:i,topic:n,args:r})}}class Q3{constructor(e,n,r,s){v(this,"fragment");v(this,"name");v(this,"args");v(this,"signature");v(this,"selector");v(this,"value");const i=e.name,o=e.format();ne(this,{fragment:e,name:i,args:r,signature:o,selector:n,value:s})}}class G3{constructor(e,n,r){v(this,"fragment");v(this,"name");v(this,"args");v(this,"signature");v(this,"selector");const s=e.name,i=e.format();ne(this,{fragment:e,name:s,args:r,signature:i,selector:n})}}class X5{constructor(e){v(this,"hash");v(this,"_isIndexed");ne(this,{hash:e,_isIndexed:!0})}static isIndexed(e){return!!(e&&e._isIndexed)}}const $5={0:"generic panic",1:"assert(false)",17:"arithmetic overflow",18:"division or modulo by zero",33:"enum overflow",34:"invalid encoded storage byte array accessed",49:"out-of-bounds array access; popping on an empty array",50:"out-of-bounds access of an array or bytesN",65:"out of memory",81:"uninitialized function"},el={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:t=>`reverted with reason string ${JSON.stringify(t)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:t=>{let e="unknown panic code";return t>=0&&t<=255&&$5[t.toString()]&&(e=$5[t.toString()]),`reverted with panic code 0x${t.toString(16)} (${e})`}}};var fn,dn,hn,qe,ps,k1,gs,B1;const L0=class{constructor(e){T(this,ps);T(this,gs);v(this,"fragments");v(this,"deploy");v(this,"fallback");v(this,"receive");T(this,fn,void 0);T(this,dn,void 0);T(this,hn,void 0);T(this,qe,void 0);let n=[];typeof e=="string"?n=JSON.parse(e):n=e,g(this,hn,new Map),g(this,fn,new Map),g(this,dn,new Map);const r=[];for(const o of n)try{r.push(w0.from(o))}catch(a){console.log("EE",a)}ne(this,{fragments:Object.freeze(r)});let s=null,i=!1;g(this,qe,this.getAbiCoder()),this.fragments.forEach((o,a)=>{let c;switch(o.type){case"constructor":if(this.deploy){console.log("duplicate definition - constructor");return}ne(this,{deploy:o});return;case"fallback":o.inputs.length===0?i=!0:(E(!s||o.payable!==s.payable,"conflicting fallback fragments",`fragments[${a}]`,o),s=o,i=s.payable);return;case"function":c=d(this,hn);break;case"event":c=d(this,dn);break;case"error":c=d(this,fn);break;default:return}const l=o.format();c.has(l)||c.set(l,o)}),this.deploy||ne(this,{deploy:jn.from("constructor()")}),ne(this,{fallback:s,receive:i})}format(e){const n=e?"minimal":"full";return this.fragments.map(s=>s.format(n))}formatJson(){const e=this.fragments.map(n=>n.format("json"));return JSON.stringify(e.map(n=>JSON.parse(n)))}getAbiCoder(){return Fi.defaultAbiCoder()}getFunctionName(e){const n=V(this,ps,k1).call(this,e,null,!1);return E(n,"no matching function","key",e),n.name}hasFunction(e){return!!V(this,ps,k1).call(this,e,null,!1)}getFunction(e,n){return V(this,ps,k1).call(this,e,n||null,!0)}forEachFunction(e){const n=Array.from(d(this,hn).keys());n.sort((r,s)=>r.localeCompare(s));for(let r=0;rr.localeCompare(s));for(let r=0;r1){const i=s.map(o=>JSON.stringify(o.format())).join(", ");E(!1,`ambiguous error description (i.e. ${i})`,"name",e)}return s[0]}if(e=Et.from(e).format(),e==="Error(string)")return Et.from("error Error(string)");if(e==="Panic(uint256)")return Et.from("error Panic(uint256)");const r=d(this,fn).get(e);return r||null}forEachError(e){const n=Array.from(d(this,fn).keys());n.sort((r,s)=>r.localeCompare(s));for(let r=0;ri.type==="string"?y0(o):i.type==="bytes"?Be(q(o)):(i.type==="bool"&&typeof o=="boolean"?o=o?"0x01":"0x00":i.type.match(/^u?int/)?o=kr(o):i.type.match(/^bytes/)?o=Mb(o,32):i.type==="address"&&d(this,qe).encode(["address"],[o]),g0(q(o),32));for(n.forEach((i,o)=>{const a=e.inputs[o];if(!a.indexed){E(i==null,"cannot filter non-indexed parameters; must be null","contract."+a.name,i);return}i==null?r.push(null):a.baseType==="array"||a.baseType==="tuple"?E(!1,"filtering with tuples or arrays not supported","contract."+a.name,i):Array.isArray(i)?r.push(i.map(c=>s(a,c))):r.push(s(a,i))});r.length&&r[r.length-1]===null;)r.pop();return r}encodeEventLog(e,n){if(typeof e=="string"){const o=this.getEvent(e);E(o,"unknown event","eventFragment",e),e=o}const r=[],s=[],i=[];return e.anonymous||r.push(e.topicHash),E(n.length===e.inputs.length,"event arguments/values mismatch","values",n),e.inputs.forEach((o,a)=>{const c=n[a];if(o.indexed)if(o.type==="string")r.push(y0(c));else if(o.type==="bytes")r.push(Be(c));else{if(o.baseType==="tuple"||o.baseType==="array")throw new Error("not implemented");r.push(d(this,qe).encode([o.type],[c]))}else s.push(o),i.push(c)}),{data:d(this,qe).encode(s,i),topics:r}}decodeEventLog(e,n,r){if(typeof e=="string"){const p=this.getEvent(e);E(p,"unknown event","eventFragment",e),e=p}if(r!=null&&!e.anonymous){const p=e.topicHash;E(Se(r[0],32)&&r[0].toLowerCase()===p,"fragment/topic mismatch","topics[0]",r[0]),r=r.slice(1)}const s=[],i=[],o=[];e.inputs.forEach((p,w)=>{p.indexed?p.type==="string"||p.type==="bytes"||p.baseType==="tuple"||p.baseType==="array"?(s.push(Ye.from({type:"bytes32",name:p.name})),o.push(!0)):(s.push(p),o.push(!1)):(i.push(p),o.push(!1))});const a=r!=null?d(this,qe).decode(s,Ge(r)):null,c=d(this,qe).decode(i,n,!0),l=[],u=[];let f=0,h=0;return e.inputs.forEach((p,w)=>{let m=null;if(p.indexed)if(a==null)m=new X5(null);else if(o[w])m=new X5(a[h++]);else try{m=a[h++]}catch(x){m=x}else try{m=c[f++]}catch(x){m=x}l.push(m),u.push(p.name||null)}),Y1.fromItems(l,u)}parseTransaction(e){const n=ge(e.data,"tx.data"),r=X(e.value!=null?e.value:0,"tx.value"),s=this.getFunction(q(n.slice(0,4)));if(!s)return null;const i=d(this,qe).decode(s.inputs,n.slice(4));return new Q3(s,s.selector,i,r)}parseCallResult(e){throw new Error("@TODO")}parseLog(e){const n=this.getEvent(e.topics[0]);return!n||n.anonymous?null:new H3(n,n.topicHash,this.decodeEventLog(n,e.data,e.topics))}parseError(e){const n=q(e),r=this.getError(Fe(n,0,4));if(!r)return null;const s=d(this,qe).decode(r.inputs,Fe(n,4));return new G3(r,r.selector,s)}static from(e){return e instanceof L0?e:typeof e=="string"?new L0(JSON.parse(e)):typeof e.format=="function"?new L0(e.format("json")):new L0(e)}};let qn=L0;fn=new WeakMap,dn=new WeakMap,hn=new WeakMap,qe=new WeakMap,ps=new WeakSet,k1=function(e,n,r){if(Se(e)){const i=e.toLowerCase();for(const o of d(this,hn).values())if(i===o.selector)return o;return null}if(e.indexOf("(")===-1){const i=[];for(const[o,a]of d(this,hn))o.split("(")[0]===e&&i.push(a);if(n){const o=n.length>0?n[n.length-1]:null;let a=n.length,c=!0;rt.isTyped(o)&&o.type==="overrides"&&(c=!1,a--);for(let l=i.length-1;l>=0;l--){const u=i[l].inputs.length;u!==a&&(!c||u!==a-1)&&i.splice(l,1)}for(let l=i.length-1;l>=0;l--){const u=i[l].inputs;for(let f=0;f=u.length){if(n[f].type==="overrides")continue;i.splice(l,1);break}if(n[f].type!==u[f].baseType){i.splice(l,1);break}}}}if(i.length===1&&n&&n.length!==i[0].inputs.length){const o=n[n.length-1];(o==null||Array.isArray(o)||typeof o!="object")&&i.splice(0,1)}if(i.length===0)return null;if(i.length>1&&r){const o=i.map(a=>JSON.stringify(a.format())).join(", ");E(!1,`ambiguous function description (i.e. matches ${o})`,"key",e)}return i[0]}const s=d(this,hn).get(En.from(e).format());return s||null},gs=new WeakSet,B1=function(e,n,r){if(Se(e)){const i=e.toLowerCase();for(const o of d(this,dn).values())if(i===o.topicHash)return o;return null}if(e.indexOf("(")===-1){const i=[];for(const[o,a]of d(this,dn))o.split("(")[0]===e&&i.push(a);if(n){for(let o=i.length-1;o>=0;o--)i[o].inputs.length=0;o--){const a=i[o].inputs;for(let c=0;c1&&r){const o=i.map(a=>JSON.stringify(a.format())).join(", ");E(!1,`ambiguous event description (i.e. matches ${o})`,"key",e)}return i[0]}const s=d(this,dn).get(An.from(e).format());return s||null};const Yf=BigInt(0);function gi(t){return t==null?null:t}function et(t){return t==null?null:t.toString()}class tl{constructor(e,n,r){v(this,"gasPrice");v(this,"maxFeePerGas");v(this,"maxPriorityFeePerGas");ne(this,{gasPrice:gi(e),maxFeePerGas:gi(n),maxPriorityFeePerGas:gi(r)})}toJSON(){const{gasPrice:e,maxFeePerGas:n,maxPriorityFeePerGas:r}=this;return{_type:"FeeData",gasPrice:et(e),maxFeePerGas:et(n),maxPriorityFeePerGas:et(r)}}}function so(t){const e={};t.to&&(e.to=t.to),t.from&&(e.from=t.from),t.data&&(e.data=q(t.data));const n="chainId,gasLimit,gasPrice,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);for(const s of n)!(s in t)||t[s]==null||(e[s]=X(t[s],`request.${s}`));const r="type,nonce".split(/,/);for(const s of r)!(s in t)||t[s]==null||(e[s]=fe(t[s],`request.${s}`));return t.accessList&&(e.accessList=x0(t.accessList)),"blockTag"in t&&(e.blockTag=t.blockTag),"enableCcipRead"in t&&(e.enableCcipRead=!!t.enableCcipRead),"customData"in t&&(e.customData=t.customData),e}var Dn;class z3{constructor(e,n){v(this,"provider");v(this,"number");v(this,"hash");v(this,"timestamp");v(this,"parentHash");v(this,"nonce");v(this,"difficulty");v(this,"gasLimit");v(this,"gasUsed");v(this,"miner");v(this,"extraData");v(this,"baseFeePerGas");T(this,Dn,void 0);g(this,Dn,e.transactions.map(r=>typeof r!="string"?new Ui(r,n):r)),ne(this,{provider:n,hash:gi(e.hash),number:e.number,timestamp:e.timestamp,parentHash:e.parentHash,nonce:e.nonce,difficulty:e.difficulty,gasLimit:e.gasLimit,gasUsed:e.gasUsed,miner:e.miner,extraData:e.extraData,baseFeePerGas:gi(e.baseFeePerGas)})}get transactions(){return d(this,Dn).map(e=>typeof e=="string"?e:e.hash)}get prefetchedTransactions(){const e=d(this,Dn).slice();return e.length===0?[]:(k(typeof e[0]=="object","transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),e)}toJSON(){const{baseFeePerGas:e,difficulty:n,extraData:r,gasLimit:s,gasUsed:i,hash:o,miner:a,nonce:c,number:l,parentHash:u,timestamp:f,transactions:h}=this;return{_type:"Block",baseFeePerGas:et(e),difficulty:et(n),extraData:r,gasLimit:et(s),gasUsed:et(i),hash:o,miner:a,nonce:c,number:l,parentHash:u,timestamp:f,transactions:h}}[Symbol.iterator](){let e=0;const n=this.transactions;return{next:()=>enew o1(s,n))));let r=Yf;e.effectiveGasPrice!=null?r=e.effectiveGasPrice:e.gasPrice!=null&&(r=e.gasPrice),ne(this,{provider:n,to:e.to,from:e.from,contractAddress:e.contractAddress,hash:e.hash,index:e.index,blockHash:e.blockHash,blockNumber:e.blockNumber,logsBloom:e.logsBloom,gasUsed:e.gasUsed,cumulativeGasUsed:e.cumulativeGasUsed,gasPrice:r,type:e.type,status:e.status,root:e.root})}get logs(){return d(this,ji)}toJSON(){const{to:e,from:n,contractAddress:r,hash:s,index:i,blockHash:o,blockNumber:a,logsBloom:c,logs:l,status:u,root:f}=this;return{_type:"TransactionReceipt",blockHash:o,blockNumber:a,contractAddress:r,cumulativeGasUsed:et(this.cumulativeGasUsed),from:n,gasPrice:et(this.gasPrice),gasUsed:et(this.gasUsed),hash:s,index:i,logs:l,logsBloom:c,root:f,status:u,to:e}}get length(){return this.logs.length}[Symbol.iterator](){let e=0;return{next:()=>e{if(a)return null;const{blockNumber:h,nonce:p}=await at({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(p{if(h==null||h.status!==0)return h;k(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:h.to,from:h.from,data:""},receipt:h})},u=await this.provider.getTransactionReceipt(this.hash);if(r===0)return l(u);if(u){if(await u.confirmations()>=r)return l(u)}else if(await c(),r===0)return null;return await new Promise((h,p)=>{const w=[],m=()=>{w.forEach(A=>A())};if(w.push(()=>{a=!0}),s>0){const A=setTimeout(()=>{m(),p(Qe("wait for transaction timeout","TIMEOUT"))},s);w.push(()=>{clearTimeout(A)})}const x=async A=>{if(await A.confirmations()>=r){m();try{h(l(A))}catch(N){p(N)}}};if(w.push(()=>{this.provider.off(this.hash,x)}),this.provider.on(this.hash,x),i>=0){const A=async()=>{try{await c()}catch(N){if(nt(N,"TRANSACTION_REPLACED")){m(),p(N);return}}a||this.provider.once("block",A)};w.push(()=>{this.provider.off("block",A)}),this.provider.once("block",A)}})}isMined(){return this.blockHash!=null}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}removedEvent(){return k(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),$f(this)}reorderedEvent(e){return k(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),k(!e||e.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),Xf(this,e)}replaceableTransaction(e){E(Number.isInteger(e)&&e>=0,"invalid startBlock","startBlock",e);const n=new n6(this,this.provider);return g(n,br,e),n}};let Ui=n6;br=new WeakMap;function V3(t){return{orphan:"drop-block",hash:t.hash,number:t.number}}function Xf(t,e){return{orphan:"reorder-transaction",tx:t,other:e}}function $f(t){return{orphan:"drop-transaction",tx:t}}function j3(t){return{orphan:"drop-log",log:{transactionHash:t.transactionHash,blockHash:t.blockHash,blockNumber:t.blockNumber,address:t.address,data:t.data,topics:Object.freeze(t.topics.slice()),index:t.index}}}class zc extends o1{constructor(n,r,s){super(n,n.provider);v(this,"interface");v(this,"fragment");v(this,"args");const i=r.decodeEventLog(s,n.data,n.topics);ne(this,{args:i,fragment:s,interface:r})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}class e2 extends o1{constructor(n,r){super(n,n.provider);v(this,"error");ne(this,{error:r})}}var ys;class K3 extends qf{constructor(n,r,s){super(s,r);T(this,ys,void 0);g(this,ys,n)}get logs(){return super.logs.map(n=>{const r=n.topics.length?d(this,ys).getEvent(n.topics[0]):null;if(r)try{return new zc(n,d(this,ys),r)}catch(s){return new e2(n,s)}return n})}}ys=new WeakMap;var Ki;class Vc extends Ui{constructor(n,r,s){super(s,r);T(this,Ki,void 0);g(this,Ki,n)}async wait(n){const r=await super.wait(n);return r==null?null:new K3(d(this,Ki),this.provider,r)}}Ki=new WeakMap;class t2 extends Su{constructor(n,r,s,i){super(n,r,s);v(this,"log");ne(this,{log:i})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}class J3 extends t2{constructor(e,n,r,s,i){super(e,n,r,new zc(i,e.interface,s));const o=e.interface.decodeEventLog(s,this.log.data,this.log.topics);ne(this,{args:o,fragment:s})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}const nl=BigInt(0);function n2(t){return t&&typeof t.call=="function"}function r2(t){return t&&typeof t.estimateGas=="function"}function Ho(t){return t&&typeof t.resolveName=="function"}function s2(t){return t&&typeof t.sendTransaction=="function"}function i2(t){if(t!=null){if(Ho(t))return t;if(t.provider)return t.provider}}var Ji;class W3{constructor(e,n,r){T(this,Ji,void 0);v(this,"fragment");if(ne(this,{fragment:n}),n.inputs.lengthr[c]==null?null:a.walkAsync(r[c],(u,f)=>u==="address"?Array.isArray(f)?Promise.all(f.map(h=>dt(h,i))):dt(f,i):f)));return e.interface.encodeFilterTopics(n,o)}())}getTopicFilter(){return d(this,Ji)}}Ji=new WeakMap;function A0(t,e){return t==null?null:typeof t[e]=="function"?t:t.provider&&typeof t.provider[e]=="function"?t.provider:null}function zr(t){return t==null?null:t.provider||null}async function jc(t,e){const n=rt.dereference(t,"overrides");E(typeof n=="object","invalid overrides parameter","overrides",t);const r=so(n);return E(r.to==null||(e||[]).indexOf("to")>=0,"cannot override to","overrides.to",r.to),E(r.data==null||(e||[]).indexOf("data")>=0,"cannot override data","overrides.data",r.data),r.from&&(r.from=r.from),r}async function o2(t,e,n){const r=A0(t,"resolveName"),s=Ho(r)?r:null;return await Promise.all(e.map((i,o)=>i.walkAsync(n[o],(a,c)=>(c=rt.dereference(c,a),a==="address"?dt(c,s):c))))}function Z3(t){const e=async function(o){const a=await jc(o,["data"]);a.to=await t.getAddress(),a.from&&(a.from=await dt(a.from,i2(t.runner)));const c=t.interface,l=X(a.value||nl,"overrides.value")===nl,u=(a.data||"0x")==="0x";c.fallback&&!c.fallback.payable&&c.receive&&!u&&!l&&E(!1,"cannot send data to receive or send value to non-payable fallback","overrides",o),E(c.fallback||u,"cannot send data to receive-only contract","overrides.data",a.data);const f=c.receive||c.fallback&&c.fallback.payable;return E(f||l,"cannot send value to non-payable fallback","overrides.value",a.value),E(c.fallback||u,"cannot send data to receive-only contract","overrides.data",a.data),a},n=async function(o){const a=A0(t.runner,"call");k(n2(a),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const c=await e(o);try{return await a.call(c)}catch(l){throw Cc(l)&&l.data?t.interface.makeError(l.data,c):l}},r=async function(o){const a=t.runner;k(s2(a),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const c=await a.sendTransaction(await e(o)),l=zr(t.runner);return new Vc(t.interface,l,c)},s=async function(o){const a=A0(t.runner,"estimateGas");return k(r2(a),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await a.estimateGas(await e(o))},i=async o=>await r(o);return ne(i,{_contract:t,estimateGas:s,populateTransaction:e,send:r,staticCall:n}),i}function Y3(t,e){const n=function(...l){const u=t.interface.getFunction(e,l);return k(u,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e,args:l}}),u},r=async function(...l){const u=n(...l);let f={};if(u.inputs.length+1===l.length&&(f=await jc(l.pop()),f.from&&(f.from=await dt(f.from,i2(t.runner)))),u.inputs.length!==l.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");const h=await o2(t.runner,u.inputs,l);return Object.assign({},f,await at({to:t.getAddress(),data:t.interface.encodeFunctionData(u,h)}))},s=async function(...l){const u=await a(...l);return u.length===1?u[0]:u},i=async function(...l){const u=t.runner;k(s2(u),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const f=await u.sendTransaction(await r(...l)),h=zr(t.runner);return new Vc(t.interface,h,f)},o=async function(...l){const u=A0(t.runner,"estimateGas");return k(r2(u),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await u.estimateGas(await r(...l))},a=async function(...l){const u=A0(t.runner,"call");k(n2(u),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const f=await r(...l);let h="0x";try{h=await u.call(f)}catch(w){throw Cc(w)&&w.data?t.interface.makeError(w.data,f):w}const p=n(...l);return t.interface.decodeFunctionResult(p,h)},c=async(...l)=>n(...l).constant?await s(...l):await i(...l);return ne(c,{name:t.interface.getFunctionName(e),_contract:t,_key:e,getFragment:n,estimateGas:o,populateTransaction:r,send:i,staticCall:s,staticCallResult:a}),Object.defineProperty(c,"fragment",{configurable:!1,enumerable:!0,get:()=>{const l=t.interface.getFunction(e);return k(l,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e}}),l}}),c}function q3(t,e){const n=function(...s){const i=t.interface.getEvent(e,s);return k(i,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e,args:s}}),i},r=function(...s){return new W3(t,n(...s),s)};return ne(r,{name:t.interface.getEventName(e),_contract:t,_key:e,getFragment:n}),Object.defineProperty(r,"fragment",{configurable:!1,enumerable:!0,get:()=>{const s=t.interface.getEvent(e);return k(s,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e}}),s}}),r}const io=Symbol.for("_ethersInternal_contract"),a2=new WeakMap;function X3(t,e){a2.set(t[io],e)}function It(t){return a2.get(t[io])}function $3(t){return t&&typeof t=="object"&&"getTopicFilter"in t&&typeof t.getTopicFilter=="function"&&t.fragment}async function Kc(t,e){let n,r=null;if(Array.isArray(e)){const i=function(o){if(Se(o,32))return o;const a=t.interface.getEvent(o);return E(a,"unknown fragment","name",o),a.topicHash};n=e.map(o=>o==null?null:Array.isArray(o)?o.map(i):i(o))}else e==="*"?n=[null]:typeof e=="string"?Se(e,32)?n=[e]:(r=t.interface.getEvent(e),E(r,"unknown fragment","event",e),n=[r.topicHash]):$3(e)?n=await e.getTopicFilter():"fragment"in e?(r=e.fragment,n=[r.topicHash]):E(!1,"unknown event name","event",e);n=n.map(i=>{if(i==null)return null;if(Array.isArray(i)){const o=Array.from(new Set(i.map(a=>a.toLowerCase())).values());return o.length===1?o[0]:(o.sort(),o)}return i.toLowerCase()});const s=n.map(i=>i==null?"null":Array.isArray(i)?i.join("|"):i).join("&");return{fragment:r,tag:s,topics:n}}async function ii(t,e){const{subs:n}=It(t);return n.get((await Kc(t,e)).tag)||null}async function rl(t,e,n){const r=zr(t.runner);k(r,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:e});const{fragment:s,tag:i,topics:o}=await Kc(t,n),{addr:a,subs:c}=It(t);let l=c.get(i);if(!l){const f={address:a||t,topics:o},h=x=>{let A=s;if(A==null)try{A=t.interface.getEvent(x.topics[0])}catch{}if(A){const N=A,O=s?t.interface.decodeEventLog(s,x.data,x.topics):[];Ja(t,n,O,K=>new J3(t,K,n,N,x))}else Ja(t,n,[],N=>new t2(t,N,n,x))};let p=[];l={tag:i,listeners:[],start:()=>{p.length||p.push(r.on(f,h))},stop:async()=>{if(p.length==0)return;let x=p;p=[],await Promise.all(x),r.off(f,h)}},c.set(i,l)}return l}let Ka=Promise.resolve();async function e4(t,e,n,r){await Ka;const s=await ii(t,e);if(!s)return!1;const i=s.listeners.length;return s.listeners=s.listeners.filter(({listener:o,once:a})=>{const c=Array.from(n);r&&c.push(r(a?null:o));try{o.call(t,...c)}catch{}return!a}),s.listeners.length===0&&(s.stop(),It(t).subs.delete(s.tag)),i>0}async function Ja(t,e,n,r){try{await Ka}catch{}const s=e4(t,e,n,r);return Ka=s,await s}const E1=["then"];var eg;const wi=class{constructor(e,n,r,s){v(this,"target");v(this,"interface");v(this,"runner");v(this,"filters");v(this,eg);v(this,"fallback");E(typeof e=="string"||lf(e),"invalid value for Contract target","target",e),r==null&&(r=null);const i=qn.from(n);ne(this,{target:e,runner:r,interface:i}),Object.defineProperty(this,io,{value:{}});let o,a=null,c=null;if(s){const f=zr(r);c=new Vc(this.interface,f,s)}let l=new Map;if(typeof e=="string")if(Se(e))a=e,o=Promise.resolve(e);else{const f=A0(r,"resolveName");if(!Ho(f))throw Qe("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});o=f.resolveName(e).then(h=>{if(h==null)throw Qe("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:e});return It(this).addr=h,h})}else o=e.getAddress().then(f=>{if(f==null)throw new Error("TODO");return It(this).addr=f,f});X3(this,{addrPromise:o,addr:a,deployTx:c,subs:l});const u=new Proxy({},{get:(f,h,p)=>{if(typeof h=="symbol"||E1.indexOf(h)>=0)return Reflect.get(f,h,p);try{return this.getEvent(h)}catch(w){if(!nt(w,"INVALID_ARGUMENT")||w.argument!=="key")throw w}},has:(f,h)=>E1.indexOf(h)>=0?Reflect.has(f,h):Reflect.has(f,h)||this.interface.hasEvent(String(h))});return ne(this,{filters:u}),ne(this,{fallback:i.receive||i.fallback?Z3(this):null}),new Proxy(this,{get:(f,h,p)=>{if(typeof h=="symbol"||h in f||E1.indexOf(h)>=0)return Reflect.get(f,h,p);try{return f.getFunction(h)}catch(w){if(!nt(w,"INVALID_ARGUMENT")||w.argument!=="key")throw w}},has:(f,h)=>typeof h=="symbol"||h in f||E1.indexOf(h)>=0?Reflect.has(f,h):f.interface.hasFunction(h)})}connect(e){return new wi(this.target,this.interface,e)}attach(e){return new wi(e,this.interface,this.runner)}async getAddress(){return await It(this).addrPromise}async getDeployedCode(){const e=zr(this.runner);k(e,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});const n=await e.getCode(await this.getAddress());return n==="0x"?null:n}async waitForDeployment(){const e=this.deploymentTransaction();if(e)return await e.wait(),this;if(await this.getDeployedCode()!=null)return this;const r=zr(this.runner);return k(r!=null,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise((s,i)=>{const o=async()=>{try{if(await this.getDeployedCode()!=null)return s(this);r.once("block",o)}catch(a){i(a)}};o()})}deploymentTransaction(){return It(this).deployTx}getFunction(e){return typeof e!="string"&&(e=e.format()),Y3(this,e)}getEvent(e){return typeof e!="string"&&(e=e.format()),q3(this,e)}async queryTransaction(e){throw new Error("@TODO")}async queryFilter(e,n,r){n==null&&(n=0),r==null&&(r="latest");const{addr:s,addrPromise:i}=It(this),o=s||await i,{fragment:a,topics:c}=await Kc(this,e),l={address:o,topics:c,fromBlock:n,toBlock:r},u=zr(this.runner);return k(u,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await u.getLogs(l)).map(f=>{let h=a;if(h==null)try{h=this.interface.getEvent(f.topics[0])}catch{}if(h)try{return new zc(f,this.interface,h)}catch(p){return new e2(f,p)}return new o1(f,u)})}async on(e,n){const r=await rl(this,"on",e);return r.listeners.push({listener:n,once:!1}),r.start(),this}async once(e,n){const r=await rl(this,"once",e);return r.listeners.push({listener:n,once:!0}),r.start(),this}async emit(e,...n){return await Ja(this,e,n,null)}async listenerCount(e){if(e){const s=await ii(this,e);return s?s.listeners.length:0}const{subs:n}=It(this);let r=0;for(const{listeners:s}of n.values())r+=s.length;return r}async listeners(e){if(e){const s=await ii(this,e);return s?s.listeners.map(({listener:i})=>i):[]}const{subs:n}=It(this);let r=[];for(const{listeners:s}of n.values())r=r.concat(s.map(({listener:i})=>i));return r}async off(e,n){const r=await ii(this,e);if(!r)return this;if(n){const s=r.listeners.map(({listener:i})=>i).indexOf(n);s>=0&&r.listeners.splice(s,1)}return(n==null||r.listeners.length===0)&&(r.stop(),It(this).subs.delete(r.tag)),this}async removeAllListeners(e){if(e){const n=await ii(this,e);if(!n)return this;n.stop(),It(this).subs.delete(n.tag)}else{const{subs:n}=It(this);for(const{tag:r,stop:s}of n.values())s(),n.delete(r)}return this}async addListener(e,n){return await this.on(e,n)}async removeListener(e,n){return await this.off(e,n)}static buildClass(e){class n extends wi{constructor(s,i=null){super(s,e,i)}}return n}static from(e,n,r){return r==null&&(r=null),new this(e,n,r)}};let Di=wi;eg=io;function t4(){return Di}class Tn extends t4(){}class v0{constructor(e,n,r){v(this,"interface");v(this,"bytecode");v(this,"runner");const s=qn.from(e);n instanceof Uint8Array||(typeof n=="object"&&(n=n.object),n.startsWith("0x")||(n="0x"+n)),n=q(ge(n)),ne(this,{bytecode:n,interface:s,runner:r||null})}attach(e){return new Di(e,this.interface,this.runner)}async getDeployTransaction(...e){let n={};const r=this.interface.deploy;if(r.inputs.length+1===e.length&&(n=await jc(e.pop())),r.inputs.length!==e.length)throw new Error("incorrect number of arguments to constructor");const s=await o2(this.runner,r.inputs,e),i=Ge([this.bytecode,this.interface.encodeDeploy(s)]);return Object.assign({},n,{data:i})}async deploy(...e){const n=await this.getDeployTransaction(...e);k(this.runner&&typeof this.runner.sendTransaction=="function","factory runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const r=await this.runner.sendTransaction(n),s=cf(r);return new Di(s,this.interface,this.runner,r)}connect(e){return new v0(this.interface,this.bytecode,e)}static fromSolidity(e,n){E(e!=null,"bad compiler output","output",e),typeof e=="string"&&(e=JSON.parse(e));const r=e.abi;let s="";return e.bytecode?s=e.bytecode:e.evm&&e.evm.bytecode&&(s=e.evm.bytecode),new this(r,s,n)}}function la(t){return t.match(/^ipfs:\/\/ipfs\//i)?t=t.substring(12):t.match(/^ipfs:\/\//i)?t=t.substring(7):E(!1,"unsupported IPFS format","link",t),`https://gateway.ipfs.io/ipfs/${t}`}class n4{constructor(e){v(this,"name");ne(this,{name:e})}connect(e){return this}supportsCoinType(e){return!1}async encodeAddress(e,n){throw new Error("unsupported coin")}async decodeAddress(e,n){throw new Error("unsupported coin")}}const c2=new RegExp("^(ipfs)://(.*)$","i"),sl=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),c2,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];var pr,t0,gr,M0,fo,l2;const Ai=class{constructor(e,n,r){T(this,gr);v(this,"provider");v(this,"address");v(this,"name");T(this,pr,void 0);T(this,t0,void 0);ne(this,{provider:e,address:n,name:r}),g(this,pr,null),g(this,t0,new Tn(n,["function supportsInterface(bytes4) view returns (bool)","function resolve(bytes, bytes) view returns (bytes)","function addr(bytes32) view returns (address)","function addr(bytes32, uint) view returns (bytes)","function text(bytes32, string) view returns (string)","function contenthash(bytes32) view returns (bytes)"],e))}async supportsWildcard(){return d(this,pr)==null&&g(this,pr,(async()=>{try{return await d(this,t0).supportsInterface("0x9061b923")}catch(e){if(nt(e,"CALL_EXCEPTION"))return!1;throw g(this,pr,null),e}})()),await d(this,pr)}async getAddress(e){if(e==null&&(e=60),e===60)try{const i=await V(this,gr,M0).call(this,"addr(bytes32)");return i==null||i===Da?null:i}catch(i){if(nt(i,"CALL_EXCEPTION"))return null;throw i}if(e>=0&&e<2147483648){let i=e+2147483648;const o=await V(this,gr,M0).call(this,"addr(bytes32,uint)",[i]);if(Se(o,20))return me(o)}let n=null;for(const i of this.provider.plugins)if(i instanceof n4&&i.supportsCoinType(e)){n=i;break}if(n==null)return null;const r=await V(this,gr,M0).call(this,"addr(bytes32,uint)",[e]);if(r==null||r==="0x")return null;const s=await n.decodeAddress(e,r);if(s!=null)return s;k(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${e})`,info:{coinType:e,data:r}})}async getText(e){const n=await V(this,gr,M0).call(this,"text(bytes32,string)",[e]);return n==null||n==="0x"?null:n}async getContentHash(){const e=await V(this,gr,M0).call(this,"contenthash(bytes32)");if(e==null||e==="0x")return null;const n=e.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(n){const s=n[1]==="e3010170"?"ipfs":"ipns",i=parseInt(n[4],16);if(n[5].length===i*2)return`${s}://${Ub("0x"+n[2])}`}const r=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(r&&r[1].length===64)return`bzz://${r[1]}`;k(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:e}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){const e=[{type:"name",value:this.name}];try{const n=await this.getText("avatar");if(n==null)return e.push({type:"!avatar",value:""}),{url:null,linkage:e};e.push({type:"avatar",value:n});for(let r=0;r{if(!Array.isArray(e))throw new Error("not an array");return e.map(n=>t(n))}}function a1(t,e){return n=>{const r={};for(const s in t){let i=s;if(e&&s in e&&!(i in n)){for(const o of e[s])if(o in n){i=o;break}}try{const o=t[s](n[i]);o!==void 0&&(r[s]=o)}catch(o){const a=o instanceof Error?o.message:"not-an-error";k(!1,`invalid value for value.${s} (${a})`,"BAD_DATA",{value:n})}}return r}}function r4(t){switch(t){case!0:case"true":return!0;case!1:case"false":return!1}E(!1,`invalid boolean; ${JSON.stringify(t)}`,"value",t)}function Vs(t){return E(Se(t,!0),"invalid data","value",t),t}function zt(t){return E(Se(t,32),"invalid hash","value",t),t}const s4=a1({address:me,blockHash:zt,blockNumber:fe,data:Vs,index:fe,removed:Re(r4,!1),topics:Jc(zt),transactionHash:zt,transactionIndex:fe},{index:["logIndex"]});function i4(t){return s4(t)}const o4=a1({hash:Re(zt),parentHash:zt,number:fe,timestamp:fe,nonce:Re(Vs),difficulty:X,gasLimit:X,gasUsed:X,miner:Re(me),extraData:Vs,baseFeePerGas:Re(X)});function a4(t){const e=o4(t);return e.transactions=t.transactions.map(n=>typeof n=="string"?n:u2(n)),e}const c4=a1({transactionIndex:fe,blockNumber:fe,transactionHash:zt,address:me,topics:Jc(zt),data:Vs,index:fe,blockHash:zt},{index:["logIndex"]});function l4(t){return c4(t)}const u4=a1({to:Re(me,null),from:Re(me,null),contractAddress:Re(me,null),index:fe,root:Re(q),gasUsed:X,logsBloom:Re(Vs),blockHash:zt,hash:zt,logs:Jc(l4),blockNumber:fe,cumulativeGasUsed:X,effectiveGasPrice:Re(X),status:Re(fe),type:Re(fe,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function f4(t){return u4(t)}function u2(t){t.to&&X(t.to)===il&&(t.to="0x0000000000000000000000000000000000000000");const e=a1({hash:zt,type:n=>n==="0x"||n==null?0:fe(n),accessList:Re(x0,null),blockHash:Re(zt,null),blockNumber:Re(fe,null),transactionIndex:Re(fe,null),from:me,gasPrice:Re(X),maxPriorityFeePerGas:Re(X),maxFeePerGas:Re(X),gasLimit:X,to:Re(me,null),value:X,nonce:fe,data:Vs,creates:Re(me,null),chainId:Re(X,null)},{data:["input"],gasLimit:["gas"]})(t);if(e.to==null&&e.creates==null&&(e.creates=cf(e)),(t.type===1||t.type===2)&&t.accessList==null&&(e.accessList=[]),t.signature?e.signature=rn.from(t.signature):e.signature=rn.from(t),e.chainId==null){const n=e.signature.legacyChainId;n!=null&&(e.chainId=n)}return e.blockHash&&X(e.blockHash)===il&&(e.blockHash=null),e}const d4="0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";class c1{constructor(e){v(this,"name");ne(this,{name:e})}clone(){return new c1(this.name)}}class Qo extends c1{constructor(n,r){n==null&&(n=0);super(`org.ethers.network.plugins.GasCost#${n||0}`);v(this,"effectiveBlock");v(this,"txBase");v(this,"txCreate");v(this,"txDataZero");v(this,"txDataNonzero");v(this,"txAccessListStorageKey");v(this,"txAccessListAddress");const s={effectiveBlock:n};function i(o,a){let c=(r||{})[o];c==null&&(c=a),E(typeof c=="number",`invalud value for ${o}`,"costs",r),s[o]=c}i("txBase",21e3),i("txCreate",32e3),i("txDataZero",4),i("txDataNonzero",16),i("txAccessListStorageKey",1900),i("txAccessListAddress",2400),ne(this,s)}clone(){return new Qo(this.effectiveBlock,this)}}class Go extends c1{constructor(n,r){super("org.ethers.plugins.network.Ens");v(this,"address");v(this,"targetNetwork");ne(this,{address:n||d4,targetNetwork:r==null?1:r})}clone(){return new Go(this.address,this.targetNetwork)}}var Wi,Zi;class h4 extends c1{constructor(n,r){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin");T(this,Wi,void 0);T(this,Zi,void 0);g(this,Wi,n),g(this,Zi,r)}get url(){return d(this,Wi)}get processFunc(){return d(this,Zi)}clone(){return this}}Wi=new WeakMap,Zi=new WeakMap;const ua=new Map;var ms,ws,yr;const H0=class{constructor(e,n){T(this,ms,void 0);T(this,ws,void 0);T(this,yr,void 0);g(this,ms,e),g(this,ws,X(n)),g(this,yr,new Map)}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return d(this,ms)}set name(e){g(this,ms,e)}get chainId(){return d(this,ws)}set chainId(e){g(this,ws,X(e,"chainId"))}matches(e){if(e==null)return!1;if(typeof e=="string"){try{return this.chainId===X(e)}catch{}return this.name===e}if(typeof e=="number"||typeof e=="bigint"){try{return this.chainId===X(e)}catch{}return!1}if(typeof e=="object"){if(e.chainId!=null){try{return this.chainId===X(e.chainId)}catch{}return!1}return e.name!=null?this.name===e.name:!1}return!1}get plugins(){return Array.from(d(this,yr).values())}attachPlugin(e){if(d(this,yr).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return d(this,yr).set(e.name,e.clone()),this}getPlugin(e){return d(this,yr).get(e)||null}getPlugins(e){return this.plugins.filter(n=>n.name.split("#")[0]===e)}clone(){const e=new H0(this.name,this.chainId);return this.plugins.forEach(n=>{e.attachPlugin(n.clone())}),e}computeIntrinsicGas(e){const n=this.getPlugin("org.ethers.plugins.network.GasCost")||new Qo;let r=n.txBase;if(e.to==null&&(r+=n.txCreate),e.data)for(let s=2;s9){let s=BigInt(r[1].substring(0,9));r[1].substring(9).match(/^0+$/)||s++,r[1]=s.toString()}return BigInt(r[0]+r[1])}function al(t){return new h4(t,async(e,n,r)=>{r.setHeader("User-Agent","ethers");let s;try{const[i,o]=await Promise.all([r.send(),e()]);s=i;const a=s.bodyJson.standard;return{gasPrice:o.gasPrice,maxFeePerGas:ol(a.maxFee,9),maxPriorityFeePerGas:ol(a.maxPriorityFee,9)}}catch(i){k(!1,`error encountered with polygon gas station (${JSON.stringify(r.url)})`,"SERVER_ERROR",{request:r,response:s,error:i})}})}let cl=!1;function b4(){if(cl)return;cl=!0;function t(e,n,r){const s=function(){const i=new xn(e,n);return r.ensNetwork!=null&&i.attachPlugin(new Go(null,r.ensNetwork)),i.attachPlugin(new Qo),(r.plugins||[]).forEach(o=>{i.attachPlugin(o)}),i};xn.register(e,s),xn.register(n,s),r.altNames&&r.altNames.forEach(i=>{xn.register(i,s)})}t("mainnet",1,{ensNetwork:1,altNames:["homestead"]}),t("ropsten",3,{ensNetwork:3}),t("rinkeby",4,{ensNetwork:4}),t("goerli",5,{ensNetwork:5}),t("kovan",42,{ensNetwork:42}),t("sepolia",11155111,{ensNetwork:11155111}),t("classic",61,{}),t("classicKotti",6,{}),t("arbitrum",42161,{ensNetwork:1}),t("arbitrum-goerli",421613,{}),t("base",8453,{ensNetwork:1}),t("base-goerli",84531,{}),t("base-sepolia",84532,{}),t("bnb",56,{ensNetwork:1}),t("bnbt",97,{}),t("linea",59144,{ensNetwork:1}),t("linea-goerli",59140,{}),t("matic",137,{ensNetwork:1,plugins:[al("https://gasstation.polygon.technology/v2")]}),t("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[al("https://gasstation-testnet.polygon.technology/v2")]}),t("optimism",10,{ensNetwork:1,plugins:[]}),t("optimism-goerli",420,{}),t("xdai",100,{ensNetwork:1})}function Wa(t){return JSON.parse(JSON.stringify(t))}var Ln,Ut,mr,bn,As,S1;class p4{constructor(e){T(this,As);T(this,Ln,void 0);T(this,Ut,void 0);T(this,mr,void 0);T(this,bn,void 0);g(this,Ln,e),g(this,Ut,null),g(this,mr,4e3),g(this,bn,-2)}get pollingInterval(){return d(this,mr)}set pollingInterval(e){g(this,mr,e)}start(){d(this,Ut)||(g(this,Ut,d(this,Ln)._setTimeout(V(this,As,S1).bind(this),d(this,mr))),V(this,As,S1).call(this))}stop(){!d(this,Ut)||(d(this,Ln)._clearTimeout(d(this,Ut)),g(this,Ut,null))}pause(e){this.stop(),e&&g(this,bn,-2)}resume(){this.start()}}Ln=new WeakMap,Ut=new WeakMap,mr=new WeakMap,bn=new WeakMap,As=new WeakSet,S1=async function(){try{const e=await d(this,Ln).getBlockNumber();if(d(this,bn)===-2){g(this,bn,e);return}if(e!==d(this,bn)){for(let n=d(this,bn)+1;n<=e;n++){if(d(this,Ut)==null)return;await d(this,Ln).emit("block",n)}g(this,bn,e)}}catch{}d(this,Ut)!=null&&g(this,Ut,d(this,Ln)._setTimeout(V(this,As,S1).bind(this),d(this,mr)))};var n0,r0,wr;class Wc{constructor(e){T(this,n0,void 0);T(this,r0,void 0);T(this,wr,void 0);g(this,n0,e),g(this,wr,!1),g(this,r0,n=>{this._poll(n,d(this,n0))})}async _poll(e,n){throw new Error("sub-classes must override this")}start(){d(this,wr)||(g(this,wr,!0),d(this,r0).call(this,-2),d(this,n0).on("block",d(this,r0)))}stop(){!d(this,wr)||(g(this,wr,!1),d(this,n0).off("block",d(this,r0)))}pause(e){this.stop()}resume(){this.start()}}n0=new WeakMap,r0=new WeakMap,wr=new WeakMap;var Es,Hn;class g4 extends Wc{constructor(n,r){super(n);T(this,Es,void 0);T(this,Hn,void 0);g(this,Es,r),g(this,Hn,-2)}pause(n){n&&g(this,Hn,-2),super.pause(n)}async _poll(n,r){const s=await r.getBlock(d(this,Es));s!=null&&(d(this,Hn)===-2?g(this,Hn,s.number):s.number>d(this,Hn)&&(r.emit(d(this,Es),s.number),g(this,Hn,s.number)))}}Es=new WeakMap,Hn=new WeakMap;var ho;class y4 extends Wc{constructor(n,r){super(n);T(this,ho,void 0);g(this,ho,Wa(r))}async _poll(n,r){throw new Error("@TODO")}}ho=new WeakMap;var xs;class m4 extends Wc{constructor(n,r){super(n);T(this,xs,void 0);g(this,xs,r)}async _poll(n,r){const s=await r.getTransactionReceipt(d(this,xs));s&&r.emit(d(this,xs),s)}}xs=new WeakMap;var Qn,vs,Ts,Ar,Dt,bo,f2;class Zc{constructor(e,n){T(this,bo);T(this,Qn,void 0);T(this,vs,void 0);T(this,Ts,void 0);T(this,Ar,void 0);T(this,Dt,void 0);g(this,Qn,e),g(this,vs,Wa(n)),g(this,Ts,V(this,bo,f2).bind(this)),g(this,Ar,!1),g(this,Dt,-2)}start(){d(this,Ar)||(g(this,Ar,!0),d(this,Dt)===-2&&d(this,Qn).getBlockNumber().then(e=>{g(this,Dt,e)}),d(this,Qn).on("block",d(this,Ts)))}stop(){!d(this,Ar)||(g(this,Ar,!1),d(this,Qn).off("block",d(this,Ts)))}pause(e){this.stop(),e&&g(this,Dt,-2)}resume(){this.start()}}Qn=new WeakMap,vs=new WeakMap,Ts=new WeakMap,Ar=new WeakMap,Dt=new WeakMap,bo=new WeakSet,f2=async function(e){if(d(this,Dt)===-2)return;const n=Wa(d(this,vs));n.fromBlock=d(this,Dt)+1,n.toBlock=e;const r=await d(this,Qn).getLogs(n);if(r.length===0){d(this,Dt){if(r==null)return"null";if(typeof r=="bigint")return`bigint:${r.toString()}`;if(typeof r=="string")return r.toLowerCase();if(typeof r=="object"&&!Array.isArray(r)){const s=Object.keys(r);return s.sort(),s.reduce((i,o)=>(i[o]=r[o],i),{})}return r})}class d2{constructor(e){v(this,"name");ne(this,{name:e})}start(){}stop(){}pause(e){}resume(){}}function E4(t){return JSON.parse(JSON.stringify(t))}function Za(t){return t=Array.from(new Set(t).values()),t.sort(),t}async function fa(t,e){if(t==null)throw new Error("invalid event");if(Array.isArray(t)&&(t={topics:t}),typeof t=="string")switch(t){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:t,tag:t}}if(Se(t,32)){const n=t.toLowerCase();return{type:"transaction",tag:M1("tx",{hash:n}),hash:n}}if(t.orphan){const n=t;return{type:"orphan",tag:M1("orphan",n),filter:E4(n)}}if(t.address||t.topics){const n=t,r={topics:(n.topics||[]).map(s=>s==null?null:Array.isArray(s)?Za(s.map(i=>i.toLowerCase())):s.toLowerCase())};if(n.address){const s=[],i=[],o=a=>{Se(a)?s.push(a):i.push((async()=>{s.push(await dt(a,e))})())};Array.isArray(n.address)?n.address.forEach(o):o(n.address),i.length&&await Promise.all(i),r.address=Za(s.map(a=>a.toLowerCase()))}return{filter:r,tag:M1("event",r),type:"event"}}E(!1,"unknown ProviderEvent","event",t)}function da(){return new Date().getTime()}const x4={cacheTimeout:250,pollingInterval:4e3};var Xe,Er,$e,Ps,Ot,s0,xr,Gn,Yi,Lt,Is,Cs,ot,Pt,qi,Ya,Xi,qa,i0,oi,$i,Xa,o0,ai,Ns,_1;class v4{constructor(e,n){T(this,ot);T(this,qi);T(this,Xi);T(this,i0);T(this,$i);T(this,o0);T(this,Ns);T(this,Xe,void 0);T(this,Er,void 0);T(this,$e,void 0);T(this,Ps,void 0);T(this,Ot,void 0);T(this,s0,void 0);T(this,xr,void 0);T(this,Gn,void 0);T(this,Yi,void 0);T(this,Lt,void 0);T(this,Is,void 0);T(this,Cs,void 0);if(g(this,Cs,Object.assign({},x4,n||{})),e==="any")g(this,s0,!0),g(this,Ot,null);else if(e){const r=xn.from(e);g(this,s0,!1),g(this,Ot,Promise.resolve(r)),setTimeout(()=>{this.emit("network",r,null)},0)}else g(this,s0,!1),g(this,Ot,null);g(this,Gn,-1),g(this,xr,new Map),g(this,Xe,new Map),g(this,Er,new Map),g(this,$e,null),g(this,Ps,!1),g(this,Yi,1),g(this,Lt,new Map),g(this,Is,!1)}get pollingInterval(){return d(this,Cs).pollingInterval}get provider(){return this}get plugins(){return Array.from(d(this,Er).values())}attachPlugin(e){if(d(this,Er).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return d(this,Er).set(e.name,e.connect(this)),this}getPlugin(e){return d(this,Er).get(e)||null}get disableCcipRead(){return d(this,Is)}set disableCcipRead(e){g(this,Is,!!e)}async ccipReadFetch(e,n,r){if(this.disableCcipRead||r.length===0||e.to==null)return null;const s=e.to.toLowerCase(),i=n.toLowerCase(),o=[];for(let a=0;a=500,`response not found during CCIP fetch: ${f}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:e,info:{url:c,errorMessage:f}}),o.push(f)}k(!1,`error encountered during CCIP fetch: ${o.map(a=>JSON.stringify(a)).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:e,info:{urls:r,errorMessages:o}})}_wrapBlock(e,n){return new z3(a4(e),this)}_wrapLog(e,n){return new o1(i4(e),this)}_wrapTransactionReceipt(e,n){return new qf(f4(e),this)}_wrapTransactionResponse(e,n){return new Ui(u2(e),this)}_detectNetwork(){k(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(e){k(!1,`unsupported method: ${e.method}`,"UNSUPPORTED_OPERATION",{operation:e.method,info:e})}async getBlockNumber(){const e=fe(await V(this,ot,Pt).call(this,{method:"getBlockNumber"}),"%response");return d(this,Gn)>=0&&g(this,Gn,e),e}_getAddress(e){return dt(e,this)}_getBlockTag(e){if(e==null)return"latest";switch(e){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return e}if(Se(e))return Se(e,32)?e:U0(e);if(typeof e=="bigint"&&(e=fe(e,"blockTag")),typeof e=="number")return e>=0?U0(e):d(this,Gn)>=0?U0(d(this,Gn)+e):this.getBlockNumber().then(n=>U0(n+e));E(!1,"invalid blockTag","blockTag",e)}_getFilter(e){const n=(e.topics||[]).map(c=>c==null?null:Array.isArray(c)?Za(c.map(l=>l.toLowerCase())):c.toLowerCase()),r="blockHash"in e?e.blockHash:void 0,s=(c,l,u)=>{let f;switch(c.length){case 0:break;case 1:f=c[0];break;default:c.sort(),f=c}if(r&&(l!=null||u!=null))throw new Error("invalid filter");const h={};return f&&(h.address=f),n.length&&(h.topics=n),l&&(h.fromBlock=l),u&&(h.toBlock=u),r&&(h.blockHash=r),h};let i=[];if(e.address)if(Array.isArray(e.address))for(const c of e.address)i.push(this._getAddress(c));else i.push(this._getAddress(e.address));let o;"fromBlock"in e&&(o=this._getBlockTag(e.fromBlock));let a;return"toBlock"in e&&(a=this._getBlockTag(e.toBlock)),i.filter(c=>typeof c!="string").length||o!=null&&typeof o!="string"||a!=null&&typeof a!="string"?Promise.all([Promise.all(i),o,a]).then(c=>s(c[0],c[1],c[2])):s(i,o,a)}_getTransactionRequest(e){const n=so(e),r=[];if(["to","from"].forEach(s=>{if(n[s]==null)return;const i=dt(n[s],this);x1(i)?r.push(async function(){n[s]=await i}()):n[s]=i}),n.blockTag!=null){const s=this._getBlockTag(n.blockTag);x1(s)?r.push(async function(){n.blockTag=await s}()):n.blockTag=s}return r.length?async function(){return await Promise.all(r),n}():n}async getNetwork(){if(d(this,Ot)==null){const s=(async()=>{try{const i=await this._detectNetwork();return this.emit("network",i,null),i}catch(i){throw d(this,Ot)===s&&g(this,Ot,null),i}})();return g(this,Ot,s),(await s).clone()}const e=d(this,Ot),[n,r]=await Promise.all([e,this._detectNetwork()]);return n.chainId!==r.chainId&&(d(this,s0)?(this.emit("network",r,n),d(this,Ot)===e&&g(this,Ot,Promise.resolve(r))):k(!1,`network changed: ${n.chainId} => ${r.chainId} `,"NETWORK_ERROR",{event:"changed"})),n.clone()}async getFeeData(){const e=await this.getNetwork(),n=async()=>{const{_block:s,gasPrice:i,priorityFee:o}=await at({_block:V(this,$i,Xa).call(this,"latest",!1),gasPrice:(async()=>{try{const u=await V(this,ot,Pt).call(this,{method:"getGasPrice"});return X(u,"%response")}catch{}return null})(),priorityFee:(async()=>{try{const u=await V(this,ot,Pt).call(this,{method:"getPriorityFee"});return X(u,"%response")}catch{}return null})()});let a=null,c=null;const l=this._wrapBlock(s,e);return l&&l.baseFeePerGas&&(c=o!=null?o:BigInt("1000000000"),a=l.baseFeePerGas*w4+c),new tl(i,a,c)},r=e.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(r){const s=new Zn(r.url),i=await r.processFunc(n,this,s);return new tl(i.gasPrice,i.maxFeePerGas,i.maxPriorityFeePerGas)}return await n()}async estimateGas(e){let n=this._getTransactionRequest(e);return x1(n)&&(n=await n),X(await V(this,ot,Pt).call(this,{method:"estimateGas",transaction:n}),"%response")}async call(e){const{tx:n,blockTag:r}=await at({tx:this._getTransactionRequest(e),blockTag:this._getBlockTag(e.blockTag)});return await V(this,Xi,qa).call(this,V(this,qi,Ya).call(this,n,r,e.enableCcipRead?0:-1))}async getBalance(e,n){return X(await V(this,i0,oi).call(this,{method:"getBalance"},e,n),"%response")}async getTransactionCount(e,n){return fe(await V(this,i0,oi).call(this,{method:"getTransactionCount"},e,n),"%response")}async getCode(e,n){return q(await V(this,i0,oi).call(this,{method:"getCode"},e,n))}async getStorage(e,n,r){const s=X(n,"position");return q(await V(this,i0,oi).call(this,{method:"getStorage",position:s},e,r))}async broadcastTransaction(e){const{blockNumber:n,hash:r,network:s}=await at({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:e}),network:this.getNetwork()}),i=no.from(e);if(i.hash!==r)throw new Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(i,s).replaceableTransaction(n)}async getBlock(e,n){const{network:r,params:s}=await at({network:this.getNetwork(),params:V(this,$i,Xa).call(this,e,!!n)});return s==null?null:this._wrapBlock(s,r)}async getTransaction(e){const{network:n,params:r}=await at({network:this.getNetwork(),params:V(this,ot,Pt).call(this,{method:"getTransaction",hash:e})});return r==null?null:this._wrapTransactionResponse(r,n)}async getTransactionReceipt(e){const{network:n,params:r}=await at({network:this.getNetwork(),params:V(this,ot,Pt).call(this,{method:"getTransactionReceipt",hash:e})});if(r==null)return null;if(r.gasPrice==null&&r.effectiveGasPrice==null){const s=await V(this,ot,Pt).call(this,{method:"getTransaction",hash:e});if(s==null)throw new Error("report this; could not find tx or effectiveGasPrice");r.effectiveGasPrice=s.gasPrice}return this._wrapTransactionReceipt(r,n)}async getTransactionResult(e){const{result:n}=await at({network:this.getNetwork(),result:V(this,ot,Pt).call(this,{method:"getTransactionResult",hash:e})});return n==null?null:q(n)}async getLogs(e){let n=this._getFilter(e);x1(n)&&(n=await n);const{network:r,params:s}=await at({network:this.getNetwork(),params:V(this,ot,Pt).call(this,{method:"getLogs",filter:n})});return s.map(i=>this._wrapLog(i,r))}_getProvider(e){k(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(e){return await yi.fromName(this,e)}async getAvatar(e){const n=await this.getResolver(e);return n?await n.getAvatar():null}async resolveName(e){const n=await this.getResolver(e);return n?await n.getAddress():null}async lookupAddress(e){e=me(e);const n=Va(e.substring(2).toLowerCase()+".addr.reverse");try{const r=await yi.getEnsAddress(this),i=await new Tn(r,["function resolver(bytes32) view returns (address)"],this).resolver(n);if(i==null||i===Da)return null;const a=await new Tn(i,["function name(bytes32) view returns (string)"],this).name(n);return await this.resolveName(a)!==e?null:a}catch(r){if(nt(r,"BAD_DATA")&&r.value==="0x"||nt(r,"CALL_EXCEPTION"))return null;throw r}return null}async waitForTransaction(e,n,r){const s=n!=null?n:1;return s===0?this.getTransactionReceipt(e):new Promise(async(i,o)=>{let a=null;const c=async l=>{try{const u=await this.getTransactionReceipt(e);if(u!=null&&l-u.blockNumber+1>=s){i(u),a&&(clearTimeout(a),a=null);return}}catch(u){console.log("EEE",u)}this.once("block",c)};r!=null&&(a=setTimeout(()=>{a!=null&&(a=null,this.off("block",c),o(Qe("timeout","TIMEOUT",{reason:"timeout"})))},r)),c(await this.getBlockNumber())})}async waitForBlock(e){k(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(e){const n=d(this,Lt).get(e);!n||(n.timer&&clearTimeout(n.timer),d(this,Lt).delete(e))}_setTimeout(e,n){n==null&&(n=0);const r=Ys(this,Yi)._++,s=()=>{d(this,Lt).delete(r),e()};if(this.paused)d(this,Lt).set(r,{timer:null,func:s,time:n});else{const i=setTimeout(s,n);d(this,Lt).set(r,{timer:i,func:s,time:da()})}return r}_forEachSubscriber(e){for(const n of d(this,Xe).values())e(n.subscriber)}_getSubscriber(e){switch(e.type){case"debug":case"error":case"network":return new d2(e.type);case"block":{const n=new p4(this);return n.pollingInterval=this.pollingInterval,n}case"safe":case"finalized":return new g4(this,e.type);case"event":return new Zc(this,e.filter);case"transaction":return new m4(this,e.hash);case"orphan":return new y4(this,e.filter)}throw new Error(`unsupported event: ${e.type}`)}_recoverSubscriber(e,n){for(const r of d(this,Xe).values())if(r.subscriber===e){r.started&&r.subscriber.stop(),r.subscriber=n,r.started&&n.start(),d(this,$e)!=null&&n.pause(d(this,$e));break}}async on(e,n){const r=await V(this,Ns,_1).call(this,e);return r.listeners.push({listener:n,once:!1}),r.started||(r.subscriber.start(),r.started=!0,d(this,$e)!=null&&r.subscriber.pause(d(this,$e))),this}async once(e,n){const r=await V(this,Ns,_1).call(this,e);return r.listeners.push({listener:n,once:!0}),r.started||(r.subscriber.start(),r.started=!0,d(this,$e)!=null&&r.subscriber.pause(d(this,$e))),this}async emit(e,...n){const r=await V(this,o0,ai).call(this,e,n);if(!r||r.listeners.length===0)return!1;const s=r.listeners.length;return r.listeners=r.listeners.filter(({listener:i,once:o})=>{const a=new Su(this,o?null:i,e);try{i.call(this,...n,a)}catch{}return!o}),r.listeners.length===0&&(r.started&&r.subscriber.stop(),d(this,Xe).delete(r.tag)),s>0}async listenerCount(e){if(e){const r=await V(this,o0,ai).call(this,e);return r?r.listeners.length:0}let n=0;for(const{listeners:r}of d(this,Xe).values())n+=r.length;return n}async listeners(e){if(e){const r=await V(this,o0,ai).call(this,e);return r?r.listeners.map(({listener:s})=>s):[]}let n=[];for(const{listeners:r}of d(this,Xe).values())n=n.concat(r.map(({listener:s})=>s));return n}async off(e,n){const r=await V(this,o0,ai).call(this,e);if(!r)return this;if(n){const s=r.listeners.map(({listener:i})=>i).indexOf(n);s>=0&&r.listeners.splice(s,1)}return(!n||r.listeners.length===0)&&(r.started&&r.subscriber.stop(),d(this,Xe).delete(r.tag)),this}async removeAllListeners(e){if(e){const{tag:n,started:r,subscriber:s}=await V(this,Ns,_1).call(this,e);r&&s.stop(),d(this,Xe).delete(n)}else for(const[n,{started:r,subscriber:s}]of d(this,Xe))r&&s.stop(),d(this,Xe).delete(n);return this}async addListener(e,n){return await this.on(e,n)}async removeListener(e,n){return this.off(e,n)}get destroyed(){return d(this,Ps)}destroy(){this.removeAllListeners();for(const e of d(this,Lt).keys())this._clearTimeout(e);g(this,Ps,!0)}get paused(){return d(this,$e)!=null}set paused(e){!!e!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(e){if(g(this,Gn,-1),d(this,$e)!=null){if(d(this,$e)==!!e)return;k(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}this._forEachSubscriber(n=>n.pause(e)),g(this,$e,!!e);for(const n of d(this,Lt).values())n.timer&&clearTimeout(n.timer),n.time=da()-n.time}resume(){if(d(this,$e)!=null){this._forEachSubscriber(e=>e.resume()),g(this,$e,null);for(const e of d(this,Lt).values()){let n=e.time;n<0&&(n=0),e.time=da(),setTimeout(e.func,n)}}}}Xe=new WeakMap,Er=new WeakMap,$e=new WeakMap,Ps=new WeakMap,Ot=new WeakMap,s0=new WeakMap,xr=new WeakMap,Gn=new WeakMap,Yi=new WeakMap,Lt=new WeakMap,Is=new WeakMap,Cs=new WeakMap,ot=new WeakSet,Pt=async function(e){const n=d(this,Cs).cacheTimeout;if(n<0)return await this._perform(e);const r=M1(e.method,e);let s=d(this,xr).get(r);return s||(s=this._perform(e),d(this,xr).set(r,s),setTimeout(()=>{d(this,xr).get(r)===s&&d(this,xr).delete(r)},n)),await s},qi=new WeakSet,Ya=async function(e,n,r){k(r=0&&n==="latest"&&s.to!=null&&Fe(i.data,0,4)==="0x556f1830"){const o=i.data,a=await dt(s.to,this);let c;try{c=N4(Fe(i.data,4))}catch(f){k(!1,f.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:s,info:{data:o}})}k(c.sender.toLowerCase()===a.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:o,reason:"OffchainLookup",transaction:s,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:c.errorArgs}});const l=await this.ccipReadFetch(s,c.calldata,c.urls);k(l!=null,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:s,info:{data:i.data,errorArgs:c.errorArgs}});const u={to:a,data:Ge([c.selector,C4([l,c.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:u});try{const f=await V(this,qi,Ya).call(this,u,n,r+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},u),result:f}),f}catch(f){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},u),error:f}),f}}throw i}},Xi=new WeakSet,qa=async function(e){const{value:n}=await at({network:this.getNetwork(),value:e});return n},i0=new WeakSet,oi=async function(e,n,r){let s=this._getAddress(n),i=this._getBlockTag(r);return(typeof s!="string"||typeof i!="string")&&([s,i]=await Promise.all([s,i])),await V(this,Xi,qa).call(this,V(this,ot,Pt).call(this,Object.assign(e,{address:s,blockTag:i})))},$i=new WeakSet,Xa=async function(e,n){if(Se(e,32))return await V(this,ot,Pt).call(this,{method:"getBlock",blockHash:e,includeTransactions:n});let r=this._getBlockTag(e);return typeof r!="string"&&(r=await r),await V(this,ot,Pt).call(this,{method:"getBlock",blockTag:r,includeTransactions:n})},o0=new WeakSet,ai=async function(e,n){let r=await fa(e,this);return r.type==="event"&&n&&n.length>0&&n[0].removed===!0&&(r=await fa({orphan:"drop-log",log:n[0]},this)),d(this,Xe).get(r.tag)||null},Ns=new WeakSet,_1=async function(e){const n=await fa(e,this),r=n.tag;let s=d(this,Xe).get(r);return s||(s={subscriber:this._getSubscriber(n),tag:r,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},d(this,Xe).set(r,s)),s};function T4(t,e){try{const n=$a(t,e);if(n)return Oc(n)}catch{}return null}function $a(t,e){if(t==="0x")return null;try{const n=fe(Fe(t,e,e+32)),r=fe(Fe(t,n,n+32));return Fe(t,n+32,n+32+r)}catch{}return null}function ll(t){const e=Bt(t);if(e.length>32)throw new Error("internal; should not happen");const n=new Uint8Array(32);return n.set(e,32-e.length),n}function P4(t){if(t.length%32===0)return t;const e=new Uint8Array(Math.ceil(t.length/32)*32);return e.set(t),e}const I4=new Uint8Array([]);function C4(t){const e=[];let n=0;for(let r=0;r=5*32,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});const n=Fe(t,0,32);k(Fe(n,0,12)===Fe(ul,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),e.sender=Fe(n,12);try{const r=[],s=fe(Fe(t,32,64)),i=fe(Fe(t,s,s+32)),o=Fe(t,s+32);for(let a=0;ae[r]),e}function N0(t,e){if(t.provider)return t.provider;k(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:e})}async function fl(t,e){let n=so(e);if(n.to!=null&&(n.to=dt(n.to,t)),n.from!=null){const r=n.from;n.from=Promise.all([t.getAddress(),dt(r,t)]).then(([s,i])=>(E(s.toLowerCase()===i.toLowerCase(),"transaction from mismatch","tx.from",i),s))}else n.from=t.getAddress();return await at(n)}class O4{constructor(e){v(this,"provider");ne(this,{provider:e||null})}async getNonce(e){return N0(this,"getTransactionCount").getTransactionCount(await this.getAddress(),e)}async populateCall(e){return await fl(this,e)}async populateTransaction(e){const n=N0(this,"populateTransaction"),r=await fl(this,e);r.nonce==null&&(r.nonce=await this.getNonce("pending")),r.gasLimit==null&&(r.gasLimit=await this.estimateGas(r));const s=await this.provider.getNetwork();if(r.chainId!=null){const o=X(r.chainId);E(o===s.chainId,"transaction chainId mismatch","tx.chainId",e.chainId)}else r.chainId=s.chainId;const i=r.maxFeePerGas!=null||r.maxPriorityFeePerGas!=null;if(r.gasPrice!=null&&(r.type===2||i)?E(!1,"eip-1559 transaction do not support gasPrice","tx",e):(r.type===0||r.type===1)&&i&&E(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",e),(r.type===2||r.type==null)&&r.maxFeePerGas!=null&&r.maxPriorityFeePerGas!=null)r.type=2;else if(r.type===0||r.type===1){const o=await n.getFeeData();k(o.gasPrice!=null,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),r.gasPrice==null&&(r.gasPrice=o.gasPrice)}else{const o=await n.getFeeData();if(r.type==null)if(o.maxFeePerGas!=null&&o.maxPriorityFeePerGas!=null)if(r.type=2,r.gasPrice!=null){const a=r.gasPrice;delete r.gasPrice,r.maxFeePerGas=a,r.maxPriorityFeePerGas=a}else r.maxFeePerGas==null&&(r.maxFeePerGas=o.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=o.maxPriorityFeePerGas);else o.gasPrice!=null?(k(!i,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),r.gasPrice==null&&(r.gasPrice=o.gasPrice),r.type=0):k(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else r.type===2&&(r.maxFeePerGas==null&&(r.maxFeePerGas=o.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=o.maxPriorityFeePerGas))}return await at(r)}async estimateGas(e){return N0(this,"estimateGas").estimateGas(await this.populateCall(e))}async call(e){return N0(this,"call").call(await this.populateCall(e))}async resolveName(e){return await N0(this,"resolveName").resolveName(e)}async sendTransaction(e){const n=N0(this,"sendTransaction"),r=await this.populateTransaction(e);delete r.from;const s=no.from(r);return await n.broadcastTransaction(await this.signTransaction(s))}}function R4(t){return JSON.parse(JSON.stringify(t))}var yt,pn,a0,vr,c0,Os,e1,ec,t1,tc;class h2{constructor(e){T(this,e1);T(this,t1);T(this,yt,void 0);T(this,pn,void 0);T(this,a0,void 0);T(this,vr,void 0);T(this,c0,void 0);T(this,Os,void 0);g(this,yt,e),g(this,pn,null),g(this,a0,V(this,e1,ec).bind(this)),g(this,vr,!1),g(this,c0,null),g(this,Os,!1)}_subscribe(e){throw new Error("subclasses must override this")}_emitResults(e,n){throw new Error("subclasses must override this")}_recover(e){throw new Error("subclasses must override this")}start(){d(this,vr)||(g(this,vr,!0),V(this,e1,ec).call(this,-2))}stop(){!d(this,vr)||(g(this,vr,!1),g(this,Os,!0),V(this,t1,tc).call(this),d(this,yt).off("block",d(this,a0)))}pause(e){e&&V(this,t1,tc).call(this),d(this,yt).off("block",d(this,a0))}resume(){this.start()}}yt=new WeakMap,pn=new WeakMap,a0=new WeakMap,vr=new WeakMap,c0=new WeakMap,Os=new WeakMap,e1=new WeakSet,ec=async function(e){try{d(this,pn)==null&&g(this,pn,this._subscribe(d(this,yt)));let n=null;try{n=await d(this,pn)}catch(i){if(!nt(i,"UNSUPPORTED_OPERATION")||i.operation!=="eth_newFilter")throw i}if(n==null){g(this,pn,null),d(this,yt)._recoverSubscriber(this,this._recover(d(this,yt)));return}const r=await d(this,yt).getNetwork();if(d(this,c0)||g(this,c0,r),d(this,c0).chainId!==r.chainId)throw new Error("chaid changed");if(d(this,Os))return;const s=await d(this,yt).send("eth_getFilterChanges",[n]);await this._emitResults(d(this,yt),s)}catch(n){console.log("@TODO",n)}d(this,yt).once("block",d(this,a0))},t1=new WeakSet,tc=function(){const e=d(this,pn);e&&(g(this,pn,null),e.then(n=>{d(this,yt).send("eth_uninstallFilter",[n])}))};var l0;class k4 extends h2{constructor(n,r){super(n);T(this,l0,void 0);g(this,l0,R4(r))}_recover(n){return new Zc(n,d(this,l0))}async _subscribe(n){return await n.send("eth_newFilter",[d(this,l0)])}async _emitResults(n,r){for(const s of r)n.emit(d(this,l0),n._wrapLog(s,n._network))}}l0=new WeakMap;class B4 extends h2{async _subscribe(e){return await e.send("eth_newPendingTransactionFilter",[])}async _emitResults(e,n){for(const r of n)e.emit("pending",r)}}const S4="bigint,boolean,function,number,string,symbol".split(/,/g);function F1(t){if(t==null||S4.indexOf(typeof t)>=0||typeof t.getAddress=="function")return t;if(Array.isArray(t))return t.map(F1);if(typeof t=="object")return Object.keys(t).reduce((e,n)=>(e[n]=t[n],e),{});throw new Error(`should not happen: ${t} (${typeof t})`)}function M4(t){return new Promise(e=>{setTimeout(e,t)})}function O0(t){return t&&t.toLowerCase()}function dl(t){return t&&typeof t.pollingInterval=="number"}const _4={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1<<20,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class ha extends O4{constructor(n,r){super(n);v(this,"address");r=me(r),ne(this,{address:r})}connect(n){k(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(n){return await this.populateCall(n)}async sendUncheckedTransaction(n){const r=F1(n),s=[];if(r.from){const o=r.from;s.push((async()=>{const a=await dt(o,this.provider);E(a!=null&&a.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",n),r.from=a})())}else r.from=this.address;if(r.gasLimit==null&&s.push((async()=>{r.gasLimit=await this.provider.estimateGas({...r,from:this.address})})()),r.to!=null){const o=r.to;s.push((async()=>{r.to=await dt(o,this.provider)})())}s.length&&await Promise.all(s);const i=this.provider.getRpcTransaction(r);return this.provider.send("eth_sendTransaction",[i])}async sendTransaction(n){const r=await this.provider.getBlockNumber(),s=await this.sendUncheckedTransaction(n);return await new Promise((i,o)=>{const a=[1e3,100];let c=0;const l=async()=>{try{const u=await this.provider.getTransaction(s);if(u!=null){i(u.replaceableTransaction(r));return}}catch(u){if(nt(u,"CANCELLED")||nt(u,"BAD_DATA")||nt(u,"NETWORK_ERROR")){u.info==null&&(u.info={}),u.info.sendTransactionHash=s,o(u);return}if(nt(u,"INVALID_ARGUMENT")&&(c++,u.info==null&&(u.info={}),u.info.sendTransactionHash=s,c>10)){o(u);return}this.provider.emit("error",Qe("failed to fetch transation after sending (will try again)","UNKNOWN_ERROR",{error:u}))}this.provider._setTimeout(()=>{l()},a.pop()||4e3)};l()})}async signTransaction(n){const r=F1(n);if(r.from){const i=await dt(r.from,this.provider);E(i!=null&&i.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",n),r.from=i}else r.from=this.address;const s=this.provider.getRpcTransaction(r);return await this.provider.send("eth_signTransaction",[s])}async signMessage(n){const r=typeof n=="string"?Kn(n):n;return await this.provider.send("personal_sign",[q(r),this.address.toLowerCase()])}async signTypedData(n,r,s){const i=F1(s),o=await ro.resolveNames(n,r,i,async a=>{const c=await dt(a);return E(c!=null,"TypedData does not support null address","value",a),c});return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(ro.getPayload(o.domain,r,o.value))])}async unlock(n){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),n,null])}async _legacySignMessage(n){const r=typeof n=="string"?Kn(n):n;return await this.provider.send("eth_sign",[this.address.toLowerCase(),q(r)])}}var u0,Rs,zn,gn,Yt,Ht,mt,n1,nc;class F4 extends v4{constructor(n,r){super(n,r);T(this,n1);T(this,u0,void 0);T(this,Rs,void 0);T(this,zn,void 0);T(this,gn,void 0);T(this,Yt,void 0);T(this,Ht,void 0);T(this,mt,void 0);g(this,Rs,1),g(this,u0,Object.assign({},_4,r||{})),g(this,zn,[]),g(this,gn,null),g(this,Ht,null),g(this,mt,null);{let i=null;const o=new Promise(a=>{i=a});g(this,Yt,{promise:o,resolve:i})}const s=this._getOption("staticNetwork");typeof s=="boolean"?(E(!s||n!=="any","staticNetwork cannot be used on special network 'any'","options",r),s&&n!=null&&g(this,Ht,xn.from(n))):s&&(E(n==null||s.matches(n),"staticNetwork MUST match network object","options",r),g(this,Ht,s))}_getOption(n){return d(this,u0)[n]}get _network(){return k(d(this,Ht),"network is not available yet","NETWORK_ERROR"),d(this,Ht)}async _perform(n){if(n.method==="call"||n.method==="estimateGas"){let s=n.transaction;if(s&&s.type!=null&&X(s.type)&&s.maxFeePerGas==null&&s.maxPriorityFeePerGas==null){const i=await this.getFeeData();i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null&&(n=Object.assign({},n,{transaction:Object.assign({},s,{type:void 0})}))}}const r=this.getRpcRequest(n);return r!=null?await this.send(r.method,r.args):super._perform(n)}async _detectNetwork(){const n=this._getOption("staticNetwork");if(n)if(n===!0){if(d(this,Ht))return d(this,Ht)}else return n;return d(this,mt)?await d(this,mt):this.ready?(g(this,mt,(async()=>{try{const r=xn.from(X(await this.send("eth_chainId",[])));return g(this,mt,null),r}catch(r){throw g(this,mt,null),r}})()),await d(this,mt)):(g(this,mt,(async()=>{const r={id:Ys(this,Rs)._++,method:"eth_chainId",params:[],jsonrpc:"2.0"};this.emit("debug",{action:"sendRpcPayload",payload:r});let s;try{s=(await this._send(r))[0],g(this,mt,null)}catch(i){throw g(this,mt,null),this.emit("debug",{action:"receiveRpcError",error:i}),i}if(this.emit("debug",{action:"receiveRpcResult",result:s}),"result"in s)return xn.from(X(s.result));throw this.getRpcError(r,s)})()),await d(this,mt))}_start(){d(this,Yt)==null||d(this,Yt).resolve==null||(d(this,Yt).resolve(),g(this,Yt,null),(async()=>{for(;d(this,Ht)==null&&!this.destroyed;)try{g(this,Ht,await this._detectNetwork())}catch(n){if(this.destroyed)break;console.log("JsonRpcProvider failed to detect network and cannot start up; retry in 1s (perhaps the URL is wrong or the node is not started)"),this.emit("error",Qe("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:n}})),await M4(1e3)}V(this,n1,nc).call(this)})())}async _waitUntilReady(){if(d(this,Yt)!=null)return await d(this,Yt).promise}_getSubscriber(n){return n.type==="pending"?new B4(this):n.type==="event"?this._getOption("polling")?new Zc(this,n.filter):new k4(this,n.filter):n.type==="orphan"&&n.filter.orphan==="drop-log"?new d2("orphan"):super._getSubscriber(n)}get ready(){return d(this,Yt)==null}getRpcTransaction(n){const r={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(s=>{if(n[s]==null)return;let i=s;s==="gasLimit"&&(i="gas"),r[i]=U0(X(n[s],`tx.${s}`))}),["from","to","data"].forEach(s=>{n[s]!=null&&(r[s]=q(n[s]))}),n.accessList&&(r.accessList=x0(n.accessList)),r}getRpcRequest(n){switch(n.method){case"chainId":return{method:"eth_chainId",args:[]};case"getBlockNumber":return{method:"eth_blockNumber",args:[]};case"getGasPrice":return{method:"eth_gasPrice",args:[]};case"getPriorityFee":return{method:"eth_maxPriorityFeePerGas",args:[]};case"getBalance":return{method:"eth_getBalance",args:[O0(n.address),n.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[O0(n.address),n.blockTag]};case"getCode":return{method:"eth_getCode",args:[O0(n.address),n.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[O0(n.address),"0x"+n.position.toString(16),n.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[n.signedTransaction]};case"getBlock":if("blockTag"in n)return{method:"eth_getBlockByNumber",args:[n.blockTag,!!n.includeTransactions]};if("blockHash"in n)return{method:"eth_getBlockByHash",args:[n.blockHash,!!n.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[n.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[n.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(n.transaction),n.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(n.transaction)]};case"getLogs":return n.filter&&n.filter.address!=null&&(Array.isArray(n.filter.address)?n.filter.address=n.filter.address.map(O0):n.filter.address=O0(n.filter.address)),{method:"eth_getLogs",args:[n.filter]}}return null}getRpcError(n,r){const{method:s}=n,{error:i}=r;if(s==="eth_estimateGas"&&i.message){const c=i.message;if(!c.match(/revert/i)&&c.match(/insufficient funds/i))return Qe("insufficient funds","INSUFFICIENT_FUNDS",{transaction:n.params[0],info:{payload:n,error:i}})}if(s==="eth_call"||s==="eth_estimateGas"){const c=rc(i),l=Fi.getBuiltinCallException(s==="eth_call"?"call":"estimateGas",n.params[0],c?c.data:null);return l.info={error:i,payload:n},l}const o=JSON.stringify(L4(i));if(typeof i.message=="string"&&i.message.match(/user denied|ethers-user-denied/i))return Qe("user rejected action","ACTION_REJECTED",{action:{eth_sign:"signMessage",personal_sign:"signMessage",eth_signTypedData_v4:"signTypedData",eth_signTransaction:"signTransaction",eth_sendTransaction:"sendTransaction",eth_requestAccounts:"requestAccess",wallet_requestAccounts:"requestAccess"}[s]||"unknown",reason:"rejected",info:{payload:n,error:i}});if(s==="eth_sendRawTransaction"||s==="eth_sendTransaction"){const c=n.params[0];if(o.match(/insufficient funds|base fee exceeds gas limit/i))return Qe("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:c,info:{error:i}});if(o.match(/nonce/i)&&o.match(/too low/i))return Qe("nonce has already been used","NONCE_EXPIRED",{transaction:c,info:{error:i}});if(o.match(/replacement transaction/i)&&o.match(/underpriced/i))return Qe("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:c,info:{error:i}});if(o.match(/only replay-protected/i))return Qe("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:s,info:{transaction:c,info:{error:i}}})}let a=!!o.match(/the method .* does not exist/i);return a||i&&i.details&&i.details.startsWith("Unauthorized method:")&&(a=!0),a?Qe("unsupported operation","UNSUPPORTED_OPERATION",{operation:n.method,info:{error:i,payload:n}}):Qe("could not coalesce error","UNKNOWN_ERROR",{error:i,payload:n})}send(n,r){if(this.destroyed)return Promise.reject(Qe("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:n}));const s=Ys(this,Rs)._++,i=new Promise((o,a)=>{d(this,zn).push({resolve:o,reject:a,payload:{method:n,params:r,id:s,jsonrpc:"2.0"}})});return V(this,n1,nc).call(this),i}async getSigner(n){n==null&&(n=0);const r=this.send("eth_accounts",[]);if(typeof n=="number"){const i=await r;if(n>=i.length)throw new Error("no such account");return new ha(this,i[n])}const{accounts:s}=await at({network:this.getNetwork(),accounts:r});n=me(n);for(const i of s)if(me(i)===n)return new ha(this,n);throw new Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map(r=>new ha(this,r))}destroy(){d(this,gn)&&(clearTimeout(d(this,gn)),g(this,gn,null));for(const{payload:n,reject:r}of d(this,zn))r(Qe("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:n.method}));g(this,zn,[]),super.destroy()}}u0=new WeakMap,Rs=new WeakMap,zn=new WeakMap,gn=new WeakMap,Yt=new WeakMap,Ht=new WeakMap,mt=new WeakMap,n1=new WeakSet,nc=function(){if(d(this,gn))return;const n=this._getOption("batchMaxCount")===1?0:this._getOption("batchStallTime");g(this,gn,setTimeout(()=>{g(this,gn,null);const r=d(this,zn);for(g(this,zn,[]);r.length;){const s=[r.shift()];for(;r.length&&s.length!==d(this,u0).batchMaxCount;)if(s.push(r.shift()),JSON.stringify(s.map(o=>o.payload)).length>d(this,u0).batchMaxSize){r.unshift(s.pop());break}(async()=>{const i=s.length===1?s[0].payload:s.map(o=>o.payload);this.emit("debug",{action:"sendRpcPayload",payload:i});try{const o=await this._send(i);this.emit("debug",{action:"receiveRpcResult",result:o});for(const{resolve:a,reject:c,payload:l}of s){if(this.destroyed){c(Qe("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:l.method}));continue}const u=o.filter(f=>f.id===l.id)[0];if(u==null){const f=Qe("missing response for request","BAD_DATA",{value:o,info:{payload:l}});this.emit("error",f),c(f);continue}if("error"in u){c(this.getRpcError(l,u));continue}a(u.result)}}catch(o){this.emit("debug",{action:"receiveRpcError",error:o});for(const{reject:a}of s)a(o)}})()}},n))};var Tr;class U4 extends F4{constructor(n,r){super(n,r);T(this,Tr,void 0);g(this,Tr,4e3)}_getSubscriber(n){const r=super._getSubscriber(n);return dl(r)&&(r.pollingInterval=d(this,Tr)),r}get pollingInterval(){return d(this,Tr)}set pollingInterval(n){if(!Number.isInteger(n)||n<0)throw new Error("invalid interval");g(this,Tr,n),this._forEachSubscriber(r=>{dl(r)&&(r.pollingInterval=d(this,Tr))})}}Tr=new WeakMap;var ks;class D4 extends U4{constructor(n,r,s){n==null&&(n="http://localhost:8545");super(r,s);T(this,ks,void 0);typeof n=="string"?g(this,ks,new Zn(n)):g(this,ks,n.clone())}_getConnection(){return d(this,ks).clone()}async send(n,r){return await this._start(),await super.send(n,r)}async _send(n){const r=this._getConnection();r.body=JSON.stringify(n),r.setHeader("content-type","application/json");const s=await r.send();s.assertOk();let i=s.bodyJson;return Array.isArray(i)||(i=[i]),i}}ks=new WeakMap;function rc(t){if(t==null)return null;if(typeof t.message=="string"&&t.message.match(/revert/i)&&Se(t.data))return{message:t.message,data:t.data};if(typeof t=="object"){for(const e in t){const n=rc(t[e]);if(n)return n}return null}if(typeof t=="string")try{return rc(JSON.parse(t))}catch{}return null}function sc(t,e){if(t!=null){if(typeof t.message=="string"&&e.push(t.message),typeof t=="object")for(const n in t)sc(t[n],e);if(typeof t=="string")try{return sc(JSON.parse(t),e)}catch{}}}function L4(t){const e=[];return sc(t,e),e}const U1=[{inputs:[],name:"DER_Split_Error",type:"error"},{inputs:[],name:"expmod_Error",type:"error"},{inputs:[],name:"k256Decompress_Invalid_Length_Error",type:"error"},{inputs:[],name:"k256DeriveY_Invalid_Prefix_Error",type:"error"},{inputs:[],name:"recoverV_Error",type:"error"}],b2="0x60808060405234601757603a9081601d823930815050f35b600080fdfe600080fdfea264697066735822122088086c71937e9deb83a37dee3b895986f7df87e3e587aeab2b7506e6a7be8ca164736f6c63430008100033",H4=t=>t.length>1;class p2 extends v0{constructor(...e){H4(e)?super(...e):super(U1,b2,e[0])}getDeployTransaction(e){return super.getDeployTransaction(e||{})}deploy(e){return super.deploy(e||{})}connect(e){return super.connect(e)}static createInterface(){return new qn(U1)}static connect(e,n){return new Tn(e,U1,n)}}p2.bytecode=b2;p2.abi=U1;const D1=[{inputs:[{internalType:"string",name:"name_",type:"string"},{internalType:"string",name:"symbol_",type:"string"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"}],g2="0x608060405234620003195762001194803803806200001d816200031e565b928339810190604081830312620003195780516001600160401b03908181116200031957836200004f91840162000344565b916020938482015183811162000319576200006b920162000344565b825190828211620003035760008054926001958685811c95168015620002f8575b88861014620002e4578190601f9586811162000291575b5088908683116001146200022d57849262000221575b5050600019600383901b1c191690861b1781555b81519384116200020d5784548581811c9116801562000202575b87821014620001ee57838111620001a6575b50859284116001146200014157839495509262000135575b5050600019600383901b1c191690821b1790555b604051610ddd9081620003b78239f35b01519050388062000111565b9190601f1984169585845280842093905b8782106200018e5750508385961062000174575b505050811b01905562000125565b015160001960f88460031b161c1916905538808062000166565b80878596829496860151815501950193019062000152565b8582528682208480870160051c820192898810620001e4575b0160051c019086905b828110620001d8575050620000f9565b838155018690620001c8565b92508192620001bf565b634e487b7160e01b82526022600452602482fd5b90607f1690620000e7565b634e487b7160e01b81526041600452602490fd5b015190503880620000b9565b8480528985208994509190601f198416865b8c8282106200027a575050841162000260575b505050811b018155620000cd565b015160001960f88460031b161c1916905538808062000252565b8385015186558c979095019493840193016200023f565b9091508380528884208680850160051c8201928b8610620002da575b918a91869594930160051c01915b828110620002cb575050620000a3565b8681558594508a9101620002bb565b92508192620002ad565b634e487b7160e01b83526022600452602483fd5b94607f16946200008c565b634e487b7160e01b600052604160045260246000fd5b600080fd5b6040519190601f01601f191682016001600160401b038111838210176200030357604052565b919080601f84011215620003195782516001600160401b03811162000303576020906200037a601f8201601f191683016200031e565b92818452828287010111620003195760005b818110620003a257508260009394955001015290565b85810183015184820184015282016200038c56fe608060408181526004918236101561001657600080fd5b600092833560e01c91826301ffc9a71461076d5750816306fdde03146106a2578163081812fc14610682578163095ea7b31461051357816323b872dd146104e857816342842e0e146104995781636352211e1461046857816370a08231146103d257816395d89b41146102b9578163a22cb465146101e9578163b88d4fde14610155578163c87b56dd14610104575063e985e9c5146100b457600080fd5b3461010057806003193601126101005760ff816020936100d2610818565b6100da610833565b6001600160a01b0391821683526005875283832091168252855220549151911615158152f35b5080fd5b838334610100576020366003190112610100576101246101519335610c61565b8181516101308161087e565b5280519161013d8361087e565b8252519182916020835260208301906107d8565b0390f35b9050346101e55760803660031901126101e557610170610818565b90610179610833565b916064359167ffffffffffffffff83116101e157366023840112156101e15782013592856101a6856108d2565b936101b3875195866108b0565b858552366024878301011161010057856101de966024602093018388013785010152604435916109e6565b51f35b8580fd5b8280fd5b9050346101e557816003193601126101e557610203610818565b602435908115158092036102b5576001600160a01b0316913383146102725750338452600560205282842082855260205282842060ff1981541660ff831617905582519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a351f35b606490602085519162461bcd60e51b8352820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152fd5b8480fd5b8284346103cf57806003193601126103cf578151918160019283549384811c918186169586156103c5575b60209687851081146103b2578899509688969785829a52918260001461038b575050600114610330575b50505061015192916103219103856108b0565b519282849384528301906107d8565b91908693508083527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf65b828410610373575050508201018161032161015161030e565b8054848a01860152889550879490930192810161035a565b60ff19168782015293151560051b860190930193508492506103219150610151905061030e565b634e487b7160e01b835260228a52602483fd5b92607f16926102e4565b80fd5b83915034610100576020366003190112610100576001600160a01b036103f6610818565b169081156104135760208480858581526003845220549051908152f35b608490602085519162461bcd60e51b8352820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152fd5b8284346103cf5760203660031901126103cf57506104886020923561093a565b90516001600160a01b039091168152f35b838334610100576104a936610849565b908351926020840184811067ffffffffffffffff8211176104d557856101de96979850528684526109e6565b634e487b7160e01b875260418852602487fd5b505034610100576101de6104fb36610849565b9161050e6105098433610a81565b610984565b610b49565b9050346101e557816003193601126101e55761052d610818565b602435916001600160a01b039081806105458661093a565b1693169280841461063557803314908115610616575b50156105ad5783865260205283852080546001600160a01b031916831790556105838361093a565b169251927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258585a4f35b608490602086519162461bcd60e51b8352820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152fd5b90508652600560205284862033875260205260ff85872054163861055b565b855162461bcd60e51b8152602081840152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608490fd5b8284346103cf5760203660031901126103cf575061048860209235610960565b8284346103cf57806003193601126103cf5781519181825492600184811c91818616958615610763575b60209687851081146103b2578899509688969785829a52918260001461038b5750506001146107085750505061015192916103219103856108b0565b91908693508280527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635b82841061074b575050508201018161032161015161030e565b8054848a018601528895508794909301928101610732565b92607f16926106cc565b8491346101e55760203660031901126101e5573563ffffffff60e01b81168091036101e557602092506380ac58cd60e01b81149081156107c7575b81156107b6575b5015158152f35b6301ffc9a760e01b149050836107af565b635b5e139f60e01b811491506107a8565b919082519283825260005b848110610804575050826000602080949584010152601f8019910116010190565b6020818301810151848301820152016107e3565b600435906001600160a01b038216820361082e57565b600080fd5b602435906001600160a01b038216820361082e57565b606090600319011261082e576001600160a01b0390600435828116810361082e5791602435908116810361082e579060443590565b6020810190811067ffffffffffffffff82111761089a57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff82111761089a57604052565b67ffffffffffffffff811161089a57601f01601f191660200190565b156108f557565b60405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606490fd5b6000908152600260205260409020546001600160a01b031661095d8115156108ee565b90565b61096981610c61565b6000908152600460205260409020546001600160a01b031690565b1561098b57565b60405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b6064820152608490fd5b90610a0a9392916109fa6105098433610a81565b610a05838383610b49565b610c86565b15610a1157565b60405162461bcd60e51b815280610a2a60048201610a2e565b0390fd5b60809060208152603260208201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60608201520190565b906001600160a01b038080610a958461093a565b16931691838314938415610ac8575b508315610ab2575b50505090565b610abe91929350610960565b1614388080610aac565b909350600052600560205260406000208260005260205260ff604060002054169238610aa4565b15610af657565b60405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608490fd5b90610b7191610b578461093a565b6001600160a01b0393918416928492909183168414610aef565b16918215610c105781610b8e91610b878661093a565b1614610aef565b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60008481526004602052604081206bffffffffffffffffffffffff60a01b90818154169055838252600360205260408220600019815401905584825260408220600181540190558582526002602052846040832091825416179055604051a4565b60405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608490fd5b600090815260026020526040902054610c84906001600160a01b031615156108ee565b565b9293600093909291803b15610d9c57948491610ce09660405180948193630a85bd0160e11b9788845233600485015260018060a01b0380921660248501526044840152608060648401528260209b8c9760848301906107d8565b0393165af1849181610d5c575b50610d4b575050503d600014610d43573d610d07816108d2565b90610d1560405192836108b0565b81528091833d92013e5b80519182610d405760405162461bcd60e51b815280610a2a60048201610a2e565b01fd5b506060610d1f565b6001600160e01b0319161492509050565b9091508581813d8311610d95575b610d7481836108b0565b810103126102b557516001600160e01b0319811681036102b5579038610ced565b503d610d6a565b50505091505060019056fea26469706673582212208310e963b4ad138e014f9079c9a4d811ddb2f96e2acc75f8e43f0533d35d15d464736f6c63430008100033",Q4=t=>t.length>1;class y2 extends v0{constructor(...e){Q4(e)?super(...e):super(D1,g2,e[0])}getDeployTransaction(e,n,r){return super.getDeployTransaction(e,n,r||{})}deploy(e,n,r){return super.deploy(e,n,r||{})}connect(e){return super.connect(e)}static createInterface(){return new qn(D1)}static connect(e,n){return new Tn(e,D1,n)}}y2.bytecode=g2;y2.abi=D1;const L1=[{inputs:[{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"symbol",type:"string"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"caller",type:"address"}],name:"AddressNotAllowed",type:"error"},{inputs:[{internalType:"string",name:"base64Encoded",type:"string"}],name:"IncorrectImageError",type:"error"},{inputs:[{internalType:"address",name:"caller",type:"address"}],name:"OnlyOwnerCanCallFunction",type:"error"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"TokenNotExistError",type:"error"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"ZeroAddressError",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"_address",type:"address"}],name:"addAllowMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"getOwnedTokens",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"bytes32",name:"metaDataHash",type:"bytes32"}],name:"mint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_address",type:"address"}],name:"removeAllowMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"jsonString",type:"string"}],name:"storeNft",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"id",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"tokenURIs",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"}],m2="0x6080604052346200032b5762001eae803803806200001d8162000330565b9283398101906040818303126200032b5780516001600160401b03908181116200032b57836200004f91840162000356565b91602093848201518381116200032b576200006b920162000356565b825190828211620003155760008054926001958685811c951680156200030a575b88861014620002f6578190601f95868111620002a3575b5088908683116001146200023f57849262000233575b5050600019600383901b1c191690861b1781555b81519384116200021f5784548581811c9116801562000214575b878210146200020057838111620001b8575b50859284116001146200015357839495509262000147575b5050600019600383901b1c191690821b1790555b600e80546001600160a01b03191633179055604051611ae59081620003c98239f35b01519050388062000111565b9190601f1984169585845280842093905b878210620001a05750508385961062000186575b505050811b01905562000125565b015160001960f88460031b161c1916905538808062000178565b80878596829496860151815501950193019062000164565b8582528682208480870160051c820192898810620001f6575b0160051c019086905b828110620001ea575050620000f9565b838155018690620001da565b92508192620001d1565b634e487b7160e01b82526022600452602482fd5b90607f1690620000e7565b634e487b7160e01b81526041600452602490fd5b015190503880620000b9565b8480528985208994509190601f198416865b8c8282106200028c575050841162000272575b505050811b018155620000cd565b015160001960f88460031b161c1916905538808062000264565b8385015186558c9790950194938401930162000251565b9091508380528884208680850160051c8201928b8610620002ec575b918a91869594930160051c01915b828110620002dd575050620000a3565b8681558594508a9101620002cd565b92508192620002bf565b634e487b7160e01b83526022600452602483fd5b94607f16946200008c565b634e487b7160e01b600052604160045260246000fd5b600080fd5b6040519190601f01601f191682016001600160401b038111838210176200031557604052565b919080601f840112156200032b5782516001600160401b03811162000315576020906200038c601f8201601f1916830162000330565b928184528282870101116200032b5760005b818110620003b457508260009394955001015290565b85810183015184820184015282016200039e56fe608060408181526004918236101561001657600080fd5b600092833560e01c91826301ffc9a714610e175750816306fdde0314610d6f578163081812fc14610d4f578163095ea7b314610be057816318160ddd14610bc157816323b872dd14610b9b5781632cfd30051461093a5781632f745c591461088e57816342842e0e1461085b5781634f6ccce7146107c75781636352211e1461079657816370a08231146107695781638418de88146105bb578163890dd2791461058057816395d89b411461049d578163961913a414610453578163a22cb46514610383578163b66b40a714610325578163b88d4fde1461026e578163c87b56dd14610236578163d9d6165514610167575063e985e9c51461011757600080fd5b3461016357806003193601126101635760ff81602093610135610ee4565b61013d610eff565b6001600160a01b0391821683526005875283832091168252855220549151911615158152f35b5080fd5b905082346102335760209182600319360112610163576001600160a01b0361018d610ee4565b1690811561021e57508193929352600b8352818120908251808584549182815201908194845286842090845b81811061020a57505050816101cf91038261104c565b83519485948186019282875251809352850193925b8281106101f357505050500390f35b8351855286955093810193928101926001016101e4565b8254845292880192600192830192016101b9565b6024918551916316b16eef60e01b8352820152fd5b80fd5b828434610233576020366003190112610233575061025761026a9235611835565b9051918291602083526020830190610ebf565b0390f35b90503461032157608036600319011261032157610289610ee4565b610291610eff565b906044356064359367ffffffffffffffff851161031d573660238601121561031d57840135926102c08461106e565b926102cd8751948561104c565b8484528736602487890101116102335760208661031597602461031a9a018389013786010152610305610300843361128a565b6111b1565b610310838383611352565b61169b565b611266565b51f35b8680fd5b8280fd5b90503461032157602036600319011261032157610340610ee4565b600e546001600160a01b0392908316330361036c5750168252600c602052808220805460ff1916905551f35b6024908451906371e2657560e01b82523390820152fd5b90503461032157816003193601126103215761039d610ee4565b6024359081151580920361044f576001600160a01b03169133831461040c5750338452600560205282842082855260205282842060ff1981541660ff831617905582519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a351f35b606490602085519162461bcd60e51b8352820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152fd5b8480fd5b9050346103215760203660031901126103215761046e610ee4565b600e546001600160a01b0392908316330361036c5750168252600c602052808220805460ff1916600117905551f35b5050346101635781600319360112610163578051908260018054916104c183610f4a565b8086529282811690811561055857506001146104fc575b5050506104ea8261026a94038361104c565b51918291602083526020830190610ebf565b94508085527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf65b828610610540575050506104ea82602061026a95820101946104d8565b80546020878701810191909152909501948101610523565b61026a9750869350602092506104ea94915060ff191682840152151560051b820101946104d8565b90503461032157602036600319011261032157906104ea8161026a946105b494358152600d60205220825193848092610f84565b038361104c565b83915034610163576020928360031936011261032157813567ffffffffffffffff80821161044f573660238301121561044f578184013590811161044f576024933685838501011161076557338652600c875260ff84872054161561074f575082518681019082868501833761063f88828581018a8382015203808452018261104c565b51902093848652600d8752838620926106588454610f4a565b601f811161070c575b5086601f84116001146106a4579083949596979193610697575b5050508160011b916000199060031b1c19161790555b51908152f35b010135905086808061067b565b91601f19841697858452898420935b8a8a82106106f457505084600196979899106106d8575b50505050811b019055610691565b60001960f88660031b161c1992010135169055868080806106ca565b600183968583949588010135815501950191016106b3565b848852888820601f850160051c8101918a8610610745575b601f0160051c01905b81811061073a5750610661565b88815560010161072d565b9091508190610724565b84908451906351ee5ed560e01b82523390820152fd5b8580fd5b5050346101635760203660031901126101635760209061078f61078a610ee4565b61108a565b9051908152f35b82843461023357602036600319011261023357506107b66020923561114d565b90516001600160a01b039091168152f35b905082346102335760203660031901126102335750803590600854821015610803576020836107f584611773565b91905490519160031b1c8152f35b608490602084519162461bcd60e51b8352820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152fd5b5050346101635761031a61031561087136610f15565b9085519261087e8461101a565b878452610305610300843361128a565b8284346102335781600319360112610233576108a8610ee4565b602435906108b58161108a565b8210156108e3576001600160a01b031682526006602090815283832091835290815290829020548251908152f35b835162461bcd60e51b8152602081870152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608490fd5b905034610321578160031936011261032157610954610ee4565b3384526020600c815260ff848620541615610b855760085492600a5492600160401b9384811015610b72576109928160016109b09301600a55611726565b6024929192359083549060031b600019811b9283911b169119161790565b9055855183810181811067ffffffffffffffff821117610b5f5787528781526001600160a01b038216918215610b1e57610acc91876103159281868d7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef818f60028e610a3a610a3489600052600260205260018060a01b0360406000205416151590565b156117e9565b6008548885526009825283852055610a51886117aa565b610a5a8961108a565b8785526006825283852081865282528385208990558885526007825283852055600088815260026020526040902054610a9d906001600160a01b03161515610a34565b86845260038152828420805460010190558784525280822080546001600160a01b0319168617905551a461157f565b8652600b825284862090815493841015610b0b5760018401808355841015610af8575085528420015551f35b634e487b7160e01b875260329052602486fd5b634e487b7160e01b875260419052602486fd5b60648486808b519262461bcd60e51b845283015260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152fd5b634e487b7160e01b895260418452602489fd5b634e487b7160e01b885260418352602488fd5b83516351ee5ed560e01b81523381850152602490fd5b5050346101635761031a610bae36610f15565b91610bbc610300843361128a565b611352565b5050346101635781600319360112610163576020906008549051908152f35b905034610321578160031936011261032157610bfa610ee4565b602435916001600160a01b03908180610c128661114d565b16931692808414610d0257803314908115610ce3575b5015610c7a5783865260205283852080546001600160a01b03191683179055610c508361114d565b169251927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258585a4f35b608490602086519162461bcd60e51b8352820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152fd5b90508652600560205284862033875260205260ff858720541638610c28565b855162461bcd60e51b8152602081840152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608490fd5b82843461023357602036600319011261023357506107b660209235611173565b505034610163578160031936011261016357805190828054610d9081610f4a565b808552916001918083169081156105585750600114610dbb575050506104ea8261026a94038361104c565b80809650527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635b828610610dff575050506104ea82602061026a95820101946104d8565b80546020878701810191909152909501948101610de2565b849134610321576020366003190112610321573563ffffffff60e01b8116809103610321576020925063780e9d6360e01b8114908115610e59575b5015158152f35b6380ac58cd60e01b811491508115610e8b575b8115610e7a575b5083610e52565b6301ffc9a760e01b14905083610e73565b635b5e139f60e01b81149150610e6c565b60005b838110610eaf5750506000910152565b8181015183820152602001610e9f565b90602091610ed881518092818552858086019101610e9c565b601f01601f1916010190565b600435906001600160a01b0382168203610efa57565b600080fd5b602435906001600160a01b0382168203610efa57565b6060906003190112610efa576001600160a01b03906004358281168103610efa57916024359081168103610efa579060443590565b90600182811c92168015610f7a575b6020831014610f6457565b634e487b7160e01b600052602260045260246000fd5b91607f1691610f59565b9060009291805491610f9583610f4a565b918282526001938481169081600014610ff75750600114610fb7575b50505050565b90919394506000526020928360002092846000945b838610610fe3575050505001019038808080610fb1565b805485870183015294019385908201610fcc565b9294505050602093945060ff191683830152151560051b01019038808080610fb1565b6020810190811067ffffffffffffffff82111761103657604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff82111761103657604052565b67ffffffffffffffff811161103657601f01601f191660200190565b6001600160a01b031680156110aa57600052600360205260406000205490565b60405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608490fd5b1561110857565b60405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606490fd5b6000908152600260205260409020546001600160a01b0316611170811515611101565b90565b600081815260026020526040902054611196906001600160a01b03161515611101565b6000908152600460205260409020546001600160a01b031690565b156111b857565b60405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b6064820152608490fd5b60809060208152603260208201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60608201520190565b1561126d57565b60405162461bcd60e51b81528061128660048201611213565b0390fd5b906001600160a01b03808061129e8461114d565b169316918383149384156112d1575b5083156112bb575b50505090565b6112c791929350611173565b16143880806112b5565b909350600052600560205260406000208260005260205260ff6040600020541692386112ad565b156112ff57565b60405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608490fd5b6113769161135f8461114d565b6001600160a01b03938484169391851684146112f8565b83821693841561152e5783918261147557506113c0926008548760005260096020526040600020556113a7876117aa565b828603611442575b506113b98661114d565b16146112f8565b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60008481526004602052604081206bffffffffffffffffffffffff60a01b90818154169055838252600360205260408220600019815401905584825260408220600181540190558582526002602052846040832091825416179055604051a4565b61144b9061108a565b604060008781526006602052818120838252602052888282205588815260076020522055386113af565b858303611487575b506113c0926113a7565b61149291925061108a565b600019810191908211611518576113c092849260009088825260209060078252604091828420548281036114e1575b508a8452838381205586845260068152828420918452528120559261147d565b87855260068252838520838652825283852054888652600683528486208287528352808587205585526007825283852055386114c1565b634e487b7160e01b600052601160045260246000fd5b60405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608490fd5b9192600092909190803b15611691576115cd946040518092630a85bd0160e11b9485835233600484015287602484015260448301526080606483015281878160209a8b966084830190610ebf565b03926001600160a01b03165af1849181611651575b50611640575050503d600014611638573d6115fc8161106e565b9061160a604051928361104c565b81528091833d92013e5b805191826116355760405162461bcd60e51b81528061128660048201611213565b01fd5b506060611614565b6001600160e01b0319161492509050565b9091508581813d831161168a575b611669818361104c565b8101031261044f57516001600160e01b03198116810361044f5790386115e2565b503d61165f565b5050915050600190565b9293600093909291803b1561171b579484916116f59660405180948193630a85bd0160e11b9788845233600485015260018060a01b0380921660248501526044840152608060648401528260209b8c976084830190610ebf565b0393165af18491816116515750611640575050503d600014611638573d6115fc8161106e565b505050915050600190565b600a5481101561175d57600a6000527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80190600090565b634e487b7160e01b600052603260045260246000fd5b60085481101561175d5760086000527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30190600090565b600854600160401b811015611036576117cc8160016117e59301600855611773565b819391549060031b600019811b9283911b169119161790565b9055565b156117f057565b60405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606490fd5b6000818152600260205260409020546001600160a01b0316156119215761185b81611726565b90549060031b1c600052600d602052611878604060002054610f4a565b61189057506040516118898161101a565b6000815290565b61189990611726565b90549060031b1c600052600d6020526118ce6118c26118c9604060002060405192838092610f84565b038261104c565b611939565b611170603d60405180937f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000060208301526119118151809260208686019101610e9c565b810103601d81018452018261104c565b60249060405190631a4499d160e21b82526004820152fd5b805115611aa257604051906060820182811067ffffffffffffffff82111761103657604052604082527f4142434445464748494a4b4c4d4e4f505152535455565758595a61626364656660208301527f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f60408301528051600291828201809211611518576003916001908390046001600160fe1b038111821661151857841b9493906119fd6119e78761106e565b966119f5604051988961104c565b80885261106e565b6020870190601f190136823794839284518501935b848110611a51575050505050510680600114611a3e57600214611a33575090565b603d90600019015390565b50603d9081600019820153600119015390565b866004919892939495980191858351603f9082828260121c16890101518453828282600c1c16890101518385015382828260061c168901015187850153168601015188820153019693929190611a12565b506040516118898161101a56fea2646970667358221220a26c2cb8878439407532fc7de77ae32722685628772a4cd9f55da7cdd21fcaeb64736f6c63430008100033",G4=t=>t.length>1;class Yc extends v0{constructor(...e){G4(e)?super(...e):super(L1,m2,e[0])}getDeployTransaction(e,n,r){return super.getDeployTransaction(e,n,r||{})}deploy(e,n,r){return super.deploy(e,n,r||{})}connect(e){return super.connect(e)}static createInterface(){return new qn(L1)}static connect(e,n){return new Tn(e,L1,n)}}Yc.bytecode=m2;Yc.abi=L1;const H1=[{inputs:[{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"symbol",type:"string"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"caller",type:"address"}],name:"AddressNotAllowed",type:"error"},{inputs:[{internalType:"string",name:"base64Encoded",type:"string"}],name:"IncorrectImageError",type:"error"},{inputs:[{internalType:"address",name:"caller",type:"address"}],name:"OnlyOwnerCanCallFunction",type:"error"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"TokenNotExistError",type:"error"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"ZeroAddressError",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"_tokenURIs",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_address",type:"address"}],name:"addAllowMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"getOwnedTokens",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"bytes32",name:"metaDataHash",type:"bytes32"}],name:"mint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_address",type:"address"}],name:"removeAllowMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"jsonString",type:"string"}],name:"storeNft",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"id",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"}],w2="0x6080604052346200032b5762001eae803803806200001d8162000330565b9283398101906040818303126200032b5780516001600160401b03908181116200032b57836200004f91840162000356565b91602093848201518381116200032b576200006b920162000356565b825190828211620003155760008054926001958685811c951680156200030a575b88861014620002f6578190601f95868111620002a3575b5088908683116001146200023f57849262000233575b5050600019600383901b1c191690861b1781555b81519384116200021f5784548581811c9116801562000214575b878210146200020057838111620001b8575b50859284116001146200015357839495509262000147575b5050600019600383901b1c191690821b1790555b600e80546001600160a01b03191633179055604051611ae59081620003c98239f35b01519050388062000111565b9190601f1984169585845280842093905b878210620001a05750508385961062000186575b505050811b01905562000125565b015160001960f88460031b161c1916905538808062000178565b80878596829496860151815501950193019062000164565b8582528682208480870160051c820192898810620001f6575b0160051c019086905b828110620001ea575050620000f9565b838155018690620001da565b92508192620001d1565b634e487b7160e01b82526022600452602482fd5b90607f1690620000e7565b634e487b7160e01b81526041600452602490fd5b015190503880620000b9565b8480528985208994509190601f198416865b8c8282106200028c575050841162000272575b505050811b018155620000cd565b015160001960f88460031b161c1916905538808062000264565b8385015186558c9790950194938401930162000251565b9091508380528884208680850160051c8201928b8610620002ec575b918a91869594930160051c01915b828110620002dd575050620000a3565b8681558594508a9101620002cd565b92508192620002bf565b634e487b7160e01b83526022600452602483fd5b94607f16946200008c565b634e487b7160e01b600052604160045260246000fd5b600080fd5b6040519190601f01601f191682016001600160401b038111838210176200031557604052565b919080601f840112156200032b5782516001600160401b03811162000315576020906200038c601f8201601f1916830162000330565b928184528282870101116200032b5760005b818110620003b457508260009394955001015290565b85810183015184820184015282016200039e56fe608060408181526004918236101561001657600080fd5b600092833560e01c91826301ffc9a714610e175750816306fdde0314610d6f578163081812fc14610d4f578163095ea7b314610be057816318160ddd14610bc157816323b872dd14610b9b5781632877aa5f14610b605781632cfd3005146108ff5781632f745c591461085357816342842e0e146108205781634f6ccce71461078c5781636352211e1461075b57816370a082311461072e5781638418de881461058057816395d89b411461049d578163961913a414610453578163a22cb46514610383578163b66b40a714610325578163b88d4fde1461026e578163c87b56dd14610236578163d9d6165514610167575063e985e9c51461011757600080fd5b3461016357806003193601126101635760ff81602093610135610ee4565b61013d610eff565b6001600160a01b0391821683526005875283832091168252855220549151911615158152f35b5080fd5b905082346102335760209182600319360112610163576001600160a01b0361018d610ee4565b1690811561021e57508193929352600b8352818120908251808584549182815201908194845286842090845b81811061020a57505050816101cf91038261104c565b83519485948186019282875251809352850193925b8281106101f357505050500390f35b8351855286955093810193928101926001016101e4565b8254845292880192600192830192016101b9565b6024918551916316b16eef60e01b8352820152fd5b80fd5b828434610233576020366003190112610233575061025761026a9235611835565b9051918291602083526020830190610ebf565b0390f35b90503461032157608036600319011261032157610289610ee4565b610291610eff565b906044356064359367ffffffffffffffff851161031d573660238601121561031d57840135926102c08461106e565b926102cd8751948561104c565b8484528736602487890101116102335760208661031597602461031a9a018389013786010152610305610300843361128a565b6111b1565b610310838383611352565b61169b565b611266565b51f35b8680fd5b8280fd5b90503461032157602036600319011261032157610340610ee4565b600e546001600160a01b0392908316330361036c5750168252600c602052808220805460ff1916905551f35b6024908451906371e2657560e01b82523390820152fd5b90503461032157816003193601126103215761039d610ee4565b6024359081151580920361044f576001600160a01b03169133831461040c5750338452600560205282842082855260205282842060ff1981541660ff831617905582519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a351f35b606490602085519162461bcd60e51b8352820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152fd5b8480fd5b9050346103215760203660031901126103215761046e610ee4565b600e546001600160a01b0392908316330361036c5750168252600c602052808220805460ff1916600117905551f35b5050346101635781600319360112610163578051908260018054916104c183610f4a565b8086529282811690811561055857506001146104fc575b5050506104ea8261026a94038361104c565b51918291602083526020830190610ebf565b94508085527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf65b828610610540575050506104ea82602061026a95820101946104d8565b80546020878701810191909152909501948101610523565b61026a9750869350602092506104ea94915060ff191682840152151560051b820101946104d8565b83915034610163576020928360031936011261032157813567ffffffffffffffff80821161044f573660238301121561044f578184013590811161044f576024933685838501011161072a57338652600c875260ff848720541615610714575082518681019082868501833761060488828581018a8382015203808452018261104c565b51902093848652600d87528386209261061d8454610f4a565b601f81116106d1575b5086601f841160011461066957908394959697919361065c575b5050508160011b916000199060031b1c19161790555b51908152f35b0101359050868080610640565b91601f19841697858452898420935b8a8a82106106b9575050846001969798991061069d575b50505050811b019055610656565b60001960f88660031b161c19920101351690558680808061068f565b60018396858394958801013581550195019101610678565b848852888820601f850160051c8101918a861061070a575b601f0160051c01905b8181106106ff5750610626565b8881556001016106f2565b90915081906106e9565b84908451906351ee5ed560e01b82523390820152fd5b8580fd5b5050346101635760203660031901126101635760209061075461074f610ee4565b61108a565b9051908152f35b828434610233576020366003190112610233575061077b6020923561114d565b90516001600160a01b039091168152f35b9050823461023357602036600319011261023357508035906008548210156107c8576020836107ba84611773565b91905490519160031b1c8152f35b608490602084519162461bcd60e51b8352820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152fd5b5050346101635761031a61031561083636610f15565b908551926108438461101a565b878452610305610300843361128a565b82843461023357816003193601126102335761086d610ee4565b6024359061087a8161108a565b8210156108a8576001600160a01b031682526006602090815283832091835290815290829020548251908152f35b835162461bcd60e51b8152602081870152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608490fd5b905034610321578160031936011261032157610919610ee4565b3384526020600c815260ff848620541615610b4a5760085492600a5492600160401b9384811015610b37576109578160016109759301600a55611726565b6024929192359083549060031b600019811b9283911b169119161790565b9055855183810181811067ffffffffffffffff821117610b245787528781526001600160a01b038216918215610ae357610a9191876103159281868d7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef818f60028e6109ff6109f989600052600260205260018060a01b0360406000205416151590565b156117e9565b6008548885526009825283852055610a16886117aa565b610a1f8961108a565b8785526006825283852081865282528385208990558885526007825283852055600088815260026020526040902054610a62906001600160a01b031615156109f9565b86845260038152828420805460010190558784525280822080546001600160a01b0319168617905551a461157f565b8652600b825284862090815493841015610ad05760018401808355841015610abd575085528420015551f35b634e487b7160e01b875260329052602486fd5b634e487b7160e01b875260419052602486fd5b60648486808b519262461bcd60e51b845283015260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152fd5b634e487b7160e01b895260418452602489fd5b634e487b7160e01b885260418352602488fd5b83516351ee5ed560e01b81523381850152602490fd5b90503461032157602036600319011261032157906104ea8161026a94610b9494358152600d60205220825193848092610f84565b038361104c565b5050346101635761031a610bae36610f15565b91610bbc610300843361128a565b611352565b5050346101635781600319360112610163576020906008549051908152f35b905034610321578160031936011261032157610bfa610ee4565b602435916001600160a01b03908180610c128661114d565b16931692808414610d0257803314908115610ce3575b5015610c7a5783865260205283852080546001600160a01b03191683179055610c508361114d565b169251927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258585a4f35b608490602086519162461bcd60e51b8352820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152fd5b90508652600560205284862033875260205260ff858720541638610c28565b855162461bcd60e51b8152602081840152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608490fd5b828434610233576020366003190112610233575061077b60209235611173565b505034610163578160031936011261016357805190828054610d9081610f4a565b808552916001918083169081156105585750600114610dbb575050506104ea8261026a94038361104c565b80809650527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635b828610610dff575050506104ea82602061026a95820101946104d8565b80546020878701810191909152909501948101610de2565b849134610321576020366003190112610321573563ffffffff60e01b8116809103610321576020925063780e9d6360e01b8114908115610e59575b5015158152f35b6380ac58cd60e01b811491508115610e8b575b8115610e7a575b5083610e52565b6301ffc9a760e01b14905083610e73565b635b5e139f60e01b81149150610e6c565b60005b838110610eaf5750506000910152565b8181015183820152602001610e9f565b90602091610ed881518092818552858086019101610e9c565b601f01601f1916010190565b600435906001600160a01b0382168203610efa57565b600080fd5b602435906001600160a01b0382168203610efa57565b6060906003190112610efa576001600160a01b03906004358281168103610efa57916024359081168103610efa579060443590565b90600182811c92168015610f7a575b6020831014610f6457565b634e487b7160e01b600052602260045260246000fd5b91607f1691610f59565b9060009291805491610f9583610f4a565b918282526001938481169081600014610ff75750600114610fb7575b50505050565b90919394506000526020928360002092846000945b838610610fe3575050505001019038808080610fb1565b805485870183015294019385908201610fcc565b9294505050602093945060ff191683830152151560051b01019038808080610fb1565b6020810190811067ffffffffffffffff82111761103657604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff82111761103657604052565b67ffffffffffffffff811161103657601f01601f191660200190565b6001600160a01b031680156110aa57600052600360205260406000205490565b60405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608490fd5b1561110857565b60405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606490fd5b6000908152600260205260409020546001600160a01b0316611170811515611101565b90565b600081815260026020526040902054611196906001600160a01b03161515611101565b6000908152600460205260409020546001600160a01b031690565b156111b857565b60405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b6064820152608490fd5b60809060208152603260208201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60608201520190565b1561126d57565b60405162461bcd60e51b81528061128660048201611213565b0390fd5b906001600160a01b03808061129e8461114d565b169316918383149384156112d1575b5083156112bb575b50505090565b6112c791929350611173565b16143880806112b5565b909350600052600560205260406000208260005260205260ff6040600020541692386112ad565b156112ff57565b60405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608490fd5b6113769161135f8461114d565b6001600160a01b03938484169391851684146112f8565b83821693841561152e5783918261147557506113c0926008548760005260096020526040600020556113a7876117aa565b828603611442575b506113b98661114d565b16146112f8565b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60008481526004602052604081206bffffffffffffffffffffffff60a01b90818154169055838252600360205260408220600019815401905584825260408220600181540190558582526002602052846040832091825416179055604051a4565b61144b9061108a565b604060008781526006602052818120838252602052888282205588815260076020522055386113af565b858303611487575b506113c0926113a7565b61149291925061108a565b600019810191908211611518576113c092849260009088825260209060078252604091828420548281036114e1575b508a8452838381205586845260068152828420918452528120559261147d565b87855260068252838520838652825283852054888652600683528486208287528352808587205585526007825283852055386114c1565b634e487b7160e01b600052601160045260246000fd5b60405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608490fd5b9192600092909190803b15611691576115cd946040518092630a85bd0160e11b9485835233600484015287602484015260448301526080606483015281878160209a8b966084830190610ebf565b03926001600160a01b03165af1849181611651575b50611640575050503d600014611638573d6115fc8161106e565b9061160a604051928361104c565b81528091833d92013e5b805191826116355760405162461bcd60e51b81528061128660048201611213565b01fd5b506060611614565b6001600160e01b0319161492509050565b9091508581813d831161168a575b611669818361104c565b8101031261044f57516001600160e01b03198116810361044f5790386115e2565b503d61165f565b5050915050600190565b9293600093909291803b1561171b579484916116f59660405180948193630a85bd0160e11b9788845233600485015260018060a01b0380921660248501526044840152608060648401528260209b8c976084830190610ebf565b0393165af18491816116515750611640575050503d600014611638573d6115fc8161106e565b505050915050600190565b600a5481101561175d57600a6000527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80190600090565b634e487b7160e01b600052603260045260246000fd5b60085481101561175d5760086000527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30190600090565b600854600160401b811015611036576117cc8160016117e59301600855611773565b819391549060031b600019811b9283911b169119161790565b9055565b156117f057565b60405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606490fd5b6000818152600260205260409020546001600160a01b0316156119215761185b81611726565b90549060031b1c600052600d602052611878604060002054610f4a565b61189057506040516118898161101a565b6000815290565b61189990611726565b90549060031b1c600052600d6020526118ce6118c26118c9604060002060405192838092610f84565b038261104c565b611939565b611170603d60405180937f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000060208301526119118151809260208686019101610e9c565b810103601d81018452018261104c565b60249060405190631a4499d160e21b82526004820152fd5b805115611aa257604051906060820182811067ffffffffffffffff82111761103657604052604082527f4142434445464748494a4b4c4d4e4f505152535455565758595a61626364656660208301527f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f60408301528051600291828201809211611518576003916001908390046001600160fe1b038111821661151857841b9493906119fd6119e78761106e565b966119f5604051988961104c565b80885261106e565b6020870190601f190136823794839284518501935b848110611a51575050505050510680600114611a3e57600214611a33575090565b603d90600019015390565b50603d9081600019820153600119015390565b866004919892939495980191858351603f9082828260121c16890101518453828282600c1c16890101518385015382828260061c168901015187850153168601015188820153019693929190611a12565b506040516118898161101a56fea264697066735822122099569ab8356633aa2ec119c61e509a4b7f4dbb9acf874582856e4ff36e9c723264736f6c63430008100033",z4=t=>t.length>1;class A2 extends v0{constructor(...e){z4(e)?super(...e):super(H1,w2,e[0])}getDeployTransaction(e,n,r){return super.getDeployTransaction(e,n,r||{})}deploy(e,n,r){return super.deploy(e,n,r||{})}connect(e){return super.connect(e)}static createInterface(){return new qn(H1)}static connect(e,n){return new Tn(e,H1,n)}}A2.bytecode=w2;A2.abi=H1;const Q1=[{inputs:[],stateMutability:"payable",type:"constructor"},{inputs:[],name:"DER_Split_Error",type:"error"},{inputs:[{internalType:"string",name:"coupon",type:"string"}],name:"InvalidCoupon",type:"error"},{inputs:[{internalType:"string",name:"coupon",type:"string"}],name:"InvalidCouponError",type:"error"},{inputs:[{internalType:"uint256",name:"provided",type:"uint256"},{internalType:"uint256",name:"expected",type:"uint256"}],name:"InvalidNumberOfAnswersError",type:"error"},{inputs:[{internalType:"address",name:"caller",type:"address"}],name:"OnlyOwnerCanCallFunction",type:"error"},{inputs:[],name:"PayoutFailedError",type:"error"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"ZeroAddressError",type:"error"},{inputs:[],name:"recoverV_Error",type:"error"},{inputs:[],name:"COUPON_REMOVED",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"COUPON_VALID",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string[]",name:"coupons",type:"string[]"}],name:"addCoupons",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"question",type:"string"},{internalType:"string[]",name:"choices",type:"string[]"}],name:"addQuestion",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"coupon",type:"string"},{internalType:"uint8[]",name:"answers",type:"uint8[]"},{internalType:"address",name:"payoutAddr",type:"address"}],name:"checkAnswers",outputs:[{internalType:"bool[]",name:"",type:"bool[]"},{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"encPayoutCertificate",type:"bytes"}],name:"claimReward",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"clearQuestions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"countCoupons",outputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCoupons",outputs:[{internalType:"string[]",name:"",type:"string[]"},{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getGaslessKeyPair",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"",type:"bytes32"},{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"coupon",type:"string"}],name:"getQuestions",outputs:[{components:[{internalType:"string",name:"question",type:"string"},{internalType:"string[]",name:"choices",type:"string[]"}],internalType:"struct Quiz.QuizQuestion[]",name:"",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"nftAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"payoutReward",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"addr",type:"address"}],name:"reclaimFunds",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"coupon",type:"string"}],name:"removeCoupon",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"addr",type:"address"},{internalType:"bytes32",name:"secretKey",type:"bytes32"},{internalType:"uint64",name:"nonce",type:"uint64"}],name:"setGaslessKeyPair",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"nftAddr",type:"address"}],name:"setNftAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"reward",type:"uint256"}],name:"setPayoutReward",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"questionIndex",type:"uint256"},{internalType:"string",name:"question",type:"string"},{internalType:"string[]",name:"choices",type:"string[]"}],name:"setQuestion",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"jsonMetadata",type:"string"}],name:"storeNFT",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],E2="0x600080546001600160a01b0319163317815560a060408181526080838152602060c081815260e0849052610100869052939492939092916001600160401b0391908390815b828110620001635750508391876200007c6080828587838198601f9e9f0101528b199b8c910116810103606081018452018262000178565b51907301000000000000000000000000000000000000015afa903d1562000158573d9081116200014457620000bb84875196601f840116018662000178565b84523d828486013e5b1562000100575080825192015191818110620000ee575b50506001555161319e9081620001b38239f35b600019910360031b1b163880620000db565b835162461bcd60e51b815260048101839052601360248201527f72616e646f6d42797465733a206661696c6564000000000000000000000000006044820152606490fd5b634e487b7160e01b83526041600452602483fd5b5060609350620000c4565b81810187015189820160800152860162000044565b601f909101601f19168101906001600160401b038211908210176200019c57604052565b634e487b7160e01b600052604160045260246000fdfe6080604052600436101561001b575b361561001957600080fd5b005b60003560e01c80630b102d1a146101ab578063132911e1146101a25780632cfbb031146101995780633f66aa84146101905780635bf8633a146101875780635fba17871461017e578063649c8638146101755780637c527a4f1461016c578063834e9a6c1461016357806386315e251461015a5780638c52fbce1461015157806396317a5f14610148578063a01c4efd1461013f578063a2f3793514610136578063a9f3db561461012d578063b0ea7fdd14610124578063b17088801461011b578063c3e30d5f14610112578063dcf0e82d146101095763ea740f590361000e57610104610f8e565b61000e565b50610104610f42565b50610104610f24565b50610104610e6c565b50610104610d81565b50610104610cf1565b50610104610cb0565b50610104610c84565b50610104610c65565b50610104610c0f565b50610104610bdf565b50610104610b05565b506101046109b9565b506101046108fe565b50610104610834565b50610104610773565b5061010461069d565b506101046103f6565b506101046102a2565b506101046101d9565b6001600160a01b038116036101c557565b600080fd5b604435906101d7826101b4565b565b50346101c55760203660031901126101c5576004356101f7816101b4565b6000546001600160a01b0391908216330361022757166001600160601b0360a01b60025416176002556000604051f35b6040516371e2657560e01b8152336004820152602490fd5b60009103126101c557565b50634e487b7160e01b600052601160045260246000fd5b601a1981019190821161027057565b6101d761024a565b60001981019190821161027057565b602003906020821161027057565b9190820391821161027057565b50346101c55760003660031901126101c55760206040516002198152f35b50634e487b7160e01b600052604160045260246000fd5b6001600160401b0381116102ea57604052565b6102f26102c0565b604052565b604081019081106001600160401b038211176102ea57604052565b606081019081106001600160401b038211176102ea57604052565b602081019081106001600160401b038211176102ea57604052565b90601f801991011681019081106001600160401b038211176102ea57604052565b604051906101d7826102f7565b6040519060e082018281106001600160401b038211176102ea57604052565b6020906001600160401b0381116103b2575b601f01601f19160190565b6103ba6102c0565b6103a7565b9291926103cb82610395565b916103d96040519384610348565b8294818452818301116101c5578281602093846000960137010152565b50346101c55760203660031901126101c5576004356001600160401b0381116101c557366023820112156101c55761045061043e61045f9236906024816004013591016103bf565b6001549061044a611fa2565b916130c9565b60208082518301019101613017565b60011961046c8251611803565b54036105b7576002546001600160a01b03168061053b575b50600854806104f9575b5061049a439151611803565b556009546104b8906001600160a01b03165b6001600160a01b031690565b33146104c057005b6100196104dd6104d8600b546001600160401b031690565b6130b0565b6001600160401b03166001600160401b0319600b541617600b55565b60208201516040516000928392839291906001600160a01b03165af161051d612e73565b5015610529573861048e565b60405163faf7037960e01b8152600490fd5b60208201516001600160a01b0316600354823b156101c557604051632cfd300560e01b81526001600160a01b039290921660048301526024820152906000908290604490829084905af180156105aa575b15610484578061059e6105a4926102d7565b8061023f565b38610484565b6105b26127dc565b61058c565b5160405163f3c6f3c160e01b81529081906105d59060048301611a86565b0390fd5b9080601f830112156101c5578160206105f4933591016103bf565b90565b6020906001600160401b038111610610575b60051b0190565b6106186102c0565b610609565b9080601f830112156101c557813590610635826105f7565b926106436040519485610348565b828452602092838086019160051b830101928084116101c557848301915b8483106106715750505050505090565b82356001600160401b0381116101c5578691610692848480948901016105d9565b815201920191610661565b50346101c55760603660031901126101c5576001600160401b036004356024358281116101c5576106d29036906004016105d9565b916044359081116101c5576106eb90369060040161061d565b6000549092906001600160a01b03163303610227576107408260016107126107469561109f565b500154600554908103908111610766575b60055560405192610733846102f7565b835284602084015261109f565b906113fc565b5160055490810180911161075957600555005b61076161024a565b600555005b61076e61024a565b610723565b50346101c55760003660031901126101c5576002546040516001600160a01b039091168152602090f35b60005b8381106107b05750506000910152565b81810151838201526020016107a0565b906020916107d98151809281855285808601910161079d565b601f01601f1916010190565b9092916040820191604081528451809352606081019260208096019060005b81811061081e575050506105f493948184039101526107c0565b8251151586529487019491870191600101610804565b50346101c55760603660031901126101c5576001600160401b036004358181116101c5576108669036906004016105d9565b6024359182116101c557366023830112156101c55781600401359161088a836105f7565b906108986040519283610348565b83825260209360248584019160051b830101913683116101c557602401905b8282106108e5576108d185856108cb6101ca565b916121d0565b906108e1604051928392836107e5565b0390f35b813560ff811681036101c55781529085019085016108b7565b50346101c55760403660031901126101c55760046001600160401b0381358181116101c55761093090369084016105d9565b906024359081116101c557610948903690840161061d565b6000549091906001600160a01b031633036109a257610740610746929360405192610972846102f7565b8352846020840152805490600160401b821015610995575b60018201905561109f565b61099d6102c0565b61098a565b6040516371e2657560e01b81523381850152602490fd5b50346101c55760603660031901126101c5576004356109d7816101b4565b602435604435906001600160401b0382168092036101c5576000546001600160a01b0390811633036102275761001993836040610a4493815193610a1a85610312565b1692838152856020820152015260018060a01b03166001600160601b0360a01b6009541617600955565b600a556001600160401b03166001600160401b0319600b541617600b55565b90815180825260208092019182818360051b85019501936000915b848310610a8e5750505050505090565b9091929394958480610aa883856001950387528a516107c0565b9801930193019194939290610a7e565b90610acb90604083526040830190610a63565b81810360209283015282518082529082019282019160005b828110610af1575050505090565b835185529381019392810192600101610ae3565b50346101c557600080600319360112610bb25780546001600160a01b03163303610227576007805490610b37826105f7565b92610b456040519485610348565b828452601f19610b54846105f7565b01366020860137805b838110610b7c5784610b6d611a22565b6108e160405192839283610ab8565b610bad90838352610b9c8160008051602061314983398151915201611829565b54610ba7828861195c565b52611713565b610b5d565b80fd5b60206003198201126101c557600435906001600160401b0382116101c5576105f4916004016105d9565b50346101c557610bee36610bb5565b6000546001600160a01b0316330361022757610c0c60021991611803565b55005b50346101c55760203660031901126101c5576004356001600160401b038082116101c557366023830112156101c55781600401359081116101c5573660248260051b840101116101c55760246100199201611559565b50346101c55760003660031901126101c5576020600854604051908152f35b50346101c55760203660031901126101c5576000546001600160a01b0316330361022757600435600855005b50346101c55760003660031901126101c557606060018060a01b0360095416600a546001600160401b03600b54169060405192835260208301526040820152f35b50346101c557600080600319360112610bb25780546001600160a01b0316330361022757808160078054935b848110610d3857505060408051928352602083019390935250f35b818352600119610d576000805160206131498339815191528301611829565b5414610d6c575b610d6790611713565b610d1d565b92610d79610d6791611713565b939050610d5e565b50346101c557610d9036610bb5565b600119610d9c82611803565b54141580610e57575b610e3257610db290611c2f565b604090815190602080830181845282518091528484019180868360051b8701019401926000965b838810610de65786860387f35b90919293948380610e21600193603f198b820301875289519083610e118351898452898401906107c0565b9201519084818403910152610a63565b970193019701969093929193610dd9565b604051634bf583cf60e01b8152602060048201529081906105d59060248301906107c0565b506000546001600160a01b0316331415610da5565b50346101c557600080600319360112610bb25780546001600160a01b03163303610227576004548160045580610ead575b50610ea86000600555565b604051f35b60016001600160ff1b0382118116610f17575b600483527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b91811b8201915b828110610efa575050610e9d565b80610f06600292611202565b610f1183820161124e565b01610eec565b610f1f61024a565b610ec0565b50346101c55760003660031901126101c55760206040516001198152f35b50346101c55760203660031901126101c557600435610f60816101b4565b6000546001600160a01b0316330361022757600080809247604051915af1610f86612e73565b501561052957005b50346101c55760203660031901126101c5576004356001600160401b038082116101c557366023830112156101c55781600401359081116101c55736602482840101116101c5576000546001600160a01b039290831633036102275781602091602460006044610019976002541693604051978896879586936310831bd160e31b85528a6004860152828286015201848401378181018301849052601f01601f191681010301925af190811561107b575b60009161104d575b50600355565b61106e915060203d8111611074575b6110668183610348565b810190613139565b38611047565b503d61105c565b6110836127dc565b61103f565b50634e487b7160e01b600052603260045260246000fd5b6004548110156110da575b600460005260011b7f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0190600090565b6110e2611088565b6110aa565b50634e487b7160e01b600052600060045260246000fd5b90600182811c9216801561112e575b602083101461111857565b634e487b7160e01b600052602260045260246000fd5b91607f169161110d565b818110611143575050565b60008155600101611138565b9190601f811161115e57505050565b6101d7926000526020600020906020601f840160051c8301931061118a575b601f0160051c0190611138565b909150819061117d565b8060001904600211811515166111ab575b60011b90565b6111b361024a565b6111a5565b6001600160fd1b0381116001166111d0575b60031b90565b6111d861024a565b6111ca565b806000190461010011811515166111f5575b60081b90565b6111fd61024a565b6111ef565b61120c81546110fe565b9081611216575050565b81601f60009311600114611228575055565b8183526020832061124491601f0160051c810190600101611138565b8160208120915555565b805490600081558161125e575050565b6000526020600020908101905b818110611276575050565b80611282600192611202565b0161126b565b90600160401b81116112d2575b8154918181558282106112a757505050565b600052602060002091820191015b8181106112c0575050565b806112cc600192611202565b016112b5565b6112da6102c0565b611295565b908051906112ed8284611288565b600092835260208084209091849083015b84861061130d57505050505050565b8381518051906001600160401b0382116113ef575b6113368261133088546110fe565b8861114f565b8290601f831160011461137e579180600195928695948892611373575b5050600019600383901b1c191690841b1786555b019301950194916112fe565b015190503880611353565b90601f1983169161139488600052602060002090565b92875b8181106113d757509160019693918588979694106113be575b505050831b83018655611367565b015160001960f88460031b161c191690553880806113b0565b8284015185558a966001909501949384019301611397565b6113f76102c0565b611322565b91906114f9575b80519081516001600160401b0381116114ec575b61142b8161142586546110fe565b8661114f565b6020928390601f8311600114611477579180600194926101d797969460009261146c575b5050600019600383901b1c191690841b1784555b015191016112df565b01519050388061144f565b90601f1983169161148d87600052602060002090565b9260005b8181106114d5575092600195939285926101d79998968895106114bc575b505050811b018455611463565b015160001960f88460031b161c191690553880806114af565b929387600181928786015181550195019301611491565b6114f46102c0565b611417565b6115016110e7565b611403565b906023820180921161027057565b600401908160041161027057565b906001820180921161027057565b906004820180921161027057565b906002820180921161027057565b9190820180921161027057565b600080549091906001600160a01b031633036102275792919080935b828510611583575050509050565b61158e85848361172f565b959086604051978892833781016006815260209788910301902054156115df575b839495506115d06115c6828495966115d69561172f565b600119929161177e565b55611713565b93929190611575565b6115ea81858461172f565b600761160b8154600160401b811015611706575b6001928382019055611797565b9390936116f9575b6001600160401b0383116116ec575b6116308361142586546110fe565b8699601f8411600114611679575082918798999a83926115d698999461166e575b50501b916000199060031b1c19161790555b8594939291506115af565b013592503880611651565b90601f9392931983169a61169286600052602060002090565b9289905b8d82106116d5575050836115d698999a9b9c106116bb575b505050811b019055611663565b0135600019600384901b60f8161c191690553880806116ae565b808784968294958701358155019501920190611696565b6116f46102c0565b611622565b6117016110e7565b611613565b61170e6102c0565b6115fe565b6001906000198114611723570190565b61172b61024a565b0190565b9190811015611771575b60051b81013590601e19813603018212156101c55701908135916001600160401b0383116101c55760200182360381136101c5579190565b611779611088565b611739565b6020908260405193849283378101600681520301902090565b6007548110156117bd575b60076000526000805160206131498339815191520190600090565b6117c5611088565b6117a2565b80548210156117e3575b60005260206000200190600090565b6117eb611088565b6117d4565b9061172b6020928281519485920161079d565b602061181c91816040519382858094519384920161079d565b8101600681520301902090565b60405190816000825461183b816110fe565b936001918083169081156118a05750600114611863575b505060209250600681520301902090565b90915060005260209081600020906000915b85831061188c575050505060209181013880611852565b805487840152869450918301918101611875565b92505050602093915060ff191682528015150281013880611852565b6020908051156118ca570190565b61172b611088565b6040908051600110156118ca570190565b6060908051600210156118ca570190565b6080908051600310156118ca570190565b60a0908051600410156118ca570190565b60c0908051600510156118ca570190565b60e0908051600610156118ca570190565b610100908051600710156118ca570190565b610120908051600810156118ca570190565b6020918151811015611971575b60051b010190565b611979611088565b611969565b9060405191826000825492611992846110fe565b9081845260019485811690816000146119ff57506001146119bc575b50506101d792500383610348565b9093915060005260209081600020936000915b8183106119e75750506101d7935082010138806119ae565b855488840185015294850194879450918301916119cf565b9150506101d794506020925060ff191682840152151560051b82010138806119ae565b60075490611a2f826105f7565b91611a3d6040519384610348565b8083526007600090815260206000805160206131498339815191528186015b848410611a6a575050505050565b6001838192611a788561197e565b815201920193019290611a5c565b9060206105f49281815201906107c0565b60045490611aa4826105f7565b91604090611ab482519485610348565b808452836020809101926000600481527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b9181955b858710611af95750505050505050565b848251611b05816102f7565b611b0e8661197e565b81526001808701908154611b21816105f7565b92611b2e88519485610348565b8184528852848820888685015b838210611b61575050505050928160019484600295940152815201940196019592611ae9565b9380959697839495611b7483949561197e565b815201930191018b9695949392611b3b565b90611b90826105f7565b604090611b9f82519182610348565b8381528093611bb0601f19916105f7565b019160005b838110611bc25750505050565b6020908251611bd0816102f7565b60608082528382015284820183015201611bb5565b90611bef826105f7565b611bfc6040519182610348565b8281528092611c0d601f19916105f7565b019060005b828110611c1e57505050565b806060602080938501015201611c12565b60008054611c45906001600160a01b03166104ac565b3314611d6f5760045490611c61611c5b83611b86565b93611e0c565b8190815b848410611c7457505050505090565b611c7d8461109f565b50611c8c600180920154611be5565b84825b611cf5575b5091611ce991611cef93611ca78861109f565b5090611cba611cb4610369565b9261197e565b82526020820152611ccb888b61195c565b52611cd6878a61195c565b50611ce08761109f565b5001549061154c565b93611713565b92611c65565b82611cff8861109f565b500154811015611d6a57611d648391611d49611d43611d1d8b61109f565b5085611d3c611d35611d2f878d61154c565b8d61195c565b5160ff1690565b91016117ca565b5061197e565b611d53828661195c565b52611d5e818561195c565b50611713565b90611c8f565b611c94565b50506105f4611a97565b90611d83826105f7565b611d906040519182610348565b8281528092611da1601f19916105f7565b0190602036910137565b939291611dc89060409286526060602087015260608601906107c0565b930152565b60ff6001911660ff8114611723570190565b50634e487b7160e01b600052601260045260246000fd5b8115611e00570690565b611e08611ddf565b0690565b611e17600554611d79565b9060009081600454916001938454905b848410611e375750505050505090565b60405160209081810190611e5f81611e5189898987611dab565b03601f198101835282610348565b51902087896000825b611f61575b5050806000905b611e94575b50611ce99250611e8e939150611ce08761109f565b92611e27565b8a8883611ea08261109f565b500154831015611f5a578291611f2a611ee6611ee0611ee08a8a8a611ed6611f4299601f611f479d1694851015611f4d5761109f565b500154911a611df6565b60ff1690565b91611f328a611f2a611f24611f07611d35611f01898661154c565b8761195c565b96611f1e611d35611f188c8761154c565b8861195c565b9361154c565b8461195c565b9060ff169052565b611f3c858b61154c565b9061195c565b611713565b81611e74565b611f55611088565b61109f565b5050611e79565b82611f6b8a61109f565b50015460ff821690811015611f9c5781611f2a611f9494611f3c611f8f948b61154c565b611dcd565b8a9082611e68565b50611e6d565b60405190611faf8261032d565b60008252565b602081526040611fd0835182602085015260608401906107c0565b6020909301516001600160a01b031691015290565b90918251600454908181036121ae57509260019061200285611d79565b9461200c85612f4e565b916000925b8284106121525750505050158015612141575b6121365761205f9392916120506120859261203d610369565b9283526001600160a01b03166020830152565b60405194859160208301611fb5565b0393612073601f1995868101835282610348565b6001549061207f611fa2565b91612ea3565b6009549093906001600160a01b03168061209f5750509190565b906105f49294916120df6120eb600a54936120c2600b546001600160401b031690565b95604051938491632cfbb03160e01b602084015260248301611a86565b03908101835282610348565b6121056120f6610376565b6001600160401b039095168552565b64174876e8006020850152620493e060408501523060608501526000608085015260a08401524660c0840152612231565b5050906105f4611fa2565b506001600160a01b03811615612024565b9091929361219e90612167611d35878561195c565b60ff612179611ee0611d358a8961195c565b9116146121918161218a898d61195c565b9015159052565b816121a6575b5094611713565b929190612011565b905038612197565b60405163fc4d56e960e01b815260048101919091526024810191909152604490fd5b9291906001196121df85611803565b5414158061221c575b6121fa576121f69293611fe5565b9091565b604051634bf583cf60e01b815260206004820152806105d560248201876107c0565b506000546001600160a01b03163314156121e8565b9061223a61255e565b5060c0830190815192604091825161225181610312565b60008152602095868201600090528482015261226d90876123f7565b83518681818082018581965192839101916122879261079d565b810103808352016122989082610348565b519020946122a461255e565b50835191818301528082526122b8826102f7565b835186828201528181526122cb816102f7565b8451916122d78361032d565b600083528551928391820194600486528783016080905260a083016122fb916107c0565b92601f199384848203016060850152612313916107c0565b83838203016080840152612326916107c0565b0390810182526123369082610348565b516006600160981b01905a92600093928493fa612351612e73565b9061235b90612f13565b612364906125e0565b809461236f926127e9565b820190815161237d90610261565b905161238890611194565b6123919161154c565b61239a90611506565b90526105f4916123f7565b6040519061014082018281106001600160401b038211176123ea575b604052600982528160005b61012081106123d9575050565b8060606020809385010152016123cc565b6123f26102c0565b6123c1565b61254560206105f4936124eb60a061240d6123a5565b9561243661243161242583516001600160401b031690565b6001600160401b031690565b612bba565b61243f886118bc565b52612449876118bc565b5061245685820151612bba565b61245f886118d2565b52612469876118d2565b5061248461243161242560408401516001600160401b031690565b61248d886118e3565b52612497876118e3565b5060608101516124af906001600160a01b0316612b8d565b6124b8886118f4565b526124c2876118f4565b506124d06080820151612bba565b6124d988611905565b526124e387611905565b5001516128e5565b6124f485611916565b526124fe84611916565b5061250c6040820151612bba565b61251585611927565b5261251f84611927565b5061252a8151612bba565b61253385611938565b5261253d84611938565b500151612bba565b61254e8261194a565b526125588161194a565b50612a61565b6040519061256b82610312565b60006040838281528260208201520152565b6022908051600210156118ca570190565b6021908051600110156118ca570190565b6023908051600310156118ca570190565b6024908051600410156118ca570190565b9060209180518210156125d357010190565b6125db611088565b010190565b906125e961255e565b916008815110612795576001600160f81b0319600360fc1b8161261c61260e856118bc565b516001600160f81b03191690565b160361279557600160f91b808261263561260e8661257d565b160361279557612653611ee061264d61260e8661258e565b60f81c90565b91612666611ee061264d61260e8761259f565b92602184116127955761267884611514565b90612694611ee061264d61260e61268e86611522565b8a6125c1565b9360218511612795576126ba6126ad61260e858a6125c1565b6001600160f81b03191690565b0361279557806126d26126cd868861154c565b611530565b03612795576126e286519161153e565b03612795576126f09061153e565b90600490602185146127a7575b60218414612762575b5090602080928601015194010151916020811061274b575b5060208110612733575b509083526020830152565b61273f61274491610287565b6111b8565b1c38612728565b61273f61275a91949294610287565b1c913861271e565b61277261260e84889694966125c1565b1661279557602061278c6127868294611522565b92610278565b93919250612706565b6040516386cd05c560e01b8152600490fd5b9390846127b661260e886125b0565b166127cd57506127c7600591610278565b936126fd565b6040516386cd05c560e01b8152fd5b506040513d6000823e3d90fd5b9160408101601b8152815191602081016020612823825160405196888860609194939260808201958252601b602083015260408201520152565b856000968792838052039060015afa156128d8575b83516001600160a01b039687169616869003612857575b505050505050565b6128a99461288d8593601c602096525192516040519384938460609194939260808201958252601c602083015260408201520152565b838052039060015afa156128cb575b516001600160a01b031690565b036128b95738808080808061284f565b604051634532600d60e01b8152600490fd5b6128d36127dc565b61289c565b6128e06127dc565b612838565b906000918051926001938481149081612a3b575b501561290457509150565b8151936038851015612968575092611e516105f492612962949561294561293560ff61292e612c74565b9616612ce2565b60f81b6001600160f81b03191690565b901a612950846118bc565b535b60405194859360208501906117f0565b906117f0565b9190808380805b612a09575b505061298761298283611522565b612ca8565b9361299f61293561299a60ff8616612ce2565b612cd0565b821a6129aa866118bc565b535b828111156129ca5750505061296292935090611e516105f492612952565b806129f2612935611ee0611ee06129ec6129e7612a04978a610295565b612d06565b8c612c5e565b831a6129fe82886125c1565b53611713565b6129ac565b9092612a158489612c5e565b15612a3357612a26612a2c91611713565b936111dd565b908061296f565b925080612974565b905015612a54575b6080602083015160f81c10386128f9565b612a5c611088565b612a43565b612a6a90612d23565b805160006038821015612adb575060206105f491612a9561293560ff612a8e612c74565b9316612cf4565b60001a612aa1826118bc565b535b6040519381612abb869351809286808701910161079d565b8201612acf8251809386808501910161079d565b01038084520182610348565b6001918280805b612b61575b5050612af561298283611522565b92612b0861293561299a60ff8616612cf4565b60001a612b14856118bc565b535b82811115612b2c5750505060206105f491612aa3565b80612b4f612935611ee0611ee0612b496129e7612b5c978a610295565b87612c5e565b60001a6129fe82876125c1565b612b16565b9092612b6d8484612c5e565b15612b8557612a26612b7e91611713565b9080612ae2565b925080612ae7565b6105f490604051906001600160601b03199060601b16602082015260148152612bb5816102f7565b6128e5565b90604051612bd481611e5160209586830160209181520190565b60009283905b808210612c34575b50612bef61298282610287565b91845b8351811015612c2657612c2190612c1561260e612c0e86611713565b95856125c1565b871a6129fe82876125c1565b612bf2565b5050506105f49192506128e5565b90612c456126ad61260e83866125c1565b612c5857612c5290611713565b90612bda565b90612be2565b8115612c68570490565b612c70611ddf565b0490565b60405190612c81826102f7565b6001825260203681840137565b60405190612c9b8261032d565b6000808352366020840137565b90612cb282610395565b612cbf6040519182610348565b8281528092611da1601f1991610395565b60ff60379116019060ff821161027057565b60ff60809116019060ff821161027057565b60ff60c09116019060ff821161027057565b601f8111612d16575b6101000a90565b612d1e61024a565b612d0f565b805115612db65790600091825b8151841015612d5857611ce9612d5291612d4a868561195c565b51519061154c565b92612d30565b612d6491929350612ca8565b906020808301936000945b8351861015612dae57612da2612da891612d98612d8c898861195c565b51868151910183612dbf565b612d4a888761195c565b95611713565b94612d6f565b509350505090565b506105f4612c8e565b92905b602093848410612e215781518152848101809111612e14575b938101809111612e07575b91601f198101908111612dfa575b91612dc2565b612e0261024a565b612df4565b612e0f61024a565b612de6565b612e1c61024a565b612ddb565b9290919350600019906020036101000a0190811990511690825116179052565b91612e65906105f494928452600060208501526080604085015260808401906107c0565b9160608184039101526107c0565b3d15612e9e573d90612e8482610395565b91612e926040519384610348565b82523d6000602084013e565b606090565b600092612ebf8493611e51604051938492602084019687612e41565b51906003600160981b015afa612ed3612e73565b9015612edc5790565b60405162461bcd60e51b815260206004820152600f60248201526e195b98dc9e5c1d0e8819985a5b1959608a1b6044820152606490fd5b15612f1a57565b60405162461bcd60e51b815260206004820152600c60248201526b1cda59db8e8819985a5b195960a21b6044820152606490fd5b612f5790611e0c565b60045490612f6482611d79565b91600080915b808310612f78575050505090565b90929460009492945b6001612f8c8761109f565b50015460ff821690811015612ff857611ee0611d35612fae612fb4938961154c565b8a61195c565b15612fc757612fc290611dcd565b612f81565b612ff2919694612fe1612fec92611f2a89889a979861195c565b6001611ce08561109f565b91611713565b91612f6a565b50509492612fec612ff29195929395612fe1565b51906101d7826101b4565b9060209081838203126101c55782516001600160401b03938482116101c55701906040828203126101c5576040519361304f856102f7565b82519081116101c55782019181601f840112156101c55782519161307283610395565b906130806040519283610348565b8382528584860101116101c5576130a185936130a99585808501910161079d565b85520161300c565b9082015290565b6001906001600160401b03809116908114611723570190565b6000926130e58493611e51604051938492602084019687612e41565b51906004600160981b015afa6130f9612e73565b90156131025790565b60405162461bcd60e51b815260206004820152600f60248201526e191958dc9e5c1d0e8819985a5b1959608a1b6044820152606490fd5b908160209103126101c557519056fea66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688a2646970667358221220d60554edf68241b3da9267ba6ddeecb239d471b93a0fbe0cd0e64fe2c0878c0064736f6c63430008100033",V4=t=>t.length>1;class qc extends v0{constructor(...e){V4(e)?super(...e):super(Q1,E2,e[0])}getDeployTransaction(e){return super.getDeployTransaction(e||{})}deploy(e){return super.deploy(e||{})}connect(e){return super.connect(e)}static createInterface(){return new qn(Q1)}static connect(e,n){return new Tn(e,Q1,n)}}qc.bytecode=E2;qc.abi=Q1;var x2=(t=>(t[t.Unknown=0]="Unknown",t[t.Ethereum=1]="Ethereum",t[t.Goerli=10]="Goerli",t[t.BscMainnet=56]="BscMainnet",t[t.BscTestnet=97]="BscTestnet",t[t.EmeraldTestnet=42261]="EmeraldTestnet",t[t.EmeraldMainnet=42262]="EmeraldMainnet",t[t.SapphireTestnet=23295]="SapphireTestnet",t[t.SapphireMainnet=23294]="SapphireMainnet",t[t.SapphireLocalnet=23293]="SapphireLocalnet",t[t.Local=1337]="Local",t[t.FromConfig=parseInt("0x5afe")]="FromConfig",t))(x2||{});const Xc=sh("ethereum",()=>{const t=_l(new D4("https://sapphire.oasis.io",void 0,{staticNetwork:!0})),e=mn(x2.FromConfig);return mn(0),{provider:t,network:e}}),j4="0xe195c79a6D9b43F6A8Ba2d79eEBBeC330361b26C";function v2(){const t=Xc();return lt(()=>t?qc.connect(j4,t.provider):(console.error("[useQuiz] Ethereum Store not initialized"),null))}function cg(t){const e=Xc();return lt(()=>e?(v2(),Yc.connect(t,e.provider)):(console.error("[useQuiz] Ethereum Store not initialized"),null))}const K4=r1({__name:"AppButton",props:{variant:null,size:null},setup(t){return(e,n)=>(E0(),s1("button",{class:po(["btn",{"btn-primary":t.variant==="primary","btn-secondary":t.variant==="secondary","btn-tertiary":t.variant==="tertiary","btn-danger":t.variant==="danger","btn-choice":t.variant==="choice","btn-small":t.size==="small"}]),type:"button"},[W8(e.$slots,"default",{},void 0,!0)],2))}});const J4=Ic(K4,[["__scopeId","data-v-0d906a14"]]),W4=Ie("p",{class:"text-white"},[kt(" Dobrodo\u0161li na Oasisovem blockchain kvizu!\u{1F339}"),Ie("br"),Ie("br"),kt(" Kviz je namenjen tekmovalcem ACM UPM, da spoznajo \u010Dudovito tehnologijo veri\u017Eenja blokov ("),Ie("i",null,"blockchain"),kt("). \u26D3 Verjetno ste \u017Ee sli\u0161ali za bitcoin in Ethereum, obstajajo pa tudi druge verige. Ena takih je "),Ie("a",{href:"https://oasisprotocol.org/sapphire",target:"_blank"},"Oasis Sapphire"),kt(", ki omogo\u010Da "),Ie("b",null,"tajno izvajanje programov in \u0161ifrirano hrambo podatkov"),kt(". \u{1F512} Tudi ta kviz ima shranjena vsa vpra\u0161anja in odgovore izklju\u010Dno na blockchainu!"),Ie("br"),Ie("br")],-1),Z4={class:"form-group"},Y4=Ie("label",{for:"couponText",class:"peer-focus:text-primaryDark peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-5"},[kt(" Vnesite va\u0161 kupon: "),Ie("span",{class:"text-red-500"},"*")],-1),q4=pd('

Po uspe\u0161no opravljenem kvizu si lahko ustvari\u0161 novo kriptodenarnico, na katero bo\u0161 prejel nagrado v znesku 100 ROSE na omre\u017Eju Oasis Sapphire.

Svoj programerski talent nato lahko preizkusi\u0161 v programiranju blockchain aplikacij (dApps), z dobljenimi \u017Eeton\u010Dki pa aplikacijo tudi objavi\u0161! \u{1F528} Morda najde\u0161 navdih na na\u0161em igri\u0161\u010Du Oasis Playground.\u{1F4A1}

Lahko pa kovan\u010Dke le "dr\u017Ei\u0161" in upa\u0161, da v prihodnosti zrastejo. \u{1F911} Morda jih zamenja\u0161 za druge kriptokovance? Ali pa svoje prijatelje pogosti\u0161 s kakavom v bi\u017Enjem kriptolokalu \u2615. Morda odide\u0161 po nakupih? \u{1F6D2}

Preden odhiti\u0161 re\u0161evat kviz, te vabimo, da se pridru\u017Ei\u0161 skupnosti slovenskih Oasis razvijalcev na Discord kanalu #slovenia \u{1F1F8}\u{1F1EE} . Z veseljem ti bomo prisko\u010Dili na pomo\u010D. \u{1F198}

Veliko sre\u010De pri re\u0161evanju!

',1),X4=r1({__name:"HomeView",setup(t){Xc();const e=v2();mn([]);const n=mn(""),r=mn(!1);return mn(""),mn(!0),Wl(async()=>{r.value=Boolean(await e.value.payoutReward()>0)}),(s,i)=>{const o=ql("RouterLink");return E0(),s1("section",null,[W4,Ie("div",Z4,[j8(Ie("input",{type:"text",id:"couponText",class:"peer",placeholder:" ","onUpdate:modelValue":i[0]||(i[0]=a=>n.value=a),required:""},null,512),[[Jd,n.value]]),Y4]),Le(o,{to:{name:"quiz",params:{coupon:n.value}}},{default:K1(()=>[Le(J4,{variant:"primary"},{default:K1(()=>[kt("Potrdi")]),_:1})]),_:1},8,["to"]),q4])}}}),$4=ob({strict:!0,history:vh("/demo-quiz-upm2024/"),routes:[{path:"/",component:X4},{path:"/quiz/:coupon?",component:()=>$6(()=>import("./QuizView.1acacd9d.js"),["assets/QuizView.1acacd9d.js","assets/QuizView.b4b14ed4.css"]),props:!0,name:"quiz"},{path:"/:path(.*)",component:()=>$6(()=>import("./404View.756a0a0c.js"),[])}]}),$c=Yd(Ib);$c.use($d());$c.use($4);$c.mount("#app");export{J4 as A,rg as B,sg as C,Gt as F,U4 as J,Da as Z,Ic as _,E as a,Ie as b,s1 as c,r1 as d,Le as e,lt as f,cu as g,v2 as h,Xc as i,mn as j,Wl as k,ig as l,gd as m,og as n,E0 as o,j8 as p,pd as q,W8 as r,cg as s,me as t,d0 as u,Jd as v,K1 as w,ng as x,kt as y,po as z}; +//# sourceMappingURL=index.6adc36fa.js.map diff --git a/demo-quiz-upm2024/assets/index.6adc36fa.js.map b/demo-quiz-upm2024/assets/index.6adc36fa.js.map new file mode 100644 index 0000000..783d0b7 --- /dev/null +++ b/demo-quiz-upm2024/assets/index.6adc36fa.js.map @@ -0,0 +1 @@ +{"version":3,"mappings":"8mBAAqB,UAAoB,CACrC,MAAMA,EAAU,SAAS,cAAc,MAAM,EAAE,QAC/C,GAAIA,GAAWA,EAAQ,UAAYA,EAAQ,SAAS,eAAe,EAC/D,OAEJ,UAAWC,KAAQ,SAAS,iBAAiB,2BAA2B,EACpEC,EAAeD,CAAI,EAEvB,IAAI,iBAAkBE,GAAc,CAChC,UAAWC,KAAYD,EACnB,GAAIC,EAAS,OAAS,YAGtB,UAAWC,KAAQD,EAAS,WACpBC,EAAK,UAAY,QAAUA,EAAK,MAAQ,iBACxCH,EAAeG,CAAI,CAGvC,CAAK,EAAE,QAAQ,SAAU,CAAE,UAAW,GAAM,QAAS,EAAI,CAAE,EACvD,SAASC,EAAaC,EAAQ,CAC1B,MAAMC,EAAY,GAClB,OAAID,EAAO,YACPC,EAAU,UAAYD,EAAO,WAC7BA,EAAO,iBACPC,EAAU,eAAiBD,EAAO,gBAClCA,EAAO,cAAgB,kBACvBC,EAAU,YAAc,UACnBD,EAAO,cAAgB,YAC5BC,EAAU,YAAc,OAExBA,EAAU,YAAc,cACrBA,CACV,CACD,SAASN,EAAeD,EAAM,CAC1B,GAAIA,EAAK,GAEL,OACJA,EAAK,GAAK,GAEV,MAAMO,EAAYF,EAAaL,CAAI,EACnC,MAAMA,EAAK,KAAMO,CAAS,CAC7B,CACL,KCnCA,SAASC,GAAQC,EAAKC,EAAkB,CACpC,MAA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AAc,UACd,KAAM,QACN,KAAM,SACT,CACJ,EACD,KAAM,YACN,QAAS,CACL,CACI,aAAc,UACd,KAAM,GACN,KAAM,SACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,UACN,KAAM,SACT,CACJ,EACD,KAAM,cACN,QAAS,CACL,CACI,aAAc,UACd,KAAM,GACN,KAAM,SACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,QACN,KAAM,SACT,EACD,CACI,aAAc,UACd,KAAM,WACN,KAAM,SACT,CACJ,EACD,KAAM,mBACN,QAAS,CACL,CACI,aAAc,OACd,KAAM,GACN,KAAM,MACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CAAE,EACV,KAAM,OACN,QAAS,CACL,CACI,aAAc,SACd,KAAM,GACN,KAAM,QACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,UACN,KAAM,SACT,CACJ,EACD,KAAM,UACN,QAAS,CACL,CACI,aAAc,UACd,KAAM,GACN,KAAM,SACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,OACN,KAAM,SACT,EACD,CACI,aAAc,UACd,KAAM,KACN,KAAM,SACT,EACD,CACI,aAAc,UACd,KAAM,UACN,KAAM,SACT,CACJ,EACD,KAAM,mBACN,QAAS,CAAE,EACX,gBAAiB,aACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,OACN,KAAM,SACT,EACD,CACI,aAAc,UACd,KAAM,KACN,KAAM,SACT,EACD,CACI,aAAc,UACd,KAAM,UACN,KAAM,SACT,EACD,CACI,aAAc,QACd,KAAM,OACN,KAAM,OACT,CACJ,EACD,KAAM,mBACN,QAAS,CAAE,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,QAAS,GACT,aAAc,UACd,KAAM,WACN,KAAM,SACT,EACD,CACI,QAAS,GACT,aAAc,OACd,KAAM,WACN,KAAM,MACT,CACJ,EACD,KAAM,iBACN,KAAM,OACT,EACD,CACI,UAAW,GACX,OAAQ,CACJ,CACI,QAAS,GACT,aAAc,UACd,KAAM,OACN,KAAM,SACT,EACD,CACI,QAAS,GACT,aAAc,UACd,KAAM,KACN,KAAM,SACT,EACD,CACI,QAAS,GACT,aAAc,UACd,KAAM,UACN,KAAM,SACT,CACJ,EACD,KAAM,WACN,KAAM,OACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,WACN,KAAM,SACT,CACJ,EACD,KAAM,eACN,QAAS,CAAE,EACX,gBAAiB,aACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,KACN,KAAM,SACT,EACD,CACI,aAAc,UACd,KAAM,UACN,KAAM,SACT,CACJ,EACD,KAAM,UACN,QAAS,CAAE,EACX,gBAAiB,aACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,QACN,KAAM,SACT,CACJ,EACD,KAAM,YACN,QAAS,CACL,CACI,aAAc,UACd,KAAM,GACN,KAAM,SACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,UACN,KAAM,SACT,CACJ,EACD,KAAM,cACN,QAAS,CACL,CACI,aAAc,UACd,KAAM,GACN,KAAM,SACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,QACN,KAAM,SACT,CACJ,EACD,KAAM,iBACN,QAAS,CACL,CACI,aAAc,YACd,KAAM,GACN,KAAM,WACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,QACN,KAAM,SACT,EACD,CACI,aAAc,UACd,KAAM,WACN,KAAM,SACT,CACJ,EACD,KAAM,mBACN,QAAS,CACL,CACI,aAAc,OACd,KAAM,GACN,KAAM,MACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,KACN,KAAM,SACT,EACD,CACI,aAAc,UACd,KAAM,eACN,KAAM,SACT,CACJ,EACD,KAAM,OACN,QAAS,CAAE,EACX,gBAAiB,aACjB,KAAM,UACT,EACD,CACI,OAAQ,CAAE,EACV,KAAM,OACN,QAAS,CACL,CACI,aAAc,SACd,KAAM,GACN,KAAM,QACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,UACN,KAAM,SACT,CACJ,EACD,KAAM,UACN,QAAS,CACL,CACI,aAAc,UACd,KAAM,GACN,KAAM,SACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,WACN,KAAM,SACT,CACJ,EACD,KAAM,kBACN,QAAS,CAAE,EACX,gBAAiB,aACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,OACN,KAAM,SACT,EACD,CACI,aAAc,UACd,KAAM,KACN,KAAM,SACT,EACD,CACI,aAAc,UACd,KAAM,UACN,KAAM,SACT,CACJ,EACD,KAAM,mBACN,QAAS,CAAE,EACX,gBAAiB,aACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,OACN,KAAM,SACT,EACD,CACI,aAAc,UACd,KAAM,KACN,KAAM,SACT,EACD,CACI,aAAc,UACd,KAAM,UACN,KAAM,SACT,EACD,CACI,aAAc,QACd,KAAM,OACN,KAAM,OACT,CACJ,EACD,KAAM,mBACN,QAAS,CAAE,EACX,gBAAiB,aACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,WACN,KAAM,SACT,EACD,CACI,aAAc,OACd,KAAM,WACN,KAAM,MACT,CACJ,EACD,KAAM,oBACN,QAAS,CAAE,EACX,gBAAiB,aACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,SACd,KAAM,aACN,KAAM,QACT,CACJ,EACD,KAAM,WACN,QAAS,CACL,CACI,aAAc,UACd,KAAM,GACN,KAAM,SACT,CACJ,EACD,gBAAiB,aACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,SACd,KAAM,cACN,KAAM,QACT,CACJ,EACD,KAAM,oBACN,QAAS,CACL,CACI,aAAc,OACd,KAAM,GACN,KAAM,MACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CAAE,EACV,KAAM,SACN,QAAS,CACL,CACI,aAAc,SACd,KAAM,GACN,KAAM,QACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,QACN,KAAM,SACT,CACJ,EACD,KAAM,eACN,QAAS,CACL,CACI,aAAc,UACd,KAAM,GACN,KAAM,SACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,QACN,KAAM,SACT,EACD,CACI,aAAc,UACd,KAAM,QACN,KAAM,SACT,CACJ,EACD,KAAM,sBACN,QAAS,CACL,CACI,aAAc,UACd,KAAM,GACN,KAAM,SACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,KACN,KAAM,SACT,CACJ,EACD,KAAM,WACN,QAAS,CACL,CACI,aAAc,SACd,KAAM,GACN,KAAM,QACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,GACN,KAAM,SACT,CACJ,EACD,KAAM,YACN,QAAS,CACL,CACI,aAAc,SACd,KAAM,GACN,KAAM,QACT,CACJ,EACD,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KAAM,SACN,KAAM,SACT,CACJ,EACD,KAAM,oBACN,KAAM,OACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,SACd,KAAM,gBACN,KAAM,QACT,CACJ,EACD,KAAM,sBACN,KAAM,OACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,SACN,KAAM,SACT,CACJ,EACD,KAAM,2BACN,KAAM,OACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,UACN,KAAM,SACT,CACJ,EACD,KAAM,qBACN,KAAM,OACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,QACN,KAAM,SACT,CACJ,EACD,KAAM,mBACN,KAAM,OACT,EACD,CACI,UAAW,GACX,OAAQ,CACJ,CACI,QAAS,GACT,aAAc,UACd,KAAM,QACN,KAAM,SACT,EACD,CACI,QAAS,GACT,aAAc,UACd,KAAM,WACN,KAAM,SACT,EACD,CACI,QAAS,GACT,aAAc,UACd,KAAM,UACN,KAAM,SACT,CACJ,EACD,KAAM,WACN,KAAM,OACT,EACD,CACI,UAAW,GACX,OAAQ,CACJ,CACI,QAAS,GACT,aAAc,UACd,KAAM,QACN,KAAM,SACT,EACD,CACI,QAAS,GACT,aAAc,UACd,KAAM,WACN,KAAM,SACT,EACD,CACI,QAAS,GACT,aAAc,OACd,KAAM,WACN,KAAM,MACT,CACJ,EACD,KAAM,iBACN,KAAM,OACT,EACD,CACI,UAAW,GACX,OAAQ,CACJ,CACI,QAAS,GACT,aAAc,UACd,KAAM,OACN,KAAM,SACT,EACD,CACI,QAAS,GACT,aAAc,UACd,KAAM,KACN,KAAM,SACT,EACD,CACI,QAAS,GACT,aAAc,UACd,KAAM,UACN,KAAM,SACT,CACJ,EACD,KAAM,WACN,KAAM,OACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,GACN,KAAM,SACT,CACJ,EACD,KAAM,aACN,QAAS,CACL,CACI,aAAc,SACd,KAAM,GACN,KAAM,QACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,WACN,KAAM,SACT,CACJ,EACD,KAAM,eACN,QAAS,CAAE,EACX,gBAAiB,aACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,KACN,KAAM,SACT,EACD,CACI,aAAc,UACd,KAAM,UACN,KAAM,SACT,CACJ,EACD,KAAM,UACN,QAAS,CAAE,EACX,gBAAiB,aACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,QACN,KAAM,SACT,CACJ,EACD,KAAM,YACN,QAAS,CACL,CACI,aAAc,UACd,KAAM,GACN,KAAM,SACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,UACN,KAAM,SACT,CACJ,EACD,KAAM,cACN,QAAS,CACL,CACI,aAAc,UACd,KAAM,GACN,KAAM,SACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,QACN,KAAM,SACT,CACJ,EACD,KAAM,iBACN,QAAS,CACL,CACI,aAAc,YACd,KAAM,GACN,KAAM,WACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,QACN,KAAM,SACT,EACD,CACI,aAAc,UACd,KAAM,WACN,KAAM,SACT,CACJ,EACD,KAAM,mBACN,QAAS,CACL,CACI,aAAc,OACd,KAAM,GACN,KAAM,MACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,KACN,KAAM,SACT,EACD,CACI,aAAc,UACd,KAAM,eACN,KAAM,SACT,CACJ,EACD,KAAM,OACN,QAAS,CAAE,EACX,gBAAiB,aACjB,KAAM,UACT,EACD,CACI,OAAQ,CAAE,EACV,KAAM,OACN,QAAS,CACL,CACI,aAAc,SACd,KAAM,GACN,KAAM,QACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,UACN,KAAM,SACT,CACJ,EACD,KAAM,UACN,QAAS,CACL,CACI,aAAc,UACd,KAAM,GACN,KAAM,SACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,WACN,KAAM,SACT,CACJ,EACD,KAAM,kBACN,QAAS,CAAE,EACX,gBAAiB,aACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,OACN,KAAM,SACT,EACD,CACI,aAAc,UACd,KAAM,KACN,KAAM,SACT,EACD,CACI,aAAc,UACd,KAAM,UACN,KAAM,SACT,CACJ,EACD,KAAM,mBACN,QAAS,CAAE,EACX,gBAAiB,aACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,OACN,KAAM,SACT,EACD,CACI,aAAc,UACd,KAAM,KACN,KAAM,SACT,EACD,CACI,aAAc,UACd,KAAM,UACN,KAAM,SACT,EACD,CACI,aAAc,QACd,KAAM,OACN,KAAM,OACT,CACJ,EACD,KAAM,mBACN,QAAS,CAAE,EACX,gBAAiB,aACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,WACN,KAAM,SACT,EACD,CACI,aAAc,OACd,KAAM,WACN,KAAM,MACT,CACJ,EACD,KAAM,oBACN,QAAS,CAAE,EACX,gBAAiB,aACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,SACd,KAAM,aACN,KAAM,QACT,CACJ,EACD,KAAM,WACN,QAAS,CACL,CACI,aAAc,UACd,KAAM,GACN,KAAM,SACT,CACJ,EACD,gBAAiB,aACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,SACd,KAAM,cACN,KAAM,QACT,CACJ,EACD,KAAM,oBACN,QAAS,CACL,CACI,aAAc,OACd,KAAM,GACN,KAAM,MACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CAAE,EACV,KAAM,SACN,QAAS,CACL,CACI,aAAc,SACd,KAAM,GACN,KAAM,QACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,QACN,KAAM,SACT,CACJ,EACD,KAAM,eACN,QAAS,CACL,CACI,aAAc,UACd,KAAM,GACN,KAAM,SACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,QACN,KAAM,SACT,EACD,CACI,aAAc,UACd,KAAM,QACN,KAAM,SACT,CACJ,EACD,KAAM,sBACN,QAAS,CACL,CACI,aAAc,UACd,KAAM,GACN,KAAM,SACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,KACN,KAAM,SACT,CACJ,EACD,KAAM,WACN,QAAS,CACL,CACI,aAAc,SACd,KAAM,GACN,KAAM,QACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CAAE,EACV,KAAM,cACN,QAAS,CACL,CACI,aAAc,UACd,KAAM,GACN,KAAM,SACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,OACN,KAAM,SACT,EACD,CACI,aAAc,UACd,KAAM,KACN,KAAM,SACT,EACD,CACI,aAAc,UACd,KAAM,UACN,KAAM,SACT,CACJ,EACD,KAAM,eACN,QAAS,CAAE,EACX,gBAAiB,aACjB,KAAM,UACT,CACL,EACMC,GAAY,i2eACZC,GAAeC,GAAOA,EAAG,OAAS,EACjC,MAAMO,WAA6BxO,EAAgB,CACtD,eAAe1yE,EAAM,CACb0gF,GAAY1gF,CAAI,EAChB,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D,CACI,OAAQ,CAAE,EACV,KAAM,iBACN,KAAM,OACT,EACD,CACI,OAAQ,CAAE,EACV,KAAM,iBACN,QAAS,CACL,CACI,aAAc,UACd,KAAM,GACN,KAAM,SACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CAAE,EACV,KAAM,eACN,QAAS,CACL,CACI,aAAc,UACd,KAAM,GACN,KAAM,SACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,WACd,KAAM,UACN,KAAM,UACT,CACJ,EACD,KAAM,aACN,QAAS,CAAE,EACX,gBAAiB,aACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,SACd,KAAM,WACN,KAAM,QACT,EACD,CACI,aAAc,WACd,KAAM,UACN,KAAM,UACT,CACJ,EACD,KAAM,cACN,QAAS,CAAE,EACX,gBAAiB,aACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,SACd,KAAM,SACN,KAAM,QACT,EACD,CACI,aAAc,UACd,KAAM,UACN,KAAM,SACT,EACD,CACI,aAAc,UACd,KAAM,aACN,KAAM,SACT,CACJ,EACD,KAAM,eACN,QAAS,CACL,CACI,aAAc,SACd,KAAM,GACN,KAAM,QACT,EACD,CACI,aAAc,QACd,KAAM,GACN,KAAM,OACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,QACd,KAAM,uBACN,KAAM,OACT,CACJ,EACD,KAAM,cACN,QAAS,CAAE,EACX,gBAAiB,aACjB,KAAM,UACT,EACD,CACI,OAAQ,CAAE,EACV,KAAM,iBACN,QAAS,CAAE,EACX,gBAAiB,aACjB,KAAM,UACT,EACD,CACI,OAAQ,CAAE,EACV,KAAM,eACN,QAAS,CACL,CACI,aAAc,UACd,KAAM,GACN,KAAM,SACT,EACD,CACI,aAAc,UACd,KAAM,GACN,KAAM,SACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CAAE,EACV,KAAM,aACN,QAAS,CACL,CACI,aAAc,WACd,KAAM,GACN,KAAM,UACT,EACD,CACI,aAAc,YACd,KAAM,GACN,KAAM,WACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CAAE,EACV,KAAM,oBACN,QAAS,CACL,CACI,aAAc,UACd,KAAM,GACN,KAAM,SACT,EACD,CACI,aAAc,UACd,KAAM,GACN,KAAM,SACT,EACD,CACI,aAAc,SACd,KAAM,GACN,KAAM,QACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,SACd,KAAM,SACN,KAAM,QACT,CACJ,EACD,KAAM,eACN,QAAS,CACL,CACI,WAAY,CACR,CACI,aAAc,SACd,KAAM,WACN,KAAM,QACT,EACD,CACI,aAAc,WACd,KAAM,UACN,KAAM,UACT,CACJ,EACD,aAAc,6BACd,KAAM,GACN,KAAM,SACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CAAE,EACV,KAAM,aACN,QAAS,CACL,CACI,aAAc,UACd,KAAM,GACN,KAAM,SACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CAAE,EACV,KAAM,eACN,QAAS,CACL,CACI,aAAc,UACd,KAAM,GACN,KAAM,SACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,OACN,KAAM,SACT,CACJ,EACD,KAAM,eACN,QAAS,CAAE,EACX,gBAAiB,aACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,SACd,KAAM,SACN,KAAM,QACT,CACJ,EACD,KAAM,eACN,QAAS,CAAE,EACX,gBAAiB,aACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,OACN,KAAM,SACT,EACD,CACI,aAAc,UACd,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,GACR,QAAShL,GAAqB,qBAAwB,EACtD,OAAQ,CACN,CACE,KAAM,IACN,UAAWsqD,EACb,EACA,CACE,KAAM,iBACN,UAAW,WAAM,OAAO,0FACxB,MAAO,GACP,KAAM,MACR,EACA,CACE,KAAM,aACN,UAAW,IAAMC,cAAO,4BAC1B,CACF,CACF,CAAC,EChBKxlE,GAAM8Q,GAAU20D,EAAG,EAEzBzlE,GAAI,IAAIyR,IAAa,EACrBzR,GAAI,IAAIwjB,EAAM,EAEdxjB,GAAI,MAAM,MAAM","names":["relList","link","processPreload","mutations","mutation","node","getFetchOpts","script","fetchOpts","makeMap","str","expectsLowerCase","map","list","i","val","normalizeStyle","value","isArray","res","item","normalized","isString","parseStringStyle","key","isObject","listDelimiterRE","propertyDelimiterRE","styleCommentRE","cssText","ret","tmp","normalizeClass","name","specialBooleanAttrs","isSpecialBooleanAttr","includeBooleanAttr","toDisplayString","objectToString","isFunction","replacer","_key","isMap","entries","isSet","isPlainObject","EMPTY_OBJ","EMPTY_ARR","NOOP","NO","onRE","isOn","isModelListener","extend","remove","arr","el","hasOwnProperty","hasOwn","toTypeString","isSymbol","isPromise","toRawType","isIntegerKey","isReservedProp","cacheStringFunction","fn","cache","camelizeRE","camelize","_","c","hyphenateRE","hyphenate","capitalize","toHandlerKey","hasChanged","oldValue","invokeArrayFns","fns","arg","def","obj","toNumber","n","_globalThis","getGlobalThis","activeEffectScope","EffectScope","detached","currentEffectScope","fromParent","l","last","effectScope","recordEffectScope","effect","scope","getCurrentScope","onScopeDispose","createDep","effects","dep","wasTracked","trackOpBit","newTracked","initDepMarkers","deps","finalizeDepMarkers","ptr","targetMap","effectTrackDepth","maxMarkerBits","activeEffect","ITERATE_KEY","MAP_KEY_ITERATE_KEY","ReactiveEffect","scheduler","parent","lastShouldTrack","shouldTrack","cleanupEffect","trackStack","pauseTracking","resetTracking","track","target","type","depsMap","trackEffects","debuggerEventExtraInfo","trigger","newValue","oldTarget","newLength","triggerEffects","triggerEffect","isNonTrackableKeys","builtInSymbols","get","createGetter","shallowGet","readonlyGet","arrayInstrumentations","createArrayInstrumentations","instrumentations","args","toRaw","isReadonly","shallow","receiver","shallowReadonlyMap","readonlyMap","shallowReactiveMap","reactiveMap","targetIsArray","isRef","readonly","reactive","set","createSetter","shallowSet","isShallow","hadKey","result","deleteProperty","has","ownKeys","mutableHandlers","readonlyHandlers","shallowReactiveHandlers","toShallow","getProto","v","get$1","rawTarget","rawKey","wrap","toReadonly","toReactive","has$1","size","add","set$1","deleteEntry","clear","hadItems","createForEach","callback","thisArg","observed","createIterableMethod","method","targetIsMap","isPair","isKeyOnly","innerIterator","done","createReadonlyMethod","createInstrumentations","mutableInstrumentations","shallowInstrumentations","readonlyInstrumentations","shallowReadonlyInstrumentations","createInstrumentationGetter","mutableCollectionHandlers","shallowCollectionHandlers","readonlyCollectionHandlers","targetTypeMap","rawType","getTargetType","createReactiveObject","shallowReactive","baseHandlers","collectionHandlers","proxyMap","existingProxy","targetType","proxy","isReactive","isProxy","raw","markRaw","trackRefValue","ref","triggerRefValue","newVal","r","createRef","shallowRef","rawValue","RefImpl","__v_isShallow","useDirectValue","unref","shallowUnwrapHandlers","proxyRefs","objectWithRefs","toRefs","object","toRef","ObjectRefImpl","_object","_defaultValue","defaultValue","_a","ComputedRefImpl","getter","_setter","isSSR","self","computed","getterOrOptions","debugOptions","setter","onlyGetter","callWithErrorHandling","instance","err","handleError","callWithAsyncErrorHandling","values","throwInDev","contextVNode","cur","exposedInstance","errorInfo","errorCapturedHooks","appErrorHandler","logError","isFlushing","isFlushPending","queue","flushIndex","pendingPostFlushCbs","activePostFlushCbs","postFlushIndex","resolvedPromise","currentFlushPromise","nextTick","p","findInsertionIndex","id","start","end","middle","getId","queueJob","job","queueFlush","flushJobs","invalidateJob","queuePostFlushCb","cb","flushPreFlushCbs","seen","flushPostFlushCbs","deduped","a","b","comparator","diff","check","emit$1","event","rawArgs","props","modelArg","modifiersKey","trim","number","handlerName","handler","onceHandler","normalizeEmitsOptions","comp","appContext","asMixin","cached","hasExtends","extendEmits","normalizedFromExtend","isEmitListener","options","currentRenderingInstance","currentScopeId","setCurrentRenderingInstance","prev","pushScopeId","popScopeId","withCtx","ctx","isNonScopedSlot","renderFnWithContext","setBlockTracking","prevInstance","renderComponentRoot","Component","propsOptions","fallthroughAttrs","vnode","proxyToUse","withProxy","normalizeVNode","render","renderCache","setupState","data","attrs","getFunctionalFallthrough","blockStack","createVNode","Comment","root","inheritAttrs","keys","shapeFlag","filterModelListeners","cloneVNode","shouldUpdateComponent","prevVNode","nextVNode","optimized","prevProps","prevChildren","nextProps","nextChildren","emits","component","patchFlag","hasPropsChanged","dynamicProps","emitsOptions","nextKeys","updateHOCHostEl","isSuspense","queueEffectWithSuspense","suspense","provide","currentInstance","provides","parentProvides","inject","treatDefaultAsFactory","INITIAL_WATCHER_VALUE","watch","source","doWatch","forceTrigger","isMultiSource","isShallow$1","deep","s","traverse","cleanup","onCleanup","baseGetter","ssrCleanup","isInSSRComponentSetup","immediate","flush","useSSRContext","queuePostRenderEffect","unwatch","instanceWatch","publicThis","createPathGetter","setCurrentInstance","unsetCurrentInstance","path","segments","defineComponent","isAsyncWrapper","isKeepAlive","onActivated","hook","registerKeepAliveHook","onDeactivated","wrappedHook","current","injectHook","injectToKeepAliveRoot","keepAliveRoot","injected","onUnmounted","prepend","hooks","createHook","lifecycle","onBeforeMount","onMounted","onBeforeUpdate","onUpdated","onBeforeUnmount","onServerPrefetch","onRenderTriggered","onRenderTracked","onErrorCaptured","withDirectives","directives","internalInstance","getExposeProxy","bindings","dir","modifiers","invokeDirectiveHook","oldBindings","binding","COMPONENTS","resolveComponent","maybeSelfReference","resolveAsset","NULL_DYNAMIC_COMPONENT","warnMissing","selfName","getComponentName","resolve","registry","renderList","renderItem","index","renderSlot","slots","fallback","noSlotted","slot","openBlock","validSlotContent","ensureValidVNode","rendered","createBlock","Fragment","vnodes","child","isVNode","getPublicInstance","isStatefulComponent","publicPropertiesMap","resolveMergedOptions","hasSetupBinding","state","PublicInstanceProxyHandlers","normalizedProps","accessCache","shouldCacheAccess","publicGetter","cssModule","globalProperties","descriptor","applyOptions","callHook","dataOptions","computedOptions","watchOptions","provideOptions","injectOptions","resolveInjections","methods","methodHandler","opt","createWatcher","created","registerLifecycleHook","register","_hook","beforeMount","mounted","beforeUpdate","updated","activated","deactivated","errorCaptured","renderTracked","renderTriggered","beforeUnmount","unmounted","serverPrefetch","expose","exposed","components","checkDuplicateProperties","unwrapRef","normalizeInject","h","base","extendsOptions","globalMixins","resolved","mixins","m","mergeOptions","optionMergeStrategies","to","from","strats","strat","internalOptionMergeStrats","mergeDataFn","mergeObjectOptions","mergeAsArray","mergeWatchOptions","mergeInject","merged","initProps","rawProps","isStateful","InternalObjectKey","setFullProps","updateProps","rawPrevProps","rawCurrentProps","hasAttrsChanged","propsToUpdate","camelizedKey","resolvePropValue","kebabKey","needCastKeys","rawCastValues","camelKey","castValues","isAbsent","hasDefault","propsDefaults","normalizePropsOptions","extendProps","normalizedKey","validatePropName","prop","booleanIndex","getTypeIndex","stringIndex","getType","ctor","match","isSameType","expectedTypes","t","isInternalKey","normalizeSlotValue","normalizeSlot","rawSlot","normalizeObjectSlots","rawSlots","normalizeVNodeSlots","children","initSlots","updateSlots","needDeletionCheck","deletionComparisonTarget","createAppContext","uid","createAppAPI","hydrate","rootComponent","rootProps","context","installedPlugins","isMounted","app","version","plugin","mixin","directive","rootContainer","isHydrate","isSVG","setRef","rawRef","oldRawRef","parentSuspense","isUnmount","refValue","owner","oldRef","refs","_isString","_isRef","doSet","existing","createRenderer","baseCreateRenderer","createHydrationFns","hostInsert","hostRemove","hostPatchProp","hostCreateElement","hostCreateText","hostCreateComment","hostSetText","hostSetElementText","hostParentNode","hostNextSibling","hostSetScopeId","hostInsertStaticContent","patch","n1","n2","container","anchor","parentComponent","slotScopeIds","isSameVNodeType","getNextHostNode","unmount","Text","processText","processCommentNode","Static","mountStaticNode","processFragment","processElement","processComponent","internals","moveStaticNode","nextSibling","next","removeStaticNode","mountElement","patchElement","vnodeHook","mountChildren","dirs","unmountChildren","invokeVNodeHook","setScopeId","needCallTransitionHooks","transition","scopeId","subTree","parentVNode","cloneIfMounted","oldProps","newProps","toggleRecurse","areChildrenSVG","dynamicChildren","patchBlockChildren","patchChildren","patchProps","oldChildren","newChildren","fallbackContainer","oldVNode","newVNode","fragmentStartAnchor","fragmentEndAnchor","fragmentSlotScopeIds","traverseStaticChildren","mountComponent","updateComponent","initialVNode","createComponentInstance","setupComponent","setupRenderEffect","placeholder","updateComponentPreRender","componentUpdateFn","originNext","bu","nextTree","prevTree","u","isAsyncWrapperVNode","bm","hydrateNode","hydrateSubTree","scopedInitialVNode","update","c1","prevShapeFlag","c2","patchKeyedChildren","patchUnkeyedChildren","oldLength","commonLength","nextChild","parentAnchor","l2","e1","e2","nextPos","s1","s2","keyToNewIndexMap","j","patched","toBePatched","moved","maxNewIndexSoFar","newIndexToOldIndexMap","prevChild","newIndex","increasingNewIndexSequence","getSequence","nextIndex","move","moveType","performLeave","leave","afterLeave","delayLeave","doRemove","shouldInvokeDirs","shouldInvokeVnodeHook","unmountComponent","removeFragment","performRemove","bum","um","allowed","ch1","ch2","len","arrI","isTeleport","currentBlock","disableTracking","closeBlock","isBlockTreeEnabled","setupBlock","createElementBlock","createBaseVNode","normalizeKey","normalizeRef","ref_key","ref_for","isBlockNode","needFullChildrenNormalization","normalizeChildren","_createVNode","cloned","isClassComponent","guardReactiveProps","klass","style","extraProps","mergeRef","mergedProps","mergeProps","createTextVNode","text","flag","createStaticVNode","content","numberOfNodes","createCommentVNode","asBlock","slotFlag","toMerge","incoming","emptyAppContext","uid$1","getCurrentInstance","setupResult","setupStatefulComponent","setup","setupContext","createSetupContext","resolvedResult","handleSetupResult","e","finishComponentSetup","compile","skipOptions","template","componentCompilerOptions","finalCompilerOptions","compilerOptions","createAttrsProxy","includeInferred","computed$1","propsOrChildren","ssrContextKey","svgNS","doc","templateContainer","nodeOps","tag","is","selector","before","wrapper","patchClass","transitionClasses","patchStyle","isCssString","setStyle","currentDisplay","importantRE","prefixed","autoPrefix","prefixes","prefixCache","rawName","xlinkNS","patchAttr","isBoolean","patchDOMProp","needRemove","addEventListener","removeEventListener","patchEvent","prevValue","nextValue","invokers","existingInvoker","parseName","invoker","createInvoker","optionsModifierRE","cachedNow","getNow","initialValue","patchStopImmediatePropagation","originalStop","nativeOnRE","patchProp","shouldSetAsProp","getModelAssigner","onCompositionStart","onCompositionEnd","vModelText","castToNumber","lazy","domValue","rendererOptions","renderer","ensureRenderer","createApp","containerOrSelector","normalizeContainer","mount","isVue2","activePinia","setActivePinia","pinia","piniaSymbol","o","MutationType","createPinia","_p","toBeInstalled","noop","addSubscription","subscriptions","removeSubscription","idx","triggerSubscriptions","mergeReactiveObjects","patchToApply","subPatch","targetValue","skipHydrateSymbol","shouldHydrate","assign","isComputed","createOptionsStore","hot","initialState","store","localState","actions","getters","computedGetters","createSetupStore","newState","$state","$id","isOptionsStore","optionsForPlugin","$subscribeOptions","isListening","isSyncListening","actionSubscriptions","debuggerEvents","activeListener","$patch","partialStateOrMutator","subscriptionMutation","myListenerId","$reset","$dispose","wrapAction","action","afterCallbackList","onErrorCallbackList","after","onError","error","partialStore","stopWatcher","setupStore","actionValue","extender","defineStore","idOrOptions","setupOptions","isSetupStore","useStore","isBrowser","isESModule","applyToParams","params","newParams","TRAILING_SLASH_RE","removeTrailingSlash","parseURL","parseQuery","location","currentLocation","query","searchString","hash","hashPos","searchPos","resolveRelativePath","stringifyURL","stringifyQuery","stripBase","pathname","isSameRouteLocation","aLastIndex","bLastIndex","isSameRouteRecord","isSameRouteLocationParams","isSameRouteLocationParamsValue","isEquivalentArray","fromSegments","toSegments","position","toPosition","segment","NavigationType","NavigationDirection","normalizeBase","baseEl","BEFORE_HASH_RE","createHref","getElementPosition","offset","docRect","elRect","computeScrollPosition","scrollToPosition","scrollToOptions","positionEl","isIdSelector","getScrollKey","delta","scrollPositions","saveScrollPosition","scrollPosition","getSavedScrollPosition","scroll","createBaseLocation","createCurrentLocation","slicePos","pathFromHash","search","useHistoryListeners","historyState","replace","listeners","teardowns","pauseState","popStateHandler","fromState","listener","pauseListeners","listen","teardown","beforeUnloadListener","history","destroy","buildState","back","forward","replaced","computeScroll","useHistoryStateNavigation","changeLocation","hashIndex","url","push","currentState","createWebHistory","historyNavigation","historyListeners","go","triggerListeners","routerHistory","createWebHashHistory","isRouteLocation","route","isRouteName","START_LOCATION_NORMALIZED","NavigationFailureSymbol","NavigationFailureType","createRouterError","isNavigationFailure","BASE_PARAM_PATTERN","BASE_PATH_PARSER_OPTIONS","REGEX_CHARS_RE","tokensToParser","extraOptions","score","pattern","segmentScores","tokenIndex","token","subSegmentScore","re","regexp","subPattern","repeatable","optional","parse","stringify","avoidDuplicatedSlash","param","compareScoreArray","comparePathParserScore","aScore","bScore","isLastScoreNegative","ROOT_TOKEN","VALID_PARAM_RE","tokenizePath","crash","message","buffer","previousState","tokens","finalizeSegment","char","customRe","consumeBuffer","addCharToBuffer","createRouteRecordMatcher","record","parser","matcher","createRouterMatcher","routes","globalOptions","matchers","matcherMap","getRecordMatcher","addRoute","originalRecord","isRootAdd","mainNormalizedRecord","normalizeRouteRecord","normalizedRecords","aliases","alias","originalMatcher","normalizedRecord","parentPath","connectingSlash","isAliasRecord","removeRoute","insertMatcher","matcherRef","getRoutes","isRecordChildOf","paramsFromLocation","k","matched","parentMatcher","mergeMetaFields","normalizeRecordProps","propsObject","meta","defaults","partialOptions","HASH_RE","AMPERSAND_RE","SLASH_RE","EQUAL_RE","IM_RE","PLUS_RE","ENC_BRACKET_OPEN_RE","ENC_BRACKET_CLOSE_RE","ENC_CARET_RE","ENC_BACKTICK_RE","ENC_CURLY_OPEN_RE","ENC_PIPE_RE","ENC_CURLY_CLOSE_RE","ENC_SPACE_RE","commonEncode","encodeHash","encodeQueryValue","encodeQueryKey","encodePath","encodeParam","decode","searchParams","searchParam","eqPos","currentValue","normalizeQuery","normalizedQuery","matchedRouteKey","viewDepthKey","routerKey","routeLocationKey","routerViewLocationKey","useCallbacks","handlers","reset","guardToPromiseFn","guard","enterCallbackArray","reject","valid","guardReturn","guardCall","extractComponentsGuards","guardType","guards","rawComponent","isRouteComponent","componentPromise","resolvedComponent","useLink","router","currentRoute","activeRecordIndex","routeMatched","length","currentMatched","parentRecordPath","getOriginalPath","isActive","includesParams","isExactActive","navigate","guardEvent","RouterLinkImpl","elClass","getLinkClass","RouterLink","outer","inner","innerValue","outerValue","propClass","globalClass","defaultClass","RouterViewImpl","injectedRoute","routeToDisplay","injectedDepth","depth","initialDepth","matchedRoute","matchedRouteRef","viewRef","oldInstance","oldName","currentName","ViewComponent","routePropsOption","routeProps","slotContent","RouterView","createRouter","parseQuery$1","stringifyQuery$1","beforeGuards","beforeResolveGuards","afterGuards","pendingLocation","normalizeParams","paramValue","encodeParams","decodeParams","parentOrRoute","recordMatcher","routeMatcher","hasRoute","rawLocation","locationNormalized","href","matcherLocation","targetParams","fullPath","locationAsObject","checkCanceledNavigation","pushWithRedirect","handleRedirectRecord","lastMatched","newTargetLocation","redirect","redirectedFrom","targetLocation","force","shouldRedirect","toLocation","failure","handleScroll","markAsReady","triggerError","finalizeNavigation","checkCanceledNavigationAndReject","leavingRecords","updatingRecords","enteringRecords","extractChangingRecords","canceledNavigationCheck","runGuardQueue","beforeEnter","triggerAfterEach","isPush","isFirstNavigation","removeHistoryListener","setupListeners","_from","info","readyHandlers","errorHandlers","ready","isReady","scrollBehavior","started","installedApps","reactiveRoute","unmountApp","promise","recordFrom","recordTo","_imports_0","_imports_1","_hoisted_1","_hoisted_2","_createElementVNode","_createElementBlock","_createTextVNode","_hoisted_3","checkType","types","resolveProperties","accum","defineProperties","HEX","isError","code","isCallException","makeError","shortMessage","details","assert","assertArgument","assertArgumentCount","count","expectedCount","_normalizeForms","form","expected","assertNormalize","assertPrivate","givenGuard","className","operation","_getBytes","copy","getBytes","getBytesCopy","isHexString","isBytesLike","HexCharacters","hexlify","bytes","concat","datas","d","dataLength","dataSlice","zeroPad","left","zeroPadValue","zeroPadBytes","BN_0","BN_1","maxValue","fromTwos","_value","_width","getUint","width","getNumber","mask","toTwos","getBigInt","limit","_bits","bits","Nibbles","toBigInt","toBeHex","toBeArray","hex","toQuantity","Alphabet","BN_58","encodeBase58","decodeBase64","textData","encodeBase64","_data","EventPayload","emitter","filter","__publicField","__privateAdd","__privateSet","_listener","__privateGet","errorFunc","reason","output","badCodepoint","ignoreFunc","replaceFunc","Utf8ErrorFuncs","getUtf8CodePoints","_bytes","extraLength","overlongMask","nextChar","toUtf8Bytes","pair","_toUtf8String","codePoints","codePoint","toUtf8String","createGetUrl","getUrl","req","_signal","protocol","signal","controller","init","resp","headers","respBody","body","MAX_ATTEMPTS","SLOT_INTERVAL","defaultGetUrlFunc","reData","reIpfs","locked","dataGatewayFunc","FetchResponse","unpercent","FetchRequest","getIpfsGatewayFunc","baseUrl","gatewayIpfs","Gateways","fetchSignals","FetchCancelSignal","request","_listeners","_cancelled","checkSignal","_FetchRequest","_send","_url","_allowInsecure","_gzip","_headers","_method","_timeout","_throttle","_getUrlFunc","_body","_bodyType","_creds","username","password","timeout","_preflight","preflight","_process","process","_retry","retry","__privateMethod","getTime","clone","scheme","func","attempt","expires","delay","_request","_response","wait","response","retryAfter","_FetchResponse","statusCode","statusMessage","_statusCode","_statusMessage","_error","stall","all","hexlifyByte","unarrayifyInteger","_decodeChildren","childOffset","decoded","_decode","checkOffset","lengthLength","decodeRlp","arrayifyInteger","_encode","payload","nibbles","encodeRlp","WordSize","Padding","passProperties","_guard","throwError","wrapped","_Result","items","names","nameCounts","_names","Result","getValue","Coder","localName","dynamic","Writer","_dataLength","writer","_writeData","paddingOffset","_Reader","allowLoose","maxInflation","_bytesRead","_parent","_maxInflation","_offset","reader","loose","_peekBytes","_incrementBytesRead","Reader","alignedLength","lengths","exists","checkFinished","out","min","crypto","u8a","u32","createView","rotr","word","shift","isLE","utf8ToBytes","toBytes","concatBytes","arrays","sum","pad","Hash","wrapConstructor","hashCons","hashC","msg","randomBytes","bytesLength","HMAC","assertHash","blockLen","buf","assertExists","assertBytes","finished","destroyed","outputLen","oHash","iHash","hmac","setBigUint64","view","byteOffset","_32n","_u32_max","wh","wl","SHA2","padOffset","pos","take","dataView","oview","outLen","Chi","Maj","SHA256_K","IV","SHA256_W","SHA256","A","B","C","D","E","F","G","H","W15","W2","s0","sigma1","T1","T2","sha256","U32_MASK64","fromBig","le","split","lst","Ah","Al","rotlSH","rotlSL","rotlBH","rotlBL","SHA3_PI","SHA3_ROTL","_SHA3_IOTA","_0n","_1n","_2n","_7n","_256n","_0x71n","round","R","x","y","SHA3_IOTA_H","SHA3_IOTA_L","rotlH","rotlL","keccakP","rounds","idx1","idx0","B0","B1","Th","Tl","curH","curL","PI","Keccak","suffix","enableXOF","bufferOut","gen","keccak_256","_keccak256","__keccak256","keccak256","hexes","bytesToHex","numberToHexUnpadded","num","hexToNumber","hexToBytes","array","hexByte","byte","bytesToNumberBE","bytesToNumberLE","numberToBytesBE","numberToBytesLE","numberToVarBytesBE","ensureBytes","title","expectedLength","equalBytes","b1","b2","bitLen","bitGet","bitSet","bitMask","u8n","u8fr","createHmacDrbg","hashLen","qByteLen","hmacFn","reseed","seed","sl","pred","validatorFns","validateObject","validators","optValidators","checkField","fieldName","isOptional","checkVal","_3n","_4n","_5n","_8n","mod","pow","power","modulo","pow2","invert","q","tonelliShanks","P","legendreC","Q","S","Z","p1div4","Fp","Q1div2","g","t2","ge","FpSqrt","nv","FIELD_FIELDS","validateField","field","initial","opts","FpPow","f","FpInvertBatch","nums","lastMultiplied","acc","inverted","nLength","nBitLength","_nBitLength","nByteLength","Field","ORDER","redef","BITS","BYTES","sqrtP","lhs","rhs","getFieldBytesLength","fieldOrder","bitLength","getMinHashLength","mapHashToField","fieldLen","minLen","reduced","wNAF","constTimeNegate","condition","neg","W","windows","windowSize","elm","points","window","precomputes","maxNumber","shiftBy","wbits","offset1","offset2","cond1","cond2","precomputesMap","transform","validateBasic","curve","validatePointOpts","ut.validateObject","endo","b2n","h2b","ut","DER","sBytes","rBytesLeft","sig","slice","shl","rhl","rl","weierstrassPoints","CURVE","_c","point","_isCompressed","ut.concatBytes","fromBytes","tail","weierstrassEquation","x2","x3","isWithinCurveOrder","assertGE","normPrivateKeyToScalar","ut.bytesToHex","ut.bytesToNumberBE","wrapPrivateKey","mod.mod","pointPrecomputes","assertPrjPoint","other","Point","px","py","pz","is0","toInv","privateKey","right","X1","Y1","Z1","X2","Y2","Z2","U1","U2","b3","X3","Y3","Z3","t0","t1","t3","t4","t5","wnaf","I","k1p","k2p","k1","k2","k1neg","k2neg","scalar","fake","f1p","f2p","mul","iz","z","ax","ay","zz","cofactor","isTorsionFree","clearCofactor","isCompressed","validateOpts","weierstrass","curveDef","CURVE_ORDER","compressedLen","uncompressedLen","isValidFieldElement","modN","invN","mod.invert","cat","head","y2","isYOdd","numToNByteStr","ut.numberToBytesBE","isBiggerThanHalfOrder","HALF","normalizeS","slcNum","Signature","recovery","msgHash","rec","bits2int_modN","radj","prefix","ir","u1","u2","ut.hexToBytes","utils","mod.getMinHashLength","mod.mapHashToField","getPublicKey","isProbPub","getSharedSecret","privateA","publicB","bits2int","ORDER_MASK","ut.bitMask","int2octets","prepSig","defaultSigOpts","ent","lowS","prehash","h1int","seedArgs","k2sig","kBytes","ik","normS","defaultVerOpts","sign","privKey","ut.createHmacDrbg","verify","signature","publicKey","sg","_sig","derError","getHash","msgs","createCurve","defHash","create","secp256k1P","secp256k1N","divNearest","sqrtMod","_6n","_11n","_22n","_23n","_44n","_88n","b6","b9","b11","b22","b44","b88","b176","b220","b223","secp256k1","a1","a2","POW_2_128","ZeroAddress","ZeroHash","BN_2","BN_27","BN_28","BN_35","toUint256","_Signature","_r","_s","_v","_networkV","yParityAndS","networkV","bv","chainId","assertError","yParity","_SigningKey","_privateKey","digest","pubKey","compressed","pub","secpSig","p0","p1","pub0","pub1","SigningKey","BN_36","getChecksumAddress","address","chars","expanded","hashed","ibanLookup","safeDigits","ibanChecksum","block","checksum","Base36","fromBase36","getAddress","getCreateAddress","tx","nonceHex","isAddressable","checkAddress","resolveAddress","resolver","_gaurd","signed","Typed","_typedSymbol","_Typed","gaurd","_options","AddressCoder","AnonymousCoder","coder","pack","coders","arrayValues","unique","staticWriter","dynamicWriter","updateFuncs","dynamicOffset","updateFunc","baseOffset","unpack","baseReader","offsetReader","ArrayCoder","defaultChild","BooleanCoder","DynamicBytesCoder","BytesCoder","FixedBytesCoder","Empty","NullCoder","BN_MAX_UINT256","NumberCoder","maxUintValue","bounds","StringCoder","TupleCoder","uniqueNames","COMPRESSED$1","FENCED","NSM_MAX","decode_arithmetic","u16","symbol_count","total","skip","pos_payload","read_width","read_buffer","read_bit","N","FULL","QRTR","MASK","symbols","low","range","mid","read_payload","read_compressed_payload","unsafe_atob","lookup","carry","read_deltas","read_sorted","read_sorted_arrays","read_array_while","read_mapped","w","read_linear_table","read_replacement_table","read_transposed","dx","dy","vN","ys","j_dy","read_trie","sorted","cps","expand","saved","br","cp","hex_cp","quote_cp","explode_cp","str_from_cps","compare_arrays","COMPRESSED","S0","L0","V0","T0","L_COUNT","V_COUNT","T_COUNT","N_COUNT","S_COUNT","S1","L1","V1","unpack_cc","packed","unpack_cp","SHIFTED_RANK","EXCLUSIONS","DECOMP","RECOMP","init$1","bucket","is_hangul","compose_pair","recomp","decomposed","check_order","cc","s_index","l_index","v_index","t_index","mapped","prev_cc","composed_from_decomposed","stack","prev_cp","composed","nfd","nfc","HYPHEN","STOP_CH","FE0F","UNIQUE_PH","Array_from","group_has_cp","Emoji","MAPPED","IGNORED","CM","NSM","ESCAPE","GROUPS","WHOLE_VALID","WHOLE_MAP","VALID","EMOJI_LIST","EMOJI_ROOT","read_sorted_array","read_sorted_set","chunks","unrestricted","read_chunked","M","wholes","recs","V","gs","union","complement","multi","add_to_union","quoted_cp","should_escape","bidi_qq","safe_str_from_cps","check_label_extension","check_leading_underscore","check_fenced","error_placement","quoter","is_combining_mark","ens_normalize","flatten","filter_fe0f","nf","ef","label","input","tokens_from_str","token_count","norm","determine_group","check_group","check_whole","group","maker","shared","whole","groups","error_group_member","error_disallowed","quoted","gg","where","emoji","consume_emoji_reversed","eaten","Zeros","checkComponent","ensNameSplit","ensNormalize","comps","namehash","dnsEncode","accessSetify","addr","storageKeys","storageKey","accessListify","computeAddress","pubkey","recoverAddress","BN_MAX_UINT","handleAddress","handleAccessList","handleNumber","handleUint","formatNumber","formatAccessList","_parseLegacy","fields","_serializeLegacy","legacy","_parseEipSignature","_parseEip1559","maxPriorityFeePerGas","maxFeePerGas","_serializeEip1559","_parseEip2930","_serializeEip2930","_Transaction","_type","_to","_nonce","_gasLimit","_gasPrice","_maxPriorityFeePerGas","_maxFeePerGas","_chainId","_accessList","hasGasPrice","hasFee","hasAccessList","Transaction","padding","BN__1","hexPadRight","hexTrue","hexFalse","domainFieldTypes","domainFieldNames","checkString","domainChecks","getBaseEncoder","boundsUpper","boundsLower","encodeType","_TypedDataEncoder","_types","_fullTypes","_encoderCache","links","parents","subtypes","baseType","primaryTypes","checkCircular","found","subtype","st","encoder","_getEncoder","domain","domainFields","resolveName","ensCache","domainValues","domainTypes","typesWithDomain","TypedDataEncoder","subEncoder","encodedType","setify","_kwVisibDeploy","KwVisibDeploy","_kwVisib","KwVisib","_kwTypes","KwTypes","_kwModifiers","KwModifiers","_kwOther","_keywords","Keywords","SimpleTokens","regexWhitespacePrefix","regexNumberPrefix","regexIdPrefix","regexId","regexType","_TokenString","_tokens","top","_subTokenString","TokenString","lex","brackets","commas","allowSingle","included","consumeName","keyword","consumeKeywords","keywords","consumeMutability","consumeParams","allowIndexed","ParamType","consumeGas","consumeEoi","regexArrayType","verifyBasicType","internal","ParamTypeInternal","ErrorFragmentInternal","EventFragmentInternal","ConstructorFragmentInternal","FallbackFragmentInternal","FunctionFragmentInternal","StructFragmentInternal","_ParamType","indexed","arrayLength","arrayChildren","format","_this","promises","_walkAsync","bracket","arrayMatch","setValue","childType","inputs","ConstructorFragment","ErrorFragment","EventFragment","FallbackFragment","FunctionFragment","StructFragment","NamedFragment","joinParams","anonymous","payable","gas","stateMutability","errorObj","topIsValid","mutability","outputs","PanicReasons","paramTypeBytes","paramTypeNumber","defaultCoder","defaultMaxInflation","getBuiltinCallException","abiCoder","invocation","revert","transaction","_AbiCoder","_getCoder","AbiCoder","LogDescription","fragment","topic","TransactionDescription","ErrorDescription","Indexed","BuiltinErrors","_Interface","fragments","abi","_functions","_errors","_events","frags","receive","_abiCoder","minimal","_getFunction","_getEvent","matching","matchStr","customPrefix","parsed","topics","encodeTopic","dataTypes","dataValues","eventTopic","nonIndexed","resultIndexed","resultNonIndexed","nonIndexedIndex","indexedIndex","log","hexData","Interface","forceUnique","lastValue","valueLength","allowOptions","lastArg","toJson","FeeData","gasPrice","copyRequest","bigIntKeys","numberKeys","Block","provider","_transactions","TransactionResponse","txs","baseFeePerGas","difficulty","gasLimit","gasUsed","indexOrHash","createOrphanedBlockFilter","Log","receipt","createRemovedLogFilter","TransactionReceipt","_logs","createRemovedTransactionFilter","createReorderedTransactionFilter","_TransactionResponse","_startBlock","blockNumber","_confirms","confirms","startBlock","nextScan","stopScanning","checkReplacement","nonce","mined","checkReceipt","cancellers","cancel","timer","txListener","replaceListener","EventLog","iface","UndecodedEventLog","ContractTransactionReceipt","_iface","ContractTransactionResponse","ContractUnknownEventPayload","contract","ContractEventPayload","_log","canCall","canEstimate","canResolve","canSend","getResolver","PreparedTopicFilter","runner","getRunner","_filter","resolvedArgs","feature","getProvider","copyOverrides","_overrides","overrides","resolveArgs","_runner","buildWrappedFallback","populateTransaction","noValue","noData","staticCall","send","estimateGas","buildWrappedMethod","getFragment","staticCallResult","buildWrappedEvent","internalValues","setInternal","getInternal","isDeferred","getSubInfo","topicHashify","hasSub","subs","getSub","sub","foundFragment","_foundFragment","emit","starting","lastEmit","_emit","payloadFunc","passArgs","once","resultPromise","_BaseContract","_deployTx","addrPromise","deployTx","filters","checkCode","fromBlock","toBlock","stop","CustomContract","BaseContract","_ContractBase","Contract","ContractFactory","bytecode","sentTx","getIpfsLink","MulticoinProviderPlugin","proivder","coinType","matcherIpfs","_EnsResolver","_fetch","_supports2544","_resolver","ethCoinType","coinPlugin","ipfs","swarm","linkage","avatar","tokenId","tokenOwner","balance","metadataUrl","metadata","imageUrl","network","ensPlugin","_getResolver","EnsResolver","funcName","ensAddr","allowNull","nullValue","arrayOf","altNames","srcKey","altKey","formatBoolean","formatData","formatHash","_formatLog","formatLog","_formatBlock","formatBlock","formatTransactionResponse","_formatReceiptLog","formatReceiptLog","_formatTransactionReceipt","formatTransactionReceipt","EnsAddress","NetworkPlugin","GasCostPlugin","effectiveBlock","costs","nullish","EnsPlugin","targetNetwork","FetchUrlFeeDataNetworkPlugin","processFunc","_processFunc","Networks","Network","_name","_plugins","basename","accessList","injectCommonNetworks","networkFunc","custom","nameOrChainId","_Network$1","parseUnits","decimals","frac","getGasStationPlugin","fetchFeeData","_feeData","registerEth","PollingBlockSubscriber","_poll","_provider","_poller","_interval","_blockNumber","dropWhilePaused","OnBlockSubscriber","_running","PollingBlockTagSubscriber","_tag","_lastBlock","PollingOrphanSubscriber","PollingTransactionSubscriber","_hash","PollingEventSubscriber","logs","MAX_CCIP_REDIRECTS","getTag","UnmanagedSubscriber","concisify","getSubscription","_event","addresses","addAddress","defaultOptions","AbstractProvider","_network","_perform","_call","_checkNetwork","_getAccountValue","_getBlock","_hasSub","_getSub","_anyNetwork","_networkPromise","_lastBlockNumber","_performCache","_subs","_pausedState","_destroyed","_nextTimer","_timers","_disableCcipRead","calldata","urls","sender","errorMessages","errorMessage","blockTag","blockHash","_address","detectNetwork","networkPromise","actual","getFeeDataFunc","_block","priorityFee","feeData","_tx","_position","signedTx","prefetchTxs","timerId","_func","__privateWrapper","subscriber","oldSub","newSub","pause","perform","txSender","ccipArgs","parseOffchainLookup","ccipResult","encodeBytes","_blockTag","includeTransactions","emitArgs","subscription","_parseString","_parseBytes","numPad","padded","bytesPad","empty","byteCount","zeros","urlsOffset","urlsLength","urlsData","extraData","checkProvider","signer","populate","pop","AbstractSigner","hasEip1559","txObj","FilterIdSubscriber","_filterIdPromise","_hault","_teardown","filterId","filterIdPromise","FilterIdEventSubscriber","results","FilterIdPendingSubscriber","Primitive","deepCopy","duration","getLowerCase","isPollable","JsonRpcSigner","hexTx","timeouts","invalids","checkTx","_message","populated","JsonRpcApiProvider","_nextId","_payloads","_drainTimer","_pendingDetectNetwork","_resolve","_notReady","staticNetwork","_scheduleDrain","dstKey","spelunkData","spelunkMessage","unsupported","accountsPromise","accounts","account","stallTime","payloads","batch","JsonRpcApiPollingProvider","_pollingInterval","JsonRpcProvider","_connect","_spelunkMessage","_abi","_bytecode","isSuperArgs","xs","EthereumUtils__factory","ERC721__factory","name_","symbol_","NftReward__factory","symbol","OasisReward__factory","Quiz__factory","useQuiz","eth","useEthereumStore","useNFT","addrNFT","quiz","isReward","HomeView","__vitePreload","App"],"sources":["../../vite/modulepreload-polyfill","../../../node_modules/.pnpm/@vue+shared@3.2.45/node_modules/@vue/shared/dist/shared.esm-bundler.js","../../../node_modules/.pnpm/@vue+reactivity@3.2.45/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js","../../../node_modules/.pnpm/@vue+runtime-core@3.2.45/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js","../../../node_modules/.pnpm/@vue+runtime-dom@3.2.45/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js","../../../node_modules/.pnpm/vue-demi@0.14.7_vue@3.2.45/node_modules/vue-demi/lib/index.mjs","../../../node_modules/.pnpm/pinia@2.0.28_typescript@4.7.4_vue@3.2.45/node_modules/pinia/dist/pinia.mjs","../../../node_modules/.pnpm/vue-router@4.1.6_vue@3.2.45/node_modules/vue-router/dist/vue-router.mjs","../../src/assets/logo.svg","../../src/assets/images/upm-logo.png","../../src/components/AppHeader.vue","../../src/components/AppFooter.vue","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/_version.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/utils/properties.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/utils/errors.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/utils/data.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/utils/maths.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/utils/base58.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/utils/base64-browser.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/utils/events.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/utils/utf8.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/utils/geturl-browser.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/utils/fetch.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/utils/rlp-decode.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/utils/rlp-encode.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/abi/coders/abstract-coder.js","../../../node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js","../../../node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/crypto.js","../../../node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js","../../../node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/hmac.js","../../../node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_sha2.js","../../../node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha256.js","../../../node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js","../../../node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/crypto/keccak.js","../../../node_modules/.pnpm/@noble+curves@1.2.0/node_modules/@noble/curves/esm/abstract/utils.js","../../../node_modules/.pnpm/@noble+curves@1.2.0/node_modules/@noble/curves/esm/abstract/modular.js","../../../node_modules/.pnpm/@noble+curves@1.2.0/node_modules/@noble/curves/esm/abstract/curve.js","../../../node_modules/.pnpm/@noble+curves@1.2.0/node_modules/@noble/curves/esm/abstract/weierstrass.js","../../../node_modules/.pnpm/@noble+curves@1.2.0/node_modules/@noble/curves/esm/_shortw_utils.js","../../../node_modules/.pnpm/@noble+curves@1.2.0/node_modules/@noble/curves/esm/secp256k1.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/constants/addresses.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/constants/hashes.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/crypto/signature.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/crypto/signing-key.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/address/address.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/address/contract-address.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/address/checks.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/abi/typed.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/abi/coders/address.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/abi/coders/anonymous.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/abi/coders/array.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/abi/coders/boolean.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/abi/coders/bytes.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/abi/coders/fixed-bytes.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/abi/coders/null.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/abi/coders/number.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/abi/coders/string.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/abi/coders/tuple.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/hash/id.js","../../../node_modules/.pnpm/@adraffy+ens-normalize@1.10.0/node_modules/@adraffy/ens-normalize/dist/index.mjs","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/hash/namehash.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/transaction/accesslist.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/transaction/address.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/transaction/transaction.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/hash/typed-data.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/abi/fragments.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/abi/abi-coder.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/abi/interface.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/providers/provider.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/contract/wrappers.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/contract/contract.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/contract/factory.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/providers/ens-resolver.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/providers/format.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/providers/plugins-network.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/providers/network.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/providers/subscriber-polling.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/providers/abstract-provider.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/providers/abstract-signer.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/providers/subscriber-filterid.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/providers/provider-jsonrpc.js","../../../backend/lib/esm/typechain-types/factories/@oasisprotocol/sapphire-contracts/contracts/EthereumUtils__factory.js","../../../backend/lib/esm/typechain-types/factories/@openzeppelin/contracts/token/ERC721/ERC721__factory.js","../../../backend/lib/esm/typechain-types/factories/contracts/NftReward__factory.js","../../../backend/lib/esm/typechain-types/factories/contracts/OasisReward__factory.js","../../../backend/lib/esm/typechain-types/factories/contracts/Quiz__factory.js","../../src/stores/ethereum.ts","../../src/contracts.ts","../../src/views/HomeView.vue","../../src/router.ts","../../src/main.ts"],"sourcesContent":["__VITE_IS_MODERN__&&(function polyfill() {\n const relList = document.createElement('link').relList;\n if (relList && relList.supports && relList.supports('modulepreload')) {\n return;\n }\n for (const link of document.querySelectorAll('link[rel=\"modulepreload\"]')) {\n processPreload(link);\n }\n new MutationObserver((mutations) => {\n for (const mutation of mutations) {\n if (mutation.type !== 'childList') {\n continue;\n }\n for (const node of mutation.addedNodes) {\n if (node.tagName === 'LINK' && node.rel === 'modulepreload')\n processPreload(node);\n }\n }\n }).observe(document, { childList: true, subtree: true });\n function getFetchOpts(script) {\n const fetchOpts = {};\n if (script.integrity)\n fetchOpts.integrity = script.integrity;\n if (script.referrerpolicy)\n fetchOpts.referrerPolicy = script.referrerpolicy;\n if (script.crossorigin === 'use-credentials')\n fetchOpts.credentials = 'include';\n else if (script.crossorigin === 'anonymous')\n fetchOpts.credentials = 'omit';\n else\n fetchOpts.credentials = 'same-origin';\n return fetchOpts;\n }\n function processPreload(link) {\n if (link.ep)\n // ep marker = processed\n return;\n link.ep = true;\n // prepopulate the load record\n const fetchOpts = getFetchOpts(link);\n fetch(link.href, fetchOpts);\n }\n}());","/**\n * Make a map and return a function for checking if a key\n * is in that map.\n * IMPORTANT: all calls of this function must be prefixed with\n * \\/\\*#\\_\\_PURE\\_\\_\\*\\/\n * So that rollup can tree-shake them if necessary.\n */\nfunction makeMap(str, expectsLowerCase) {\n const map = Object.create(null);\n const list = str.split(',');\n for (let i = 0; i < list.length; i++) {\n map[list[i]] = true;\n }\n return expectsLowerCase ? val => !!map[val.toLowerCase()] : val => !!map[val];\n}\n\n/**\n * dev only flag -> name mapping\n */\nconst PatchFlagNames = {\n [1 /* PatchFlags.TEXT */]: `TEXT`,\n [2 /* PatchFlags.CLASS */]: `CLASS`,\n [4 /* PatchFlags.STYLE */]: `STYLE`,\n [8 /* PatchFlags.PROPS */]: `PROPS`,\n [16 /* PatchFlags.FULL_PROPS */]: `FULL_PROPS`,\n [32 /* PatchFlags.HYDRATE_EVENTS */]: `HYDRATE_EVENTS`,\n [64 /* PatchFlags.STABLE_FRAGMENT */]: `STABLE_FRAGMENT`,\n [128 /* PatchFlags.KEYED_FRAGMENT */]: `KEYED_FRAGMENT`,\n [256 /* PatchFlags.UNKEYED_FRAGMENT */]: `UNKEYED_FRAGMENT`,\n [512 /* PatchFlags.NEED_PATCH */]: `NEED_PATCH`,\n [1024 /* PatchFlags.DYNAMIC_SLOTS */]: `DYNAMIC_SLOTS`,\n [2048 /* PatchFlags.DEV_ROOT_FRAGMENT */]: `DEV_ROOT_FRAGMENT`,\n [-1 /* PatchFlags.HOISTED */]: `HOISTED`,\n [-2 /* PatchFlags.BAIL */]: `BAIL`\n};\n\n/**\n * Dev only\n */\nconst slotFlagsText = {\n [1 /* SlotFlags.STABLE */]: 'STABLE',\n [2 /* SlotFlags.DYNAMIC */]: 'DYNAMIC',\n [3 /* SlotFlags.FORWARDED */]: 'FORWARDED'\n};\n\nconst GLOBALS_WHITE_LISTED = 'Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,' +\n 'decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,' +\n 'Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt';\nconst isGloballyWhitelisted = /*#__PURE__*/ makeMap(GLOBALS_WHITE_LISTED);\n\nconst range = 2;\nfunction generateCodeFrame(source, start = 0, end = source.length) {\n // Split the content into individual lines but capture the newline sequence\n // that separated each line. This is important because the actual sequence is\n // needed to properly take into account the full line length for offset\n // comparison\n let lines = source.split(/(\\r?\\n)/);\n // Separate the lines and newline sequences into separate arrays for easier referencing\n const newlineSequences = lines.filter((_, idx) => idx % 2 === 1);\n lines = lines.filter((_, idx) => idx % 2 === 0);\n let count = 0;\n const res = [];\n for (let i = 0; i < lines.length; i++) {\n count +=\n lines[i].length +\n ((newlineSequences[i] && newlineSequences[i].length) || 0);\n if (count >= start) {\n for (let j = i - range; j <= i + range || end > count; j++) {\n if (j < 0 || j >= lines.length)\n continue;\n const line = j + 1;\n res.push(`${line}${' '.repeat(Math.max(3 - String(line).length, 0))}| ${lines[j]}`);\n const lineLength = lines[j].length;\n const newLineSeqLength = (newlineSequences[j] && newlineSequences[j].length) || 0;\n if (j === i) {\n // push underline\n const pad = start - (count - (lineLength + newLineSeqLength));\n const length = Math.max(1, end > count ? lineLength - pad : end - start);\n res.push(` | ` + ' '.repeat(pad) + '^'.repeat(length));\n }\n else if (j > i) {\n if (end > count) {\n const length = Math.max(Math.min(end - count, lineLength), 1);\n res.push(` | ` + '^'.repeat(length));\n }\n count += lineLength + newLineSeqLength;\n }\n }\n break;\n }\n }\n return res.join('\\n');\n}\n\nfunction normalizeStyle(value) {\n if (isArray(value)) {\n const res = {};\n for (let i = 0; i < value.length; i++) {\n const item = value[i];\n const normalized = isString(item)\n ? parseStringStyle(item)\n : normalizeStyle(item);\n if (normalized) {\n for (const key in normalized) {\n res[key] = normalized[key];\n }\n }\n }\n return res;\n }\n else if (isString(value)) {\n return value;\n }\n else if (isObject(value)) {\n return value;\n }\n}\nconst listDelimiterRE = /;(?![^(]*\\))/g;\nconst propertyDelimiterRE = /:([^]+)/;\nconst styleCommentRE = /\\/\\*.*?\\*\\//gs;\nfunction parseStringStyle(cssText) {\n const ret = {};\n cssText\n .replace(styleCommentRE, '')\n .split(listDelimiterRE)\n .forEach(item => {\n if (item) {\n const tmp = item.split(propertyDelimiterRE);\n tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim());\n }\n });\n return ret;\n}\nfunction stringifyStyle(styles) {\n let ret = '';\n if (!styles || isString(styles)) {\n return ret;\n }\n for (const key in styles) {\n const value = styles[key];\n const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key);\n if (isString(value) || typeof value === 'number') {\n // only render valid values\n ret += `${normalizedKey}:${value};`;\n }\n }\n return ret;\n}\nfunction normalizeClass(value) {\n let res = '';\n if (isString(value)) {\n res = value;\n }\n else if (isArray(value)) {\n for (let i = 0; i < value.length; i++) {\n const normalized = normalizeClass(value[i]);\n if (normalized) {\n res += normalized + ' ';\n }\n }\n }\n else if (isObject(value)) {\n for (const name in value) {\n if (value[name]) {\n res += name + ' ';\n }\n }\n }\n return res.trim();\n}\nfunction normalizeProps(props) {\n if (!props)\n return null;\n let { class: klass, style } = props;\n if (klass && !isString(klass)) {\n props.class = normalizeClass(klass);\n }\n if (style) {\n props.style = normalizeStyle(style);\n }\n return props;\n}\n\n// These tag configs are shared between compiler-dom and runtime-dom, so they\n// https://developer.mozilla.org/en-US/docs/Web/HTML/Element\nconst HTML_TAGS = 'html,body,base,head,link,meta,style,title,address,article,aside,footer,' +\n 'header,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,' +\n 'figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,' +\n 'data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,' +\n 'time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,' +\n 'canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,' +\n 'th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,' +\n 'option,output,progress,select,textarea,details,dialog,menu,' +\n 'summary,template,blockquote,iframe,tfoot';\n// https://developer.mozilla.org/en-US/docs/Web/SVG/Element\nconst SVG_TAGS = 'svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,' +\n 'defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,' +\n 'feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,' +\n 'feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,' +\n 'feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,' +\n 'fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,' +\n 'foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,' +\n 'mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,' +\n 'polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,' +\n 'text,textPath,title,tspan,unknown,use,view';\nconst VOID_TAGS = 'area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr';\n/**\n * Compiler only.\n * Do NOT use in runtime code paths unless behind `(process.env.NODE_ENV !== 'production')` flag.\n */\nconst isHTMLTag = /*#__PURE__*/ makeMap(HTML_TAGS);\n/**\n * Compiler only.\n * Do NOT use in runtime code paths unless behind `(process.env.NODE_ENV !== 'production')` flag.\n */\nconst isSVGTag = /*#__PURE__*/ makeMap(SVG_TAGS);\n/**\n * Compiler only.\n * Do NOT use in runtime code paths unless behind `(process.env.NODE_ENV !== 'production')` flag.\n */\nconst isVoidTag = /*#__PURE__*/ makeMap(VOID_TAGS);\n\n/**\n * On the client we only need to offer special cases for boolean attributes that\n * have different names from their corresponding dom properties:\n * - itemscope -> N/A\n * - allowfullscreen -> allowFullscreen\n * - formnovalidate -> formNoValidate\n * - ismap -> isMap\n * - nomodule -> noModule\n * - novalidate -> noValidate\n * - readonly -> readOnly\n */\nconst specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;\nconst isSpecialBooleanAttr = /*#__PURE__*/ makeMap(specialBooleanAttrs);\n/**\n * The full list is needed during SSR to produce the correct initial markup.\n */\nconst isBooleanAttr = /*#__PURE__*/ makeMap(specialBooleanAttrs +\n `,async,autofocus,autoplay,controls,default,defer,disabled,hidden,` +\n `loop,open,required,reversed,scoped,seamless,` +\n `checked,muted,multiple,selected`);\n/**\n * Boolean attributes should be included if the value is truthy or ''.\n * e.g. `