@dcl/account-site 6.6.0 → 6.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{CoinbaseSDKConnection-CZn10zuo.js → CoinbaseSDKConnection-BXH9O0nE.js} +1 -1
- package/assets/{ConstantsUtil-CCWoPq6v.js → ConstantsUtil-BBWopuyF.js} +1 -1
- package/assets/{ExchangeController-DAvkG56a.js → ExchangeController-CA0zj_3w.js} +1 -1
- package/assets/{HelpersUtil-UXuUdUo1.js → HelpersUtil-DSbuW6K9.js} +1 -1
- package/assets/{InAppWalletConnectUI-ja-gHAVb.js → InAppWalletConnectUI-4CWClaVJ.js} +1 -1
- package/assets/{NetworkUtil-Dyezb5_Z.js → NetworkUtil-Ci2WRYQ5.js} +1 -1
- package/assets/{QRCodeRenderer-DVWfONfS.js → QRCodeRenderer-BcVfSFm_.js} +1 -1
- package/assets/{SwapController-B9nvNG09.js → SwapController-Czs5wFSm.js} +1 -1
- package/assets/{ThirdwebWalletManager-8fp4vDZ-.js → ThirdwebWalletManager-_8PV4raS.js} +14 -14
- package/assets/{biconomy-DsiBpaqb.js → biconomy-BthTiVNA.js} +1 -1
- package/assets/{biconomy-CAg5-Rne.js → biconomy-Ct9DAkvL.js} +1 -1
- package/assets/{ccip-CvLc3NhE.js → ccip-C-GSKBZ0.js} +1 -1
- package/assets/{ccip-BOSG5Xf7.js → ccip-COdWpT3c.js} +1 -1
- package/assets/{ccip-Omot5-KO.js → ccip-PybIhCr_.js} +1 -1
- package/assets/{chains-hQBCRSBK.js → chains-DU-Pa0Wz.js} +1 -1
- package/assets/{common-C1bFpXXr.js → common-DttAkYAP.js} +1 -1
- package/assets/{common-BP_lAyVn.js → common-FBNyPNTr.js} +1 -1
- package/assets/concat-hex-DeWBGZEs.js +1 -0
- package/assets/{controller-7UvIet0s.js → controller-CYBQ4arf.js} +2 -2
- package/assets/{controller-BbSNXeiw.js → controller-cVVmP7jI.js} +2 -2
- package/assets/{data-capture-CDbYPi0B.js → data-capture-BxMZh5-c.js} +1 -1
- package/assets/{decimals-jrUfo404.js → decimals-C88RWTdk.js} +1 -1
- package/assets/decimals-CDYEp2UZ.js +1 -0
- package/assets/{detectExtension-B-qw64Pc.js → detectExtension-C1-4KxEP.js} +1 -1
- package/assets/{detectExtension-BHy0tx26.js → detectExtension-DaHwTBEl.js} +1 -1
- package/assets/{email-CBQ_fEcd.js → email-CykYjBAl.js} +1 -1
- package/assets/{embedded-wallet-BpNjQ35t.js → embedded-wallet-uXcj1MHn.js} +1 -1
- package/assets/{engine-Bxq9XExo.js → engine--65dr3zr.js} +1 -1
- package/assets/{engine-DBZbir_a.js → engine-CrmGAvB-.js} +1 -1
- package/assets/{estimate-l1-fee-0EMQlb1T.js → estimate-l1-fee-BXqjzhsB.js} +1 -1
- package/assets/{estimate-l1-fee-gKGPhwem.js → estimate-l1-fee-C8QcwjpU.js} +1 -1
- package/assets/eth_estimateGas-BLq5fjmK.js +1 -0
- package/assets/eth_estimateGas-CxVJfDAv.js +1 -0
- package/assets/{eth_getStorageAt-BFNcSJRC.js → eth_getStorageAt-BdHAJUde.js} +1 -1
- package/assets/eth_getTransactionCount-BRhOgzit.js +1 -0
- package/assets/{eth_getTransactionCount-Dcc1nhjw.js → eth_getTransactionCount-uA-BuCYb.js} +1 -1
- package/assets/{ethereum-CWr8QmFu.js → ethereum-G9jle5Re.js} +1 -1
- package/assets/{extractIPFS-BsYIuiLm.js → extractIPFS-CO52kZTe.js} +1 -1
- package/assets/{extractIPFS-Ch4Gc35N.js → extractIPFS-EXk4RS2j.js} +1 -1
- package/assets/{features-CmIs_0JR.js → features-ulzbeUt3.js} +1 -1
- package/assets/{fetchTokenMetadata-DrJFAm_P.js → fetchTokenMetadata-CVbxD3VO.js} +2 -2
- package/assets/{fetchTokenMetadata-BKap4LV_.js → fetchTokenMetadata-Cjc5LBLb.js} +2 -2
- package/assets/{fortmatic-YfMk-BEE.js → fortmatic-C9YVBZGp.js} +1 -1
- package/assets/{get-ecosystem-wallet-info-DU9z8SfE.js → get-ecosystem-wallet-info-C2g4DCWw.js} +1 -1
- package/assets/{get-ecosystem-wallet-info-DGKFMj5P.js → get-ecosystem-wallet-info-XD5a_-7n.js} +1 -1
- package/assets/{getBalance-De76iO5T.js → getBalance-ChIaoun9.js} +1 -1
- package/assets/{getBalance-DnrxzxOV.js → getBalance-Cv-UhnqE.js} +2 -2
- package/assets/{getCurrencyMetadata-BDUn1sRt.js → getCurrencyMetadata-BIDrkcKc.js} +2 -2
- package/assets/{getInstalledModules-CDg0iuO4.js → getInstalledModules-CXC5NsJK.js} +1 -1
- package/assets/{getInstalledModules-pAhupAGP.js → getInstalledModules-DSkh5stL.js} +1 -1
- package/assets/{getNFT-DHMnJTqW.js → getNFT-B1GRYjXJ.js} +1 -1
- package/assets/{getNFT-Dmgig0jB.js → getNFT-BAV0GrVn.js} +2 -2
- package/assets/{getNFT-BBil6owX.js → getNFT-BH7A6Hpm.js} +2 -2
- package/assets/{getNFT-B0m3jfoJ.js → getNFT-CzmG4M0Z.js} +1 -1
- package/assets/{hashTypedData-CFE7S7Af.js → hashTypedData-LY3QUtcD.js} +1 -1
- package/assets/{if-defined-Cf2AacYL.js → if-defined-DDCgUiYp.js} +1 -1
- package/assets/{in-app-wallet-calls-BcCtZJWh.js → in-app-wallet-calls--nglUDgv.js} +1 -1
- package/assets/{in-app-wallet-calls-DkDeM4Ux.js → in-app-wallet-calls-n-b5hova.js} +1 -1
- package/assets/{index-fXUdFiUC.js → index-4dpS6N-D.js} +1 -1
- package/assets/{index-DFwjqP80.js → index-6V9vuvkP.js} +1 -1
- package/assets/{index-CzwFqL20.js → index-B1poDi8U.js} +1 -1
- package/assets/{index-C2_PMI0d.js → index-BFCvu-SQ.js} +1 -1
- package/assets/{index-DAiWSMFC.css → index-BGvsmbMC.css} +3 -3
- package/assets/{index-CYmaTgjV.js → index-Bef3mmzY.js} +1 -1
- package/assets/{index-4kM1zjnS.js → index-BmyXTXyN.js} +1 -1
- package/assets/{index-CLEQ0hOn.js → index-BoV3Hrjy.js} +1 -1
- package/assets/{index-FfyQsjIX.js → index-Bp09MjvQ.js} +1 -1
- package/assets/{index-hu38SAQP.js → index-C8X0edSR.js} +2 -2
- package/assets/{index-CTPexb85.js → index-C9kcmpvP.js} +83 -83
- package/assets/{index-AQDuAtLD.js → index-CGZLkuWn.js} +1 -1
- package/assets/{index-2bKn2TSE.js → index-CMJ_znKB.js} +1 -1
- package/assets/{index-_D0X6y83.js → index-CP8kDNsr.js} +1 -1
- package/assets/{index-C4PACRDN.js → index-CQCjMzl4.js} +1 -1
- package/assets/{index-Darq-_2v.js → index-CQCqaGUZ.js} +1 -1
- package/assets/{index-BOfv99jb.js → index-CQW4u1WI.js} +1 -1
- package/assets/{index-iYxKn0Oc.js → index-CnyP_n54.js} +1 -1
- package/assets/{index-D5Bu0E_X.js → index-Cp3T7PGa.js} +2 -2
- package/assets/{index-BiJBjAq_.js → index-Cq3j3T6G.js} +1 -1
- package/assets/{index-M-NNRPW4.js → index-CsvMexRW.js} +1 -1
- package/assets/{index-B5HUu6ls.js → index-CvAs0GYP.js} +1 -1
- package/assets/{index-TCzvey27.js → index-CyiA1q8T.js} +4 -4
- package/assets/{index-C1ZzIDiM.js → index-D-Ot-Uy8.js} +1 -1
- package/assets/{index-D0ni6GfK.js → index-D2hB4T2W.js} +1 -1
- package/assets/{index-4AMDJXW8.js → index-D338ESwc.js} +1 -1
- package/assets/{index-BcyyjPYQ.js → index-D8hwIfIc.js} +1 -1
- package/assets/{index-ClFb4Tcz.js → index-DF_yMqfP.js} +1 -1
- package/assets/{index-B5OgRpRK.js → index-DQ09NiWi.js} +1 -1
- package/assets/{index-CcA5U3oD.js → index-DYAskdJA.js} +1 -1
- package/assets/{index-CY1hRSE1.js → index-Db5dD53h.js} +1 -1
- package/assets/{index-DoVKEDtC.js → index-DiIjEJ0_.js} +1 -1
- package/assets/{index-BgpgK5zX.js → index-DlXwok7s.js} +1 -1
- package/assets/{index-CbL1z9m0.js → index-Dmgfza45.js} +1 -1
- package/assets/{index-CTLEIK7D.js → index-Dn7EsoTj.js} +1 -1
- package/assets/{index-BDYX4pI8.js → index-Dn7k_DQ8.js} +1 -1
- package/assets/{index-DPPAEOk2.js → index-DpeV9Wam.js} +1 -1
- package/assets/{index-CDV_dpO4.js → index-DrDz7oQI.js} +1 -1
- package/assets/{index-CcFgdqWi.js → index-DrMbiZ0i.js} +1 -1
- package/assets/{index-CyjdNVAU.js → index-DsUVe2Dc.js} +1 -1
- package/assets/{index-BblrtGZs.js → index-FICjNWjt.js} +1 -1
- package/assets/{index-CzhN2xH6.js → index-IdBnFbaK.js} +1 -1
- package/assets/{index-xyaiuxIf.js → index-J_VvzvhB.js} +1 -1
- package/assets/{index-BF2AsK0R.js → index-_RP5sd-t.js} +1 -1
- package/assets/{index-DFWtng-H.js → index-dU7YfzFY.js} +1 -1
- package/assets/{index-CFFw5g7T.js → index-pMedPHw2.js} +2 -2
- package/assets/{index-BNPmCVUF.js → index-x7hxyH5-.js} +1 -1
- package/assets/{index-vC3WND5c.js → index-zeKYF1_9.js} +2 -2
- package/assets/{index.es-CxEKWgLB.js → index.es-BnBQYKMl.js} +1 -1
- package/assets/{index.es-gA_UXXxQ.js → index.es-D0_25Oh-.js} +1 -1
- package/assets/{index.es-CiDQXtto.js → index.es-Dv1hs6Y0.js} +1 -1
- package/assets/{index.es-Ctfyd2a4.js → index.es-arQDsOy9.js} +1 -1
- package/assets/{native-DIXXjgvG.js → native-DlthNI6_.js} +1 -1
- package/assets/{networks-DS3ZsJHp.js → networks-v--tvMC_.js} +1 -1
- package/assets/{onramp-BrCtcXHK.js → onramp-EDzrY1eM.js} +1 -1
- package/assets/{openzeppelin-BJbCajkn.js → openzeppelin-B8M9vXqD.js} +1 -1
- package/assets/{openzeppelin-DBm5cWZy.js → openzeppelin-Dimjiuxs.js} +1 -1
- package/assets/{ownerOf-CJw5i5sY.js → ownerOf-3vffreXZ.js} +1 -1
- package/assets/{ownerOf-BXifbKa_.js → ownerOf-BjvDIwi2.js} +1 -1
- package/assets/{parseNft-CKnRi_6q.js → parseNft-bgONNYbj.js} +2 -2
- package/assets/{parseSignature-BLWHgs4m.js → parseSignature-BC-PtSTA.js} +3 -3
- package/assets/{parseSignature-DdX47xNk.js → parseSignature-RSoun7s3.js} +3 -3
- package/assets/{pay-with-exchange-CyOggPbb.js → pay-with-exchange-Vox1cIBi.js} +1 -1
- package/assets/{qr-overlay-D95UBGA6.js → qr-overlay-C6PNFBky.js} +1 -1
- package/assets/{qr-overlay-JyAOpwrY.js → qr-overlay-MsxABgTz.js} +1 -1
- package/assets/{receive-ZcLdb8Ck.js → receive-C8W6quVv.js} +1 -1
- package/assets/{ref-BvyvP27w.js → ref-C8ELo-FX.js} +1 -1
- package/assets/{resolveImplementation-Dpsv_sj3.js → resolveImplementation-Be5g9Og6.js} +1 -1
- package/assets/{resolveImplementation-CqZPAWh1.js → resolveImplementation-al_rhKfM.js} +1 -1
- package/assets/{rpc-D8oPKl0j.js → rpc-YBySNaPU.js} +1 -1
- package/assets/{rpc-D6TzaLpS.js → rpc-fTN6Lg8H.js} +1 -1
- package/assets/{secp256k1-BkfYhWy6.js → secp256k1-BSfltYuw.js} +1 -1
- package/assets/{secp256k1-CISac59N.js → secp256k1-DbKe55L4.js} +1 -1
- package/assets/{send-BibpFq6-.js → send-GzhOSqeF.js} +1 -1
- package/assets/{send-batch-transaction-CuvNhAx9.js → send-batch-transaction-BgQySJ-T.js} +1 -1
- package/assets/{send-batch-transaction-CzhCEKJe.js → send-batch-transaction-BvT25Mc6.js} +1 -1
- package/assets/{send-eip712-transaction-CMDvpVc6.js → send-eip712-transaction-DMiNR15g.js} +2 -2
- package/assets/{send-eip712-transaction-ChRagBhu.js → send-eip712-transaction-RxArzXsP.js} +2 -2
- package/assets/{send-gasless-transaction-T8FPx_c4.js → send-gasless-transaction-BTboOw9J.js} +2 -2
- package/assets/{send-gasless-transaction-C3x4-HC9.js → send-gasless-transaction-ma7UOPHW.js} +2 -2
- package/assets/{session-proposal-0RYS24IB.js → session-proposal-BVrALpGO.js} +1 -1
- package/assets/{session-proposal-CHgpdx11.js → session-proposal-t7OELfh-.js} +1 -1
- package/assets/{session-request-CECX27Q9.js → session-request-CklXcH9d.js} +2 -2
- package/assets/{session-request-sg5_TFjt.js → session-request-DHwHTsWb.js} +2 -2
- package/assets/{sha256-Bq0kwVlP.js → sha256-B_2-BKc1.js} +1 -1
- package/assets/{sha256-rw7X9Nhf.js → sha256-EtKFmWln.js} +1 -1
- package/assets/{signing-D7VaTtN_.js → signing-DR1diqT_.js} +5 -5
- package/assets/{signing-GeODVl1E.js → signing-Wg6dfZ-_.js} +1 -1
- package/assets/{socials-onw0PJ2H.js → socials-DSQ2wMQE.js} +1 -1
- package/assets/{swaps-DCWiSyRc.js → swaps-DOmQ-2Ov.js} +1 -1
- package/assets/switch-chain-Bwl76z8E.js +1 -0
- package/assets/{thirdweb-CXrYv9sq.js → thirdweb-CuTQabzI.js} +3 -3
- package/assets/{totalSupply-Dtpa-Rc2.js → totalSupply-CVGbD7FC.js} +1 -1
- package/assets/{totalSupply-Ww9yF8QK.js → totalSupply-Ce2t0W0d.js} +1 -1
- package/assets/{transactionReceipt-DVqqJQEo.js → transactionReceipt-DgYVdPLL.js} +1 -1
- package/assets/{transactions-lxg1tS6E.js → transactions-DB6EqQAb.js} +1 -1
- package/assets/{utils-B2dQKDW4.js → utils-CUIXWH1v.js} +1 -1
- package/assets/{verifyHash-KOquD8l_.js → verifyHash-CxE8tlN8.js} +3 -3
- package/assets/{w3m-modal-oRYZfS8_.js → w3m-modal-BJ9JlRHj.js} +1 -1
- package/assets/{wait-for-tx-receipt-BcnY3DRy.js → wait-for-tx-receipt-CdM1R_-M.js} +1 -1
- package/assets/{wallets-BBf33h4g.js → wallets-Eh21KMYV.js} +6 -6
- package/assets/{web-connector-Dv6jqMvn.js → web-connector-dtXNAwkt.js} +2 -2
- package/assets/{web-connector-CqJVeGsM.js → web-connector-i2U4xEAp.js} +3 -3
- package/assets/{zora-sepolia-Vn0MFhFe.js → zora-sepolia-BS_ncL_N.js} +1 -1
- package/index.html +2 -2
- package/package.json +3 -3
- package/assets/concat-hex-Cl3ME3Ru.js +0 -1
- package/assets/decimals-jCGLItLd.js +0 -1
- package/assets/eth_estimateGas-BU0iPlrI.js +0 -1
- package/assets/eth_estimateGas-CwwZwCM3.js +0 -1
- package/assets/eth_getTransactionCount-D53D7AEK.js +0 -1
- package/assets/switch-chain-DkFtBw41.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ThirdwebWalletManager-
|
|
2
|
-
import{_ as we}from"./index-CTPexb85.js";import{r as ye,bs as ge,bt as Ce,bu as Te}from"./ThirdwebWalletManager-8fp4vDZ-.js";import"./store-CraP4F4Y.js";import"./webauthn.min-CGpVStYZ.js";import"./index.es-gA_UXXxQ.js";var g;(function(r){r.assertEqual=a=>{};function e(a){}r.assertIs=e;function t(a){throw new Error}r.assertNever=t,r.arrayToEnum=a=>{const n={};for(const i of a)n[i]=i;return n},r.getValidEnumValues=a=>{const n=r.objectKeys(a).filter(d=>typeof a[a[d]]!="number"),i={};for(const d of n)i[d]=a[d];return r.objectValues(i)},r.objectValues=a=>r.objectKeys(a).map(function(n){return a[n]}),r.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const n=[];for(const i in a)Object.prototype.hasOwnProperty.call(a,i)&&n.push(i);return n},r.find=(a,n)=>{for(const i of a)if(n(i))return i},r.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function s(a,n=" | "){return a.map(i=>typeof i=="string"?`'${i}'`:i).join(n)}r.joinValues=s,r.jsonStringifyReplacer=(a,n)=>typeof n=="bigint"?n.toString():n})(g||(g={}));var K;(function(r){r.mergeShapes=(e,t)=>({...e,...t})})(K||(K={}));const u=g.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),T=r=>{switch(typeof r){case"undefined":return u.undefined;case"string":return u.string;case"number":return Number.isNaN(r)?u.nan:u.number;case"boolean":return u.boolean;case"function":return u.function;case"bigint":return u.bigint;case"symbol":return u.symbol;case"object":return Array.isArray(r)?u.array:r===null?u.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?u.promise:typeof Map<"u"&&r instanceof Map?u.map:typeof Set<"u"&&r instanceof Set?u.set:typeof Date<"u"&&r instanceof Date?u.date:u.object;default:return u.unknown}},c=g.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class C extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(n){return n.message},s={_errors:[]},a=n=>{for(const i of n.issues)if(i.code==="invalid_union")i.unionErrors.map(a);else if(i.code==="invalid_return_type")a(i.returnTypeError);else if(i.code==="invalid_arguments")a(i.argumentsError);else if(i.path.length===0)s._errors.push(t(i));else{let d=s,h=0;for(;h<i.path.length;){const f=i.path[h];h===i.path.length-1?(d[f]=d[f]||{_errors:[]},d[f]._errors.push(t(i))):d[f]=d[f]||{_errors:[]},d=d[f],h++}}};return a(this),s}static assert(e){if(!(e instanceof C))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,g.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=t=>t.message){const t={},s=[];for(const a of this.issues)if(a.path.length>0){const n=a.path[0];t[n]=t[n]||[],t[n].push(e(a))}else s.push(e(a));return{formErrors:s,fieldErrors:t}}get formErrors(){return this.flatten()}}C.create=r=>new C(r);const Y=(r,e)=>{let t;switch(r.code){case c.invalid_type:r.received===u.undefined?t="Required":t=`Expected ${r.expected}, received ${r.received}`;break;case c.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(r.expected,g.jsonStringifyReplacer)}`;break;case c.unrecognized_keys:t=`Unrecognized key(s) in object: ${g.joinValues(r.keys,", ")}`;break;case c.invalid_union:t="Invalid input";break;case c.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${g.joinValues(r.options)}`;break;case c.invalid_enum_value:t=`Invalid enum value. Expected ${g.joinValues(r.options)}, received '${r.received}'`;break;case c.invalid_arguments:t="Invalid function arguments";break;case c.invalid_return_type:t="Invalid function return type";break;case c.invalid_date:t="Invalid date";break;case c.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(t=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?t=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?t=`Invalid input: must end with "${r.validation.endsWith}"`:g.assertNever(r.validation):r.validation!=="regex"?t=`Invalid ${r.validation}`:t="Invalid";break;case c.too_small:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="bigint"?t=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:t="Invalid input";break;case c.too_big:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?t=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:t="Invalid input";break;case c.custom:t="Invalid input";break;case c.invalid_intersection_types:t="Intersection results could not be merged";break;case c.not_multiple_of:t=`Number must be a multiple of ${r.multipleOf}`;break;case c.not_finite:t="Number must be finite";break;default:t=e.defaultError,g.assertNever(r)}return{message:t}};let Ne=Y;function Oe(){return Ne}const Se=r=>{const{data:e,path:t,errorMaps:s,issueData:a}=r,n=[...t,...a.path||[]],i={...a,path:n};if(a.message!==void 0)return{...a,path:n,message:a.message};let d="";const h=s.filter(f=>!!f).slice().reverse();for(const f of h)d=f(i,{data:e,defaultError:d}).message;return{...a,path:n,message:d}};function o(r,e){const t=Oe(),s=Se({issueData:e,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,t,t===Y?void 0:Y].filter(a=>!!a)});r.common.issues.push(s)}class k{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){const s=[];for(const a of t){if(a.status==="aborted")return m;a.status==="dirty"&&e.dirty(),s.push(a.value)}return{status:e.value,value:s}}static async mergeObjectAsync(e,t){const s=[];for(const a of t){const n=await a.key,i=await a.value;s.push({key:n,value:i})}return k.mergeObjectSync(e,s)}static mergeObjectSync(e,t){const s={};for(const a of t){const{key:n,value:i}=a;if(n.status==="aborted"||i.status==="aborted")return m;n.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),n.value!=="__proto__"&&(typeof i.value<"u"||a.alwaysSet)&&(s[n.value]=i.value)}return{status:e.value,value:s}}}const m=Object.freeze({status:"aborted"}),P=r=>({status:"dirty",value:r}),b=r=>({status:"valid",value:r}),ee=r=>r.status==="aborted",te=r=>r.status==="dirty",I=r=>r.status==="valid",D=r=>typeof Promise<"u"&&r instanceof Promise;var l;(function(r){r.errToObj=e=>typeof e=="string"?{message:e}:e||{},r.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(l||(l={}));class S{constructor(e,t,s,a){this._cachedPath=[],this.parent=e,this.data=t,this._path=s,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const re=(r,e)=>{if(I(e))return{success:!0,data:e.value};if(!r.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new C(r.common.issues);return this._error=t,this._error}}};function _(r){if(!r)return{};const{errorMap:e,invalid_type_error:t,required_error:s,description:a}=r;if(e&&(t||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(i,d)=>{const{message:h}=r;return i.code==="invalid_enum_value"?{message:h??d.defaultError}:typeof d.data>"u"?{message:h??s??d.defaultError}:i.code!=="invalid_type"?{message:d.defaultError}:{message:h??t??d.defaultError}},description:a}}class y{get description(){return this._def.description}_getType(e){return T(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:T(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new k,ctx:{common:e.parent.common,data:e.data,parsedType:T(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(D(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const s=this.safeParse(e,t);if(s.success)return s.data;throw s.error}safeParse(e,t){const s={common:{issues:[],async:(t==null?void 0:t.async)??!1,contextualErrorMap:t==null?void 0:t.errorMap},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:T(e)},a=this._parseSync({data:e,path:s.path,parent:s});return re(s,a)}"~validate"(e){var s,a;const t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:T(e)};if(!this["~standard"].async)try{const n=this._parseSync({data:e,path:[],parent:t});return I(n)?{value:n.value}:{issues:t.common.issues}}catch(n){(a=(s=n==null?void 0:n.message)==null?void 0:s.toLowerCase())!=null&&a.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(n=>I(n)?{value:n.value}:{issues:t.common.issues})}async parseAsync(e,t){const s=await this.safeParseAsync(e,t);if(s.success)return s.data;throw s.error}async safeParseAsync(e,t){const s={common:{issues:[],contextualErrorMap:t==null?void 0:t.errorMap,async:!0},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:T(e)},a=this._parse({data:e,path:s.path,parent:s}),n=await(D(a)?a:Promise.resolve(a));return re(s,n)}refine(e,t){const s=a=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(a):t;return this._refinement((a,n)=>{const i=e(a),d=()=>n.addIssue({code:c.custom,...s(a)});return typeof Promise<"u"&&i instanceof Promise?i.then(h=>h?!0:(d(),!1)):i?!0:(d(),!1)})}refinement(e,t){return this._refinement((s,a)=>e(s)?!0:(a.addIssue(typeof t=="function"?t(s,a):t),!1))}_refinement(e){return new $({schema:this,typeName:p.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:t=>this["~validate"](t)}}optional(){return O.create(this,this._def)}nullable(){return V.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return w.create(this)}promise(){return W.create(this,this._def)}or(e){return F.create([this,e],this._def)}and(e){return B.create(this,e,this._def)}transform(e){return new $({..._(this._def),schema:this,typeName:p.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new J({..._(this._def),innerType:this,defaultValue:t,typeName:p.ZodDefault})}brand(){return new Qe({typeName:p.ZodBranded,type:this,..._(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new G({..._(this._def),innerType:this,catchValue:t,typeName:p.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return X.create(this,e)}readonly(){return Q.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Ae=/^c[^\s-]{8,}$/i,Ze=/^[0-9a-z]+$/,Re=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Ie=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Ee=/^[a-z0-9_-]{21}$/i,je=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,$e=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Ve=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Me="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let q;const Pe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Le=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ze=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,De=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ue=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Fe=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,ve="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Be=new RegExp(`^${ve}$`);function xe(r){let e="[0-5]\\d";r.precision?e=`${e}\\.\\d{${r.precision}}`:r.precision==null&&(e=`${e}(\\.\\d+)?`);const t=r.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${t}`}function We(r){return new RegExp(`^${xe(r)}$`)}function qe(r){let e=`${ve}T${xe(r)}`;const t=[];return t.push(r.local?"Z?":"Z"),r.offset&&t.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${t.join("|")})`,new RegExp(`^${e}$`)}function Ye(r,e){return!!((e==="v4"||!e)&&Pe.test(r)||(e==="v6"||!e)&&ze.test(r))}function He(r,e){if(!je.test(r))return!1;try{const[t]=r.split(".");if(!t)return!1;const s=t.replace(/-/g,"+").replace(/_/g,"/").padEnd(t.length+(4-t.length%4)%4,"="),a=JSON.parse(atob(s));return!(typeof a!="object"||a===null||"typ"in a&&(a==null?void 0:a.typ)!=="JWT"||!a.alg||e&&a.alg!==e)}catch{return!1}}function Je(r,e){return!!((e==="v4"||!e)&&Le.test(r)||(e==="v6"||!e)&&De.test(r))}class N extends y{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==u.string){const n=this._getOrReturnCtx(e);return o(n,{code:c.invalid_type,expected:u.string,received:n.parsedType}),m}const s=new k;let a;for(const n of this._def.checks)if(n.kind==="min")e.data.length<n.value&&(a=this._getOrReturnCtx(e,a),o(a,{code:c.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),s.dirty());else if(n.kind==="max")e.data.length>n.value&&(a=this._getOrReturnCtx(e,a),o(a,{code:c.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),s.dirty());else if(n.kind==="length"){const i=e.data.length>n.value,d=e.data.length<n.value;(i||d)&&(a=this._getOrReturnCtx(e,a),i?o(a,{code:c.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}):d&&o(a,{code:c.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}),s.dirty())}else if(n.kind==="email")Ve.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"email",code:c.invalid_string,message:n.message}),s.dirty());else if(n.kind==="emoji")q||(q=new RegExp(Me,"u")),q.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"emoji",code:c.invalid_string,message:n.message}),s.dirty());else if(n.kind==="uuid")Ie.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"uuid",code:c.invalid_string,message:n.message}),s.dirty());else if(n.kind==="nanoid")Ee.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"nanoid",code:c.invalid_string,message:n.message}),s.dirty());else if(n.kind==="cuid")Ae.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"cuid",code:c.invalid_string,message:n.message}),s.dirty());else if(n.kind==="cuid2")Ze.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"cuid2",code:c.invalid_string,message:n.message}),s.dirty());else if(n.kind==="ulid")Re.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"ulid",code:c.invalid_string,message:n.message}),s.dirty());else if(n.kind==="url")try{new URL(e.data)}catch{a=this._getOrReturnCtx(e,a),o(a,{validation:"url",code:c.invalid_string,message:n.message}),s.dirty()}else n.kind==="regex"?(n.regex.lastIndex=0,n.regex.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"regex",code:c.invalid_string,message:n.message}),s.dirty())):n.kind==="trim"?e.data=e.data.trim():n.kind==="includes"?e.data.includes(n.value,n.position)||(a=this._getOrReturnCtx(e,a),o(a,{code:c.invalid_string,validation:{includes:n.value,position:n.position},message:n.message}),s.dirty()):n.kind==="toLowerCase"?e.data=e.data.toLowerCase():n.kind==="toUpperCase"?e.data=e.data.toUpperCase():n.kind==="startsWith"?e.data.startsWith(n.value)||(a=this._getOrReturnCtx(e,a),o(a,{code:c.invalid_string,validation:{startsWith:n.value},message:n.message}),s.dirty()):n.kind==="endsWith"?e.data.endsWith(n.value)||(a=this._getOrReturnCtx(e,a),o(a,{code:c.invalid_string,validation:{endsWith:n.value},message:n.message}),s.dirty()):n.kind==="datetime"?qe(n).test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{code:c.invalid_string,validation:"datetime",message:n.message}),s.dirty()):n.kind==="date"?Be.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{code:c.invalid_string,validation:"date",message:n.message}),s.dirty()):n.kind==="time"?We(n).test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{code:c.invalid_string,validation:"time",message:n.message}),s.dirty()):n.kind==="duration"?$e.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"duration",code:c.invalid_string,message:n.message}),s.dirty()):n.kind==="ip"?Ye(e.data,n.version)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"ip",code:c.invalid_string,message:n.message}),s.dirty()):n.kind==="jwt"?He(e.data,n.alg)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"jwt",code:c.invalid_string,message:n.message}),s.dirty()):n.kind==="cidr"?Je(e.data,n.version)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"cidr",code:c.invalid_string,message:n.message}),s.dirty()):n.kind==="base64"?Ue.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"base64",code:c.invalid_string,message:n.message}),s.dirty()):n.kind==="base64url"?Fe.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"base64url",code:c.invalid_string,message:n.message}),s.dirty()):g.assertNever(n);return{status:s.value,value:e.data}}_regex(e,t,s){return this.refinement(a=>e.test(a),{validation:t,code:c.invalid_string,...l.errToObj(s)})}_addCheck(e){return new N({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...l.errToObj(e)})}url(e){return this._addCheck({kind:"url",...l.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...l.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...l.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...l.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...l.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...l.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...l.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...l.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...l.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...l.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...l.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...l.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(e==null?void 0:e.offset)??!1,local:(e==null?void 0:e.local)??!1,...l.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...l.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...l.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...l.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t==null?void 0:t.position,...l.errToObj(t==null?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...l.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...l.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...l.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...l.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...l.errToObj(t)})}nonempty(e){return this.min(1,l.errToObj(e))}trim(){return new N({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new N({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new N({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}N.create=r=>new N({checks:[],typeName:p.ZodString,coerce:(r==null?void 0:r.coerce)??!1,..._(r)});function Ge(r,e){const t=(r.toString().split(".")[1]||"").length,s=(e.toString().split(".")[1]||"").length,a=t>s?t:s,n=Number.parseInt(r.toFixed(a).replace(".","")),i=Number.parseInt(e.toFixed(a).replace(".",""));return n%i/10**a}class E extends y{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==u.number){const n=this._getOrReturnCtx(e);return o(n,{code:c.invalid_type,expected:u.number,received:n.parsedType}),m}let s;const a=new k;for(const n of this._def.checks)n.kind==="int"?g.isInteger(e.data)||(s=this._getOrReturnCtx(e,s),o(s,{code:c.invalid_type,expected:"integer",received:"float",message:n.message}),a.dirty()):n.kind==="min"?(n.inclusive?e.data<n.value:e.data<=n.value)&&(s=this._getOrReturnCtx(e,s),o(s,{code:c.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),a.dirty()):n.kind==="max"?(n.inclusive?e.data>n.value:e.data>=n.value)&&(s=this._getOrReturnCtx(e,s),o(s,{code:c.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),a.dirty()):n.kind==="multipleOf"?Ge(e.data,n.value)!==0&&(s=this._getOrReturnCtx(e,s),o(s,{code:c.not_multiple_of,multipleOf:n.value,message:n.message}),a.dirty()):n.kind==="finite"?Number.isFinite(e.data)||(s=this._getOrReturnCtx(e,s),o(s,{code:c.not_finite,message:n.message}),a.dirty()):g.assertNever(n);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,l.toString(t))}gt(e,t){return this.setLimit("min",e,!1,l.toString(t))}lte(e,t){return this.setLimit("max",e,!0,l.toString(t))}lt(e,t){return this.setLimit("max",e,!1,l.toString(t))}setLimit(e,t,s,a){return new E({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:s,message:l.toString(a)}]})}_addCheck(e){return new E({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:l.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:l.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:l.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:l.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:l.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:l.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:l.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:l.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:l.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&g.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(t===null||s.value>t)&&(t=s.value):s.kind==="max"&&(e===null||s.value<e)&&(e=s.value)}return Number.isFinite(t)&&Number.isFinite(e)}}E.create=r=>new E({checks:[],typeName:p.ZodNumber,coerce:(r==null?void 0:r.coerce)||!1,..._(r)});class L extends y{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==u.bigint)return this._getInvalidInput(e);let s;const a=new k;for(const n of this._def.checks)n.kind==="min"?(n.inclusive?e.data<n.value:e.data<=n.value)&&(s=this._getOrReturnCtx(e,s),o(s,{code:c.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),a.dirty()):n.kind==="max"?(n.inclusive?e.data>n.value:e.data>=n.value)&&(s=this._getOrReturnCtx(e,s),o(s,{code:c.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),a.dirty()):n.kind==="multipleOf"?e.data%n.value!==BigInt(0)&&(s=this._getOrReturnCtx(e,s),o(s,{code:c.not_multiple_of,multipleOf:n.value,message:n.message}),a.dirty()):g.assertNever(n);return{status:a.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return o(t,{code:c.invalid_type,expected:u.bigint,received:t.parsedType}),m}gte(e,t){return this.setLimit("min",e,!0,l.toString(t))}gt(e,t){return this.setLimit("min",e,!1,l.toString(t))}lte(e,t){return this.setLimit("max",e,!0,l.toString(t))}lt(e,t){return this.setLimit("max",e,!1,l.toString(t))}setLimit(e,t,s,a){return new L({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:s,message:l.toString(a)}]})}_addCheck(e){return new L({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:l.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:l.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:l.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:l.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:l.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}L.create=r=>new L({checks:[],typeName:p.ZodBigInt,coerce:(r==null?void 0:r.coerce)??!1,..._(r)});class se extends y{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==u.boolean){const s=this._getOrReturnCtx(e);return o(s,{code:c.invalid_type,expected:u.boolean,received:s.parsedType}),m}return b(e.data)}}se.create=r=>new se({typeName:p.ZodBoolean,coerce:(r==null?void 0:r.coerce)||!1,..._(r)});class U extends y{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==u.date){const n=this._getOrReturnCtx(e);return o(n,{code:c.invalid_type,expected:u.date,received:n.parsedType}),m}if(Number.isNaN(e.data.getTime())){const n=this._getOrReturnCtx(e);return o(n,{code:c.invalid_date}),m}const s=new k;let a;for(const n of this._def.checks)n.kind==="min"?e.data.getTime()<n.value&&(a=this._getOrReturnCtx(e,a),o(a,{code:c.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),s.dirty()):n.kind==="max"?e.data.getTime()>n.value&&(a=this._getOrReturnCtx(e,a),o(a,{code:c.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),s.dirty()):g.assertNever(n);return{status:s.value,value:new Date(e.data.getTime())}}_addCheck(e){return new U({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:l.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:l.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e!=null?new Date(e):null}}U.create=r=>new U({checks:[],coerce:(r==null?void 0:r.coerce)||!1,typeName:p.ZodDate,..._(r)});class ae extends y{_parse(e){if(this._getType(e)!==u.symbol){const s=this._getOrReturnCtx(e);return o(s,{code:c.invalid_type,expected:u.symbol,received:s.parsedType}),m}return b(e.data)}}ae.create=r=>new ae({typeName:p.ZodSymbol,..._(r)});class ne extends y{_parse(e){if(this._getType(e)!==u.undefined){const s=this._getOrReturnCtx(e);return o(s,{code:c.invalid_type,expected:u.undefined,received:s.parsedType}),m}return b(e.data)}}ne.create=r=>new ne({typeName:p.ZodUndefined,..._(r)});class ie extends y{_parse(e){if(this._getType(e)!==u.null){const s=this._getOrReturnCtx(e);return o(s,{code:c.invalid_type,expected:u.null,received:s.parsedType}),m}return b(e.data)}}ie.create=r=>new ie({typeName:p.ZodNull,..._(r)});class de extends y{constructor(){super(...arguments),this._any=!0}_parse(e){return b(e.data)}}de.create=r=>new de({typeName:p.ZodAny,..._(r)});class ce extends y{constructor(){super(...arguments),this._unknown=!0}_parse(e){return b(e.data)}}ce.create=r=>new ce({typeName:p.ZodUnknown,..._(r)});class A extends y{_parse(e){const t=this._getOrReturnCtx(e);return o(t,{code:c.invalid_type,expected:u.never,received:t.parsedType}),m}}A.create=r=>new A({typeName:p.ZodNever,..._(r)});class oe extends y{_parse(e){if(this._getType(e)!==u.undefined){const s=this._getOrReturnCtx(e);return o(s,{code:c.invalid_type,expected:u.void,received:s.parsedType}),m}return b(e.data)}}oe.create=r=>new oe({typeName:p.ZodVoid,..._(r)});class w extends y{_parse(e){const{ctx:t,status:s}=this._processInputParams(e),a=this._def;if(t.parsedType!==u.array)return o(t,{code:c.invalid_type,expected:u.array,received:t.parsedType}),m;if(a.exactLength!==null){const i=t.data.length>a.exactLength.value,d=t.data.length<a.exactLength.value;(i||d)&&(o(t,{code:i?c.too_big:c.too_small,minimum:d?a.exactLength.value:void 0,maximum:i?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),s.dirty())}if(a.minLength!==null&&t.data.length<a.minLength.value&&(o(t,{code:c.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),s.dirty()),a.maxLength!==null&&t.data.length>a.maxLength.value&&(o(t,{code:c.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),s.dirty()),t.common.async)return Promise.all([...t.data].map((i,d)=>a.type._parseAsync(new S(t,i,t.path,d)))).then(i=>k.mergeArray(s,i));const n=[...t.data].map((i,d)=>a.type._parseSync(new S(t,i,t.path,d)));return k.mergeArray(s,n)}get element(){return this._def.type}min(e,t){return new w({...this._def,minLength:{value:e,message:l.toString(t)}})}max(e,t){return new w({...this._def,maxLength:{value:e,message:l.toString(t)}})}length(e,t){return new w({...this._def,exactLength:{value:e,message:l.toString(t)}})}nonempty(e){return this.min(1,e)}}w.create=(r,e)=>new w({type:r,minLength:null,maxLength:null,exactLength:null,typeName:p.ZodArray,..._(e)});function R(r){if(r instanceof x){const e={};for(const t in r.shape){const s=r.shape[t];e[t]=O.create(R(s))}return new x({...r._def,shape:()=>e})}else return r instanceof w?new w({...r._def,type:R(r.element)}):r instanceof O?O.create(R(r.unwrap())):r instanceof V?V.create(R(r.unwrap())):r instanceof Z?Z.create(r.items.map(e=>R(e))):r}class x extends y{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),t=g.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==u.object){const f=this._getOrReturnCtx(e);return o(f,{code:c.invalid_type,expected:u.object,received:f.parsedType}),m}const{status:s,ctx:a}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),d=[];if(!(this._def.catchall instanceof A&&this._def.unknownKeys==="strip"))for(const f in a.data)i.includes(f)||d.push(f);const h=[];for(const f of i){const v=n[f],M=a.data[f];h.push({key:{status:"valid",value:f},value:v._parse(new S(a,M,a.path,f)),alwaysSet:f in a.data})}if(this._def.catchall instanceof A){const f=this._def.unknownKeys;if(f==="passthrough")for(const v of d)h.push({key:{status:"valid",value:v},value:{status:"valid",value:a.data[v]}});else if(f==="strict")d.length>0&&(o(a,{code:c.unrecognized_keys,keys:d}),s.dirty());else if(f!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const f=this._def.catchall;for(const v of d){const M=a.data[v];h.push({key:{status:"valid",value:v},value:f._parse(new S(a,M,a.path,v)),alwaysSet:v in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const f=[];for(const v of h){const M=await v.key,be=await v.value;f.push({key:M,value:be,alwaysSet:v.alwaysSet})}return f}).then(f=>k.mergeObjectSync(s,f)):k.mergeObjectSync(s,h)}get shape(){return this._def.shape()}strict(e){return l.errToObj,new x({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,s)=>{var n,i;const a=((i=(n=this._def).errorMap)==null?void 0:i.call(n,t,s).message)??s.defaultError;return t.code==="unrecognized_keys"?{message:l.errToObj(e).message??a}:{message:a}}}:{}})}strip(){return new x({...this._def,unknownKeys:"strip"})}passthrough(){return new x({...this._def,unknownKeys:"passthrough"})}extend(e){return new x({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new x({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:p.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new x({...this._def,catchall:e})}pick(e){const t={};for(const s of g.objectKeys(e))e[s]&&this.shape[s]&&(t[s]=this.shape[s]);return new x({...this._def,shape:()=>t})}omit(e){const t={};for(const s of g.objectKeys(this.shape))e[s]||(t[s]=this.shape[s]);return new x({...this._def,shape:()=>t})}deepPartial(){return R(this)}partial(e){const t={};for(const s of g.objectKeys(this.shape)){const a=this.shape[s];e&&!e[s]?t[s]=a:t[s]=a.optional()}return new x({...this._def,shape:()=>t})}required(e){const t={};for(const s of g.objectKeys(this.shape))if(e&&!e[s])t[s]=this.shape[s];else{let n=this.shape[s];for(;n instanceof O;)n=n._def.innerType;t[s]=n}return new x({...this._def,shape:()=>t})}keyof(){return ke(g.objectKeys(this.shape))}}x.create=(r,e)=>new x({shape:()=>r,unknownKeys:"strip",catchall:A.create(),typeName:p.ZodObject,..._(e)});x.strictCreate=(r,e)=>new x({shape:()=>r,unknownKeys:"strict",catchall:A.create(),typeName:p.ZodObject,..._(e)});x.lazycreate=(r,e)=>new x({shape:r,unknownKeys:"strip",catchall:A.create(),typeName:p.ZodObject,..._(e)});class F extends y{_parse(e){const{ctx:t}=this._processInputParams(e),s=this._def.options;function a(n){for(const d of n)if(d.result.status==="valid")return d.result;for(const d of n)if(d.result.status==="dirty")return t.common.issues.push(...d.ctx.common.issues),d.result;const i=n.map(d=>new C(d.ctx.common.issues));return o(t,{code:c.invalid_union,unionErrors:i}),m}if(t.common.async)return Promise.all(s.map(async n=>{const i={...t,common:{...t.common,issues:[]},parent:null};return{result:await n._parseAsync({data:t.data,path:t.path,parent:i}),ctx:i}})).then(a);{let n;const i=[];for(const h of s){const f={...t,common:{...t.common,issues:[]},parent:null},v=h._parseSync({data:t.data,path:t.path,parent:f});if(v.status==="valid")return v;v.status==="dirty"&&!n&&(n={result:v,ctx:f}),f.common.issues.length&&i.push(f.common.issues)}if(n)return t.common.issues.push(...n.ctx.common.issues),n.result;const d=i.map(h=>new C(h));return o(t,{code:c.invalid_union,unionErrors:d}),m}}get options(){return this._def.options}}F.create=(r,e)=>new F({options:r,typeName:p.ZodUnion,..._(e)});function H(r,e){const t=T(r),s=T(e);if(r===e)return{valid:!0,data:r};if(t===u.object&&s===u.object){const a=g.objectKeys(e),n=g.objectKeys(r).filter(d=>a.indexOf(d)!==-1),i={...r,...e};for(const d of n){const h=H(r[d],e[d]);if(!h.valid)return{valid:!1};i[d]=h.data}return{valid:!0,data:i}}else if(t===u.array&&s===u.array){if(r.length!==e.length)return{valid:!1};const a=[];for(let n=0;n<r.length;n++){const i=r[n],d=e[n],h=H(i,d);if(!h.valid)return{valid:!1};a.push(h.data)}return{valid:!0,data:a}}else return t===u.date&&s===u.date&&+r==+e?{valid:!0,data:r}:{valid:!1}}class B extends y{_parse(e){const{status:t,ctx:s}=this._processInputParams(e),a=(n,i)=>{if(ee(n)||ee(i))return m;const d=H(n.value,i.value);return d.valid?((te(n)||te(i))&&t.dirty(),{status:t.value,value:d.data}):(o(s,{code:c.invalid_intersection_types}),m)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([n,i])=>a(n,i)):a(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}B.create=(r,e,t)=>new B({left:r,right:e,typeName:p.ZodIntersection,..._(t)});class Z extends y{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==u.array)return o(s,{code:c.invalid_type,expected:u.array,received:s.parsedType}),m;if(s.data.length<this._def.items.length)return o(s,{code:c.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),m;!this._def.rest&&s.data.length>this._def.items.length&&(o(s,{code:c.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const n=[...s.data].map((i,d)=>{const h=this._def.items[d]||this._def.rest;return h?h._parse(new S(s,i,s.path,d)):null}).filter(i=>!!i);return s.common.async?Promise.all(n).then(i=>k.mergeArray(t,i)):k.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new Z({...this._def,rest:e})}}Z.create=(r,e)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Z({items:r,typeName:p.ZodTuple,rest:null,..._(e)})};class ue extends y{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==u.map)return o(s,{code:c.invalid_type,expected:u.map,received:s.parsedType}),m;const a=this._def.keyType,n=this._def.valueType,i=[...s.data.entries()].map(([d,h],f)=>({key:a._parse(new S(s,d,s.path,[f,"key"])),value:n._parse(new S(s,h,s.path,[f,"value"]))}));if(s.common.async){const d=new Map;return Promise.resolve().then(async()=>{for(const h of i){const f=await h.key,v=await h.value;if(f.status==="aborted"||v.status==="aborted")return m;(f.status==="dirty"||v.status==="dirty")&&t.dirty(),d.set(f.value,v.value)}return{status:t.value,value:d}})}else{const d=new Map;for(const h of i){const f=h.key,v=h.value;if(f.status==="aborted"||v.status==="aborted")return m;(f.status==="dirty"||v.status==="dirty")&&t.dirty(),d.set(f.value,v.value)}return{status:t.value,value:d}}}}ue.create=(r,e,t)=>new ue({valueType:e,keyType:r,typeName:p.ZodMap,..._(t)});class z extends y{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==u.set)return o(s,{code:c.invalid_type,expected:u.set,received:s.parsedType}),m;const a=this._def;a.minSize!==null&&s.data.size<a.minSize.value&&(o(s,{code:c.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),t.dirty()),a.maxSize!==null&&s.data.size>a.maxSize.value&&(o(s,{code:c.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),t.dirty());const n=this._def.valueType;function i(h){const f=new Set;for(const v of h){if(v.status==="aborted")return m;v.status==="dirty"&&t.dirty(),f.add(v.value)}return{status:t.value,value:f}}const d=[...s.data.values()].map((h,f)=>n._parse(new S(s,h,s.path,f)));return s.common.async?Promise.all(d).then(h=>i(h)):i(d)}min(e,t){return new z({...this._def,minSize:{value:e,message:l.toString(t)}})}max(e,t){return new z({...this._def,maxSize:{value:e,message:l.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}z.create=(r,e)=>new z({valueType:r,minSize:null,maxSize:null,typeName:p.ZodSet,..._(e)});class le extends y{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}le.create=(r,e)=>new le({getter:r,typeName:p.ZodLazy,..._(e)});class he extends y{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return o(t,{received:t.data,code:c.invalid_literal,expected:this._def.value}),m}return{status:"valid",value:e.data}}get value(){return this._def.value}}he.create=(r,e)=>new he({value:r,typeName:p.ZodLiteral,..._(e)});function ke(r,e){return new j({values:r,typeName:p.ZodEnum,..._(e)})}class j extends y{_parse(e){if(typeof e.data!="string"){const t=this._getOrReturnCtx(e),s=this._def.values;return o(t,{expected:g.joinValues(s),received:t.parsedType,code:c.invalid_type}),m}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const t=this._getOrReturnCtx(e),s=this._def.values;return o(t,{received:t.data,code:c.invalid_enum_value,options:s}),m}return b(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return j.create(e,{...this._def,...t})}exclude(e,t=this._def){return j.create(this.options.filter(s=>!e.includes(s)),{...this._def,...t})}}j.create=ke;class fe extends y{_parse(e){const t=g.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(e);if(s.parsedType!==u.string&&s.parsedType!==u.number){const a=g.objectValues(t);return o(s,{expected:g.joinValues(a),received:s.parsedType,code:c.invalid_type}),m}if(this._cache||(this._cache=new Set(g.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const a=g.objectValues(t);return o(s,{received:s.data,code:c.invalid_enum_value,options:a}),m}return b(e.data)}get enum(){return this._def.values}}fe.create=(r,e)=>new fe({values:r,typeName:p.ZodNativeEnum,..._(e)});class W extends y{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==u.promise&&t.common.async===!1)return o(t,{code:c.invalid_type,expected:u.promise,received:t.parsedType}),m;const s=t.parsedType===u.promise?t.data:Promise.resolve(t.data);return b(s.then(a=>this._def.type.parseAsync(a,{path:t.path,errorMap:t.common.contextualErrorMap})))}}W.create=(r,e)=>new W({type:r,typeName:p.ZodPromise,..._(e)});class $ extends y{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===p.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:s}=this._processInputParams(e),a=this._def.effect||null,n={addIssue:i=>{o(s,i),i.fatal?t.abort():t.dirty()},get path(){return s.path}};if(n.addIssue=n.addIssue.bind(n),a.type==="preprocess"){const i=a.transform(s.data,n);if(s.common.async)return Promise.resolve(i).then(async d=>{if(t.value==="aborted")return m;const h=await this._def.schema._parseAsync({data:d,path:s.path,parent:s});return h.status==="aborted"?m:h.status==="dirty"||t.value==="dirty"?P(h.value):h});{if(t.value==="aborted")return m;const d=this._def.schema._parseSync({data:i,path:s.path,parent:s});return d.status==="aborted"?m:d.status==="dirty"||t.value==="dirty"?P(d.value):d}}if(a.type==="refinement"){const i=d=>{const h=a.refinement(d,n);if(s.common.async)return Promise.resolve(h);if(h instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return d};if(s.common.async===!1){const d=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return d.status==="aborted"?m:(d.status==="dirty"&&t.dirty(),i(d.value),{status:t.value,value:d.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(d=>d.status==="aborted"?m:(d.status==="dirty"&&t.dirty(),i(d.value).then(()=>({status:t.value,value:d.value}))))}if(a.type==="transform")if(s.common.async===!1){const i=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!I(i))return m;const d=a.transform(i.value,n);if(d instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:d}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(i=>I(i)?Promise.resolve(a.transform(i.value,n)).then(d=>({status:t.value,value:d})):m);g.assertNever(a)}}$.create=(r,e,t)=>new $({schema:r,typeName:p.ZodEffects,effect:e,..._(t)});$.createWithPreprocess=(r,e,t)=>new $({schema:e,effect:{type:"preprocess",transform:r},typeName:p.ZodEffects,..._(t)});class O extends y{_parse(e){return this._getType(e)===u.undefined?b(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}O.create=(r,e)=>new O({innerType:r,typeName:p.ZodOptional,..._(e)});class V extends y{_parse(e){return this._getType(e)===u.null?b(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}V.create=(r,e)=>new V({innerType:r,typeName:p.ZodNullable,..._(e)});class J extends y{_parse(e){const{ctx:t}=this._processInputParams(e);let s=t.data;return t.parsedType===u.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}J.create=(r,e)=>new J({innerType:r,typeName:p.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,..._(e)});class G extends y{_parse(e){const{ctx:t}=this._processInputParams(e),s={...t,common:{...t.common,issues:[]}},a=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return D(a)?a.then(n=>({status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new C(s.common.issues)},input:s.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new C(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}G.create=(r,e)=>new G({innerType:r,typeName:p.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,..._(e)});class me extends y{_parse(e){if(this._getType(e)!==u.nan){const s=this._getOrReturnCtx(e);return o(s,{code:c.invalid_type,expected:u.nan,received:s.parsedType}),m}return{status:"valid",value:e.data}}}me.create=r=>new me({typeName:p.ZodNaN,..._(r)});class Qe extends y{_parse(e){const{ctx:t}=this._processInputParams(e),s=t.data;return this._def.type._parse({data:s,path:t.path,parent:t})}unwrap(){return this._def.type}}class X extends y{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.common.async)return(async()=>{const n=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return n.status==="aborted"?m:n.status==="dirty"?(t.dirty(),P(n.value)):this._def.out._parseAsync({data:n.value,path:s.path,parent:s})})();{const a=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?m:a.status==="dirty"?(t.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:s.path,parent:s})}}static create(e,t){return new X({in:e,out:t,typeName:p.ZodPipeline})}}class Q extends y{_parse(e){const t=this._def.innerType._parse(e),s=a=>(I(a)&&(a.value=Object.freeze(a.value)),a);return D(t)?t.then(a=>s(a)):s(t)}unwrap(){return this._def.innerType}}Q.create=(r,e)=>new Q({innerType:r,typeName:p.ZodReadonly,..._(e)});var p;(function(r){r.ZodString="ZodString",r.ZodNumber="ZodNumber",r.ZodNaN="ZodNaN",r.ZodBigInt="ZodBigInt",r.ZodBoolean="ZodBoolean",r.ZodDate="ZodDate",r.ZodSymbol="ZodSymbol",r.ZodUndefined="ZodUndefined",r.ZodNull="ZodNull",r.ZodAny="ZodAny",r.ZodUnknown="ZodUnknown",r.ZodNever="ZodNever",r.ZodVoid="ZodVoid",r.ZodArray="ZodArray",r.ZodObject="ZodObject",r.ZodUnion="ZodUnion",r.ZodDiscriminatedUnion="ZodDiscriminatedUnion",r.ZodIntersection="ZodIntersection",r.ZodTuple="ZodTuple",r.ZodRecord="ZodRecord",r.ZodMap="ZodMap",r.ZodSet="ZodSet",r.ZodFunction="ZodFunction",r.ZodLazy="ZodLazy",r.ZodLiteral="ZodLiteral",r.ZodEnum="ZodEnum",r.ZodEffects="ZodEffects",r.ZodNativeEnum="ZodNativeEnum",r.ZodOptional="ZodOptional",r.ZodNullable="ZodNullable",r.ZodDefault="ZodDefault",r.ZodCatch="ZodCatch",r.ZodPromise="ZodPromise",r.ZodBranded="ZodBranded",r.ZodPipeline="ZodPipeline",r.ZodReadonly="ZodReadonly"})(p||(p={}));const pe=N.create,Xe=E.create;A.create;w.create;const Ke=x.create;F.create;B.create;Z.create;j.create;W.create;O.create;V.create;const et="0x06fdde03",tt=[],rt=[{type:"string"}];async function st(r){return ye({contract:r.contract,method:[et,tt,rt],params:[]})}async function at(r){return ge(()=>st(r),{cacheKey:`${r.contract.chain.id}:${r.contract.address}:name`,cacheTime:Number.POSITIVE_INFINITY})}const nt="0x95d89b41",it=[],dt=[{type:"string"}];async function ct(r){return ye({contract:r.contract,method:[nt,it,dt],params:[]})}async function ot(r){return ge(()=>ct(r),{cacheKey:`${r.contract.chain.id}:${r.contract.address}:symbol`,cacheTime:Number.POSITIVE_INFINITY})}const _e=Ke({name:pe().default("Ether"),symbol:pe().default("ETH"),decimals:Xe().default(18)}).default({name:"Ether",symbol:"ETH",decimals:18});async function pt(r){if(Ce(r.contract.address)){if(!r.contract.chain.nativeCurrency||!r.contract.chain.nativeCurrency.name||!r.contract.chain.nativeCurrency.symbol||!r.contract.chain.nativeCurrency.decimals)try{const{getChainMetadata:e}=await we(async()=>{const{getChainMetadata:s}=await import("./ThirdwebWalletManager-8fp4vDZ-.js").then(a=>a.es);return{getChainMetadata:s}},__vite__mapDeps([0,1,2,3,4,5])),t=await e(r.contract.chain);return _e.parse({...t.nativeCurrency,...r.contract.chain.nativeCurrency})}catch{}return _e.parse(r.contract.chain.nativeCurrency)}try{const[e,t,s]=await Promise.all([at(r).catch(()=>""),ot(r),Te(r)]);return{decimals:s,name:e,symbol:t}}catch(e){throw new Error(`Invalid currency token: ${e}`)}}export{pt as getCurrencyMetadata};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ThirdwebWalletManager-_8PV4raS.js","assets/index-C9kcmpvP.js","assets/index-BGvsmbMC.css","assets/store-CraP4F4Y.js","assets/webauthn.min-CGpVStYZ.js","assets/index.es-D0_25Oh-.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as we}from"./index-C9kcmpvP.js";import{r as ye,bs as ge,bt as Ce,bu as Te}from"./ThirdwebWalletManager-_8PV4raS.js";import"./store-CraP4F4Y.js";import"./webauthn.min-CGpVStYZ.js";import"./index.es-D0_25Oh-.js";var g;(function(r){r.assertEqual=a=>{};function e(a){}r.assertIs=e;function t(a){throw new Error}r.assertNever=t,r.arrayToEnum=a=>{const n={};for(const i of a)n[i]=i;return n},r.getValidEnumValues=a=>{const n=r.objectKeys(a).filter(d=>typeof a[a[d]]!="number"),i={};for(const d of n)i[d]=a[d];return r.objectValues(i)},r.objectValues=a=>r.objectKeys(a).map(function(n){return a[n]}),r.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const n=[];for(const i in a)Object.prototype.hasOwnProperty.call(a,i)&&n.push(i);return n},r.find=(a,n)=>{for(const i of a)if(n(i))return i},r.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function s(a,n=" | "){return a.map(i=>typeof i=="string"?`'${i}'`:i).join(n)}r.joinValues=s,r.jsonStringifyReplacer=(a,n)=>typeof n=="bigint"?n.toString():n})(g||(g={}));var K;(function(r){r.mergeShapes=(e,t)=>({...e,...t})})(K||(K={}));const u=g.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),T=r=>{switch(typeof r){case"undefined":return u.undefined;case"string":return u.string;case"number":return Number.isNaN(r)?u.nan:u.number;case"boolean":return u.boolean;case"function":return u.function;case"bigint":return u.bigint;case"symbol":return u.symbol;case"object":return Array.isArray(r)?u.array:r===null?u.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?u.promise:typeof Map<"u"&&r instanceof Map?u.map:typeof Set<"u"&&r instanceof Set?u.set:typeof Date<"u"&&r instanceof Date?u.date:u.object;default:return u.unknown}},c=g.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class C extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(n){return n.message},s={_errors:[]},a=n=>{for(const i of n.issues)if(i.code==="invalid_union")i.unionErrors.map(a);else if(i.code==="invalid_return_type")a(i.returnTypeError);else if(i.code==="invalid_arguments")a(i.argumentsError);else if(i.path.length===0)s._errors.push(t(i));else{let d=s,h=0;for(;h<i.path.length;){const f=i.path[h];h===i.path.length-1?(d[f]=d[f]||{_errors:[]},d[f]._errors.push(t(i))):d[f]=d[f]||{_errors:[]},d=d[f],h++}}};return a(this),s}static assert(e){if(!(e instanceof C))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,g.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=t=>t.message){const t={},s=[];for(const a of this.issues)if(a.path.length>0){const n=a.path[0];t[n]=t[n]||[],t[n].push(e(a))}else s.push(e(a));return{formErrors:s,fieldErrors:t}}get formErrors(){return this.flatten()}}C.create=r=>new C(r);const Y=(r,e)=>{let t;switch(r.code){case c.invalid_type:r.received===u.undefined?t="Required":t=`Expected ${r.expected}, received ${r.received}`;break;case c.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(r.expected,g.jsonStringifyReplacer)}`;break;case c.unrecognized_keys:t=`Unrecognized key(s) in object: ${g.joinValues(r.keys,", ")}`;break;case c.invalid_union:t="Invalid input";break;case c.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${g.joinValues(r.options)}`;break;case c.invalid_enum_value:t=`Invalid enum value. Expected ${g.joinValues(r.options)}, received '${r.received}'`;break;case c.invalid_arguments:t="Invalid function arguments";break;case c.invalid_return_type:t="Invalid function return type";break;case c.invalid_date:t="Invalid date";break;case c.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(t=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?t=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?t=`Invalid input: must end with "${r.validation.endsWith}"`:g.assertNever(r.validation):r.validation!=="regex"?t=`Invalid ${r.validation}`:t="Invalid";break;case c.too_small:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="bigint"?t=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:t="Invalid input";break;case c.too_big:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?t=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:t="Invalid input";break;case c.custom:t="Invalid input";break;case c.invalid_intersection_types:t="Intersection results could not be merged";break;case c.not_multiple_of:t=`Number must be a multiple of ${r.multipleOf}`;break;case c.not_finite:t="Number must be finite";break;default:t=e.defaultError,g.assertNever(r)}return{message:t}};let Ne=Y;function Oe(){return Ne}const Se=r=>{const{data:e,path:t,errorMaps:s,issueData:a}=r,n=[...t,...a.path||[]],i={...a,path:n};if(a.message!==void 0)return{...a,path:n,message:a.message};let d="";const h=s.filter(f=>!!f).slice().reverse();for(const f of h)d=f(i,{data:e,defaultError:d}).message;return{...a,path:n,message:d}};function o(r,e){const t=Oe(),s=Se({issueData:e,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,t,t===Y?void 0:Y].filter(a=>!!a)});r.common.issues.push(s)}class k{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){const s=[];for(const a of t){if(a.status==="aborted")return m;a.status==="dirty"&&e.dirty(),s.push(a.value)}return{status:e.value,value:s}}static async mergeObjectAsync(e,t){const s=[];for(const a of t){const n=await a.key,i=await a.value;s.push({key:n,value:i})}return k.mergeObjectSync(e,s)}static mergeObjectSync(e,t){const s={};for(const a of t){const{key:n,value:i}=a;if(n.status==="aborted"||i.status==="aborted")return m;n.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),n.value!=="__proto__"&&(typeof i.value<"u"||a.alwaysSet)&&(s[n.value]=i.value)}return{status:e.value,value:s}}}const m=Object.freeze({status:"aborted"}),P=r=>({status:"dirty",value:r}),b=r=>({status:"valid",value:r}),ee=r=>r.status==="aborted",te=r=>r.status==="dirty",I=r=>r.status==="valid",D=r=>typeof Promise<"u"&&r instanceof Promise;var l;(function(r){r.errToObj=e=>typeof e=="string"?{message:e}:e||{},r.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(l||(l={}));class S{constructor(e,t,s,a){this._cachedPath=[],this.parent=e,this.data=t,this._path=s,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const re=(r,e)=>{if(I(e))return{success:!0,data:e.value};if(!r.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new C(r.common.issues);return this._error=t,this._error}}};function _(r){if(!r)return{};const{errorMap:e,invalid_type_error:t,required_error:s,description:a}=r;if(e&&(t||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(i,d)=>{const{message:h}=r;return i.code==="invalid_enum_value"?{message:h??d.defaultError}:typeof d.data>"u"?{message:h??s??d.defaultError}:i.code!=="invalid_type"?{message:d.defaultError}:{message:h??t??d.defaultError}},description:a}}class y{get description(){return this._def.description}_getType(e){return T(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:T(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new k,ctx:{common:e.parent.common,data:e.data,parsedType:T(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(D(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const s=this.safeParse(e,t);if(s.success)return s.data;throw s.error}safeParse(e,t){const s={common:{issues:[],async:(t==null?void 0:t.async)??!1,contextualErrorMap:t==null?void 0:t.errorMap},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:T(e)},a=this._parseSync({data:e,path:s.path,parent:s});return re(s,a)}"~validate"(e){var s,a;const t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:T(e)};if(!this["~standard"].async)try{const n=this._parseSync({data:e,path:[],parent:t});return I(n)?{value:n.value}:{issues:t.common.issues}}catch(n){(a=(s=n==null?void 0:n.message)==null?void 0:s.toLowerCase())!=null&&a.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(n=>I(n)?{value:n.value}:{issues:t.common.issues})}async parseAsync(e,t){const s=await this.safeParseAsync(e,t);if(s.success)return s.data;throw s.error}async safeParseAsync(e,t){const s={common:{issues:[],contextualErrorMap:t==null?void 0:t.errorMap,async:!0},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:T(e)},a=this._parse({data:e,path:s.path,parent:s}),n=await(D(a)?a:Promise.resolve(a));return re(s,n)}refine(e,t){const s=a=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(a):t;return this._refinement((a,n)=>{const i=e(a),d=()=>n.addIssue({code:c.custom,...s(a)});return typeof Promise<"u"&&i instanceof Promise?i.then(h=>h?!0:(d(),!1)):i?!0:(d(),!1)})}refinement(e,t){return this._refinement((s,a)=>e(s)?!0:(a.addIssue(typeof t=="function"?t(s,a):t),!1))}_refinement(e){return new $({schema:this,typeName:p.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:t=>this["~validate"](t)}}optional(){return O.create(this,this._def)}nullable(){return V.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return w.create(this)}promise(){return W.create(this,this._def)}or(e){return F.create([this,e],this._def)}and(e){return B.create(this,e,this._def)}transform(e){return new $({..._(this._def),schema:this,typeName:p.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new J({..._(this._def),innerType:this,defaultValue:t,typeName:p.ZodDefault})}brand(){return new Qe({typeName:p.ZodBranded,type:this,..._(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new G({..._(this._def),innerType:this,catchValue:t,typeName:p.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return X.create(this,e)}readonly(){return Q.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Ae=/^c[^\s-]{8,}$/i,Ze=/^[0-9a-z]+$/,Re=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Ie=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Ee=/^[a-z0-9_-]{21}$/i,je=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,$e=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Ve=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Me="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let q;const Pe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Le=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ze=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,De=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ue=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Fe=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,ve="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Be=new RegExp(`^${ve}$`);function xe(r){let e="[0-5]\\d";r.precision?e=`${e}\\.\\d{${r.precision}}`:r.precision==null&&(e=`${e}(\\.\\d+)?`);const t=r.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${t}`}function We(r){return new RegExp(`^${xe(r)}$`)}function qe(r){let e=`${ve}T${xe(r)}`;const t=[];return t.push(r.local?"Z?":"Z"),r.offset&&t.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${t.join("|")})`,new RegExp(`^${e}$`)}function Ye(r,e){return!!((e==="v4"||!e)&&Pe.test(r)||(e==="v6"||!e)&&ze.test(r))}function He(r,e){if(!je.test(r))return!1;try{const[t]=r.split(".");if(!t)return!1;const s=t.replace(/-/g,"+").replace(/_/g,"/").padEnd(t.length+(4-t.length%4)%4,"="),a=JSON.parse(atob(s));return!(typeof a!="object"||a===null||"typ"in a&&(a==null?void 0:a.typ)!=="JWT"||!a.alg||e&&a.alg!==e)}catch{return!1}}function Je(r,e){return!!((e==="v4"||!e)&&Le.test(r)||(e==="v6"||!e)&&De.test(r))}class N extends y{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==u.string){const n=this._getOrReturnCtx(e);return o(n,{code:c.invalid_type,expected:u.string,received:n.parsedType}),m}const s=new k;let a;for(const n of this._def.checks)if(n.kind==="min")e.data.length<n.value&&(a=this._getOrReturnCtx(e,a),o(a,{code:c.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),s.dirty());else if(n.kind==="max")e.data.length>n.value&&(a=this._getOrReturnCtx(e,a),o(a,{code:c.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),s.dirty());else if(n.kind==="length"){const i=e.data.length>n.value,d=e.data.length<n.value;(i||d)&&(a=this._getOrReturnCtx(e,a),i?o(a,{code:c.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}):d&&o(a,{code:c.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}),s.dirty())}else if(n.kind==="email")Ve.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"email",code:c.invalid_string,message:n.message}),s.dirty());else if(n.kind==="emoji")q||(q=new RegExp(Me,"u")),q.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"emoji",code:c.invalid_string,message:n.message}),s.dirty());else if(n.kind==="uuid")Ie.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"uuid",code:c.invalid_string,message:n.message}),s.dirty());else if(n.kind==="nanoid")Ee.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"nanoid",code:c.invalid_string,message:n.message}),s.dirty());else if(n.kind==="cuid")Ae.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"cuid",code:c.invalid_string,message:n.message}),s.dirty());else if(n.kind==="cuid2")Ze.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"cuid2",code:c.invalid_string,message:n.message}),s.dirty());else if(n.kind==="ulid")Re.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"ulid",code:c.invalid_string,message:n.message}),s.dirty());else if(n.kind==="url")try{new URL(e.data)}catch{a=this._getOrReturnCtx(e,a),o(a,{validation:"url",code:c.invalid_string,message:n.message}),s.dirty()}else n.kind==="regex"?(n.regex.lastIndex=0,n.regex.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"regex",code:c.invalid_string,message:n.message}),s.dirty())):n.kind==="trim"?e.data=e.data.trim():n.kind==="includes"?e.data.includes(n.value,n.position)||(a=this._getOrReturnCtx(e,a),o(a,{code:c.invalid_string,validation:{includes:n.value,position:n.position},message:n.message}),s.dirty()):n.kind==="toLowerCase"?e.data=e.data.toLowerCase():n.kind==="toUpperCase"?e.data=e.data.toUpperCase():n.kind==="startsWith"?e.data.startsWith(n.value)||(a=this._getOrReturnCtx(e,a),o(a,{code:c.invalid_string,validation:{startsWith:n.value},message:n.message}),s.dirty()):n.kind==="endsWith"?e.data.endsWith(n.value)||(a=this._getOrReturnCtx(e,a),o(a,{code:c.invalid_string,validation:{endsWith:n.value},message:n.message}),s.dirty()):n.kind==="datetime"?qe(n).test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{code:c.invalid_string,validation:"datetime",message:n.message}),s.dirty()):n.kind==="date"?Be.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{code:c.invalid_string,validation:"date",message:n.message}),s.dirty()):n.kind==="time"?We(n).test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{code:c.invalid_string,validation:"time",message:n.message}),s.dirty()):n.kind==="duration"?$e.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"duration",code:c.invalid_string,message:n.message}),s.dirty()):n.kind==="ip"?Ye(e.data,n.version)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"ip",code:c.invalid_string,message:n.message}),s.dirty()):n.kind==="jwt"?He(e.data,n.alg)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"jwt",code:c.invalid_string,message:n.message}),s.dirty()):n.kind==="cidr"?Je(e.data,n.version)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"cidr",code:c.invalid_string,message:n.message}),s.dirty()):n.kind==="base64"?Ue.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"base64",code:c.invalid_string,message:n.message}),s.dirty()):n.kind==="base64url"?Fe.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"base64url",code:c.invalid_string,message:n.message}),s.dirty()):g.assertNever(n);return{status:s.value,value:e.data}}_regex(e,t,s){return this.refinement(a=>e.test(a),{validation:t,code:c.invalid_string,...l.errToObj(s)})}_addCheck(e){return new N({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...l.errToObj(e)})}url(e){return this._addCheck({kind:"url",...l.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...l.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...l.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...l.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...l.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...l.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...l.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...l.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...l.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...l.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...l.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...l.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(e==null?void 0:e.offset)??!1,local:(e==null?void 0:e.local)??!1,...l.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...l.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...l.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...l.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t==null?void 0:t.position,...l.errToObj(t==null?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...l.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...l.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...l.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...l.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...l.errToObj(t)})}nonempty(e){return this.min(1,l.errToObj(e))}trim(){return new N({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new N({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new N({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}N.create=r=>new N({checks:[],typeName:p.ZodString,coerce:(r==null?void 0:r.coerce)??!1,..._(r)});function Ge(r,e){const t=(r.toString().split(".")[1]||"").length,s=(e.toString().split(".")[1]||"").length,a=t>s?t:s,n=Number.parseInt(r.toFixed(a).replace(".","")),i=Number.parseInt(e.toFixed(a).replace(".",""));return n%i/10**a}class E extends y{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==u.number){const n=this._getOrReturnCtx(e);return o(n,{code:c.invalid_type,expected:u.number,received:n.parsedType}),m}let s;const a=new k;for(const n of this._def.checks)n.kind==="int"?g.isInteger(e.data)||(s=this._getOrReturnCtx(e,s),o(s,{code:c.invalid_type,expected:"integer",received:"float",message:n.message}),a.dirty()):n.kind==="min"?(n.inclusive?e.data<n.value:e.data<=n.value)&&(s=this._getOrReturnCtx(e,s),o(s,{code:c.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),a.dirty()):n.kind==="max"?(n.inclusive?e.data>n.value:e.data>=n.value)&&(s=this._getOrReturnCtx(e,s),o(s,{code:c.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),a.dirty()):n.kind==="multipleOf"?Ge(e.data,n.value)!==0&&(s=this._getOrReturnCtx(e,s),o(s,{code:c.not_multiple_of,multipleOf:n.value,message:n.message}),a.dirty()):n.kind==="finite"?Number.isFinite(e.data)||(s=this._getOrReturnCtx(e,s),o(s,{code:c.not_finite,message:n.message}),a.dirty()):g.assertNever(n);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,l.toString(t))}gt(e,t){return this.setLimit("min",e,!1,l.toString(t))}lte(e,t){return this.setLimit("max",e,!0,l.toString(t))}lt(e,t){return this.setLimit("max",e,!1,l.toString(t))}setLimit(e,t,s,a){return new E({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:s,message:l.toString(a)}]})}_addCheck(e){return new E({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:l.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:l.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:l.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:l.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:l.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:l.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:l.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:l.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:l.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&g.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(t===null||s.value>t)&&(t=s.value):s.kind==="max"&&(e===null||s.value<e)&&(e=s.value)}return Number.isFinite(t)&&Number.isFinite(e)}}E.create=r=>new E({checks:[],typeName:p.ZodNumber,coerce:(r==null?void 0:r.coerce)||!1,..._(r)});class L extends y{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==u.bigint)return this._getInvalidInput(e);let s;const a=new k;for(const n of this._def.checks)n.kind==="min"?(n.inclusive?e.data<n.value:e.data<=n.value)&&(s=this._getOrReturnCtx(e,s),o(s,{code:c.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),a.dirty()):n.kind==="max"?(n.inclusive?e.data>n.value:e.data>=n.value)&&(s=this._getOrReturnCtx(e,s),o(s,{code:c.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),a.dirty()):n.kind==="multipleOf"?e.data%n.value!==BigInt(0)&&(s=this._getOrReturnCtx(e,s),o(s,{code:c.not_multiple_of,multipleOf:n.value,message:n.message}),a.dirty()):g.assertNever(n);return{status:a.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return o(t,{code:c.invalid_type,expected:u.bigint,received:t.parsedType}),m}gte(e,t){return this.setLimit("min",e,!0,l.toString(t))}gt(e,t){return this.setLimit("min",e,!1,l.toString(t))}lte(e,t){return this.setLimit("max",e,!0,l.toString(t))}lt(e,t){return this.setLimit("max",e,!1,l.toString(t))}setLimit(e,t,s,a){return new L({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:s,message:l.toString(a)}]})}_addCheck(e){return new L({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:l.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:l.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:l.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:l.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:l.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}L.create=r=>new L({checks:[],typeName:p.ZodBigInt,coerce:(r==null?void 0:r.coerce)??!1,..._(r)});class se extends y{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==u.boolean){const s=this._getOrReturnCtx(e);return o(s,{code:c.invalid_type,expected:u.boolean,received:s.parsedType}),m}return b(e.data)}}se.create=r=>new se({typeName:p.ZodBoolean,coerce:(r==null?void 0:r.coerce)||!1,..._(r)});class U extends y{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==u.date){const n=this._getOrReturnCtx(e);return o(n,{code:c.invalid_type,expected:u.date,received:n.parsedType}),m}if(Number.isNaN(e.data.getTime())){const n=this._getOrReturnCtx(e);return o(n,{code:c.invalid_date}),m}const s=new k;let a;for(const n of this._def.checks)n.kind==="min"?e.data.getTime()<n.value&&(a=this._getOrReturnCtx(e,a),o(a,{code:c.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),s.dirty()):n.kind==="max"?e.data.getTime()>n.value&&(a=this._getOrReturnCtx(e,a),o(a,{code:c.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),s.dirty()):g.assertNever(n);return{status:s.value,value:new Date(e.data.getTime())}}_addCheck(e){return new U({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:l.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:l.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e!=null?new Date(e):null}}U.create=r=>new U({checks:[],coerce:(r==null?void 0:r.coerce)||!1,typeName:p.ZodDate,..._(r)});class ae extends y{_parse(e){if(this._getType(e)!==u.symbol){const s=this._getOrReturnCtx(e);return o(s,{code:c.invalid_type,expected:u.symbol,received:s.parsedType}),m}return b(e.data)}}ae.create=r=>new ae({typeName:p.ZodSymbol,..._(r)});class ne extends y{_parse(e){if(this._getType(e)!==u.undefined){const s=this._getOrReturnCtx(e);return o(s,{code:c.invalid_type,expected:u.undefined,received:s.parsedType}),m}return b(e.data)}}ne.create=r=>new ne({typeName:p.ZodUndefined,..._(r)});class ie extends y{_parse(e){if(this._getType(e)!==u.null){const s=this._getOrReturnCtx(e);return o(s,{code:c.invalid_type,expected:u.null,received:s.parsedType}),m}return b(e.data)}}ie.create=r=>new ie({typeName:p.ZodNull,..._(r)});class de extends y{constructor(){super(...arguments),this._any=!0}_parse(e){return b(e.data)}}de.create=r=>new de({typeName:p.ZodAny,..._(r)});class ce extends y{constructor(){super(...arguments),this._unknown=!0}_parse(e){return b(e.data)}}ce.create=r=>new ce({typeName:p.ZodUnknown,..._(r)});class A extends y{_parse(e){const t=this._getOrReturnCtx(e);return o(t,{code:c.invalid_type,expected:u.never,received:t.parsedType}),m}}A.create=r=>new A({typeName:p.ZodNever,..._(r)});class oe extends y{_parse(e){if(this._getType(e)!==u.undefined){const s=this._getOrReturnCtx(e);return o(s,{code:c.invalid_type,expected:u.void,received:s.parsedType}),m}return b(e.data)}}oe.create=r=>new oe({typeName:p.ZodVoid,..._(r)});class w extends y{_parse(e){const{ctx:t,status:s}=this._processInputParams(e),a=this._def;if(t.parsedType!==u.array)return o(t,{code:c.invalid_type,expected:u.array,received:t.parsedType}),m;if(a.exactLength!==null){const i=t.data.length>a.exactLength.value,d=t.data.length<a.exactLength.value;(i||d)&&(o(t,{code:i?c.too_big:c.too_small,minimum:d?a.exactLength.value:void 0,maximum:i?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),s.dirty())}if(a.minLength!==null&&t.data.length<a.minLength.value&&(o(t,{code:c.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),s.dirty()),a.maxLength!==null&&t.data.length>a.maxLength.value&&(o(t,{code:c.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),s.dirty()),t.common.async)return Promise.all([...t.data].map((i,d)=>a.type._parseAsync(new S(t,i,t.path,d)))).then(i=>k.mergeArray(s,i));const n=[...t.data].map((i,d)=>a.type._parseSync(new S(t,i,t.path,d)));return k.mergeArray(s,n)}get element(){return this._def.type}min(e,t){return new w({...this._def,minLength:{value:e,message:l.toString(t)}})}max(e,t){return new w({...this._def,maxLength:{value:e,message:l.toString(t)}})}length(e,t){return new w({...this._def,exactLength:{value:e,message:l.toString(t)}})}nonempty(e){return this.min(1,e)}}w.create=(r,e)=>new w({type:r,minLength:null,maxLength:null,exactLength:null,typeName:p.ZodArray,..._(e)});function R(r){if(r instanceof x){const e={};for(const t in r.shape){const s=r.shape[t];e[t]=O.create(R(s))}return new x({...r._def,shape:()=>e})}else return r instanceof w?new w({...r._def,type:R(r.element)}):r instanceof O?O.create(R(r.unwrap())):r instanceof V?V.create(R(r.unwrap())):r instanceof Z?Z.create(r.items.map(e=>R(e))):r}class x extends y{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),t=g.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==u.object){const f=this._getOrReturnCtx(e);return o(f,{code:c.invalid_type,expected:u.object,received:f.parsedType}),m}const{status:s,ctx:a}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),d=[];if(!(this._def.catchall instanceof A&&this._def.unknownKeys==="strip"))for(const f in a.data)i.includes(f)||d.push(f);const h=[];for(const f of i){const v=n[f],M=a.data[f];h.push({key:{status:"valid",value:f},value:v._parse(new S(a,M,a.path,f)),alwaysSet:f in a.data})}if(this._def.catchall instanceof A){const f=this._def.unknownKeys;if(f==="passthrough")for(const v of d)h.push({key:{status:"valid",value:v},value:{status:"valid",value:a.data[v]}});else if(f==="strict")d.length>0&&(o(a,{code:c.unrecognized_keys,keys:d}),s.dirty());else if(f!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const f=this._def.catchall;for(const v of d){const M=a.data[v];h.push({key:{status:"valid",value:v},value:f._parse(new S(a,M,a.path,v)),alwaysSet:v in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const f=[];for(const v of h){const M=await v.key,be=await v.value;f.push({key:M,value:be,alwaysSet:v.alwaysSet})}return f}).then(f=>k.mergeObjectSync(s,f)):k.mergeObjectSync(s,h)}get shape(){return this._def.shape()}strict(e){return l.errToObj,new x({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,s)=>{var n,i;const a=((i=(n=this._def).errorMap)==null?void 0:i.call(n,t,s).message)??s.defaultError;return t.code==="unrecognized_keys"?{message:l.errToObj(e).message??a}:{message:a}}}:{}})}strip(){return new x({...this._def,unknownKeys:"strip"})}passthrough(){return new x({...this._def,unknownKeys:"passthrough"})}extend(e){return new x({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new x({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:p.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new x({...this._def,catchall:e})}pick(e){const t={};for(const s of g.objectKeys(e))e[s]&&this.shape[s]&&(t[s]=this.shape[s]);return new x({...this._def,shape:()=>t})}omit(e){const t={};for(const s of g.objectKeys(this.shape))e[s]||(t[s]=this.shape[s]);return new x({...this._def,shape:()=>t})}deepPartial(){return R(this)}partial(e){const t={};for(const s of g.objectKeys(this.shape)){const a=this.shape[s];e&&!e[s]?t[s]=a:t[s]=a.optional()}return new x({...this._def,shape:()=>t})}required(e){const t={};for(const s of g.objectKeys(this.shape))if(e&&!e[s])t[s]=this.shape[s];else{let n=this.shape[s];for(;n instanceof O;)n=n._def.innerType;t[s]=n}return new x({...this._def,shape:()=>t})}keyof(){return ke(g.objectKeys(this.shape))}}x.create=(r,e)=>new x({shape:()=>r,unknownKeys:"strip",catchall:A.create(),typeName:p.ZodObject,..._(e)});x.strictCreate=(r,e)=>new x({shape:()=>r,unknownKeys:"strict",catchall:A.create(),typeName:p.ZodObject,..._(e)});x.lazycreate=(r,e)=>new x({shape:r,unknownKeys:"strip",catchall:A.create(),typeName:p.ZodObject,..._(e)});class F extends y{_parse(e){const{ctx:t}=this._processInputParams(e),s=this._def.options;function a(n){for(const d of n)if(d.result.status==="valid")return d.result;for(const d of n)if(d.result.status==="dirty")return t.common.issues.push(...d.ctx.common.issues),d.result;const i=n.map(d=>new C(d.ctx.common.issues));return o(t,{code:c.invalid_union,unionErrors:i}),m}if(t.common.async)return Promise.all(s.map(async n=>{const i={...t,common:{...t.common,issues:[]},parent:null};return{result:await n._parseAsync({data:t.data,path:t.path,parent:i}),ctx:i}})).then(a);{let n;const i=[];for(const h of s){const f={...t,common:{...t.common,issues:[]},parent:null},v=h._parseSync({data:t.data,path:t.path,parent:f});if(v.status==="valid")return v;v.status==="dirty"&&!n&&(n={result:v,ctx:f}),f.common.issues.length&&i.push(f.common.issues)}if(n)return t.common.issues.push(...n.ctx.common.issues),n.result;const d=i.map(h=>new C(h));return o(t,{code:c.invalid_union,unionErrors:d}),m}}get options(){return this._def.options}}F.create=(r,e)=>new F({options:r,typeName:p.ZodUnion,..._(e)});function H(r,e){const t=T(r),s=T(e);if(r===e)return{valid:!0,data:r};if(t===u.object&&s===u.object){const a=g.objectKeys(e),n=g.objectKeys(r).filter(d=>a.indexOf(d)!==-1),i={...r,...e};for(const d of n){const h=H(r[d],e[d]);if(!h.valid)return{valid:!1};i[d]=h.data}return{valid:!0,data:i}}else if(t===u.array&&s===u.array){if(r.length!==e.length)return{valid:!1};const a=[];for(let n=0;n<r.length;n++){const i=r[n],d=e[n],h=H(i,d);if(!h.valid)return{valid:!1};a.push(h.data)}return{valid:!0,data:a}}else return t===u.date&&s===u.date&&+r==+e?{valid:!0,data:r}:{valid:!1}}class B extends y{_parse(e){const{status:t,ctx:s}=this._processInputParams(e),a=(n,i)=>{if(ee(n)||ee(i))return m;const d=H(n.value,i.value);return d.valid?((te(n)||te(i))&&t.dirty(),{status:t.value,value:d.data}):(o(s,{code:c.invalid_intersection_types}),m)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([n,i])=>a(n,i)):a(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}B.create=(r,e,t)=>new B({left:r,right:e,typeName:p.ZodIntersection,..._(t)});class Z extends y{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==u.array)return o(s,{code:c.invalid_type,expected:u.array,received:s.parsedType}),m;if(s.data.length<this._def.items.length)return o(s,{code:c.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),m;!this._def.rest&&s.data.length>this._def.items.length&&(o(s,{code:c.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const n=[...s.data].map((i,d)=>{const h=this._def.items[d]||this._def.rest;return h?h._parse(new S(s,i,s.path,d)):null}).filter(i=>!!i);return s.common.async?Promise.all(n).then(i=>k.mergeArray(t,i)):k.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new Z({...this._def,rest:e})}}Z.create=(r,e)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Z({items:r,typeName:p.ZodTuple,rest:null,..._(e)})};class ue extends y{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==u.map)return o(s,{code:c.invalid_type,expected:u.map,received:s.parsedType}),m;const a=this._def.keyType,n=this._def.valueType,i=[...s.data.entries()].map(([d,h],f)=>({key:a._parse(new S(s,d,s.path,[f,"key"])),value:n._parse(new S(s,h,s.path,[f,"value"]))}));if(s.common.async){const d=new Map;return Promise.resolve().then(async()=>{for(const h of i){const f=await h.key,v=await h.value;if(f.status==="aborted"||v.status==="aborted")return m;(f.status==="dirty"||v.status==="dirty")&&t.dirty(),d.set(f.value,v.value)}return{status:t.value,value:d}})}else{const d=new Map;for(const h of i){const f=h.key,v=h.value;if(f.status==="aborted"||v.status==="aborted")return m;(f.status==="dirty"||v.status==="dirty")&&t.dirty(),d.set(f.value,v.value)}return{status:t.value,value:d}}}}ue.create=(r,e,t)=>new ue({valueType:e,keyType:r,typeName:p.ZodMap,..._(t)});class z extends y{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==u.set)return o(s,{code:c.invalid_type,expected:u.set,received:s.parsedType}),m;const a=this._def;a.minSize!==null&&s.data.size<a.minSize.value&&(o(s,{code:c.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),t.dirty()),a.maxSize!==null&&s.data.size>a.maxSize.value&&(o(s,{code:c.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),t.dirty());const n=this._def.valueType;function i(h){const f=new Set;for(const v of h){if(v.status==="aborted")return m;v.status==="dirty"&&t.dirty(),f.add(v.value)}return{status:t.value,value:f}}const d=[...s.data.values()].map((h,f)=>n._parse(new S(s,h,s.path,f)));return s.common.async?Promise.all(d).then(h=>i(h)):i(d)}min(e,t){return new z({...this._def,minSize:{value:e,message:l.toString(t)}})}max(e,t){return new z({...this._def,maxSize:{value:e,message:l.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}z.create=(r,e)=>new z({valueType:r,minSize:null,maxSize:null,typeName:p.ZodSet,..._(e)});class le extends y{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}le.create=(r,e)=>new le({getter:r,typeName:p.ZodLazy,..._(e)});class he extends y{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return o(t,{received:t.data,code:c.invalid_literal,expected:this._def.value}),m}return{status:"valid",value:e.data}}get value(){return this._def.value}}he.create=(r,e)=>new he({value:r,typeName:p.ZodLiteral,..._(e)});function ke(r,e){return new j({values:r,typeName:p.ZodEnum,..._(e)})}class j extends y{_parse(e){if(typeof e.data!="string"){const t=this._getOrReturnCtx(e),s=this._def.values;return o(t,{expected:g.joinValues(s),received:t.parsedType,code:c.invalid_type}),m}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const t=this._getOrReturnCtx(e),s=this._def.values;return o(t,{received:t.data,code:c.invalid_enum_value,options:s}),m}return b(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return j.create(e,{...this._def,...t})}exclude(e,t=this._def){return j.create(this.options.filter(s=>!e.includes(s)),{...this._def,...t})}}j.create=ke;class fe extends y{_parse(e){const t=g.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(e);if(s.parsedType!==u.string&&s.parsedType!==u.number){const a=g.objectValues(t);return o(s,{expected:g.joinValues(a),received:s.parsedType,code:c.invalid_type}),m}if(this._cache||(this._cache=new Set(g.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const a=g.objectValues(t);return o(s,{received:s.data,code:c.invalid_enum_value,options:a}),m}return b(e.data)}get enum(){return this._def.values}}fe.create=(r,e)=>new fe({values:r,typeName:p.ZodNativeEnum,..._(e)});class W extends y{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==u.promise&&t.common.async===!1)return o(t,{code:c.invalid_type,expected:u.promise,received:t.parsedType}),m;const s=t.parsedType===u.promise?t.data:Promise.resolve(t.data);return b(s.then(a=>this._def.type.parseAsync(a,{path:t.path,errorMap:t.common.contextualErrorMap})))}}W.create=(r,e)=>new W({type:r,typeName:p.ZodPromise,..._(e)});class $ extends y{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===p.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:s}=this._processInputParams(e),a=this._def.effect||null,n={addIssue:i=>{o(s,i),i.fatal?t.abort():t.dirty()},get path(){return s.path}};if(n.addIssue=n.addIssue.bind(n),a.type==="preprocess"){const i=a.transform(s.data,n);if(s.common.async)return Promise.resolve(i).then(async d=>{if(t.value==="aborted")return m;const h=await this._def.schema._parseAsync({data:d,path:s.path,parent:s});return h.status==="aborted"?m:h.status==="dirty"||t.value==="dirty"?P(h.value):h});{if(t.value==="aborted")return m;const d=this._def.schema._parseSync({data:i,path:s.path,parent:s});return d.status==="aborted"?m:d.status==="dirty"||t.value==="dirty"?P(d.value):d}}if(a.type==="refinement"){const i=d=>{const h=a.refinement(d,n);if(s.common.async)return Promise.resolve(h);if(h instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return d};if(s.common.async===!1){const d=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return d.status==="aborted"?m:(d.status==="dirty"&&t.dirty(),i(d.value),{status:t.value,value:d.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(d=>d.status==="aborted"?m:(d.status==="dirty"&&t.dirty(),i(d.value).then(()=>({status:t.value,value:d.value}))))}if(a.type==="transform")if(s.common.async===!1){const i=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!I(i))return m;const d=a.transform(i.value,n);if(d instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:d}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(i=>I(i)?Promise.resolve(a.transform(i.value,n)).then(d=>({status:t.value,value:d})):m);g.assertNever(a)}}$.create=(r,e,t)=>new $({schema:r,typeName:p.ZodEffects,effect:e,..._(t)});$.createWithPreprocess=(r,e,t)=>new $({schema:e,effect:{type:"preprocess",transform:r},typeName:p.ZodEffects,..._(t)});class O extends y{_parse(e){return this._getType(e)===u.undefined?b(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}O.create=(r,e)=>new O({innerType:r,typeName:p.ZodOptional,..._(e)});class V extends y{_parse(e){return this._getType(e)===u.null?b(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}V.create=(r,e)=>new V({innerType:r,typeName:p.ZodNullable,..._(e)});class J extends y{_parse(e){const{ctx:t}=this._processInputParams(e);let s=t.data;return t.parsedType===u.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}J.create=(r,e)=>new J({innerType:r,typeName:p.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,..._(e)});class G extends y{_parse(e){const{ctx:t}=this._processInputParams(e),s={...t,common:{...t.common,issues:[]}},a=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return D(a)?a.then(n=>({status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new C(s.common.issues)},input:s.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new C(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}G.create=(r,e)=>new G({innerType:r,typeName:p.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,..._(e)});class me extends y{_parse(e){if(this._getType(e)!==u.nan){const s=this._getOrReturnCtx(e);return o(s,{code:c.invalid_type,expected:u.nan,received:s.parsedType}),m}return{status:"valid",value:e.data}}}me.create=r=>new me({typeName:p.ZodNaN,..._(r)});class Qe extends y{_parse(e){const{ctx:t}=this._processInputParams(e),s=t.data;return this._def.type._parse({data:s,path:t.path,parent:t})}unwrap(){return this._def.type}}class X extends y{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.common.async)return(async()=>{const n=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return n.status==="aborted"?m:n.status==="dirty"?(t.dirty(),P(n.value)):this._def.out._parseAsync({data:n.value,path:s.path,parent:s})})();{const a=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?m:a.status==="dirty"?(t.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:s.path,parent:s})}}static create(e,t){return new X({in:e,out:t,typeName:p.ZodPipeline})}}class Q extends y{_parse(e){const t=this._def.innerType._parse(e),s=a=>(I(a)&&(a.value=Object.freeze(a.value)),a);return D(t)?t.then(a=>s(a)):s(t)}unwrap(){return this._def.innerType}}Q.create=(r,e)=>new Q({innerType:r,typeName:p.ZodReadonly,..._(e)});var p;(function(r){r.ZodString="ZodString",r.ZodNumber="ZodNumber",r.ZodNaN="ZodNaN",r.ZodBigInt="ZodBigInt",r.ZodBoolean="ZodBoolean",r.ZodDate="ZodDate",r.ZodSymbol="ZodSymbol",r.ZodUndefined="ZodUndefined",r.ZodNull="ZodNull",r.ZodAny="ZodAny",r.ZodUnknown="ZodUnknown",r.ZodNever="ZodNever",r.ZodVoid="ZodVoid",r.ZodArray="ZodArray",r.ZodObject="ZodObject",r.ZodUnion="ZodUnion",r.ZodDiscriminatedUnion="ZodDiscriminatedUnion",r.ZodIntersection="ZodIntersection",r.ZodTuple="ZodTuple",r.ZodRecord="ZodRecord",r.ZodMap="ZodMap",r.ZodSet="ZodSet",r.ZodFunction="ZodFunction",r.ZodLazy="ZodLazy",r.ZodLiteral="ZodLiteral",r.ZodEnum="ZodEnum",r.ZodEffects="ZodEffects",r.ZodNativeEnum="ZodNativeEnum",r.ZodOptional="ZodOptional",r.ZodNullable="ZodNullable",r.ZodDefault="ZodDefault",r.ZodCatch="ZodCatch",r.ZodPromise="ZodPromise",r.ZodBranded="ZodBranded",r.ZodPipeline="ZodPipeline",r.ZodReadonly="ZodReadonly"})(p||(p={}));const pe=N.create,Xe=E.create;A.create;w.create;const Ke=x.create;F.create;B.create;Z.create;j.create;W.create;O.create;V.create;const et="0x06fdde03",tt=[],rt=[{type:"string"}];async function st(r){return ye({contract:r.contract,method:[et,tt,rt],params:[]})}async function at(r){return ge(()=>st(r),{cacheKey:`${r.contract.chain.id}:${r.contract.address}:name`,cacheTime:Number.POSITIVE_INFINITY})}const nt="0x95d89b41",it=[],dt=[{type:"string"}];async function ct(r){return ye({contract:r.contract,method:[nt,it,dt],params:[]})}async function ot(r){return ge(()=>ct(r),{cacheKey:`${r.contract.chain.id}:${r.contract.address}:symbol`,cacheTime:Number.POSITIVE_INFINITY})}const _e=Ke({name:pe().default("Ether"),symbol:pe().default("ETH"),decimals:Xe().default(18)}).default({name:"Ether",symbol:"ETH",decimals:18});async function pt(r){if(Ce(r.contract.address)){if(!r.contract.chain.nativeCurrency||!r.contract.chain.nativeCurrency.name||!r.contract.chain.nativeCurrency.symbol||!r.contract.chain.nativeCurrency.decimals)try{const{getChainMetadata:e}=await we(async()=>{const{getChainMetadata:s}=await import("./ThirdwebWalletManager-_8PV4raS.js").then(a=>a.es);return{getChainMetadata:s}},__vite__mapDeps([0,1,2,3,4,5])),t=await e(r.contract.chain);return _e.parse({...t.nativeCurrency,...r.contract.chain.nativeCurrency})}catch{}return _e.parse(r.contract.chain.nativeCurrency)}try{const[e,t,s]=await Promise.all([at(r).catch(()=>""),ot(r),Te(r)]);return{decimals:s,name:e,symbol:t}}catch(e){throw new Error(`Invalid currency token: ${e}`)}}export{pt as getCurrencyMetadata};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t}from"./signing-
|
|
1
|
+
import{r as t}from"./signing-DR1diqT_.js";import"./utils-CUIXWH1v.js";import"./index-C9kcmpvP.js";const n="0x3e429396",o=[],a=[{components:[{name:"implementation",type:"address"},{components:[{name:"registerInstallationCallback",type:"bool"},{name:"requiredInterfaces",type:"bytes4[]"},{name:"supportedInterfaces",type:"bytes4[]"},{components:[{name:"selector",type:"bytes4"}],name:"callbackFunctions",type:"tuple[]"},{components:[{name:"selector",type:"bytes4"},{name:"permissionBits",type:"uint256"}],name:"fallbackFunctions",type:"tuple[]"}],name:"config",type:"tuple"}],type:"tuple[]"}];async function r(e){return t({contract:e.contract,method:[n,o,a],params:[]})}export{n as FN_SELECTOR,r as getInstalledModules};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t}from"./ThirdwebWalletManager-
|
|
1
|
+
import{r as t}from"./ThirdwebWalletManager-_8PV4raS.js";import"./index-C9kcmpvP.js";import"./store-CraP4F4Y.js";import"./webauthn.min-CGpVStYZ.js";import"./index.es-D0_25Oh-.js";const n="0x3e429396",o=[],a=[{components:[{name:"implementation",type:"address"},{components:[{name:"registerInstallationCallback",type:"bool"},{name:"requiredInterfaces",type:"bytes4[]"},{name:"supportedInterfaces",type:"bytes4[]"},{components:[{name:"selector",type:"bytes4"}],name:"callbackFunctions",type:"tuple[]"},{components:[{name:"selector",type:"bytes4"},{name:"permissionBits",type:"uint256"}],name:"fallbackFunctions",type:"tuple[]"}],name:"config",type:"tuple"}],type:"tuple[]"}];async function l(e){return t({contract:e.contract,method:[n,o,a],params:[]})}export{n as FN_SELECTOR,l as getInstalledModules};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,ar as d,as as i}from"./ThirdwebWalletManager-
|
|
1
|
+
import{r as a,ar as d,as as i}from"./ThirdwebWalletManager-_8PV4raS.js";import{f as o}from"./fetchTokenMetadata-CVbxD3VO.js";import{totalSupply as u}from"./totalSupply-Ce2t0W0d.js";import"./index-C9kcmpvP.js";import"./store-CraP4F4Y.js";import"./webauthn.min-CGpVStYZ.js";import"./index.es-D0_25Oh-.js";import"./detectExtension-DaHwTBEl.js";const I="0x0e89341c",k=[{name:"tokenId",type:"uint256"}],m=[{type:"string"}];async function f(t){return a({contract:t.contract,method:[I,k,m],params:[t.tokenId]})}async function C(t){const{useIndexer:r=!0}=t;if(r)try{return await s(t)}catch{return await c(t)}return await c(t)}async function s(t){const r=await d({chain:t.contract.chain,client:t.contract.client,contractAddress:t.contract.address,tokenId:t.tokenId});return r||c(t)}async function c(t){const[r,e]=await Promise.all([f({contract:t.contract,tokenId:t.tokenId}),u({contract:t.contract,id:t.tokenId}).catch(()=>0n)]);return i(await o({client:t.contract.client,tokenId:t.tokenId,tokenUri:r}).then(n=>n||{id:t.tokenId,type:"ERC1155",uri:r}).catch(()=>({id:t.tokenId,type:"ERC1155",uri:r})),{chainId:t.contract.chain.id,owner:null,supply:e,tokenAddress:t.contract.address,tokenId:t.tokenId,tokenUri:r,type:"ERC1155"})}export{C as getNFT};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ownerOf-
|
|
2
|
-
import{_ as o}from"./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ownerOf-3vffreXZ.js","assets/signing-DR1diqT_.js","assets/utils-CUIXWH1v.js","assets/index-C9kcmpvP.js","assets/index-BGvsmbMC.css","assets/detectExtension-C1-4KxEP.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as o}from"./index-C9kcmpvP.js";import{f as m}from"./fetchTokenMetadata-Cjc5LBLb.js";import{parseNFT as i}from"./parseNft-bgONNYbj.js";import{r as d}from"./signing-DR1diqT_.js";import{g as u}from"./thirdweb-CuTQabzI.js";import"./uint8-array-DZKEMhA1.js";import"./utils-CUIXWH1v.js";import"./wait-for-tx-receipt-CdM1R_-M.js";import"./transactionReceipt-DgYVdPLL.js";import"./sleep-mAKpSMLY.js";import"./eth_estimateGas-BLq5fjmK.js";import"./eth_getStorageAt-BdHAJUde.js";import"./eth_getTransactionCount-uA-BuCYb.js";import"./decimals-CDYEp2UZ.js";import"./decimals-C88RWTdk.js";import"./zora-sepolia-BS_ncL_N.js";import"./send-batch-transaction-BvT25Mc6.js";const f="0xc87b56dd",y=[{name:"_tokenId",type:"uint256"}],I=[{type:"string"}];async function h(t){return d({contract:t.contract,method:[f,y,I],params:[t.tokenId]})}const k="0x4f6ccce7",l=[{name:"_index",type:"uint256"}],s=[{type:"uint256"}];async function _(t){return d({contract:t.contract,method:[k,l,s],params:[t.index]})}async function B(t){const{useIndexer:r=!0}=t;if(r)try{return await T(t)}catch{return await e(t)}return await e(t)}async function T(t){const r=await u({chain:t.contract.chain,client:t.contract.client,contractAddress:t.contract.address,includeOwners:t.includeOwner,tokenId:t.tokenId});return r||e(t)}async function e(t){let r=t.tokenId;if(t.tokenByIndex)try{r=await _({contract:t.contract,index:t.tokenId})}catch{}const[n,a]=await Promise.all([h({contract:t.contract,tokenId:r}).catch(()=>null),t.includeOwner?o(()=>import("./ownerOf-3vffreXZ.js"),__vite__mapDeps([0,1,2,3,4,5])).then(c=>c.ownerOf({contract:t.contract,tokenId:r})).catch(()=>null):null]);return n!=null&&n.trim()?i(await m({client:t.contract.client,tokenId:r,tokenUri:n}).then(c=>c||{id:r,type:"ERC721",uri:n}).catch(()=>({id:r,type:"ERC721",uri:n})),{chainId:t.contract.chain.id,owner:a,tokenAddress:t.contract.address,tokenId:r,tokenUri:n,type:"ERC721"}):i({id:r,type:"ERC721",uri:""},{chainId:t.contract.chain.id,owner:a,tokenAddress:t.contract.address,tokenId:r,tokenUri:"",type:"ERC721"})}export{B as getNFT};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ownerOf-
|
|
2
|
-
import{_ as o}from"./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ownerOf-BjvDIwi2.js","assets/ThirdwebWalletManager-_8PV4raS.js","assets/index-C9kcmpvP.js","assets/index-BGvsmbMC.css","assets/store-CraP4F4Y.js","assets/webauthn.min-CGpVStYZ.js","assets/index.es-D0_25Oh-.js","assets/detectExtension-DaHwTBEl.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as o}from"./index-C9kcmpvP.js";import{f as u}from"./fetchTokenMetadata-CVbxD3VO.js";import{r as i,ar as m,as as d}from"./ThirdwebWalletManager-_8PV4raS.js";import"./store-CraP4F4Y.js";import"./webauthn.min-CGpVStYZ.js";import"./index.es-D0_25Oh-.js";const s="0xc87b56dd",f=[{name:"_tokenId",type:"uint256"}],y=[{type:"string"}];async function I(t){return i({contract:t.contract,method:[s,f,y],params:[t.tokenId]})}const h="0x4f6ccce7",k=[{name:"_index",type:"uint256"}],l=[{type:"uint256"}];async function _(t){return i({contract:t.contract,method:[h,k,l],params:[t.index]})}async function x(t){const{useIndexer:n=!0}=t;if(n)try{return await T(t)}catch{return await r(t)}return await r(t)}async function T(t){const n=await m({chain:t.contract.chain,client:t.contract.client,contractAddress:t.contract.address,includeOwners:t.includeOwner,tokenId:t.tokenId});return n||r(t)}async function r(t){let n=t.tokenId;if(t.tokenByIndex)try{n=await _({contract:t.contract,index:t.tokenId})}catch{}const[c,a]=await Promise.all([I({contract:t.contract,tokenId:n}).catch(()=>null),t.includeOwner?o(()=>import("./ownerOf-BjvDIwi2.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])).then(e=>e.ownerOf({contract:t.contract,tokenId:n})).catch(()=>null):null]);return c!=null&&c.trim()?d(await u({client:t.contract.client,tokenId:n,tokenUri:c}).then(e=>e||{id:n,type:"ERC721",uri:c}).catch(()=>({id:n,type:"ERC721",uri:c})),{chainId:t.contract.chain.id,owner:a,tokenAddress:t.contract.address,tokenId:n,tokenUri:c,type:"ERC721"}):d({id:n,type:"ERC721",uri:""},{chainId:t.contract.chain.id,owner:a,tokenAddress:t.contract.address,tokenId:n,tokenUri:"",type:"ERC721"})}export{x as getNFT};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as a}from"./thirdweb-
|
|
1
|
+
import{g as a}from"./thirdweb-CuTQabzI.js";import{f as o}from"./fetchTokenMetadata-Cjc5LBLb.js";import{parseNFT as i}from"./parseNft-bgONNYbj.js";import{totalSupply as d}from"./totalSupply-CVGbD7FC.js";import{r as m}from"./signing-DR1diqT_.js";import"./utils-CUIXWH1v.js";import"./index-C9kcmpvP.js";import"./wait-for-tx-receipt-CdM1R_-M.js";import"./transactionReceipt-DgYVdPLL.js";import"./sleep-mAKpSMLY.js";import"./eth_estimateGas-BLq5fjmK.js";import"./eth_getStorageAt-BdHAJUde.js";import"./eth_getTransactionCount-uA-BuCYb.js";import"./decimals-CDYEp2UZ.js";import"./decimals-C88RWTdk.js";import"./zora-sepolia-BS_ncL_N.js";import"./send-batch-transaction-BvT25Mc6.js";import"./uint8-array-DZKEMhA1.js";import"./detectExtension-C1-4KxEP.js";const u="0x0e89341c",I=[{name:"tokenId",type:"uint256"}],k=[{type:"string"}];async function f(t){return m({contract:t.contract,method:[u,I,k],params:[t.tokenId]})}async function L(t){const{useIndexer:r=!0}=t;if(r)try{return await p(t)}catch{return await c(t)}return await c(t)}async function p(t){const r=await a({chain:t.contract.chain,client:t.contract.client,contractAddress:t.contract.address,tokenId:t.tokenId});return r||c(t)}async function c(t){const[r,e]=await Promise.all([f({contract:t.contract,tokenId:t.tokenId}),d({contract:t.contract,id:t.tokenId}).catch(()=>0n)]);return i(await o({client:t.contract.client,tokenId:t.tokenId,tokenUri:r}).then(n=>n||{id:t.tokenId,type:"ERC1155",uri:r}).catch(()=>({id:t.tokenId,type:"ERC1155",uri:r})),{chainId:t.contract.chain.id,owner:null,supply:e,tokenAddress:t.contract.address,tokenId:t.tokenId,tokenUri:r,type:"ERC1155"})}export{L as getNFT};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{I as u,J as A,B as h,C as I,K as M,L as k,M as C,N as _,O as N,P as b,Q as O,G as B,p as T,R as E}from"./signing-
|
|
1
|
+
import{I as u,J as A,B as h,C as I,K as M,L as k,M as C,N as _,O as N,P as b,Q as O,G as B,p as T,R as E}from"./signing-DR1diqT_.js";function j(e){const t=u(`0x${e.substring(4)}`).substring(26);return A(`0x${t}`)}function G(e,{errorInstance:t=new Error("timed out"),timeout:s,signal:n}){return new Promise((r,a)=>{(async()=>{let o;try{const i=new AbortController;s>0&&(o=setTimeout(()=>{n?i.abort():a(t)},s)),r(await e({signal:(i==null?void 0:i.signal)||null}))}catch(i){(i==null?void 0:i.name)==="AbortError"&&a(t),a(i)}finally{clearTimeout(o)}})()})}class R extends h{constructor({domain:t}){super(`Invalid domain "${I(t)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class H extends h{constructor({primaryType:t,types:s}){super(`Invalid primary type \`${t}\` must be one of \`${JSON.stringify(Object.keys(s))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}class W extends h{constructor({type:t}){super(`Struct type "${t}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}function Q(e){const{domain:t,message:s,primaryType:n,types:r}=e,a=(m,l)=>{const p={...l};for(const c of m){const{name:f,type:d}=c;d==="address"&&(p[f]=p[f].toLowerCase())}return p},o=r.EIP712Domain?t?a(r.EIP712Domain,t):{}:{},i=(()=>{if(n!=="EIP712Domain")return a(r[n],s)})();return I({domain:o,message:i,primaryType:n,types:r})}function F(e){const{domain:t,message:s,primaryType:n,types:r}=e,a=(o,i)=>{for(const m of o){const{name:l,type:p}=m,c=i[l],f=p.match(M);if(f&&(typeof c=="number"||typeof c=="bigint")){const[$,y,z]=f;k(c,{signed:y==="int",size:Number.parseInt(z,10)/8})}if(p==="address"&&typeof c=="string"&&!C(c))throw new _({address:c});const d=p.match(N);if(d){const[$,y]=d;if(y&&b(c)!==Number.parseInt(y,10))throw new O({expectedSize:Number.parseInt(y,10),givenSize:b(c)})}const g=r[p];g&&(J(p),a(g,c))}};if(r.EIP712Domain&&t){if(typeof t!="object")throw new R({domain:t});a(r.EIP712Domain,t)}if(n!=="EIP712Domain")if(r[n])a(r[n],s);else throw new H({primaryType:n,types:r})}function D({domain:e}){return[typeof(e==null?void 0:e.name)=="string"&&{name:"name",type:"string"},(e==null?void 0:e.version)&&{name:"version",type:"string"},(typeof(e==null?void 0:e.chainId)=="number"||typeof(e==null?void 0:e.chainId)=="bigint")&&{name:"chainId",type:"uint256"},(e==null?void 0:e.verifyingContract)&&{name:"verifyingContract",type:"address"},(e==null?void 0:e.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}function q({domain:e}){return w({domain:e,types:{EIP712Domain:D({domain:e})}})}function J(e){if(e==="address"||e==="bool"||e==="string"||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new W({type:e})}function U(e){const{domain:t={},message:s,primaryType:n}=e,r={EIP712Domain:D({domain:t}),...e.types};F({domain:t,message:s,primaryType:n,types:r});const a=["0x1901"];return t&&a.push(w({domain:t,types:r})),n!=="EIP712Domain"&&a.push(P({data:s,primaryType:n,types:r})),u(B(a))}function w({domain:e,types:t}){return P({data:e,primaryType:"EIP712Domain",types:t})}function P({data:e,primaryType:t,types:s}){const n=v({data:e,primaryType:t,types:s});return u(n)}function v({data:e,primaryType:t,types:s}){const n=[{type:"bytes32"}],r=[K({primaryType:t,types:s})];for(const a of s[t]){const[o,i]=S({types:s,name:a.name,type:a.type,value:e[a.name]});n.push(o),r.push(i)}return T(n,r)}function K({primaryType:e,types:t}){const s=E(L({primaryType:e,types:t}));return u(s)}function L({primaryType:e,types:t}){let s="";const n=x({primaryType:e,types:t});n.delete(e);const r=[e,...Array.from(n).sort()];for(const a of r)s+=`${a}(${t[a].map(({name:o,type:i})=>`${i} ${o}`).join(",")})`;return s}function x({primaryType:e,types:t},s=new Set){const n=e.match(/^\w*/u),r=n==null?void 0:n[0];if(s.has(r)||t[r]===void 0)return s;s.add(r);for(const a of t[r])x({primaryType:a.type,types:t},s);return s}function S({types:e,name:t,type:s,value:n}){if(e[s]!==void 0)return[{type:"bytes32"},u(v({data:n,primaryType:s,types:e}))];if(s==="bytes")return n=`0x${(n.length%2?"0":"")+n.slice(2)}`,[{type:"bytes32"},u(n)];if(s==="string")return[{type:"bytes32"},u(E(n))];if(s.lastIndexOf("]")===s.length-1){const r=s.slice(0,s.lastIndexOf("[")),a=n.map(o=>S({name:t,type:r,types:e,value:o}));return[{type:"bytes32"},u(T(a.map(([o])=>o),a.map(([,o])=>o)))]}return[{type:s},n]}export{R as I,H as a,W as b,w as c,P as d,q as e,D as g,U as h,j as p,Q as s,F as v,G as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as p}from"./wait-for-tx-receipt-
|
|
1
|
+
import{e as p}from"./wait-for-tx-receipt-CdM1R_-M.js";import{m as h}from"./signing-DR1diqT_.js";import{s as m,a as f}from"./send-batch-transaction-BvT25Mc6.js";import{L as b}from"./utils-CUIXWH1v.js";import{r as g}from"./wallets-Eh21KMYV.js";import"./transactionReceipt-DgYVdPLL.js";import"./sleep-mAKpSMLY.js";import"./index-C9kcmpvP.js";import"./store-CraP4F4Y.js";import"./hashTypedData-LY3QUtcD.js";import"./index.es-D0_25Oh-.js";import"./ethereum-G9jle5Re.js";const u=new b(1e3);async function R(i){const{account:n,calls:l}=i,o=l.map(a=>({...a,chain:i.chain})),s=[],c=g(65);if(u.set(c,s),n.sendBatchTransaction){const a=await m({account:n,transactions:o});s.push(a.transactionHash),u.set(c,s)}else for(const a of o){const r=await f({account:n,transaction:a});s.push(r.transactionHash),u.set(c,s)}return c}async function W(i){const{chain:n,client:l,id:o}=i,s=u.get(o);if(!s)throw new Error("Failed to get calls status, unknown bundle id");const c=h({chain:n,client:l});let a="success";const r=await Promise.all(s.map(d=>p(c,{hash:d}).then(t=>({blockHash:t.blockHash,blockNumber:t.blockNumber,gasUsed:t.gasUsed,logs:t.logs.map(e=>({address:e.address,data:e.data,topics:e.topics})),status:t.status,transactionHash:t.transactionHash})).catch(()=>(a="pending",null))));return{atomic:!1,chainId:n.id,id:o,receipts:r.filter(d=>d!==null),status:a,statusCode:200,version:"2.0.0"}}async function $(i){const{chain:n,client:l,id:o}=i,s=u.get(o);if(!s)throw new Error("Failed to get calls status, unknown bundle id");const c=h({chain:n,client:l});let a=200;const r=[];for(const d of s)try{const t=await p(c,{hash:d});r.push({blockHash:t.blockHash,blockNumber:`0x${t.blockNumber.toString(16)}`,gasUsed:`0x${t.gasUsed.toString(16)}`,logs:t.logs.map(e=>({address:e.address,data:e.data,topics:e.topics})),status:t.status==="success"?"0x1":"0x0",transactionHash:t.transactionHash})}catch{a=100}return{atomic:!1,chainId:`0x${n.id.toString(16)}`,id:o,receipts:r,status:a,version:"2.0.0"}}export{W as inAppWalletGetCallsStatus,$ as inAppWalletGetCallsStatusRaw,R as inAppWalletSendCalls};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{at as m,a0 as b,au as f,av as h,aw as p,ax as g}from"./ThirdwebWalletManager-
|
|
1
|
+
import{at as m,a0 as b,au as f,av as h,aw as p,ax as g}from"./ThirdwebWalletManager-_8PV4raS.js";import{sendBatchTransaction as w}from"./send-batch-transaction-BgQySJ-T.js";import"./index-C9kcmpvP.js";import"./store-CraP4F4Y.js";import"./webauthn.min-CGpVStYZ.js";import"./index.es-D0_25Oh-.js";async function H(o){const s=await m(o);return b(s)}const d=new f(1e3);async function A(o){const{account:s,calls:l}=o,c=l.map(n=>({...n,chain:o.chain})),a=[],e=g(65);if(d.set(e,a),s.sendBatchTransaction){const n=await w({account:s,transactions:c});a.push(n.transactionHash),d.set(e,a)}else for(const n of c){const r=await H({account:s,transaction:n});a.push(r.transactionHash),d.set(e,a)}return e}async function N(o){const{chain:s,client:l,id:c}=o,a=d.get(c);if(!a)throw new Error("Failed to get calls status, unknown bundle id");const e=h({chain:s,client:l});let n="success";const r=await Promise.all(a.map(u=>p(e,{hash:u}).then(t=>({blockHash:t.blockHash,blockNumber:t.blockNumber,gasUsed:t.gasUsed,logs:t.logs.map(i=>({address:i.address,data:i.data,topics:i.topics})),status:t.status,transactionHash:t.transactionHash})).catch(()=>(n="pending",null))));return{atomic:!1,chainId:s.id,id:c,receipts:r.filter(u=>u!==null),status:n,statusCode:200,version:"2.0.0"}}async function R(o){const{chain:s,client:l,id:c}=o,a=d.get(c);if(!a)throw new Error("Failed to get calls status, unknown bundle id");const e=h({chain:s,client:l});let n=200;const r=[];for(const u of a)try{const t=await p(e,{hash:u});r.push({blockHash:t.blockHash,blockNumber:`0x${t.blockNumber.toString(16)}`,gasUsed:`0x${t.gasUsed.toString(16)}`,logs:t.logs.map(i=>({address:i.address,data:i.data,topics:i.topics})),status:t.status==="success"?"0x1":"0x0",transactionHash:t.transactionHash})}catch{n=100}return{atomic:!1,chainId:`0x${s.id.toString(16)}`,id:c,receipts:r,status:n,version:"2.0.0"}}export{N as inAppWalletGetCallsStatus,R as inAppWalletGetCallsStatusRaw,A as inAppWalletSendCalls};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Ce=Object.defineProperty;var pe=(r,I,d)=>I in r?Ce(r,I,{enumerable:!0,configurable:!0,writable:!0,value:d}):r[I]=d;var B0=(r,I,d)=>pe(r,typeof I!="symbol"?I+"":I,d);import{a as Ae,j as _e}from"./index-CsRobnsY.js";import{c as z,m as Fe,n as De,g as ge}from"./index-CTPexb85.js";var ee={exports:{}},F0={exports:{}},pr;function q(){return pr||(pr=1,function(r,I){(function(d,t){r.exports=t()})(z,function(){var d=d||function(t,_){var A;if(typeof window<"u"&&window.crypto&&(A=window.crypto),typeof self<"u"&&self.crypto&&(A=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(A=globalThis.crypto),!A&&typeof window<"u"&&window.msCrypto&&(A=window.msCrypto),!A&&typeof z<"u"&&z.crypto&&(A=z.crypto),!A&&typeof Fe=="function")try{A=De}catch{}var y=function(){if(A){if(typeof A.getRandomValues=="function")try{return A.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof A.randomBytes=="function")try{return A.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||function(){function i(){}return function(n){var c;return i.prototype=n,c=new i,i.prototype=null,c}}(),u={},e=u.lib={},x=e.Base=function(){return{extend:function(i){var n=l(this);return i&&n.mixIn(i),(!n.hasOwnProperty("init")||this.init===n.init)&&(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var i=this.extend();return i.init.apply(i,arguments),i},init:function(){},mixIn:function(i){for(var n in i)i.hasOwnProperty(n)&&(this[n]=i[n]);i.hasOwnProperty("toString")&&(this.toString=i.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),E=e.WordArray=x.extend({init:function(i,n){i=this.words=i||[],n!=_?this.sigBytes=n:this.sigBytes=i.length*4},toString:function(i){return(i||f).stringify(this)},concat:function(i){var n=this.words,c=i.words,p=this.sigBytes,C=i.sigBytes;if(this.clamp(),p%4)for(var F=0;F<C;F++){var g=c[F>>>2]>>>24-F%4*8&255;n[p+F>>>2]|=g<<24-(p+F)%4*8}else for(var H=0;H<C;H+=4)n[p+H>>>2]=c[H>>>2];return this.sigBytes+=C,this},clamp:function(){var i=this.words,n=this.sigBytes;i[n>>>2]&=4294967295<<32-n%4*8,i.length=t.ceil(n/4)},clone:function(){var i=x.clone.call(this);return i.words=this.words.slice(0),i},random:function(i){for(var n=[],c=0;c<i;c+=4)n.push(y());return new E.init(n,i)}}),a=u.enc={},f=a.Hex={stringify:function(i){for(var n=i.words,c=i.sigBytes,p=[],C=0;C<c;C++){var F=n[C>>>2]>>>24-C%4*8&255;p.push((F>>>4).toString(16)),p.push((F&15).toString(16))}return p.join("")},parse:function(i){for(var n=i.length,c=[],p=0;p<n;p+=2)c[p>>>3]|=parseInt(i.substr(p,2),16)<<24-p%8*4;return new E.init(c,n/2)}},o=a.Latin1={stringify:function(i){for(var n=i.words,c=i.sigBytes,p=[],C=0;C<c;C++){var F=n[C>>>2]>>>24-C%4*8&255;p.push(String.fromCharCode(F))}return p.join("")},parse:function(i){for(var n=i.length,c=[],p=0;p<n;p++)c[p>>>2]|=(i.charCodeAt(p)&255)<<24-p%4*8;return new E.init(c,n)}},v=a.Utf8={stringify:function(i){try{return decodeURIComponent(escape(o.stringify(i)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(i){return o.parse(unescape(encodeURIComponent(i)))}},s=e.BufferedBlockAlgorithm=x.extend({reset:function(){this._data=new E.init,this._nDataBytes=0},_append:function(i){typeof i=="string"&&(i=v.parse(i)),this._data.concat(i),this._nDataBytes+=i.sigBytes},_process:function(i){var n,c=this._data,p=c.words,C=c.sigBytes,F=this.blockSize,g=F*4,H=C/g;i?H=t.ceil(H):H=t.max((H|0)-this._minBufferSize,0);var h=H*F,D=t.min(h*4,C);if(h){for(var b=0;b<h;b+=F)this._doProcessBlock(p,b);n=p.splice(0,h),c.sigBytes-=D}return new E.init(n,D)},clone:function(){var i=x.clone.call(this);return i._data=this._data.clone(),i},_minBufferSize:0});e.Hasher=s.extend({cfg:x.extend(),init:function(i){this.cfg=this.cfg.extend(i),this.reset()},reset:function(){s.reset.call(this),this._doReset()},update:function(i){return this._append(i),this._process(),this},finalize:function(i){i&&this._append(i);var n=this._doFinalize();return n},blockSize:16,_createHelper:function(i){return function(n,c){return new i.init(c).finalize(n)}},_createHmacHelper:function(i){return function(n,c){return new B.HMAC.init(i,c).finalize(n)}}});var B=u.algo={};return u}(Math);return d})}(F0)),F0.exports}var D0={exports:{}},Ar;function p0(){return Ar||(Ar=1,function(r,I){(function(d,t){r.exports=t(q())})(z,function(d){return function(t){var _=d,A=_.lib,y=A.Base,l=A.WordArray,u=_.x64={};u.Word=y.extend({init:function(e,x){this.high=e,this.low=x}}),u.WordArray=y.extend({init:function(e,x){e=this.words=e||[],x!=t?this.sigBytes=x:this.sigBytes=e.length*8},toX32:function(){for(var e=this.words,x=e.length,E=[],a=0;a<x;a++){var f=e[a];E.push(f.high),E.push(f.low)}return l.create(E,this.sigBytes)},clone:function(){for(var e=y.clone.call(this),x=e.words=this.words.slice(0),E=x.length,a=0;a<E;a++)x[a]=x[a].clone();return e}})}(),d})}(D0)),D0.exports}var g0={exports:{}},_r;function me(){return _r||(_r=1,function(r,I){(function(d,t){r.exports=t(q())})(z,function(d){return function(){if(typeof ArrayBuffer=="function"){var t=d,_=t.lib,A=_.WordArray,y=A.init,l=A.init=function(u){if(u instanceof ArrayBuffer&&(u=new Uint8Array(u)),(u instanceof Int8Array||typeof Uint8ClampedArray<"u"&&u instanceof Uint8ClampedArray||u instanceof Int16Array||u instanceof Uint16Array||u instanceof Int32Array||u instanceof Uint32Array||u instanceof Float32Array||u instanceof Float64Array)&&(u=new Uint8Array(u.buffer,u.byteOffset,u.byteLength)),u instanceof Uint8Array){for(var e=u.byteLength,x=[],E=0;E<e;E++)x[E>>>2]|=u[E]<<24-E%4*8;y.call(this,x,e)}else y.apply(this,arguments)};l.prototype=A}}(),d.lib.WordArray})}(g0)),g0.exports}var m0={exports:{}},Fr;function ye(){return Fr||(Fr=1,function(r,I){(function(d,t){r.exports=t(q())})(z,function(d){return function(){var t=d,_=t.lib,A=_.WordArray,y=t.enc;y.Utf16=y.Utf16BE={stringify:function(u){for(var e=u.words,x=u.sigBytes,E=[],a=0;a<x;a+=2){var f=e[a>>>2]>>>16-a%4*8&65535;E.push(String.fromCharCode(f))}return E.join("")},parse:function(u){for(var e=u.length,x=[],E=0;E<e;E++)x[E>>>1]|=u.charCodeAt(E)<<16-E%2*16;return A.create(x,e*2)}},y.Utf16LE={stringify:function(u){for(var e=u.words,x=u.sigBytes,E=[],a=0;a<x;a+=2){var f=l(e[a>>>2]>>>16-a%4*8&65535);E.push(String.fromCharCode(f))}return E.join("")},parse:function(u){for(var e=u.length,x=[],E=0;E<e;E++)x[E>>>1]|=l(u.charCodeAt(E)<<16-E%2*16);return A.create(x,e*2)}};function l(u){return u<<8&4278255360|u>>>8&16711935}}(),d.enc.Utf16})}(m0)),m0.exports}var y0={exports:{}},Dr;function x0(){return Dr||(Dr=1,function(r,I){(function(d,t){r.exports=t(q())})(z,function(d){return function(){var t=d,_=t.lib,A=_.WordArray,y=t.enc;y.Base64={stringify:function(u){var e=u.words,x=u.sigBytes,E=this._map;u.clamp();for(var a=[],f=0;f<x;f+=3)for(var o=e[f>>>2]>>>24-f%4*8&255,v=e[f+1>>>2]>>>24-(f+1)%4*8&255,s=e[f+2>>>2]>>>24-(f+2)%4*8&255,B=o<<16|v<<8|s,i=0;i<4&&f+i*.75<x;i++)a.push(E.charAt(B>>>6*(3-i)&63));var n=E.charAt(64);if(n)for(;a.length%4;)a.push(n);return a.join("")},parse:function(u){var e=u.length,x=this._map,E=this._reverseMap;if(!E){E=this._reverseMap=[];for(var a=0;a<x.length;a++)E[x.charCodeAt(a)]=a}var f=x.charAt(64);if(f){var o=u.indexOf(f);o!==-1&&(e=o)}return l(u,e,E)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(u,e,x){for(var E=[],a=0,f=0;f<e;f++)if(f%4){var o=x[u.charCodeAt(f-1)]<<f%4*2,v=x[u.charCodeAt(f)]>>>6-f%4*2,s=o|v;E[a>>>2]|=s<<24-a%4*8,a++}return A.create(E,a)}}(),d.enc.Base64})}(y0)),y0.exports}var b0={exports:{}},gr;function be(){return gr||(gr=1,function(r,I){(function(d,t){r.exports=t(q())})(z,function(d){return function(){var t=d,_=t.lib,A=_.WordArray,y=t.enc;y.Base64url={stringify:function(u,e){e===void 0&&(e=!0);var x=u.words,E=u.sigBytes,a=e?this._safe_map:this._map;u.clamp();for(var f=[],o=0;o<E;o+=3)for(var v=x[o>>>2]>>>24-o%4*8&255,s=x[o+1>>>2]>>>24-(o+1)%4*8&255,B=x[o+2>>>2]>>>24-(o+2)%4*8&255,i=v<<16|s<<8|B,n=0;n<4&&o+n*.75<E;n++)f.push(a.charAt(i>>>6*(3-n)&63));var c=a.charAt(64);if(c)for(;f.length%4;)f.push(c);return f.join("")},parse:function(u,e){e===void 0&&(e=!0);var x=u.length,E=e?this._safe_map:this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var f=0;f<E.length;f++)a[E.charCodeAt(f)]=f}var o=E.charAt(64);if(o){var v=u.indexOf(o);v!==-1&&(x=v)}return l(u,x,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(u,e,x){for(var E=[],a=0,f=0;f<e;f++)if(f%4){var o=x[u.charCodeAt(f-1)]<<f%4*2,v=x[u.charCodeAt(f)]>>>6-f%4*2,s=o|v;E[a>>>2]|=s<<24-a%4*8,a++}return A.create(E,a)}}(),d.enc.Base64url})}(b0)),b0.exports}var R0={exports:{}},mr;function t0(){return mr||(mr=1,function(r,I){(function(d,t){r.exports=t(q())})(z,function(d){return function(t){var _=d,A=_.lib,y=A.WordArray,l=A.Hasher,u=_.algo,e=[];(function(){for(var v=0;v<64;v++)e[v]=t.abs(t.sin(v+1))*4294967296|0})();var x=u.MD5=l.extend({_doReset:function(){this._hash=new y.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(v,s){for(var B=0;B<16;B++){var i=s+B,n=v[i];v[i]=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360}var c=this._hash.words,p=v[s+0],C=v[s+1],F=v[s+2],g=v[s+3],H=v[s+4],h=v[s+5],D=v[s+6],b=v[s+7],R=v[s+8],P=v[s+9],T=v[s+10],N=v[s+11],G=v[s+12],O=v[s+13],U=v[s+14],M=v[s+15],m=c[0],k=c[1],S=c[2],w=c[3];m=E(m,k,S,w,p,7,e[0]),w=E(w,m,k,S,C,12,e[1]),S=E(S,w,m,k,F,17,e[2]),k=E(k,S,w,m,g,22,e[3]),m=E(m,k,S,w,H,7,e[4]),w=E(w,m,k,S,h,12,e[5]),S=E(S,w,m,k,D,17,e[6]),k=E(k,S,w,m,b,22,e[7]),m=E(m,k,S,w,R,7,e[8]),w=E(w,m,k,S,P,12,e[9]),S=E(S,w,m,k,T,17,e[10]),k=E(k,S,w,m,N,22,e[11]),m=E(m,k,S,w,G,7,e[12]),w=E(w,m,k,S,O,12,e[13]),S=E(S,w,m,k,U,17,e[14]),k=E(k,S,w,m,M,22,e[15]),m=a(m,k,S,w,C,5,e[16]),w=a(w,m,k,S,D,9,e[17]),S=a(S,w,m,k,N,14,e[18]),k=a(k,S,w,m,p,20,e[19]),m=a(m,k,S,w,h,5,e[20]),w=a(w,m,k,S,T,9,e[21]),S=a(S,w,m,k,M,14,e[22]),k=a(k,S,w,m,H,20,e[23]),m=a(m,k,S,w,P,5,e[24]),w=a(w,m,k,S,U,9,e[25]),S=a(S,w,m,k,g,14,e[26]),k=a(k,S,w,m,R,20,e[27]),m=a(m,k,S,w,O,5,e[28]),w=a(w,m,k,S,F,9,e[29]),S=a(S,w,m,k,b,14,e[30]),k=a(k,S,w,m,G,20,e[31]),m=f(m,k,S,w,h,4,e[32]),w=f(w,m,k,S,R,11,e[33]),S=f(S,w,m,k,N,16,e[34]),k=f(k,S,w,m,U,23,e[35]),m=f(m,k,S,w,C,4,e[36]),w=f(w,m,k,S,H,11,e[37]),S=f(S,w,m,k,b,16,e[38]),k=f(k,S,w,m,T,23,e[39]),m=f(m,k,S,w,O,4,e[40]),w=f(w,m,k,S,p,11,e[41]),S=f(S,w,m,k,g,16,e[42]),k=f(k,S,w,m,D,23,e[43]),m=f(m,k,S,w,P,4,e[44]),w=f(w,m,k,S,G,11,e[45]),S=f(S,w,m,k,M,16,e[46]),k=f(k,S,w,m,F,23,e[47]),m=o(m,k,S,w,p,6,e[48]),w=o(w,m,k,S,b,10,e[49]),S=o(S,w,m,k,U,15,e[50]),k=o(k,S,w,m,h,21,e[51]),m=o(m,k,S,w,G,6,e[52]),w=o(w,m,k,S,g,10,e[53]),S=o(S,w,m,k,T,15,e[54]),k=o(k,S,w,m,C,21,e[55]),m=o(m,k,S,w,R,6,e[56]),w=o(w,m,k,S,M,10,e[57]),S=o(S,w,m,k,D,15,e[58]),k=o(k,S,w,m,O,21,e[59]),m=o(m,k,S,w,H,6,e[60]),w=o(w,m,k,S,N,10,e[61]),S=o(S,w,m,k,F,15,e[62]),k=o(k,S,w,m,P,21,e[63]),c[0]=c[0]+m|0,c[1]=c[1]+k|0,c[2]=c[2]+S|0,c[3]=c[3]+w|0},_doFinalize:function(){var v=this._data,s=v.words,B=this._nDataBytes*8,i=v.sigBytes*8;s[i>>>5]|=128<<24-i%32;var n=t.floor(B/4294967296),c=B;s[(i+64>>>9<<4)+15]=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360,s[(i+64>>>9<<4)+14]=(c<<8|c>>>24)&16711935|(c<<24|c>>>8)&4278255360,v.sigBytes=(s.length+1)*4,this._process();for(var p=this._hash,C=p.words,F=0;F<4;F++){var g=C[F];C[F]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360}return p},clone:function(){var v=l.clone.call(this);return v._hash=this._hash.clone(),v}});function E(v,s,B,i,n,c,p){var C=v+(s&B|~s&i)+n+p;return(C<<c|C>>>32-c)+s}function a(v,s,B,i,n,c,p){var C=v+(s&i|B&~i)+n+p;return(C<<c|C>>>32-c)+s}function f(v,s,B,i,n,c,p){var C=v+(s^B^i)+n+p;return(C<<c|C>>>32-c)+s}function o(v,s,B,i,n,c,p){var C=v+(B^(s|~i))+n+p;return(C<<c|C>>>32-c)+s}_.MD5=l._createHelper(x),_.HmacMD5=l._createHmacHelper(x)}(Math),d.MD5})}(R0)),R0.exports}var w0={exports:{}},yr;function xe(){return yr||(yr=1,function(r,I){(function(d,t){r.exports=t(q())})(z,function(d){return function(){var t=d,_=t.lib,A=_.WordArray,y=_.Hasher,l=t.algo,u=[],e=l.SHA1=y.extend({_doReset:function(){this._hash=new A.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(x,E){for(var a=this._hash.words,f=a[0],o=a[1],v=a[2],s=a[3],B=a[4],i=0;i<80;i++){if(i<16)u[i]=x[E+i]|0;else{var n=u[i-3]^u[i-8]^u[i-14]^u[i-16];u[i]=n<<1|n>>>31}var c=(f<<5|f>>>27)+B+u[i];i<20?c+=(o&v|~o&s)+1518500249:i<40?c+=(o^v^s)+1859775393:i<60?c+=(o&v|o&s|v&s)-1894007588:c+=(o^v^s)-899497514,B=s,s=v,v=o<<30|o>>>2,o=f,f=c}a[0]=a[0]+f|0,a[1]=a[1]+o|0,a[2]=a[2]+v|0,a[3]=a[3]+s|0,a[4]=a[4]+B|0},_doFinalize:function(){var x=this._data,E=x.words,a=this._nDataBytes*8,f=x.sigBytes*8;return E[f>>>5]|=128<<24-f%32,E[(f+64>>>9<<4)+14]=Math.floor(a/4294967296),E[(f+64>>>9<<4)+15]=a,x.sigBytes=E.length*4,this._process(),this._hash},clone:function(){var x=y.clone.call(this);return x._hash=this._hash.clone(),x}});t.SHA1=y._createHelper(e),t.HmacSHA1=y._createHmacHelper(e)}(),d.SHA1})}(w0)),w0.exports}var k0={exports:{}},br;function ir(){return br||(br=1,function(r,I){(function(d,t){r.exports=t(q())})(z,function(d){return function(t){var _=d,A=_.lib,y=A.WordArray,l=A.Hasher,u=_.algo,e=[],x=[];(function(){function f(B){for(var i=t.sqrt(B),n=2;n<=i;n++)if(!(B%n))return!1;return!0}function o(B){return(B-(B|0))*4294967296|0}for(var v=2,s=0;s<64;)f(v)&&(s<8&&(e[s]=o(t.pow(v,1/2))),x[s]=o(t.pow(v,1/3)),s++),v++})();var E=[],a=u.SHA256=l.extend({_doReset:function(){this._hash=new y.init(e.slice(0))},_doProcessBlock:function(f,o){for(var v=this._hash.words,s=v[0],B=v[1],i=v[2],n=v[3],c=v[4],p=v[5],C=v[6],F=v[7],g=0;g<64;g++){if(g<16)E[g]=f[o+g]|0;else{var H=E[g-15],h=(H<<25|H>>>7)^(H<<14|H>>>18)^H>>>3,D=E[g-2],b=(D<<15|D>>>17)^(D<<13|D>>>19)^D>>>10;E[g]=h+E[g-7]+b+E[g-16]}var R=c&p^~c&C,P=s&B^s&i^B&i,T=(s<<30|s>>>2)^(s<<19|s>>>13)^(s<<10|s>>>22),N=(c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25),G=F+N+R+x[g]+E[g],O=T+P;F=C,C=p,p=c,c=n+G|0,n=i,i=B,B=s,s=G+O|0}v[0]=v[0]+s|0,v[1]=v[1]+B|0,v[2]=v[2]+i|0,v[3]=v[3]+n|0,v[4]=v[4]+c|0,v[5]=v[5]+p|0,v[6]=v[6]+C|0,v[7]=v[7]+F|0},_doFinalize:function(){var f=this._data,o=f.words,v=this._nDataBytes*8,s=f.sigBytes*8;return o[s>>>5]|=128<<24-s%32,o[(s+64>>>9<<4)+14]=t.floor(v/4294967296),o[(s+64>>>9<<4)+15]=v,f.sigBytes=o.length*4,this._process(),this._hash},clone:function(){var f=l.clone.call(this);return f._hash=this._hash.clone(),f}});_.SHA256=l._createHelper(a),_.HmacSHA256=l._createHmacHelper(a)}(Math),d.SHA256})}(k0)),k0.exports}var S0={exports:{}},Rr;function Re(){return Rr||(Rr=1,function(r,I){(function(d,t,_){r.exports=t(q(),ir())})(z,function(d){return function(){var t=d,_=t.lib,A=_.WordArray,y=t.algo,l=y.SHA256,u=y.SHA224=l.extend({_doReset:function(){this._hash=new A.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=l._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=l._createHelper(u),t.HmacSHA224=l._createHmacHelper(u)}(),d.SHA224})}(S0)),S0.exports}var H0={exports:{}},wr;function te(){return wr||(wr=1,function(r,I){(function(d,t,_){r.exports=t(q(),p0())})(z,function(d){return function(){var t=d,_=t.lib,A=_.Hasher,y=t.x64,l=y.Word,u=y.WordArray,e=t.algo;function x(){return l.create.apply(l,arguments)}var E=[x(1116352408,3609767458),x(1899447441,602891725),x(3049323471,3964484399),x(3921009573,2173295548),x(961987163,4081628472),x(1508970993,3053834265),x(2453635748,2937671579),x(2870763221,3664609560),x(3624381080,2734883394),x(310598401,1164996542),x(607225278,1323610764),x(1426881987,3590304994),x(1925078388,4068182383),x(2162078206,991336113),x(2614888103,633803317),x(3248222580,3479774868),x(3835390401,2666613458),x(4022224774,944711139),x(264347078,2341262773),x(604807628,2007800933),x(770255983,1495990901),x(1249150122,1856431235),x(1555081692,3175218132),x(1996064986,2198950837),x(2554220882,3999719339),x(2821834349,766784016),x(2952996808,2566594879),x(3210313671,3203337956),x(3336571891,1034457026),x(3584528711,2466948901),x(113926993,3758326383),x(338241895,168717936),x(666307205,1188179964),x(773529912,1546045734),x(1294757372,1522805485),x(1396182291,2643833823),x(1695183700,2343527390),x(1986661051,1014477480),x(2177026350,1206759142),x(2456956037,344077627),x(2730485921,1290863460),x(2820302411,3158454273),x(3259730800,3505952657),x(3345764771,106217008),x(3516065817,3606008344),x(3600352804,1432725776),x(4094571909,1467031594),x(275423344,851169720),x(430227734,3100823752),x(506948616,1363258195),x(659060556,3750685593),x(883997877,3785050280),x(958139571,3318307427),x(1322822218,3812723403),x(1537002063,2003034995),x(1747873779,3602036899),x(1955562222,1575990012),x(2024104815,1125592928),x(2227730452,2716904306),x(2361852424,442776044),x(2428436474,593698344),x(2756734187,3733110249),x(3204031479,2999351573),x(3329325298,3815920427),x(3391569614,3928383900),x(3515267271,566280711),x(3940187606,3454069534),x(4118630271,4000239992),x(116418474,1914138554),x(174292421,2731055270),x(289380356,3203993006),x(460393269,320620315),x(685471733,587496836),x(852142971,1086792851),x(1017036298,365543100),x(1126000580,2618297676),x(1288033470,3409855158),x(1501505948,4234509866),x(1607167915,987167468),x(1816402316,1246189591)],a=[];(function(){for(var o=0;o<80;o++)a[o]=x()})();var f=e.SHA512=A.extend({_doReset:function(){this._hash=new u.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(o,v){for(var s=this._hash.words,B=s[0],i=s[1],n=s[2],c=s[3],p=s[4],C=s[5],F=s[6],g=s[7],H=B.high,h=B.low,D=i.high,b=i.low,R=n.high,P=n.low,T=c.high,N=c.low,G=p.high,O=p.low,U=C.high,M=C.low,m=F.high,k=F.low,S=g.high,w=g.low,$=H,W=h,K=D,L=b,o0=R,a0=P,A0=T,c0=N,Q=G,X=O,u0=U,s0=M,h0=m,f0=k,_0=S,v0=w,j=0;j<80;j++){var Z,J,E0=a[j];if(j<16)J=E0.high=o[v+j*2]|0,Z=E0.low=o[v+j*2+1]|0;else{var or=a[j-15],i0=or.high,d0=or.low,ie=(i0>>>1|d0<<31)^(i0>>>8|d0<<24)^i0>>>7,cr=(d0>>>1|i0<<31)^(d0>>>8|i0<<24)^(d0>>>7|i0<<25),sr=a[j-2],n0=sr.high,l0=sr.low,ne=(n0>>>19|l0<<13)^(n0<<3|l0>>>29)^n0>>>6,fr=(l0>>>19|n0<<13)^(l0<<3|n0>>>29)^(l0>>>6|n0<<26),vr=a[j-7],oe=vr.high,ce=vr.low,dr=a[j-16],se=dr.high,lr=dr.low;Z=cr+ce,J=ie+oe+(Z>>>0<cr>>>0?1:0),Z=Z+fr,J=J+ne+(Z>>>0<fr>>>0?1:0),Z=Z+lr,J=J+se+(Z>>>0<lr>>>0?1:0),E0.high=J,E0.low=Z}var fe=Q&u0^~Q&h0,ur=X&s0^~X&f0,ve=$&K^$&o0^K&o0,de=W&L^W&a0^L&a0,le=($>>>28|W<<4)^($<<30|W>>>2)^($<<25|W>>>7),hr=(W>>>28|$<<4)^(W<<30|$>>>2)^(W<<25|$>>>7),ue=(Q>>>14|X<<18)^(Q>>>18|X<<14)^(Q<<23|X>>>9),he=(X>>>14|Q<<18)^(X>>>18|Q<<14)^(X<<23|Q>>>9),Er=E[j],Ee=Er.high,Br=Er.low,Y=v0+he,r0=_0+ue+(Y>>>0<v0>>>0?1:0),Y=Y+ur,r0=r0+fe+(Y>>>0<ur>>>0?1:0),Y=Y+Br,r0=r0+Ee+(Y>>>0<Br>>>0?1:0),Y=Y+Z,r0=r0+J+(Y>>>0<Z>>>0?1:0),Cr=hr+de,Be=le+ve+(Cr>>>0<hr>>>0?1:0);_0=h0,v0=f0,h0=u0,f0=s0,u0=Q,s0=X,X=c0+Y|0,Q=A0+r0+(X>>>0<c0>>>0?1:0)|0,A0=o0,c0=a0,o0=K,a0=L,K=$,L=W,W=Y+Cr|0,$=r0+Be+(W>>>0<Y>>>0?1:0)|0}h=B.low=h+W,B.high=H+$+(h>>>0<W>>>0?1:0),b=i.low=b+L,i.high=D+K+(b>>>0<L>>>0?1:0),P=n.low=P+a0,n.high=R+o0+(P>>>0<a0>>>0?1:0),N=c.low=N+c0,c.high=T+A0+(N>>>0<c0>>>0?1:0),O=p.low=O+X,p.high=G+Q+(O>>>0<X>>>0?1:0),M=C.low=M+s0,C.high=U+u0+(M>>>0<s0>>>0?1:0),k=F.low=k+f0,F.high=m+h0+(k>>>0<f0>>>0?1:0),w=g.low=w+v0,g.high=S+_0+(w>>>0<v0>>>0?1:0)},_doFinalize:function(){var o=this._data,v=o.words,s=this._nDataBytes*8,B=o.sigBytes*8;v[B>>>5]|=128<<24-B%32,v[(B+128>>>10<<5)+30]=Math.floor(s/4294967296),v[(B+128>>>10<<5)+31]=s,o.sigBytes=v.length*4,this._process();var i=this._hash.toX32();return i},clone:function(){var o=A.clone.call(this);return o._hash=this._hash.clone(),o},blockSize:1024/32});t.SHA512=A._createHelper(f),t.HmacSHA512=A._createHmacHelper(f)}(),d.SHA512})}(H0)),H0.exports}var I0={exports:{}},kr;function we(){return kr||(kr=1,function(r,I){(function(d,t,_){r.exports=t(q(),p0(),te())})(z,function(d){return function(){var t=d,_=t.x64,A=_.Word,y=_.WordArray,l=t.algo,u=l.SHA512,e=l.SHA384=u.extend({_doReset:function(){this._hash=new y.init([new A.init(3418070365,3238371032),new A.init(1654270250,914150663),new A.init(2438529370,812702999),new A.init(355462360,4144912697),new A.init(1731405415,4290775857),new A.init(2394180231,1750603025),new A.init(3675008525,1694076839),new A.init(1203062813,3204075428)])},_doFinalize:function(){var x=u._doFinalize.call(this);return x.sigBytes-=16,x}});t.SHA384=u._createHelper(e),t.HmacSHA384=u._createHmacHelper(e)}(),d.SHA384})}(I0)),I0.exports}var P0={exports:{}},Sr;function ke(){return Sr||(Sr=1,function(r,I){(function(d,t,_){r.exports=t(q(),p0())})(z,function(d){return function(t){var _=d,A=_.lib,y=A.WordArray,l=A.Hasher,u=_.x64,e=u.Word,x=_.algo,E=[],a=[],f=[];(function(){for(var s=1,B=0,i=0;i<24;i++){E[s+5*B]=(i+1)*(i+2)/2%64;var n=B%5,c=(2*s+3*B)%5;s=n,B=c}for(var s=0;s<5;s++)for(var B=0;B<5;B++)a[s+5*B]=B+(2*s+3*B)%5*5;for(var p=1,C=0;C<24;C++){for(var F=0,g=0,H=0;H<7;H++){if(p&1){var h=(1<<H)-1;h<32?g^=1<<h:F^=1<<h-32}p&128?p=p<<1^113:p<<=1}f[C]=e.create(F,g)}})();var o=[];(function(){for(var s=0;s<25;s++)o[s]=e.create()})();var v=x.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var s=this._state=[],B=0;B<25;B++)s[B]=new e.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(s,B){for(var i=this._state,n=this.blockSize/2,c=0;c<n;c++){var p=s[B+2*c],C=s[B+2*c+1];p=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360;var F=i[c];F.high^=C,F.low^=p}for(var g=0;g<24;g++){for(var H=0;H<5;H++){for(var h=0,D=0,b=0;b<5;b++){var F=i[H+5*b];h^=F.high,D^=F.low}var R=o[H];R.high=h,R.low=D}for(var H=0;H<5;H++)for(var P=o[(H+4)%5],T=o[(H+1)%5],N=T.high,G=T.low,h=P.high^(N<<1|G>>>31),D=P.low^(G<<1|N>>>31),b=0;b<5;b++){var F=i[H+5*b];F.high^=h,F.low^=D}for(var O=1;O<25;O++){var h,D,F=i[O],U=F.high,M=F.low,m=E[O];m<32?(h=U<<m|M>>>32-m,D=M<<m|U>>>32-m):(h=M<<m-32|U>>>64-m,D=U<<m-32|M>>>64-m);var k=o[a[O]];k.high=h,k.low=D}var S=o[0],w=i[0];S.high=w.high,S.low=w.low;for(var H=0;H<5;H++)for(var b=0;b<5;b++){var O=H+5*b,F=i[O],$=o[O],W=o[(H+1)%5+5*b],K=o[(H+2)%5+5*b];F.high=$.high^~W.high&K.high,F.low=$.low^~W.low&K.low}var F=i[0],L=f[g];F.high^=L.high,F.low^=L.low}},_doFinalize:function(){var s=this._data,B=s.words;this._nDataBytes*8;var i=s.sigBytes*8,n=this.blockSize*32;B[i>>>5]|=1<<24-i%32,B[(t.ceil((i+1)/n)*n>>>5)-1]|=128,s.sigBytes=B.length*4,this._process();for(var c=this._state,p=this.cfg.outputLength/8,C=p/8,F=[],g=0;g<C;g++){var H=c[g],h=H.high,D=H.low;h=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,D=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,F.push(D),F.push(h)}return new y.init(F,p)},clone:function(){for(var s=l.clone.call(this),B=s._state=this._state.slice(0),i=0;i<25;i++)B[i]=B[i].clone();return s}});_.SHA3=l._createHelper(v),_.HmacSHA3=l._createHmacHelper(v)}(Math),d.SHA3})}(P0)),P0.exports}var T0={exports:{}},Hr;function Se(){return Hr||(Hr=1,function(r,I){(function(d,t){r.exports=t(q())})(z,function(d){/** @preserve
|
|
1
|
+
var Ce=Object.defineProperty;var pe=(r,I,d)=>I in r?Ce(r,I,{enumerable:!0,configurable:!0,writable:!0,value:d}):r[I]=d;var B0=(r,I,d)=>pe(r,typeof I!="symbol"?I+"":I,d);import{a as Ae,j as _e}from"./index-CsRobnsY.js";import{c as z,m as Fe,n as De,g as ge}from"./index-C9kcmpvP.js";var ee={exports:{}},F0={exports:{}},pr;function q(){return pr||(pr=1,function(r,I){(function(d,t){r.exports=t()})(z,function(){var d=d||function(t,_){var A;if(typeof window<"u"&&window.crypto&&(A=window.crypto),typeof self<"u"&&self.crypto&&(A=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(A=globalThis.crypto),!A&&typeof window<"u"&&window.msCrypto&&(A=window.msCrypto),!A&&typeof z<"u"&&z.crypto&&(A=z.crypto),!A&&typeof Fe=="function")try{A=De}catch{}var y=function(){if(A){if(typeof A.getRandomValues=="function")try{return A.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof A.randomBytes=="function")try{return A.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||function(){function i(){}return function(n){var c;return i.prototype=n,c=new i,i.prototype=null,c}}(),u={},e=u.lib={},x=e.Base=function(){return{extend:function(i){var n=l(this);return i&&n.mixIn(i),(!n.hasOwnProperty("init")||this.init===n.init)&&(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var i=this.extend();return i.init.apply(i,arguments),i},init:function(){},mixIn:function(i){for(var n in i)i.hasOwnProperty(n)&&(this[n]=i[n]);i.hasOwnProperty("toString")&&(this.toString=i.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),E=e.WordArray=x.extend({init:function(i,n){i=this.words=i||[],n!=_?this.sigBytes=n:this.sigBytes=i.length*4},toString:function(i){return(i||f).stringify(this)},concat:function(i){var n=this.words,c=i.words,p=this.sigBytes,C=i.sigBytes;if(this.clamp(),p%4)for(var F=0;F<C;F++){var g=c[F>>>2]>>>24-F%4*8&255;n[p+F>>>2]|=g<<24-(p+F)%4*8}else for(var H=0;H<C;H+=4)n[p+H>>>2]=c[H>>>2];return this.sigBytes+=C,this},clamp:function(){var i=this.words,n=this.sigBytes;i[n>>>2]&=4294967295<<32-n%4*8,i.length=t.ceil(n/4)},clone:function(){var i=x.clone.call(this);return i.words=this.words.slice(0),i},random:function(i){for(var n=[],c=0;c<i;c+=4)n.push(y());return new E.init(n,i)}}),a=u.enc={},f=a.Hex={stringify:function(i){for(var n=i.words,c=i.sigBytes,p=[],C=0;C<c;C++){var F=n[C>>>2]>>>24-C%4*8&255;p.push((F>>>4).toString(16)),p.push((F&15).toString(16))}return p.join("")},parse:function(i){for(var n=i.length,c=[],p=0;p<n;p+=2)c[p>>>3]|=parseInt(i.substr(p,2),16)<<24-p%8*4;return new E.init(c,n/2)}},o=a.Latin1={stringify:function(i){for(var n=i.words,c=i.sigBytes,p=[],C=0;C<c;C++){var F=n[C>>>2]>>>24-C%4*8&255;p.push(String.fromCharCode(F))}return p.join("")},parse:function(i){for(var n=i.length,c=[],p=0;p<n;p++)c[p>>>2]|=(i.charCodeAt(p)&255)<<24-p%4*8;return new E.init(c,n)}},v=a.Utf8={stringify:function(i){try{return decodeURIComponent(escape(o.stringify(i)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(i){return o.parse(unescape(encodeURIComponent(i)))}},s=e.BufferedBlockAlgorithm=x.extend({reset:function(){this._data=new E.init,this._nDataBytes=0},_append:function(i){typeof i=="string"&&(i=v.parse(i)),this._data.concat(i),this._nDataBytes+=i.sigBytes},_process:function(i){var n,c=this._data,p=c.words,C=c.sigBytes,F=this.blockSize,g=F*4,H=C/g;i?H=t.ceil(H):H=t.max((H|0)-this._minBufferSize,0);var h=H*F,D=t.min(h*4,C);if(h){for(var b=0;b<h;b+=F)this._doProcessBlock(p,b);n=p.splice(0,h),c.sigBytes-=D}return new E.init(n,D)},clone:function(){var i=x.clone.call(this);return i._data=this._data.clone(),i},_minBufferSize:0});e.Hasher=s.extend({cfg:x.extend(),init:function(i){this.cfg=this.cfg.extend(i),this.reset()},reset:function(){s.reset.call(this),this._doReset()},update:function(i){return this._append(i),this._process(),this},finalize:function(i){i&&this._append(i);var n=this._doFinalize();return n},blockSize:16,_createHelper:function(i){return function(n,c){return new i.init(c).finalize(n)}},_createHmacHelper:function(i){return function(n,c){return new B.HMAC.init(i,c).finalize(n)}}});var B=u.algo={};return u}(Math);return d})}(F0)),F0.exports}var D0={exports:{}},Ar;function p0(){return Ar||(Ar=1,function(r,I){(function(d,t){r.exports=t(q())})(z,function(d){return function(t){var _=d,A=_.lib,y=A.Base,l=A.WordArray,u=_.x64={};u.Word=y.extend({init:function(e,x){this.high=e,this.low=x}}),u.WordArray=y.extend({init:function(e,x){e=this.words=e||[],x!=t?this.sigBytes=x:this.sigBytes=e.length*8},toX32:function(){for(var e=this.words,x=e.length,E=[],a=0;a<x;a++){var f=e[a];E.push(f.high),E.push(f.low)}return l.create(E,this.sigBytes)},clone:function(){for(var e=y.clone.call(this),x=e.words=this.words.slice(0),E=x.length,a=0;a<E;a++)x[a]=x[a].clone();return e}})}(),d})}(D0)),D0.exports}var g0={exports:{}},_r;function me(){return _r||(_r=1,function(r,I){(function(d,t){r.exports=t(q())})(z,function(d){return function(){if(typeof ArrayBuffer=="function"){var t=d,_=t.lib,A=_.WordArray,y=A.init,l=A.init=function(u){if(u instanceof ArrayBuffer&&(u=new Uint8Array(u)),(u instanceof Int8Array||typeof Uint8ClampedArray<"u"&&u instanceof Uint8ClampedArray||u instanceof Int16Array||u instanceof Uint16Array||u instanceof Int32Array||u instanceof Uint32Array||u instanceof Float32Array||u instanceof Float64Array)&&(u=new Uint8Array(u.buffer,u.byteOffset,u.byteLength)),u instanceof Uint8Array){for(var e=u.byteLength,x=[],E=0;E<e;E++)x[E>>>2]|=u[E]<<24-E%4*8;y.call(this,x,e)}else y.apply(this,arguments)};l.prototype=A}}(),d.lib.WordArray})}(g0)),g0.exports}var m0={exports:{}},Fr;function ye(){return Fr||(Fr=1,function(r,I){(function(d,t){r.exports=t(q())})(z,function(d){return function(){var t=d,_=t.lib,A=_.WordArray,y=t.enc;y.Utf16=y.Utf16BE={stringify:function(u){for(var e=u.words,x=u.sigBytes,E=[],a=0;a<x;a+=2){var f=e[a>>>2]>>>16-a%4*8&65535;E.push(String.fromCharCode(f))}return E.join("")},parse:function(u){for(var e=u.length,x=[],E=0;E<e;E++)x[E>>>1]|=u.charCodeAt(E)<<16-E%2*16;return A.create(x,e*2)}},y.Utf16LE={stringify:function(u){for(var e=u.words,x=u.sigBytes,E=[],a=0;a<x;a+=2){var f=l(e[a>>>2]>>>16-a%4*8&65535);E.push(String.fromCharCode(f))}return E.join("")},parse:function(u){for(var e=u.length,x=[],E=0;E<e;E++)x[E>>>1]|=l(u.charCodeAt(E)<<16-E%2*16);return A.create(x,e*2)}};function l(u){return u<<8&4278255360|u>>>8&16711935}}(),d.enc.Utf16})}(m0)),m0.exports}var y0={exports:{}},Dr;function x0(){return Dr||(Dr=1,function(r,I){(function(d,t){r.exports=t(q())})(z,function(d){return function(){var t=d,_=t.lib,A=_.WordArray,y=t.enc;y.Base64={stringify:function(u){var e=u.words,x=u.sigBytes,E=this._map;u.clamp();for(var a=[],f=0;f<x;f+=3)for(var o=e[f>>>2]>>>24-f%4*8&255,v=e[f+1>>>2]>>>24-(f+1)%4*8&255,s=e[f+2>>>2]>>>24-(f+2)%4*8&255,B=o<<16|v<<8|s,i=0;i<4&&f+i*.75<x;i++)a.push(E.charAt(B>>>6*(3-i)&63));var n=E.charAt(64);if(n)for(;a.length%4;)a.push(n);return a.join("")},parse:function(u){var e=u.length,x=this._map,E=this._reverseMap;if(!E){E=this._reverseMap=[];for(var a=0;a<x.length;a++)E[x.charCodeAt(a)]=a}var f=x.charAt(64);if(f){var o=u.indexOf(f);o!==-1&&(e=o)}return l(u,e,E)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(u,e,x){for(var E=[],a=0,f=0;f<e;f++)if(f%4){var o=x[u.charCodeAt(f-1)]<<f%4*2,v=x[u.charCodeAt(f)]>>>6-f%4*2,s=o|v;E[a>>>2]|=s<<24-a%4*8,a++}return A.create(E,a)}}(),d.enc.Base64})}(y0)),y0.exports}var b0={exports:{}},gr;function be(){return gr||(gr=1,function(r,I){(function(d,t){r.exports=t(q())})(z,function(d){return function(){var t=d,_=t.lib,A=_.WordArray,y=t.enc;y.Base64url={stringify:function(u,e){e===void 0&&(e=!0);var x=u.words,E=u.sigBytes,a=e?this._safe_map:this._map;u.clamp();for(var f=[],o=0;o<E;o+=3)for(var v=x[o>>>2]>>>24-o%4*8&255,s=x[o+1>>>2]>>>24-(o+1)%4*8&255,B=x[o+2>>>2]>>>24-(o+2)%4*8&255,i=v<<16|s<<8|B,n=0;n<4&&o+n*.75<E;n++)f.push(a.charAt(i>>>6*(3-n)&63));var c=a.charAt(64);if(c)for(;f.length%4;)f.push(c);return f.join("")},parse:function(u,e){e===void 0&&(e=!0);var x=u.length,E=e?this._safe_map:this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var f=0;f<E.length;f++)a[E.charCodeAt(f)]=f}var o=E.charAt(64);if(o){var v=u.indexOf(o);v!==-1&&(x=v)}return l(u,x,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(u,e,x){for(var E=[],a=0,f=0;f<e;f++)if(f%4){var o=x[u.charCodeAt(f-1)]<<f%4*2,v=x[u.charCodeAt(f)]>>>6-f%4*2,s=o|v;E[a>>>2]|=s<<24-a%4*8,a++}return A.create(E,a)}}(),d.enc.Base64url})}(b0)),b0.exports}var R0={exports:{}},mr;function t0(){return mr||(mr=1,function(r,I){(function(d,t){r.exports=t(q())})(z,function(d){return function(t){var _=d,A=_.lib,y=A.WordArray,l=A.Hasher,u=_.algo,e=[];(function(){for(var v=0;v<64;v++)e[v]=t.abs(t.sin(v+1))*4294967296|0})();var x=u.MD5=l.extend({_doReset:function(){this._hash=new y.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(v,s){for(var B=0;B<16;B++){var i=s+B,n=v[i];v[i]=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360}var c=this._hash.words,p=v[s+0],C=v[s+1],F=v[s+2],g=v[s+3],H=v[s+4],h=v[s+5],D=v[s+6],b=v[s+7],R=v[s+8],P=v[s+9],T=v[s+10],N=v[s+11],G=v[s+12],O=v[s+13],U=v[s+14],M=v[s+15],m=c[0],k=c[1],S=c[2],w=c[3];m=E(m,k,S,w,p,7,e[0]),w=E(w,m,k,S,C,12,e[1]),S=E(S,w,m,k,F,17,e[2]),k=E(k,S,w,m,g,22,e[3]),m=E(m,k,S,w,H,7,e[4]),w=E(w,m,k,S,h,12,e[5]),S=E(S,w,m,k,D,17,e[6]),k=E(k,S,w,m,b,22,e[7]),m=E(m,k,S,w,R,7,e[8]),w=E(w,m,k,S,P,12,e[9]),S=E(S,w,m,k,T,17,e[10]),k=E(k,S,w,m,N,22,e[11]),m=E(m,k,S,w,G,7,e[12]),w=E(w,m,k,S,O,12,e[13]),S=E(S,w,m,k,U,17,e[14]),k=E(k,S,w,m,M,22,e[15]),m=a(m,k,S,w,C,5,e[16]),w=a(w,m,k,S,D,9,e[17]),S=a(S,w,m,k,N,14,e[18]),k=a(k,S,w,m,p,20,e[19]),m=a(m,k,S,w,h,5,e[20]),w=a(w,m,k,S,T,9,e[21]),S=a(S,w,m,k,M,14,e[22]),k=a(k,S,w,m,H,20,e[23]),m=a(m,k,S,w,P,5,e[24]),w=a(w,m,k,S,U,9,e[25]),S=a(S,w,m,k,g,14,e[26]),k=a(k,S,w,m,R,20,e[27]),m=a(m,k,S,w,O,5,e[28]),w=a(w,m,k,S,F,9,e[29]),S=a(S,w,m,k,b,14,e[30]),k=a(k,S,w,m,G,20,e[31]),m=f(m,k,S,w,h,4,e[32]),w=f(w,m,k,S,R,11,e[33]),S=f(S,w,m,k,N,16,e[34]),k=f(k,S,w,m,U,23,e[35]),m=f(m,k,S,w,C,4,e[36]),w=f(w,m,k,S,H,11,e[37]),S=f(S,w,m,k,b,16,e[38]),k=f(k,S,w,m,T,23,e[39]),m=f(m,k,S,w,O,4,e[40]),w=f(w,m,k,S,p,11,e[41]),S=f(S,w,m,k,g,16,e[42]),k=f(k,S,w,m,D,23,e[43]),m=f(m,k,S,w,P,4,e[44]),w=f(w,m,k,S,G,11,e[45]),S=f(S,w,m,k,M,16,e[46]),k=f(k,S,w,m,F,23,e[47]),m=o(m,k,S,w,p,6,e[48]),w=o(w,m,k,S,b,10,e[49]),S=o(S,w,m,k,U,15,e[50]),k=o(k,S,w,m,h,21,e[51]),m=o(m,k,S,w,G,6,e[52]),w=o(w,m,k,S,g,10,e[53]),S=o(S,w,m,k,T,15,e[54]),k=o(k,S,w,m,C,21,e[55]),m=o(m,k,S,w,R,6,e[56]),w=o(w,m,k,S,M,10,e[57]),S=o(S,w,m,k,D,15,e[58]),k=o(k,S,w,m,O,21,e[59]),m=o(m,k,S,w,H,6,e[60]),w=o(w,m,k,S,N,10,e[61]),S=o(S,w,m,k,F,15,e[62]),k=o(k,S,w,m,P,21,e[63]),c[0]=c[0]+m|0,c[1]=c[1]+k|0,c[2]=c[2]+S|0,c[3]=c[3]+w|0},_doFinalize:function(){var v=this._data,s=v.words,B=this._nDataBytes*8,i=v.sigBytes*8;s[i>>>5]|=128<<24-i%32;var n=t.floor(B/4294967296),c=B;s[(i+64>>>9<<4)+15]=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360,s[(i+64>>>9<<4)+14]=(c<<8|c>>>24)&16711935|(c<<24|c>>>8)&4278255360,v.sigBytes=(s.length+1)*4,this._process();for(var p=this._hash,C=p.words,F=0;F<4;F++){var g=C[F];C[F]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360}return p},clone:function(){var v=l.clone.call(this);return v._hash=this._hash.clone(),v}});function E(v,s,B,i,n,c,p){var C=v+(s&B|~s&i)+n+p;return(C<<c|C>>>32-c)+s}function a(v,s,B,i,n,c,p){var C=v+(s&i|B&~i)+n+p;return(C<<c|C>>>32-c)+s}function f(v,s,B,i,n,c,p){var C=v+(s^B^i)+n+p;return(C<<c|C>>>32-c)+s}function o(v,s,B,i,n,c,p){var C=v+(B^(s|~i))+n+p;return(C<<c|C>>>32-c)+s}_.MD5=l._createHelper(x),_.HmacMD5=l._createHmacHelper(x)}(Math),d.MD5})}(R0)),R0.exports}var w0={exports:{}},yr;function xe(){return yr||(yr=1,function(r,I){(function(d,t){r.exports=t(q())})(z,function(d){return function(){var t=d,_=t.lib,A=_.WordArray,y=_.Hasher,l=t.algo,u=[],e=l.SHA1=y.extend({_doReset:function(){this._hash=new A.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(x,E){for(var a=this._hash.words,f=a[0],o=a[1],v=a[2],s=a[3],B=a[4],i=0;i<80;i++){if(i<16)u[i]=x[E+i]|0;else{var n=u[i-3]^u[i-8]^u[i-14]^u[i-16];u[i]=n<<1|n>>>31}var c=(f<<5|f>>>27)+B+u[i];i<20?c+=(o&v|~o&s)+1518500249:i<40?c+=(o^v^s)+1859775393:i<60?c+=(o&v|o&s|v&s)-1894007588:c+=(o^v^s)-899497514,B=s,s=v,v=o<<30|o>>>2,o=f,f=c}a[0]=a[0]+f|0,a[1]=a[1]+o|0,a[2]=a[2]+v|0,a[3]=a[3]+s|0,a[4]=a[4]+B|0},_doFinalize:function(){var x=this._data,E=x.words,a=this._nDataBytes*8,f=x.sigBytes*8;return E[f>>>5]|=128<<24-f%32,E[(f+64>>>9<<4)+14]=Math.floor(a/4294967296),E[(f+64>>>9<<4)+15]=a,x.sigBytes=E.length*4,this._process(),this._hash},clone:function(){var x=y.clone.call(this);return x._hash=this._hash.clone(),x}});t.SHA1=y._createHelper(e),t.HmacSHA1=y._createHmacHelper(e)}(),d.SHA1})}(w0)),w0.exports}var k0={exports:{}},br;function ir(){return br||(br=1,function(r,I){(function(d,t){r.exports=t(q())})(z,function(d){return function(t){var _=d,A=_.lib,y=A.WordArray,l=A.Hasher,u=_.algo,e=[],x=[];(function(){function f(B){for(var i=t.sqrt(B),n=2;n<=i;n++)if(!(B%n))return!1;return!0}function o(B){return(B-(B|0))*4294967296|0}for(var v=2,s=0;s<64;)f(v)&&(s<8&&(e[s]=o(t.pow(v,1/2))),x[s]=o(t.pow(v,1/3)),s++),v++})();var E=[],a=u.SHA256=l.extend({_doReset:function(){this._hash=new y.init(e.slice(0))},_doProcessBlock:function(f,o){for(var v=this._hash.words,s=v[0],B=v[1],i=v[2],n=v[3],c=v[4],p=v[5],C=v[6],F=v[7],g=0;g<64;g++){if(g<16)E[g]=f[o+g]|0;else{var H=E[g-15],h=(H<<25|H>>>7)^(H<<14|H>>>18)^H>>>3,D=E[g-2],b=(D<<15|D>>>17)^(D<<13|D>>>19)^D>>>10;E[g]=h+E[g-7]+b+E[g-16]}var R=c&p^~c&C,P=s&B^s&i^B&i,T=(s<<30|s>>>2)^(s<<19|s>>>13)^(s<<10|s>>>22),N=(c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25),G=F+N+R+x[g]+E[g],O=T+P;F=C,C=p,p=c,c=n+G|0,n=i,i=B,B=s,s=G+O|0}v[0]=v[0]+s|0,v[1]=v[1]+B|0,v[2]=v[2]+i|0,v[3]=v[3]+n|0,v[4]=v[4]+c|0,v[5]=v[5]+p|0,v[6]=v[6]+C|0,v[7]=v[7]+F|0},_doFinalize:function(){var f=this._data,o=f.words,v=this._nDataBytes*8,s=f.sigBytes*8;return o[s>>>5]|=128<<24-s%32,o[(s+64>>>9<<4)+14]=t.floor(v/4294967296),o[(s+64>>>9<<4)+15]=v,f.sigBytes=o.length*4,this._process(),this._hash},clone:function(){var f=l.clone.call(this);return f._hash=this._hash.clone(),f}});_.SHA256=l._createHelper(a),_.HmacSHA256=l._createHmacHelper(a)}(Math),d.SHA256})}(k0)),k0.exports}var S0={exports:{}},Rr;function Re(){return Rr||(Rr=1,function(r,I){(function(d,t,_){r.exports=t(q(),ir())})(z,function(d){return function(){var t=d,_=t.lib,A=_.WordArray,y=t.algo,l=y.SHA256,u=y.SHA224=l.extend({_doReset:function(){this._hash=new A.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=l._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=l._createHelper(u),t.HmacSHA224=l._createHmacHelper(u)}(),d.SHA224})}(S0)),S0.exports}var H0={exports:{}},wr;function te(){return wr||(wr=1,function(r,I){(function(d,t,_){r.exports=t(q(),p0())})(z,function(d){return function(){var t=d,_=t.lib,A=_.Hasher,y=t.x64,l=y.Word,u=y.WordArray,e=t.algo;function x(){return l.create.apply(l,arguments)}var E=[x(1116352408,3609767458),x(1899447441,602891725),x(3049323471,3964484399),x(3921009573,2173295548),x(961987163,4081628472),x(1508970993,3053834265),x(2453635748,2937671579),x(2870763221,3664609560),x(3624381080,2734883394),x(310598401,1164996542),x(607225278,1323610764),x(1426881987,3590304994),x(1925078388,4068182383),x(2162078206,991336113),x(2614888103,633803317),x(3248222580,3479774868),x(3835390401,2666613458),x(4022224774,944711139),x(264347078,2341262773),x(604807628,2007800933),x(770255983,1495990901),x(1249150122,1856431235),x(1555081692,3175218132),x(1996064986,2198950837),x(2554220882,3999719339),x(2821834349,766784016),x(2952996808,2566594879),x(3210313671,3203337956),x(3336571891,1034457026),x(3584528711,2466948901),x(113926993,3758326383),x(338241895,168717936),x(666307205,1188179964),x(773529912,1546045734),x(1294757372,1522805485),x(1396182291,2643833823),x(1695183700,2343527390),x(1986661051,1014477480),x(2177026350,1206759142),x(2456956037,344077627),x(2730485921,1290863460),x(2820302411,3158454273),x(3259730800,3505952657),x(3345764771,106217008),x(3516065817,3606008344),x(3600352804,1432725776),x(4094571909,1467031594),x(275423344,851169720),x(430227734,3100823752),x(506948616,1363258195),x(659060556,3750685593),x(883997877,3785050280),x(958139571,3318307427),x(1322822218,3812723403),x(1537002063,2003034995),x(1747873779,3602036899),x(1955562222,1575990012),x(2024104815,1125592928),x(2227730452,2716904306),x(2361852424,442776044),x(2428436474,593698344),x(2756734187,3733110249),x(3204031479,2999351573),x(3329325298,3815920427),x(3391569614,3928383900),x(3515267271,566280711),x(3940187606,3454069534),x(4118630271,4000239992),x(116418474,1914138554),x(174292421,2731055270),x(289380356,3203993006),x(460393269,320620315),x(685471733,587496836),x(852142971,1086792851),x(1017036298,365543100),x(1126000580,2618297676),x(1288033470,3409855158),x(1501505948,4234509866),x(1607167915,987167468),x(1816402316,1246189591)],a=[];(function(){for(var o=0;o<80;o++)a[o]=x()})();var f=e.SHA512=A.extend({_doReset:function(){this._hash=new u.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(o,v){for(var s=this._hash.words,B=s[0],i=s[1],n=s[2],c=s[3],p=s[4],C=s[5],F=s[6],g=s[7],H=B.high,h=B.low,D=i.high,b=i.low,R=n.high,P=n.low,T=c.high,N=c.low,G=p.high,O=p.low,U=C.high,M=C.low,m=F.high,k=F.low,S=g.high,w=g.low,$=H,W=h,K=D,L=b,o0=R,a0=P,A0=T,c0=N,Q=G,X=O,u0=U,s0=M,h0=m,f0=k,_0=S,v0=w,j=0;j<80;j++){var Z,J,E0=a[j];if(j<16)J=E0.high=o[v+j*2]|0,Z=E0.low=o[v+j*2+1]|0;else{var or=a[j-15],i0=or.high,d0=or.low,ie=(i0>>>1|d0<<31)^(i0>>>8|d0<<24)^i0>>>7,cr=(d0>>>1|i0<<31)^(d0>>>8|i0<<24)^(d0>>>7|i0<<25),sr=a[j-2],n0=sr.high,l0=sr.low,ne=(n0>>>19|l0<<13)^(n0<<3|l0>>>29)^n0>>>6,fr=(l0>>>19|n0<<13)^(l0<<3|n0>>>29)^(l0>>>6|n0<<26),vr=a[j-7],oe=vr.high,ce=vr.low,dr=a[j-16],se=dr.high,lr=dr.low;Z=cr+ce,J=ie+oe+(Z>>>0<cr>>>0?1:0),Z=Z+fr,J=J+ne+(Z>>>0<fr>>>0?1:0),Z=Z+lr,J=J+se+(Z>>>0<lr>>>0?1:0),E0.high=J,E0.low=Z}var fe=Q&u0^~Q&h0,ur=X&s0^~X&f0,ve=$&K^$&o0^K&o0,de=W&L^W&a0^L&a0,le=($>>>28|W<<4)^($<<30|W>>>2)^($<<25|W>>>7),hr=(W>>>28|$<<4)^(W<<30|$>>>2)^(W<<25|$>>>7),ue=(Q>>>14|X<<18)^(Q>>>18|X<<14)^(Q<<23|X>>>9),he=(X>>>14|Q<<18)^(X>>>18|Q<<14)^(X<<23|Q>>>9),Er=E[j],Ee=Er.high,Br=Er.low,Y=v0+he,r0=_0+ue+(Y>>>0<v0>>>0?1:0),Y=Y+ur,r0=r0+fe+(Y>>>0<ur>>>0?1:0),Y=Y+Br,r0=r0+Ee+(Y>>>0<Br>>>0?1:0),Y=Y+Z,r0=r0+J+(Y>>>0<Z>>>0?1:0),Cr=hr+de,Be=le+ve+(Cr>>>0<hr>>>0?1:0);_0=h0,v0=f0,h0=u0,f0=s0,u0=Q,s0=X,X=c0+Y|0,Q=A0+r0+(X>>>0<c0>>>0?1:0)|0,A0=o0,c0=a0,o0=K,a0=L,K=$,L=W,W=Y+Cr|0,$=r0+Be+(W>>>0<Y>>>0?1:0)|0}h=B.low=h+W,B.high=H+$+(h>>>0<W>>>0?1:0),b=i.low=b+L,i.high=D+K+(b>>>0<L>>>0?1:0),P=n.low=P+a0,n.high=R+o0+(P>>>0<a0>>>0?1:0),N=c.low=N+c0,c.high=T+A0+(N>>>0<c0>>>0?1:0),O=p.low=O+X,p.high=G+Q+(O>>>0<X>>>0?1:0),M=C.low=M+s0,C.high=U+u0+(M>>>0<s0>>>0?1:0),k=F.low=k+f0,F.high=m+h0+(k>>>0<f0>>>0?1:0),w=g.low=w+v0,g.high=S+_0+(w>>>0<v0>>>0?1:0)},_doFinalize:function(){var o=this._data,v=o.words,s=this._nDataBytes*8,B=o.sigBytes*8;v[B>>>5]|=128<<24-B%32,v[(B+128>>>10<<5)+30]=Math.floor(s/4294967296),v[(B+128>>>10<<5)+31]=s,o.sigBytes=v.length*4,this._process();var i=this._hash.toX32();return i},clone:function(){var o=A.clone.call(this);return o._hash=this._hash.clone(),o},blockSize:1024/32});t.SHA512=A._createHelper(f),t.HmacSHA512=A._createHmacHelper(f)}(),d.SHA512})}(H0)),H0.exports}var I0={exports:{}},kr;function we(){return kr||(kr=1,function(r,I){(function(d,t,_){r.exports=t(q(),p0(),te())})(z,function(d){return function(){var t=d,_=t.x64,A=_.Word,y=_.WordArray,l=t.algo,u=l.SHA512,e=l.SHA384=u.extend({_doReset:function(){this._hash=new y.init([new A.init(3418070365,3238371032),new A.init(1654270250,914150663),new A.init(2438529370,812702999),new A.init(355462360,4144912697),new A.init(1731405415,4290775857),new A.init(2394180231,1750603025),new A.init(3675008525,1694076839),new A.init(1203062813,3204075428)])},_doFinalize:function(){var x=u._doFinalize.call(this);return x.sigBytes-=16,x}});t.SHA384=u._createHelper(e),t.HmacSHA384=u._createHmacHelper(e)}(),d.SHA384})}(I0)),I0.exports}var P0={exports:{}},Sr;function ke(){return Sr||(Sr=1,function(r,I){(function(d,t,_){r.exports=t(q(),p0())})(z,function(d){return function(t){var _=d,A=_.lib,y=A.WordArray,l=A.Hasher,u=_.x64,e=u.Word,x=_.algo,E=[],a=[],f=[];(function(){for(var s=1,B=0,i=0;i<24;i++){E[s+5*B]=(i+1)*(i+2)/2%64;var n=B%5,c=(2*s+3*B)%5;s=n,B=c}for(var s=0;s<5;s++)for(var B=0;B<5;B++)a[s+5*B]=B+(2*s+3*B)%5*5;for(var p=1,C=0;C<24;C++){for(var F=0,g=0,H=0;H<7;H++){if(p&1){var h=(1<<H)-1;h<32?g^=1<<h:F^=1<<h-32}p&128?p=p<<1^113:p<<=1}f[C]=e.create(F,g)}})();var o=[];(function(){for(var s=0;s<25;s++)o[s]=e.create()})();var v=x.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var s=this._state=[],B=0;B<25;B++)s[B]=new e.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(s,B){for(var i=this._state,n=this.blockSize/2,c=0;c<n;c++){var p=s[B+2*c],C=s[B+2*c+1];p=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360;var F=i[c];F.high^=C,F.low^=p}for(var g=0;g<24;g++){for(var H=0;H<5;H++){for(var h=0,D=0,b=0;b<5;b++){var F=i[H+5*b];h^=F.high,D^=F.low}var R=o[H];R.high=h,R.low=D}for(var H=0;H<5;H++)for(var P=o[(H+4)%5],T=o[(H+1)%5],N=T.high,G=T.low,h=P.high^(N<<1|G>>>31),D=P.low^(G<<1|N>>>31),b=0;b<5;b++){var F=i[H+5*b];F.high^=h,F.low^=D}for(var O=1;O<25;O++){var h,D,F=i[O],U=F.high,M=F.low,m=E[O];m<32?(h=U<<m|M>>>32-m,D=M<<m|U>>>32-m):(h=M<<m-32|U>>>64-m,D=U<<m-32|M>>>64-m);var k=o[a[O]];k.high=h,k.low=D}var S=o[0],w=i[0];S.high=w.high,S.low=w.low;for(var H=0;H<5;H++)for(var b=0;b<5;b++){var O=H+5*b,F=i[O],$=o[O],W=o[(H+1)%5+5*b],K=o[(H+2)%5+5*b];F.high=$.high^~W.high&K.high,F.low=$.low^~W.low&K.low}var F=i[0],L=f[g];F.high^=L.high,F.low^=L.low}},_doFinalize:function(){var s=this._data,B=s.words;this._nDataBytes*8;var i=s.sigBytes*8,n=this.blockSize*32;B[i>>>5]|=1<<24-i%32,B[(t.ceil((i+1)/n)*n>>>5)-1]|=128,s.sigBytes=B.length*4,this._process();for(var c=this._state,p=this.cfg.outputLength/8,C=p/8,F=[],g=0;g<C;g++){var H=c[g],h=H.high,D=H.low;h=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,D=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,F.push(D),F.push(h)}return new y.init(F,p)},clone:function(){for(var s=l.clone.call(this),B=s._state=this._state.slice(0),i=0;i<25;i++)B[i]=B[i].clone();return s}});_.SHA3=l._createHelper(v),_.HmacSHA3=l._createHmacHelper(v)}(Math),d.SHA3})}(P0)),P0.exports}var T0={exports:{}},Hr;function Se(){return Hr||(Hr=1,function(r,I){(function(d,t){r.exports=t(q())})(z,function(d){/** @preserve
|
|
2
2
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
3
3
|
|
|
4
4
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|