@swapkit/wallet-hardware 6.1.1 → 6.2.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/dist/chunk-035dayv6.js +4 -0
- package/dist/chunk-035dayv6.js.map +10 -0
- package/dist/{chunk-yrxe491r.js → chunk-2jddegc1.js} +3 -3
- package/dist/{chunk-yrxe491r.js.map → chunk-2jddegc1.js.map} +1 -1
- package/dist/{chunk-gr3eswf1.js → chunk-42xrtarj.js} +3 -3
- package/dist/{chunk-gr3eswf1.js.map → chunk-42xrtarj.js.map} +1 -1
- package/dist/{chunk-3t17wpjg.js → chunk-545s1tsc.js} +3 -3
- package/dist/{chunk-3t17wpjg.js.map → chunk-545s1tsc.js.map} +1 -1
- package/dist/{chunk-1amf58aq.js → chunk-5xg0xc0g.js} +3 -3
- package/dist/{chunk-1amf58aq.js.map → chunk-5xg0xc0g.js.map} +1 -1
- package/dist/{chunk-xn0fnag5.js → chunk-71kfnwdp.js} +3 -3
- package/dist/{chunk-xn0fnag5.js.map → chunk-71kfnwdp.js.map} +1 -1
- package/dist/{chunk-xmvg4cds.js → chunk-7kwtpk70.js} +3 -3
- package/dist/{chunk-xmvg4cds.js.map → chunk-7kwtpk70.js.map} +1 -1
- package/dist/{chunk-0arpsm5f.js → chunk-7rbvcts9.js} +3 -3
- package/dist/{chunk-0arpsm5f.js.map → chunk-7rbvcts9.js.map} +1 -1
- package/dist/{chunk-k3thje6a.js → chunk-a47dwwv6.js} +3 -3
- package/dist/{chunk-k3thje6a.js.map → chunk-a47dwwv6.js.map} +1 -1
- package/dist/{chunk-5c7b7z2d.js → chunk-a6vcbcyd.js} +3 -3
- package/dist/{chunk-5c7b7z2d.js.map → chunk-a6vcbcyd.js.map} +1 -1
- package/dist/{chunk-wfbg89d3.js → chunk-b093ajcq.js} +3 -3
- package/dist/{chunk-wfbg89d3.js.map → chunk-b093ajcq.js.map} +1 -1
- package/dist/{chunk-ds2m83jp.js → chunk-b7htg03t.js} +3 -3
- package/dist/{chunk-ds2m83jp.js.map → chunk-b7htg03t.js.map} +1 -1
- package/dist/chunk-g6rrzxcx.js +5 -0
- package/dist/chunk-g6rrzxcx.js.map +10 -0
- package/dist/{chunk-jewm2ag3.js → chunk-j3n6fbqh.js} +4 -4
- package/dist/{chunk-jewm2ag3.js.map → chunk-j3n6fbqh.js.map} +1 -1
- package/dist/{chunk-nhva847d.js → chunk-kaw35ae2.js} +3 -3
- package/dist/{chunk-nhva847d.js.map → chunk-kaw35ae2.js.map} +1 -1
- package/dist/{chunk-dptbnkzm.js → chunk-mzan0m09.js} +4 -4
- package/dist/{chunk-dptbnkzm.js.map → chunk-mzan0m09.js.map} +1 -1
- package/dist/{chunk-jzrytcrf.js → chunk-rydhx4se.js} +3 -3
- package/dist/{chunk-jzrytcrf.js.map → chunk-rydhx4se.js.map} +1 -1
- package/dist/{chunk-09e51wma.js → chunk-s2akss77.js} +3 -3
- package/dist/{chunk-09e51wma.js.map → chunk-s2akss77.js.map} +1 -1
- package/dist/{chunk-tm47brht.js → chunk-s5a5v0m1.js} +3 -3
- package/dist/{chunk-tm47brht.js.map → chunk-s5a5v0m1.js.map} +1 -1
- package/dist/{chunk-8m2sn76p.js → chunk-sbebfr50.js} +3 -3
- package/dist/{chunk-8m2sn76p.js.map → chunk-sbebfr50.js.map} +1 -1
- package/dist/{chunk-xx7cwpzq.js → chunk-sp3dq5hr.js} +2 -2
- package/dist/{chunk-hg71hp4m.js → chunk-tecse0bj.js} +3 -3
- package/dist/{chunk-hg71hp4m.js.map → chunk-tecse0bj.js.map} +1 -1
- package/dist/chunk-tm5gk51g.js +4 -0
- package/dist/{chunk-eenx3cv6.js → chunk-x28a37pz.js} +3 -3
- package/dist/{chunk-eenx3cv6.js.map → chunk-x28a37pz.js.map} +1 -1
- package/dist/{chunk-3h1f3hyp.js → chunk-ys51wj1c.js} +3 -3
- package/dist/{chunk-3h1f3hyp.js.map → chunk-ys51wj1c.js.map} +1 -1
- package/dist/keepkey/index.cjs +2 -2
- package/dist/keepkey/index.cjs.map +3 -3
- package/dist/keepkey/index.js +2 -2
- package/dist/keepkey/index.js.map +3 -3
- package/dist/ledger/index.cjs +30 -30
- package/dist/ledger/index.cjs.map +11 -7
- package/dist/ledger/index.js +2 -2
- package/dist/ledger/index.js.map +10 -7
- package/dist/trezor/index.cjs +2 -2
- package/dist/trezor/index.cjs.map +6 -5
- package/dist/trezor/index.js +2 -2
- package/dist/trezor/index.js.map +3 -3
- package/dist/types/helpers/cardano.d.ts +35 -0
- package/dist/types/helpers/cardano.d.ts.map +1 -0
- package/dist/types/keepkey/index.d.ts +1 -0
- package/dist/types/keepkey/index.d.ts.map +1 -1
- package/dist/types/ledger/clients/cardano.d.ts +24 -0
- package/dist/types/ledger/clients/cardano.d.ts.map +1 -0
- package/dist/types/ledger/clients/evm.d.ts +1 -0
- package/dist/types/ledger/clients/evm.d.ts.map +1 -1
- package/dist/types/ledger/clients/stellar.d.ts +13 -0
- package/dist/types/ledger/clients/stellar.d.ts.map +1 -0
- package/dist/types/ledger/clients/ton.d.ts +13 -0
- package/dist/types/ledger/clients/ton.d.ts.map +1 -0
- package/dist/types/ledger/helpers/getLedgerAddress.d.ts.map +1 -1
- package/dist/types/ledger/helpers/getLedgerClient.d.ts +8 -1
- package/dist/types/ledger/helpers/getLedgerClient.d.ts.map +1 -1
- package/dist/types/ledger/index.d.ts +3 -2
- package/dist/types/ledger/index.d.ts.map +1 -1
- package/dist/types/ledger/types.d.ts +2 -2
- package/dist/types/ledger/types.d.ts.map +1 -1
- package/dist/types/trezor/cardanoSigner.d.ts.map +1 -1
- package/dist/types/trezor/index.d.ts +1 -0
- package/dist/types/trezor/index.d.ts.map +1 -1
- package/dist/types/trezor/stellarSigner.d.ts +1 -1
- package/package.json +16 -4
- package/src/helpers/cardano.ts +112 -0
- package/src/keepkey/index.ts +14 -14
- package/src/ledger/clients/cardano.ts +204 -0
- package/src/ledger/clients/evm.ts +4 -0
- package/src/ledger/clients/stellar.ts +83 -0
- package/src/ledger/clients/ton.ts +282 -0
- package/src/ledger/helpers/getLedgerAddress.ts +16 -0
- package/src/ledger/helpers/getLedgerClient.ts +13 -0
- package/src/ledger/index.ts +100 -28
- package/src/ledger/types.ts +2 -0
- package/src/trezor/cardanoSigner.ts +24 -80
- package/src/trezor/index.ts +86 -64
- package/dist/chunk-5p3ttw6y.js +0 -4
- package/dist/chunk-qjq7gvyx.js +0 -4
- package/dist/chunk-qjq7gvyx.js.map +0 -10
- /package/dist/{chunk-xx7cwpzq.js.map → chunk-sp3dq5hr.js.map} +0 -0
- /package/dist/{chunk-5p3ttw6y.js.map → chunk-tm5gk51g.js.map} +0 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{Ia as S}from"./chunk-g6rrzxcx.js";import"./chunk-kaw35ae2.js";import{hex as W}from"@scure/base";import{Chain as z,derivationPathToString as R,SwapKitError as B}from"@swapkit/helpers";import{addCardanoVkeyWitnesses as K,decodeCardanoTransaction as A,getCardanoAddressFromBytes as m,getCardanoPublicKeyHash as O}from"@swapkit/toolboxes/cardano";function T({CARDANO:j,PROTO:q}){return{derivationType:q.CardanoDerivationType.ICARUS,mainnet:{networkId:j.NETWORK_IDS.mainnet,protocolMagic:j.PROTOCOL_MAGICS.mainnet}}}function g(j){return new B({errorKey:"wallet_trezor_method_not_supported",info:{chain:z.Cardano,reason:j}})}function D(j){return new B({errorKey:"wallet_trezor_failed_to_sign_transaction",info:{chain:z.Cardano,error:j}})}async function H({address:j,amount:q,format:X,tokenGroups:Z},L,M){let Q=await m(j),J=Q===L.address?{addressParameters:{addressType:M.CardanoAddressType.BASE,path:L.path,stakingPath:L.stakingPath}}:{address:Q},U=Z?.map(({policyId:_,tokens:f})=>({policyId:W.encode(_),tokenAmounts:f.map(({amount:$,assetName:Y})=>({amount:$,assetNameBytes:W.encode(Y)}))}));return{...J,amount:q,format:X==="legacy"?M.CardanoTxOutputSerializationFormat.ARRAY_LEGACY:M.CardanoTxOutputSerializationFormat.MAP_BABBAGE,...U===void 0?{}:{tokenBundle:U}}}async function v(j,q,X){let{body:Z}=await A(j),{derivationType:L,mainnet:M}=T(X),{PROTO:Q}=X,{auxiliaryDataHash:J,fee:U,inputs:_,outputs:f,tagCborSets:$,ttl:Y,validityIntervalStart:V}=S(Z,"Trezor",g);return{inputs:_.map(({index:E,txHash:I})=>({path:q.path,prev_hash:W.encode(I),prev_index:E})),tagCborSets:$,...M,derivationType:L,fee:U,outputs:await Promise.all(f.map((E)=>H(E,q,Q))),signingMode:Q.CardanoTxSigningMode.ORDINARY_TRANSACTION,...J?{auxiliaryData:{hash:W.encode(J)}}:{},...Y===void 0?{}:{ttl:Y},...V===void 0?{}:{validityIntervalStart:V}}}async function w(j,{hash:q,witnesses:X},Z,{PROTO:L}){let{bodyHash:M}=await A(j);if(q.toLowerCase()!==M)throw D("Trezor signed a different transaction body");let Q=X.map(({pubKey:J,signature:U,type:_})=>{if(_!==L.CardanoTxWitnessType.SHELLEY_WITNESS||J.toLowerCase()!==Z)throw D("Trezor returned a witness for an unexpected key");return{publicKey:W.decode(J),signature:W.decode(U)}});return K(j,Q)}async function y({connect:j,derivationPath:q}){let[X,Z,L,M,Q]=q;if(q.length!==5||M!==0||Q===void 0)throw new B({errorKey:"wallet_trezor_derivation_path_not_supported",info:{chain:z.Cardano,derivationPath:q}});let J=R(q),U=R([X,Z,L,2,0]),{derivationType:_,mainnet:f}=T(j),$=j.default,Y=await $.cardanoGetPublicKey({bundle:[J,U].map((G)=>({derivationType:_,path:G}))});if(!Y.success)throw new B({errorKey:"wallet_trezor_failed_to_get_address",info:{chain:z.Cardano,derivationPath:q,error:Y.payload.error}});let[V,E]=Y.payload.map(({node:G})=>Buffer.from(G.public_key,"hex")),I=await O(V),N=await m(Buffer.concat([Buffer.from([f.networkId]),I,await O(E)]));async function b(G){let k=await v(G,{address:N,path:J,stakingPath:U},j),F=await $.cardanoSignTransaction(k);if(!F.success)throw D(F.payload.error);return w(G,F.payload,V.toString("hex"),j)}return{getAddress:()=>N,publicKey:V,publicKeyHash:I,signTransaction:b}}export{v as toTrezorCardanoTransaction,y as getCardanoSigner,w as addTrezorWitnesses};
|
|
2
|
+
|
|
3
|
+
//# debugId=79EF8AF288BA7DEB64756E2164756E21
|
|
4
|
+
//# sourceMappingURL=chunk-035dayv6.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/trezor/cardanoSigner.ts"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"import { hex } from \"@scure/base\";\nimport { Chain, type DerivationPathArray, derivationPathToString, SwapKitError } from \"@swapkit/helpers\";\nimport {\n addCardanoVkeyWitnesses,\n decodeCardanoTransaction,\n getCardanoAddressFromBytes,\n getCardanoPublicKeyHash,\n} from \"@swapkit/toolboxes/cardano\";\nimport type {\n CardanoAssetGroup,\n CardanoOutput,\n CardanoSignedTxData,\n CardanoSignTransaction,\n} from \"@trezor/connect-web\";\n\nimport { type CardanoOutputFields, readCardanoBody } from \"../helpers/cardano\";\n\ntype CardanoAddressParams = { address: string; path: string; stakingPath: string };\nexport type TrezorConnectModule = typeof import(\"@trezor/connect-web\");\n\nfunction getConnectParams({ CARDANO, PROTO }: TrezorConnectModule) {\n return {\n // Trezor Suite default, same as the SwapKit keystore\n derivationType: PROTO.CardanoDerivationType.ICARUS,\n mainnet: { networkId: CARDANO.NETWORK_IDS.mainnet, protocolMagic: CARDANO.PROTOCOL_MAGICS.mainnet },\n };\n}\n\nfunction notSupported(reason: string) {\n return new SwapKitError({ errorKey: \"wallet_trezor_method_not_supported\", info: { chain: Chain.Cardano, reason } });\n}\n\nfunction signFailed(error: string) {\n return new SwapKitError({\n errorKey: \"wallet_trezor_failed_to_sign_transaction\",\n info: { chain: Chain.Cardano, error },\n });\n}\n\nasync function toTrezorOutput(\n { address, amount, format, tokenGroups }: CardanoOutputFields,\n own: CardanoAddressParams,\n proto: TrezorConnectModule[\"PROTO\"],\n): Promise<CardanoOutput> {\n const outputAddress = await getCardanoAddressFromBytes(address);\n const destination =\n outputAddress === own.address\n ? {\n addressParameters: {\n addressType: proto.CardanoAddressType.BASE,\n path: own.path,\n stakingPath: own.stakingPath,\n },\n }\n : { address: outputAddress };\n const tokenBundle: CardanoAssetGroup[] | undefined = tokenGroups?.map(({ policyId, tokens }) => ({\n policyId: hex.encode(policyId),\n tokenAmounts: tokens.map(({ amount, assetName }) => ({ amount, assetNameBytes: hex.encode(assetName) })),\n }));\n\n return {\n ...destination,\n amount,\n format:\n format === \"legacy\"\n ? proto.CardanoTxOutputSerializationFormat.ARRAY_LEGACY\n : proto.CardanoTxOutputSerializationFormat.MAP_BABBAGE,\n ...(tokenBundle === undefined ? {} : { tokenBundle }),\n };\n}\n\nexport async function toTrezorCardanoTransaction(\n txHex: string,\n own: CardanoAddressParams,\n connect: TrezorConnectModule,\n): Promise<CardanoSignTransaction> {\n const { body } = await decodeCardanoTransaction(txHex);\n const { derivationType, mainnet } = getConnectParams(connect);\n const { PROTO: proto } = connect;\n const { auxiliaryDataHash, fee, inputs, outputs, tagCborSets, ttl, validityIntervalStart } = readCardanoBody(\n body,\n \"Trezor\",\n notSupported,\n );\n\n return {\n inputs: inputs.map(({ index, txHash }) => ({ path: own.path, prev_hash: hex.encode(txHash), prev_index: index })),\n tagCborSets,\n ...mainnet,\n derivationType,\n fee,\n outputs: await Promise.all(outputs.map((output) => toTrezorOutput(output, own, proto))),\n signingMode: proto.CardanoTxSigningMode.ORDINARY_TRANSACTION,\n ...(auxiliaryDataHash ? { auxiliaryData: { hash: hex.encode(auxiliaryDataHash) } } : {}),\n ...(ttl === undefined ? {} : { ttl }),\n ...(validityIntervalStart === undefined ? {} : { validityIntervalStart }),\n };\n}\n\nexport async function addTrezorWitnesses(\n txHex: string,\n { hash, witnesses }: Pick<CardanoSignedTxData, \"hash\" | \"witnesses\">,\n publicKey: string,\n { PROTO: proto }: TrezorConnectModule,\n) {\n const { bodyHash } = await decodeCardanoTransaction(txHex);\n\n if (hash.toLowerCase() !== bodyHash) throw signFailed(\"Trezor signed a different transaction body\");\n\n const vkeyWitnesses = witnesses.map(({ pubKey, signature, type }) => {\n if (type !== proto.CardanoTxWitnessType.SHELLEY_WITNESS || pubKey.toLowerCase() !== publicKey) {\n throw signFailed(\"Trezor returned a witness for an unexpected key\");\n }\n return { publicKey: hex.decode(pubKey), signature: hex.decode(signature) };\n });\n\n return addCardanoVkeyWitnesses(txHex, vkeyWitnesses);\n}\n\nexport async function getCardanoSigner({\n connect,\n derivationPath,\n}: {\n connect: TrezorConnectModule;\n derivationPath: DerivationPathArray;\n}) {\n const [purpose, coinType, account, role, index] = derivationPath;\n if (derivationPath.length !== 5 || role !== 0 || index === undefined) {\n throw new SwapKitError({\n errorKey: \"wallet_trezor_derivation_path_not_supported\",\n info: { chain: Chain.Cardano, derivationPath },\n });\n }\n\n const path = derivationPathToString(derivationPath);\n const stakingPath = derivationPathToString([purpose, coinType, account, 2, 0] as DerivationPathArray);\n const { derivationType, mainnet } = getConnectParams(connect);\n const TrezorConnect = connect.default;\n\n // One device call: a second one right after would need a new Connect popup\n const keysResult = await TrezorConnect.cardanoGetPublicKey({\n bundle: [path, stakingPath].map((keyPath) => ({ derivationType, path: keyPath })),\n });\n if (!keysResult.success) {\n throw new SwapKitError({\n errorKey: \"wallet_trezor_failed_to_get_address\",\n info: { chain: Chain.Cardano, derivationPath, error: keysResult.payload.error },\n });\n }\n\n const [publicKey, stakingKey] = keysResult.payload.map(({ node }) => Buffer.from(node.public_key, \"hex\")) as [\n Buffer,\n Buffer,\n ];\n const publicKeyHash = await getCardanoPublicKeyHash(publicKey);\n const address = await getCardanoAddressFromBytes(\n Buffer.concat([Buffer.from([mainnet.networkId]), publicKeyHash, await getCardanoPublicKeyHash(stakingKey)]),\n );\n\n async function signTransaction(txHex: string) {\n const params = await toTrezorCardanoTransaction(txHex, { address, path, stakingPath }, connect);\n const result = await TrezorConnect.cardanoSignTransaction(params);\n\n if (!result.success) throw signFailed(result.payload.error);\n\n return addTrezorWitnesses(txHex, result.payload, publicKey.toString(\"hex\"), connect);\n }\n\n return { getAddress: () => address, publicKey, publicKeyHash, signTransaction };\n}\n"
|
|
6
|
+
],
|
|
7
|
+
"mappings": "2EAAA,QAAS,oBACT,gBAAS,4BAAiC,kBAAwB,yBAClE,kCACE,8BACA,gCACA,6BACA,mCAcF,SAAS,CAAgB,EAAG,UAAS,SAA8B,CACjE,MAAO,CAEL,eAAgB,EAAM,sBAAsB,OAC5C,QAAS,CAAE,UAAW,EAAQ,YAAY,QAAS,cAAe,EAAQ,gBAAgB,OAAQ,CACpG,EAGF,SAAS,CAAY,CAAC,EAAgB,CACpC,OAAO,IAAI,EAAa,CAAE,SAAU,qCAAsC,KAAM,CAAE,MAAO,EAAM,QAAS,QAAO,CAAE,CAAC,EAGpH,SAAS,CAAU,CAAC,EAAe,CACjC,OAAO,IAAI,EAAa,CACtB,SAAU,2CACV,KAAM,CAAE,MAAO,EAAM,QAAS,OAAM,CACtC,CAAC,EAGH,eAAe,CAAc,EACzB,UAAS,SAAQ,SAAQ,eAC3B,EACA,EACwB,CACxB,IAAM,EAAgB,MAAM,EAA2B,CAAO,EACxD,EACJ,IAAkB,EAAI,QAClB,CACE,kBAAmB,CACjB,YAAa,EAAM,mBAAmB,KACtC,KAAM,EAAI,KACV,YAAa,EAAI,WACnB,CACF,EACA,CAAE,QAAS,CAAc,EACzB,EAA+C,GAAa,IAAI,EAAG,WAAU,aAAc,CAC/F,SAAU,EAAI,OAAO,CAAQ,EAC7B,aAAc,EAAO,IAAI,EAAG,SAAQ,gBAAiB,CAAE,SAAQ,eAAgB,EAAI,OAAO,CAAS,CAAE,EAAE,CACzG,EAAE,EAEF,MAAO,IACF,EACH,SACA,OACE,IAAW,SACP,EAAM,mCAAmC,aACzC,EAAM,mCAAmC,eAC3C,IAAgB,OAAY,CAAC,EAAI,CAAE,aAAY,CACrD,EAGF,eAAsB,CAA0B,CAC9C,EACA,EACA,EACiC,CACjC,IAAQ,QAAS,MAAM,EAAyB,CAAK,GAC7C,iBAAgB,WAAY,EAAiB,CAAO,GACpD,MAAO,GAAU,GACjB,oBAAmB,MAAK,SAAQ,UAAS,cAAa,MAAK,yBAA0B,EAC3F,EACA,SACA,CACF,EAEA,MAAO,CACL,OAAQ,EAAO,IAAI,EAAG,QAAO,aAAc,CAAE,KAAM,EAAI,KAAM,UAAW,EAAI,OAAO,CAAM,EAAG,WAAY,CAAM,EAAE,EAChH,iBACG,EACH,iBACA,MACA,QAAS,MAAM,QAAQ,IAAI,EAAQ,IAAI,CAAC,IAAW,EAAe,EAAQ,EAAK,CAAK,CAAC,CAAC,EACtF,YAAa,EAAM,qBAAqB,wBACpC,EAAoB,CAAE,cAAe,CAAE,KAAM,EAAI,OAAO,CAAiB,CAAE,CAAE,EAAI,CAAC,KAClF,IAAQ,OAAY,CAAC,EAAI,CAAE,KAAI,KAC/B,IAA0B,OAAY,CAAC,EAAI,CAAE,uBAAsB,CACzE,EAGF,eAAsB,CAAkB,CACtC,GACE,OAAM,aACR,GACE,MAAO,GACT,CACA,IAAQ,YAAa,MAAM,EAAyB,CAAK,EAEzD,GAAI,EAAK,YAAY,IAAM,EAAU,MAAM,EAAW,4CAA4C,EAElG,IAAM,EAAgB,EAAU,IAAI,EAAG,SAAQ,YAAW,UAAW,CACnE,GAAI,IAAS,EAAM,qBAAqB,iBAAmB,EAAO,YAAY,IAAM,EAClF,MAAM,EAAW,iDAAiD,EAEpE,MAAO,CAAE,UAAW,EAAI,OAAO,CAAM,EAAG,UAAW,EAAI,OAAO,CAAS,CAAE,EAC1E,EAED,OAAO,EAAwB,EAAO,CAAa,EAGrD,eAAsB,CAAgB,EACpC,UACA,kBAIC,CACD,IAAO,EAAS,EAAU,EAAS,EAAM,GAAS,EAClD,GAAI,EAAe,SAAW,GAAK,IAAS,GAAK,IAAU,OACzD,MAAM,IAAI,EAAa,CACrB,SAAU,8CACV,KAAM,CAAE,MAAO,EAAM,QAAS,gBAAe,CAC/C,CAAC,EAGH,IAAM,EAAO,EAAuB,CAAc,EAC5C,EAAc,EAAuB,CAAC,EAAS,EAAU,EAAS,EAAG,CAAC,CAAwB,GAC5F,iBAAgB,WAAY,EAAiB,CAAO,EACtD,EAAgB,EAAQ,QAGxB,EAAa,MAAM,EAAc,oBAAoB,CACzD,OAAQ,CAAC,EAAM,CAAW,EAAE,IAAI,CAAC,KAAa,CAAE,iBAAgB,KAAM,CAAQ,EAAE,CAClF,CAAC,EACD,GAAI,CAAC,EAAW,QACd,MAAM,IAAI,EAAa,CACrB,SAAU,sCACV,KAAM,CAAE,MAAO,EAAM,QAAS,iBAAgB,MAAO,EAAW,QAAQ,KAAM,CAChF,CAAC,EAGH,IAAO,EAAW,GAAc,EAAW,QAAQ,IAAI,EAAG,UAAW,OAAO,KAAK,EAAK,WAAY,KAAK,CAAC,EAIlG,EAAgB,MAAM,EAAwB,CAAS,EACvD,EAAU,MAAM,EACpB,OAAO,OAAO,CAAC,OAAO,KAAK,CAAC,EAAQ,SAAS,CAAC,EAAG,EAAe,MAAM,EAAwB,CAAU,CAAC,CAAC,CAC5G,EAEA,eAAe,CAAe,CAAC,EAAe,CAC5C,IAAM,EAAS,MAAM,EAA2B,EAAO,CAAE,UAAS,OAAM,aAAY,EAAG,CAAO,EACxF,EAAS,MAAM,EAAc,uBAAuB,CAAM,EAEhE,GAAI,CAAC,EAAO,QAAS,MAAM,EAAW,EAAO,QAAQ,KAAK,EAE1D,OAAO,EAAmB,EAAO,EAAO,QAAS,EAAU,SAAS,KAAK,EAAG,CAAO,EAGrF,MAAO,CAAE,WAAY,IAAM,EAAS,YAAW,gBAAe,iBAAgB",
|
|
8
|
+
"debugId": "79EF8AF288BA7DEB64756E2164756E21",
|
|
9
|
+
"names": []
|
|
10
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$d as CQ,Xd as h0,Yd as EX,Zd as $X,_d as KX}from"./chunk-nhva847d.js";var WU={};$X(WU,{transcode:()=>wY,resolveObjectURL:()=>xY,kStringMaxLength:()=>qZ,kMaxLength:()=>rU,isUtf8:()=>NY,isAscii:()=>gY,default:()=>fY,constants:()=>VY,btoa:()=>ZY,atob:()=>QY,INSPECT_MAX_BYTES:()=>RZ,File:()=>YY,Buffer:()=>$0,Blob:()=>JY});function aQ(I){var O=I.length;if(O%4>0)throw Error("Invalid string. Length must be a multiple of 4");var W=I.indexOf("=");if(W===-1)W=O;var T=W===O?0:4-W%4;return[W,T]}function eQ(I,O){return(I+O)*3/4-O}function iQ(I){var O,W=aQ(I),T=W[0],H=W[1],L=new Uint8Array(eQ(T,H)),V=0,P=H>0?T-4:T,S;for(S=0;S<P;S+=4)O=PU[I.charCodeAt(S)]<<18|PU[I.charCodeAt(S+1)]<<12|PU[I.charCodeAt(S+2)]<<6|PU[I.charCodeAt(S+3)],L[V++]=O>>16&255,L[V++]=O>>8&255,L[V++]=O&255;if(H===2)O=PU[I.charCodeAt(S)]<<2|PU[I.charCodeAt(S+1)]>>4,L[V++]=O&255;if(H===1)O=PU[I.charCodeAt(S)]<<10|PU[I.charCodeAt(S+1)]<<4|PU[I.charCodeAt(S+2)]>>2,L[V++]=O>>8&255,L[V++]=O&255;return L}function UY(I){return jU[I>>18&63]+jU[I>>12&63]+jU[I>>6&63]+jU[I&63]}function XY(I,O,W){var T,H=[];for(var L=O;L<W;L+=3)T=(I[L]<<16&16711680)+(I[L+1]<<8&65280)+(I[L+2]&255),H.push(UY(T));return H.join("")}function AZ(I){var O,W=I.length,T=W%3,H=[],L=16383;for(var V=0,P=W-T;V<P;V+=L)H.push(XY(I,V,V+L>P?P:V+L));if(T===1)O=I[W-1],H.push(jU[O>>2]+jU[O<<4&63]+"==");else if(T===2)O=(I[W-2]<<8)+I[W-1],H.push(jU[O>>10]+jU[O>>4&63]+jU[O<<2&63]+"=");return H.join("")}function OX(I,O,W,T,H){var L,V,P=H*8-T-1,S=(1<<P)-1,E=S>>1,C=-7,D=W?H-1:0,z=W?-1:1,R=I[O+D];D+=z,L=R&(1<<-C)-1,R>>=-C,C+=P;for(;C>0;L=L*256+I[O+D],D+=z,C-=8);V=L&(1<<-C)-1,L>>=-C,C+=T;for(;C>0;V=V*256+I[O+D],D+=z,C-=8);if(L===0)L=1-E;else if(L===S)return V?NaN:(R?-1:1)*(1/0);else V=V+Math.pow(2,T),L=L-E;return(R?-1:1)*V*Math.pow(2,L-T)}function MZ(I,O,W,T,H,L){var V,P,S,E=L*8-H-1,C=(1<<E)-1,D=C>>1,z=H===23?Math.pow(2,-24)-Math.pow(2,-77):0,R=T?0:L-1,q=T?1:-1,_=O<0||O===0&&1/O<0?1:0;if(O=Math.abs(O),isNaN(O)||O===1/0)P=isNaN(O)?1:0,V=C;else{if(V=Math.floor(Math.log(O)/Math.LN2),O*(S=Math.pow(2,-V))<1)V--,S*=2;if(V+D>=1)O+=z/S;else O+=z*Math.pow(2,1-D);if(O*S>=2)V++,S/=2;if(V+D>=C)P=0,V=C;else if(V+D>=1)P=(O*S-1)*Math.pow(2,H),V=V+D;else P=O*Math.pow(2,D-1)*Math.pow(2,H),V=0}for(;H>=8;I[W+R]=P&255,R+=q,P/=256,H-=8);V=V<<H|P,E+=H;for(;E>0;I[W+R]=V&255,R+=q,V/=256,E-=8);I[W+R-q]|=_*128}function BU(I){if(I>rU)throw RangeError('The value "'+I+'" is invalid for option "size"');let O=new Uint8Array(I);return Object.setPrototypeOf(O,$0.prototype),O}function pX(I,O,W){return class extends W{constructor(){super();Object.defineProperty(this,"message",{value:O.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${I}]`,this.stack,delete this.name}get code(){return I}set code(T){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:T,writable:!0})}toString(){return`${this.name} [${I}]: ${this.message}`}}}function $0(I,O,W){if(typeof I==="number"){if(typeof O==="string")throw TypeError('The "string" argument must be of type string. Received type number');return hX(I)}return SZ(I,O,W)}function SZ(I,O,W){if(typeof I==="string")return KY(I,O);if(ArrayBuffer.isView(I))return OY(I);if(I==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I);if(vU(I,ArrayBuffer)||I&&vU(I.buffer,ArrayBuffer))return yX(I,O,W);if(typeof SharedArrayBuffer<"u"&&(vU(I,SharedArrayBuffer)||I&&vU(I.buffer,SharedArrayBuffer)))return yX(I,O,W);if(typeof I==="number")throw TypeError('The "value" argument must not be of type number. Received type number');let T=I.valueOf&&I.valueOf();if(T!=null&&T!==I)return $0.from(T,O,W);let H=FY(I);if(H)return H;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof I[Symbol.toPrimitive]==="function")return $0.from(I[Symbol.toPrimitive]("string"),O,W);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I)}function PZ(I){if(typeof I!=="number")throw TypeError('"size" argument must be of type number');else if(I<0)throw RangeError('The value "'+I+'" is invalid for option "size"')}function $Y(I,O,W){if(PZ(I),I<=0)return BU(I);if(O!==void 0)return typeof W==="string"?BU(I).fill(O,W):BU(I).fill(O);return BU(I)}function hX(I){return PZ(I),BU(I<0?0:uX(I)|0)}function KY(I,O){if(typeof O!=="string"||O==="")O="utf8";if(!$0.isEncoding(O))throw TypeError("Unknown encoding: "+O);let W=kZ(I,O)|0,T=BU(W),H=T.write(I,O);if(H!==W)T=T.slice(0,H);return T}function fX(I){let O=I.length<0?0:uX(I.length)|0,W=BU(O);for(let T=0;T<O;T+=1)W[T]=I[T]&255;return W}function OY(I){if(vU(I,Uint8Array)){let O=new Uint8Array(I);return yX(O.buffer,O.byteOffset,O.byteLength)}return fX(I)}function yX(I,O,W){if(O<0||I.byteLength<O)throw RangeError('"offset" is outside of buffer bounds');if(I.byteLength<O+(W||0))throw RangeError('"length" is outside of buffer bounds');let T;if(O===void 0&&W===void 0)T=new Uint8Array(I);else if(W===void 0)T=new Uint8Array(I,O);else T=new Uint8Array(I,O,W);return Object.setPrototypeOf(T,$0.prototype),T}function FY(I){if($0.isBuffer(I)){let O=uX(I.length)|0,W=BU(O);if(W.length===0)return W;return I.copy(W,0,0,O),W}if(I.length!==void 0){if(typeof I.length!=="number"||Number.isNaN(I.length))return BU(0);return fX(I)}if(I.type==="Buffer"&&Array.isArray(I.data))return fX(I.data)}function uX(I){if(I>=rU)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+rU.toString(16)+" bytes");return I|0}function kZ(I,O){if($0.isBuffer(I))return I.length;if(ArrayBuffer.isView(I)||vU(I,ArrayBuffer))return I.byteLength;if(typeof I!=="string")throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof I);let W=I.length,T=arguments.length>2&&arguments[2]===!0;if(!T&&W===0)return 0;let H=!1;for(;;)switch(O){case"ascii":case"latin1":case"binary":return W;case"utf8":case"utf-8":return cX(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W*2;case"hex":return W>>>1;case"base64":return fZ(I).length;default:if(H)return T?-1:cX(I).length;O=(""+O).toLowerCase(),H=!0}}function WY(I,O,W){let T=!1;if(O===void 0||O<0)O=0;if(O>this.length)return"";if(W===void 0||W>this.length)W=this.length;if(W<=0)return"";if(W>>>=0,O>>>=0,W<=O)return"";if(!I)I="utf8";while(!0)switch(I){case"hex":return RY(this,O,W);case"utf8":case"utf-8":return vZ(this,O,W);case"ascii":return LY(this,O,W);case"latin1":case"binary":return MY(this,O,W);case"base64":return CY(this,O,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qY(this,O,W);default:if(T)throw TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),T=!0}}function hU(I,O,W){let T=I[O];I[O]=I[W],I[W]=T}function jZ(I,O,W,T,H){if(I.length===0)return-1;if(typeof W==="string")T=W,W=0;else if(W>2147483647)W=2147483647;else if(W<-2147483648)W=-2147483648;if(W=+W,Number.isNaN(W))W=H?0:I.length-1;if(W<0)W=I.length+W;if(W>=I.length)if(H)return-1;else W=I.length-1;else if(W<0)if(H)W=0;else return-1;if(typeof O==="string")O=$0.from(O,T);if($0.isBuffer(O)){if(O.length===0)return-1;return CZ(I,O,W,T,H)}else if(typeof O==="number"){if(O=O&255,typeof Uint8Array.prototype.indexOf==="function")if(H)return Uint8Array.prototype.indexOf.call(I,O,W);else return Uint8Array.prototype.lastIndexOf.call(I,O,W);return CZ(I,[O],W,T,H)}throw TypeError("val must be string, number or Buffer")}function CZ(I,O,W,T,H){let L=1,V=I.length,P=O.length;if(T!==void 0){if(T=String(T).toLowerCase(),T==="ucs2"||T==="ucs-2"||T==="utf16le"||T==="utf-16le"){if(I.length<2||O.length<2)return-1;L=2,V/=2,P/=2,W/=2}}function S(C,D){if(L===1)return C[D];else return C.readUInt16BE(D*L)}let E;if(H){let C=-1;for(E=W;E<V;E++)if(S(I,E)===S(O,C===-1?0:E-C)){if(C===-1)C=E;if(E-C+1===P)return C*L}else{if(C!==-1)E-=E-C;C=-1}}else{if(W+P>V)W=V-P;for(E=W;E>=0;E--){let C=!0;for(let D=0;D<P;D++)if(S(I,E+D)!==S(O,D)){C=!1;break}if(C)return E}}return-1}function HY(I,O,W,T){W=Number(W)||0;let H=I.length-W;if(!T)T=H;else if(T=Number(T),T>H)T=H;let L=O.length;if(T>L/2)T=L/2;let V;for(V=0;V<T;++V){let P=parseInt(O.substr(V*2,2),16);if(Number.isNaN(P))return V;I[W+V]=P}return V}function DY(I,O,W,T){return FX(cX(O,I.length-W),I,W,T)}function TY(I,O,W,T){return FX(jY(O),I,W,T)}function AY(I,O,W,T){return FX(fZ(O),I,W,T)}function zY(I,O,W,T){return FX(vY(O,I.length-W),I,W,T)}function CY(I,O,W){if(O===0&&W===I.length)return AZ(I);else return AZ(I.slice(O,W))}function vZ(I,O,W){W=Math.min(I.length,W);let T=[],H=O;while(H<W){let L=I[H],V=null,P=L>239?4:L>223?3:L>191?2:1;if(H+P<=W){let S,E,C,D;switch(P){case 1:if(L<128)V=L;break;case 2:if(S=I[H+1],(S&192)===128){if(D=(L&31)<<6|S&63,D>127)V=D}break;case 3:if(S=I[H+1],E=I[H+2],(S&192)===128&&(E&192)===128){if(D=(L&15)<<12|(S&63)<<6|E&63,D>2047&&(D<55296||D>57343))V=D}break;case 4:if(S=I[H+1],E=I[H+2],C=I[H+3],(S&192)===128&&(E&192)===128&&(C&192)===128){if(D=(L&15)<<18|(S&63)<<12|(E&63)<<6|C&63,D>65535&&D<1114112)V=D}}}if(V===null)V=65533,P=1;else if(V>65535)V-=65536,T.push(V>>>10&1023|55296),V=56320|V&1023;T.push(V),H+=P}return EY(T)}function EY(I){let O=I.length;if(O<=EZ)return String.fromCharCode.apply(String,I);let W="",T=0;while(T<O)W+=String.fromCharCode.apply(String,I.slice(T,T+=EZ));return W}function LY(I,O,W){let T="";W=Math.min(I.length,W);for(let H=O;H<W;++H)T+=String.fromCharCode(I[H]&127);return T}function MY(I,O,W){let T="";W=Math.min(I.length,W);for(let H=O;H<W;++H)T+=String.fromCharCode(I[H]);return T}function RY(I,O,W){let T=I.length;if(!O||O<0)O=0;if(!W||W<0||W>T)W=T;let H="";for(let L=O;L<W;++L)H+=_Y[I[L]];return H}function qY(I,O,W){let T=I.slice(O,W),H="";for(let L=0;L<T.length-1;L+=2)H+=String.fromCharCode(T[L]+T[L+1]*256);return H}function FU(I,O,W){if(I%1!==0||I<0)throw RangeError("offset is not uint");if(I+O>W)throw RangeError("Trying to access beyond buffer length")}function LU(I,O,W,T,H,L){if(!$0.isBuffer(I))throw TypeError('"buffer" argument must be a Buffer instance');if(O>H||O<L)throw RangeError('"value" argument is out of bounds');if(W+T>I.length)throw RangeError("Index out of range")}function _Z(I,O,W,T,H){wZ(O,T,H,I,W,7);let L=Number(O&BigInt(4294967295));I[W++]=L,L=L>>8,I[W++]=L,L=L>>8,I[W++]=L,L=L>>8,I[W++]=L;let V=Number(O>>BigInt(32)&BigInt(4294967295));return I[W++]=V,V=V>>8,I[W++]=V,V=V>>8,I[W++]=V,V=V>>8,I[W++]=V,W}function BZ(I,O,W,T,H){wZ(O,T,H,I,W,7);let L=Number(O&BigInt(4294967295));I[W+7]=L,L=L>>8,I[W+6]=L,L=L>>8,I[W+5]=L,L=L>>8,I[W+4]=L;let V=Number(O>>BigInt(32)&BigInt(4294967295));return I[W+3]=V,V=V>>8,I[W+2]=V,V=V>>8,I[W+1]=V,V=V>>8,I[W]=V,W+8}function xZ(I,O,W,T,H,L){if(W+T>I.length)throw RangeError("Index out of range");if(W<0)throw RangeError("Index out of range")}function NZ(I,O,W,T,H){if(O=+O,W=W>>>0,!H)xZ(I,O,W,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000);return MZ(I,O,W,T,23,4),W+4}function gZ(I,O,W,T,H){if(O=+O,W=W>>>0,!H)xZ(I,O,W,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000);return MZ(I,O,W,T,52,8),W+8}function LZ(I){let O="",W=I.length,T=I[0]==="-"?1:0;for(;W>=T+4;W-=3)O=`_${I.slice(W-3,W)}${O}`;return`${I.slice(0,W)}${O}`}function SY(I,O,W){if(oU(O,"offset"),I[O]===void 0||I[O+W]===void 0)aU(O,I.length-(W+1))}function wZ(I,O,W,T,H,L){if(I>W||I<O){let V=typeof O==="bigint"?"n":"",P;if(L>3)if(O===0||O===BigInt(0))P=`>= 0${V} and < 2${V} ** ${(L+1)*8}${V}`;else P=`>= -(2${V} ** ${(L+1)*8-1}${V}) and < 2 ** ${(L+1)*8-1}${V}`;else P=`>= ${O}${V} and <= ${W}${V}`;throw new wX("value",P,I)}SY(T,H,L)}function oU(I,O){if(typeof I!=="number")throw new IY(O,"number",I)}function aU(I,O,W){if(Math.floor(I)!==I)throw oU(I,W),new wX(W||"offset","an integer",I);if(O<0)throw new GY;throw new wX(W||"offset",`>= ${W?1:0} and <= ${O}`,I)}function kY(I){if(I=I.split("=")[0],I=I.trim().replace(PY,""),I.length<2)return"";while(I.length%4!==0)I=I+"=";return I}function cX(I,O){O=O||1/0;let W,T=I.length,H=null,L=[];for(let V=0;V<T;++V){if(W=I.charCodeAt(V),W>55295&&W<57344){if(!H){if(W>56319){if((O-=3)>-1)L.push(239,191,189);continue}else if(V+1===T){if((O-=3)>-1)L.push(239,191,189);continue}H=W;continue}if(W<56320){if((O-=3)>-1)L.push(239,191,189);H=W;continue}W=(H-55296<<10|W-56320)+65536}else if(H){if((O-=3)>-1)L.push(239,191,189)}if(H=null,W<128){if((O-=1)<0)break;L.push(W)}else if(W<2048){if((O-=2)<0)break;L.push(W>>6|192,W&63|128)}else if(W<65536){if((O-=3)<0)break;L.push(W>>12|224,W>>6&63|128,W&63|128)}else if(W<1114112){if((O-=4)<0)break;L.push(W>>18|240,W>>12&63|128,W>>6&63|128,W&63|128)}else throw Error("Invalid code point")}return L}function jY(I){let O=[];for(let W=0;W<I.length;++W)O.push(I.charCodeAt(W)&255);return O}function vY(I,O){let W,T,H,L=[];for(let V=0;V<I.length;++V){if((O-=2)<0)break;W=I.charCodeAt(V),T=W>>8,H=W%256,L.push(H),L.push(T)}return L}function fZ(I){return iQ(kY(I))}function FX(I,O,W,T){let H;for(H=0;H<T;++H){if(H+W>=O.length||H>=I.length)break;O[H+W]=I[H]}return H}function vU(I,O){return I instanceof O||I!=null&&I.constructor!=null&&I.constructor.name!=null&&I.constructor.name===O.name}function wU(I){return typeof BigInt>"u"?BY:I}function BY(){throw Error("BigInt not supported")}function bX(I){return()=>{throw Error(I+" is not implemented for node:buffer browser polyfill")}}var jU,PU,gX="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",pU,TZ,zZ,RZ=50,rU=2147483647,qZ=536870888,ZY,QY,YY,JY,VY,GY,IY,wX,EZ=4096,PY,_Y,xY,NY,gY=(I)=>{for(let O of I)if(O.charCodeAt(0)>127)return!1;return!0},wY,fY;var HU=KX(()=>{jU=[],PU=[];for(pU=0,TZ=gX.length;pU<TZ;++pU)jU[pU]=gX[pU],PU[gX.charCodeAt(pU)]=pU;PU[45]=62;PU[95]=63;zZ=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):null,ZY=globalThis.btoa,QY=globalThis.atob,YY=globalThis.File,JY=globalThis.Blob,VY={MAX_LENGTH:rU,MAX_STRING_LENGTH:qZ};GY=pX("ERR_BUFFER_OUT_OF_BOUNDS",function(I){if(I)return`${I} is outside of buffer bounds`;return"Attempt to access memory outside buffer bounds"},RangeError),IY=pX("ERR_INVALID_ARG_TYPE",function(I,O){return`The "${I}" argument must be of type number. Received type ${typeof O}`},TypeError),wX=pX("ERR_OUT_OF_RANGE",function(I,O,W){let T=`The value of "${I}" is out of range.`,H=W;if(Number.isInteger(W)&&Math.abs(W)>4294967296)H=LZ(String(W));else if(typeof W==="bigint"){if(H=String(W),W>BigInt(2)**BigInt(32)||W<-(BigInt(2)**BigInt(32)))H=LZ(H);H+="n"}return T+=` It must be ${O}. Received ${H}`,T},RangeError);Object.defineProperty($0.prototype,"parent",{enumerable:!0,get:function(){if(!$0.isBuffer(this))return;return this.buffer}});Object.defineProperty($0.prototype,"offset",{enumerable:!0,get:function(){if(!$0.isBuffer(this))return;return this.byteOffset}});$0.poolSize=8192;$0.from=function(I,O,W){return SZ(I,O,W)};Object.setPrototypeOf($0.prototype,Uint8Array.prototype);Object.setPrototypeOf($0,Uint8Array);$0.alloc=function(I,O,W){return $Y(I,O,W)};$0.allocUnsafe=function(I){return hX(I)};$0.allocUnsafeSlow=function(I){return hX(I)};$0.isBuffer=function(I){return I!=null&&I._isBuffer===!0&&I!==$0.prototype};$0.compare=function(I,O){if(vU(I,Uint8Array))I=$0.from(I,I.offset,I.byteLength);if(vU(O,Uint8Array))O=$0.from(O,O.offset,O.byteLength);if(!$0.isBuffer(I)||!$0.isBuffer(O))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(I===O)return 0;let W=I.length,T=O.length;for(let H=0,L=Math.min(W,T);H<L;++H)if(I[H]!==O[H]){W=I[H],T=O[H];break}if(W<T)return-1;if(T<W)return 1;return 0};$0.isEncoding=function(I){switch(String(I).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};$0.concat=function(I,O){if(!Array.isArray(I))throw TypeError('"list" argument must be an Array of Buffers');if(I.length===0)return $0.alloc(0);let W;if(O===void 0){O=0;for(W=0;W<I.length;++W)O+=I[W].length}let T=$0.allocUnsafe(O),H=0;for(W=0;W<I.length;++W){let L=I[W];if(vU(L,Uint8Array))if(H+L.length>T.length){if(!$0.isBuffer(L))L=$0.from(L);L.copy(T,H)}else Uint8Array.prototype.set.call(T,L,H);else if(!$0.isBuffer(L))throw TypeError('"list" argument must be an Array of Buffers');else L.copy(T,H);H+=L.length}return T};$0.byteLength=kZ;$0.prototype._isBuffer=!0;$0.prototype.swap16=function(){let I=this.length;if(I%2!==0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let O=0;O<I;O+=2)hU(this,O,O+1);return this};$0.prototype.swap32=function(){let I=this.length;if(I%4!==0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let O=0;O<I;O+=4)hU(this,O,O+3),hU(this,O+1,O+2);return this};$0.prototype.swap64=function(){let I=this.length;if(I%8!==0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let O=0;O<I;O+=8)hU(this,O,O+7),hU(this,O+1,O+6),hU(this,O+2,O+5),hU(this,O+3,O+4);return this};$0.prototype.toString=function(){let I=this.length;if(I===0)return"";if(arguments.length===0)return vZ(this,0,I);return WY.apply(this,arguments)};$0.prototype.toLocaleString=$0.prototype.toString;$0.prototype.equals=function(I){if(!$0.isBuffer(I))throw TypeError("Argument must be a Buffer");if(this===I)return!0;return $0.compare(this,I)===0};$0.prototype.inspect=function(){let I="",O=RZ;if(I=this.toString("hex",0,O).replace(/(.{2})/g,"$1 ").trim(),this.length>O)I+=" ... ";return"<Buffer "+I+">"};if(zZ)$0.prototype[zZ]=$0.prototype.inspect;$0.prototype.compare=function(I,O,W,T,H){if(vU(I,Uint8Array))I=$0.from(I,I.offset,I.byteLength);if(!$0.isBuffer(I))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof I);if(O===void 0)O=0;if(W===void 0)W=I?I.length:0;if(T===void 0)T=0;if(H===void 0)H=this.length;if(O<0||W>I.length||T<0||H>this.length)throw RangeError("out of range index");if(T>=H&&O>=W)return 0;if(T>=H)return-1;if(O>=W)return 1;if(O>>>=0,W>>>=0,T>>>=0,H>>>=0,this===I)return 0;let L=H-T,V=W-O,P=Math.min(L,V),S=this.slice(T,H),E=I.slice(O,W);for(let C=0;C<P;++C)if(S[C]!==E[C]){L=S[C],V=E[C];break}if(L<V)return-1;if(V<L)return 1;return 0};$0.prototype.includes=function(I,O,W){return this.indexOf(I,O,W)!==-1};$0.prototype.indexOf=function(I,O,W){return jZ(this,I,O,W,!0)};$0.prototype.lastIndexOf=function(I,O,W){return jZ(this,I,O,W,!1)};$0.prototype.write=function(I,O,W,T){if(O===void 0)T="utf8",W=this.length,O=0;else if(W===void 0&&typeof O==="string")T=O,W=this.length,O=0;else if(isFinite(O))if(O=O>>>0,isFinite(W)){if(W=W>>>0,T===void 0)T="utf8"}else T=W,W=void 0;else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let H=this.length-O;if(W===void 0||W>H)W=H;if(I.length>0&&(W<0||O<0)||O>this.length)throw RangeError("Attempt to write outside buffer bounds");if(!T)T="utf8";let L=!1;for(;;)switch(T){case"hex":return HY(this,I,O,W);case"utf8":case"utf-8":return DY(this,I,O,W);case"ascii":case"latin1":case"binary":return TY(this,I,O,W);case"base64":return AY(this,I,O,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return zY(this,I,O,W);default:if(L)throw TypeError("Unknown encoding: "+T);T=(""+T).toLowerCase(),L=!0}};$0.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};$0.prototype.slice=function(I,O){let W=this.length;if(I=~~I,O=O===void 0?W:~~O,I<0){if(I+=W,I<0)I=0}else if(I>W)I=W;if(O<0){if(O+=W,O<0)O=0}else if(O>W)O=W;if(O<I)O=I;let T=this.subarray(I,O);return Object.setPrototypeOf(T,$0.prototype),T};$0.prototype.readUintLE=$0.prototype.readUIntLE=function(I,O,W){if(I=I>>>0,O=O>>>0,!W)FU(I,O,this.length);let T=this[I],H=1,L=0;while(++L<O&&(H*=256))T+=this[I+L]*H;return T};$0.prototype.readUintBE=$0.prototype.readUIntBE=function(I,O,W){if(I=I>>>0,O=O>>>0,!W)FU(I,O,this.length);let T=this[I+--O],H=1;while(O>0&&(H*=256))T+=this[I+--O]*H;return T};$0.prototype.readUint8=$0.prototype.readUInt8=function(I,O){if(I=I>>>0,!O)FU(I,1,this.length);return this[I]};$0.prototype.readUint16LE=$0.prototype.readUInt16LE=function(I,O){if(I=I>>>0,!O)FU(I,2,this.length);return this[I]|this[I+1]<<8};$0.prototype.readUint16BE=$0.prototype.readUInt16BE=function(I,O){if(I=I>>>0,!O)FU(I,2,this.length);return this[I]<<8|this[I+1]};$0.prototype.readUint32LE=$0.prototype.readUInt32LE=function(I,O){if(I=I>>>0,!O)FU(I,4,this.length);return(this[I]|this[I+1]<<8|this[I+2]<<16)+this[I+3]*16777216};$0.prototype.readUint32BE=$0.prototype.readUInt32BE=function(I,O){if(I=I>>>0,!O)FU(I,4,this.length);return this[I]*16777216+(this[I+1]<<16|this[I+2]<<8|this[I+3])};$0.prototype.readBigUInt64LE=wU(function(I){I=I>>>0,oU(I,"offset");let O=this[I],W=this[I+7];if(O===void 0||W===void 0)aU(I,this.length-8);let T=O+this[++I]*256+this[++I]*65536+this[++I]*16777216,H=this[++I]+this[++I]*256+this[++I]*65536+W*16777216;return BigInt(T)+(BigInt(H)<<BigInt(32))});$0.prototype.readBigUInt64BE=wU(function(I){I=I>>>0,oU(I,"offset");let O=this[I],W=this[I+7];if(O===void 0||W===void 0)aU(I,this.length-8);let T=O*16777216+this[++I]*65536+this[++I]*256+this[++I],H=this[++I]*16777216+this[++I]*65536+this[++I]*256+W;return(BigInt(T)<<BigInt(32))+BigInt(H)});$0.prototype.readIntLE=function(I,O,W){if(I=I>>>0,O=O>>>0,!W)FU(I,O,this.length);let T=this[I],H=1,L=0;while(++L<O&&(H*=256))T+=this[I+L]*H;if(H*=128,T>=H)T-=Math.pow(2,8*O);return T};$0.prototype.readIntBE=function(I,O,W){if(I=I>>>0,O=O>>>0,!W)FU(I,O,this.length);let T=O,H=1,L=this[I+--T];while(T>0&&(H*=256))L+=this[I+--T]*H;if(H*=128,L>=H)L-=Math.pow(2,8*O);return L};$0.prototype.readInt8=function(I,O){if(I=I>>>0,!O)FU(I,1,this.length);if(!(this[I]&128))return this[I];return(255-this[I]+1)*-1};$0.prototype.readInt16LE=function(I,O){if(I=I>>>0,!O)FU(I,2,this.length);let W=this[I]|this[I+1]<<8;return W&32768?W|4294901760:W};$0.prototype.readInt16BE=function(I,O){if(I=I>>>0,!O)FU(I,2,this.length);let W=this[I+1]|this[I]<<8;return W&32768?W|4294901760:W};$0.prototype.readInt32LE=function(I,O){if(I=I>>>0,!O)FU(I,4,this.length);return this[I]|this[I+1]<<8|this[I+2]<<16|this[I+3]<<24};$0.prototype.readInt32BE=function(I,O){if(I=I>>>0,!O)FU(I,4,this.length);return this[I]<<24|this[I+1]<<16|this[I+2]<<8|this[I+3]};$0.prototype.readBigInt64LE=wU(function(I){I=I>>>0,oU(I,"offset");let O=this[I],W=this[I+7];if(O===void 0||W===void 0)aU(I,this.length-8);let T=this[I+4]+this[I+5]*256+this[I+6]*65536+(W<<24);return(BigInt(T)<<BigInt(32))+BigInt(O+this[++I]*256+this[++I]*65536+this[++I]*16777216)});$0.prototype.readBigInt64BE=wU(function(I){I=I>>>0,oU(I,"offset");let O=this[I],W=this[I+7];if(O===void 0||W===void 0)aU(I,this.length-8);let T=(O<<24)+this[++I]*65536+this[++I]*256+this[++I];return(BigInt(T)<<BigInt(32))+BigInt(this[++I]*16777216+this[++I]*65536+this[++I]*256+W)});$0.prototype.readFloatLE=function(I,O){if(I=I>>>0,!O)FU(I,4,this.length);return OX(this,I,!0,23,4)};$0.prototype.readFloatBE=function(I,O){if(I=I>>>0,!O)FU(I,4,this.length);return OX(this,I,!1,23,4)};$0.prototype.readDoubleLE=function(I,O){if(I=I>>>0,!O)FU(I,8,this.length);return OX(this,I,!0,52,8)};$0.prototype.readDoubleBE=function(I,O){if(I=I>>>0,!O)FU(I,8,this.length);return OX(this,I,!1,52,8)};$0.prototype.writeUintLE=$0.prototype.writeUIntLE=function(I,O,W,T){if(I=+I,O=O>>>0,W=W>>>0,!T){let V=Math.pow(2,8*W)-1;LU(this,I,O,W,V,0)}let H=1,L=0;this[O]=I&255;while(++L<W&&(H*=256))this[O+L]=I/H&255;return O+W};$0.prototype.writeUintBE=$0.prototype.writeUIntBE=function(I,O,W,T){if(I=+I,O=O>>>0,W=W>>>0,!T){let V=Math.pow(2,8*W)-1;LU(this,I,O,W,V,0)}let H=W-1,L=1;this[O+H]=I&255;while(--H>=0&&(L*=256))this[O+H]=I/L&255;return O+W};$0.prototype.writeUint8=$0.prototype.writeUInt8=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,1,255,0);return this[O]=I&255,O+1};$0.prototype.writeUint16LE=$0.prototype.writeUInt16LE=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,2,65535,0);return this[O]=I&255,this[O+1]=I>>>8,O+2};$0.prototype.writeUint16BE=$0.prototype.writeUInt16BE=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,2,65535,0);return this[O]=I>>>8,this[O+1]=I&255,O+2};$0.prototype.writeUint32LE=$0.prototype.writeUInt32LE=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,4,4294967295,0);return this[O+3]=I>>>24,this[O+2]=I>>>16,this[O+1]=I>>>8,this[O]=I&255,O+4};$0.prototype.writeUint32BE=$0.prototype.writeUInt32BE=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,4,4294967295,0);return this[O]=I>>>24,this[O+1]=I>>>16,this[O+2]=I>>>8,this[O+3]=I&255,O+4};$0.prototype.writeBigUInt64LE=wU(function(I,O=0){return _Z(this,I,O,BigInt(0),BigInt("0xffffffffffffffff"))});$0.prototype.writeBigUInt64BE=wU(function(I,O=0){return BZ(this,I,O,BigInt(0),BigInt("0xffffffffffffffff"))});$0.prototype.writeIntLE=function(I,O,W,T){if(I=+I,O=O>>>0,!T){let P=Math.pow(2,8*W-1);LU(this,I,O,W,P-1,-P)}let H=0,L=1,V=0;this[O]=I&255;while(++H<W&&(L*=256)){if(I<0&&V===0&&this[O+H-1]!==0)V=1;this[O+H]=(I/L>>0)-V&255}return O+W};$0.prototype.writeIntBE=function(I,O,W,T){if(I=+I,O=O>>>0,!T){let P=Math.pow(2,8*W-1);LU(this,I,O,W,P-1,-P)}let H=W-1,L=1,V=0;this[O+H]=I&255;while(--H>=0&&(L*=256)){if(I<0&&V===0&&this[O+H+1]!==0)V=1;this[O+H]=(I/L>>0)-V&255}return O+W};$0.prototype.writeInt8=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,1,127,-128);if(I<0)I=255+I+1;return this[O]=I&255,O+1};$0.prototype.writeInt16LE=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,2,32767,-32768);return this[O]=I&255,this[O+1]=I>>>8,O+2};$0.prototype.writeInt16BE=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,2,32767,-32768);return this[O]=I>>>8,this[O+1]=I&255,O+2};$0.prototype.writeInt32LE=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,4,2147483647,-2147483648);return this[O]=I&255,this[O+1]=I>>>8,this[O+2]=I>>>16,this[O+3]=I>>>24,O+4};$0.prototype.writeInt32BE=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,4,2147483647,-2147483648);if(I<0)I=4294967295+I+1;return this[O]=I>>>24,this[O+1]=I>>>16,this[O+2]=I>>>8,this[O+3]=I&255,O+4};$0.prototype.writeBigInt64LE=wU(function(I,O=0){return _Z(this,I,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});$0.prototype.writeBigInt64BE=wU(function(I,O=0){return BZ(this,I,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});$0.prototype.writeFloatLE=function(I,O,W){return NZ(this,I,O,!0,W)};$0.prototype.writeFloatBE=function(I,O,W){return NZ(this,I,O,!1,W)};$0.prototype.writeDoubleLE=function(I,O,W){return gZ(this,I,O,!0,W)};$0.prototype.writeDoubleBE=function(I,O,W){return gZ(this,I,O,!1,W)};$0.prototype.copy=function(I,O,W,T){if(!$0.isBuffer(I))throw TypeError("argument should be a Buffer");if(!W)W=0;if(!T&&T!==0)T=this.length;if(O>=I.length)O=I.length;if(!O)O=0;if(T>0&&T<W)T=W;if(T===W)return 0;if(I.length===0||this.length===0)return 0;if(O<0)throw RangeError("targetStart out of bounds");if(W<0||W>=this.length)throw RangeError("Index out of range");if(T<0)throw RangeError("sourceEnd out of bounds");if(T>this.length)T=this.length;if(I.length-O<T-W)T=I.length-O+W;let H=T-W;if(this===I&&typeof Uint8Array.prototype.copyWithin==="function")this.copyWithin(O,W,T);else Uint8Array.prototype.set.call(I,this.subarray(W,T),O);return H};$0.prototype.fill=function(I,O,W,T){if(typeof I==="string"){if(typeof O==="string")T=O,O=0,W=this.length;else if(typeof W==="string")T=W,W=this.length;if(T!==void 0&&typeof T!=="string")throw TypeError("encoding must be a string");if(typeof T==="string"&&!$0.isEncoding(T))throw TypeError("Unknown encoding: "+T);if(I.length===1){let L=I.charCodeAt(0);if(T==="utf8"&&L<128||T==="latin1")I=L}}else if(typeof I==="number")I=I&255;else if(typeof I==="boolean")I=Number(I);if(O<0||this.length<O||this.length<W)throw RangeError("Out of range index");if(W<=O)return this;if(O=O>>>0,W=W===void 0?this.length:W>>>0,!I)I=0;let H;if(typeof I==="number")for(H=O;H<W;++H)this[H]=I;else{let L=$0.isBuffer(I)?I:$0.from(I,T),V=L.length;if(V===0)throw TypeError('The value "'+I+'" is invalid for argument "value"');for(H=0;H<W-O;++H)this[H+O]=L[H%V]}return this};PY=/[^+/0-9A-Za-z-_]/g;_Y=function(){let I=Array(256);for(let O=0;O<16;++O){let W=O*16;for(let T=0;T<16;++T)I[W+T]="0123456789abcdef"[O]+"0123456789abcdef"[T]}return I}();xY=bX("resolveObjectURL"),NY=bX("isUtf8"),wY=bX("transcode"),fY=$0});var nZ={};$X(nZ,{types:()=>nY,promisify:()=>bZ,log:()=>pZ,isUndefined:()=>nU,isSymbol:()=>sY,isString:()=>zX,isRegExp:()=>WX,isPrimitive:()=>tY,isObject:()=>mU,isNumber:()=>cZ,isNullOrUndefined:()=>mY,isNull:()=>AX,isFunction:()=>DX,isError:()=>HX,isDate:()=>nX,isBuffer:()=>rY,isBoolean:()=>sX,isArray:()=>yZ,inspect:()=>uU,inherits:()=>hZ,format:()=>mX,deprecate:()=>cY,default:()=>iY,debuglog:()=>pY,callbackifyOnRejected:()=>aX,callbackify:()=>lZ,_extend:()=>rX,TextEncoder:()=>dZ,TextDecoder:()=>oZ});function mX(I,...O){if(!zX(I)){var W=[I];for(var T=0;T<O.length;T++)W.push(uU(O[T]));return W.join(" ")}var T=0,H=O.length,L=String(I).replace(yY,function(P){if(P==="%%")return"%";if(T>=H)return P;switch(P){case"%s":return String(O[T++]);case"%d":return Number(O[T++]);case"%j":try{return JSON.stringify(O[T++])}catch(S){return"[Circular]"}default:return P}});for(var V=O[T];T<H;V=O[++T])if(AX(V)||!mU(V))L+=" "+V;else L+=" "+uU(V);return L}function cY(I,O){if(typeof process>"u"||process?.noDeprecation===!0)return I;var W=!1;function T(...H){if(!W){if(process.throwDeprecation)throw Error(O);else if(process.traceDeprecation)console.trace(O);else console.error(O);W=!0}return I.apply(this,...H)}return T}function hY(I,O){var W=uU.styles[O];if(W)return"\x1B["+uU.colors[W][0]+"m"+I+"\x1B["+uU.colors[W][1]+"m";else return I}function uY(I,O){return I}function bY(I){var O={};return I.forEach(function(W,T){O[W]=!0}),O}function TX(I,O,W){if(I.customInspect&&O&&DX(O.inspect)&&O.inspect!==uU&&!(O.constructor&&O.constructor.prototype===O)){var T=O.inspect(W,I);if(!zX(T))T=TX(I,T,W);return T}var H=lY(I,O);if(H)return H;var L=Object.keys(O),V=bY(L);if(I.showHidden)L=Object.getOwnPropertyNames(O);if(HX(O)&&(L.indexOf("message")>=0||L.indexOf("description")>=0))return lX(O);if(L.length===0){if(DX(O)){var P=O.name?": "+O.name:"";return I.stylize("[Function"+P+"]","special")}if(WX(O))return I.stylize(RegExp.prototype.toString.call(O),"regexp");if(nX(O))return I.stylize(Date.prototype.toString.call(O),"date");if(HX(O))return lX(O)}var S="",E=!1,C=["{","}"];if(yZ(O))E=!0,C=["[","]"];if(DX(O)){var D=O.name?": "+O.name:"";S=" [Function"+D+"]"}if(WX(O))S=" "+RegExp.prototype.toString.call(O);if(nX(O))S=" "+Date.prototype.toUTCString.call(O);if(HX(O))S=" "+lX(O);if(L.length===0&&(!E||O.length==0))return C[0]+S+C[1];if(W<0)if(WX(O))return I.stylize(RegExp.prototype.toString.call(O),"regexp");else return I.stylize("[Object]","special");I.seen.push(O);var z;if(E)z=dY(I,O,W,V,L);else z=L.map(function(R){return oX(I,O,W,V,R,E)});return I.seen.pop(),oY(z,S,C)}function lY(I,O){if(nU(O))return I.stylize("undefined","undefined");if(zX(O)){var W="'"+JSON.stringify(O).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return I.stylize(W,"string")}if(cZ(O))return I.stylize(""+O,"number");if(sX(O))return I.stylize(""+O,"boolean");if(AX(O))return I.stylize("null","null")}function lX(I){return"["+Error.prototype.toString.call(I)+"]"}function dY(I,O,W,T,H){var L=[];for(var V=0,P=O.length;V<P;++V)if(uZ(O,String(V)))L.push(oX(I,O,W,T,String(V),!0));else L.push("");return H.forEach(function(S){if(!S.match(/^\d+$/))L.push(oX(I,O,W,T,S,!0))}),L}function oX(I,O,W,T,H,L){var V,P,S;if(S=Object.getOwnPropertyDescriptor(O,H)||{value:O[H]},S.get)if(S.set)P=I.stylize("[Getter/Setter]","special");else P=I.stylize("[Getter]","special");else if(S.set)P=I.stylize("[Setter]","special");if(!uZ(T,H))V="["+H+"]";if(!P)if(I.seen.indexOf(S.value)<0){if(AX(W))P=TX(I,S.value,null);else P=TX(I,S.value,W-1);if(P.indexOf(`
|
|
1
|
+
import{$d as KX,Yd as h0,Zd as EX,_d as $X,ae as CQ}from"./chunk-kaw35ae2.js";var WU={};$X(WU,{transcode:()=>wY,resolveObjectURL:()=>xY,kStringMaxLength:()=>qZ,kMaxLength:()=>rU,isUtf8:()=>NY,isAscii:()=>gY,default:()=>fY,constants:()=>VY,btoa:()=>ZY,atob:()=>QY,INSPECT_MAX_BYTES:()=>RZ,File:()=>YY,Buffer:()=>$0,Blob:()=>JY});function aQ(I){var O=I.length;if(O%4>0)throw Error("Invalid string. Length must be a multiple of 4");var W=I.indexOf("=");if(W===-1)W=O;var T=W===O?0:4-W%4;return[W,T]}function eQ(I,O){return(I+O)*3/4-O}function iQ(I){var O,W=aQ(I),T=W[0],H=W[1],L=new Uint8Array(eQ(T,H)),V=0,P=H>0?T-4:T,S;for(S=0;S<P;S+=4)O=PU[I.charCodeAt(S)]<<18|PU[I.charCodeAt(S+1)]<<12|PU[I.charCodeAt(S+2)]<<6|PU[I.charCodeAt(S+3)],L[V++]=O>>16&255,L[V++]=O>>8&255,L[V++]=O&255;if(H===2)O=PU[I.charCodeAt(S)]<<2|PU[I.charCodeAt(S+1)]>>4,L[V++]=O&255;if(H===1)O=PU[I.charCodeAt(S)]<<10|PU[I.charCodeAt(S+1)]<<4|PU[I.charCodeAt(S+2)]>>2,L[V++]=O>>8&255,L[V++]=O&255;return L}function UY(I){return jU[I>>18&63]+jU[I>>12&63]+jU[I>>6&63]+jU[I&63]}function XY(I,O,W){var T,H=[];for(var L=O;L<W;L+=3)T=(I[L]<<16&16711680)+(I[L+1]<<8&65280)+(I[L+2]&255),H.push(UY(T));return H.join("")}function AZ(I){var O,W=I.length,T=W%3,H=[],L=16383;for(var V=0,P=W-T;V<P;V+=L)H.push(XY(I,V,V+L>P?P:V+L));if(T===1)O=I[W-1],H.push(jU[O>>2]+jU[O<<4&63]+"==");else if(T===2)O=(I[W-2]<<8)+I[W-1],H.push(jU[O>>10]+jU[O>>4&63]+jU[O<<2&63]+"=");return H.join("")}function OX(I,O,W,T,H){var L,V,P=H*8-T-1,S=(1<<P)-1,E=S>>1,C=-7,D=W?H-1:0,z=W?-1:1,R=I[O+D];D+=z,L=R&(1<<-C)-1,R>>=-C,C+=P;for(;C>0;L=L*256+I[O+D],D+=z,C-=8);V=L&(1<<-C)-1,L>>=-C,C+=T;for(;C>0;V=V*256+I[O+D],D+=z,C-=8);if(L===0)L=1-E;else if(L===S)return V?NaN:(R?-1:1)*(1/0);else V=V+Math.pow(2,T),L=L-E;return(R?-1:1)*V*Math.pow(2,L-T)}function MZ(I,O,W,T,H,L){var V,P,S,E=L*8-H-1,C=(1<<E)-1,D=C>>1,z=H===23?Math.pow(2,-24)-Math.pow(2,-77):0,R=T?0:L-1,q=T?1:-1,_=O<0||O===0&&1/O<0?1:0;if(O=Math.abs(O),isNaN(O)||O===1/0)P=isNaN(O)?1:0,V=C;else{if(V=Math.floor(Math.log(O)/Math.LN2),O*(S=Math.pow(2,-V))<1)V--,S*=2;if(V+D>=1)O+=z/S;else O+=z*Math.pow(2,1-D);if(O*S>=2)V++,S/=2;if(V+D>=C)P=0,V=C;else if(V+D>=1)P=(O*S-1)*Math.pow(2,H),V=V+D;else P=O*Math.pow(2,D-1)*Math.pow(2,H),V=0}for(;H>=8;I[W+R]=P&255,R+=q,P/=256,H-=8);V=V<<H|P,E+=H;for(;E>0;I[W+R]=V&255,R+=q,V/=256,E-=8);I[W+R-q]|=_*128}function BU(I){if(I>rU)throw RangeError('The value "'+I+'" is invalid for option "size"');let O=new Uint8Array(I);return Object.setPrototypeOf(O,$0.prototype),O}function pX(I,O,W){return class extends W{constructor(){super();Object.defineProperty(this,"message",{value:O.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${I}]`,this.stack,delete this.name}get code(){return I}set code(T){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:T,writable:!0})}toString(){return`${this.name} [${I}]: ${this.message}`}}}function $0(I,O,W){if(typeof I==="number"){if(typeof O==="string")throw TypeError('The "string" argument must be of type string. Received type number');return hX(I)}return SZ(I,O,W)}function SZ(I,O,W){if(typeof I==="string")return KY(I,O);if(ArrayBuffer.isView(I))return OY(I);if(I==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I);if(vU(I,ArrayBuffer)||I&&vU(I.buffer,ArrayBuffer))return yX(I,O,W);if(typeof SharedArrayBuffer<"u"&&(vU(I,SharedArrayBuffer)||I&&vU(I.buffer,SharedArrayBuffer)))return yX(I,O,W);if(typeof I==="number")throw TypeError('The "value" argument must not be of type number. Received type number');let T=I.valueOf&&I.valueOf();if(T!=null&&T!==I)return $0.from(T,O,W);let H=FY(I);if(H)return H;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof I[Symbol.toPrimitive]==="function")return $0.from(I[Symbol.toPrimitive]("string"),O,W);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I)}function PZ(I){if(typeof I!=="number")throw TypeError('"size" argument must be of type number');else if(I<0)throw RangeError('The value "'+I+'" is invalid for option "size"')}function $Y(I,O,W){if(PZ(I),I<=0)return BU(I);if(O!==void 0)return typeof W==="string"?BU(I).fill(O,W):BU(I).fill(O);return BU(I)}function hX(I){return PZ(I),BU(I<0?0:uX(I)|0)}function KY(I,O){if(typeof O!=="string"||O==="")O="utf8";if(!$0.isEncoding(O))throw TypeError("Unknown encoding: "+O);let W=kZ(I,O)|0,T=BU(W),H=T.write(I,O);if(H!==W)T=T.slice(0,H);return T}function fX(I){let O=I.length<0?0:uX(I.length)|0,W=BU(O);for(let T=0;T<O;T+=1)W[T]=I[T]&255;return W}function OY(I){if(vU(I,Uint8Array)){let O=new Uint8Array(I);return yX(O.buffer,O.byteOffset,O.byteLength)}return fX(I)}function yX(I,O,W){if(O<0||I.byteLength<O)throw RangeError('"offset" is outside of buffer bounds');if(I.byteLength<O+(W||0))throw RangeError('"length" is outside of buffer bounds');let T;if(O===void 0&&W===void 0)T=new Uint8Array(I);else if(W===void 0)T=new Uint8Array(I,O);else T=new Uint8Array(I,O,W);return Object.setPrototypeOf(T,$0.prototype),T}function FY(I){if($0.isBuffer(I)){let O=uX(I.length)|0,W=BU(O);if(W.length===0)return W;return I.copy(W,0,0,O),W}if(I.length!==void 0){if(typeof I.length!=="number"||Number.isNaN(I.length))return BU(0);return fX(I)}if(I.type==="Buffer"&&Array.isArray(I.data))return fX(I.data)}function uX(I){if(I>=rU)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+rU.toString(16)+" bytes");return I|0}function kZ(I,O){if($0.isBuffer(I))return I.length;if(ArrayBuffer.isView(I)||vU(I,ArrayBuffer))return I.byteLength;if(typeof I!=="string")throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof I);let W=I.length,T=arguments.length>2&&arguments[2]===!0;if(!T&&W===0)return 0;let H=!1;for(;;)switch(O){case"ascii":case"latin1":case"binary":return W;case"utf8":case"utf-8":return cX(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W*2;case"hex":return W>>>1;case"base64":return fZ(I).length;default:if(H)return T?-1:cX(I).length;O=(""+O).toLowerCase(),H=!0}}function WY(I,O,W){let T=!1;if(O===void 0||O<0)O=0;if(O>this.length)return"";if(W===void 0||W>this.length)W=this.length;if(W<=0)return"";if(W>>>=0,O>>>=0,W<=O)return"";if(!I)I="utf8";while(!0)switch(I){case"hex":return RY(this,O,W);case"utf8":case"utf-8":return vZ(this,O,W);case"ascii":return LY(this,O,W);case"latin1":case"binary":return MY(this,O,W);case"base64":return CY(this,O,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qY(this,O,W);default:if(T)throw TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),T=!0}}function hU(I,O,W){let T=I[O];I[O]=I[W],I[W]=T}function jZ(I,O,W,T,H){if(I.length===0)return-1;if(typeof W==="string")T=W,W=0;else if(W>2147483647)W=2147483647;else if(W<-2147483648)W=-2147483648;if(W=+W,Number.isNaN(W))W=H?0:I.length-1;if(W<0)W=I.length+W;if(W>=I.length)if(H)return-1;else W=I.length-1;else if(W<0)if(H)W=0;else return-1;if(typeof O==="string")O=$0.from(O,T);if($0.isBuffer(O)){if(O.length===0)return-1;return CZ(I,O,W,T,H)}else if(typeof O==="number"){if(O=O&255,typeof Uint8Array.prototype.indexOf==="function")if(H)return Uint8Array.prototype.indexOf.call(I,O,W);else return Uint8Array.prototype.lastIndexOf.call(I,O,W);return CZ(I,[O],W,T,H)}throw TypeError("val must be string, number or Buffer")}function CZ(I,O,W,T,H){let L=1,V=I.length,P=O.length;if(T!==void 0){if(T=String(T).toLowerCase(),T==="ucs2"||T==="ucs-2"||T==="utf16le"||T==="utf-16le"){if(I.length<2||O.length<2)return-1;L=2,V/=2,P/=2,W/=2}}function S(C,D){if(L===1)return C[D];else return C.readUInt16BE(D*L)}let E;if(H){let C=-1;for(E=W;E<V;E++)if(S(I,E)===S(O,C===-1?0:E-C)){if(C===-1)C=E;if(E-C+1===P)return C*L}else{if(C!==-1)E-=E-C;C=-1}}else{if(W+P>V)W=V-P;for(E=W;E>=0;E--){let C=!0;for(let D=0;D<P;D++)if(S(I,E+D)!==S(O,D)){C=!1;break}if(C)return E}}return-1}function HY(I,O,W,T){W=Number(W)||0;let H=I.length-W;if(!T)T=H;else if(T=Number(T),T>H)T=H;let L=O.length;if(T>L/2)T=L/2;let V;for(V=0;V<T;++V){let P=parseInt(O.substr(V*2,2),16);if(Number.isNaN(P))return V;I[W+V]=P}return V}function DY(I,O,W,T){return FX(cX(O,I.length-W),I,W,T)}function TY(I,O,W,T){return FX(jY(O),I,W,T)}function AY(I,O,W,T){return FX(fZ(O),I,W,T)}function zY(I,O,W,T){return FX(vY(O,I.length-W),I,W,T)}function CY(I,O,W){if(O===0&&W===I.length)return AZ(I);else return AZ(I.slice(O,W))}function vZ(I,O,W){W=Math.min(I.length,W);let T=[],H=O;while(H<W){let L=I[H],V=null,P=L>239?4:L>223?3:L>191?2:1;if(H+P<=W){let S,E,C,D;switch(P){case 1:if(L<128)V=L;break;case 2:if(S=I[H+1],(S&192)===128){if(D=(L&31)<<6|S&63,D>127)V=D}break;case 3:if(S=I[H+1],E=I[H+2],(S&192)===128&&(E&192)===128){if(D=(L&15)<<12|(S&63)<<6|E&63,D>2047&&(D<55296||D>57343))V=D}break;case 4:if(S=I[H+1],E=I[H+2],C=I[H+3],(S&192)===128&&(E&192)===128&&(C&192)===128){if(D=(L&15)<<18|(S&63)<<12|(E&63)<<6|C&63,D>65535&&D<1114112)V=D}}}if(V===null)V=65533,P=1;else if(V>65535)V-=65536,T.push(V>>>10&1023|55296),V=56320|V&1023;T.push(V),H+=P}return EY(T)}function EY(I){let O=I.length;if(O<=EZ)return String.fromCharCode.apply(String,I);let W="",T=0;while(T<O)W+=String.fromCharCode.apply(String,I.slice(T,T+=EZ));return W}function LY(I,O,W){let T="";W=Math.min(I.length,W);for(let H=O;H<W;++H)T+=String.fromCharCode(I[H]&127);return T}function MY(I,O,W){let T="";W=Math.min(I.length,W);for(let H=O;H<W;++H)T+=String.fromCharCode(I[H]);return T}function RY(I,O,W){let T=I.length;if(!O||O<0)O=0;if(!W||W<0||W>T)W=T;let H="";for(let L=O;L<W;++L)H+=_Y[I[L]];return H}function qY(I,O,W){let T=I.slice(O,W),H="";for(let L=0;L<T.length-1;L+=2)H+=String.fromCharCode(T[L]+T[L+1]*256);return H}function FU(I,O,W){if(I%1!==0||I<0)throw RangeError("offset is not uint");if(I+O>W)throw RangeError("Trying to access beyond buffer length")}function LU(I,O,W,T,H,L){if(!$0.isBuffer(I))throw TypeError('"buffer" argument must be a Buffer instance');if(O>H||O<L)throw RangeError('"value" argument is out of bounds');if(W+T>I.length)throw RangeError("Index out of range")}function _Z(I,O,W,T,H){wZ(O,T,H,I,W,7);let L=Number(O&BigInt(4294967295));I[W++]=L,L=L>>8,I[W++]=L,L=L>>8,I[W++]=L,L=L>>8,I[W++]=L;let V=Number(O>>BigInt(32)&BigInt(4294967295));return I[W++]=V,V=V>>8,I[W++]=V,V=V>>8,I[W++]=V,V=V>>8,I[W++]=V,W}function BZ(I,O,W,T,H){wZ(O,T,H,I,W,7);let L=Number(O&BigInt(4294967295));I[W+7]=L,L=L>>8,I[W+6]=L,L=L>>8,I[W+5]=L,L=L>>8,I[W+4]=L;let V=Number(O>>BigInt(32)&BigInt(4294967295));return I[W+3]=V,V=V>>8,I[W+2]=V,V=V>>8,I[W+1]=V,V=V>>8,I[W]=V,W+8}function xZ(I,O,W,T,H,L){if(W+T>I.length)throw RangeError("Index out of range");if(W<0)throw RangeError("Index out of range")}function NZ(I,O,W,T,H){if(O=+O,W=W>>>0,!H)xZ(I,O,W,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000);return MZ(I,O,W,T,23,4),W+4}function gZ(I,O,W,T,H){if(O=+O,W=W>>>0,!H)xZ(I,O,W,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000);return MZ(I,O,W,T,52,8),W+8}function LZ(I){let O="",W=I.length,T=I[0]==="-"?1:0;for(;W>=T+4;W-=3)O=`_${I.slice(W-3,W)}${O}`;return`${I.slice(0,W)}${O}`}function SY(I,O,W){if(oU(O,"offset"),I[O]===void 0||I[O+W]===void 0)aU(O,I.length-(W+1))}function wZ(I,O,W,T,H,L){if(I>W||I<O){let V=typeof O==="bigint"?"n":"",P;if(L>3)if(O===0||O===BigInt(0))P=`>= 0${V} and < 2${V} ** ${(L+1)*8}${V}`;else P=`>= -(2${V} ** ${(L+1)*8-1}${V}) and < 2 ** ${(L+1)*8-1}${V}`;else P=`>= ${O}${V} and <= ${W}${V}`;throw new wX("value",P,I)}SY(T,H,L)}function oU(I,O){if(typeof I!=="number")throw new IY(O,"number",I)}function aU(I,O,W){if(Math.floor(I)!==I)throw oU(I,W),new wX(W||"offset","an integer",I);if(O<0)throw new GY;throw new wX(W||"offset",`>= ${W?1:0} and <= ${O}`,I)}function kY(I){if(I=I.split("=")[0],I=I.trim().replace(PY,""),I.length<2)return"";while(I.length%4!==0)I=I+"=";return I}function cX(I,O){O=O||1/0;let W,T=I.length,H=null,L=[];for(let V=0;V<T;++V){if(W=I.charCodeAt(V),W>55295&&W<57344){if(!H){if(W>56319){if((O-=3)>-1)L.push(239,191,189);continue}else if(V+1===T){if((O-=3)>-1)L.push(239,191,189);continue}H=W;continue}if(W<56320){if((O-=3)>-1)L.push(239,191,189);H=W;continue}W=(H-55296<<10|W-56320)+65536}else if(H){if((O-=3)>-1)L.push(239,191,189)}if(H=null,W<128){if((O-=1)<0)break;L.push(W)}else if(W<2048){if((O-=2)<0)break;L.push(W>>6|192,W&63|128)}else if(W<65536){if((O-=3)<0)break;L.push(W>>12|224,W>>6&63|128,W&63|128)}else if(W<1114112){if((O-=4)<0)break;L.push(W>>18|240,W>>12&63|128,W>>6&63|128,W&63|128)}else throw Error("Invalid code point")}return L}function jY(I){let O=[];for(let W=0;W<I.length;++W)O.push(I.charCodeAt(W)&255);return O}function vY(I,O){let W,T,H,L=[];for(let V=0;V<I.length;++V){if((O-=2)<0)break;W=I.charCodeAt(V),T=W>>8,H=W%256,L.push(H),L.push(T)}return L}function fZ(I){return iQ(kY(I))}function FX(I,O,W,T){let H;for(H=0;H<T;++H){if(H+W>=O.length||H>=I.length)break;O[H+W]=I[H]}return H}function vU(I,O){return I instanceof O||I!=null&&I.constructor!=null&&I.constructor.name!=null&&I.constructor.name===O.name}function wU(I){return typeof BigInt>"u"?BY:I}function BY(){throw Error("BigInt not supported")}function bX(I){return()=>{throw Error(I+" is not implemented for node:buffer browser polyfill")}}var jU,PU,gX="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",pU,TZ,zZ,RZ=50,rU=2147483647,qZ=536870888,ZY,QY,YY,JY,VY,GY,IY,wX,EZ=4096,PY,_Y,xY,NY,gY=(I)=>{for(let O of I)if(O.charCodeAt(0)>127)return!1;return!0},wY,fY;var HU=KX(()=>{jU=[],PU=[];for(pU=0,TZ=gX.length;pU<TZ;++pU)jU[pU]=gX[pU],PU[gX.charCodeAt(pU)]=pU;PU[45]=62;PU[95]=63;zZ=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):null,ZY=globalThis.btoa,QY=globalThis.atob,YY=globalThis.File,JY=globalThis.Blob,VY={MAX_LENGTH:rU,MAX_STRING_LENGTH:qZ};GY=pX("ERR_BUFFER_OUT_OF_BOUNDS",function(I){if(I)return`${I} is outside of buffer bounds`;return"Attempt to access memory outside buffer bounds"},RangeError),IY=pX("ERR_INVALID_ARG_TYPE",function(I,O){return`The "${I}" argument must be of type number. Received type ${typeof O}`},TypeError),wX=pX("ERR_OUT_OF_RANGE",function(I,O,W){let T=`The value of "${I}" is out of range.`,H=W;if(Number.isInteger(W)&&Math.abs(W)>4294967296)H=LZ(String(W));else if(typeof W==="bigint"){if(H=String(W),W>BigInt(2)**BigInt(32)||W<-(BigInt(2)**BigInt(32)))H=LZ(H);H+="n"}return T+=` It must be ${O}. Received ${H}`,T},RangeError);Object.defineProperty($0.prototype,"parent",{enumerable:!0,get:function(){if(!$0.isBuffer(this))return;return this.buffer}});Object.defineProperty($0.prototype,"offset",{enumerable:!0,get:function(){if(!$0.isBuffer(this))return;return this.byteOffset}});$0.poolSize=8192;$0.from=function(I,O,W){return SZ(I,O,W)};Object.setPrototypeOf($0.prototype,Uint8Array.prototype);Object.setPrototypeOf($0,Uint8Array);$0.alloc=function(I,O,W){return $Y(I,O,W)};$0.allocUnsafe=function(I){return hX(I)};$0.allocUnsafeSlow=function(I){return hX(I)};$0.isBuffer=function(I){return I!=null&&I._isBuffer===!0&&I!==$0.prototype};$0.compare=function(I,O){if(vU(I,Uint8Array))I=$0.from(I,I.offset,I.byteLength);if(vU(O,Uint8Array))O=$0.from(O,O.offset,O.byteLength);if(!$0.isBuffer(I)||!$0.isBuffer(O))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(I===O)return 0;let W=I.length,T=O.length;for(let H=0,L=Math.min(W,T);H<L;++H)if(I[H]!==O[H]){W=I[H],T=O[H];break}if(W<T)return-1;if(T<W)return 1;return 0};$0.isEncoding=function(I){switch(String(I).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};$0.concat=function(I,O){if(!Array.isArray(I))throw TypeError('"list" argument must be an Array of Buffers');if(I.length===0)return $0.alloc(0);let W;if(O===void 0){O=0;for(W=0;W<I.length;++W)O+=I[W].length}let T=$0.allocUnsafe(O),H=0;for(W=0;W<I.length;++W){let L=I[W];if(vU(L,Uint8Array))if(H+L.length>T.length){if(!$0.isBuffer(L))L=$0.from(L);L.copy(T,H)}else Uint8Array.prototype.set.call(T,L,H);else if(!$0.isBuffer(L))throw TypeError('"list" argument must be an Array of Buffers');else L.copy(T,H);H+=L.length}return T};$0.byteLength=kZ;$0.prototype._isBuffer=!0;$0.prototype.swap16=function(){let I=this.length;if(I%2!==0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let O=0;O<I;O+=2)hU(this,O,O+1);return this};$0.prototype.swap32=function(){let I=this.length;if(I%4!==0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let O=0;O<I;O+=4)hU(this,O,O+3),hU(this,O+1,O+2);return this};$0.prototype.swap64=function(){let I=this.length;if(I%8!==0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let O=0;O<I;O+=8)hU(this,O,O+7),hU(this,O+1,O+6),hU(this,O+2,O+5),hU(this,O+3,O+4);return this};$0.prototype.toString=function(){let I=this.length;if(I===0)return"";if(arguments.length===0)return vZ(this,0,I);return WY.apply(this,arguments)};$0.prototype.toLocaleString=$0.prototype.toString;$0.prototype.equals=function(I){if(!$0.isBuffer(I))throw TypeError("Argument must be a Buffer");if(this===I)return!0;return $0.compare(this,I)===0};$0.prototype.inspect=function(){let I="",O=RZ;if(I=this.toString("hex",0,O).replace(/(.{2})/g,"$1 ").trim(),this.length>O)I+=" ... ";return"<Buffer "+I+">"};if(zZ)$0.prototype[zZ]=$0.prototype.inspect;$0.prototype.compare=function(I,O,W,T,H){if(vU(I,Uint8Array))I=$0.from(I,I.offset,I.byteLength);if(!$0.isBuffer(I))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof I);if(O===void 0)O=0;if(W===void 0)W=I?I.length:0;if(T===void 0)T=0;if(H===void 0)H=this.length;if(O<0||W>I.length||T<0||H>this.length)throw RangeError("out of range index");if(T>=H&&O>=W)return 0;if(T>=H)return-1;if(O>=W)return 1;if(O>>>=0,W>>>=0,T>>>=0,H>>>=0,this===I)return 0;let L=H-T,V=W-O,P=Math.min(L,V),S=this.slice(T,H),E=I.slice(O,W);for(let C=0;C<P;++C)if(S[C]!==E[C]){L=S[C],V=E[C];break}if(L<V)return-1;if(V<L)return 1;return 0};$0.prototype.includes=function(I,O,W){return this.indexOf(I,O,W)!==-1};$0.prototype.indexOf=function(I,O,W){return jZ(this,I,O,W,!0)};$0.prototype.lastIndexOf=function(I,O,W){return jZ(this,I,O,W,!1)};$0.prototype.write=function(I,O,W,T){if(O===void 0)T="utf8",W=this.length,O=0;else if(W===void 0&&typeof O==="string")T=O,W=this.length,O=0;else if(isFinite(O))if(O=O>>>0,isFinite(W)){if(W=W>>>0,T===void 0)T="utf8"}else T=W,W=void 0;else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let H=this.length-O;if(W===void 0||W>H)W=H;if(I.length>0&&(W<0||O<0)||O>this.length)throw RangeError("Attempt to write outside buffer bounds");if(!T)T="utf8";let L=!1;for(;;)switch(T){case"hex":return HY(this,I,O,W);case"utf8":case"utf-8":return DY(this,I,O,W);case"ascii":case"latin1":case"binary":return TY(this,I,O,W);case"base64":return AY(this,I,O,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return zY(this,I,O,W);default:if(L)throw TypeError("Unknown encoding: "+T);T=(""+T).toLowerCase(),L=!0}};$0.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};$0.prototype.slice=function(I,O){let W=this.length;if(I=~~I,O=O===void 0?W:~~O,I<0){if(I+=W,I<0)I=0}else if(I>W)I=W;if(O<0){if(O+=W,O<0)O=0}else if(O>W)O=W;if(O<I)O=I;let T=this.subarray(I,O);return Object.setPrototypeOf(T,$0.prototype),T};$0.prototype.readUintLE=$0.prototype.readUIntLE=function(I,O,W){if(I=I>>>0,O=O>>>0,!W)FU(I,O,this.length);let T=this[I],H=1,L=0;while(++L<O&&(H*=256))T+=this[I+L]*H;return T};$0.prototype.readUintBE=$0.prototype.readUIntBE=function(I,O,W){if(I=I>>>0,O=O>>>0,!W)FU(I,O,this.length);let T=this[I+--O],H=1;while(O>0&&(H*=256))T+=this[I+--O]*H;return T};$0.prototype.readUint8=$0.prototype.readUInt8=function(I,O){if(I=I>>>0,!O)FU(I,1,this.length);return this[I]};$0.prototype.readUint16LE=$0.prototype.readUInt16LE=function(I,O){if(I=I>>>0,!O)FU(I,2,this.length);return this[I]|this[I+1]<<8};$0.prototype.readUint16BE=$0.prototype.readUInt16BE=function(I,O){if(I=I>>>0,!O)FU(I,2,this.length);return this[I]<<8|this[I+1]};$0.prototype.readUint32LE=$0.prototype.readUInt32LE=function(I,O){if(I=I>>>0,!O)FU(I,4,this.length);return(this[I]|this[I+1]<<8|this[I+2]<<16)+this[I+3]*16777216};$0.prototype.readUint32BE=$0.prototype.readUInt32BE=function(I,O){if(I=I>>>0,!O)FU(I,4,this.length);return this[I]*16777216+(this[I+1]<<16|this[I+2]<<8|this[I+3])};$0.prototype.readBigUInt64LE=wU(function(I){I=I>>>0,oU(I,"offset");let O=this[I],W=this[I+7];if(O===void 0||W===void 0)aU(I,this.length-8);let T=O+this[++I]*256+this[++I]*65536+this[++I]*16777216,H=this[++I]+this[++I]*256+this[++I]*65536+W*16777216;return BigInt(T)+(BigInt(H)<<BigInt(32))});$0.prototype.readBigUInt64BE=wU(function(I){I=I>>>0,oU(I,"offset");let O=this[I],W=this[I+7];if(O===void 0||W===void 0)aU(I,this.length-8);let T=O*16777216+this[++I]*65536+this[++I]*256+this[++I],H=this[++I]*16777216+this[++I]*65536+this[++I]*256+W;return(BigInt(T)<<BigInt(32))+BigInt(H)});$0.prototype.readIntLE=function(I,O,W){if(I=I>>>0,O=O>>>0,!W)FU(I,O,this.length);let T=this[I],H=1,L=0;while(++L<O&&(H*=256))T+=this[I+L]*H;if(H*=128,T>=H)T-=Math.pow(2,8*O);return T};$0.prototype.readIntBE=function(I,O,W){if(I=I>>>0,O=O>>>0,!W)FU(I,O,this.length);let T=O,H=1,L=this[I+--T];while(T>0&&(H*=256))L+=this[I+--T]*H;if(H*=128,L>=H)L-=Math.pow(2,8*O);return L};$0.prototype.readInt8=function(I,O){if(I=I>>>0,!O)FU(I,1,this.length);if(!(this[I]&128))return this[I];return(255-this[I]+1)*-1};$0.prototype.readInt16LE=function(I,O){if(I=I>>>0,!O)FU(I,2,this.length);let W=this[I]|this[I+1]<<8;return W&32768?W|4294901760:W};$0.prototype.readInt16BE=function(I,O){if(I=I>>>0,!O)FU(I,2,this.length);let W=this[I+1]|this[I]<<8;return W&32768?W|4294901760:W};$0.prototype.readInt32LE=function(I,O){if(I=I>>>0,!O)FU(I,4,this.length);return this[I]|this[I+1]<<8|this[I+2]<<16|this[I+3]<<24};$0.prototype.readInt32BE=function(I,O){if(I=I>>>0,!O)FU(I,4,this.length);return this[I]<<24|this[I+1]<<16|this[I+2]<<8|this[I+3]};$0.prototype.readBigInt64LE=wU(function(I){I=I>>>0,oU(I,"offset");let O=this[I],W=this[I+7];if(O===void 0||W===void 0)aU(I,this.length-8);let T=this[I+4]+this[I+5]*256+this[I+6]*65536+(W<<24);return(BigInt(T)<<BigInt(32))+BigInt(O+this[++I]*256+this[++I]*65536+this[++I]*16777216)});$0.prototype.readBigInt64BE=wU(function(I){I=I>>>0,oU(I,"offset");let O=this[I],W=this[I+7];if(O===void 0||W===void 0)aU(I,this.length-8);let T=(O<<24)+this[++I]*65536+this[++I]*256+this[++I];return(BigInt(T)<<BigInt(32))+BigInt(this[++I]*16777216+this[++I]*65536+this[++I]*256+W)});$0.prototype.readFloatLE=function(I,O){if(I=I>>>0,!O)FU(I,4,this.length);return OX(this,I,!0,23,4)};$0.prototype.readFloatBE=function(I,O){if(I=I>>>0,!O)FU(I,4,this.length);return OX(this,I,!1,23,4)};$0.prototype.readDoubleLE=function(I,O){if(I=I>>>0,!O)FU(I,8,this.length);return OX(this,I,!0,52,8)};$0.prototype.readDoubleBE=function(I,O){if(I=I>>>0,!O)FU(I,8,this.length);return OX(this,I,!1,52,8)};$0.prototype.writeUintLE=$0.prototype.writeUIntLE=function(I,O,W,T){if(I=+I,O=O>>>0,W=W>>>0,!T){let V=Math.pow(2,8*W)-1;LU(this,I,O,W,V,0)}let H=1,L=0;this[O]=I&255;while(++L<W&&(H*=256))this[O+L]=I/H&255;return O+W};$0.prototype.writeUintBE=$0.prototype.writeUIntBE=function(I,O,W,T){if(I=+I,O=O>>>0,W=W>>>0,!T){let V=Math.pow(2,8*W)-1;LU(this,I,O,W,V,0)}let H=W-1,L=1;this[O+H]=I&255;while(--H>=0&&(L*=256))this[O+H]=I/L&255;return O+W};$0.prototype.writeUint8=$0.prototype.writeUInt8=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,1,255,0);return this[O]=I&255,O+1};$0.prototype.writeUint16LE=$0.prototype.writeUInt16LE=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,2,65535,0);return this[O]=I&255,this[O+1]=I>>>8,O+2};$0.prototype.writeUint16BE=$0.prototype.writeUInt16BE=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,2,65535,0);return this[O]=I>>>8,this[O+1]=I&255,O+2};$0.prototype.writeUint32LE=$0.prototype.writeUInt32LE=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,4,4294967295,0);return this[O+3]=I>>>24,this[O+2]=I>>>16,this[O+1]=I>>>8,this[O]=I&255,O+4};$0.prototype.writeUint32BE=$0.prototype.writeUInt32BE=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,4,4294967295,0);return this[O]=I>>>24,this[O+1]=I>>>16,this[O+2]=I>>>8,this[O+3]=I&255,O+4};$0.prototype.writeBigUInt64LE=wU(function(I,O=0){return _Z(this,I,O,BigInt(0),BigInt("0xffffffffffffffff"))});$0.prototype.writeBigUInt64BE=wU(function(I,O=0){return BZ(this,I,O,BigInt(0),BigInt("0xffffffffffffffff"))});$0.prototype.writeIntLE=function(I,O,W,T){if(I=+I,O=O>>>0,!T){let P=Math.pow(2,8*W-1);LU(this,I,O,W,P-1,-P)}let H=0,L=1,V=0;this[O]=I&255;while(++H<W&&(L*=256)){if(I<0&&V===0&&this[O+H-1]!==0)V=1;this[O+H]=(I/L>>0)-V&255}return O+W};$0.prototype.writeIntBE=function(I,O,W,T){if(I=+I,O=O>>>0,!T){let P=Math.pow(2,8*W-1);LU(this,I,O,W,P-1,-P)}let H=W-1,L=1,V=0;this[O+H]=I&255;while(--H>=0&&(L*=256)){if(I<0&&V===0&&this[O+H+1]!==0)V=1;this[O+H]=(I/L>>0)-V&255}return O+W};$0.prototype.writeInt8=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,1,127,-128);if(I<0)I=255+I+1;return this[O]=I&255,O+1};$0.prototype.writeInt16LE=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,2,32767,-32768);return this[O]=I&255,this[O+1]=I>>>8,O+2};$0.prototype.writeInt16BE=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,2,32767,-32768);return this[O]=I>>>8,this[O+1]=I&255,O+2};$0.prototype.writeInt32LE=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,4,2147483647,-2147483648);return this[O]=I&255,this[O+1]=I>>>8,this[O+2]=I>>>16,this[O+3]=I>>>24,O+4};$0.prototype.writeInt32BE=function(I,O,W){if(I=+I,O=O>>>0,!W)LU(this,I,O,4,2147483647,-2147483648);if(I<0)I=4294967295+I+1;return this[O]=I>>>24,this[O+1]=I>>>16,this[O+2]=I>>>8,this[O+3]=I&255,O+4};$0.prototype.writeBigInt64LE=wU(function(I,O=0){return _Z(this,I,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});$0.prototype.writeBigInt64BE=wU(function(I,O=0){return BZ(this,I,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});$0.prototype.writeFloatLE=function(I,O,W){return NZ(this,I,O,!0,W)};$0.prototype.writeFloatBE=function(I,O,W){return NZ(this,I,O,!1,W)};$0.prototype.writeDoubleLE=function(I,O,W){return gZ(this,I,O,!0,W)};$0.prototype.writeDoubleBE=function(I,O,W){return gZ(this,I,O,!1,W)};$0.prototype.copy=function(I,O,W,T){if(!$0.isBuffer(I))throw TypeError("argument should be a Buffer");if(!W)W=0;if(!T&&T!==0)T=this.length;if(O>=I.length)O=I.length;if(!O)O=0;if(T>0&&T<W)T=W;if(T===W)return 0;if(I.length===0||this.length===0)return 0;if(O<0)throw RangeError("targetStart out of bounds");if(W<0||W>=this.length)throw RangeError("Index out of range");if(T<0)throw RangeError("sourceEnd out of bounds");if(T>this.length)T=this.length;if(I.length-O<T-W)T=I.length-O+W;let H=T-W;if(this===I&&typeof Uint8Array.prototype.copyWithin==="function")this.copyWithin(O,W,T);else Uint8Array.prototype.set.call(I,this.subarray(W,T),O);return H};$0.prototype.fill=function(I,O,W,T){if(typeof I==="string"){if(typeof O==="string")T=O,O=0,W=this.length;else if(typeof W==="string")T=W,W=this.length;if(T!==void 0&&typeof T!=="string")throw TypeError("encoding must be a string");if(typeof T==="string"&&!$0.isEncoding(T))throw TypeError("Unknown encoding: "+T);if(I.length===1){let L=I.charCodeAt(0);if(T==="utf8"&&L<128||T==="latin1")I=L}}else if(typeof I==="number")I=I&255;else if(typeof I==="boolean")I=Number(I);if(O<0||this.length<O||this.length<W)throw RangeError("Out of range index");if(W<=O)return this;if(O=O>>>0,W=W===void 0?this.length:W>>>0,!I)I=0;let H;if(typeof I==="number")for(H=O;H<W;++H)this[H]=I;else{let L=$0.isBuffer(I)?I:$0.from(I,T),V=L.length;if(V===0)throw TypeError('The value "'+I+'" is invalid for argument "value"');for(H=0;H<W-O;++H)this[H+O]=L[H%V]}return this};PY=/[^+/0-9A-Za-z-_]/g;_Y=function(){let I=Array(256);for(let O=0;O<16;++O){let W=O*16;for(let T=0;T<16;++T)I[W+T]="0123456789abcdef"[O]+"0123456789abcdef"[T]}return I}();xY=bX("resolveObjectURL"),NY=bX("isUtf8"),wY=bX("transcode"),fY=$0});var nZ={};$X(nZ,{types:()=>nY,promisify:()=>bZ,log:()=>pZ,isUndefined:()=>nU,isSymbol:()=>sY,isString:()=>zX,isRegExp:()=>WX,isPrimitive:()=>tY,isObject:()=>mU,isNumber:()=>cZ,isNullOrUndefined:()=>mY,isNull:()=>AX,isFunction:()=>DX,isError:()=>HX,isDate:()=>nX,isBuffer:()=>rY,isBoolean:()=>sX,isArray:()=>yZ,inspect:()=>uU,inherits:()=>hZ,format:()=>mX,deprecate:()=>cY,default:()=>iY,debuglog:()=>pY,callbackifyOnRejected:()=>aX,callbackify:()=>lZ,_extend:()=>rX,TextEncoder:()=>dZ,TextDecoder:()=>oZ});function mX(I,...O){if(!zX(I)){var W=[I];for(var T=0;T<O.length;T++)W.push(uU(O[T]));return W.join(" ")}var T=0,H=O.length,L=String(I).replace(yY,function(P){if(P==="%%")return"%";if(T>=H)return P;switch(P){case"%s":return String(O[T++]);case"%d":return Number(O[T++]);case"%j":try{return JSON.stringify(O[T++])}catch(S){return"[Circular]"}default:return P}});for(var V=O[T];T<H;V=O[++T])if(AX(V)||!mU(V))L+=" "+V;else L+=" "+uU(V);return L}function cY(I,O){if(typeof process>"u"||process?.noDeprecation===!0)return I;var W=!1;function T(...H){if(!W){if(process.throwDeprecation)throw Error(O);else if(process.traceDeprecation)console.trace(O);else console.error(O);W=!0}return I.apply(this,...H)}return T}function hY(I,O){var W=uU.styles[O];if(W)return"\x1B["+uU.colors[W][0]+"m"+I+"\x1B["+uU.colors[W][1]+"m";else return I}function uY(I,O){return I}function bY(I){var O={};return I.forEach(function(W,T){O[W]=!0}),O}function TX(I,O,W){if(I.customInspect&&O&&DX(O.inspect)&&O.inspect!==uU&&!(O.constructor&&O.constructor.prototype===O)){var T=O.inspect(W,I);if(!zX(T))T=TX(I,T,W);return T}var H=lY(I,O);if(H)return H;var L=Object.keys(O),V=bY(L);if(I.showHidden)L=Object.getOwnPropertyNames(O);if(HX(O)&&(L.indexOf("message")>=0||L.indexOf("description")>=0))return lX(O);if(L.length===0){if(DX(O)){var P=O.name?": "+O.name:"";return I.stylize("[Function"+P+"]","special")}if(WX(O))return I.stylize(RegExp.prototype.toString.call(O),"regexp");if(nX(O))return I.stylize(Date.prototype.toString.call(O),"date");if(HX(O))return lX(O)}var S="",E=!1,C=["{","}"];if(yZ(O))E=!0,C=["[","]"];if(DX(O)){var D=O.name?": "+O.name:"";S=" [Function"+D+"]"}if(WX(O))S=" "+RegExp.prototype.toString.call(O);if(nX(O))S=" "+Date.prototype.toUTCString.call(O);if(HX(O))S=" "+lX(O);if(L.length===0&&(!E||O.length==0))return C[0]+S+C[1];if(W<0)if(WX(O))return I.stylize(RegExp.prototype.toString.call(O),"regexp");else return I.stylize("[Object]","special");I.seen.push(O);var z;if(E)z=dY(I,O,W,V,L);else z=L.map(function(R){return oX(I,O,W,V,R,E)});return I.seen.pop(),oY(z,S,C)}function lY(I,O){if(nU(O))return I.stylize("undefined","undefined");if(zX(O)){var W="'"+JSON.stringify(O).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return I.stylize(W,"string")}if(cZ(O))return I.stylize(""+O,"number");if(sX(O))return I.stylize(""+O,"boolean");if(AX(O))return I.stylize("null","null")}function lX(I){return"["+Error.prototype.toString.call(I)+"]"}function dY(I,O,W,T,H){var L=[];for(var V=0,P=O.length;V<P;++V)if(uZ(O,String(V)))L.push(oX(I,O,W,T,String(V),!0));else L.push("");return H.forEach(function(S){if(!S.match(/^\d+$/))L.push(oX(I,O,W,T,S,!0))}),L}function oX(I,O,W,T,H,L){var V,P,S;if(S=Object.getOwnPropertyDescriptor(O,H)||{value:O[H]},S.get)if(S.set)P=I.stylize("[Getter/Setter]","special");else P=I.stylize("[Getter]","special");else if(S.set)P=I.stylize("[Setter]","special");if(!uZ(T,H))V="["+H+"]";if(!P)if(I.seen.indexOf(S.value)<0){if(AX(W))P=TX(I,S.value,null);else P=TX(I,S.value,W-1);if(P.indexOf(`
|
|
2
2
|
`)>-1)if(L)P=P.split(`
|
|
3
3
|
`).map(function(E){return" "+E}).join(`
|
|
4
4
|
`).slice(2);else P=`
|
|
@@ -16,5 +16,5 @@ we accept pull requests
|
|
|
16
16
|
https://github.com/browserify/crypto-browserify`)},I.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}}),p0=EJ(aV(),1),eV=p0.prng,iV=p0.pseudoRandomBytes,UG=p0.rng,XG=p0.randomBytes,ZG=p0.Hash,QG=p0.createHash,YG=p0.Hmac,JG=p0.createHmac,VG=p0.getHashes,GG=p0.pbkdf2,IG=p0.pbkdf2Sync,$G=p0.Cipher,KG=p0.createCipher,OG=p0.Cipheriv,FG=p0.createCipheriv,WG=p0.Decipher,HG=p0.createDecipher,DG=p0.Decipheriv,TG=p0.createDecipheriv,AG=p0.getCiphers,zG=p0.listCiphers,CG=p0.DiffieHellmanGroup,EG=p0.createDiffieHellmanGroup,LG=p0.getDiffieHellman,MG=p0.createDiffieHellman,RG=p0.DiffieHellman,qG=p0.createSign,SG=p0.Sign,PG=p0.createVerify,kG=p0.Verify,jG=p0.createECDH,vG=p0.publicEncrypt,_G=p0.privateEncrypt,BG=p0.publicDecrypt,xG=p0.privateDecrypt,NG=p0.randomFill,gG=p0.randomFillSync,wG=p0.createCredentials,fG=p0.constants,hG=["p192","p224","p256","p384","p521","curve25519","ed25519","secp256k1","secp224r1","prime256v1","prime192v1","ed25519","secp384r1","secp521r1"];bG=crypto,lG=crypto});var DZ=EX((jX,mQ)=>{(function(I,O){if(typeof jX==="object")mQ.exports=jX=O();else if(typeof define==="function"&&define.amd)define([],O);else I.CryptoJS=O()})(jX,function(){var I=I||function(O,W){var T;if(typeof window<"u"&&window.crypto)T=window.crypto;if(typeof self<"u"&&self.crypto)T=self.crypto;if(typeof globalThis<"u"&&globalThis.crypto)T=globalThis.crypto;if(!T&&typeof window<"u"&&window.msCrypto)T=window.msCrypto;if(!T&&typeof global<"u"&&global.crypto)T=global.crypto;if(!T)try{T=(qU(),h0(RU))}catch(j){}var H=function(){if(T){if(typeof T.getRandomValues==="function")try{return T.getRandomValues(new Uint32Array(1))[0]}catch(j){}if(typeof T.randomBytes==="function")try{return T.randomBytes(4).readInt32LE()}catch(j){}}throw Error("Native crypto module could not be used to get secure random number.")},L=Object.create||function(){function j(){}return function(v){var x;return j.prototype=v,x=new j,j.prototype=null,x}}(),V={},P=V.lib={},S=P.Base=function(){return{extend:function(j){var v=L(this);if(j)v.mixIn(j);if(!v.hasOwnProperty("init")||this.init===v.init)v.init=function(){v.$super.init.apply(this,arguments)};return v.init.prototype=v,v.$super=this,v},create:function(){var j=this.extend();return j.init.apply(j,arguments),j},init:function(){},mixIn:function(j){for(var v in j)if(j.hasOwnProperty(v))this[v]=j[v];if(j.hasOwnProperty("toString"))this.toString=j.toString},clone:function(){return this.init.prototype.extend(this)}}}(),E=P.WordArray=S.extend({init:function(j,v){if(j=this.words=j||[],v!=W)this.sigBytes=v;else this.sigBytes=j.length*4},toString:function(j){return(j||D).stringify(this)},concat:function(j){var v=this.words,x=j.words,N=this.sigBytes,f=j.sigBytes;if(this.clamp(),N%4)for(var b=0;b<f;b++){var Q0=x[b>>>2]>>>24-b%4*8&255;v[N+b>>>2]|=Q0<<24-(N+b)%4*8}else for(var G0=0;G0<f;G0+=4)v[N+G0>>>2]=x[G0>>>2];return this.sigBytes+=f,this},clamp:function(){var j=this.words,v=this.sigBytes;j[v>>>2]&=4294967295<<32-v%4*8,j.length=O.ceil(v/4)},clone:function(){var j=S.clone.call(this);return j.words=this.words.slice(0),j},random:function(j){var v=[];for(var x=0;x<j;x+=4)v.push(H());return new E.init(v,j)}}),C=V.enc={},D=C.Hex={stringify:function(j){var{words:v,sigBytes:x}=j,N=[];for(var f=0;f<x;f++){var b=v[f>>>2]>>>24-f%4*8&255;N.push((b>>>4).toString(16)),N.push((b&15).toString(16))}return N.join("")},parse:function(j){var v=j.length,x=[];for(var N=0;N<v;N+=2)x[N>>>3]|=parseInt(j.substr(N,2),16)<<24-N%8*4;return new E.init(x,v/2)}},z=C.Latin1={stringify:function(j){var{words:v,sigBytes:x}=j,N=[];for(var f=0;f<x;f++){var b=v[f>>>2]>>>24-f%4*8&255;N.push(String.fromCharCode(b))}return N.join("")},parse:function(j){var v=j.length,x=[];for(var N=0;N<v;N++)x[N>>>2]|=(j.charCodeAt(N)&255)<<24-N%4*8;return new E.init(x,v)}},R=C.Utf8={stringify:function(j){try{return decodeURIComponent(escape(z.stringify(j)))}catch(v){throw Error("Malformed UTF-8 data")}},parse:function(j){return z.parse(unescape(encodeURIComponent(j)))}},q=P.BufferedBlockAlgorithm=S.extend({reset:function(){this._data=new E.init,this._nDataBytes=0},_append:function(j){if(typeof j=="string")j=R.parse(j);this._data.concat(j),this._nDataBytes+=j.sigBytes},_process:function(j){var v,x=this._data,N=x.words,f=x.sigBytes,b=this.blockSize,Q0=b*4,G0=f/Q0;if(j)G0=O.ceil(G0);else G0=O.max((G0|0)-this._minBufferSize,0);var Y0=G0*b,u=O.min(Y0*4,f);if(Y0){for(var U0=0;U0<Y0;U0+=b)this._doProcessBlock(N,U0);v=N.splice(0,Y0),x.sigBytes-=u}return new E.init(v,u)},clone:function(){var j=S.clone.call(this);return j._data=this._data.clone(),j},_minBufferSize:0}),_=P.Hasher=q.extend({cfg:S.extend(),init:function(j){this.cfg=this.cfg.extend(j),this.reset()},reset:function(){q.reset.call(this),this._doReset()},update:function(j){return this._append(j),this._process(),this},finalize:function(j){if(j)this._append(j);var v=this._doFinalize();return v},blockSize:16,_createHelper:function(j){return function(v,x){return new j.init(x).finalize(v)}},_createHmacHelper:function(j){return function(v,x){return new k.HMAC.init(j,x).finalize(v)}}}),k=V.algo={};return V}(Math);return I})});var tQ=EX((vX,sQ)=>{(function(I,O){if(typeof vX==="object")sQ.exports=vX=O(DZ());else if(typeof define==="function"&&define.amd)define(["./core"],O);else O(I.CryptoJS)})(vX,function(I){return function(O){var W=I,T=W.lib,H=T.WordArray,L=T.Hasher,V=W.algo,P=[],S=[];(function(){function D(_){var k=O.sqrt(_);for(var j=2;j<=k;j++)if(!(_%j))return!1;return!0}function z(_){return(_-(_|0))*4294967296|0}var R=2,q=0;while(q<64){if(D(R)){if(q<8)P[q]=z(O.pow(R,0.5));S[q]=z(O.pow(R,0.3333333333333333)),q++}R++}})();var E=[],C=V.SHA256=L.extend({_doReset:function(){this._hash=new H.init(P.slice(0))},_doProcessBlock:function(D,z){var R=this._hash.words,q=R[0],_=R[1],k=R[2],j=R[3],v=R[4],x=R[5],N=R[6],f=R[7];for(var b=0;b<64;b++){if(b<16)E[b]=D[z+b]|0;else{var Q0=E[b-15],G0=(Q0<<25|Q0>>>7)^(Q0<<14|Q0>>>18)^Q0>>>3,Y0=E[b-2],u=(Y0<<15|Y0>>>17)^(Y0<<13|Y0>>>19)^Y0>>>10;E[b]=G0+E[b-7]+u+E[b-16]}var U0=v&x^~v&N,U=q&_^q&k^_&k,Q=(q<<30|q>>>2)^(q<<19|q>>>13)^(q<<10|q>>>22),J=(v<<26|v>>>6)^(v<<21|v>>>11)^(v<<7|v>>>25),Z=f+J+U0+S[b]+E[b],Y=Q+U;f=N,N=x,x=v,v=j+Z|0,j=k,k=_,_=q,q=Z+Y|0}R[0]=R[0]+q|0,R[1]=R[1]+_|0,R[2]=R[2]+k|0,R[3]=R[3]+j|0,R[4]=R[4]+v|0,R[5]=R[5]+x|0,R[6]=R[6]+N|0,R[7]=R[7]+f|0},_doFinalize:function(){var D=this._data,z=D.words,R=this._nDataBytes*8,q=D.sigBytes*8;return z[q>>>5]|=128<<24-q%32,z[(q+64>>>9<<4)+14]=O.floor(R/4294967296),z[(q+64>>>9<<4)+15]=R,D.sigBytes=z.length*4,this._process(),this._hash},clone:function(){var D=L.clone.call(this);return D._hash=this._hash.clone(),D}});W.SHA256=L._createHelper(C),W.HmacSHA256=L._createHmacHelper(C)}(Math),I.SHA256})});var dG=EX((_X,rQ)=>{(function(I,O,W){if(typeof _X==="object")rQ.exports=_X=O(DZ(),tQ());else if(typeof define==="function"&&define.amd)define(["./core","./sha256"],O);else O(I.CryptoJS)})(_X,function(I){return function(){var O=I,W=O.lib,T=W.WordArray,H=O.algo,L=H.SHA256,V=H.SHA224=L.extend({_doReset:function(){this._hash=new T.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var P=L._doFinalize.call(this);return P.sigBytes-=4,P}});O.SHA224=L._createHelper(V),O.HmacSHA224=L._createHmacHelper(V)}(),I.SHA224})});
|
|
17
17
|
export{DZ as ya,tQ as za,dG as Aa};
|
|
18
18
|
|
|
19
|
-
//# debugId=
|
|
20
|
-
//# sourceMappingURL=chunk-
|
|
19
|
+
//# debugId=E92CAF85BCF0895B64756E2164756E21
|
|
20
|
+
//# sourceMappingURL=chunk-2jddegc1.js.map
|