@dcl/shop 0.1.0-29030398160.commit-dedc8ac → 0.1.0-29111917255.commit-e6715c3
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/{AnimatedBackground-8aI4vJAl.js → AnimatedBackground-BYKnsBtz.js} +1 -1
- package/assets/{Assets-O86HcPf_.js → Assets-ClVmauZ2.js} +1 -1
- package/assets/{Button-D1faXtxc.js → Button-CgZSqnGW.js} +1 -1
- package/assets/{Cart-wT4YY2XB.js → Cart-Up06p7ew.js} +1 -1
- package/assets/{CircularProgress-ByISsJtD.js → CircularProgress-BbGH0RSH.js} +1 -1
- package/assets/{Collection-B-SrzrlP.js → Collection-DvK8DQsK.js} +1 -1
- package/assets/{ConstantsUtil-DrWe0yob.js → ConstantsUtil-CiDezLbv.js} +1 -1
- package/assets/{Creator-3SRIb5GI.js → Creator-ClUMhdS6.js} +1 -1
- package/assets/{ExchangeController-CtvD9TxU.js → ExchangeController-DdSsjFTm.js} +1 -1
- package/assets/{GetCredits-BntbDm9-.js → GetCredits-7W0xZLwI.js} +2 -2
- package/assets/{HelpersUtil-zGctDzqI.js → HelpersUtil-CbFvbY-T.js} +1 -1
- package/assets/{ImportListings-DvqpDa-s.js → ImportListings-tpyUcfqZ.js} +1 -1
- package/assets/ItemDetail-CZQ3QPE1.js +2 -0
- package/assets/{Market-Hqywp2wQ.js → Market-CRtp3AGM.js} +1 -1
- package/assets/{MenuItem-BzIPsU3-.js → MenuItem-BLQsL8Vh.js} +1 -1
- package/assets/{MyAssets-nfsXXyUv.js → MyAssets-Cp2z98Lz.js} +1 -1
- package/assets/{MyFavorites-B6_8hr5-.js → MyFavorites-_R79W8pO.js} +1 -1
- package/assets/{MyPurchases-33hyTefC.js → MyPurchases-DJYHRbWz.js} +1 -1
- package/assets/{NetworkUtil-Ddexw9-U.js → NetworkUtil-DDES604E.js} +1 -1
- package/assets/{NotFound-DXluG5-7.js → NotFound-6FTGg4R1.js} +1 -1
- package/assets/{RealCheckout-tQms6dAo.js → RealCheckout-BemiXyZF.js} +1 -1
- package/assets/{ShopFooterInner-DV3X__jb.js → ShopFooterInner-KJ2oezRg.js} +2 -2
- package/assets/{Success-BblXOFEG.js → Success-CXjLiyYm.js} +1 -1
- package/assets/{SvgIcon-CVoRZ89M.js → SvgIcon-DtxoFXOd.js} +1 -1
- package/assets/{SwapController-BEHLqATV.js → SwapController-C07T-0ls.js} +1 -1
- package/assets/{TradeService-a9BKe-Oz.js → TradeService-D4PrM9vt.js} +1 -1
- package/assets/{W3MFrameProviderSingleton-HtGM3kiI.js → W3MFrameProviderSingleton-DXEpVsCm.js} +3 -3
- package/assets/{WebCryptoP256-bPjiT7wY.js → WebCryptoP256-B1xyhPdr.js} +1 -1
- package/assets/{basic-awR2CJat.js → basic-Dq4Wpic2.js} +1 -1
- package/assets/{biconomy-CBCMLM9k.js → biconomy-BQtB5Ab0.js} +1 -1
- package/assets/{buy-C8v-ou6b.js → buy-6ORWjZW_.js} +1 -1
- package/assets/{buy-gasless-CUtIigP0.js → buy-gasless-DL6o_Lwi.js} +1 -1
- package/assets/{ccip-BMCE_sFa.js → ccip-DgHj7djR.js} +1 -1
- package/assets/{ccip-DiW7RkRR.js → ccip-Zo_y8Ko9.js} +1 -1
- package/assets/{chains-CMJ6lVMG.js → chains-Bk629xE3.js} +1 -1
- package/assets/{collection-D-oaSVfu.js → collection-B8w_ujSk.js} +1 -1
- package/assets/{common-GsSQn_vD.js → common-CEkVtB9E.js} +1 -1
- package/assets/{controller-CJz3LUjz.js → controller-CNZZBumM.js} +2 -2
- package/assets/{core-CGoVaJvD.js → core-C_RCjMc6.js} +4 -4
- package/assets/{custom-CLQCvu9h.js → custom-BM-_NC1p.js} +1 -1
- package/assets/{data-capture-C1enk8q3.js → data-capture-Clu_u_4e.js} +1 -1
- package/assets/decimals-C7k-JLnD.js +1 -0
- package/assets/{decimals-C8GSUqDy.js → decimals-DYUDFeSV.js} +1 -1
- package/assets/{detectExtension-Bdev6B_Y.js → detectExtension-b3FK4NnW.js} +1 -1
- package/assets/{email-DI1UmfjV.js → email-C0z3A7sK.js} +1 -1
- package/assets/{embedded-wallet-CUaCp934.js → embedded-wallet-COvvX2Qp.js} +1 -1
- package/assets/{engine-NUwMDIUh.js → engine-Cs_nlYqC.js} +1 -1
- package/assets/{estimate-l1-fee-CkQ_-gw6.js → estimate-l1-fee-oTYMvZsv.js} +1 -1
- package/assets/eth_estimateGas-D2h2NKDU.js +1 -0
- package/assets/{eth_getStorageAt-DqNZYObO.js → eth_getStorageAt-nxicedso.js} +1 -1
- package/assets/eth_getTransactionCount-CYYgSGiU.js +1 -0
- package/assets/{ethereum-CjiWK1L5.js → ethereum-CdeRZR9J.js} +1 -1
- package/assets/{ethers-DHDSyreX.js → ethers-JeCAM1sd.js} +1 -1
- package/assets/{extractIPFS-COY4B3_o.js → extractIPFS-DzIizex4.js} +1 -1
- package/assets/{features-DW4K2ZKu.js → features-Ck7HAsYI.js} +1 -1
- package/assets/{fetchTokenMetadata-D4vVc_nQ.js → fetchTokenMetadata-CvdEl9__.js} +2 -2
- package/assets/{generateUtilityClasses-D15hK3nM.js → generateUtilityClasses-C3jgMIyn.js} +1 -1
- package/assets/get-ecosystem-wallet-info-B4ca6uUn.js +1 -0
- package/assets/{getBalance-CndsdQzG.js → getBalance-BS9M_tBF.js} +2 -2
- package/assets/{getInstalledModules-BZgUgPCr.js → getInstalledModules-TJvbccgJ.js} +1 -1
- package/assets/{getNFT-Bw4qn7ry.js → getNFT-BlQFGY94.js} +2 -2
- package/assets/{getNFT-BQyw29TQ.js → getNFT-Xlc7XB2G.js} +1 -1
- package/assets/{hashTypedData-CaO8N883.js → hashTypedData-B7sBgfoL.js} +1 -1
- package/assets/{hashTypedData-Er6Ia-O7.js → hashTypedData-CEYoWftx.js} +1 -1
- package/assets/{import-NJqh-zgj.js → import-J8FWHnju.js} +1 -1
- package/assets/{in-app-wallet-calls-BDq_Ik7W.js → in-app-wallet-calls-GDlqBGpw.js} +1 -1
- package/assets/{index-C6xmzvY-.js → index-2dkhZZEZ.js} +1 -1
- package/assets/{index-DwQ4pw8v.js → index-6YdbHDXd.js} +1 -1
- package/assets/{index-Dav5KOrd.js → index-B0PvzweT.js} +1 -1
- package/assets/{index-Buf412yH.js → index-B11b--Yh.js} +1 -1
- package/assets/{index-Hn-DbSZA.js → index-B5Oqojt4.js} +1 -1
- package/assets/{index-PQMQyCqV.js → index-B5nwKjyJ.js} +1 -1
- package/assets/{index-Dq7Rlnvq.js → index-B6-wCRdo.js} +1 -1
- package/assets/{index-BseAcDfV.js → index-BA1ToKo5.js} +3 -3
- package/assets/{index-BdBYQDrP.js → index-BBTg_Taa.js} +1 -1
- package/assets/{index-DrcFvB51.js → index-BLF3lLRE.js} +1 -1
- package/assets/{index-P5U8LYs6.js → index-BNjQhTuO.js} +1 -1
- package/assets/{index-DRm7xERf.js → index-BNsmSCur.js} +1 -1
- package/assets/{index-Bo34Cx12.js → index-BRAKTMPG.js} +1 -1
- package/assets/{index-BOwZsNrV.js → index-B_xrDWUL.js} +1 -1
- package/assets/{index-Ddmzqmxk.js → index-BcvgfIV4.js} +1 -1
- package/assets/{index-CdfeQ7YK.js → index-BcyJUD4U.js} +1 -1
- package/assets/{index-BUaGOTLN.js → index-BeymNI6W.js} +1 -1
- package/assets/{index-CWz8eoAl.js → index-BgtBi25O.js} +1 -1
- package/assets/{index-zGd0k6zk.js → index-Bj-x5N2U.js} +1 -1
- package/assets/{index-CyDCPwX2.js → index-Blc7OGRU.js} +1 -1
- package/assets/{index-FrZezou7.js → index-BnrCQ-kr.js} +1 -1
- package/assets/{index-BKg37Q5D.js → index-Bu2DcNS5.js} +1 -1
- package/assets/{index-DXfwhNfH.js → index-C9P6N44e.js} +2 -2
- package/assets/{index-Dmfk0azd.js → index-CI_HQD35.js} +39 -39
- package/assets/{index-FcUvAZuZ.js → index-CMib98th.js} +1 -1
- package/assets/{index-KUsuHO11.js → index-CPc95Sx-.js} +1 -1
- package/assets/{index-ccNJtibX.js → index-CS7PjWbj.js} +3 -3
- package/assets/{index-BuKyqX4w.js → index-CSh-BHOv.js} +1 -1
- package/assets/{index-2l5r0dRI.js → index-CZ8lEqAg.js} +2 -2
- package/assets/{index-BABCyrjx.js → index-ChHYiWiR.js} +1 -1
- package/assets/{index-CDOPdFEN.js → index-CkCZBr-g.js} +1 -1
- package/assets/{index-D-VYD1II.js → index-Cl4u62mB.js} +1 -1
- package/assets/{index-C1RysQbA.js → index-CoACJ04N.js} +1 -1
- package/assets/{index-C6QyIhnE.js → index-CptRe6qL.js} +2 -2
- package/assets/{index-Dm67LTtv.js → index-CxQiq4b6.js} +1 -1
- package/assets/{index-BoZx7TrW.js → index-Cye62OPB.js} +1 -1
- package/assets/{index-LDSpzB15.js → index-D-lax9BR.js} +1 -1
- package/assets/{index-AgzyxgSU.js → index-DA60UT_n.js} +1 -1
- package/assets/{index-emGKKyxf.js → index-DFJdN6PH.js} +1 -1
- package/assets/{index-BRyy9_FL.js → index-DGSeBOvG.js} +1 -1
- package/assets/{index-BEzzzIlC.js → index-DSUWwVug.js} +1 -1
- package/assets/{index-CWHR1ZBn.js → index-DUnXGO0a.js} +1 -1
- package/assets/{index-DieH8QTn.js → index-DWEAO5Zp.js} +1 -1
- package/assets/{index-CDAYsxA6.js → index-DWk4e-hQ.js} +1 -1
- package/assets/{index-CCxw-foK.js → index-DZ8SABwK.js} +1 -1
- package/assets/{index-BZIVWDQd.js → index-D_vsPbWD.js} +1 -1
- package/assets/{index-CRhrr6gN.js → index-DjbM69kL.js} +1 -1
- package/assets/{index-BexyLNIk.js → index-DnPCa8RK.js} +1 -1
- package/assets/{index-CfKqUBFA.js → index-DoS7CfZ4.js} +2 -2
- package/assets/{index-j1oJp18p.js → index-Dv6YT5k2.js} +1 -1
- package/assets/{index-DVQRwKte.js → index-S-U9uSud.js} +1 -1
- package/assets/{index-CmcvhZsS.js → index-_AHcKVpB.js} +1 -1
- package/assets/{index-BqIdYoG8.js → index-dE2OwwEn.js} +1 -1
- package/assets/{index-mLXaZKmk.js → index-pJLySSiV.js} +1 -1
- package/assets/{index-CENZ1Xjd.js → index-t3MAsdpb.js} +1 -1
- package/assets/{index-DJCTaNyE.js → index-ulcskxUh.js} +1 -1
- package/assets/{index-Gr3BFRx7.js → index-yq7Vx7EH.js} +1 -1
- package/assets/{index.es-7keraYJG.js → index.es-BQrA1NgE.js} +4 -4
- package/assets/{index.es-C2X55s9j.js → index.es-CbOKB2xh.js} +1 -1
- package/assets/{index.es-DZDKrrOX.js → index.es-Cz73nZm3.js} +1 -1
- package/assets/{localBatchGatewayRequest-ntoba0Xt.js → localBatchGatewayRequest-DVz1EzYT.js} +1 -1
- package/assets/{mana-rate-D_DTt_S8.js → mana-rate-PT3JDtK4.js} +1 -1
- package/assets/{native-7uSYstXA.js → native-C_y7cRlS.js} +1 -1
- package/assets/network-Bdkbzo_l.js +1 -0
- package/assets/{networks-DvMCxuQT.js → networks-DVx7-Y5v.js} +1 -1
- package/assets/{onramp-D4LFsmfg.js → onramp-DWqw8mwD.js} +1 -1
- package/assets/{openzeppelin-CJAun2pO.js → openzeppelin-B2NGugOR.js} +1 -1
- package/assets/{ownerOf-DrmYf79A.js → ownerOf-BoMFaGBI.js} +1 -1
- package/assets/{parseNft-Yzo9Plhx.js → parseNft-DdgcBV60.js} +2 -2
- package/assets/{parseSignature-3yq9FfJP.js → parseSignature-BMBhmj1o.js} +3 -3
- package/assets/{parseSignature-h2iJV3NZ.js → parseSignature-Cu4M83H5.js} +1 -1
- package/assets/{pay-with-exchange-BWW2tZIp.js → pay-with-exchange-B3xXFySH.js} +1 -1
- package/assets/{qr-overlay-hYqgRnm0.js → qr-overlay-DXC6ldlf.js} +1 -1
- package/assets/{receive-BMHwXxqP.js → receive-C-M9SmxL.js} +1 -1
- package/assets/{resolveImplementation-DS1nY4sc.js → resolveImplementation-D1Bqtnhr.js} +1 -1
- package/assets/{rpc-BC6ESxMB.js → rpc-DE1f6rs1.js} +1 -1
- package/assets/{secp256k1-DNCGSF8O.js → secp256k1-B39Q-Q6x.js} +1 -1
- package/assets/{secp256k1-BQuyxdaC.js → secp256k1-CrKymG_Q.js} +1 -1
- package/assets/{secp256k1-CrZRZ9L5.js → secp256k1-D1Tuv2c6.js} +1 -1
- package/assets/{send-B62L18Hx.js → send-C1EU45CZ.js} +1 -1
- package/assets/{send-batch-transaction-De_pBpa_.js → send-batch-transaction-BTFORkZH.js} +1 -1
- package/assets/{send-eip712-transaction-D-GzcP3o.js → send-eip712-transaction-CJ_pjExq.js} +2 -2
- package/assets/{send-gasless-transaction-Iil1KVOe.js → send-gasless-transaction-CHYN-ATV.js} +2 -2
- package/assets/{sendRawTransaction-BqauPPYf.js → sendRawTransaction-YUhe5FDd.js} +3 -3
- package/assets/{serializeTransaction-B4qzULZO.js → serializeTransaction-xu35AVgP.js} +1 -1
- package/assets/{session-proposal-C4Cz1cln.js → session-proposal-BZLBnV_x.js} +1 -1
- package/assets/{session-request-De0p90UO.js → session-request-mA9oQfs4.js} +2 -2
- package/assets/{sha256-bg_KfcLv.js → sha256-De0VIEFf.js} +1 -1
- package/assets/{signing-BGpVago5.js → signing-DqVkCMNZ.js} +5 -5
- package/assets/{socials-vOukOtuh.js → socials-BImUXGbF.js} +1 -1
- package/assets/{swaps-FEWWVCcs.js → swaps-B8Tuo6Pt.js} +1 -1
- package/assets/{thirdweb-C8ToELvu.js → thirdweb-BPuxSwTj.js} +3 -3
- package/assets/{totalSupply-C5jxuFw1.js → totalSupply-Bbiy7170.js} +1 -1
- package/assets/{transactionReceipt-CbcThGoC.js → transactionReceipt-BcAWHNof.js} +1 -1
- package/assets/{transactions-CaxBviMm.js → transactions-N8K1pD5P.js} +1 -1
- package/assets/{useInfiniteGrid-BiC1UMEK.js → useInfiniteGrid-CVs5pP6I.js} +1 -1
- package/assets/{utils-nbkSUjEy.js → utils-BmX8TqzP.js} +1 -1
- package/assets/{verifyHash-JbNzrsYR.js → verifyHash-CnnSGyZz.js} +1 -1
- package/assets/{w3m-modal-BfRGsEzF.js → w3m-modal-DJII43ig.js} +1 -1
- package/assets/{w3m-modal-BUwENQ4T.js → w3m-modal-DWJdJGvu.js} +1 -1
- package/assets/{wait-for-tx-receipt-BJDKOLGI.js → wait-for-tx-receipt-D0UsY_wi.js} +1 -1
- package/assets/{wallet-kind-CuaDlRao.js → wallet-kind-C-lIAMBM.js} +1 -1
- package/assets/{wallets-BnBHCJi8.js → wallets-KGduOTOw.js} +6 -6
- package/assets/{web-connector-CJKlFm6H.js → web-connector-Ca9PblTL.js} +3 -3
- package/assets/{writeContract-CtBYiULm.js → writeContract-dj4TlIky.js} +1 -1
- package/assets/{zora-sepolia-BQEmh41Y.js → zora-sepolia-kNKNf7Kl.js} +1 -1
- package/assets/{zoraTestnet-CJMxifqR.js → zoraTestnet-BhynxBH0.js} +1 -1
- package/index.html +8 -8
- package/package.json +2 -2
- package/assets/ItemDetail-CjSWRE3L.js +0 -2
- package/assets/decimals-DnNelAv5.js +0 -1
- package/assets/eth_estimateGas-DaI_qfS7.js +0 -1
- package/assets/eth_getTransactionCount-BBYhaRkF.js +0 -1
- package/assets/get-ecosystem-wallet-info-QCLNyKk6.js +0 -1
- package/assets/network-CFFySFe9.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var ot=Object.defineProperty;var ht=(ge,Ee,Be)=>Ee in ge?ot(ge,Ee,{enumerable:!0,configurable:!0,writable:!0,value:Be}):ge[Ee]=Be;var st=(ge,Ee,Be)=>ht(ge,typeof Ee!="symbol"?Ee+"":Ee,Be);import{a as q$1,j as k$1}from"./index-
|
|
1
|
+
var ot=Object.defineProperty;var ht=(ge,Ee,Be)=>Ee in ge?ot(ge,Ee,{enumerable:!0,configurable:!0,writable:!0,value:Be}):ge[Ee]=Be;var st=(ge,Ee,Be)=>ht(ge,typeof Ee!="symbol"?Ee+"":Ee,Be);import{a as q$1,j as k$1}from"./index-CSh-BHOv.js";import{c as commonjsGlobal,g as getDefaultExportFromCjs}from"./react-Vu6nbGi5.js";import{p as process$1,e as requireDist,i as requireInherits_browser,j as requireMinimalisticAssert,k as requireBn$6,l as requireHash}from"./ethers-JeCAM1sd.js";import{r as requireSafeBuffer$1,a as requireToBuffer$2,b as requireUtil$1,c as requireBrowser$b,d as requireString_decoder,e as requireSha_js}from"./index-B_xrDWUL.js";import{r as requireEvents}from"./index-C9P6N44e.js";import{F as Buffer}from"./index-CI_HQD35.js";import"./index-CLIR3TTD.js";function commonjsRequire(ge){throw new Error('Could not dynamically require "'+ge+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var cryptoBrowserify={},browser$a={exports:{}},hasRequiredBrowser$a;function requireBrowser$a(){if(hasRequiredBrowser$a)return browser$a.exports;hasRequiredBrowser$a=1;var ge=65536,Ee=4294967295;function Be(){throw new Error(`Secure random number generation is not supported by this browser.
|
|
2
2
|
Use Chrome, Firefox or Internet Explorer 11`)}var he=requireSafeBuffer$1().Buffer,Me=commonjsGlobal.crypto||commonjsGlobal.msCrypto;Me&&Me.getRandomValues?browser$a.exports=a:browser$a.exports=Be;function a(xe,pe){if(xe>Ee)throw new RangeError("requested too many random bytes");var ve=he.allocUnsafe(xe);if(xe>0)if(xe>ge)for(var fe=0;fe<xe;fe+=ge)Me.getRandomValues(ve.slice(fe,fe+ge));else Me.getRandomValues(ve);return typeof pe=="function"?process$1.nextTick(function(){pe(null,ve)}):ve}return browser$a.exports}var toBuffer_1$1,hasRequiredToBuffer$1;function requireToBuffer$1(){if(hasRequiredToBuffer$1)return toBuffer_1$1;hasRequiredToBuffer$1=1;var ge=requireSafeBuffer$1().Buffer,Ee=requireToBuffer$2(),Be=typeof Uint8Array<"u",he=Be&&typeof ArrayBuffer<"u",Me=he&&ArrayBuffer.isView;return toBuffer_1$1=function(a,xe){if(typeof a=="string"||ge.isBuffer(a)||Be&&a instanceof Uint8Array||Me&&Me(a))return Ee(a,xe);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')},toBuffer_1$1}var readableBrowser={exports:{}},processNextickArgs={exports:{}},hasRequiredProcessNextickArgs;function requireProcessNextickArgs(){if(hasRequiredProcessNextickArgs)return processNextickArgs.exports;hasRequiredProcessNextickArgs=1,typeof process$1>"u"||!process$1.version||process$1.version.indexOf("v0.")===0||process$1.version.indexOf("v1.")===0&&process$1.version.indexOf("v1.8.")!==0?processNextickArgs.exports={nextTick:ge}:processNextickArgs.exports=process$1;function ge(Ee,Be,he,Me){if(typeof Ee!="function")throw new TypeError('"callback" argument must be a function');var a=arguments.length,xe,pe;switch(a){case 0:case 1:return process$1.nextTick(Ee);case 2:return process$1.nextTick(function(){Ee.call(null,Be)});case 3:return process$1.nextTick(function(){Ee.call(null,Be,he)});case 4:return process$1.nextTick(function(){Ee.call(null,Be,he,Me)});default:for(xe=new Array(a-1),pe=0;pe<xe.length;)xe[pe++]=arguments[pe];return process$1.nextTick(function(){Ee.apply(null,xe)})}}return processNextickArgs.exports}var isarray,hasRequiredIsarray;function requireIsarray(){if(hasRequiredIsarray)return isarray;hasRequiredIsarray=1;var ge={}.toString;return isarray=Array.isArray||function(Ee){return ge.call(Ee)=="[object Array]"},isarray}var streamBrowser$1,hasRequiredStreamBrowser$1;function requireStreamBrowser$1(){return hasRequiredStreamBrowser$1||(hasRequiredStreamBrowser$1=1,streamBrowser$1=requireEvents().EventEmitter),streamBrowser$1}var safeBuffer={exports:{}},hasRequiredSafeBuffer;function requireSafeBuffer(){return hasRequiredSafeBuffer||(hasRequiredSafeBuffer=1,(function(ge,Ee){var Be=requireDist(),he=Be.Buffer;function Me(xe,pe){for(var ve in xe)pe[ve]=xe[ve]}he.from&&he.alloc&&he.allocUnsafe&&he.allocUnsafeSlow?ge.exports=Be:(Me(Be,Ee),Ee.Buffer=a);function a(xe,pe,ve){return he(xe,pe,ve)}Me(he,a),a.from=function(xe,pe,ve){if(typeof xe=="number")throw new TypeError("Argument must not be a number");return he(xe,pe,ve)},a.alloc=function(xe,pe,ve){if(typeof xe!="number")throw new TypeError("Argument must be a number");var fe=he(xe);return pe!==void 0?typeof ve=="string"?fe.fill(pe,ve):fe.fill(pe):fe.fill(0),fe},a.allocUnsafe=function(xe){if(typeof xe!="number")throw new TypeError("Argument must be a number");return he(xe)},a.allocUnsafeSlow=function(xe){if(typeof xe!="number")throw new TypeError("Argument must be a number");return Be.SlowBuffer(xe)}})(safeBuffer,safeBuffer.exports)),safeBuffer.exports}var util={},hasRequiredUtil;function requireUtil(){if(hasRequiredUtil)return util;hasRequiredUtil=1;function ge(ye){return Array.isArray?Array.isArray(ye):be(ye)==="[object Array]"}util.isArray=ge;function Ee(ye){return typeof ye=="boolean"}util.isBoolean=Ee;function Be(ye){return ye===null}util.isNull=Be;function he(ye){return ye==null}util.isNullOrUndefined=he;function Me(ye){return typeof ye=="number"}util.isNumber=Me;function a(ye){return typeof ye=="string"}util.isString=a;function xe(ye){return typeof ye=="symbol"}util.isSymbol=xe;function pe(ye){return ye===void 0}util.isUndefined=pe;function ve(ye){return be(ye)==="[object RegExp]"}util.isRegExp=ve;function fe(ye){return typeof ye=="object"&&ye!==null}util.isObject=fe;function c(ye){return be(ye)==="[object Date]"}util.isDate=c;function ue(ye){return be(ye)==="[object Error]"||ye instanceof Error}util.isError=ue;function de(ye){return typeof ye=="function"}util.isFunction=de;function me(ye){return ye===null||typeof ye=="boolean"||typeof ye=="number"||typeof ye=="string"||typeof ye=="symbol"||typeof ye>"u"}util.isPrimitive=me,util.isBuffer=requireDist().Buffer.isBuffer;function be(ye){return Object.prototype.toString.call(ye)}return util}var BufferList={exports:{}},hasRequiredBufferList;function requireBufferList(){return hasRequiredBufferList||(hasRequiredBufferList=1,(function(ge){function Ee(a,xe){if(!(a instanceof xe))throw new TypeError("Cannot call a class as a function")}var Be=requireSafeBuffer().Buffer,he=requireUtil$1();function Me(a,xe,pe){a.copy(xe,pe)}ge.exports=(function(){function a(){Ee(this,a),this.head=null,this.tail=null,this.length=0}return a.prototype.push=function(pe){var ve={data:pe,next:null};this.length>0?this.tail.next=ve:this.head=ve,this.tail=ve,++this.length},a.prototype.unshift=function(pe){var ve={data:pe,next:this.head};this.length===0&&(this.tail=ve),this.head=ve,++this.length},a.prototype.shift=function(){if(this.length!==0){var pe=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,pe}},a.prototype.clear=function(){this.head=this.tail=null,this.length=0},a.prototype.join=function(pe){if(this.length===0)return"";for(var ve=this.head,fe=""+ve.data;ve=ve.next;)fe+=pe+ve.data;return fe},a.prototype.concat=function(pe){if(this.length===0)return Be.alloc(0);for(var ve=Be.allocUnsafe(pe>>>0),fe=this.head,c=0;fe;)Me(fe.data,ve,c),c+=fe.data.length,fe=fe.next;return ve},a})(),he&&he.inspect&&he.inspect.custom&&(ge.exports.prototype[he.inspect.custom]=function(){var a=he.inspect({length:this.length});return this.constructor.name+" "+a})})(BufferList)),BufferList.exports}var destroy_1$1,hasRequiredDestroy$1;function requireDestroy$1(){if(hasRequiredDestroy$1)return destroy_1$1;hasRequiredDestroy$1=1;var ge=requireProcessNextickArgs();function Ee(Me,a){var xe=this,pe=this._readableState&&this._readableState.destroyed,ve=this._writableState&&this._writableState.destroyed;return pe||ve?(a?a(Me):Me&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ge.nextTick(he,this,Me)):ge.nextTick(he,this,Me)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(Me||null,function(fe){!a&&fe?xe._writableState?xe._writableState.errorEmitted||(xe._writableState.errorEmitted=!0,ge.nextTick(he,xe,fe)):ge.nextTick(he,xe,fe):a&&a(fe)}),this)}function Be(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function he(Me,a){Me.emit("error",a)}return destroy_1$1={destroy:Ee,undestroy:Be},destroy_1$1}var _stream_writable$1,hasRequired_stream_writable$1;function require_stream_writable$1(){if(hasRequired_stream_writable$1)return _stream_writable$1;hasRequired_stream_writable$1=1;var ge=requireProcessNextickArgs();_stream_writable$1=ye;function Ee(m){var se=this;this.next=null,this.entry=null,this.finish=function(){d(se,m)}}var Be=!process$1.browser&&["v0.10","v0.9."].indexOf(process$1.version.slice(0,5))>-1?setImmediate:ge.nextTick,he;ye.WritableState=me;var Me=Object.create(requireUtil());Me.inherits=requireInherits_browser();var a={deprecate:requireBrowser$b()},xe=requireStreamBrowser$1(),pe=requireSafeBuffer().Buffer,ve=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function fe(m){return pe.from(m)}function c(m){return pe.isBuffer(m)||m instanceof ve}var ue=requireDestroy$1();Me.inherits(ye,xe);function de(){}function me(m,se){he=he||require_stream_duplex$1(),m=m||{};var s=se instanceof he;this.objectMode=!!m.objectMode,s&&(this.objectMode=this.objectMode||!!m.writableObjectMode);var r=m.highWaterMark,o=m.writableHighWaterMark,Ce=this.objectMode?16:16*1024;r||r===0?this.highWaterMark=r:s&&(o||o===0)?this.highWaterMark=o:this.highWaterMark=Ce,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var De=m.decodeStrings===!1;this.decodeStrings=!De,this.defaultEncoding=m.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ke){We(se,ke)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Ee(this)}me.prototype.getBuffer=function(){for(var se=this.bufferedRequest,s=[];se;)s.push(se),se=se.next;return s},(function(){try{Object.defineProperty(me.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var be;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(be=Function.prototype[Symbol.hasInstance],Object.defineProperty(ye,Symbol.hasInstance,{value:function(m){return be.call(this,m)?!0:this!==ye?!1:m&&m._writableState instanceof me}})):be=function(m){return m instanceof this};function ye(m){if(he=he||require_stream_duplex$1(),!be.call(ye,this)&&!(this instanceof he))return new ye(m);this._writableState=new me(m,this),this.writable=!0,m&&(typeof m.write=="function"&&(this._write=m.write),typeof m.writev=="function"&&(this._writev=m.writev),typeof m.destroy=="function"&&(this._destroy=m.destroy),typeof m.final=="function"&&(this._final=m.final)),xe.call(this)}ye.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function _e(m,se){var s=new Error("write after end");m.emit("error",s),ge.nextTick(se,s)}function Ae(m,se,s,r){var o=!0,Ce=!1;return s===null?Ce=new TypeError("May not write null values to stream"):typeof s!="string"&&s!==void 0&&!se.objectMode&&(Ce=new TypeError("Invalid non-string/buffer chunk")),Ce&&(m.emit("error",Ce),ge.nextTick(r,Ce),o=!1),o}ye.prototype.write=function(m,se,s){var r=this._writableState,o=!1,Ce=!r.objectMode&&c(m);return Ce&&!pe.isBuffer(m)&&(m=fe(m)),typeof se=="function"&&(s=se,se=null),Ce?se="buffer":se||(se=r.defaultEncoding),typeof s!="function"&&(s=de),r.ended?_e(this,s):(Ce||Ae(this,r,m,s))&&(r.pendingcb++,o=Re(this,r,Ce,m,se,s)),o},ye.prototype.cork=function(){var m=this._writableState;m.corked++},ye.prototype.uncork=function(){var m=this._writableState;m.corked&&(m.corked--,!m.writing&&!m.corked&&!m.bufferProcessing&&m.bufferedRequest&&Ke(this,m))},ye.prototype.setDefaultEncoding=function(se){if(typeof se=="string"&&(se=se.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((se+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+se);return this._writableState.defaultEncoding=se,this};function we(m,se,s){return!m.objectMode&&m.decodeStrings!==!1&&typeof se=="string"&&(se=pe.from(se,s)),se}Object.defineProperty(ye.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Re(m,se,s,r,o,Ce){if(!s){var De=we(se,r,o);r!==De&&(s=!0,o="buffer",r=De)}var ke=se.objectMode?1:r.length;se.length+=ke;var Ue=se.length<se.highWaterMark;if(Ue||(se.needDrain=!0),se.writing||se.corked){var Pe=se.lastBufferedRequest;se.lastBufferedRequest={chunk:r,encoding:o,isBuf:s,callback:Ce,next:null},Pe?Pe.next=se.lastBufferedRequest:se.bufferedRequest=se.lastBufferedRequest,se.bufferedRequestCount+=1}else Se(m,se,!1,ke,r,o,Ce);return Ue}function Se(m,se,s,r,o,Ce,De){se.writelen=r,se.writecb=De,se.writing=!0,se.sync=!0,s?m._writev(o,se.onwrite):m._write(o,Ce,se.onwrite),se.sync=!1}function $e(m,se,s,r,o){--se.pendingcb,s?(ge.nextTick(o,r),ge.nextTick(i,m,se),m._writableState.errorEmitted=!0,m.emit("error",r)):(o(r),m._writableState.errorEmitted=!0,m.emit("error",r),i(m,se))}function Te(m){m.writing=!1,m.writecb=null,m.length-=m.writelen,m.writelen=0}function We(m,se){var s=m._writableState,r=s.sync,o=s.writecb;if(Te(s),se)$e(m,s,r,se,o);else{var Ce=l(s);!Ce&&!s.corked&&!s.bufferProcessing&&s.bufferedRequest&&Ke(m,s),r?Be(Ze,m,s,Ce,o):Ze(m,s,Ce,o)}}function Ze(m,se,s,r){s||Ne(m,se),se.pendingcb--,r(),i(m,se)}function Ne(m,se){se.length===0&&se.needDrain&&(se.needDrain=!1,m.emit("drain"))}function Ke(m,se){se.bufferProcessing=!0;var s=se.bufferedRequest;if(m._writev&&s&&s.next){var r=se.bufferedRequestCount,o=new Array(r),Ce=se.corkedRequestsFree;Ce.entry=s;for(var De=0,ke=!0;s;)o[De]=s,s.isBuf||(ke=!1),s=s.next,De+=1;o.allBuffers=ke,Se(m,se,!0,se.length,o,"",Ce.finish),se.pendingcb++,se.lastBufferedRequest=null,Ce.next?(se.corkedRequestsFree=Ce.next,Ce.next=null):se.corkedRequestsFree=new Ee(se),se.bufferedRequestCount=0}else{for(;s;){var Ue=s.chunk,Pe=s.encoding,qe=s.callback,Ie=se.objectMode?1:Ue.length;if(Se(m,se,!1,Ie,Ue,Pe,qe),s=s.next,se.bufferedRequestCount--,se.writing)break}s===null&&(se.lastBufferedRequest=null)}se.bufferedRequest=s,se.bufferProcessing=!1}ye.prototype._write=function(m,se,s){s(new Error("_write() is not implemented"))},ye.prototype._writev=null,ye.prototype.end=function(m,se,s){var r=this._writableState;typeof m=="function"?(s=m,m=null,se=null):typeof se=="function"&&(s=se,se=null),m!=null&&this.write(m,se),r.corked&&(r.corked=1,this.uncork()),r.ending||n(this,r,s)};function l(m){return m.ending&&m.length===0&&m.bufferedRequest===null&&!m.finished&&!m.writing}function e(m,se){m._final(function(s){se.pendingcb--,s&&m.emit("error",s),se.prefinished=!0,m.emit("prefinish"),i(m,se)})}function t(m,se){!se.prefinished&&!se.finalCalled&&(typeof m._final=="function"?(se.pendingcb++,se.finalCalled=!0,ge.nextTick(e,m,se)):(se.prefinished=!0,m.emit("prefinish")))}function i(m,se){var s=l(se);return s&&(t(m,se),se.pendingcb===0&&(se.finished=!0,m.emit("finish"))),s}function n(m,se,s){se.ending=!0,i(m,se),s&&(se.finished?ge.nextTick(s):m.once("finish",s)),se.ended=!0,m.writable=!1}function d(m,se,s){var r=m.entry;for(m.entry=null;r;){var o=r.callback;se.pendingcb--,o(s),r=r.next}se.corkedRequestsFree.next=m}return Object.defineProperty(ye.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(m){this._writableState&&(this._writableState.destroyed=m)}}),ye.prototype.destroy=ue.destroy,ye.prototype._undestroy=ue.undestroy,ye.prototype._destroy=function(m,se){this.end(),se(m)},_stream_writable$1}var _stream_duplex$1,hasRequired_stream_duplex$1;function require_stream_duplex$1(){if(hasRequired_stream_duplex$1)return _stream_duplex$1;hasRequired_stream_duplex$1=1;var ge=requireProcessNextickArgs(),Ee=Object.keys||function(ue){var de=[];for(var me in ue)de.push(me);return de};_stream_duplex$1=ve;var Be=Object.create(requireUtil());Be.inherits=requireInherits_browser();var he=require_stream_readable$1(),Me=require_stream_writable$1();Be.inherits(ve,he);for(var a=Ee(Me.prototype),xe=0;xe<a.length;xe++){var pe=a[xe];ve.prototype[pe]||(ve.prototype[pe]=Me.prototype[pe])}function ve(ue){if(!(this instanceof ve))return new ve(ue);he.call(this,ue),Me.call(this,ue),ue&&ue.readable===!1&&(this.readable=!1),ue&&ue.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,ue&&ue.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",fe)}Object.defineProperty(ve.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function fe(){this.allowHalfOpen||this._writableState.ended||ge.nextTick(c,this)}function c(ue){ue.end()}return Object.defineProperty(ve.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(ue){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=ue,this._writableState.destroyed=ue)}}),ve.prototype._destroy=function(ue,de){this.push(null),this.end(),ge.nextTick(de,ue)},_stream_duplex$1}var _stream_readable$1,hasRequired_stream_readable$1;function require_stream_readable$1(){if(hasRequired_stream_readable$1)return _stream_readable$1;hasRequired_stream_readable$1=1;var ge=requireProcessNextickArgs();_stream_readable$1=we;var Ee=requireIsarray(),Be;we.ReadableState=Ae,requireEvents().EventEmitter;var he=function(qe,Ie){return qe.listeners(Ie).length},Me=requireStreamBrowser$1(),a=requireSafeBuffer().Buffer,xe=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function pe(qe){return a.from(qe)}function ve(qe){return a.isBuffer(qe)||qe instanceof xe}var fe=Object.create(requireUtil());fe.inherits=requireInherits_browser();var c=requireUtil$1(),ue=void 0;c&&c.debuglog?ue=c.debuglog("stream"):ue=function(){};var de=requireBufferList(),me=requireDestroy$1(),be;fe.inherits(we,Me);var ye=["error","close","destroy","pause","resume"];function _e(qe,Ie,Oe){if(typeof qe.prependListener=="function")return qe.prependListener(Ie,Oe);!qe._events||!qe._events[Ie]?qe.on(Ie,Oe):Ee(qe._events[Ie])?qe._events[Ie].unshift(Oe):qe._events[Ie]=[Oe,qe._events[Ie]]}function Ae(qe,Ie){Be=Be||require_stream_duplex$1(),qe=qe||{};var Oe=Ie instanceof Be;this.objectMode=!!qe.objectMode,Oe&&(this.objectMode=this.objectMode||!!qe.readableObjectMode);var ze=qe.highWaterMark,Le=qe.readableHighWaterMark,Fe=this.objectMode?16:16*1024;ze||ze===0?this.highWaterMark=ze:Oe&&(Le||Le===0)?this.highWaterMark=Le:this.highWaterMark=Fe,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new de,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=qe.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,qe.encoding&&(be||(be=requireString_decoder().StringDecoder),this.decoder=new be(qe.encoding),this.encoding=qe.encoding)}function we(qe){if(Be=Be||require_stream_duplex$1(),!(this instanceof we))return new we(qe);this._readableState=new Ae(qe,this),this.readable=!0,qe&&(typeof qe.read=="function"&&(this._read=qe.read),typeof qe.destroy=="function"&&(this._destroy=qe.destroy)),Me.call(this)}Object.defineProperty(we.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(qe){this._readableState&&(this._readableState.destroyed=qe)}}),we.prototype.destroy=me.destroy,we.prototype._undestroy=me.undestroy,we.prototype._destroy=function(qe,Ie){this.push(null),Ie(qe)},we.prototype.push=function(qe,Ie){var Oe=this._readableState,ze;return Oe.objectMode?ze=!0:typeof qe=="string"&&(Ie=Ie||Oe.defaultEncoding,Ie!==Oe.encoding&&(qe=a.from(qe,Ie),Ie=""),ze=!0),Re(this,qe,Ie,!1,ze)},we.prototype.unshift=function(qe){return Re(this,qe,null,!0,!1)};function Re(qe,Ie,Oe,ze,Le){var Fe=qe._readableState;if(Ie===null)Fe.reading=!1,Ke(qe,Fe);else{var He;Le||(He=$e(Fe,Ie)),He?qe.emit("error",He):Fe.objectMode||Ie&&Ie.length>0?(typeof Ie!="string"&&!Fe.objectMode&&Object.getPrototypeOf(Ie)!==a.prototype&&(Ie=pe(Ie)),ze?Fe.endEmitted?qe.emit("error",new Error("stream.unshift() after end event")):Se(qe,Fe,Ie,!0):Fe.ended?qe.emit("error",new Error("stream.push() after EOF")):(Fe.reading=!1,Fe.decoder&&!Oe?(Ie=Fe.decoder.write(Ie),Fe.objectMode||Ie.length!==0?Se(qe,Fe,Ie,!1):t(qe,Fe)):Se(qe,Fe,Ie,!1))):ze||(Fe.reading=!1)}return Te(Fe)}function Se(qe,Ie,Oe,ze){Ie.flowing&&Ie.length===0&&!Ie.sync?(qe.emit("data",Oe),qe.read(0)):(Ie.length+=Ie.objectMode?1:Oe.length,ze?Ie.buffer.unshift(Oe):Ie.buffer.push(Oe),Ie.needReadable&&l(qe)),t(qe,Ie)}function $e(qe,Ie){var Oe;return!ve(Ie)&&typeof Ie!="string"&&Ie!==void 0&&!qe.objectMode&&(Oe=new TypeError("Invalid non-string/buffer chunk")),Oe}function Te(qe){return!qe.ended&&(qe.needReadable||qe.length<qe.highWaterMark||qe.length===0)}we.prototype.isPaused=function(){return this._readableState.flowing===!1},we.prototype.setEncoding=function(qe){return be||(be=requireString_decoder().StringDecoder),this._readableState.decoder=new be(qe),this._readableState.encoding=qe,this};var We=8388608;function Ze(qe){return qe>=We?qe=We:(qe--,qe|=qe>>>1,qe|=qe>>>2,qe|=qe>>>4,qe|=qe>>>8,qe|=qe>>>16,qe++),qe}function Ne(qe,Ie){return qe<=0||Ie.length===0&&Ie.ended?0:Ie.objectMode?1:qe!==qe?Ie.flowing&&Ie.length?Ie.buffer.head.data.length:Ie.length:(qe>Ie.highWaterMark&&(Ie.highWaterMark=Ze(qe)),qe<=Ie.length?qe:Ie.ended?Ie.length:(Ie.needReadable=!0,0))}we.prototype.read=function(qe){ue("read",qe),qe=parseInt(qe,10);var Ie=this._readableState,Oe=qe;if(qe!==0&&(Ie.emittedReadable=!1),qe===0&&Ie.needReadable&&(Ie.length>=Ie.highWaterMark||Ie.ended))return ue("read: emitReadable",Ie.length,Ie.ended),Ie.length===0&&Ie.ended?ke(this):l(this),null;if(qe=Ne(qe,Ie),qe===0&&Ie.ended)return Ie.length===0&&ke(this),null;var ze=Ie.needReadable;ue("need readable",ze),(Ie.length===0||Ie.length-qe<Ie.highWaterMark)&&(ze=!0,ue("length less than watermark",ze)),Ie.ended||Ie.reading?(ze=!1,ue("reading or ended",ze)):ze&&(ue("do read"),Ie.reading=!0,Ie.sync=!0,Ie.length===0&&(Ie.needReadable=!0),this._read(Ie.highWaterMark),Ie.sync=!1,Ie.reading||(qe=Ne(Oe,Ie)));var Le;return qe>0?Le=r(qe,Ie):Le=null,Le===null?(Ie.needReadable=!0,qe=0):Ie.length-=qe,Ie.length===0&&(Ie.ended||(Ie.needReadable=!0),Oe!==qe&&Ie.ended&&ke(this)),Le!==null&&this.emit("data",Le),Le};function Ke(qe,Ie){if(!Ie.ended){if(Ie.decoder){var Oe=Ie.decoder.end();Oe&&Oe.length&&(Ie.buffer.push(Oe),Ie.length+=Ie.objectMode?1:Oe.length)}Ie.ended=!0,l(qe)}}function l(qe){var Ie=qe._readableState;Ie.needReadable=!1,Ie.emittedReadable||(ue("emitReadable",Ie.flowing),Ie.emittedReadable=!0,Ie.sync?ge.nextTick(e,qe):e(qe))}function e(qe){ue("emit readable"),qe.emit("readable"),s(qe)}function t(qe,Ie){Ie.readingMore||(Ie.readingMore=!0,ge.nextTick(i,qe,Ie))}function i(qe,Ie){for(var Oe=Ie.length;!Ie.reading&&!Ie.flowing&&!Ie.ended&&Ie.length<Ie.highWaterMark&&(ue("maybeReadMore read 0"),qe.read(0),Oe!==Ie.length);)Oe=Ie.length;Ie.readingMore=!1}we.prototype._read=function(qe){this.emit("error",new Error("_read() is not implemented"))},we.prototype.pipe=function(qe,Ie){var Oe=this,ze=this._readableState;switch(ze.pipesCount){case 0:ze.pipes=qe;break;case 1:ze.pipes=[ze.pipes,qe];break;default:ze.pipes.push(qe);break}ze.pipesCount+=1,ue("pipe count=%d opts=%j",ze.pipesCount,Ie);var Le=(!Ie||Ie.end!==!1)&&qe!==process$1.stdout&&qe!==process$1.stderr,Fe=Le?Ar:Sr;ze.endEmitted?ge.nextTick(Fe):Oe.once("end",Fe),qe.on("unpipe",He);function He(Je,er){ue("onunpipe"),Je===Oe&&er&&er.hasUnpiped===!1&&(er.hasUnpiped=!0,qr())}function Ar(){ue("onend"),qe.end()}var Ge=n(Oe);qe.on("drain",Ge);var je=!1;function qr(){ue("cleanup"),qe.removeListener("close",Xe),qe.removeListener("finish",Ve),qe.removeListener("drain",Ge),qe.removeListener("error",Rr),qe.removeListener("unpipe",He),Oe.removeListener("end",Ar),Oe.removeListener("end",Sr),Oe.removeListener("data",tr),je=!0,ze.awaitDrain&&(!qe._writableState||qe._writableState.needDrain)&&Ge()}var Ye=!1;Oe.on("data",tr);function tr(Je){ue("ondata"),Ye=!1;var er=qe.write(Je);er===!1&&!Ye&&((ze.pipesCount===1&&ze.pipes===qe||ze.pipesCount>1&&Pe(ze.pipes,qe)!==-1)&&!je&&(ue("false write response, pause",ze.awaitDrain),ze.awaitDrain++,Ye=!0),Oe.pause())}function Rr(Je){ue("onerror",Je),Sr(),qe.removeListener("error",Rr),he(qe,"error")===0&&qe.emit("error",Je)}_e(qe,"error",Rr);function Xe(){qe.removeListener("finish",Ve),Sr()}qe.once("close",Xe);function Ve(){ue("onfinish"),qe.removeListener("close",Xe),Sr()}qe.once("finish",Ve);function Sr(){ue("unpipe"),Oe.unpipe(qe)}return qe.emit("pipe",Oe),ze.flowing||(ue("pipe resume"),Oe.resume()),qe};function n(qe){return function(){var Ie=qe._readableState;ue("pipeOnDrain",Ie.awaitDrain),Ie.awaitDrain&&Ie.awaitDrain--,Ie.awaitDrain===0&&he(qe,"data")&&(Ie.flowing=!0,s(qe))}}we.prototype.unpipe=function(qe){var Ie=this._readableState,Oe={hasUnpiped:!1};if(Ie.pipesCount===0)return this;if(Ie.pipesCount===1)return qe&&qe!==Ie.pipes?this:(qe||(qe=Ie.pipes),Ie.pipes=null,Ie.pipesCount=0,Ie.flowing=!1,qe&&qe.emit("unpipe",this,Oe),this);if(!qe){var ze=Ie.pipes,Le=Ie.pipesCount;Ie.pipes=null,Ie.pipesCount=0,Ie.flowing=!1;for(var Fe=0;Fe<Le;Fe++)ze[Fe].emit("unpipe",this,{hasUnpiped:!1});return this}var He=Pe(Ie.pipes,qe);return He===-1?this:(Ie.pipes.splice(He,1),Ie.pipesCount-=1,Ie.pipesCount===1&&(Ie.pipes=Ie.pipes[0]),qe.emit("unpipe",this,Oe),this)},we.prototype.on=function(qe,Ie){var Oe=Me.prototype.on.call(this,qe,Ie);if(qe==="data")this._readableState.flowing!==!1&&this.resume();else if(qe==="readable"){var ze=this._readableState;!ze.endEmitted&&!ze.readableListening&&(ze.readableListening=ze.needReadable=!0,ze.emittedReadable=!1,ze.reading?ze.length&&l(this):ge.nextTick(d,this))}return Oe},we.prototype.addListener=we.prototype.on;function d(qe){ue("readable nexttick read 0"),qe.read(0)}we.prototype.resume=function(){var qe=this._readableState;return qe.flowing||(ue("resume"),qe.flowing=!0,m(this,qe)),this};function m(qe,Ie){Ie.resumeScheduled||(Ie.resumeScheduled=!0,ge.nextTick(se,qe,Ie))}function se(qe,Ie){Ie.reading||(ue("resume read 0"),qe.read(0)),Ie.resumeScheduled=!1,Ie.awaitDrain=0,qe.emit("resume"),s(qe),Ie.flowing&&!Ie.reading&&qe.read(0)}we.prototype.pause=function(){return ue("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ue("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function s(qe){var Ie=qe._readableState;for(ue("flow",Ie.flowing);Ie.flowing&&qe.read()!==null;);}we.prototype.wrap=function(qe){var Ie=this,Oe=this._readableState,ze=!1;qe.on("end",function(){if(ue("wrapped end"),Oe.decoder&&!Oe.ended){var He=Oe.decoder.end();He&&He.length&&Ie.push(He)}Ie.push(null)}),qe.on("data",function(He){if(ue("wrapped data"),Oe.decoder&&(He=Oe.decoder.write(He)),!(Oe.objectMode&&He==null)&&!(!Oe.objectMode&&(!He||!He.length))){var Ar=Ie.push(He);Ar||(ze=!0,qe.pause())}});for(var Le in qe)this[Le]===void 0&&typeof qe[Le]=="function"&&(this[Le]=(function(He){return function(){return qe[He].apply(qe,arguments)}})(Le));for(var Fe=0;Fe<ye.length;Fe++)qe.on(ye[Fe],this.emit.bind(this,ye[Fe]));return this._read=function(He){ue("wrapped _read",He),ze&&(ze=!1,qe.resume())},this},Object.defineProperty(we.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),we._fromList=r;function r(qe,Ie){if(Ie.length===0)return null;var Oe;return Ie.objectMode?Oe=Ie.buffer.shift():!qe||qe>=Ie.length?(Ie.decoder?Oe=Ie.buffer.join(""):Ie.buffer.length===1?Oe=Ie.buffer.head.data:Oe=Ie.buffer.concat(Ie.length),Ie.buffer.clear()):Oe=o(qe,Ie.buffer,Ie.decoder),Oe}function o(qe,Ie,Oe){var ze;return qe<Ie.head.data.length?(ze=Ie.head.data.slice(0,qe),Ie.head.data=Ie.head.data.slice(qe)):qe===Ie.head.data.length?ze=Ie.shift():ze=Oe?Ce(qe,Ie):De(qe,Ie),ze}function Ce(qe,Ie){var Oe=Ie.head,ze=1,Le=Oe.data;for(qe-=Le.length;Oe=Oe.next;){var Fe=Oe.data,He=qe>Fe.length?Fe.length:qe;if(He===Fe.length?Le+=Fe:Le+=Fe.slice(0,qe),qe-=He,qe===0){He===Fe.length?(++ze,Oe.next?Ie.head=Oe.next:Ie.head=Ie.tail=null):(Ie.head=Oe,Oe.data=Fe.slice(He));break}++ze}return Ie.length-=ze,Le}function De(qe,Ie){var Oe=a.allocUnsafe(qe),ze=Ie.head,Le=1;for(ze.data.copy(Oe),qe-=ze.data.length;ze=ze.next;){var Fe=ze.data,He=qe>Fe.length?Fe.length:qe;if(Fe.copy(Oe,Oe.length-qe,0,He),qe-=He,qe===0){He===Fe.length?(++Le,ze.next?Ie.head=ze.next:Ie.head=Ie.tail=null):(Ie.head=ze,ze.data=Fe.slice(He));break}++Le}return Ie.length-=Le,Oe}function ke(qe){var Ie=qe._readableState;if(Ie.length>0)throw new Error('"endReadable()" called on non-empty stream');Ie.endEmitted||(Ie.ended=!0,ge.nextTick(Ue,Ie,qe))}function Ue(qe,Ie){!qe.endEmitted&&qe.length===0&&(qe.endEmitted=!0,Ie.readable=!1,Ie.emit("end"))}function Pe(qe,Ie){for(var Oe=0,ze=qe.length;Oe<ze;Oe++)if(qe[Oe]===Ie)return Oe;return-1}return _stream_readable$1}var _stream_transform$1,hasRequired_stream_transform$1;function require_stream_transform$1(){if(hasRequired_stream_transform$1)return _stream_transform$1;hasRequired_stream_transform$1=1,_stream_transform$1=he;var ge=require_stream_duplex$1(),Ee=Object.create(requireUtil());Ee.inherits=requireInherits_browser(),Ee.inherits(he,ge);function Be(xe,pe){var ve=this._transformState;ve.transforming=!1;var fe=ve.writecb;if(!fe)return this.emit("error",new Error("write callback called multiple times"));ve.writechunk=null,ve.writecb=null,pe!=null&&this.push(pe),fe(xe);var c=this._readableState;c.reading=!1,(c.needReadable||c.length<c.highWaterMark)&&this._read(c.highWaterMark)}function he(xe){if(!(this instanceof he))return new he(xe);ge.call(this,xe),this._transformState={afterTransform:Be.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,xe&&(typeof xe.transform=="function"&&(this._transform=xe.transform),typeof xe.flush=="function"&&(this._flush=xe.flush)),this.on("prefinish",Me)}function Me(){var xe=this;typeof this._flush=="function"?this._flush(function(pe,ve){a(xe,pe,ve)}):a(this,null,null)}he.prototype.push=function(xe,pe){return this._transformState.needTransform=!1,ge.prototype.push.call(this,xe,pe)},he.prototype._transform=function(xe,pe,ve){throw new Error("_transform() is not implemented")},he.prototype._write=function(xe,pe,ve){var fe=this._transformState;if(fe.writecb=ve,fe.writechunk=xe,fe.writeencoding=pe,!fe.transforming){var c=this._readableState;(fe.needTransform||c.needReadable||c.length<c.highWaterMark)&&this._read(c.highWaterMark)}},he.prototype._read=function(xe){var pe=this._transformState;pe.writechunk!==null&&pe.writecb&&!pe.transforming?(pe.transforming=!0,this._transform(pe.writechunk,pe.writeencoding,pe.afterTransform)):pe.needTransform=!0},he.prototype._destroy=function(xe,pe){var ve=this;ge.prototype._destroy.call(this,xe,function(fe){pe(fe),ve.emit("close")})};function a(xe,pe,ve){if(pe)return xe.emit("error",pe);if(ve!=null&&xe.push(ve),xe._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(xe._transformState.transforming)throw new Error("Calling transform done when still transforming");return xe.push(null)}return _stream_transform$1}var _stream_passthrough$1,hasRequired_stream_passthrough$1;function require_stream_passthrough$1(){if(hasRequired_stream_passthrough$1)return _stream_passthrough$1;hasRequired_stream_passthrough$1=1,_stream_passthrough$1=Be;var ge=require_stream_transform$1(),Ee=Object.create(requireUtil());Ee.inherits=requireInherits_browser(),Ee.inherits(Be,ge);function Be(he){if(!(this instanceof Be))return new Be(he);ge.call(this,he)}return Be.prototype._transform=function(he,Me,a){a(null,he)},_stream_passthrough$1}var hasRequiredReadableBrowser;function requireReadableBrowser(){return hasRequiredReadableBrowser||(hasRequiredReadableBrowser=1,(function(ge,Ee){Ee=ge.exports=require_stream_readable$1(),Ee.Stream=Ee,Ee.Readable=Ee,Ee.Writable=require_stream_writable$1(),Ee.Duplex=require_stream_duplex$1(),Ee.Transform=require_stream_transform$1(),Ee.PassThrough=require_stream_passthrough$1()})(readableBrowser,readableBrowser.exports)),readableBrowser.exports}var hashBase,hasRequiredHashBase;function requireHashBase(){if(hasRequiredHashBase)return hashBase;hasRequiredHashBase=1;var ge=requireSafeBuffer$1().Buffer,Ee=requireToBuffer$1(),Be=requireReadableBrowser().Transform,he=requireInherits_browser();function Me(a){Be.call(this),this._block=ge.allocUnsafe(a),this._blockSize=a,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}return he(Me,Be),Me.prototype._transform=function(a,xe,pe){var ve=null;try{this.update(a,xe)}catch(fe){ve=fe}pe(ve)},Me.prototype._flush=function(a){var xe=null;try{this.push(this.digest())}catch(pe){xe=pe}a(xe)},Me.prototype.update=function(a,xe){if(this._finalized)throw new Error("Digest already called");for(var pe=Ee(a,xe),ve=this._block,fe=0;this._blockOffset+pe.length-fe>=this._blockSize;){for(var c=this._blockOffset;c<this._blockSize;)ve[c]=pe[fe],c+=1,fe+=1;this._update(),this._blockOffset=0}for(;fe<pe.length;)ve[this._blockOffset]=pe[fe],this._blockOffset+=1,fe+=1;for(var ue=0,de=pe.length*8;de>0;++ue)this._length[ue]+=de,de=this._length[ue]/4294967296|0,de>0&&(this._length[ue]-=4294967296*de);return this},Me.prototype._update=function(){throw new Error("_update is not implemented")},Me.prototype.digest=function(a){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var xe=this._digest();a!==void 0&&(xe=xe.toString(a)),this._block.fill(0),this._blockOffset=0;for(var pe=0;pe<4;++pe)this._length[pe]=0;return xe},Me.prototype._digest=function(){throw new Error("_digest is not implemented")},hashBase=Me,hashBase}var md5_js,hasRequiredMd5_js;function requireMd5_js(){if(hasRequiredMd5_js)return md5_js;hasRequiredMd5_js=1;var ge=requireInherits_browser(),Ee=requireHashBase(),Be=requireSafeBuffer$1().Buffer,he=new Array(16);function Me(){Ee.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}ge(Me,Ee),Me.prototype._update=function(){for(var c=he,ue=0;ue<16;++ue)c[ue]=this._block.readInt32LE(ue*4);var de=this._a,me=this._b,be=this._c,ye=this._d;de=xe(de,me,be,ye,c[0],3614090360,7),ye=xe(ye,de,me,be,c[1],3905402710,12),be=xe(be,ye,de,me,c[2],606105819,17),me=xe(me,be,ye,de,c[3],3250441966,22),de=xe(de,me,be,ye,c[4],4118548399,7),ye=xe(ye,de,me,be,c[5],1200080426,12),be=xe(be,ye,de,me,c[6],2821735955,17),me=xe(me,be,ye,de,c[7],4249261313,22),de=xe(de,me,be,ye,c[8],1770035416,7),ye=xe(ye,de,me,be,c[9],2336552879,12),be=xe(be,ye,de,me,c[10],4294925233,17),me=xe(me,be,ye,de,c[11],2304563134,22),de=xe(de,me,be,ye,c[12],1804603682,7),ye=xe(ye,de,me,be,c[13],4254626195,12),be=xe(be,ye,de,me,c[14],2792965006,17),me=xe(me,be,ye,de,c[15],1236535329,22),de=pe(de,me,be,ye,c[1],4129170786,5),ye=pe(ye,de,me,be,c[6],3225465664,9),be=pe(be,ye,de,me,c[11],643717713,14),me=pe(me,be,ye,de,c[0],3921069994,20),de=pe(de,me,be,ye,c[5],3593408605,5),ye=pe(ye,de,me,be,c[10],38016083,9),be=pe(be,ye,de,me,c[15],3634488961,14),me=pe(me,be,ye,de,c[4],3889429448,20),de=pe(de,me,be,ye,c[9],568446438,5),ye=pe(ye,de,me,be,c[14],3275163606,9),be=pe(be,ye,de,me,c[3],4107603335,14),me=pe(me,be,ye,de,c[8],1163531501,20),de=pe(de,me,be,ye,c[13],2850285829,5),ye=pe(ye,de,me,be,c[2],4243563512,9),be=pe(be,ye,de,me,c[7],1735328473,14),me=pe(me,be,ye,de,c[12],2368359562,20),de=ve(de,me,be,ye,c[5],4294588738,4),ye=ve(ye,de,me,be,c[8],2272392833,11),be=ve(be,ye,de,me,c[11],1839030562,16),me=ve(me,be,ye,de,c[14],4259657740,23),de=ve(de,me,be,ye,c[1],2763975236,4),ye=ve(ye,de,me,be,c[4],1272893353,11),be=ve(be,ye,de,me,c[7],4139469664,16),me=ve(me,be,ye,de,c[10],3200236656,23),de=ve(de,me,be,ye,c[13],681279174,4),ye=ve(ye,de,me,be,c[0],3936430074,11),be=ve(be,ye,de,me,c[3],3572445317,16),me=ve(me,be,ye,de,c[6],76029189,23),de=ve(de,me,be,ye,c[9],3654602809,4),ye=ve(ye,de,me,be,c[12],3873151461,11),be=ve(be,ye,de,me,c[15],530742520,16),me=ve(me,be,ye,de,c[2],3299628645,23),de=fe(de,me,be,ye,c[0],4096336452,6),ye=fe(ye,de,me,be,c[7],1126891415,10),be=fe(be,ye,de,me,c[14],2878612391,15),me=fe(me,be,ye,de,c[5],4237533241,21),de=fe(de,me,be,ye,c[12],1700485571,6),ye=fe(ye,de,me,be,c[3],2399980690,10),be=fe(be,ye,de,me,c[10],4293915773,15),me=fe(me,be,ye,de,c[1],2240044497,21),de=fe(de,me,be,ye,c[8],1873313359,6),ye=fe(ye,de,me,be,c[15],4264355552,10),be=fe(be,ye,de,me,c[6],2734768916,15),me=fe(me,be,ye,de,c[13],1309151649,21),de=fe(de,me,be,ye,c[4],4149444226,6),ye=fe(ye,de,me,be,c[11],3174756917,10),be=fe(be,ye,de,me,c[2],718787259,15),me=fe(me,be,ye,de,c[9],3951481745,21),this._a=this._a+de|0,this._b=this._b+me|0,this._c=this._c+be|0,this._d=this._d+ye|0},Me.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var c=Be.allocUnsafe(16);return c.writeInt32LE(this._a,0),c.writeInt32LE(this._b,4),c.writeInt32LE(this._c,8),c.writeInt32LE(this._d,12),c};function a(c,ue){return c<<ue|c>>>32-ue}function xe(c,ue,de,me,be,ye,_e){return a(c+(ue&de|~ue&me)+be+ye|0,_e)+ue|0}function pe(c,ue,de,me,be,ye,_e){return a(c+(ue&me|de&~me)+be+ye|0,_e)+ue|0}function ve(c,ue,de,me,be,ye,_e){return a(c+(ue^de^me)+be+ye|0,_e)+ue|0}function fe(c,ue,de,me,be,ye,_e){return a(c+(de^(ue|~me))+be+ye|0,_e)+ue|0}return md5_js=Me,md5_js}var ripemd160$2,hasRequiredRipemd160$1;function requireRipemd160$1(){if(hasRequiredRipemd160$1)return ripemd160$2;hasRequiredRipemd160$1=1;var ge=requireDist().Buffer,Ee=requireInherits_browser(),Be=requireHashBase(),he=new Array(16),Me=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],a=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],xe=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],pe=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],ve=[0,1518500249,1859775393,2400959708,2840853838],fe=[1352829926,1548603684,1836072691,2053994217,0];function c(Ae,we){return Ae<<we|Ae>>>32-we}function ue(Ae,we,Re,Se,$e,Te,We,Ze){return c(Ae+(we^Re^Se)+Te+We|0,Ze)+$e|0}function de(Ae,we,Re,Se,$e,Te,We,Ze){return c(Ae+(we&Re|~we&Se)+Te+We|0,Ze)+$e|0}function me(Ae,we,Re,Se,$e,Te,We,Ze){return c(Ae+((we|~Re)^Se)+Te+We|0,Ze)+$e|0}function be(Ae,we,Re,Se,$e,Te,We,Ze){return c(Ae+(we&Se|Re&~Se)+Te+We|0,Ze)+$e|0}function ye(Ae,we,Re,Se,$e,Te,We,Ze){return c(Ae+(we^(Re|~Se))+Te+We|0,Ze)+$e|0}function _e(){Be.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}return Ee(_e,Be),_e.prototype._update=function(){for(var Ae=he,we=0;we<16;++we)Ae[we]=this._block.readInt32LE(we*4);for(var Re=this._a|0,Se=this._b|0,$e=this._c|0,Te=this._d|0,We=this._e|0,Ze=this._a|0,Ne=this._b|0,Ke=this._c|0,l=this._d|0,e=this._e|0,t=0;t<80;t+=1){var i,n;t<16?(i=ue(Re,Se,$e,Te,We,Ae[Me[t]],ve[0],xe[t]),n=ye(Ze,Ne,Ke,l,e,Ae[a[t]],fe[0],pe[t])):t<32?(i=de(Re,Se,$e,Te,We,Ae[Me[t]],ve[1],xe[t]),n=be(Ze,Ne,Ke,l,e,Ae[a[t]],fe[1],pe[t])):t<48?(i=me(Re,Se,$e,Te,We,Ae[Me[t]],ve[2],xe[t]),n=me(Ze,Ne,Ke,l,e,Ae[a[t]],fe[2],pe[t])):t<64?(i=be(Re,Se,$e,Te,We,Ae[Me[t]],ve[3],xe[t]),n=de(Ze,Ne,Ke,l,e,Ae[a[t]],fe[3],pe[t])):(i=ye(Re,Se,$e,Te,We,Ae[Me[t]],ve[4],xe[t]),n=ue(Ze,Ne,Ke,l,e,Ae[a[t]],fe[4],pe[t])),Re=We,We=Te,Te=c($e,10),$e=Se,Se=i,Ze=e,e=l,l=c(Ke,10),Ke=Ne,Ne=n}var d=this._b+$e+l|0;this._b=this._c+Te+e|0,this._c=this._d+We+Ze|0,this._d=this._e+Re+Ne|0,this._e=this._a+Se+Ke|0,this._a=d},_e.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var Ae=ge.alloc?ge.alloc(20):new ge(20);return Ae.writeInt32LE(this._a,0),Ae.writeInt32LE(this._b,4),Ae.writeInt32LE(this._c,8),Ae.writeInt32LE(this._d,12),Ae.writeInt32LE(this._e,16),Ae},ripemd160$2=_e,ripemd160$2}var streamBrowser,hasRequiredStreamBrowser;function requireStreamBrowser(){return hasRequiredStreamBrowser||(hasRequiredStreamBrowser=1,streamBrowser=requireEvents().EventEmitter),streamBrowser}var buffer_list,hasRequiredBuffer_list;function requireBuffer_list(){if(hasRequiredBuffer_list)return buffer_list;hasRequiredBuffer_list=1;function ge(be,ye){var _e=Object.keys(be);if(Object.getOwnPropertySymbols){var Ae=Object.getOwnPropertySymbols(be);ye&&(Ae=Ae.filter(function(we){return Object.getOwnPropertyDescriptor(be,we).enumerable})),_e.push.apply(_e,Ae)}return _e}function Ee(be){for(var ye=1;ye<arguments.length;ye++){var _e=arguments[ye]!=null?arguments[ye]:{};ye%2?ge(Object(_e),!0).forEach(function(Ae){Be(be,Ae,_e[Ae])}):Object.getOwnPropertyDescriptors?Object.defineProperties(be,Object.getOwnPropertyDescriptors(_e)):ge(Object(_e)).forEach(function(Ae){Object.defineProperty(be,Ae,Object.getOwnPropertyDescriptor(_e,Ae))})}return be}function Be(be,ye,_e){return ye=xe(ye),ye in be?Object.defineProperty(be,ye,{value:_e,enumerable:!0,configurable:!0,writable:!0}):be[ye]=_e,be}function he(be,ye){if(!(be instanceof ye))throw new TypeError("Cannot call a class as a function")}function Me(be,ye){for(var _e=0;_e<ye.length;_e++){var Ae=ye[_e];Ae.enumerable=Ae.enumerable||!1,Ae.configurable=!0,"value"in Ae&&(Ae.writable=!0),Object.defineProperty(be,xe(Ae.key),Ae)}}function a(be,ye,_e){return ye&&Me(be.prototype,ye),Object.defineProperty(be,"prototype",{writable:!1}),be}function xe(be){var ye=pe(be,"string");return typeof ye=="symbol"?ye:String(ye)}function pe(be,ye){if(typeof be!="object"||be===null)return be;var _e=be[Symbol.toPrimitive];if(_e!==void 0){var Ae=_e.call(be,ye);if(typeof Ae!="object")return Ae;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(be)}var ve=requireDist(),fe=ve.Buffer,c=requireUtil$1(),ue=c.inspect,de=ue&&ue.custom||"inspect";function me(be,ye,_e){fe.prototype.copy.call(be,ye,_e)}return buffer_list=(function(){function be(){he(this,be),this.head=null,this.tail=null,this.length=0}return a(be,[{key:"push",value:function(_e){var Ae={data:_e,next:null};this.length>0?this.tail.next=Ae:this.head=Ae,this.tail=Ae,++this.length}},{key:"unshift",value:function(_e){var Ae={data:_e,next:this.head};this.length===0&&(this.tail=Ae),this.head=Ae,++this.length}},{key:"shift",value:function(){if(this.length!==0){var _e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,_e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(_e){if(this.length===0)return"";for(var Ae=this.head,we=""+Ae.data;Ae=Ae.next;)we+=_e+Ae.data;return we}},{key:"concat",value:function(_e){if(this.length===0)return fe.alloc(0);for(var Ae=fe.allocUnsafe(_e>>>0),we=this.head,Re=0;we;)me(we.data,Ae,Re),Re+=we.data.length,we=we.next;return Ae}},{key:"consume",value:function(_e,Ae){var we;return _e<this.head.data.length?(we=this.head.data.slice(0,_e),this.head.data=this.head.data.slice(_e)):_e===this.head.data.length?we=this.shift():we=Ae?this._getString(_e):this._getBuffer(_e),we}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(_e){var Ae=this.head,we=1,Re=Ae.data;for(_e-=Re.length;Ae=Ae.next;){var Se=Ae.data,$e=_e>Se.length?Se.length:_e;if($e===Se.length?Re+=Se:Re+=Se.slice(0,_e),_e-=$e,_e===0){$e===Se.length?(++we,Ae.next?this.head=Ae.next:this.head=this.tail=null):(this.head=Ae,Ae.data=Se.slice($e));break}++we}return this.length-=we,Re}},{key:"_getBuffer",value:function(_e){var Ae=fe.allocUnsafe(_e),we=this.head,Re=1;for(we.data.copy(Ae),_e-=we.data.length;we=we.next;){var Se=we.data,$e=_e>Se.length?Se.length:_e;if(Se.copy(Ae,Ae.length-_e,0,$e),_e-=$e,_e===0){$e===Se.length?(++Re,we.next?this.head=we.next:this.head=this.tail=null):(this.head=we,we.data=Se.slice($e));break}++Re}return this.length-=Re,Ae}},{key:de,value:function(_e,Ae){return ue(this,Ee(Ee({},Ae),{},{depth:0,customInspect:!1}))}}]),be})(),buffer_list}var destroy_1,hasRequiredDestroy;function requireDestroy(){if(hasRequiredDestroy)return destroy_1;hasRequiredDestroy=1;function ge(xe,pe){var ve=this,fe=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return fe||c?(pe?pe(xe):xe&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process$1.nextTick(Me,this,xe)):process$1.nextTick(Me,this,xe)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(xe||null,function(ue){!pe&&ue?ve._writableState?ve._writableState.errorEmitted?process$1.nextTick(Be,ve):(ve._writableState.errorEmitted=!0,process$1.nextTick(Ee,ve,ue)):process$1.nextTick(Ee,ve,ue):pe?(process$1.nextTick(Be,ve),pe(ue)):process$1.nextTick(Be,ve)}),this)}function Ee(xe,pe){Me(xe,pe),Be(xe)}function Be(xe){xe._writableState&&!xe._writableState.emitClose||xe._readableState&&!xe._readableState.emitClose||xe.emit("close")}function he(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Me(xe,pe){xe.emit("error",pe)}function a(xe,pe){var ve=xe._readableState,fe=xe._writableState;ve&&ve.autoDestroy||fe&&fe.autoDestroy?xe.destroy(pe):xe.emit("error",pe)}return destroy_1={destroy:ge,undestroy:he,errorOrDestroy:a},destroy_1}var errorsBrowser={},hasRequiredErrorsBrowser;function requireErrorsBrowser(){if(hasRequiredErrorsBrowser)return errorsBrowser;hasRequiredErrorsBrowser=1;function ge(pe,ve){pe.prototype=Object.create(ve.prototype),pe.prototype.constructor=pe,pe.__proto__=ve}var Ee={};function Be(pe,ve,fe){fe||(fe=Error);function c(de,me,be){return typeof ve=="string"?ve:ve(de,me,be)}var ue=(function(de){ge(me,de);function me(be,ye,_e){return de.call(this,c(be,ye,_e))||this}return me})(fe);ue.prototype.name=fe.name,ue.prototype.code=pe,Ee[pe]=ue}function he(pe,ve){if(Array.isArray(pe)){var fe=pe.length;return pe=pe.map(function(c){return String(c)}),fe>2?"one of ".concat(ve," ").concat(pe.slice(0,fe-1).join(", "),", or ")+pe[fe-1]:fe===2?"one of ".concat(ve," ").concat(pe[0]," or ").concat(pe[1]):"of ".concat(ve," ").concat(pe[0])}else return"of ".concat(ve," ").concat(String(pe))}function Me(pe,ve,fe){return pe.substr(0,ve.length)===ve}function a(pe,ve,fe){return(fe===void 0||fe>pe.length)&&(fe=pe.length),pe.substring(fe-ve.length,fe)===ve}function xe(pe,ve,fe){return typeof fe!="number"&&(fe=0),fe+ve.length>pe.length?!1:pe.indexOf(ve,fe)!==-1}return Be("ERR_INVALID_OPT_VALUE",function(pe,ve){return'The value "'+ve+'" is invalid for option "'+pe+'"'},TypeError),Be("ERR_INVALID_ARG_TYPE",function(pe,ve,fe){var c;typeof ve=="string"&&Me(ve,"not ")?(c="must not be",ve=ve.replace(/^not /,"")):c="must be";var ue;if(a(pe," argument"))ue="The ".concat(pe," ").concat(c," ").concat(he(ve,"type"));else{var de=xe(pe,".")?"property":"argument";ue='The "'.concat(pe,'" ').concat(de," ").concat(c," ").concat(he(ve,"type"))}return ue+=". Received type ".concat(typeof fe),ue},TypeError),Be("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),Be("ERR_METHOD_NOT_IMPLEMENTED",function(pe){return"The "+pe+" method is not implemented"}),Be("ERR_STREAM_PREMATURE_CLOSE","Premature close"),Be("ERR_STREAM_DESTROYED",function(pe){return"Cannot call "+pe+" after a stream was destroyed"}),Be("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),Be("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),Be("ERR_STREAM_WRITE_AFTER_END","write after end"),Be("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),Be("ERR_UNKNOWN_ENCODING",function(pe){return"Unknown encoding: "+pe},TypeError),Be("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),errorsBrowser.codes=Ee,errorsBrowser}var state,hasRequiredState;function requireState(){if(hasRequiredState)return state;hasRequiredState=1;var ge=requireErrorsBrowser().codes.ERR_INVALID_OPT_VALUE;function Ee(he,Me,a){return he.highWaterMark!=null?he.highWaterMark:Me?he[a]:null}function Be(he,Me,a,xe){var pe=Ee(Me,xe,a);if(pe!=null){if(!(isFinite(pe)&&Math.floor(pe)===pe)||pe<0){var ve=xe?a:"highWaterMark";throw new ge(ve,pe)}return Math.floor(pe)}return he.objectMode?16:16*1024}return state={getHighWaterMark:Be},state}var _stream_writable,hasRequired_stream_writable;function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;hasRequired_stream_writable=1,_stream_writable=Ze;function ge(Pe){var qe=this;this.next=null,this.entry=null,this.finish=function(){Ue(qe,Pe)}}var Ee;Ze.WritableState=Te;var Be={deprecate:requireBrowser$b()},he=requireStreamBrowser(),Me=requireDist().Buffer,a=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function xe(Pe){return Me.from(Pe)}function pe(Pe){return Me.isBuffer(Pe)||Pe instanceof a}var ve=requireDestroy(),fe=requireState(),c=fe.getHighWaterMark,ue=requireErrorsBrowser().codes,de=ue.ERR_INVALID_ARG_TYPE,me=ue.ERR_METHOD_NOT_IMPLEMENTED,be=ue.ERR_MULTIPLE_CALLBACK,ye=ue.ERR_STREAM_CANNOT_PIPE,_e=ue.ERR_STREAM_DESTROYED,Ae=ue.ERR_STREAM_NULL_VALUES,we=ue.ERR_STREAM_WRITE_AFTER_END,Re=ue.ERR_UNKNOWN_ENCODING,Se=ve.errorOrDestroy;requireInherits_browser()(Ze,he);function $e(){}function Te(Pe,qe,Ie){Ee=Ee||require_stream_duplex(),Pe=Pe||{},typeof Ie!="boolean"&&(Ie=qe instanceof Ee),this.objectMode=!!Pe.objectMode,Ie&&(this.objectMode=this.objectMode||!!Pe.writableObjectMode),this.highWaterMark=c(this,Pe,"writableHighWaterMark",Ie),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Oe=Pe.decodeStrings===!1;this.decodeStrings=!Oe,this.defaultEncoding=Pe.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ze){d(qe,ze)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Pe.emitClose!==!1,this.autoDestroy=!!Pe.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new ge(this)}Te.prototype.getBuffer=function(){for(var qe=this.bufferedRequest,Ie=[];qe;)Ie.push(qe),qe=qe.next;return Ie},(function(){try{Object.defineProperty(Te.prototype,"buffer",{get:Be.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var We;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(We=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ze,Symbol.hasInstance,{value:function(qe){return We.call(this,qe)?!0:this!==Ze?!1:qe&&qe._writableState instanceof Te}})):We=function(qe){return qe instanceof this};function Ze(Pe){Ee=Ee||require_stream_duplex();var qe=this instanceof Ee;if(!qe&&!We.call(Ze,this))return new Ze(Pe);this._writableState=new Te(Pe,this,qe),this.writable=!0,Pe&&(typeof Pe.write=="function"&&(this._write=Pe.write),typeof Pe.writev=="function"&&(this._writev=Pe.writev),typeof Pe.destroy=="function"&&(this._destroy=Pe.destroy),typeof Pe.final=="function"&&(this._final=Pe.final)),he.call(this)}Ze.prototype.pipe=function(){Se(this,new ye)};function Ne(Pe,qe){var Ie=new we;Se(Pe,Ie),process$1.nextTick(qe,Ie)}function Ke(Pe,qe,Ie,Oe){var ze;return Ie===null?ze=new Ae:typeof Ie!="string"&&!qe.objectMode&&(ze=new de("chunk",["string","Buffer"],Ie)),ze?(Se(Pe,ze),process$1.nextTick(Oe,ze),!1):!0}Ze.prototype.write=function(Pe,qe,Ie){var Oe=this._writableState,ze=!1,Le=!Oe.objectMode&&pe(Pe);return Le&&!Me.isBuffer(Pe)&&(Pe=xe(Pe)),typeof qe=="function"&&(Ie=qe,qe=null),Le?qe="buffer":qe||(qe=Oe.defaultEncoding),typeof Ie!="function"&&(Ie=$e),Oe.ending?Ne(this,Ie):(Le||Ke(this,Oe,Pe,Ie))&&(Oe.pendingcb++,ze=e(this,Oe,Le,Pe,qe,Ie)),ze},Ze.prototype.cork=function(){this._writableState.corked++},Ze.prototype.uncork=function(){var Pe=this._writableState;Pe.corked&&(Pe.corked--,!Pe.writing&&!Pe.corked&&!Pe.bufferProcessing&&Pe.bufferedRequest&&s(this,Pe))},Ze.prototype.setDefaultEncoding=function(qe){if(typeof qe=="string"&&(qe=qe.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((qe+"").toLowerCase())>-1))throw new Re(qe);return this._writableState.defaultEncoding=qe,this},Object.defineProperty(Ze.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function l(Pe,qe,Ie){return!Pe.objectMode&&Pe.decodeStrings!==!1&&typeof qe=="string"&&(qe=Me.from(qe,Ie)),qe}Object.defineProperty(Ze.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function e(Pe,qe,Ie,Oe,ze,Le){if(!Ie){var Fe=l(qe,Oe,ze);Oe!==Fe&&(Ie=!0,ze="buffer",Oe=Fe)}var He=qe.objectMode?1:Oe.length;qe.length+=He;var Ar=qe.length<qe.highWaterMark;if(Ar||(qe.needDrain=!0),qe.writing||qe.corked){var Ge=qe.lastBufferedRequest;qe.lastBufferedRequest={chunk:Oe,encoding:ze,isBuf:Ie,callback:Le,next:null},Ge?Ge.next=qe.lastBufferedRequest:qe.bufferedRequest=qe.lastBufferedRequest,qe.bufferedRequestCount+=1}else t(Pe,qe,!1,He,Oe,ze,Le);return Ar}function t(Pe,qe,Ie,Oe,ze,Le,Fe){qe.writelen=Oe,qe.writecb=Fe,qe.writing=!0,qe.sync=!0,qe.destroyed?qe.onwrite(new _e("write")):Ie?Pe._writev(ze,qe.onwrite):Pe._write(ze,Le,qe.onwrite),qe.sync=!1}function i(Pe,qe,Ie,Oe,ze){--qe.pendingcb,Ie?(process$1.nextTick(ze,Oe),process$1.nextTick(De,Pe,qe),Pe._writableState.errorEmitted=!0,Se(Pe,Oe)):(ze(Oe),Pe._writableState.errorEmitted=!0,Se(Pe,Oe),De(Pe,qe))}function n(Pe){Pe.writing=!1,Pe.writecb=null,Pe.length-=Pe.writelen,Pe.writelen=0}function d(Pe,qe){var Ie=Pe._writableState,Oe=Ie.sync,ze=Ie.writecb;if(typeof ze!="function")throw new be;if(n(Ie),qe)i(Pe,Ie,Oe,qe,ze);else{var Le=r(Ie)||Pe.destroyed;!Le&&!Ie.corked&&!Ie.bufferProcessing&&Ie.bufferedRequest&&s(Pe,Ie),Oe?process$1.nextTick(m,Pe,Ie,Le,ze):m(Pe,Ie,Le,ze)}}function m(Pe,qe,Ie,Oe){Ie||se(Pe,qe),qe.pendingcb--,Oe(),De(Pe,qe)}function se(Pe,qe){qe.length===0&&qe.needDrain&&(qe.needDrain=!1,Pe.emit("drain"))}function s(Pe,qe){qe.bufferProcessing=!0;var Ie=qe.bufferedRequest;if(Pe._writev&&Ie&&Ie.next){var Oe=qe.bufferedRequestCount,ze=new Array(Oe),Le=qe.corkedRequestsFree;Le.entry=Ie;for(var Fe=0,He=!0;Ie;)ze[Fe]=Ie,Ie.isBuf||(He=!1),Ie=Ie.next,Fe+=1;ze.allBuffers=He,t(Pe,qe,!0,qe.length,ze,"",Le.finish),qe.pendingcb++,qe.lastBufferedRequest=null,Le.next?(qe.corkedRequestsFree=Le.next,Le.next=null):qe.corkedRequestsFree=new ge(qe),qe.bufferedRequestCount=0}else{for(;Ie;){var Ar=Ie.chunk,Ge=Ie.encoding,je=Ie.callback,qr=qe.objectMode?1:Ar.length;if(t(Pe,qe,!1,qr,Ar,Ge,je),Ie=Ie.next,qe.bufferedRequestCount--,qe.writing)break}Ie===null&&(qe.lastBufferedRequest=null)}qe.bufferedRequest=Ie,qe.bufferProcessing=!1}Ze.prototype._write=function(Pe,qe,Ie){Ie(new me("_write()"))},Ze.prototype._writev=null,Ze.prototype.end=function(Pe,qe,Ie){var Oe=this._writableState;return typeof Pe=="function"?(Ie=Pe,Pe=null,qe=null):typeof qe=="function"&&(Ie=qe,qe=null),Pe!=null&&this.write(Pe,qe),Oe.corked&&(Oe.corked=1,this.uncork()),Oe.ending||ke(this,Oe,Ie),this},Object.defineProperty(Ze.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function r(Pe){return Pe.ending&&Pe.length===0&&Pe.bufferedRequest===null&&!Pe.finished&&!Pe.writing}function o(Pe,qe){Pe._final(function(Ie){qe.pendingcb--,Ie&&Se(Pe,Ie),qe.prefinished=!0,Pe.emit("prefinish"),De(Pe,qe)})}function Ce(Pe,qe){!qe.prefinished&&!qe.finalCalled&&(typeof Pe._final=="function"&&!qe.destroyed?(qe.pendingcb++,qe.finalCalled=!0,process$1.nextTick(o,Pe,qe)):(qe.prefinished=!0,Pe.emit("prefinish")))}function De(Pe,qe){var Ie=r(qe);if(Ie&&(Ce(Pe,qe),qe.pendingcb===0&&(qe.finished=!0,Pe.emit("finish"),qe.autoDestroy))){var Oe=Pe._readableState;(!Oe||Oe.autoDestroy&&Oe.endEmitted)&&Pe.destroy()}return Ie}function ke(Pe,qe,Ie){qe.ending=!0,De(Pe,qe),Ie&&(qe.finished?process$1.nextTick(Ie):Pe.once("finish",Ie)),qe.ended=!0,Pe.writable=!1}function Ue(Pe,qe,Ie){var Oe=Pe.entry;for(Pe.entry=null;Oe;){var ze=Oe.callback;qe.pendingcb--,ze(Ie),Oe=Oe.next}qe.corkedRequestsFree.next=Pe}return Object.defineProperty(Ze.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(qe){this._writableState&&(this._writableState.destroyed=qe)}}),Ze.prototype.destroy=ve.destroy,Ze.prototype._undestroy=ve.undestroy,Ze.prototype._destroy=function(Pe,qe){qe(Pe)},_stream_writable}var _stream_duplex,hasRequired_stream_duplex;function require_stream_duplex(){if(hasRequired_stream_duplex)return _stream_duplex;hasRequired_stream_duplex=1;var ge=Object.keys||function(fe){var c=[];for(var ue in fe)c.push(ue);return c};_stream_duplex=xe;var Ee=require_stream_readable(),Be=require_stream_writable();requireInherits_browser()(xe,Ee);for(var he=ge(Be.prototype),Me=0;Me<he.length;Me++){var a=he[Me];xe.prototype[a]||(xe.prototype[a]=Be.prototype[a])}function xe(fe){if(!(this instanceof xe))return new xe(fe);Ee.call(this,fe),Be.call(this,fe),this.allowHalfOpen=!0,fe&&(fe.readable===!1&&(this.readable=!1),fe.writable===!1&&(this.writable=!1),fe.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",pe)))}Object.defineProperty(xe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(xe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(xe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function pe(){this._writableState.ended||process$1.nextTick(ve,this)}function ve(fe){fe.end()}return Object.defineProperty(xe.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(c){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=c,this._writableState.destroyed=c)}}),_stream_duplex}var endOfStream,hasRequiredEndOfStream;function requireEndOfStream(){if(hasRequiredEndOfStream)return endOfStream;hasRequiredEndOfStream=1;var ge=requireErrorsBrowser().codes.ERR_STREAM_PREMATURE_CLOSE;function Ee(a){var xe=!1;return function(){if(!xe){xe=!0;for(var pe=arguments.length,ve=new Array(pe),fe=0;fe<pe;fe++)ve[fe]=arguments[fe];a.apply(this,ve)}}}function Be(){}function he(a){return a.setHeader&&typeof a.abort=="function"}function Me(a,xe,pe){if(typeof xe=="function")return Me(a,null,xe);xe||(xe={}),pe=Ee(pe||Be);var ve=xe.readable||xe.readable!==!1&&a.readable,fe=xe.writable||xe.writable!==!1&&a.writable,c=function(){a.writable||de()},ue=a._writableState&&a._writableState.finished,de=function(){fe=!1,ue=!0,ve||pe.call(a)},me=a._readableState&&a._readableState.endEmitted,be=function(){ve=!1,me=!0,fe||pe.call(a)},ye=function(Re){pe.call(a,Re)},_e=function(){var Re;if(ve&&!me)return(!a._readableState||!a._readableState.ended)&&(Re=new ge),pe.call(a,Re);if(fe&&!ue)return(!a._writableState||!a._writableState.ended)&&(Re=new ge),pe.call(a,Re)},Ae=function(){a.req.on("finish",de)};return he(a)?(a.on("complete",de),a.on("abort",_e),a.req?Ae():a.on("request",Ae)):fe&&!a._writableState&&(a.on("end",c),a.on("close",c)),a.on("end",be),a.on("finish",de),xe.error!==!1&&a.on("error",ye),a.on("close",_e),function(){a.removeListener("complete",de),a.removeListener("abort",_e),a.removeListener("request",Ae),a.req&&a.req.removeListener("finish",de),a.removeListener("end",c),a.removeListener("close",c),a.removeListener("finish",de),a.removeListener("end",be),a.removeListener("error",ye),a.removeListener("close",_e)}}return endOfStream=Me,endOfStream}var async_iterator,hasRequiredAsync_iterator;function requireAsync_iterator(){if(hasRequiredAsync_iterator)return async_iterator;hasRequiredAsync_iterator=1;var ge;function Ee(Re,Se,$e){return Se=Be(Se),Se in Re?Object.defineProperty(Re,Se,{value:$e,enumerable:!0,configurable:!0,writable:!0}):Re[Se]=$e,Re}function Be(Re){var Se=he(Re,"string");return typeof Se=="symbol"?Se:String(Se)}function he(Re,Se){if(typeof Re!="object"||Re===null)return Re;var $e=Re[Symbol.toPrimitive];if($e!==void 0){var Te=$e.call(Re,Se);if(typeof Te!="object")return Te;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Se==="string"?String:Number)(Re)}var Me=requireEndOfStream(),a=Symbol("lastResolve"),xe=Symbol("lastReject"),pe=Symbol("error"),ve=Symbol("ended"),fe=Symbol("lastPromise"),c=Symbol("handlePromise"),ue=Symbol("stream");function de(Re,Se){return{value:Re,done:Se}}function me(Re){var Se=Re[a];if(Se!==null){var $e=Re[ue].read();$e!==null&&(Re[fe]=null,Re[a]=null,Re[xe]=null,Se(de($e,!1)))}}function be(Re){process$1.nextTick(me,Re)}function ye(Re,Se){return function($e,Te){Re.then(function(){if(Se[ve]){$e(de(void 0,!0));return}Se[c]($e,Te)},Te)}}var _e=Object.getPrototypeOf(function(){}),Ae=Object.setPrototypeOf((ge={get stream(){return this[ue]},next:function(){var Se=this,$e=this[pe];if($e!==null)return Promise.reject($e);if(this[ve])return Promise.resolve(de(void 0,!0));if(this[ue].destroyed)return new Promise(function(Ne,Ke){process$1.nextTick(function(){Se[pe]?Ke(Se[pe]):Ne(de(void 0,!0))})});var Te=this[fe],We;if(Te)We=new Promise(ye(Te,this));else{var Ze=this[ue].read();if(Ze!==null)return Promise.resolve(de(Ze,!1));We=new Promise(this[c])}return this[fe]=We,We}},Ee(ge,Symbol.asyncIterator,function(){return this}),Ee(ge,"return",function(){var Se=this;return new Promise(function($e,Te){Se[ue].destroy(null,function(We){if(We){Te(We);return}$e(de(void 0,!0))})})}),ge),_e),we=function(Se){var $e,Te=Object.create(Ae,($e={},Ee($e,ue,{value:Se,writable:!0}),Ee($e,a,{value:null,writable:!0}),Ee($e,xe,{value:null,writable:!0}),Ee($e,pe,{value:null,writable:!0}),Ee($e,ve,{value:Se._readableState.endEmitted,writable:!0}),Ee($e,c,{value:function(Ze,Ne){var Ke=Te[ue].read();Ke?(Te[fe]=null,Te[a]=null,Te[xe]=null,Ze(de(Ke,!1))):(Te[a]=Ze,Te[xe]=Ne)},writable:!0}),$e));return Te[fe]=null,Me(Se,function(We){if(We&&We.code!=="ERR_STREAM_PREMATURE_CLOSE"){var Ze=Te[xe];Ze!==null&&(Te[fe]=null,Te[a]=null,Te[xe]=null,Ze(We)),Te[pe]=We;return}var Ne=Te[a];Ne!==null&&(Te[fe]=null,Te[a]=null,Te[xe]=null,Ne(de(void 0,!0))),Te[ve]=!0}),Se.on("readable",be.bind(null,Te)),Te};return async_iterator=we,async_iterator}var fromBrowser,hasRequiredFromBrowser;function requireFromBrowser(){return hasRequiredFromBrowser||(hasRequiredFromBrowser=1,fromBrowser=function(){throw new Error("Readable.from is not available in the browser")}),fromBrowser}var _stream_readable,hasRequired_stream_readable;function require_stream_readable(){if(hasRequired_stream_readable)return _stream_readable;hasRequired_stream_readable=1,_stream_readable=Ne;var ge;Ne.ReadableState=Ze,requireEvents().EventEmitter;var Ee=function(Fe,He){return Fe.listeners(He).length},Be=requireStreamBrowser(),he=requireDist().Buffer,Me=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(Le){return he.from(Le)}function xe(Le){return he.isBuffer(Le)||Le instanceof Me}var pe=requireUtil$1(),ve;pe&&pe.debuglog?ve=pe.debuglog("stream"):ve=function(){};var fe=requireBuffer_list(),c=requireDestroy(),ue=requireState(),de=ue.getHighWaterMark,me=requireErrorsBrowser().codes,be=me.ERR_INVALID_ARG_TYPE,ye=me.ERR_STREAM_PUSH_AFTER_EOF,_e=me.ERR_METHOD_NOT_IMPLEMENTED,Ae=me.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,we,Re,Se;requireInherits_browser()(Ne,Be);var $e=c.errorOrDestroy,Te=["error","close","destroy","pause","resume"];function We(Le,Fe,He){if(typeof Le.prependListener=="function")return Le.prependListener(Fe,He);!Le._events||!Le._events[Fe]?Le.on(Fe,He):Array.isArray(Le._events[Fe])?Le._events[Fe].unshift(He):Le._events[Fe]=[He,Le._events[Fe]]}function Ze(Le,Fe,He){ge=ge||require_stream_duplex(),Le=Le||{},typeof He!="boolean"&&(He=Fe instanceof ge),this.objectMode=!!Le.objectMode,He&&(this.objectMode=this.objectMode||!!Le.readableObjectMode),this.highWaterMark=de(this,Le,"readableHighWaterMark",He),this.buffer=new fe,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=Le.emitClose!==!1,this.autoDestroy=!!Le.autoDestroy,this.destroyed=!1,this.defaultEncoding=Le.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Le.encoding&&(we||(we=requireString_decoder().StringDecoder),this.decoder=new we(Le.encoding),this.encoding=Le.encoding)}function Ne(Le){if(ge=ge||require_stream_duplex(),!(this instanceof Ne))return new Ne(Le);var Fe=this instanceof ge;this._readableState=new Ze(Le,this,Fe),this.readable=!0,Le&&(typeof Le.read=="function"&&(this._read=Le.read),typeof Le.destroy=="function"&&(this._destroy=Le.destroy)),Be.call(this)}Object.defineProperty(Ne.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Fe){this._readableState&&(this._readableState.destroyed=Fe)}}),Ne.prototype.destroy=c.destroy,Ne.prototype._undestroy=c.undestroy,Ne.prototype._destroy=function(Le,Fe){Fe(Le)},Ne.prototype.push=function(Le,Fe){var He=this._readableState,Ar;return He.objectMode?Ar=!0:typeof Le=="string"&&(Fe=Fe||He.defaultEncoding,Fe!==He.encoding&&(Le=he.from(Le,Fe),Fe=""),Ar=!0),Ke(this,Le,Fe,!1,Ar)},Ne.prototype.unshift=function(Le){return Ke(this,Le,null,!0,!1)};function Ke(Le,Fe,He,Ar,Ge){ve("readableAddChunk",Fe);var je=Le._readableState;if(Fe===null)je.reading=!1,d(Le,je);else{var qr;if(Ge||(qr=e(je,Fe)),qr)$e(Le,qr);else if(je.objectMode||Fe&&Fe.length>0)if(typeof Fe!="string"&&!je.objectMode&&Object.getPrototypeOf(Fe)!==he.prototype&&(Fe=a(Fe)),Ar)je.endEmitted?$e(Le,new Ae):l(Le,je,Fe,!0);else if(je.ended)$e(Le,new ye);else{if(je.destroyed)return!1;je.reading=!1,je.decoder&&!He?(Fe=je.decoder.write(Fe),je.objectMode||Fe.length!==0?l(Le,je,Fe,!1):s(Le,je)):l(Le,je,Fe,!1)}else Ar||(je.reading=!1,s(Le,je))}return!je.ended&&(je.length<je.highWaterMark||je.length===0)}function l(Le,Fe,He,Ar){Fe.flowing&&Fe.length===0&&!Fe.sync?(Fe.awaitDrain=0,Le.emit("data",He)):(Fe.length+=Fe.objectMode?1:He.length,Ar?Fe.buffer.unshift(He):Fe.buffer.push(He),Fe.needReadable&&m(Le)),s(Le,Fe)}function e(Le,Fe){var He;return!xe(Fe)&&typeof Fe!="string"&&Fe!==void 0&&!Le.objectMode&&(He=new be("chunk",["string","Buffer","Uint8Array"],Fe)),He}Ne.prototype.isPaused=function(){return this._readableState.flowing===!1},Ne.prototype.setEncoding=function(Le){we||(we=requireString_decoder().StringDecoder);var Fe=new we(Le);this._readableState.decoder=Fe,this._readableState.encoding=this._readableState.decoder.encoding;for(var He=this._readableState.buffer.head,Ar="";He!==null;)Ar+=Fe.write(He.data),He=He.next;return this._readableState.buffer.clear(),Ar!==""&&this._readableState.buffer.push(Ar),this._readableState.length=Ar.length,this};var t=1073741824;function i(Le){return Le>=t?Le=t:(Le--,Le|=Le>>>1,Le|=Le>>>2,Le|=Le>>>4,Le|=Le>>>8,Le|=Le>>>16,Le++),Le}function n(Le,Fe){return Le<=0||Fe.length===0&&Fe.ended?0:Fe.objectMode?1:Le!==Le?Fe.flowing&&Fe.length?Fe.buffer.head.data.length:Fe.length:(Le>Fe.highWaterMark&&(Fe.highWaterMark=i(Le)),Le<=Fe.length?Le:Fe.ended?Fe.length:(Fe.needReadable=!0,0))}Ne.prototype.read=function(Le){ve("read",Le),Le=parseInt(Le,10);var Fe=this._readableState,He=Le;if(Le!==0&&(Fe.emittedReadable=!1),Le===0&&Fe.needReadable&&((Fe.highWaterMark!==0?Fe.length>=Fe.highWaterMark:Fe.length>0)||Fe.ended))return ve("read: emitReadable",Fe.length,Fe.ended),Fe.length===0&&Fe.ended?Ie(this):m(this),null;if(Le=n(Le,Fe),Le===0&&Fe.ended)return Fe.length===0&&Ie(this),null;var Ar=Fe.needReadable;ve("need readable",Ar),(Fe.length===0||Fe.length-Le<Fe.highWaterMark)&&(Ar=!0,ve("length less than watermark",Ar)),Fe.ended||Fe.reading?(Ar=!1,ve("reading or ended",Ar)):Ar&&(ve("do read"),Fe.reading=!0,Fe.sync=!0,Fe.length===0&&(Fe.needReadable=!0),this._read(Fe.highWaterMark),Fe.sync=!1,Fe.reading||(Le=n(He,Fe)));var Ge;return Le>0?Ge=qe(Le,Fe):Ge=null,Ge===null?(Fe.needReadable=Fe.length<=Fe.highWaterMark,Le=0):(Fe.length-=Le,Fe.awaitDrain=0),Fe.length===0&&(Fe.ended||(Fe.needReadable=!0),He!==Le&&Fe.ended&&Ie(this)),Ge!==null&&this.emit("data",Ge),Ge};function d(Le,Fe){if(ve("onEofChunk"),!Fe.ended){if(Fe.decoder){var He=Fe.decoder.end();He&&He.length&&(Fe.buffer.push(He),Fe.length+=Fe.objectMode?1:He.length)}Fe.ended=!0,Fe.sync?m(Le):(Fe.needReadable=!1,Fe.emittedReadable||(Fe.emittedReadable=!0,se(Le)))}}function m(Le){var Fe=Le._readableState;ve("emitReadable",Fe.needReadable,Fe.emittedReadable),Fe.needReadable=!1,Fe.emittedReadable||(ve("emitReadable",Fe.flowing),Fe.emittedReadable=!0,process$1.nextTick(se,Le))}function se(Le){var Fe=Le._readableState;ve("emitReadable_",Fe.destroyed,Fe.length,Fe.ended),!Fe.destroyed&&(Fe.length||Fe.ended)&&(Le.emit("readable"),Fe.emittedReadable=!1),Fe.needReadable=!Fe.flowing&&!Fe.ended&&Fe.length<=Fe.highWaterMark,Pe(Le)}function s(Le,Fe){Fe.readingMore||(Fe.readingMore=!0,process$1.nextTick(r,Le,Fe))}function r(Le,Fe){for(;!Fe.reading&&!Fe.ended&&(Fe.length<Fe.highWaterMark||Fe.flowing&&Fe.length===0);){var He=Fe.length;if(ve("maybeReadMore read 0"),Le.read(0),He===Fe.length)break}Fe.readingMore=!1}Ne.prototype._read=function(Le){$e(this,new _e("_read()"))},Ne.prototype.pipe=function(Le,Fe){var He=this,Ar=this._readableState;switch(Ar.pipesCount){case 0:Ar.pipes=Le;break;case 1:Ar.pipes=[Ar.pipes,Le];break;default:Ar.pipes.push(Le);break}Ar.pipesCount+=1,ve("pipe count=%d opts=%j",Ar.pipesCount,Fe);var Ge=(!Fe||Fe.end!==!1)&&Le!==process$1.stdout&&Le!==process$1.stderr,je=Ge?Ye:Cr;Ar.endEmitted?process$1.nextTick(je):He.once("end",je),Le.on("unpipe",qr);function qr(rr,ir){ve("onunpipe"),rr===He&&ir&&ir.hasUnpiped===!1&&(ir.hasUnpiped=!0,Xe())}function Ye(){ve("onend"),Le.end()}var tr=o(He);Le.on("drain",tr);var Rr=!1;function Xe(){ve("cleanup"),Le.removeListener("close",Je),Le.removeListener("finish",er),Le.removeListener("drain",tr),Le.removeListener("error",Sr),Le.removeListener("unpipe",qr),He.removeListener("end",Ye),He.removeListener("end",Cr),He.removeListener("data",Ve),Rr=!0,Ar.awaitDrain&&(!Le._writableState||Le._writableState.needDrain)&&tr()}He.on("data",Ve);function Ve(rr){ve("ondata");var ir=Le.write(rr);ve("dest.write",ir),ir===!1&&((Ar.pipesCount===1&&Ar.pipes===Le||Ar.pipesCount>1&&ze(Ar.pipes,Le)!==-1)&&!Rr&&(ve("false write response, pause",Ar.awaitDrain),Ar.awaitDrain++),He.pause())}function Sr(rr){ve("onerror",rr),Cr(),Le.removeListener("error",Sr),Ee(Le,"error")===0&&$e(Le,rr)}We(Le,"error",Sr);function Je(){Le.removeListener("finish",er),Cr()}Le.once("close",Je);function er(){ve("onfinish"),Le.removeListener("close",Je),Cr()}Le.once("finish",er);function Cr(){ve("unpipe"),He.unpipe(Le)}return Le.emit("pipe",He),Ar.flowing||(ve("pipe resume"),He.resume()),Le};function o(Le){return function(){var He=Le._readableState;ve("pipeOnDrain",He.awaitDrain),He.awaitDrain&&He.awaitDrain--,He.awaitDrain===0&&Ee(Le,"data")&&(He.flowing=!0,Pe(Le))}}Ne.prototype.unpipe=function(Le){var Fe=this._readableState,He={hasUnpiped:!1};if(Fe.pipesCount===0)return this;if(Fe.pipesCount===1)return Le&&Le!==Fe.pipes?this:(Le||(Le=Fe.pipes),Fe.pipes=null,Fe.pipesCount=0,Fe.flowing=!1,Le&&Le.emit("unpipe",this,He),this);if(!Le){var Ar=Fe.pipes,Ge=Fe.pipesCount;Fe.pipes=null,Fe.pipesCount=0,Fe.flowing=!1;for(var je=0;je<Ge;je++)Ar[je].emit("unpipe",this,{hasUnpiped:!1});return this}var qr=ze(Fe.pipes,Le);return qr===-1?this:(Fe.pipes.splice(qr,1),Fe.pipesCount-=1,Fe.pipesCount===1&&(Fe.pipes=Fe.pipes[0]),Le.emit("unpipe",this,He),this)},Ne.prototype.on=function(Le,Fe){var He=Be.prototype.on.call(this,Le,Fe),Ar=this._readableState;return Le==="data"?(Ar.readableListening=this.listenerCount("readable")>0,Ar.flowing!==!1&&this.resume()):Le==="readable"&&!Ar.endEmitted&&!Ar.readableListening&&(Ar.readableListening=Ar.needReadable=!0,Ar.flowing=!1,Ar.emittedReadable=!1,ve("on readable",Ar.length,Ar.reading),Ar.length?m(this):Ar.reading||process$1.nextTick(De,this)),He},Ne.prototype.addListener=Ne.prototype.on,Ne.prototype.removeListener=function(Le,Fe){var He=Be.prototype.removeListener.call(this,Le,Fe);return Le==="readable"&&process$1.nextTick(Ce,this),He},Ne.prototype.removeAllListeners=function(Le){var Fe=Be.prototype.removeAllListeners.apply(this,arguments);return(Le==="readable"||Le===void 0)&&process$1.nextTick(Ce,this),Fe};function Ce(Le){var Fe=Le._readableState;Fe.readableListening=Le.listenerCount("readable")>0,Fe.resumeScheduled&&!Fe.paused?Fe.flowing=!0:Le.listenerCount("data")>0&&Le.resume()}function De(Le){ve("readable nexttick read 0"),Le.read(0)}Ne.prototype.resume=function(){var Le=this._readableState;return Le.flowing||(ve("resume"),Le.flowing=!Le.readableListening,ke(this,Le)),Le.paused=!1,this};function ke(Le,Fe){Fe.resumeScheduled||(Fe.resumeScheduled=!0,process$1.nextTick(Ue,Le,Fe))}function Ue(Le,Fe){ve("resume",Fe.reading),Fe.reading||Le.read(0),Fe.resumeScheduled=!1,Le.emit("resume"),Pe(Le),Fe.flowing&&!Fe.reading&&Le.read(0)}Ne.prototype.pause=function(){return ve("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ve("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Pe(Le){var Fe=Le._readableState;for(ve("flow",Fe.flowing);Fe.flowing&&Le.read()!==null;);}Ne.prototype.wrap=function(Le){var Fe=this,He=this._readableState,Ar=!1;Le.on("end",function(){if(ve("wrapped end"),He.decoder&&!He.ended){var qr=He.decoder.end();qr&&qr.length&&Fe.push(qr)}Fe.push(null)}),Le.on("data",function(qr){if(ve("wrapped data"),He.decoder&&(qr=He.decoder.write(qr)),!(He.objectMode&&qr==null)&&!(!He.objectMode&&(!qr||!qr.length))){var Ye=Fe.push(qr);Ye||(Ar=!0,Le.pause())}});for(var Ge in Le)this[Ge]===void 0&&typeof Le[Ge]=="function"&&(this[Ge]=(function(Ye){return function(){return Le[Ye].apply(Le,arguments)}})(Ge));for(var je=0;je<Te.length;je++)Le.on(Te[je],this.emit.bind(this,Te[je]));return this._read=function(qr){ve("wrapped _read",qr),Ar&&(Ar=!1,Le.resume())},this},typeof Symbol=="function"&&(Ne.prototype[Symbol.asyncIterator]=function(){return Re===void 0&&(Re=requireAsync_iterator()),Re(this)}),Object.defineProperty(Ne.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Ne.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Ne.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Fe){this._readableState&&(this._readableState.flowing=Fe)}}),Ne._fromList=qe,Object.defineProperty(Ne.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function qe(Le,Fe){if(Fe.length===0)return null;var He;return Fe.objectMode?He=Fe.buffer.shift():!Le||Le>=Fe.length?(Fe.decoder?He=Fe.buffer.join(""):Fe.buffer.length===1?He=Fe.buffer.first():He=Fe.buffer.concat(Fe.length),Fe.buffer.clear()):He=Fe.buffer.consume(Le,Fe.decoder),He}function Ie(Le){var Fe=Le._readableState;ve("endReadable",Fe.endEmitted),Fe.endEmitted||(Fe.ended=!0,process$1.nextTick(Oe,Fe,Le))}function Oe(Le,Fe){if(ve("endReadableNT",Le.endEmitted,Le.length),!Le.endEmitted&&Le.length===0&&(Le.endEmitted=!0,Fe.readable=!1,Fe.emit("end"),Le.autoDestroy)){var He=Fe._writableState;(!He||He.autoDestroy&&He.finished)&&Fe.destroy()}}typeof Symbol=="function"&&(Ne.from=function(Le,Fe){return Se===void 0&&(Se=requireFromBrowser()),Se(Ne,Le,Fe)});function ze(Le,Fe){for(var He=0,Ar=Le.length;He<Ar;He++)if(Le[He]===Fe)return He;return-1}return _stream_readable}var _stream_transform,hasRequired_stream_transform;function require_stream_transform(){if(hasRequired_stream_transform)return _stream_transform;hasRequired_stream_transform=1,_stream_transform=pe;var ge=requireErrorsBrowser().codes,Ee=ge.ERR_METHOD_NOT_IMPLEMENTED,Be=ge.ERR_MULTIPLE_CALLBACK,he=ge.ERR_TRANSFORM_ALREADY_TRANSFORMING,Me=ge.ERR_TRANSFORM_WITH_LENGTH_0,a=require_stream_duplex();requireInherits_browser()(pe,a);function xe(c,ue){var de=this._transformState;de.transforming=!1;var me=de.writecb;if(me===null)return this.emit("error",new Be);de.writechunk=null,de.writecb=null,ue!=null&&this.push(ue),me(c);var be=this._readableState;be.reading=!1,(be.needReadable||be.length<be.highWaterMark)&&this._read(be.highWaterMark)}function pe(c){if(!(this instanceof pe))return new pe(c);a.call(this,c),this._transformState={afterTransform:xe.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,c&&(typeof c.transform=="function"&&(this._transform=c.transform),typeof c.flush=="function"&&(this._flush=c.flush)),this.on("prefinish",ve)}function ve(){var c=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(ue,de){fe(c,ue,de)}):fe(this,null,null)}pe.prototype.push=function(c,ue){return this._transformState.needTransform=!1,a.prototype.push.call(this,c,ue)},pe.prototype._transform=function(c,ue,de){de(new Ee("_transform()"))},pe.prototype._write=function(c,ue,de){var me=this._transformState;if(me.writecb=de,me.writechunk=c,me.writeencoding=ue,!me.transforming){var be=this._readableState;(me.needTransform||be.needReadable||be.length<be.highWaterMark)&&this._read(be.highWaterMark)}},pe.prototype._read=function(c){var ue=this._transformState;ue.writechunk!==null&&!ue.transforming?(ue.transforming=!0,this._transform(ue.writechunk,ue.writeencoding,ue.afterTransform)):ue.needTransform=!0},pe.prototype._destroy=function(c,ue){a.prototype._destroy.call(this,c,function(de){ue(de)})};function fe(c,ue,de){if(ue)return c.emit("error",ue);if(de!=null&&c.push(de),c._writableState.length)throw new Me;if(c._transformState.transforming)throw new he;return c.push(null)}return _stream_transform}var _stream_passthrough,hasRequired_stream_passthrough;function require_stream_passthrough(){if(hasRequired_stream_passthrough)return _stream_passthrough;hasRequired_stream_passthrough=1,_stream_passthrough=Ee;var ge=require_stream_transform();requireInherits_browser()(Ee,ge);function Ee(Be){if(!(this instanceof Ee))return new Ee(Be);ge.call(this,Be)}return Ee.prototype._transform=function(Be,he,Me){Me(null,Be)},_stream_passthrough}var pipeline_1,hasRequiredPipeline;function requirePipeline(){if(hasRequiredPipeline)return pipeline_1;hasRequiredPipeline=1;var ge;function Ee(de){var me=!1;return function(){me||(me=!0,de.apply(void 0,arguments))}}var Be=requireErrorsBrowser().codes,he=Be.ERR_MISSING_ARGS,Me=Be.ERR_STREAM_DESTROYED;function a(de){if(de)throw de}function xe(de){return de.setHeader&&typeof de.abort=="function"}function pe(de,me,be,ye){ye=Ee(ye);var _e=!1;de.on("close",function(){_e=!0}),ge===void 0&&(ge=requireEndOfStream()),ge(de,{readable:me,writable:be},function(we){if(we)return ye(we);_e=!0,ye()});var Ae=!1;return function(we){if(!_e&&!Ae){if(Ae=!0,xe(de))return de.abort();if(typeof de.destroy=="function")return de.destroy();ye(we||new Me("pipe"))}}}function ve(de){de()}function fe(de,me){return de.pipe(me)}function c(de){return!de.length||typeof de[de.length-1]!="function"?a:de.pop()}function ue(){for(var de=arguments.length,me=new Array(de),be=0;be<de;be++)me[be]=arguments[be];var ye=c(me);if(Array.isArray(me[0])&&(me=me[0]),me.length<2)throw new he("streams");var _e,Ae=me.map(function(we,Re){var Se=Re<me.length-1,$e=Re>0;return pe(we,Se,$e,function(Te){_e||(_e=Te),Te&&Ae.forEach(ve),!Se&&(Ae.forEach(ve),ye(_e))})});return me.reduce(fe)}return pipeline_1=ue,pipeline_1}var streamBrowserify,hasRequiredStreamBrowserify;function requireStreamBrowserify(){if(hasRequiredStreamBrowserify)return streamBrowserify;hasRequiredStreamBrowserify=1,streamBrowserify=Be;var ge=requireEvents().EventEmitter,Ee=requireInherits_browser();Ee(Be,ge),Be.Readable=require_stream_readable(),Be.Writable=require_stream_writable(),Be.Duplex=require_stream_duplex(),Be.Transform=require_stream_transform(),Be.PassThrough=require_stream_passthrough(),Be.finished=requireEndOfStream(),Be.pipeline=requirePipeline(),Be.Stream=Be;function Be(){ge.call(this)}return Be.prototype.pipe=function(he,Me){var a=this;function xe(me){he.writable&&he.write(me)===!1&&a.pause&&a.pause()}a.on("data",xe);function pe(){a.readable&&a.resume&&a.resume()}he.on("drain",pe),!he._isStdio&&(!Me||Me.end!==!1)&&(a.on("end",fe),a.on("close",c));var ve=!1;function fe(){ve||(ve=!0,he.end())}function c(){ve||(ve=!0,typeof he.destroy=="function"&&he.destroy())}function ue(me){if(de(),ge.listenerCount(this,"error")===0)throw me}a.on("error",ue),he.on("error",ue);function de(){a.removeListener("data",xe),he.removeListener("drain",pe),a.removeListener("end",fe),a.removeListener("close",c),a.removeListener("error",ue),he.removeListener("error",ue),a.removeListener("end",de),a.removeListener("close",de),he.removeListener("close",de)}return a.on("end",de),a.on("close",de),he.on("close",de),he.emit("pipe",a),he},streamBrowserify}var cipherBase,hasRequiredCipherBase;function requireCipherBase(){if(hasRequiredCipherBase)return cipherBase;hasRequiredCipherBase=1;var ge=requireSafeBuffer$1().Buffer,Ee=requireStreamBrowserify().Transform,Be=requireString_decoder().StringDecoder,he=requireInherits_browser(),Me=requireToBuffer$2();function a(xe){Ee.call(this),this.hashMode=typeof xe=="string",this.hashMode?this[xe]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}return he(a,Ee),a.prototype.update=function(xe,pe,ve){var fe=Me(xe,pe),c=this._update(fe);return this.hashMode?this:(ve&&(c=this._toString(c,ve)),c)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(xe,pe,ve){var fe;try{this.hashMode?this._update(xe):this.push(this._update(xe))}catch(c){fe=c}finally{ve(fe)}},a.prototype._flush=function(xe){var pe;try{this.push(this.__final())}catch(ve){pe=ve}xe(pe)},a.prototype._finalOrDigest=function(xe){var pe=this.__final()||ge.alloc(0);return xe&&(pe=this._toString(pe,xe,!0)),pe},a.prototype._toString=function(xe,pe,ve){if(this._decoder||(this._decoder=new Be(pe),this._encoding=pe),this._encoding!==pe)throw new Error("can’t switch encodings");var fe=this._decoder.write(xe);return ve&&(fe+=this._decoder.end()),fe},cipherBase=a,cipherBase}var browser$9,hasRequiredBrowser$9;function requireBrowser$9(){if(hasRequiredBrowser$9)return browser$9;hasRequiredBrowser$9=1;var ge=requireInherits_browser(),Ee=requireMd5_js(),Be=requireRipemd160$1(),he=requireSha_js(),Me=requireCipherBase();function a(xe){Me.call(this,"digest"),this._hash=xe}return ge(a,Me),a.prototype._update=function(xe){this._hash.update(xe)},a.prototype._final=function(){return this._hash.digest()},browser$9=function(pe){return pe=pe.toLowerCase(),pe==="md5"?new Ee:pe==="rmd160"||pe==="ripemd160"?new Be:new a(he(pe))},browser$9}var legacy,hasRequiredLegacy;function requireLegacy(){if(hasRequiredLegacy)return legacy;hasRequiredLegacy=1;var ge=requireInherits_browser(),Ee=requireSafeBuffer$1().Buffer,Be=requireCipherBase(),he=Ee.alloc(128),Me=64;function a(xe,pe){Be.call(this,"digest"),typeof pe=="string"&&(pe=Ee.from(pe)),this._alg=xe,this._key=pe,pe.length>Me?pe=xe(pe):pe.length<Me&&(pe=Ee.concat([pe,he],Me));for(var ve=this._ipad=Ee.allocUnsafe(Me),fe=this._opad=Ee.allocUnsafe(Me),c=0;c<Me;c++)ve[c]=pe[c]^54,fe[c]=pe[c]^92;this._hash=[ve]}return ge(a,Be),a.prototype._update=function(xe){this._hash.push(xe)},a.prototype._final=function(){var xe=this._alg(Ee.concat(this._hash));return this._alg(Ee.concat([this._opad,xe]))},legacy=a,legacy}var md5$2,hasRequiredMd5$1;function requireMd5$1(){if(hasRequiredMd5$1)return md5$2;hasRequiredMd5$1=1;var ge=requireMd5_js();return md5$2=function(Ee){return new ge().update(Ee).digest()},md5$2}var browser$8,hasRequiredBrowser$8;function requireBrowser$8(){if(hasRequiredBrowser$8)return browser$8;hasRequiredBrowser$8=1;var ge=requireInherits_browser(),Ee=requireLegacy(),Be=requireCipherBase(),he=requireSafeBuffer$1().Buffer,Me=requireMd5$1(),a=requireRipemd160$1(),xe=requireSha_js(),pe=he.alloc(128);function ve(fe,c){Be.call(this,"digest"),typeof c=="string"&&(c=he.from(c));var ue=fe==="sha512"||fe==="sha384"?128:64;if(this._alg=fe,this._key=c,c.length>ue){var de=fe==="rmd160"?new a:xe(fe);c=de.update(c).digest()}else c.length<ue&&(c=he.concat([c,pe],ue));for(var me=this._ipad=he.allocUnsafe(ue),be=this._opad=he.allocUnsafe(ue),ye=0;ye<ue;ye++)me[ye]=c[ye]^54,be[ye]=c[ye]^92;this._hash=fe==="rmd160"?new a:xe(fe),this._hash.update(me)}return ge(ve,Be),ve.prototype._update=function(fe){this._hash.update(fe)},ve.prototype._final=function(){var fe=this._hash.digest(),c=this._alg==="rmd160"?new a:xe(this._alg);return c.update(this._opad).update(fe).digest()},browser$8=function(c,ue){return c=c.toLowerCase(),c==="rmd160"||c==="ripemd160"?new ve("rmd160",ue):c==="md5"?new Ee(Me,ue):new ve(c,ue)},browser$8}const sha224WithRSAEncryption={sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption={sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption={sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption={sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},sha256$2={sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha224$2={sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha384$2={sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512$2={sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},DSA={sign:"dsa",hash:"sha1",id:""},ripemd160WithRSA={sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption={sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},require$$6={sha224WithRSAEncryption,"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption,"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption,"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption,"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:sha256$2,sha224:sha224$2,sha384:sha384$2,sha512:sha512$2,"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA,"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA,"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption,"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}};var algos,hasRequiredAlgos;function requireAlgos(){return hasRequiredAlgos||(hasRequiredAlgos=1,algos=require$$6),algos}var browser$7={},precondition,hasRequiredPrecondition;function requirePrecondition(){if(hasRequiredPrecondition)return precondition;hasRequiredPrecondition=1;var ge=isFinite,Ee=Math.pow(2,30)-1;return precondition=function(Be,he){if(typeof Be!="number")throw new TypeError("Iterations not a number");if(Be<0||!ge(Be))throw new TypeError("Bad iterations");if(typeof he!="number")throw new TypeError("Key length not a number");if(he<0||he>Ee||he!==he)throw new TypeError("Bad key length");return he+0},precondition}var defaultEncoding_1,hasRequiredDefaultEncoding;function requireDefaultEncoding(){if(hasRequiredDefaultEncoding)return defaultEncoding_1;hasRequiredDefaultEncoding=1;var ge;if(commonjsGlobal.process&&commonjsGlobal.process.browser)ge="utf-8";else if(commonjsGlobal.process&&commonjsGlobal.process.version){var Ee=parseInt(process$1.version.split(".")[0].slice(1),10);ge=Ee>=6?"utf-8":"binary"}else ge="utf-8";return defaultEncoding_1=ge,defaultEncoding_1}var toBuffer_1,hasRequiredToBuffer;function requireToBuffer(){if(hasRequiredToBuffer)return toBuffer_1;hasRequiredToBuffer=1;var ge=requireSafeBuffer$1().Buffer,Ee=requireToBuffer$2(),Be=typeof Uint8Array<"u",he=Be&&typeof ArrayBuffer<"u",Me=he&&ArrayBuffer.isView;return toBuffer_1=function(a,xe,pe){if(typeof a=="string"||ge.isBuffer(a)||Be&&a instanceof Uint8Array||Me&&Me(a))return Ee(a,xe);throw new TypeError(pe+" must be a string, a Buffer, a Uint8Array, or a DataView")},toBuffer_1}var syncBrowser,hasRequiredSyncBrowser;function requireSyncBrowser(){if(hasRequiredSyncBrowser)return syncBrowser;hasRequiredSyncBrowser=1;var ge=requireMd5$1(),Ee=requireRipemd160$1(),Be=requireSha_js(),he=requireSafeBuffer$1().Buffer,Me=requirePrecondition(),a=requireDefaultEncoding(),xe=requireToBuffer(),pe=he.alloc(128),ve={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},fe={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"};function c(be){return new Ee().update(be).digest()}function ue(be){function ye(_e){return Be(be).update(_e).digest()}return be==="rmd160"||be==="ripemd160"?c:be==="md5"?ge:ye}function de(be,ye,_e){var Ae=ue(be),we=be==="sha512"||be==="sha384"?128:64;ye.length>we?ye=Ae(ye):ye.length<we&&(ye=he.concat([ye,pe],we));for(var Re=he.allocUnsafe(we+ve[be]),Se=he.allocUnsafe(we+ve[be]),$e=0;$e<we;$e++)Re[$e]=ye[$e]^54,Se[$e]=ye[$e]^92;var Te=he.allocUnsafe(we+_e+4);Re.copy(Te,0,0,we),this.ipad1=Te,this.ipad2=Re,this.opad=Se,this.alg=be,this.blocksize=we,this.hash=Ae,this.size=ve[be]}de.prototype.run=function(be,ye){be.copy(ye,this.blocksize);var _e=this.hash(ye);return _e.copy(this.opad,this.blocksize),this.hash(this.opad)};function me(be,ye,_e,Ae,we){Ae=Me(_e,Ae),be=xe(be,a,"Password"),ye=xe(ye,a,"Salt");var Re=(we||"sha1").toLowerCase(),Se=fe[Re]||Re,$e=ve[Se];if(typeof $e!="number"||!$e)throw new TypeError("Digest algorithm not supported: "+we);var Te=new de(Se,be,ye.length),We=he.allocUnsafe(Ae),Ze=he.allocUnsafe(ye.length+4);ye.copy(Ze,0,0,ye.length);for(var Ne=0,Ke=$e,l=Math.ceil(Ae/Ke),e=1;e<=l;e++){Ze.writeUInt32BE(e,ye.length);for(var t=Te.run(Ze,Te.ipad1),i=t,n=1;n<_e;n++){i=Te.run(i,Te.ipad2);for(var d=0;d<Ke;d++)t[d]^=i[d]}t.copy(We,Ne),Ne+=Ke}return We}return syncBrowser=me,syncBrowser}var async,hasRequiredAsync;function requireAsync(){if(hasRequiredAsync)return async;hasRequiredAsync=1;var ge=requireSafeBuffer$1().Buffer,Ee=requirePrecondition(),Be=requireDefaultEncoding(),he=requireSyncBrowser(),Me=requireToBuffer(),a,xe=commonjsGlobal.crypto&&commonjsGlobal.crypto.subtle,pe={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},ve=[],fe;function c(){return fe||(commonjsGlobal.process&&commonjsGlobal.process.nextTick?fe=commonjsGlobal.process.nextTick:commonjsGlobal.queueMicrotask?fe=commonjsGlobal.queueMicrotask:commonjsGlobal.setImmediate?fe=commonjsGlobal.setImmediate:fe=commonjsGlobal.setTimeout,fe)}function ue(be,ye,_e,Ae,we){return xe.importKey("raw",be,{name:"PBKDF2"},!1,["deriveBits"]).then(function(Re){return xe.deriveBits({name:"PBKDF2",salt:ye,iterations:_e,hash:{name:we}},Re,Ae<<3)}).then(function(Re){return ge.from(Re)})}function de(be){if(commonjsGlobal.process&&!commonjsGlobal.process.browser||!xe||!xe.importKey||!xe.deriveBits)return Promise.resolve(!1);if(ve[be]!==void 0)return ve[be];a=a||ge.alloc(8);var ye=ue(a,a,10,128,be).then(function(){return!0},function(){return!1});return ve[be]=ye,ye}function me(be,ye){be.then(function(_e){c()(function(){ye(null,_e)})},function(_e){c()(function(){ye(_e)})})}return async=function(be,ye,_e,Ae,we,Re){if(typeof we=="function"&&(Re=we,we=void 0),Ae=Ee(_e,Ae),be=Me(be,Be,"Password"),ye=Me(ye,Be,"Salt"),typeof Re!="function")throw new Error("No callback provided to pbkdf2");we=we||"sha1";var Se=pe[we.toLowerCase()];if(!Se||typeof commonjsGlobal.Promise!="function"){c()(function(){var $e;try{$e=he(be,ye,_e,Ae,we)}catch(Te){Re(Te);return}Re(null,$e)});return}me(de(Se).then(function($e){return $e?ue(be,ye,_e,Ae,Se):he(be,ye,_e,Ae,we)}),Re)},async}var hasRequiredBrowser$7;function requireBrowser$7(){return hasRequiredBrowser$7||(hasRequiredBrowser$7=1,browser$7.pbkdf2=requireAsync(),browser$7.pbkdf2Sync=requireSyncBrowser()),browser$7}var browser$6={},des$1={},utils$2={},hasRequiredUtils$2;function requireUtils$2(){if(hasRequiredUtils$2)return utils$2;hasRequiredUtils$2=1,utils$2.readUInt32BE=function(Me,a){var xe=Me[0+a]<<24|Me[1+a]<<16|Me[2+a]<<8|Me[3+a];return xe>>>0},utils$2.writeUInt32BE=function(Me,a,xe){Me[0+xe]=a>>>24,Me[1+xe]=a>>>16&255,Me[2+xe]=a>>>8&255,Me[3+xe]=a&255},utils$2.ip=function(Me,a,xe,pe){for(var ve=0,fe=0,c=6;c>=0;c-=2){for(var ue=0;ue<=24;ue+=8)ve<<=1,ve|=a>>>ue+c&1;for(var ue=0;ue<=24;ue+=8)ve<<=1,ve|=Me>>>ue+c&1}for(var c=6;c>=0;c-=2){for(var ue=1;ue<=25;ue+=8)fe<<=1,fe|=a>>>ue+c&1;for(var ue=1;ue<=25;ue+=8)fe<<=1,fe|=Me>>>ue+c&1}xe[pe+0]=ve>>>0,xe[pe+1]=fe>>>0},utils$2.rip=function(Me,a,xe,pe){for(var ve=0,fe=0,c=0;c<4;c++)for(var ue=24;ue>=0;ue-=8)ve<<=1,ve|=a>>>ue+c&1,ve<<=1,ve|=Me>>>ue+c&1;for(var c=4;c<8;c++)for(var ue=24;ue>=0;ue-=8)fe<<=1,fe|=a>>>ue+c&1,fe<<=1,fe|=Me>>>ue+c&1;xe[pe+0]=ve>>>0,xe[pe+1]=fe>>>0},utils$2.pc1=function(Me,a,xe,pe){for(var ve=0,fe=0,c=7;c>=5;c--){for(var ue=0;ue<=24;ue+=8)ve<<=1,ve|=a>>ue+c&1;for(var ue=0;ue<=24;ue+=8)ve<<=1,ve|=Me>>ue+c&1}for(var ue=0;ue<=24;ue+=8)ve<<=1,ve|=a>>ue+c&1;for(var c=1;c<=3;c++){for(var ue=0;ue<=24;ue+=8)fe<<=1,fe|=a>>ue+c&1;for(var ue=0;ue<=24;ue+=8)fe<<=1,fe|=Me>>ue+c&1}for(var ue=0;ue<=24;ue+=8)fe<<=1,fe|=Me>>ue+c&1;xe[pe+0]=ve>>>0,xe[pe+1]=fe>>>0},utils$2.r28shl=function(Me,a){return Me<<a&268435455|Me>>>28-a};var ge=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];utils$2.pc2=function(Me,a,xe,pe){for(var ve=0,fe=0,c=ge.length>>>1,ue=0;ue<c;ue++)ve<<=1,ve|=Me>>>ge[ue]&1;for(var ue=c;ue<ge.length;ue++)fe<<=1,fe|=a>>>ge[ue]&1;xe[pe+0]=ve>>>0,xe[pe+1]=fe>>>0},utils$2.expand=function(Me,a,xe){var pe=0,ve=0;pe=(Me&1)<<5|Me>>>27;for(var fe=23;fe>=15;fe-=4)pe<<=6,pe|=Me>>>fe&63;for(var fe=11;fe>=3;fe-=4)ve|=Me>>>fe&63,ve<<=6;ve|=(Me&31)<<1|Me>>>31,a[xe+0]=pe>>>0,a[xe+1]=ve>>>0};var Ee=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];utils$2.substitute=function(Me,a){for(var xe=0,pe=0;pe<4;pe++){var ve=Me>>>18-pe*6&63,fe=Ee[pe*64+ve];xe<<=4,xe|=fe}for(var pe=0;pe<4;pe++){var ve=a>>>18-pe*6&63,fe=Ee[256+pe*64+ve];xe<<=4,xe|=fe}return xe>>>0};var Be=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];return utils$2.permute=function(Me){for(var a=0,xe=0;xe<Be.length;xe++)a<<=1,a|=Me>>>Be[xe]&1;return a>>>0},utils$2.padSplit=function(Me,a,xe){for(var pe=Me.toString(2);pe.length<a;)pe="0"+pe;for(var ve=[],fe=0;fe<a;fe+=xe)ve.push(pe.slice(fe,fe+xe));return ve.join(" ")},utils$2}var cipher,hasRequiredCipher;function requireCipher(){if(hasRequiredCipher)return cipher;hasRequiredCipher=1;var ge=requireMinimalisticAssert();function Ee(Be){this.options=Be,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=Be.padding!==!1}return cipher=Ee,Ee.prototype._init=function(){},Ee.prototype.update=function(he){return he.length===0?[]:this.type==="decrypt"?this._updateDecrypt(he):this._updateEncrypt(he)},Ee.prototype._buffer=function(he,Me){for(var a=Math.min(this.buffer.length-this.bufferOff,he.length-Me),xe=0;xe<a;xe++)this.buffer[this.bufferOff+xe]=he[Me+xe];return this.bufferOff+=a,a},Ee.prototype._flushBuffer=function(he,Me){return this._update(this.buffer,0,he,Me),this.bufferOff=0,this.blockSize},Ee.prototype._updateEncrypt=function(he){var Me=0,a=0,xe=(this.bufferOff+he.length)/this.blockSize|0,pe=new Array(xe*this.blockSize);this.bufferOff!==0&&(Me+=this._buffer(he,Me),this.bufferOff===this.buffer.length&&(a+=this._flushBuffer(pe,a)));for(var ve=he.length-(he.length-Me)%this.blockSize;Me<ve;Me+=this.blockSize)this._update(he,Me,pe,a),a+=this.blockSize;for(;Me<he.length;Me++,this.bufferOff++)this.buffer[this.bufferOff]=he[Me];return pe},Ee.prototype._updateDecrypt=function(he){for(var Me=0,a=0,xe=Math.ceil((this.bufferOff+he.length)/this.blockSize)-1,pe=new Array(xe*this.blockSize);xe>0;xe--)Me+=this._buffer(he,Me),a+=this._flushBuffer(pe,a);return Me+=this._buffer(he,Me),pe},Ee.prototype.final=function(he){var Me;he&&(Me=this.update(he));var a;return this.type==="encrypt"?a=this._finalEncrypt():a=this._finalDecrypt(),Me?Me.concat(a):a},Ee.prototype._pad=function(he,Me){if(Me===0)return!1;for(;Me<he.length;)he[Me++]=0;return!0},Ee.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var he=new Array(this.blockSize);return this._update(this.buffer,0,he,0),he},Ee.prototype._unpad=function(he){return he},Ee.prototype._finalDecrypt=function(){ge.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var he=new Array(this.blockSize);return this._flushBuffer(he,0),this._unpad(he)},cipher}var des,hasRequiredDes$1;function requireDes$1(){if(hasRequiredDes$1)return des;hasRequiredDes$1=1;var ge=requireMinimalisticAssert(),Ee=requireInherits_browser(),Be=requireUtils$2(),he=requireCipher();function Me(){this.tmp=new Array(2),this.keys=null}function a(pe){he.call(this,pe);var ve=new Me;this._desState=ve,this.deriveKeys(ve,pe.key)}Ee(a,he),des=a,a.create=function(ve){return new a(ve)};var xe=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];return a.prototype.deriveKeys=function(ve,fe){ve.keys=new Array(32),ge.equal(fe.length,this.blockSize,"Invalid key length");var c=Be.readUInt32BE(fe,0),ue=Be.readUInt32BE(fe,4);Be.pc1(c,ue,ve.tmp,0),c=ve.tmp[0],ue=ve.tmp[1];for(var de=0;de<ve.keys.length;de+=2){var me=xe[de>>>1];c=Be.r28shl(c,me),ue=Be.r28shl(ue,me),Be.pc2(c,ue,ve.keys,de)}},a.prototype._update=function(ve,fe,c,ue){var de=this._desState,me=Be.readUInt32BE(ve,fe),be=Be.readUInt32BE(ve,fe+4);Be.ip(me,be,de.tmp,0),me=de.tmp[0],be=de.tmp[1],this.type==="encrypt"?this._encrypt(de,me,be,de.tmp,0):this._decrypt(de,me,be,de.tmp,0),me=de.tmp[0],be=de.tmp[1],Be.writeUInt32BE(c,me,ue),Be.writeUInt32BE(c,be,ue+4)},a.prototype._pad=function(ve,fe){if(this.padding===!1)return!1;for(var c=ve.length-fe,ue=fe;ue<ve.length;ue++)ve[ue]=c;return!0},a.prototype._unpad=function(ve){if(this.padding===!1)return ve;for(var fe=ve[ve.length-1],c=ve.length-fe;c<ve.length;c++)ge.equal(ve[c],fe);return ve.slice(0,ve.length-fe)},a.prototype._encrypt=function(ve,fe,c,ue,de){for(var me=fe,be=c,ye=0;ye<ve.keys.length;ye+=2){var _e=ve.keys[ye],Ae=ve.keys[ye+1];Be.expand(be,ve.tmp,0),_e^=ve.tmp[0],Ae^=ve.tmp[1];var we=Be.substitute(_e,Ae),Re=Be.permute(we),Se=be;be=(me^Re)>>>0,me=Se}Be.rip(be,me,ue,de)},a.prototype._decrypt=function(ve,fe,c,ue,de){for(var me=c,be=fe,ye=ve.keys.length-2;ye>=0;ye-=2){var _e=ve.keys[ye],Ae=ve.keys[ye+1];Be.expand(me,ve.tmp,0),_e^=ve.tmp[0],Ae^=ve.tmp[1];var we=Be.substitute(_e,Ae),Re=Be.permute(we),Se=me;me=(be^Re)>>>0,be=Se}Be.rip(me,be,ue,de)},des}var cbc$1={},hasRequiredCbc$1;function requireCbc$1(){if(hasRequiredCbc$1)return cbc$1;hasRequiredCbc$1=1;var ge=requireMinimalisticAssert(),Ee=requireInherits_browser(),Be={};function he(a){ge.equal(a.length,8,"Invalid IV length"),this.iv=new Array(8);for(var xe=0;xe<this.iv.length;xe++)this.iv[xe]=a[xe]}function Me(a){function xe(c){a.call(this,c),this._cbcInit()}Ee(xe,a);for(var pe=Object.keys(Be),ve=0;ve<pe.length;ve++){var fe=pe[ve];xe.prototype[fe]=Be[fe]}return xe.create=function(ue){return new xe(ue)},xe}return cbc$1.instantiate=Me,Be._cbcInit=function(){var xe=new he(this.options.iv);this._cbcState=xe},Be._update=function(xe,pe,ve,fe){var c=this._cbcState,ue=this.constructor.super_.prototype,de=c.iv;if(this.type==="encrypt"){for(var me=0;me<this.blockSize;me++)de[me]^=xe[pe+me];ue._update.call(this,de,0,ve,fe);for(var me=0;me<this.blockSize;me++)de[me]=ve[fe+me]}else{ue._update.call(this,xe,pe,ve,fe);for(var me=0;me<this.blockSize;me++)ve[fe+me]^=de[me];for(var me=0;me<this.blockSize;me++)de[me]=xe[pe+me]}},cbc$1}var ede,hasRequiredEde;function requireEde(){if(hasRequiredEde)return ede;hasRequiredEde=1;var ge=requireMinimalisticAssert(),Ee=requireInherits_browser(),Be=requireCipher(),he=requireDes$1();function Me(xe,pe){ge.equal(pe.length,24,"Invalid key length");var ve=pe.slice(0,8),fe=pe.slice(8,16),c=pe.slice(16,24);xe==="encrypt"?this.ciphers=[he.create({type:"encrypt",key:ve}),he.create({type:"decrypt",key:fe}),he.create({type:"encrypt",key:c})]:this.ciphers=[he.create({type:"decrypt",key:c}),he.create({type:"encrypt",key:fe}),he.create({type:"decrypt",key:ve})]}function a(xe){Be.call(this,xe);var pe=new Me(this.type,this.options.key);this._edeState=pe}return Ee(a,Be),ede=a,a.create=function(pe){return new a(pe)},a.prototype._update=function(pe,ve,fe,c){var ue=this._edeState;ue.ciphers[0]._update(pe,ve,fe,c),ue.ciphers[1]._update(fe,c,fe,c),ue.ciphers[2]._update(fe,c,fe,c)},a.prototype._pad=he.prototype._pad,a.prototype._unpad=he.prototype._unpad,ede}var hasRequiredDes;function requireDes(){return hasRequiredDes||(hasRequiredDes=1,des$1.utils=requireUtils$2(),des$1.Cipher=requireCipher(),des$1.DES=requireDes$1(),des$1.CBC=requireCbc$1(),des$1.EDE=requireEde()),des$1}var browserifyDes,hasRequiredBrowserifyDes;function requireBrowserifyDes(){if(hasRequiredBrowserifyDes)return browserifyDes;hasRequiredBrowserifyDes=1;var ge=requireCipherBase(),Ee=requireDes(),Be=requireInherits_browser(),he=requireSafeBuffer$1().Buffer,Me={"des-ede3-cbc":Ee.CBC.instantiate(Ee.EDE),"des-ede3":Ee.EDE,"des-ede-cbc":Ee.CBC.instantiate(Ee.EDE),"des-ede":Ee.EDE,"des-cbc":Ee.CBC.instantiate(Ee.DES),"des-ecb":Ee.DES};Me.des=Me["des-cbc"],Me.des3=Me["des-ede3-cbc"],browserifyDes=a,Be(a,ge);function a(xe){ge.call(this);var pe=xe.mode.toLowerCase(),ve=Me[pe],fe;xe.decrypt?fe="decrypt":fe="encrypt";var c=xe.key;he.isBuffer(c)||(c=he.from(c)),(pe==="des-ede"||pe==="des-ede-cbc")&&(c=he.concat([c,c.slice(0,8)]));var ue=xe.iv;he.isBuffer(ue)||(ue=he.from(ue)),this._des=ve.create({key:c,iv:ue,type:fe})}return a.prototype._update=function(xe){return he.from(this._des.update(xe))},a.prototype._final=function(){return he.from(this._des.final())},browserifyDes}var browser$5={},encrypter={},ecb={},hasRequiredEcb;function requireEcb(){return hasRequiredEcb||(hasRequiredEcb=1,ecb.encrypt=function(ge,Ee){return ge._cipher.encryptBlock(Ee)},ecb.decrypt=function(ge,Ee){return ge._cipher.decryptBlock(Ee)}),ecb}var cbc={},bufferXor,hasRequiredBufferXor;function requireBufferXor(){return hasRequiredBufferXor||(hasRequiredBufferXor=1,bufferXor=function(Ee,Be){for(var he=Math.min(Ee.length,Be.length),Me=new Buffer(he),a=0;a<he;++a)Me[a]=Ee[a]^Be[a];return Me}),bufferXor}var hasRequiredCbc;function requireCbc(){if(hasRequiredCbc)return cbc;hasRequiredCbc=1;var ge=requireBufferXor();return cbc.encrypt=function(Ee,Be){var he=ge(Be,Ee._prev);return Ee._prev=Ee._cipher.encryptBlock(he),Ee._prev},cbc.decrypt=function(Ee,Be){var he=Ee._prev;Ee._prev=Be;var Me=Ee._cipher.decryptBlock(Be);return ge(Me,he)},cbc}var cfb={},hasRequiredCfb;function requireCfb(){if(hasRequiredCfb)return cfb;hasRequiredCfb=1;var ge=requireSafeBuffer$1().Buffer,Ee=requireBufferXor();function Be(he,Me,a){var xe=Me.length,pe=Ee(Me,he._cache);return he._cache=he._cache.slice(xe),he._prev=ge.concat([he._prev,a?Me:pe]),pe}return cfb.encrypt=function(he,Me,a){for(var xe=ge.allocUnsafe(0),pe;Me.length;)if(he._cache.length===0&&(he._cache=he._cipher.encryptBlock(he._prev),he._prev=ge.allocUnsafe(0)),he._cache.length<=Me.length)pe=he._cache.length,xe=ge.concat([xe,Be(he,Me.slice(0,pe),a)]),Me=Me.slice(pe);else{xe=ge.concat([xe,Be(he,Me,a)]);break}return xe},cfb}var cfb8={},hasRequiredCfb8;function requireCfb8(){if(hasRequiredCfb8)return cfb8;hasRequiredCfb8=1;var ge=requireSafeBuffer$1().Buffer;function Ee(Be,he,Me){var a=Be._cipher.encryptBlock(Be._prev),xe=a[0]^he;return Be._prev=ge.concat([Be._prev.slice(1),ge.from([Me?he:xe])]),xe}return cfb8.encrypt=function(Be,he,Me){for(var a=he.length,xe=ge.allocUnsafe(a),pe=-1;++pe<a;)xe[pe]=Ee(Be,he[pe],Me);return xe},cfb8}var cfb1={},hasRequiredCfb1;function requireCfb1(){if(hasRequiredCfb1)return cfb1;hasRequiredCfb1=1;var ge=requireSafeBuffer$1().Buffer;function Ee(he,Me,a){for(var xe,pe=-1,ve=8,fe=0,c,ue;++pe<ve;)xe=he._cipher.encryptBlock(he._prev),c=Me&1<<7-pe?128:0,ue=xe[0]^c,fe+=(ue&128)>>pe%8,he._prev=Be(he._prev,a?c:ue);return fe}function Be(he,Me){var a=he.length,xe=-1,pe=ge.allocUnsafe(he.length);for(he=ge.concat([he,ge.from([Me])]);++xe<a;)pe[xe]=he[xe]<<1|he[xe+1]>>7;return pe}return cfb1.encrypt=function(he,Me,a){for(var xe=Me.length,pe=ge.allocUnsafe(xe),ve=-1;++ve<xe;)pe[ve]=Ee(he,Me[ve],a);return pe},cfb1}var ofb={},hasRequiredOfb;function requireOfb(){if(hasRequiredOfb)return ofb;hasRequiredOfb=1;var ge=requireBufferXor();function Ee(Be){return Be._prev=Be._cipher.encryptBlock(Be._prev),Be._prev}return ofb.encrypt=function(Be,he){for(;Be._cache.length<he.length;)Be._cache=Buffer.concat([Be._cache,Ee(Be)]);var Me=Be._cache.slice(0,he.length);return Be._cache=Be._cache.slice(he.length),ge(he,Me)},ofb}var ctr={},incr32_1,hasRequiredIncr32;function requireIncr32(){if(hasRequiredIncr32)return incr32_1;hasRequiredIncr32=1;function ge(Ee){for(var Be=Ee.length,he;Be--;)if(he=Ee.readUInt8(Be),he===255)Ee.writeUInt8(0,Be);else{he++,Ee.writeUInt8(he,Be);break}}return incr32_1=ge,incr32_1}var hasRequiredCtr;function requireCtr(){if(hasRequiredCtr)return ctr;hasRequiredCtr=1;var ge=requireBufferXor(),Ee=requireSafeBuffer$1().Buffer,Be=requireIncr32();function he(a){var xe=a._cipher.encryptBlockRaw(a._prev);return Be(a._prev),xe}var Me=16;return ctr.encrypt=function(a,xe){var pe=Math.ceil(xe.length/Me),ve=a._cache.length;a._cache=Ee.concat([a._cache,Ee.allocUnsafe(pe*Me)]);for(var fe=0;fe<pe;fe++){var c=he(a),ue=ve+fe*Me;a._cache.writeUInt32BE(c[0],ue+0),a._cache.writeUInt32BE(c[1],ue+4),a._cache.writeUInt32BE(c[2],ue+8),a._cache.writeUInt32BE(c[3],ue+12)}var de=a._cache.slice(0,xe.length);return a._cache=a._cache.slice(xe.length),ge(xe,de)},ctr}const aes128={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},require$$2={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128,aes192,aes256,"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}};var modes_1,hasRequiredModes$1;function requireModes$1(){if(hasRequiredModes$1)return modes_1;hasRequiredModes$1=1;var ge={ECB:requireEcb(),CBC:requireCbc(),CFB:requireCfb(),CFB8:requireCfb8(),CFB1:requireCfb1(),OFB:requireOfb(),CTR:requireCtr(),GCM:requireCtr()},Ee=require$$2;for(var Be in Ee)Ee[Be].module=ge[Ee[Be].mode];return modes_1=Ee,modes_1}var aes$2={},hasRequiredAes$1;function requireAes$1(){if(hasRequiredAes$1)return aes$2;hasRequiredAes$1=1;var ge=requireSafeBuffer$1().Buffer;function Ee(pe){ge.isBuffer(pe)||(pe=ge.from(pe));for(var ve=pe.length/4|0,fe=new Array(ve),c=0;c<ve;c++)fe[c]=pe.readUInt32BE(c*4);return fe}function Be(pe){for(var ve=0;ve<pe.length;pe++)pe[ve]=0}function he(pe,ve,fe,c,ue){for(var de=fe[0],me=fe[1],be=fe[2],ye=fe[3],_e=pe[0]^ve[0],Ae=pe[1]^ve[1],we=pe[2]^ve[2],Re=pe[3]^ve[3],Se,$e,Te,We,Ze=4,Ne=1;Ne<ue;Ne++)Se=de[_e>>>24]^me[Ae>>>16&255]^be[we>>>8&255]^ye[Re&255]^ve[Ze++],$e=de[Ae>>>24]^me[we>>>16&255]^be[Re>>>8&255]^ye[_e&255]^ve[Ze++],Te=de[we>>>24]^me[Re>>>16&255]^be[_e>>>8&255]^ye[Ae&255]^ve[Ze++],We=de[Re>>>24]^me[_e>>>16&255]^be[Ae>>>8&255]^ye[we&255]^ve[Ze++],_e=Se,Ae=$e,we=Te,Re=We;return Se=(c[_e>>>24]<<24|c[Ae>>>16&255]<<16|c[we>>>8&255]<<8|c[Re&255])^ve[Ze++],$e=(c[Ae>>>24]<<24|c[we>>>16&255]<<16|c[Re>>>8&255]<<8|c[_e&255])^ve[Ze++],Te=(c[we>>>24]<<24|c[Re>>>16&255]<<16|c[_e>>>8&255]<<8|c[Ae&255])^ve[Ze++],We=(c[Re>>>24]<<24|c[_e>>>16&255]<<16|c[Ae>>>8&255]<<8|c[we&255])^ve[Ze++],Se=Se>>>0,$e=$e>>>0,Te=Te>>>0,We=We>>>0,[Se,$e,Te,We]}var Me=[0,1,2,4,8,16,32,64,128,27,54],a=(function(){for(var pe=new Array(256),ve=0;ve<256;ve++)ve<128?pe[ve]=ve<<1:pe[ve]=ve<<1^283;for(var fe=[],c=[],ue=[[],[],[],[]],de=[[],[],[],[]],me=0,be=0,ye=0;ye<256;++ye){var _e=be^be<<1^be<<2^be<<3^be<<4;_e=_e>>>8^_e&255^99,fe[me]=_e,c[_e]=me;var Ae=pe[me],we=pe[Ae],Re=pe[we],Se=pe[_e]*257^_e*16843008;ue[0][me]=Se<<24|Se>>>8,ue[1][me]=Se<<16|Se>>>16,ue[2][me]=Se<<8|Se>>>24,ue[3][me]=Se,Se=Re*16843009^we*65537^Ae*257^me*16843008,de[0][_e]=Se<<24|Se>>>8,de[1][_e]=Se<<16|Se>>>16,de[2][_e]=Se<<8|Se>>>24,de[3][_e]=Se,me===0?me=be=1:(me=Ae^pe[pe[pe[Re^Ae]]],be^=pe[pe[be]])}return{SBOX:fe,INV_SBOX:c,SUB_MIX:ue,INV_SUB_MIX:de}})();function xe(pe){this._key=Ee(pe),this._reset()}return xe.blockSize=16,xe.keySize=256/8,xe.prototype.blockSize=xe.blockSize,xe.prototype.keySize=xe.keySize,xe.prototype._reset=function(){for(var pe=this._key,ve=pe.length,fe=ve+6,c=(fe+1)*4,ue=[],de=0;de<ve;de++)ue[de]=pe[de];for(de=ve;de<c;de++){var me=ue[de-1];de%ve===0?(me=me<<8|me>>>24,me=a.SBOX[me>>>24]<<24|a.SBOX[me>>>16&255]<<16|a.SBOX[me>>>8&255]<<8|a.SBOX[me&255],me^=Me[de/ve|0]<<24):ve>6&&de%ve===4&&(me=a.SBOX[me>>>24]<<24|a.SBOX[me>>>16&255]<<16|a.SBOX[me>>>8&255]<<8|a.SBOX[me&255]),ue[de]=ue[de-ve]^me}for(var be=[],ye=0;ye<c;ye++){var _e=c-ye,Ae=ue[_e-(ye%4?0:4)];ye<4||_e<=4?be[ye]=Ae:be[ye]=a.INV_SUB_MIX[0][a.SBOX[Ae>>>24]]^a.INV_SUB_MIX[1][a.SBOX[Ae>>>16&255]]^a.INV_SUB_MIX[2][a.SBOX[Ae>>>8&255]]^a.INV_SUB_MIX[3][a.SBOX[Ae&255]]}this._nRounds=fe,this._keySchedule=ue,this._invKeySchedule=be},xe.prototype.encryptBlockRaw=function(pe){return pe=Ee(pe),he(pe,this._keySchedule,a.SUB_MIX,a.SBOX,this._nRounds)},xe.prototype.encryptBlock=function(pe){var ve=this.encryptBlockRaw(pe),fe=ge.allocUnsafe(16);return fe.writeUInt32BE(ve[0],0),fe.writeUInt32BE(ve[1],4),fe.writeUInt32BE(ve[2],8),fe.writeUInt32BE(ve[3],12),fe},xe.prototype.decryptBlock=function(pe){pe=Ee(pe);var ve=pe[1];pe[1]=pe[3],pe[3]=ve;var fe=he(pe,this._invKeySchedule,a.INV_SUB_MIX,a.INV_SBOX,this._nRounds),c=ge.allocUnsafe(16);return c.writeUInt32BE(fe[0],0),c.writeUInt32BE(fe[3],4),c.writeUInt32BE(fe[2],8),c.writeUInt32BE(fe[1],12),c},xe.prototype.scrub=function(){Be(this._keySchedule),Be(this._invKeySchedule),Be(this._key)},aes$2.AES=xe,aes$2}var ghash,hasRequiredGhash;function requireGhash(){if(hasRequiredGhash)return ghash;hasRequiredGhash=1;var ge=requireSafeBuffer$1().Buffer,Ee=ge.alloc(16,0);function Be(a){return[a.readUInt32BE(0),a.readUInt32BE(4),a.readUInt32BE(8),a.readUInt32BE(12)]}function he(a){var xe=ge.allocUnsafe(16);return xe.writeUInt32BE(a[0]>>>0,0),xe.writeUInt32BE(a[1]>>>0,4),xe.writeUInt32BE(a[2]>>>0,8),xe.writeUInt32BE(a[3]>>>0,12),xe}function Me(a){this.h=a,this.state=ge.alloc(16,0),this.cache=ge.allocUnsafe(0)}return Me.prototype.ghash=function(a){for(var xe=-1;++xe<a.length;)this.state[xe]^=a[xe];this._multiply()},Me.prototype._multiply=function(){for(var a=Be(this.h),xe=[0,0,0,0],pe,ve,fe,c=-1;++c<128;){for(ve=(this.state[~~(c/8)]&1<<7-c%8)!==0,ve&&(xe[0]^=a[0],xe[1]^=a[1],xe[2]^=a[2],xe[3]^=a[3]),fe=(a[3]&1)!==0,pe=3;pe>0;pe--)a[pe]=a[pe]>>>1|(a[pe-1]&1)<<31;a[0]=a[0]>>>1,fe&&(a[0]=a[0]^225<<24)}this.state=he(xe)},Me.prototype.update=function(a){this.cache=ge.concat([this.cache,a]);for(var xe;this.cache.length>=16;)xe=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(xe)},Me.prototype.final=function(a,xe){return this.cache.length&&this.ghash(ge.concat([this.cache,Ee],16)),this.ghash(he([0,a,0,xe])),this.state},ghash=Me,ghash}var authCipher,hasRequiredAuthCipher;function requireAuthCipher(){if(hasRequiredAuthCipher)return authCipher;hasRequiredAuthCipher=1;var ge=requireAes$1(),Ee=requireSafeBuffer$1().Buffer,Be=requireCipherBase(),he=requireInherits_browser(),Me=requireGhash(),a=requireBufferXor(),xe=requireIncr32();function pe(c,ue){var de=0;c.length!==ue.length&&de++;for(var me=Math.min(c.length,ue.length),be=0;be<me;++be)de+=c[be]^ue[be];return de}function ve(c,ue,de){if(ue.length===12)return c._finID=Ee.concat([ue,Ee.from([0,0,0,1])]),Ee.concat([ue,Ee.from([0,0,0,2])]);var me=new Me(de),be=ue.length,ye=be%16;me.update(ue),ye&&(ye=16-ye,me.update(Ee.alloc(ye,0))),me.update(Ee.alloc(8,0));var _e=be*8,Ae=Ee.alloc(8);Ae.writeUIntBE(_e,0,8),me.update(Ae),c._finID=me.state;var we=Ee.from(c._finID);return xe(we),we}function fe(c,ue,de,me){Be.call(this);var be=Ee.alloc(4,0);this._cipher=new ge.AES(ue);var ye=this._cipher.encryptBlock(be);this._ghash=new Me(ye),de=ve(this,de,ye),this._prev=Ee.from(de),this._cache=Ee.allocUnsafe(0),this._secCache=Ee.allocUnsafe(0),this._decrypt=me,this._alen=0,this._len=0,this._mode=c,this._authTag=null,this._called=!1}return he(fe,Be),fe.prototype._update=function(c){if(!this._called&&this._alen){var ue=16-this._alen%16;ue<16&&(ue=Ee.alloc(ue,0),this._ghash.update(ue))}this._called=!0;var de=this._mode.encrypt(this,c);return this._decrypt?this._ghash.update(c):this._ghash.update(de),this._len+=c.length,de},fe.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var c=a(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&pe(c,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=c,this._cipher.scrub()},fe.prototype.getAuthTag=function(){if(this._decrypt||!Ee.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},fe.prototype.setAuthTag=function(ue){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=ue},fe.prototype.setAAD=function(ue){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(ue),this._alen+=ue.length},authCipher=fe,authCipher}var streamCipher,hasRequiredStreamCipher;function requireStreamCipher(){if(hasRequiredStreamCipher)return streamCipher;hasRequiredStreamCipher=1;var ge=requireAes$1(),Ee=requireSafeBuffer$1().Buffer,Be=requireCipherBase(),he=requireInherits_browser();function Me(a,xe,pe,ve){Be.call(this),this._cipher=new ge.AES(xe),this._prev=Ee.from(pe),this._cache=Ee.allocUnsafe(0),this._secCache=Ee.allocUnsafe(0),this._decrypt=ve,this._mode=a}return he(Me,Be),Me.prototype._update=function(a){return this._mode.encrypt(this,a,this._decrypt)},Me.prototype._final=function(){this._cipher.scrub()},streamCipher=Me,streamCipher}var evp_bytestokey,hasRequiredEvp_bytestokey;function requireEvp_bytestokey(){if(hasRequiredEvp_bytestokey)return evp_bytestokey;hasRequiredEvp_bytestokey=1;var ge=requireSafeBuffer$1().Buffer,Ee=requireMd5_js();function Be(he,Me,a,xe){if(ge.isBuffer(he)||(he=ge.from(he,"binary")),Me&&(ge.isBuffer(Me)||(Me=ge.from(Me,"binary")),Me.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var pe=a/8,ve=ge.alloc(pe),fe=ge.alloc(xe||0),c=ge.alloc(0);pe>0||xe>0;){var ue=new Ee;ue.update(c),ue.update(he),Me&&ue.update(Me),c=ue.digest();var de=0;if(pe>0){var me=ve.length-pe;de=Math.min(pe,c.length),c.copy(ve,me,0,de),pe-=de}if(de<c.length&&xe>0){var be=fe.length-xe,ye=Math.min(xe,c.length-de);c.copy(fe,be,de,de+ye),xe-=ye}}return c.fill(0),{key:ve,iv:fe}}return evp_bytestokey=Be,evp_bytestokey}var hasRequiredEncrypter;function requireEncrypter(){if(hasRequiredEncrypter)return encrypter;hasRequiredEncrypter=1;var ge=requireModes$1(),Ee=requireAuthCipher(),Be=requireSafeBuffer$1().Buffer,he=requireStreamCipher(),Me=requireCipherBase(),a=requireAes$1(),xe=requireEvp_bytestokey(),pe=requireInherits_browser();function ve(me,be,ye){Me.call(this),this._cache=new c,this._cipher=new a.AES(be),this._prev=Be.from(ye),this._mode=me,this._autopadding=!0}pe(ve,Me),ve.prototype._update=function(me){this._cache.add(me);for(var be,ye,_e=[];be=this._cache.get();)ye=this._mode.encrypt(this,be),_e.push(ye);return Be.concat(_e)};var fe=Be.alloc(16,16);ve.prototype._final=function(){var me=this._cache.flush();if(this._autopadding)return me=this._mode.encrypt(this,me),this._cipher.scrub(),me;if(!me.equals(fe))throw this._cipher.scrub(),new Error("data not multiple of block length")},ve.prototype.setAutoPadding=function(me){return this._autopadding=!!me,this};function c(){this.cache=Be.allocUnsafe(0)}c.prototype.add=function(me){this.cache=Be.concat([this.cache,me])},c.prototype.get=function(){if(this.cache.length>15){var me=this.cache.slice(0,16);return this.cache=this.cache.slice(16),me}return null},c.prototype.flush=function(){for(var me=16-this.cache.length,be=Be.allocUnsafe(me),ye=-1;++ye<me;)be.writeUInt8(me,ye);return Be.concat([this.cache,be])};function ue(me,be,ye){var _e=ge[me.toLowerCase()];if(!_e)throw new TypeError("invalid suite type");if(typeof be=="string"&&(be=Be.from(be)),be.length!==_e.key/8)throw new TypeError("invalid key length "+be.length);if(typeof ye=="string"&&(ye=Be.from(ye)),_e.mode!=="GCM"&&ye.length!==_e.iv)throw new TypeError("invalid iv length "+ye.length);return _e.type==="stream"?new he(_e.module,be,ye):_e.type==="auth"?new Ee(_e.module,be,ye):new ve(_e.module,be,ye)}function de(me,be){var ye=ge[me.toLowerCase()];if(!ye)throw new TypeError("invalid suite type");var _e=xe(be,!1,ye.key,ye.iv);return ue(me,_e.key,_e.iv)}return encrypter.createCipheriv=ue,encrypter.createCipher=de,encrypter}var decrypter={},hasRequiredDecrypter;function requireDecrypter(){if(hasRequiredDecrypter)return decrypter;hasRequiredDecrypter=1;var ge=requireAuthCipher(),Ee=requireSafeBuffer$1().Buffer,Be=requireModes$1(),he=requireStreamCipher(),Me=requireCipherBase(),a=requireAes$1(),xe=requireEvp_bytestokey(),pe=requireInherits_browser();function ve(me,be,ye){Me.call(this),this._cache=new fe,this._last=void 0,this._cipher=new a.AES(be),this._prev=Ee.from(ye),this._mode=me,this._autopadding=!0}pe(ve,Me),ve.prototype._update=function(me){this._cache.add(me);for(var be,ye,_e=[];be=this._cache.get(this._autopadding);)ye=this._mode.decrypt(this,be),_e.push(ye);return Ee.concat(_e)},ve.prototype._final=function(){var me=this._cache.flush();if(this._autopadding)return c(this._mode.decrypt(this,me));if(me)throw new Error("data not multiple of block length")},ve.prototype.setAutoPadding=function(me){return this._autopadding=!!me,this};function fe(){this.cache=Ee.allocUnsafe(0)}fe.prototype.add=function(me){this.cache=Ee.concat([this.cache,me])},fe.prototype.get=function(me){var be;if(me){if(this.cache.length>16)return be=this.cache.slice(0,16),this.cache=this.cache.slice(16),be}else if(this.cache.length>=16)return be=this.cache.slice(0,16),this.cache=this.cache.slice(16),be;return null},fe.prototype.flush=function(){if(this.cache.length)return this.cache};function c(me){var be=me[15];if(be<1||be>16)throw new Error("unable to decrypt data");for(var ye=-1;++ye<be;)if(me[ye+(16-be)]!==be)throw new Error("unable to decrypt data");if(be!==16)return me.slice(0,16-be)}function ue(me,be,ye){var _e=Be[me.toLowerCase()];if(!_e)throw new TypeError("invalid suite type");if(typeof ye=="string"&&(ye=Ee.from(ye)),_e.mode!=="GCM"&&ye.length!==_e.iv)throw new TypeError("invalid iv length "+ye.length);if(typeof be=="string"&&(be=Ee.from(be)),be.length!==_e.key/8)throw new TypeError("invalid key length "+be.length);return _e.type==="stream"?new he(_e.module,be,ye,!0):_e.type==="auth"?new ge(_e.module,be,ye,!0):new ve(_e.module,be,ye)}function de(me,be){var ye=Be[me.toLowerCase()];if(!ye)throw new TypeError("invalid suite type");var _e=xe(be,!1,ye.key,ye.iv);return ue(me,_e.key,_e.iv)}return decrypter.createDecipher=de,decrypter.createDecipheriv=ue,decrypter}var hasRequiredBrowser$6;function requireBrowser$6(){if(hasRequiredBrowser$6)return browser$5;hasRequiredBrowser$6=1;var ge=requireEncrypter(),Ee=requireDecrypter(),Be=require$$2;function he(){return Object.keys(Be)}return browser$5.createCipher=browser$5.Cipher=ge.createCipher,browser$5.createCipheriv=browser$5.Cipheriv=ge.createCipheriv,browser$5.createDecipher=browser$5.Decipher=Ee.createDecipher,browser$5.createDecipheriv=browser$5.Decipheriv=Ee.createDecipheriv,browser$5.listCiphers=browser$5.getCiphers=he,browser$5}var modes={},hasRequiredModes;function requireModes(){return hasRequiredModes||(hasRequiredModes=1,(function(ge){ge["des-ecb"]={key:8,iv:0},ge["des-cbc"]=ge.des={key:8,iv:8},ge["des-ede3-cbc"]=ge.des3={key:24,iv:8},ge["des-ede3"]={key:24,iv:0},ge["des-ede-cbc"]={key:16,iv:8},ge["des-ede"]={key:16,iv:0}})(modes)),modes}var hasRequiredBrowser$5;function requireBrowser$5(){if(hasRequiredBrowser$5)return browser$6;hasRequiredBrowser$5=1;var ge=requireBrowserifyDes(),Ee=requireBrowser$6(),Be=requireModes$1(),he=requireModes(),Me=requireEvp_bytestokey();function a(c,ue){c=c.toLowerCase();var de,me;if(Be[c])de=Be[c].key,me=Be[c].iv;else if(he[c])de=he[c].key*8,me=he[c].iv;else throw new TypeError("invalid suite type");var be=Me(ue,!1,de,me);return pe(c,be.key,be.iv)}function xe(c,ue){c=c.toLowerCase();var de,me;if(Be[c])de=Be[c].key,me=Be[c].iv;else if(he[c])de=he[c].key*8,me=he[c].iv;else throw new TypeError("invalid suite type");var be=Me(ue,!1,de,me);return ve(c,be.key,be.iv)}function pe(c,ue,de){if(c=c.toLowerCase(),Be[c])return Ee.createCipheriv(c,ue,de);if(he[c])return new ge({key:ue,iv:de,mode:c});throw new TypeError("invalid suite type")}function ve(c,ue,de){if(c=c.toLowerCase(),Be[c])return Ee.createDecipheriv(c,ue,de);if(he[c])return new ge({key:ue,iv:de,mode:c,decrypt:!0});throw new TypeError("invalid suite type")}function fe(){return Object.keys(he).concat(Ee.getCiphers())}return browser$6.createCipher=browser$6.Cipher=a,browser$6.createCipheriv=browser$6.Cipheriv=pe,browser$6.createDecipher=browser$6.Decipher=xe,browser$6.createDecipheriv=browser$6.Decipheriv=ve,browser$6.listCiphers=browser$6.getCiphers=fe,browser$6}var browser$4={},bn$b={exports:{}},bn$a=bn$b.exports,hasRequiredBn$5;function requireBn$5(){return hasRequiredBn$5||(hasRequiredBn$5=1,(function(ge){(function(Ee,Be){function he(l,e){if(!l)throw new Error(e||"Assertion failed")}function Me(l,e){l.super_=e;var t=function(){};t.prototype=e.prototype,l.prototype=new t,l.prototype.constructor=l}function a(l,e,t){if(a.isBN(l))return l;this.negative=0,this.words=null,this.length=0,this.red=null,l!==null&&((e==="le"||e==="be")&&(t=e,e=10),this._init(l||0,e||10,t||"be"))}typeof Ee=="object"?Ee.exports=a:Be.BN=a,a.BN=a,a.wordSize=26;var xe;try{typeof window<"u"&&typeof window.Buffer<"u"?xe=window.Buffer:xe=requireDist().Buffer}catch{}a.isBN=function(e){return e instanceof a?!0:e!==null&&typeof e=="object"&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,i){if(typeof e=="number")return this._initNumber(e,t,i);if(typeof e=="object")return this._initArray(e,t,i);t==="hex"&&(t=16),he(t===(t|0)&&t>=2&&t<=36),e=e.toString().replace(/\s+/g,"");var n=0;e[0]==="-"&&(n++,this.negative=1),n<e.length&&(t===16?this._parseHex(e,n,i):(this._parseBase(e,t,n),i==="le"&&this._initArray(this.toArray(),t,i)))},a.prototype._initNumber=function(e,t,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[e&67108863],this.length=1):e<4503599627370496?(this.words=[e&67108863,e/67108864&67108863],this.length=2):(he(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),i==="le"&&this._initArray(this.toArray(),t,i)},a.prototype._initArray=function(e,t,i){if(he(typeof e.length=="number"),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var d,m,se=0;if(i==="be")for(n=e.length-1,d=0;n>=0;n-=3)m=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[d]|=m<<se&67108863,this.words[d+1]=m>>>26-se&67108863,se+=24,se>=26&&(se-=26,d++);else if(i==="le")for(n=0,d=0;n<e.length;n+=3)m=e[n]|e[n+1]<<8|e[n+2]<<16,this.words[d]|=m<<se&67108863,this.words[d+1]=m>>>26-se&67108863,se+=24,se>=26&&(se-=26,d++);return this.strip()};function pe(l,e){var t=l.charCodeAt(e);return t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:t-48&15}function ve(l,e,t){var i=pe(l,t);return t-1>=e&&(i|=pe(l,t-1)<<4),i}a.prototype._parseHex=function(e,t,i){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var d=0,m=0,se;if(i==="be")for(n=e.length-1;n>=t;n-=2)se=ve(e,t,n)<<d,this.words[m]|=se&67108863,d>=18?(d-=18,m+=1,this.words[m]|=se>>>26):d+=8;else{var s=e.length-t;for(n=s%2===0?t+1:t;n<e.length;n+=2)se=ve(e,t,n)<<d,this.words[m]|=se&67108863,d>=18?(d-=18,m+=1,this.words[m]|=se>>>26):d+=8}this.strip()};function fe(l,e,t,i){for(var n=0,d=Math.min(l.length,t),m=e;m<d;m++){var se=l.charCodeAt(m)-48;n*=i,se>=49?n+=se-49+10:se>=17?n+=se-17+10:n+=se}return n}a.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var n=0,d=1;d<=67108863;d*=t)n++;n--,d=d/t|0;for(var m=e.length-i,se=m%n,s=Math.min(m,m-se)+i,r=0,o=i;o<s;o+=n)r=fe(e,o,o+n,t),this.imuln(d),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r);if(se!==0){var Ce=1;for(r=fe(e,o,e.length,t),o=0;o<se;o++)Ce*=t;this.imuln(Ce),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r)}this.strip()},a.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],ue=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],de=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(e,t){e=e||10,t=t|0||1;var i;if(e===16||e==="hex"){i="";for(var n=0,d=0,m=0;m<this.length;m++){var se=this.words[m],s=((se<<n|d)&16777215).toString(16);d=se>>>24-n&16777215,n+=2,n>=26&&(n-=26,m--),d!==0||m!==this.length-1?i=c[6-s.length]+s+i:i=s+i}for(d!==0&&(i=d.toString(16)+i);i.length%t!==0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}if(e===(e|0)&&e>=2&&e<=36){var r=ue[e],o=de[e];i="";var Ce=this.clone();for(Ce.negative=0;!Ce.isZero();){var De=Ce.modn(o).toString(e);Ce=Ce.idivn(o),Ce.isZero()?i=De+i:i=c[r-De.length]+De+i}for(this.isZero()&&(i="0"+i);i.length%t!==0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}he(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=this.words[1]*67108864:this.length===3&&this.words[2]===1?e+=4503599627370496+this.words[1]*67108864:this.length>2&&he(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return he(typeof xe<"u"),this.toArrayLike(xe,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,i){var n=this.byteLength(),d=i||Math.max(1,n);he(n<=d,"byte array longer than desired length"),he(d>0,"Requested array length <= 0"),this.strip();var m=t==="le",se=new e(d),s,r,o=this.clone();if(m){for(r=0;!o.isZero();r++)s=o.andln(255),o.iushrn(8),se[r]=s;for(;r<d;r++)se[r]=0}else{for(r=0;r<d-n;r++)se[r]=0;for(r=0;!o.isZero();r++)s=o.andln(255),o.iushrn(8),se[d-r-1]=s}return se},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},a.prototype._zeroBits=function(e){if(e===0)return 26;var t=e,i=0;return(t&8191)===0&&(i+=13,t>>>=13),(t&127)===0&&(i+=7,t>>>=7),(t&15)===0&&(i+=4,t>>>=4),(t&3)===0&&(i+=2,t>>>=2),(t&1)===0&&i++,i},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t};function me(l){for(var e=new Array(l.bitLength()),t=0;t<e.length;t++){var i=t/26|0,n=t%26;e[t]=(l.words[i]&1<<n)>>>n}return e}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var i=this._zeroBits(this.words[t]);if(e+=i,i!==26)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},a.prototype.ior=function(e){return he((this.negative|e.negative)===0),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;this.length>e.length?t=e:t=this;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=t.length,this.strip()},a.prototype.iand=function(e){return he((this.negative|e.negative)===0),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=t.words[n]^i.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},a.prototype.ixor=function(e){return he((this.negative|e.negative)===0),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){he(typeof e=="number"&&e>=0);var t=Math.ceil(e/26)|0,i=e%26;this._expand(t),i>0&&t--;for(var n=0;n<t;n++)this.words[n]=~this.words[n]&67108863;for(i>0&&(this.words[n]=~this.words[n]&67108863>>26-i,n++);n<this.length;n++)this.words[n]=0;return this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){he(typeof e=="number"&&e>=0);var i=e/26|0,n=e%26;return this._expand(i+1),t?this.words[i]=this.words[i]|1<<n:this.words[i]=this.words[i]&~(1<<n),this.strip()},a.prototype.iadd=function(e){var t;if(this.negative!==0&&e.negative===0)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();var i,n;this.length>e.length?(i=this,n=e):(i=e,n=this);for(var d=0,m=0;m<n.length;m++)t=(i.words[m]|0)+(n.words[m]|0)+d,this.words[m]=t&67108863,d=t>>>26;for(;d!==0&&m<i.length;m++)t=(i.words[m]|0)+d,this.words[m]=t&67108863,d=t>>>26;if(this.length=i.length,d!==0)this.words[this.length]=d,this.length++;else if(i!==this)for(;m<i.length;m++)this.words[m]=i.words[m];return this},a.prototype.add=function(e){var t;return e.negative!==0&&this.negative===0?(e.negative=0,t=this.sub(e),e.negative^=1,t):e.negative===0&&this.negative!==0?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(i===0)return this.negative=0,this.length=1,this.words[0]=0,this;var n,d;i>0?(n=this,d=e):(n=e,d=this);for(var m=0,se=0;se<d.length;se++)t=(n.words[se]|0)-(d.words[se]|0)+m,m=t>>26,this.words[se]=t&67108863;for(;m!==0&&se<n.length;se++)t=(n.words[se]|0)+m,m=t>>26,this.words[se]=t&67108863;if(m===0&&se<n.length&&n!==this)for(;se<n.length;se++)this.words[se]=n.words[se];return this.length=Math.max(this.length,se),n!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(e){return this.clone().isub(e)};function be(l,e,t){t.negative=e.negative^l.negative;var i=l.length+e.length|0;t.length=i,i=i-1|0;var n=l.words[0]|0,d=e.words[0]|0,m=n*d,se=m&67108863,s=m/67108864|0;t.words[0]=se;for(var r=1;r<i;r++){for(var o=s>>>26,Ce=s&67108863,De=Math.min(r,e.length-1),ke=Math.max(0,r-l.length+1);ke<=De;ke++){var Ue=r-ke|0;n=l.words[Ue]|0,d=e.words[ke]|0,m=n*d+Ce,o+=m/67108864|0,Ce=m&67108863}t.words[r]=Ce|0,s=o|0}return s!==0?t.words[r]=s|0:t.length--,t.strip()}var ye=function(e,t,i){var n=e.words,d=t.words,m=i.words,se=0,s,r,o,Ce=n[0]|0,De=Ce&8191,ke=Ce>>>13,Ue=n[1]|0,Pe=Ue&8191,qe=Ue>>>13,Ie=n[2]|0,Oe=Ie&8191,ze=Ie>>>13,Le=n[3]|0,Fe=Le&8191,He=Le>>>13,Ar=n[4]|0,Ge=Ar&8191,je=Ar>>>13,qr=n[5]|0,Ye=qr&8191,tr=qr>>>13,Rr=n[6]|0,Xe=Rr&8191,Ve=Rr>>>13,Sr=n[7]|0,Je=Sr&8191,er=Sr>>>13,Cr=n[8]|0,rr=Cr&8191,ir=Cr>>>13,Jr=n[9]|0,nr=Jr&8191,ar=Jr>>>13,kr=d[0]|0,cr=kr&8191,fr=kr>>>13,Qr=d[1]|0,vr=Qr&8191,pr=Qr>>>13,et=d[2]|0,br=et&8191,sr=et>>>13,rt=d[3]|0,or=rt&8191,xr=rt>>>13,tt=d[4]|0,gr=tt&8191,hr=tt>>>13,it=d[5]|0,yr=it&8191,ur=it>>>13,at=d[6]|0,dr=at&8191,Qe=at>>>13,Dr=d[7]|0,lr=Dr&8191,wr=Dr>>>13,nt=d[8]|0,Mr=nt&8191,_r=nt>>>13,ft=d[9]|0,Br=ft&8191,Er=ft>>>13;i.negative=e.negative^t.negative,i.length=19,s=Math.imul(De,cr),r=Math.imul(De,fr),r=r+Math.imul(ke,cr)|0,o=Math.imul(ke,fr);var Fr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Fr>>>26)|0,Fr&=67108863,s=Math.imul(Pe,cr),r=Math.imul(Pe,fr),r=r+Math.imul(qe,cr)|0,o=Math.imul(qe,fr),s=s+Math.imul(De,vr)|0,r=r+Math.imul(De,pr)|0,r=r+Math.imul(ke,vr)|0,o=o+Math.imul(ke,pr)|0;var Ir=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,s=Math.imul(Oe,cr),r=Math.imul(Oe,fr),r=r+Math.imul(ze,cr)|0,o=Math.imul(ze,fr),s=s+Math.imul(Pe,vr)|0,r=r+Math.imul(Pe,pr)|0,r=r+Math.imul(qe,vr)|0,o=o+Math.imul(qe,pr)|0,s=s+Math.imul(De,br)|0,r=r+Math.imul(De,sr)|0,r=r+Math.imul(ke,br)|0,o=o+Math.imul(ke,sr)|0;var $r=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+($r>>>26)|0,$r&=67108863,s=Math.imul(Fe,cr),r=Math.imul(Fe,fr),r=r+Math.imul(He,cr)|0,o=Math.imul(He,fr),s=s+Math.imul(Oe,vr)|0,r=r+Math.imul(Oe,pr)|0,r=r+Math.imul(ze,vr)|0,o=o+Math.imul(ze,pr)|0,s=s+Math.imul(Pe,br)|0,r=r+Math.imul(Pe,sr)|0,r=r+Math.imul(qe,br)|0,o=o+Math.imul(qe,sr)|0,s=s+Math.imul(De,or)|0,r=r+Math.imul(De,xr)|0,r=r+Math.imul(ke,or)|0,o=o+Math.imul(ke,xr)|0;var Pr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,s=Math.imul(Ge,cr),r=Math.imul(Ge,fr),r=r+Math.imul(je,cr)|0,o=Math.imul(je,fr),s=s+Math.imul(Fe,vr)|0,r=r+Math.imul(Fe,pr)|0,r=r+Math.imul(He,vr)|0,o=o+Math.imul(He,pr)|0,s=s+Math.imul(Oe,br)|0,r=r+Math.imul(Oe,sr)|0,r=r+Math.imul(ze,br)|0,o=o+Math.imul(ze,sr)|0,s=s+Math.imul(Pe,or)|0,r=r+Math.imul(Pe,xr)|0,r=r+Math.imul(qe,or)|0,o=o+Math.imul(qe,xr)|0,s=s+Math.imul(De,gr)|0,r=r+Math.imul(De,hr)|0,r=r+Math.imul(ke,gr)|0,o=o+Math.imul(ke,hr)|0;var Tr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,s=Math.imul(Ye,cr),r=Math.imul(Ye,fr),r=r+Math.imul(tr,cr)|0,o=Math.imul(tr,fr),s=s+Math.imul(Ge,vr)|0,r=r+Math.imul(Ge,pr)|0,r=r+Math.imul(je,vr)|0,o=o+Math.imul(je,pr)|0,s=s+Math.imul(Fe,br)|0,r=r+Math.imul(Fe,sr)|0,r=r+Math.imul(He,br)|0,o=o+Math.imul(He,sr)|0,s=s+Math.imul(Oe,or)|0,r=r+Math.imul(Oe,xr)|0,r=r+Math.imul(ze,or)|0,o=o+Math.imul(ze,xr)|0,s=s+Math.imul(Pe,gr)|0,r=r+Math.imul(Pe,hr)|0,r=r+Math.imul(qe,gr)|0,o=o+Math.imul(qe,hr)|0,s=s+Math.imul(De,yr)|0,r=r+Math.imul(De,ur)|0,r=r+Math.imul(ke,yr)|0,o=o+Math.imul(ke,ur)|0;var Nr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,s=Math.imul(Xe,cr),r=Math.imul(Xe,fr),r=r+Math.imul(Ve,cr)|0,o=Math.imul(Ve,fr),s=s+Math.imul(Ye,vr)|0,r=r+Math.imul(Ye,pr)|0,r=r+Math.imul(tr,vr)|0,o=o+Math.imul(tr,pr)|0,s=s+Math.imul(Ge,br)|0,r=r+Math.imul(Ge,sr)|0,r=r+Math.imul(je,br)|0,o=o+Math.imul(je,sr)|0,s=s+Math.imul(Fe,or)|0,r=r+Math.imul(Fe,xr)|0,r=r+Math.imul(He,or)|0,o=o+Math.imul(He,xr)|0,s=s+Math.imul(Oe,gr)|0,r=r+Math.imul(Oe,hr)|0,r=r+Math.imul(ze,gr)|0,o=o+Math.imul(ze,hr)|0,s=s+Math.imul(Pe,yr)|0,r=r+Math.imul(Pe,ur)|0,r=r+Math.imul(qe,yr)|0,o=o+Math.imul(qe,ur)|0,s=s+Math.imul(De,dr)|0,r=r+Math.imul(De,Qe)|0,r=r+Math.imul(ke,dr)|0,o=o+Math.imul(ke,Qe)|0;var Lr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,s=Math.imul(Je,cr),r=Math.imul(Je,fr),r=r+Math.imul(er,cr)|0,o=Math.imul(er,fr),s=s+Math.imul(Xe,vr)|0,r=r+Math.imul(Xe,pr)|0,r=r+Math.imul(Ve,vr)|0,o=o+Math.imul(Ve,pr)|0,s=s+Math.imul(Ye,br)|0,r=r+Math.imul(Ye,sr)|0,r=r+Math.imul(tr,br)|0,o=o+Math.imul(tr,sr)|0,s=s+Math.imul(Ge,or)|0,r=r+Math.imul(Ge,xr)|0,r=r+Math.imul(je,or)|0,o=o+Math.imul(je,xr)|0,s=s+Math.imul(Fe,gr)|0,r=r+Math.imul(Fe,hr)|0,r=r+Math.imul(He,gr)|0,o=o+Math.imul(He,hr)|0,s=s+Math.imul(Oe,yr)|0,r=r+Math.imul(Oe,ur)|0,r=r+Math.imul(ze,yr)|0,o=o+Math.imul(ze,ur)|0,s=s+Math.imul(Pe,dr)|0,r=r+Math.imul(Pe,Qe)|0,r=r+Math.imul(qe,dr)|0,o=o+Math.imul(qe,Qe)|0,s=s+Math.imul(De,lr)|0,r=r+Math.imul(De,wr)|0,r=r+Math.imul(ke,lr)|0,o=o+Math.imul(ke,wr)|0;var Or=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Or>>>26)|0,Or&=67108863,s=Math.imul(rr,cr),r=Math.imul(rr,fr),r=r+Math.imul(ir,cr)|0,o=Math.imul(ir,fr),s=s+Math.imul(Je,vr)|0,r=r+Math.imul(Je,pr)|0,r=r+Math.imul(er,vr)|0,o=o+Math.imul(er,pr)|0,s=s+Math.imul(Xe,br)|0,r=r+Math.imul(Xe,sr)|0,r=r+Math.imul(Ve,br)|0,o=o+Math.imul(Ve,sr)|0,s=s+Math.imul(Ye,or)|0,r=r+Math.imul(Ye,xr)|0,r=r+Math.imul(tr,or)|0,o=o+Math.imul(tr,xr)|0,s=s+Math.imul(Ge,gr)|0,r=r+Math.imul(Ge,hr)|0,r=r+Math.imul(je,gr)|0,o=o+Math.imul(je,hr)|0,s=s+Math.imul(Fe,yr)|0,r=r+Math.imul(Fe,ur)|0,r=r+Math.imul(He,yr)|0,o=o+Math.imul(He,ur)|0,s=s+Math.imul(Oe,dr)|0,r=r+Math.imul(Oe,Qe)|0,r=r+Math.imul(ze,dr)|0,o=o+Math.imul(ze,Qe)|0,s=s+Math.imul(Pe,lr)|0,r=r+Math.imul(Pe,wr)|0,r=r+Math.imul(qe,lr)|0,o=o+Math.imul(qe,wr)|0,s=s+Math.imul(De,Mr)|0,r=r+Math.imul(De,_r)|0,r=r+Math.imul(ke,Mr)|0,o=o+Math.imul(ke,_r)|0;var Ur=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,s=Math.imul(nr,cr),r=Math.imul(nr,fr),r=r+Math.imul(ar,cr)|0,o=Math.imul(ar,fr),s=s+Math.imul(rr,vr)|0,r=r+Math.imul(rr,pr)|0,r=r+Math.imul(ir,vr)|0,o=o+Math.imul(ir,pr)|0,s=s+Math.imul(Je,br)|0,r=r+Math.imul(Je,sr)|0,r=r+Math.imul(er,br)|0,o=o+Math.imul(er,sr)|0,s=s+Math.imul(Xe,or)|0,r=r+Math.imul(Xe,xr)|0,r=r+Math.imul(Ve,or)|0,o=o+Math.imul(Ve,xr)|0,s=s+Math.imul(Ye,gr)|0,r=r+Math.imul(Ye,hr)|0,r=r+Math.imul(tr,gr)|0,o=o+Math.imul(tr,hr)|0,s=s+Math.imul(Ge,yr)|0,r=r+Math.imul(Ge,ur)|0,r=r+Math.imul(je,yr)|0,o=o+Math.imul(je,ur)|0,s=s+Math.imul(Fe,dr)|0,r=r+Math.imul(Fe,Qe)|0,r=r+Math.imul(He,dr)|0,o=o+Math.imul(He,Qe)|0,s=s+Math.imul(Oe,lr)|0,r=r+Math.imul(Oe,wr)|0,r=r+Math.imul(ze,lr)|0,o=o+Math.imul(ze,wr)|0,s=s+Math.imul(Pe,Mr)|0,r=r+Math.imul(Pe,_r)|0,r=r+Math.imul(qe,Mr)|0,o=o+Math.imul(qe,_r)|0,s=s+Math.imul(De,Br)|0,r=r+Math.imul(De,Er)|0,r=r+Math.imul(ke,Br)|0,o=o+Math.imul(ke,Er)|0;var Hr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Hr>>>26)|0,Hr&=67108863,s=Math.imul(nr,vr),r=Math.imul(nr,pr),r=r+Math.imul(ar,vr)|0,o=Math.imul(ar,pr),s=s+Math.imul(rr,br)|0,r=r+Math.imul(rr,sr)|0,r=r+Math.imul(ir,br)|0,o=o+Math.imul(ir,sr)|0,s=s+Math.imul(Je,or)|0,r=r+Math.imul(Je,xr)|0,r=r+Math.imul(er,or)|0,o=o+Math.imul(er,xr)|0,s=s+Math.imul(Xe,gr)|0,r=r+Math.imul(Xe,hr)|0,r=r+Math.imul(Ve,gr)|0,o=o+Math.imul(Ve,hr)|0,s=s+Math.imul(Ye,yr)|0,r=r+Math.imul(Ye,ur)|0,r=r+Math.imul(tr,yr)|0,o=o+Math.imul(tr,ur)|0,s=s+Math.imul(Ge,dr)|0,r=r+Math.imul(Ge,Qe)|0,r=r+Math.imul(je,dr)|0,o=o+Math.imul(je,Qe)|0,s=s+Math.imul(Fe,lr)|0,r=r+Math.imul(Fe,wr)|0,r=r+Math.imul(He,lr)|0,o=o+Math.imul(He,wr)|0,s=s+Math.imul(Oe,Mr)|0,r=r+Math.imul(Oe,_r)|0,r=r+Math.imul(ze,Mr)|0,o=o+Math.imul(ze,_r)|0,s=s+Math.imul(Pe,Br)|0,r=r+Math.imul(Pe,Er)|0,r=r+Math.imul(qe,Br)|0,o=o+Math.imul(qe,Er)|0;var zr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(zr>>>26)|0,zr&=67108863,s=Math.imul(nr,br),r=Math.imul(nr,sr),r=r+Math.imul(ar,br)|0,o=Math.imul(ar,sr),s=s+Math.imul(rr,or)|0,r=r+Math.imul(rr,xr)|0,r=r+Math.imul(ir,or)|0,o=o+Math.imul(ir,xr)|0,s=s+Math.imul(Je,gr)|0,r=r+Math.imul(Je,hr)|0,r=r+Math.imul(er,gr)|0,o=o+Math.imul(er,hr)|0,s=s+Math.imul(Xe,yr)|0,r=r+Math.imul(Xe,ur)|0,r=r+Math.imul(Ve,yr)|0,o=o+Math.imul(Ve,ur)|0,s=s+Math.imul(Ye,dr)|0,r=r+Math.imul(Ye,Qe)|0,r=r+Math.imul(tr,dr)|0,o=o+Math.imul(tr,Qe)|0,s=s+Math.imul(Ge,lr)|0,r=r+Math.imul(Ge,wr)|0,r=r+Math.imul(je,lr)|0,o=o+Math.imul(je,wr)|0,s=s+Math.imul(Fe,Mr)|0,r=r+Math.imul(Fe,_r)|0,r=r+Math.imul(He,Mr)|0,o=o+Math.imul(He,_r)|0,s=s+Math.imul(Oe,Br)|0,r=r+Math.imul(Oe,Er)|0,r=r+Math.imul(ze,Br)|0,o=o+Math.imul(ze,Er)|0;var Kr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,s=Math.imul(nr,or),r=Math.imul(nr,xr),r=r+Math.imul(ar,or)|0,o=Math.imul(ar,xr),s=s+Math.imul(rr,gr)|0,r=r+Math.imul(rr,hr)|0,r=r+Math.imul(ir,gr)|0,o=o+Math.imul(ir,hr)|0,s=s+Math.imul(Je,yr)|0,r=r+Math.imul(Je,ur)|0,r=r+Math.imul(er,yr)|0,o=o+Math.imul(er,ur)|0,s=s+Math.imul(Xe,dr)|0,r=r+Math.imul(Xe,Qe)|0,r=r+Math.imul(Ve,dr)|0,o=o+Math.imul(Ve,Qe)|0,s=s+Math.imul(Ye,lr)|0,r=r+Math.imul(Ye,wr)|0,r=r+Math.imul(tr,lr)|0,o=o+Math.imul(tr,wr)|0,s=s+Math.imul(Ge,Mr)|0,r=r+Math.imul(Ge,_r)|0,r=r+Math.imul(je,Mr)|0,o=o+Math.imul(je,_r)|0,s=s+Math.imul(Fe,Br)|0,r=r+Math.imul(Fe,Er)|0,r=r+Math.imul(He,Br)|0,o=o+Math.imul(He,Er)|0;var Wr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,s=Math.imul(nr,gr),r=Math.imul(nr,hr),r=r+Math.imul(ar,gr)|0,o=Math.imul(ar,hr),s=s+Math.imul(rr,yr)|0,r=r+Math.imul(rr,ur)|0,r=r+Math.imul(ir,yr)|0,o=o+Math.imul(ir,ur)|0,s=s+Math.imul(Je,dr)|0,r=r+Math.imul(Je,Qe)|0,r=r+Math.imul(er,dr)|0,o=o+Math.imul(er,Qe)|0,s=s+Math.imul(Xe,lr)|0,r=r+Math.imul(Xe,wr)|0,r=r+Math.imul(Ve,lr)|0,o=o+Math.imul(Ve,wr)|0,s=s+Math.imul(Ye,Mr)|0,r=r+Math.imul(Ye,_r)|0,r=r+Math.imul(tr,Mr)|0,o=o+Math.imul(tr,_r)|0,s=s+Math.imul(Ge,Br)|0,r=r+Math.imul(Ge,Er)|0,r=r+Math.imul(je,Br)|0,o=o+Math.imul(je,Er)|0;var Zr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,s=Math.imul(nr,yr),r=Math.imul(nr,ur),r=r+Math.imul(ar,yr)|0,o=Math.imul(ar,ur),s=s+Math.imul(rr,dr)|0,r=r+Math.imul(rr,Qe)|0,r=r+Math.imul(ir,dr)|0,o=o+Math.imul(ir,Qe)|0,s=s+Math.imul(Je,lr)|0,r=r+Math.imul(Je,wr)|0,r=r+Math.imul(er,lr)|0,o=o+Math.imul(er,wr)|0,s=s+Math.imul(Xe,Mr)|0,r=r+Math.imul(Xe,_r)|0,r=r+Math.imul(Ve,Mr)|0,o=o+Math.imul(Ve,_r)|0,s=s+Math.imul(Ye,Br)|0,r=r+Math.imul(Ye,Er)|0,r=r+Math.imul(tr,Br)|0,o=o+Math.imul(tr,Er)|0;var jr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(jr>>>26)|0,jr&=67108863,s=Math.imul(nr,dr),r=Math.imul(nr,Qe),r=r+Math.imul(ar,dr)|0,o=Math.imul(ar,Qe),s=s+Math.imul(rr,lr)|0,r=r+Math.imul(rr,wr)|0,r=r+Math.imul(ir,lr)|0,o=o+Math.imul(ir,wr)|0,s=s+Math.imul(Je,Mr)|0,r=r+Math.imul(Je,_r)|0,r=r+Math.imul(er,Mr)|0,o=o+Math.imul(er,_r)|0,s=s+Math.imul(Xe,Br)|0,r=r+Math.imul(Xe,Er)|0,r=r+Math.imul(Ve,Br)|0,o=o+Math.imul(Ve,Er)|0;var Gr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,s=Math.imul(nr,lr),r=Math.imul(nr,wr),r=r+Math.imul(ar,lr)|0,o=Math.imul(ar,wr),s=s+Math.imul(rr,Mr)|0,r=r+Math.imul(rr,_r)|0,r=r+Math.imul(ir,Mr)|0,o=o+Math.imul(ir,_r)|0,s=s+Math.imul(Je,Br)|0,r=r+Math.imul(Je,Er)|0,r=r+Math.imul(er,Br)|0,o=o+Math.imul(er,Er)|0;var Vr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Vr>>>26)|0,Vr&=67108863,s=Math.imul(nr,Mr),r=Math.imul(nr,_r),r=r+Math.imul(ar,Mr)|0,o=Math.imul(ar,_r),s=s+Math.imul(rr,Br)|0,r=r+Math.imul(rr,Er)|0,r=r+Math.imul(ir,Br)|0,o=o+Math.imul(ir,Er)|0;var Xr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Xr>>>26)|0,Xr&=67108863,s=Math.imul(nr,Br),r=Math.imul(nr,Er),r=r+Math.imul(ar,Br)|0,o=Math.imul(ar,Er);var Yr=(se+s|0)+((r&8191)<<13)|0;return se=(o+(r>>>13)|0)+(Yr>>>26)|0,Yr&=67108863,m[0]=Fr,m[1]=Ir,m[2]=$r,m[3]=Pr,m[4]=Tr,m[5]=Nr,m[6]=Lr,m[7]=Or,m[8]=Ur,m[9]=Hr,m[10]=zr,m[11]=Kr,m[12]=Wr,m[13]=Zr,m[14]=jr,m[15]=Gr,m[16]=Vr,m[17]=Xr,m[18]=Yr,se!==0&&(m[19]=se,i.length++),i};Math.imul||(ye=be);function _e(l,e,t){t.negative=e.negative^l.negative,t.length=l.length+e.length;for(var i=0,n=0,d=0;d<t.length-1;d++){var m=n;n=0;for(var se=i&67108863,s=Math.min(d,e.length-1),r=Math.max(0,d-l.length+1);r<=s;r++){var o=d-r,Ce=l.words[o]|0,De=e.words[r]|0,ke=Ce*De,Ue=ke&67108863;m=m+(ke/67108864|0)|0,Ue=Ue+se|0,se=Ue&67108863,m=m+(Ue>>>26)|0,n+=m>>>26,m&=67108863}t.words[d]=se,i=m,m=n}return i!==0?t.words[d]=i:t.length--,t.strip()}function Ae(l,e,t){var i=new we;return i.mulp(l,e,t)}a.prototype.mulTo=function(e,t){var i,n=this.length+e.length;return this.length===10&&e.length===10?i=ye(this,e,t):n<63?i=be(this,e,t):n<1024?i=_e(this,e,t):i=Ae(this,e,t),i};function we(l,e){this.x=l,this.y=e}we.prototype.makeRBT=function(e){for(var t=new Array(e),i=a.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,i,e);return t},we.prototype.revBin=function(e,t,i){if(e===0||e===i-1)return e;for(var n=0,d=0;d<t;d++)n|=(e&1)<<t-d-1,e>>=1;return n},we.prototype.permute=function(e,t,i,n,d,m){for(var se=0;se<m;se++)n[se]=t[e[se]],d[se]=i[e[se]]},we.prototype.transform=function(e,t,i,n,d,m){this.permute(m,e,t,i,n,d);for(var se=1;se<d;se<<=1)for(var s=se<<1,r=Math.cos(2*Math.PI/s),o=Math.sin(2*Math.PI/s),Ce=0;Ce<d;Ce+=s)for(var De=r,ke=o,Ue=0;Ue<se;Ue++){var Pe=i[Ce+Ue],qe=n[Ce+Ue],Ie=i[Ce+Ue+se],Oe=n[Ce+Ue+se],ze=De*Ie-ke*Oe;Oe=De*Oe+ke*Ie,Ie=ze,i[Ce+Ue]=Pe+Ie,n[Ce+Ue]=qe+Oe,i[Ce+Ue+se]=Pe-Ie,n[Ce+Ue+se]=qe-Oe,Ue!==s&&(ze=r*De-o*ke,ke=r*ke+o*De,De=ze)}},we.prototype.guessLen13b=function(e,t){var i=Math.max(t,e)|1,n=i&1,d=0;for(i=i/2|0;i;i=i>>>1)d++;return 1<<d+1+n},we.prototype.conjugate=function(e,t,i){if(!(i<=1))for(var n=0;n<i/2;n++){var d=e[n];e[n]=e[i-n-1],e[i-n-1]=d,d=t[n],t[n]=-t[i-n-1],t[i-n-1]=-d}},we.prototype.normalize13b=function(e,t){for(var i=0,n=0;n<t/2;n++){var d=Math.round(e[2*n+1]/t)*8192+Math.round(e[2*n]/t)+i;e[n]=d&67108863,d<67108864?i=0:i=d/67108864|0}return e},we.prototype.convert13b=function(e,t,i,n){for(var d=0,m=0;m<t;m++)d=d+(e[m]|0),i[2*m]=d&8191,d=d>>>13,i[2*m+1]=d&8191,d=d>>>13;for(m=2*t;m<n;++m)i[m]=0;he(d===0),he((d&-8192)===0)},we.prototype.stub=function(e){for(var t=new Array(e),i=0;i<e;i++)t[i]=0;return t},we.prototype.mulp=function(e,t,i){var n=2*this.guessLen13b(e.length,t.length),d=this.makeRBT(n),m=this.stub(n),se=new Array(n),s=new Array(n),r=new Array(n),o=new Array(n),Ce=new Array(n),De=new Array(n),ke=i.words;ke.length=n,this.convert13b(e.words,e.length,se,n),this.convert13b(t.words,t.length,o,n),this.transform(se,m,s,r,n,d),this.transform(o,m,Ce,De,n,d);for(var Ue=0;Ue<n;Ue++){var Pe=s[Ue]*Ce[Ue]-r[Ue]*De[Ue];r[Ue]=s[Ue]*De[Ue]+r[Ue]*Ce[Ue],s[Ue]=Pe}return this.conjugate(s,r,n),this.transform(s,r,ke,m,n,d),this.conjugate(ke,m,n),this.normalize13b(ke,n),i.negative=e.negative^t.negative,i.length=e.length+t.length,i.strip()},a.prototype.mul=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},a.prototype.mulf=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),Ae(this,e,t)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){he(typeof e=="number"),he(e<67108864);for(var t=0,i=0;i<this.length;i++){var n=(this.words[i]|0)*e,d=(n&67108863)+(t&67108863);t>>=26,t+=n/67108864|0,t+=d>>>26,this.words[i]=d&67108863}return t!==0&&(this.words[i]=t,this.length++),this.length=e===0?1:this.length,this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=me(e);if(t.length===0)return new a(1);for(var i=this,n=0;n<t.length&&t[n]===0;n++,i=i.sqr());if(++n<t.length)for(var d=i.sqr();n<t.length;n++,d=d.sqr())t[n]!==0&&(i=i.mul(d));return i},a.prototype.iushln=function(e){he(typeof e=="number"&&e>=0);var t=e%26,i=(e-t)/26,n=67108863>>>26-t<<26-t,d;if(t!==0){var m=0;for(d=0;d<this.length;d++){var se=this.words[d]&n,s=(this.words[d]|0)-se<<t;this.words[d]=s|m,m=se>>>26-t}m&&(this.words[d]=m,this.length++)}if(i!==0){for(d=this.length-1;d>=0;d--)this.words[d+i]=this.words[d];for(d=0;d<i;d++)this.words[d]=0;this.length+=i}return this.strip()},a.prototype.ishln=function(e){return he(this.negative===0),this.iushln(e)},a.prototype.iushrn=function(e,t,i){he(typeof e=="number"&&e>=0);var n;t?n=(t-t%26)/26:n=0;var d=e%26,m=Math.min((e-d)/26,this.length),se=67108863^67108863>>>d<<d,s=i;if(n-=m,n=Math.max(0,n),s){for(var r=0;r<m;r++)s.words[r]=this.words[r];s.length=m}if(m!==0)if(this.length>m)for(this.length-=m,r=0;r<this.length;r++)this.words[r]=this.words[r+m];else this.words[0]=0,this.length=1;var o=0;for(r=this.length-1;r>=0&&(o!==0||r>=n);r--){var Ce=this.words[r]|0;this.words[r]=o<<26-d|Ce>>>d,o=Ce&se}return s&&o!==0&&(s.words[s.length++]=o),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,i){return he(this.negative===0),this.iushrn(e,t,i)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){he(typeof e=="number"&&e>=0);var t=e%26,i=(e-t)/26,n=1<<t;if(this.length<=i)return!1;var d=this.words[i];return!!(d&n)},a.prototype.imaskn=function(e){he(typeof e=="number"&&e>=0);var t=e%26,i=(e-t)/26;if(he(this.negative===0,"imaskn works only with positive numbers"),this.length<=i)return this;if(t!==0&&i++,this.length=Math.min(i,this.length),t!==0){var n=67108863^67108863>>>t<<t;this.words[this.length-1]&=n}return this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return he(typeof e=="number"),he(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(this.words[0]|0)<e?(this.words[0]=e-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(he(typeof e=="number"),he(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,t,i){var n=e.length+i,d;this._expand(n);var m,se=0;for(d=0;d<e.length;d++){m=(this.words[d+i]|0)+se;var s=(e.words[d]|0)*t;m-=s&67108863,se=(m>>26)-(s/67108864|0),this.words[d+i]=m&67108863}for(;d<this.length-i;d++)m=(this.words[d+i]|0)+se,se=m>>26,this.words[d+i]=m&67108863;if(se===0)return this.strip();for(he(se===-1),se=0,d=0;d<this.length;d++)m=-(this.words[d]|0)+se,se=m>>26,this.words[d]=m&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var i=this.length-e.length,n=this.clone(),d=e,m=d.words[d.length-1]|0,se=this._countBits(m);i=26-se,i!==0&&(d=d.ushln(i),n.iushln(i),m=d.words[d.length-1]|0);var s=n.length-d.length,r;if(t!=="mod"){r=new a(null),r.length=s+1,r.words=new Array(r.length);for(var o=0;o<r.length;o++)r.words[o]=0}var Ce=n.clone()._ishlnsubmul(d,1,s);Ce.negative===0&&(n=Ce,r&&(r.words[s]=1));for(var De=s-1;De>=0;De--){var ke=(n.words[d.length+De]|0)*67108864+(n.words[d.length+De-1]|0);for(ke=Math.min(ke/m|0,67108863),n._ishlnsubmul(d,ke,De);n.negative!==0;)ke--,n.negative=0,n._ishlnsubmul(d,1,De),n.isZero()||(n.negative^=1);r&&(r.words[De]=ke)}return r&&r.strip(),n.strip(),t!=="div"&&i!==0&&n.iushrn(i),{div:r||null,mod:n}},a.prototype.divmod=function(e,t,i){if(he(!e.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var n,d,m;return this.negative!==0&&e.negative===0?(m=this.neg().divmod(e,t),t!=="mod"&&(n=m.div.neg()),t!=="div"&&(d=m.mod.neg(),i&&d.negative!==0&&d.iadd(e)),{div:n,mod:d}):this.negative===0&&e.negative!==0?(m=this.divmod(e.neg(),t),t!=="mod"&&(n=m.div.neg()),{div:n,mod:m.mod}):(this.negative&e.negative)!==0?(m=this.neg().divmod(e.neg(),t),t!=="div"&&(d=m.mod.neg(),i&&d.negative!==0&&d.isub(e)),{div:m.div,mod:d}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:e.length===1?t==="div"?{div:this.divn(e.words[0]),mod:null}:t==="mod"?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=t.div.negative!==0?t.mod.isub(e):t.mod,n=e.ushrn(1),d=e.andln(1),m=i.cmp(n);return m<0||d===1&&m===0?t.div:t.div.negative!==0?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){he(e<=67108863);for(var t=(1<<26)%e,i=0,n=this.length-1;n>=0;n--)i=(t*i+(this.words[n]|0))%e;return i},a.prototype.idivn=function(e){he(e<=67108863);for(var t=0,i=this.length-1;i>=0;i--){var n=(this.words[i]|0)+t*67108864;this.words[i]=n/e|0,t=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){he(e.negative===0),he(!e.isZero());var t=this,i=e.clone();t.negative!==0?t=t.umod(e):t=t.clone();for(var n=new a(1),d=new a(0),m=new a(0),se=new a(1),s=0;t.isEven()&&i.isEven();)t.iushrn(1),i.iushrn(1),++s;for(var r=i.clone(),o=t.clone();!t.isZero();){for(var Ce=0,De=1;(t.words[0]&De)===0&&Ce<26;++Ce,De<<=1);if(Ce>0)for(t.iushrn(Ce);Ce-- >0;)(n.isOdd()||d.isOdd())&&(n.iadd(r),d.isub(o)),n.iushrn(1),d.iushrn(1);for(var ke=0,Ue=1;(i.words[0]&Ue)===0&&ke<26;++ke,Ue<<=1);if(ke>0)for(i.iushrn(ke);ke-- >0;)(m.isOdd()||se.isOdd())&&(m.iadd(r),se.isub(o)),m.iushrn(1),se.iushrn(1);t.cmp(i)>=0?(t.isub(i),n.isub(m),d.isub(se)):(i.isub(t),m.isub(n),se.isub(d))}return{a:m,b:se,gcd:i.iushln(s)}},a.prototype._invmp=function(e){he(e.negative===0),he(!e.isZero());var t=this,i=e.clone();t.negative!==0?t=t.umod(e):t=t.clone();for(var n=new a(1),d=new a(0),m=i.clone();t.cmpn(1)>0&&i.cmpn(1)>0;){for(var se=0,s=1;(t.words[0]&s)===0&&se<26;++se,s<<=1);if(se>0)for(t.iushrn(se);se-- >0;)n.isOdd()&&n.iadd(m),n.iushrn(1);for(var r=0,o=1;(i.words[0]&o)===0&&r<26;++r,o<<=1);if(r>0)for(i.iushrn(r);r-- >0;)d.isOdd()&&d.iadd(m),d.iushrn(1);t.cmp(i)>=0?(t.isub(i),n.isub(d)):(i.isub(t),d.isub(n))}var Ce;return t.cmpn(1)===0?Ce=n:Ce=d,Ce.cmpn(0)<0&&Ce.iadd(e),Ce},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var n=0;t.isEven()&&i.isEven();n++)t.iushrn(1),i.iushrn(1);do{for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var d=t.cmp(i);if(d<0){var m=t;t=i,i=m}else if(d===0||i.cmpn(1)===0)break;t.isub(i)}while(!0);return i.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){he(typeof e=="number");var t=e%26,i=(e-t)/26,n=1<<t;if(this.length<=i)return this._expand(i+1),this.words[i]|=n,this;for(var d=n,m=i;d!==0&&m<this.length;m++){var se=this.words[m]|0;se+=d,d=se>>>26,se&=67108863,this.words[m]=se}return d!==0&&(this.words[m]=d,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(e){var t=e<0;if(this.negative!==0&&!t)return-1;if(this.negative===0&&t)return 1;this.strip();var i;if(this.length>1)i=1;else{t&&(e=-e),he(e<=67108863,"Number is too big");var n=this.words[0]|0;i=n===e?0:n<e?-1:1}return this.negative!==0?-i|0:i},a.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var t=this.ucmp(e);return this.negative!==0?-t|0:t},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,i=this.length-1;i>=0;i--){var n=this.words[i]|0,d=e.words[i]|0;if(n!==d){n<d?t=-1:n>d&&(t=1);break}}return t},a.prototype.gtn=function(e){return this.cmpn(e)===1},a.prototype.gt=function(e){return this.cmp(e)===1},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return this.cmpn(e)===-1},a.prototype.lt=function(e){return this.cmp(e)===-1},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return this.cmpn(e)===0},a.prototype.eq=function(e){return this.cmp(e)===0},a.red=function(e){return new Ne(e)},a.prototype.toRed=function(e){return he(!this.red,"Already a number in reduction context"),he(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return he(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return he(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return he(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return he(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return he(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return he(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return he(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return he(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return he(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return he(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return he(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return he(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return he(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return he(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return he(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var Re={k256:null,p224:null,p192:null,p25519:null};function Se(l,e){this.name=l,this.p=new a(e,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Se.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},Se.prototype.ireduce=function(e){var t=e,i;do this.split(t,this.tmp),t=this.imulK(t),t=t.iadd(this.tmp),i=t.bitLength();while(i>this.n);var n=i<this.n?-1:t.ucmp(this.p);return n===0?(t.words[0]=0,t.length=1):n>0?t.isub(this.p):t.strip!==void 0?t.strip():t._strip(),t},Se.prototype.split=function(e,t){e.iushrn(this.n,0,t)},Se.prototype.imulK=function(e){return e.imul(this.k)};function $e(){Se.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}Me($e,Se),$e.prototype.split=function(e,t){for(var i=4194303,n=Math.min(e.length,9),d=0;d<n;d++)t.words[d]=e.words[d];if(t.length=n,e.length<=9){e.words[0]=0,e.length=1;return}var m=e.words[9];for(t.words[t.length++]=m&i,d=10;d<e.length;d++){var se=e.words[d]|0;e.words[d-10]=(se&i)<<4|m>>>22,m=se}m>>>=22,e.words[d-10]=m,m===0&&e.length>10?e.length-=10:e.length-=9},$e.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i<e.length;i++){var n=e.words[i]|0;t+=n*977,e.words[i]=t&67108863,t=n*64+(t/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function Te(){Se.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}Me(Te,Se);function We(){Se.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}Me(We,Se);function Ze(){Se.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}Me(Ze,Se),Ze.prototype.imulK=function(e){for(var t=0,i=0;i<e.length;i++){var n=(e.words[i]|0)*19+t,d=n&67108863;n>>>=26,e.words[i]=d,t=n}return t!==0&&(e.words[e.length++]=t),e},a._prime=function(e){if(Re[e])return Re[e];var t;if(e==="k256")t=new $e;else if(e==="p224")t=new Te;else if(e==="p192")t=new We;else if(e==="p25519")t=new Ze;else throw new Error("Unknown prime "+e);return Re[e]=t,t};function Ne(l){if(typeof l=="string"){var e=a._prime(l);this.m=e.p,this.prime=e}else he(l.gtn(1),"modulus must be greater than 1"),this.m=l,this.prime=null}Ne.prototype._verify1=function(e){he(e.negative===0,"red works only with positives"),he(e.red,"red works only with red numbers")},Ne.prototype._verify2=function(e,t){he((e.negative|t.negative)===0,"red works only with positives"),he(e.red&&e.red===t.red,"red works only with red numbers")},Ne.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},Ne.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},Ne.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},Ne.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},Ne.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},Ne.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},Ne.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},Ne.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},Ne.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},Ne.prototype.isqr=function(e){return this.imul(e,e.clone())},Ne.prototype.sqr=function(e){return this.mul(e,e)},Ne.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(he(t%2===1),t===3){var i=this.m.add(new a(1)).iushrn(2);return this.pow(e,i)}for(var n=this.m.subn(1),d=0;!n.isZero()&&n.andln(1)===0;)d++,n.iushrn(1);he(!n.isZero());var m=new a(1).toRed(this),se=m.redNeg(),s=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new a(2*r*r).toRed(this);this.pow(r,s).cmp(se)!==0;)r.redIAdd(se);for(var o=this.pow(r,n),Ce=this.pow(e,n.addn(1).iushrn(1)),De=this.pow(e,n),ke=d;De.cmp(m)!==0;){for(var Ue=De,Pe=0;Ue.cmp(m)!==0;Pe++)Ue=Ue.redSqr();he(Pe<ke);var qe=this.pow(o,new a(1).iushln(ke-Pe-1));Ce=Ce.redMul(qe),o=qe.redSqr(),De=De.redMul(o),ke=Pe}return Ce},Ne.prototype.invm=function(e){var t=e._invmp(this.m);return t.negative!==0?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},Ne.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(t.cmpn(1)===0)return e.clone();var i=4,n=new Array(1<<i);n[0]=new a(1).toRed(this),n[1]=e;for(var d=2;d<n.length;d++)n[d]=this.mul(n[d-1],e);var m=n[0],se=0,s=0,r=t.bitLength()%26;for(r===0&&(r=26),d=t.length-1;d>=0;d--){for(var o=t.words[d],Ce=r-1;Ce>=0;Ce--){var De=o>>Ce&1;if(m!==n[0]&&(m=this.sqr(m)),De===0&&se===0){s=0;continue}se<<=1,se|=De,s++,!(s!==i&&(d!==0||Ce!==0))&&(m=this.mul(m,n[se]),s=0,se=0)}r=26}return m},Ne.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},Ne.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new Ke(e)};function Ke(l){Ne.call(this,l),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}Me(Ke,Ne),Ke.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},Ke.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},Ke.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),d=i.isub(n).iushrn(this.shift),m=d;return d.cmp(this.m)>=0?m=d.isub(this.m):d.cmpn(0)<0&&(m=d.iadd(this.m)),m._forceRed(this)},Ke.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var i=e.mul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),d=i.isub(n).iushrn(this.shift),m=d;return d.cmp(this.m)>=0?m=d.isub(this.m):d.cmpn(0)<0&&(m=d.iadd(this.m)),m._forceRed(this)},Ke.prototype.invm=function(e){var t=this.imod(e._invmp(this.m).mul(this.r2));return t._forceRed(this)}})(ge,bn$a)})(bn$b)),bn$b.exports}var bn$9={exports:{}},bn$8=bn$9.exports,hasRequiredBn$4;function requireBn$4(){return hasRequiredBn$4||(hasRequiredBn$4=1,(function(ge){(function(Ee,Be){function he(l,e){if(!l)throw new Error(e||"Assertion failed")}function Me(l,e){l.super_=e;var t=function(){};t.prototype=e.prototype,l.prototype=new t,l.prototype.constructor=l}function a(l,e,t){if(a.isBN(l))return l;this.negative=0,this.words=null,this.length=0,this.red=null,l!==null&&((e==="le"||e==="be")&&(t=e,e=10),this._init(l||0,e||10,t||"be"))}typeof Ee=="object"?Ee.exports=a:Be.BN=a,a.BN=a,a.wordSize=26;var xe;try{typeof window<"u"&&typeof window.Buffer<"u"?xe=window.Buffer:xe=requireDist().Buffer}catch{}a.isBN=function(e){return e instanceof a?!0:e!==null&&typeof e=="object"&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,i){if(typeof e=="number")return this._initNumber(e,t,i);if(typeof e=="object")return this._initArray(e,t,i);t==="hex"&&(t=16),he(t===(t|0)&&t>=2&&t<=36),e=e.toString().replace(/\s+/g,"");var n=0;e[0]==="-"&&(n++,this.negative=1),n<e.length&&(t===16?this._parseHex(e,n,i):(this._parseBase(e,t,n),i==="le"&&this._initArray(this.toArray(),t,i)))},a.prototype._initNumber=function(e,t,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[e&67108863],this.length=1):e<4503599627370496?(this.words=[e&67108863,e/67108864&67108863],this.length=2):(he(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),i==="le"&&this._initArray(this.toArray(),t,i)},a.prototype._initArray=function(e,t,i){if(he(typeof e.length=="number"),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var d,m,se=0;if(i==="be")for(n=e.length-1,d=0;n>=0;n-=3)m=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[d]|=m<<se&67108863,this.words[d+1]=m>>>26-se&67108863,se+=24,se>=26&&(se-=26,d++);else if(i==="le")for(n=0,d=0;n<e.length;n+=3)m=e[n]|e[n+1]<<8|e[n+2]<<16,this.words[d]|=m<<se&67108863,this.words[d+1]=m>>>26-se&67108863,se+=24,se>=26&&(se-=26,d++);return this.strip()};function pe(l,e){var t=l.charCodeAt(e);return t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:t-48&15}function ve(l,e,t){var i=pe(l,t);return t-1>=e&&(i|=pe(l,t-1)<<4),i}a.prototype._parseHex=function(e,t,i){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var d=0,m=0,se;if(i==="be")for(n=e.length-1;n>=t;n-=2)se=ve(e,t,n)<<d,this.words[m]|=se&67108863,d>=18?(d-=18,m+=1,this.words[m]|=se>>>26):d+=8;else{var s=e.length-t;for(n=s%2===0?t+1:t;n<e.length;n+=2)se=ve(e,t,n)<<d,this.words[m]|=se&67108863,d>=18?(d-=18,m+=1,this.words[m]|=se>>>26):d+=8}this.strip()};function fe(l,e,t,i){for(var n=0,d=Math.min(l.length,t),m=e;m<d;m++){var se=l.charCodeAt(m)-48;n*=i,se>=49?n+=se-49+10:se>=17?n+=se-17+10:n+=se}return n}a.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var n=0,d=1;d<=67108863;d*=t)n++;n--,d=d/t|0;for(var m=e.length-i,se=m%n,s=Math.min(m,m-se)+i,r=0,o=i;o<s;o+=n)r=fe(e,o,o+n,t),this.imuln(d),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r);if(se!==0){var Ce=1;for(r=fe(e,o,e.length,t),o=0;o<se;o++)Ce*=t;this.imuln(Ce),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r)}this.strip()},a.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],ue=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],de=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(e,t){e=e||10,t=t|0||1;var i;if(e===16||e==="hex"){i="";for(var n=0,d=0,m=0;m<this.length;m++){var se=this.words[m],s=((se<<n|d)&16777215).toString(16);d=se>>>24-n&16777215,n+=2,n>=26&&(n-=26,m--),d!==0||m!==this.length-1?i=c[6-s.length]+s+i:i=s+i}for(d!==0&&(i=d.toString(16)+i);i.length%t!==0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}if(e===(e|0)&&e>=2&&e<=36){var r=ue[e],o=de[e];i="";var Ce=this.clone();for(Ce.negative=0;!Ce.isZero();){var De=Ce.modn(o).toString(e);Ce=Ce.idivn(o),Ce.isZero()?i=De+i:i=c[r-De.length]+De+i}for(this.isZero()&&(i="0"+i);i.length%t!==0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}he(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=this.words[1]*67108864:this.length===3&&this.words[2]===1?e+=4503599627370496+this.words[1]*67108864:this.length>2&&he(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return he(typeof xe<"u"),this.toArrayLike(xe,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,i){var n=this.byteLength(),d=i||Math.max(1,n);he(n<=d,"byte array longer than desired length"),he(d>0,"Requested array length <= 0"),this.strip();var m=t==="le",se=new e(d),s,r,o=this.clone();if(m){for(r=0;!o.isZero();r++)s=o.andln(255),o.iushrn(8),se[r]=s;for(;r<d;r++)se[r]=0}else{for(r=0;r<d-n;r++)se[r]=0;for(r=0;!o.isZero();r++)s=o.andln(255),o.iushrn(8),se[d-r-1]=s}return se},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},a.prototype._zeroBits=function(e){if(e===0)return 26;var t=e,i=0;return(t&8191)===0&&(i+=13,t>>>=13),(t&127)===0&&(i+=7,t>>>=7),(t&15)===0&&(i+=4,t>>>=4),(t&3)===0&&(i+=2,t>>>=2),(t&1)===0&&i++,i},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t};function me(l){for(var e=new Array(l.bitLength()),t=0;t<e.length;t++){var i=t/26|0,n=t%26;e[t]=(l.words[i]&1<<n)>>>n}return e}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var i=this._zeroBits(this.words[t]);if(e+=i,i!==26)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},a.prototype.ior=function(e){return he((this.negative|e.negative)===0),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;this.length>e.length?t=e:t=this;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=t.length,this.strip()},a.prototype.iand=function(e){return he((this.negative|e.negative)===0),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=t.words[n]^i.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},a.prototype.ixor=function(e){return he((this.negative|e.negative)===0),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){he(typeof e=="number"&&e>=0);var t=Math.ceil(e/26)|0,i=e%26;this._expand(t),i>0&&t--;for(var n=0;n<t;n++)this.words[n]=~this.words[n]&67108863;for(i>0&&(this.words[n]=~this.words[n]&67108863>>26-i,n++);n<this.length;n++)this.words[n]=0;return this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){he(typeof e=="number"&&e>=0);var i=e/26|0,n=e%26;return this._expand(i+1),t?this.words[i]=this.words[i]|1<<n:this.words[i]=this.words[i]&~(1<<n),this.strip()},a.prototype.iadd=function(e){var t;if(this.negative!==0&&e.negative===0)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();var i,n;this.length>e.length?(i=this,n=e):(i=e,n=this);for(var d=0,m=0;m<n.length;m++)t=(i.words[m]|0)+(n.words[m]|0)+d,this.words[m]=t&67108863,d=t>>>26;for(;d!==0&&m<i.length;m++)t=(i.words[m]|0)+d,this.words[m]=t&67108863,d=t>>>26;if(this.length=i.length,d!==0)this.words[this.length]=d,this.length++;else if(i!==this)for(;m<i.length;m++)this.words[m]=i.words[m];return this},a.prototype.add=function(e){var t;return e.negative!==0&&this.negative===0?(e.negative=0,t=this.sub(e),e.negative^=1,t):e.negative===0&&this.negative!==0?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(i===0)return this.negative=0,this.length=1,this.words[0]=0,this;var n,d;i>0?(n=this,d=e):(n=e,d=this);for(var m=0,se=0;se<d.length;se++)t=(n.words[se]|0)-(d.words[se]|0)+m,m=t>>26,this.words[se]=t&67108863;for(;m!==0&&se<n.length;se++)t=(n.words[se]|0)+m,m=t>>26,this.words[se]=t&67108863;if(m===0&&se<n.length&&n!==this)for(;se<n.length;se++)this.words[se]=n.words[se];return this.length=Math.max(this.length,se),n!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(e){return this.clone().isub(e)};function be(l,e,t){t.negative=e.negative^l.negative;var i=l.length+e.length|0;t.length=i,i=i-1|0;var n=l.words[0]|0,d=e.words[0]|0,m=n*d,se=m&67108863,s=m/67108864|0;t.words[0]=se;for(var r=1;r<i;r++){for(var o=s>>>26,Ce=s&67108863,De=Math.min(r,e.length-1),ke=Math.max(0,r-l.length+1);ke<=De;ke++){var Ue=r-ke|0;n=l.words[Ue]|0,d=e.words[ke]|0,m=n*d+Ce,o+=m/67108864|0,Ce=m&67108863}t.words[r]=Ce|0,s=o|0}return s!==0?t.words[r]=s|0:t.length--,t.strip()}var ye=function(e,t,i){var n=e.words,d=t.words,m=i.words,se=0,s,r,o,Ce=n[0]|0,De=Ce&8191,ke=Ce>>>13,Ue=n[1]|0,Pe=Ue&8191,qe=Ue>>>13,Ie=n[2]|0,Oe=Ie&8191,ze=Ie>>>13,Le=n[3]|0,Fe=Le&8191,He=Le>>>13,Ar=n[4]|0,Ge=Ar&8191,je=Ar>>>13,qr=n[5]|0,Ye=qr&8191,tr=qr>>>13,Rr=n[6]|0,Xe=Rr&8191,Ve=Rr>>>13,Sr=n[7]|0,Je=Sr&8191,er=Sr>>>13,Cr=n[8]|0,rr=Cr&8191,ir=Cr>>>13,Jr=n[9]|0,nr=Jr&8191,ar=Jr>>>13,kr=d[0]|0,cr=kr&8191,fr=kr>>>13,Qr=d[1]|0,vr=Qr&8191,pr=Qr>>>13,et=d[2]|0,br=et&8191,sr=et>>>13,rt=d[3]|0,or=rt&8191,xr=rt>>>13,tt=d[4]|0,gr=tt&8191,hr=tt>>>13,it=d[5]|0,yr=it&8191,ur=it>>>13,at=d[6]|0,dr=at&8191,Qe=at>>>13,Dr=d[7]|0,lr=Dr&8191,wr=Dr>>>13,nt=d[8]|0,Mr=nt&8191,_r=nt>>>13,ft=d[9]|0,Br=ft&8191,Er=ft>>>13;i.negative=e.negative^t.negative,i.length=19,s=Math.imul(De,cr),r=Math.imul(De,fr),r=r+Math.imul(ke,cr)|0,o=Math.imul(ke,fr);var Fr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Fr>>>26)|0,Fr&=67108863,s=Math.imul(Pe,cr),r=Math.imul(Pe,fr),r=r+Math.imul(qe,cr)|0,o=Math.imul(qe,fr),s=s+Math.imul(De,vr)|0,r=r+Math.imul(De,pr)|0,r=r+Math.imul(ke,vr)|0,o=o+Math.imul(ke,pr)|0;var Ir=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,s=Math.imul(Oe,cr),r=Math.imul(Oe,fr),r=r+Math.imul(ze,cr)|0,o=Math.imul(ze,fr),s=s+Math.imul(Pe,vr)|0,r=r+Math.imul(Pe,pr)|0,r=r+Math.imul(qe,vr)|0,o=o+Math.imul(qe,pr)|0,s=s+Math.imul(De,br)|0,r=r+Math.imul(De,sr)|0,r=r+Math.imul(ke,br)|0,o=o+Math.imul(ke,sr)|0;var $r=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+($r>>>26)|0,$r&=67108863,s=Math.imul(Fe,cr),r=Math.imul(Fe,fr),r=r+Math.imul(He,cr)|0,o=Math.imul(He,fr),s=s+Math.imul(Oe,vr)|0,r=r+Math.imul(Oe,pr)|0,r=r+Math.imul(ze,vr)|0,o=o+Math.imul(ze,pr)|0,s=s+Math.imul(Pe,br)|0,r=r+Math.imul(Pe,sr)|0,r=r+Math.imul(qe,br)|0,o=o+Math.imul(qe,sr)|0,s=s+Math.imul(De,or)|0,r=r+Math.imul(De,xr)|0,r=r+Math.imul(ke,or)|0,o=o+Math.imul(ke,xr)|0;var Pr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,s=Math.imul(Ge,cr),r=Math.imul(Ge,fr),r=r+Math.imul(je,cr)|0,o=Math.imul(je,fr),s=s+Math.imul(Fe,vr)|0,r=r+Math.imul(Fe,pr)|0,r=r+Math.imul(He,vr)|0,o=o+Math.imul(He,pr)|0,s=s+Math.imul(Oe,br)|0,r=r+Math.imul(Oe,sr)|0,r=r+Math.imul(ze,br)|0,o=o+Math.imul(ze,sr)|0,s=s+Math.imul(Pe,or)|0,r=r+Math.imul(Pe,xr)|0,r=r+Math.imul(qe,or)|0,o=o+Math.imul(qe,xr)|0,s=s+Math.imul(De,gr)|0,r=r+Math.imul(De,hr)|0,r=r+Math.imul(ke,gr)|0,o=o+Math.imul(ke,hr)|0;var Tr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,s=Math.imul(Ye,cr),r=Math.imul(Ye,fr),r=r+Math.imul(tr,cr)|0,o=Math.imul(tr,fr),s=s+Math.imul(Ge,vr)|0,r=r+Math.imul(Ge,pr)|0,r=r+Math.imul(je,vr)|0,o=o+Math.imul(je,pr)|0,s=s+Math.imul(Fe,br)|0,r=r+Math.imul(Fe,sr)|0,r=r+Math.imul(He,br)|0,o=o+Math.imul(He,sr)|0,s=s+Math.imul(Oe,or)|0,r=r+Math.imul(Oe,xr)|0,r=r+Math.imul(ze,or)|0,o=o+Math.imul(ze,xr)|0,s=s+Math.imul(Pe,gr)|0,r=r+Math.imul(Pe,hr)|0,r=r+Math.imul(qe,gr)|0,o=o+Math.imul(qe,hr)|0,s=s+Math.imul(De,yr)|0,r=r+Math.imul(De,ur)|0,r=r+Math.imul(ke,yr)|0,o=o+Math.imul(ke,ur)|0;var Nr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,s=Math.imul(Xe,cr),r=Math.imul(Xe,fr),r=r+Math.imul(Ve,cr)|0,o=Math.imul(Ve,fr),s=s+Math.imul(Ye,vr)|0,r=r+Math.imul(Ye,pr)|0,r=r+Math.imul(tr,vr)|0,o=o+Math.imul(tr,pr)|0,s=s+Math.imul(Ge,br)|0,r=r+Math.imul(Ge,sr)|0,r=r+Math.imul(je,br)|0,o=o+Math.imul(je,sr)|0,s=s+Math.imul(Fe,or)|0,r=r+Math.imul(Fe,xr)|0,r=r+Math.imul(He,or)|0,o=o+Math.imul(He,xr)|0,s=s+Math.imul(Oe,gr)|0,r=r+Math.imul(Oe,hr)|0,r=r+Math.imul(ze,gr)|0,o=o+Math.imul(ze,hr)|0,s=s+Math.imul(Pe,yr)|0,r=r+Math.imul(Pe,ur)|0,r=r+Math.imul(qe,yr)|0,o=o+Math.imul(qe,ur)|0,s=s+Math.imul(De,dr)|0,r=r+Math.imul(De,Qe)|0,r=r+Math.imul(ke,dr)|0,o=o+Math.imul(ke,Qe)|0;var Lr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,s=Math.imul(Je,cr),r=Math.imul(Je,fr),r=r+Math.imul(er,cr)|0,o=Math.imul(er,fr),s=s+Math.imul(Xe,vr)|0,r=r+Math.imul(Xe,pr)|0,r=r+Math.imul(Ve,vr)|0,o=o+Math.imul(Ve,pr)|0,s=s+Math.imul(Ye,br)|0,r=r+Math.imul(Ye,sr)|0,r=r+Math.imul(tr,br)|0,o=o+Math.imul(tr,sr)|0,s=s+Math.imul(Ge,or)|0,r=r+Math.imul(Ge,xr)|0,r=r+Math.imul(je,or)|0,o=o+Math.imul(je,xr)|0,s=s+Math.imul(Fe,gr)|0,r=r+Math.imul(Fe,hr)|0,r=r+Math.imul(He,gr)|0,o=o+Math.imul(He,hr)|0,s=s+Math.imul(Oe,yr)|0,r=r+Math.imul(Oe,ur)|0,r=r+Math.imul(ze,yr)|0,o=o+Math.imul(ze,ur)|0,s=s+Math.imul(Pe,dr)|0,r=r+Math.imul(Pe,Qe)|0,r=r+Math.imul(qe,dr)|0,o=o+Math.imul(qe,Qe)|0,s=s+Math.imul(De,lr)|0,r=r+Math.imul(De,wr)|0,r=r+Math.imul(ke,lr)|0,o=o+Math.imul(ke,wr)|0;var Or=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Or>>>26)|0,Or&=67108863,s=Math.imul(rr,cr),r=Math.imul(rr,fr),r=r+Math.imul(ir,cr)|0,o=Math.imul(ir,fr),s=s+Math.imul(Je,vr)|0,r=r+Math.imul(Je,pr)|0,r=r+Math.imul(er,vr)|0,o=o+Math.imul(er,pr)|0,s=s+Math.imul(Xe,br)|0,r=r+Math.imul(Xe,sr)|0,r=r+Math.imul(Ve,br)|0,o=o+Math.imul(Ve,sr)|0,s=s+Math.imul(Ye,or)|0,r=r+Math.imul(Ye,xr)|0,r=r+Math.imul(tr,or)|0,o=o+Math.imul(tr,xr)|0,s=s+Math.imul(Ge,gr)|0,r=r+Math.imul(Ge,hr)|0,r=r+Math.imul(je,gr)|0,o=o+Math.imul(je,hr)|0,s=s+Math.imul(Fe,yr)|0,r=r+Math.imul(Fe,ur)|0,r=r+Math.imul(He,yr)|0,o=o+Math.imul(He,ur)|0,s=s+Math.imul(Oe,dr)|0,r=r+Math.imul(Oe,Qe)|0,r=r+Math.imul(ze,dr)|0,o=o+Math.imul(ze,Qe)|0,s=s+Math.imul(Pe,lr)|0,r=r+Math.imul(Pe,wr)|0,r=r+Math.imul(qe,lr)|0,o=o+Math.imul(qe,wr)|0,s=s+Math.imul(De,Mr)|0,r=r+Math.imul(De,_r)|0,r=r+Math.imul(ke,Mr)|0,o=o+Math.imul(ke,_r)|0;var Ur=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,s=Math.imul(nr,cr),r=Math.imul(nr,fr),r=r+Math.imul(ar,cr)|0,o=Math.imul(ar,fr),s=s+Math.imul(rr,vr)|0,r=r+Math.imul(rr,pr)|0,r=r+Math.imul(ir,vr)|0,o=o+Math.imul(ir,pr)|0,s=s+Math.imul(Je,br)|0,r=r+Math.imul(Je,sr)|0,r=r+Math.imul(er,br)|0,o=o+Math.imul(er,sr)|0,s=s+Math.imul(Xe,or)|0,r=r+Math.imul(Xe,xr)|0,r=r+Math.imul(Ve,or)|0,o=o+Math.imul(Ve,xr)|0,s=s+Math.imul(Ye,gr)|0,r=r+Math.imul(Ye,hr)|0,r=r+Math.imul(tr,gr)|0,o=o+Math.imul(tr,hr)|0,s=s+Math.imul(Ge,yr)|0,r=r+Math.imul(Ge,ur)|0,r=r+Math.imul(je,yr)|0,o=o+Math.imul(je,ur)|0,s=s+Math.imul(Fe,dr)|0,r=r+Math.imul(Fe,Qe)|0,r=r+Math.imul(He,dr)|0,o=o+Math.imul(He,Qe)|0,s=s+Math.imul(Oe,lr)|0,r=r+Math.imul(Oe,wr)|0,r=r+Math.imul(ze,lr)|0,o=o+Math.imul(ze,wr)|0,s=s+Math.imul(Pe,Mr)|0,r=r+Math.imul(Pe,_r)|0,r=r+Math.imul(qe,Mr)|0,o=o+Math.imul(qe,_r)|0,s=s+Math.imul(De,Br)|0,r=r+Math.imul(De,Er)|0,r=r+Math.imul(ke,Br)|0,o=o+Math.imul(ke,Er)|0;var Hr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Hr>>>26)|0,Hr&=67108863,s=Math.imul(nr,vr),r=Math.imul(nr,pr),r=r+Math.imul(ar,vr)|0,o=Math.imul(ar,pr),s=s+Math.imul(rr,br)|0,r=r+Math.imul(rr,sr)|0,r=r+Math.imul(ir,br)|0,o=o+Math.imul(ir,sr)|0,s=s+Math.imul(Je,or)|0,r=r+Math.imul(Je,xr)|0,r=r+Math.imul(er,or)|0,o=o+Math.imul(er,xr)|0,s=s+Math.imul(Xe,gr)|0,r=r+Math.imul(Xe,hr)|0,r=r+Math.imul(Ve,gr)|0,o=o+Math.imul(Ve,hr)|0,s=s+Math.imul(Ye,yr)|0,r=r+Math.imul(Ye,ur)|0,r=r+Math.imul(tr,yr)|0,o=o+Math.imul(tr,ur)|0,s=s+Math.imul(Ge,dr)|0,r=r+Math.imul(Ge,Qe)|0,r=r+Math.imul(je,dr)|0,o=o+Math.imul(je,Qe)|0,s=s+Math.imul(Fe,lr)|0,r=r+Math.imul(Fe,wr)|0,r=r+Math.imul(He,lr)|0,o=o+Math.imul(He,wr)|0,s=s+Math.imul(Oe,Mr)|0,r=r+Math.imul(Oe,_r)|0,r=r+Math.imul(ze,Mr)|0,o=o+Math.imul(ze,_r)|0,s=s+Math.imul(Pe,Br)|0,r=r+Math.imul(Pe,Er)|0,r=r+Math.imul(qe,Br)|0,o=o+Math.imul(qe,Er)|0;var zr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(zr>>>26)|0,zr&=67108863,s=Math.imul(nr,br),r=Math.imul(nr,sr),r=r+Math.imul(ar,br)|0,o=Math.imul(ar,sr),s=s+Math.imul(rr,or)|0,r=r+Math.imul(rr,xr)|0,r=r+Math.imul(ir,or)|0,o=o+Math.imul(ir,xr)|0,s=s+Math.imul(Je,gr)|0,r=r+Math.imul(Je,hr)|0,r=r+Math.imul(er,gr)|0,o=o+Math.imul(er,hr)|0,s=s+Math.imul(Xe,yr)|0,r=r+Math.imul(Xe,ur)|0,r=r+Math.imul(Ve,yr)|0,o=o+Math.imul(Ve,ur)|0,s=s+Math.imul(Ye,dr)|0,r=r+Math.imul(Ye,Qe)|0,r=r+Math.imul(tr,dr)|0,o=o+Math.imul(tr,Qe)|0,s=s+Math.imul(Ge,lr)|0,r=r+Math.imul(Ge,wr)|0,r=r+Math.imul(je,lr)|0,o=o+Math.imul(je,wr)|0,s=s+Math.imul(Fe,Mr)|0,r=r+Math.imul(Fe,_r)|0,r=r+Math.imul(He,Mr)|0,o=o+Math.imul(He,_r)|0,s=s+Math.imul(Oe,Br)|0,r=r+Math.imul(Oe,Er)|0,r=r+Math.imul(ze,Br)|0,o=o+Math.imul(ze,Er)|0;var Kr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,s=Math.imul(nr,or),r=Math.imul(nr,xr),r=r+Math.imul(ar,or)|0,o=Math.imul(ar,xr),s=s+Math.imul(rr,gr)|0,r=r+Math.imul(rr,hr)|0,r=r+Math.imul(ir,gr)|0,o=o+Math.imul(ir,hr)|0,s=s+Math.imul(Je,yr)|0,r=r+Math.imul(Je,ur)|0,r=r+Math.imul(er,yr)|0,o=o+Math.imul(er,ur)|0,s=s+Math.imul(Xe,dr)|0,r=r+Math.imul(Xe,Qe)|0,r=r+Math.imul(Ve,dr)|0,o=o+Math.imul(Ve,Qe)|0,s=s+Math.imul(Ye,lr)|0,r=r+Math.imul(Ye,wr)|0,r=r+Math.imul(tr,lr)|0,o=o+Math.imul(tr,wr)|0,s=s+Math.imul(Ge,Mr)|0,r=r+Math.imul(Ge,_r)|0,r=r+Math.imul(je,Mr)|0,o=o+Math.imul(je,_r)|0,s=s+Math.imul(Fe,Br)|0,r=r+Math.imul(Fe,Er)|0,r=r+Math.imul(He,Br)|0,o=o+Math.imul(He,Er)|0;var Wr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,s=Math.imul(nr,gr),r=Math.imul(nr,hr),r=r+Math.imul(ar,gr)|0,o=Math.imul(ar,hr),s=s+Math.imul(rr,yr)|0,r=r+Math.imul(rr,ur)|0,r=r+Math.imul(ir,yr)|0,o=o+Math.imul(ir,ur)|0,s=s+Math.imul(Je,dr)|0,r=r+Math.imul(Je,Qe)|0,r=r+Math.imul(er,dr)|0,o=o+Math.imul(er,Qe)|0,s=s+Math.imul(Xe,lr)|0,r=r+Math.imul(Xe,wr)|0,r=r+Math.imul(Ve,lr)|0,o=o+Math.imul(Ve,wr)|0,s=s+Math.imul(Ye,Mr)|0,r=r+Math.imul(Ye,_r)|0,r=r+Math.imul(tr,Mr)|0,o=o+Math.imul(tr,_r)|0,s=s+Math.imul(Ge,Br)|0,r=r+Math.imul(Ge,Er)|0,r=r+Math.imul(je,Br)|0,o=o+Math.imul(je,Er)|0;var Zr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,s=Math.imul(nr,yr),r=Math.imul(nr,ur),r=r+Math.imul(ar,yr)|0,o=Math.imul(ar,ur),s=s+Math.imul(rr,dr)|0,r=r+Math.imul(rr,Qe)|0,r=r+Math.imul(ir,dr)|0,o=o+Math.imul(ir,Qe)|0,s=s+Math.imul(Je,lr)|0,r=r+Math.imul(Je,wr)|0,r=r+Math.imul(er,lr)|0,o=o+Math.imul(er,wr)|0,s=s+Math.imul(Xe,Mr)|0,r=r+Math.imul(Xe,_r)|0,r=r+Math.imul(Ve,Mr)|0,o=o+Math.imul(Ve,_r)|0,s=s+Math.imul(Ye,Br)|0,r=r+Math.imul(Ye,Er)|0,r=r+Math.imul(tr,Br)|0,o=o+Math.imul(tr,Er)|0;var jr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(jr>>>26)|0,jr&=67108863,s=Math.imul(nr,dr),r=Math.imul(nr,Qe),r=r+Math.imul(ar,dr)|0,o=Math.imul(ar,Qe),s=s+Math.imul(rr,lr)|0,r=r+Math.imul(rr,wr)|0,r=r+Math.imul(ir,lr)|0,o=o+Math.imul(ir,wr)|0,s=s+Math.imul(Je,Mr)|0,r=r+Math.imul(Je,_r)|0,r=r+Math.imul(er,Mr)|0,o=o+Math.imul(er,_r)|0,s=s+Math.imul(Xe,Br)|0,r=r+Math.imul(Xe,Er)|0,r=r+Math.imul(Ve,Br)|0,o=o+Math.imul(Ve,Er)|0;var Gr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,s=Math.imul(nr,lr),r=Math.imul(nr,wr),r=r+Math.imul(ar,lr)|0,o=Math.imul(ar,wr),s=s+Math.imul(rr,Mr)|0,r=r+Math.imul(rr,_r)|0,r=r+Math.imul(ir,Mr)|0,o=o+Math.imul(ir,_r)|0,s=s+Math.imul(Je,Br)|0,r=r+Math.imul(Je,Er)|0,r=r+Math.imul(er,Br)|0,o=o+Math.imul(er,Er)|0;var Vr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Vr>>>26)|0,Vr&=67108863,s=Math.imul(nr,Mr),r=Math.imul(nr,_r),r=r+Math.imul(ar,Mr)|0,o=Math.imul(ar,_r),s=s+Math.imul(rr,Br)|0,r=r+Math.imul(rr,Er)|0,r=r+Math.imul(ir,Br)|0,o=o+Math.imul(ir,Er)|0;var Xr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Xr>>>26)|0,Xr&=67108863,s=Math.imul(nr,Br),r=Math.imul(nr,Er),r=r+Math.imul(ar,Br)|0,o=Math.imul(ar,Er);var Yr=(se+s|0)+((r&8191)<<13)|0;return se=(o+(r>>>13)|0)+(Yr>>>26)|0,Yr&=67108863,m[0]=Fr,m[1]=Ir,m[2]=$r,m[3]=Pr,m[4]=Tr,m[5]=Nr,m[6]=Lr,m[7]=Or,m[8]=Ur,m[9]=Hr,m[10]=zr,m[11]=Kr,m[12]=Wr,m[13]=Zr,m[14]=jr,m[15]=Gr,m[16]=Vr,m[17]=Xr,m[18]=Yr,se!==0&&(m[19]=se,i.length++),i};Math.imul||(ye=be);function _e(l,e,t){t.negative=e.negative^l.negative,t.length=l.length+e.length;for(var i=0,n=0,d=0;d<t.length-1;d++){var m=n;n=0;for(var se=i&67108863,s=Math.min(d,e.length-1),r=Math.max(0,d-l.length+1);r<=s;r++){var o=d-r,Ce=l.words[o]|0,De=e.words[r]|0,ke=Ce*De,Ue=ke&67108863;m=m+(ke/67108864|0)|0,Ue=Ue+se|0,se=Ue&67108863,m=m+(Ue>>>26)|0,n+=m>>>26,m&=67108863}t.words[d]=se,i=m,m=n}return i!==0?t.words[d]=i:t.length--,t.strip()}function Ae(l,e,t){var i=new we;return i.mulp(l,e,t)}a.prototype.mulTo=function(e,t){var i,n=this.length+e.length;return this.length===10&&e.length===10?i=ye(this,e,t):n<63?i=be(this,e,t):n<1024?i=_e(this,e,t):i=Ae(this,e,t),i};function we(l,e){this.x=l,this.y=e}we.prototype.makeRBT=function(e){for(var t=new Array(e),i=a.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,i,e);return t},we.prototype.revBin=function(e,t,i){if(e===0||e===i-1)return e;for(var n=0,d=0;d<t;d++)n|=(e&1)<<t-d-1,e>>=1;return n},we.prototype.permute=function(e,t,i,n,d,m){for(var se=0;se<m;se++)n[se]=t[e[se]],d[se]=i[e[se]]},we.prototype.transform=function(e,t,i,n,d,m){this.permute(m,e,t,i,n,d);for(var se=1;se<d;se<<=1)for(var s=se<<1,r=Math.cos(2*Math.PI/s),o=Math.sin(2*Math.PI/s),Ce=0;Ce<d;Ce+=s)for(var De=r,ke=o,Ue=0;Ue<se;Ue++){var Pe=i[Ce+Ue],qe=n[Ce+Ue],Ie=i[Ce+Ue+se],Oe=n[Ce+Ue+se],ze=De*Ie-ke*Oe;Oe=De*Oe+ke*Ie,Ie=ze,i[Ce+Ue]=Pe+Ie,n[Ce+Ue]=qe+Oe,i[Ce+Ue+se]=Pe-Ie,n[Ce+Ue+se]=qe-Oe,Ue!==s&&(ze=r*De-o*ke,ke=r*ke+o*De,De=ze)}},we.prototype.guessLen13b=function(e,t){var i=Math.max(t,e)|1,n=i&1,d=0;for(i=i/2|0;i;i=i>>>1)d++;return 1<<d+1+n},we.prototype.conjugate=function(e,t,i){if(!(i<=1))for(var n=0;n<i/2;n++){var d=e[n];e[n]=e[i-n-1],e[i-n-1]=d,d=t[n],t[n]=-t[i-n-1],t[i-n-1]=-d}},we.prototype.normalize13b=function(e,t){for(var i=0,n=0;n<t/2;n++){var d=Math.round(e[2*n+1]/t)*8192+Math.round(e[2*n]/t)+i;e[n]=d&67108863,d<67108864?i=0:i=d/67108864|0}return e},we.prototype.convert13b=function(e,t,i,n){for(var d=0,m=0;m<t;m++)d=d+(e[m]|0),i[2*m]=d&8191,d=d>>>13,i[2*m+1]=d&8191,d=d>>>13;for(m=2*t;m<n;++m)i[m]=0;he(d===0),he((d&-8192)===0)},we.prototype.stub=function(e){for(var t=new Array(e),i=0;i<e;i++)t[i]=0;return t},we.prototype.mulp=function(e,t,i){var n=2*this.guessLen13b(e.length,t.length),d=this.makeRBT(n),m=this.stub(n),se=new Array(n),s=new Array(n),r=new Array(n),o=new Array(n),Ce=new Array(n),De=new Array(n),ke=i.words;ke.length=n,this.convert13b(e.words,e.length,se,n),this.convert13b(t.words,t.length,o,n),this.transform(se,m,s,r,n,d),this.transform(o,m,Ce,De,n,d);for(var Ue=0;Ue<n;Ue++){var Pe=s[Ue]*Ce[Ue]-r[Ue]*De[Ue];r[Ue]=s[Ue]*De[Ue]+r[Ue]*Ce[Ue],s[Ue]=Pe}return this.conjugate(s,r,n),this.transform(s,r,ke,m,n,d),this.conjugate(ke,m,n),this.normalize13b(ke,n),i.negative=e.negative^t.negative,i.length=e.length+t.length,i.strip()},a.prototype.mul=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},a.prototype.mulf=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),Ae(this,e,t)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){he(typeof e=="number"),he(e<67108864);for(var t=0,i=0;i<this.length;i++){var n=(this.words[i]|0)*e,d=(n&67108863)+(t&67108863);t>>=26,t+=n/67108864|0,t+=d>>>26,this.words[i]=d&67108863}return t!==0&&(this.words[i]=t,this.length++),this.length=e===0?1:this.length,this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=me(e);if(t.length===0)return new a(1);for(var i=this,n=0;n<t.length&&t[n]===0;n++,i=i.sqr());if(++n<t.length)for(var d=i.sqr();n<t.length;n++,d=d.sqr())t[n]!==0&&(i=i.mul(d));return i},a.prototype.iushln=function(e){he(typeof e=="number"&&e>=0);var t=e%26,i=(e-t)/26,n=67108863>>>26-t<<26-t,d;if(t!==0){var m=0;for(d=0;d<this.length;d++){var se=this.words[d]&n,s=(this.words[d]|0)-se<<t;this.words[d]=s|m,m=se>>>26-t}m&&(this.words[d]=m,this.length++)}if(i!==0){for(d=this.length-1;d>=0;d--)this.words[d+i]=this.words[d];for(d=0;d<i;d++)this.words[d]=0;this.length+=i}return this.strip()},a.prototype.ishln=function(e){return he(this.negative===0),this.iushln(e)},a.prototype.iushrn=function(e,t,i){he(typeof e=="number"&&e>=0);var n;t?n=(t-t%26)/26:n=0;var d=e%26,m=Math.min((e-d)/26,this.length),se=67108863^67108863>>>d<<d,s=i;if(n-=m,n=Math.max(0,n),s){for(var r=0;r<m;r++)s.words[r]=this.words[r];s.length=m}if(m!==0)if(this.length>m)for(this.length-=m,r=0;r<this.length;r++)this.words[r]=this.words[r+m];else this.words[0]=0,this.length=1;var o=0;for(r=this.length-1;r>=0&&(o!==0||r>=n);r--){var Ce=this.words[r]|0;this.words[r]=o<<26-d|Ce>>>d,o=Ce&se}return s&&o!==0&&(s.words[s.length++]=o),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,i){return he(this.negative===0),this.iushrn(e,t,i)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){he(typeof e=="number"&&e>=0);var t=e%26,i=(e-t)/26,n=1<<t;if(this.length<=i)return!1;var d=this.words[i];return!!(d&n)},a.prototype.imaskn=function(e){he(typeof e=="number"&&e>=0);var t=e%26,i=(e-t)/26;if(he(this.negative===0,"imaskn works only with positive numbers"),this.length<=i)return this;if(t!==0&&i++,this.length=Math.min(i,this.length),t!==0){var n=67108863^67108863>>>t<<t;this.words[this.length-1]&=n}return this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return he(typeof e=="number"),he(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(this.words[0]|0)<e?(this.words[0]=e-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(he(typeof e=="number"),he(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,t,i){var n=e.length+i,d;this._expand(n);var m,se=0;for(d=0;d<e.length;d++){m=(this.words[d+i]|0)+se;var s=(e.words[d]|0)*t;m-=s&67108863,se=(m>>26)-(s/67108864|0),this.words[d+i]=m&67108863}for(;d<this.length-i;d++)m=(this.words[d+i]|0)+se,se=m>>26,this.words[d+i]=m&67108863;if(se===0)return this.strip();for(he(se===-1),se=0,d=0;d<this.length;d++)m=-(this.words[d]|0)+se,se=m>>26,this.words[d]=m&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var i=this.length-e.length,n=this.clone(),d=e,m=d.words[d.length-1]|0,se=this._countBits(m);i=26-se,i!==0&&(d=d.ushln(i),n.iushln(i),m=d.words[d.length-1]|0);var s=n.length-d.length,r;if(t!=="mod"){r=new a(null),r.length=s+1,r.words=new Array(r.length);for(var o=0;o<r.length;o++)r.words[o]=0}var Ce=n.clone()._ishlnsubmul(d,1,s);Ce.negative===0&&(n=Ce,r&&(r.words[s]=1));for(var De=s-1;De>=0;De--){var ke=(n.words[d.length+De]|0)*67108864+(n.words[d.length+De-1]|0);for(ke=Math.min(ke/m|0,67108863),n._ishlnsubmul(d,ke,De);n.negative!==0;)ke--,n.negative=0,n._ishlnsubmul(d,1,De),n.isZero()||(n.negative^=1);r&&(r.words[De]=ke)}return r&&r.strip(),n.strip(),t!=="div"&&i!==0&&n.iushrn(i),{div:r||null,mod:n}},a.prototype.divmod=function(e,t,i){if(he(!e.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var n,d,m;return this.negative!==0&&e.negative===0?(m=this.neg().divmod(e,t),t!=="mod"&&(n=m.div.neg()),t!=="div"&&(d=m.mod.neg(),i&&d.negative!==0&&d.iadd(e)),{div:n,mod:d}):this.negative===0&&e.negative!==0?(m=this.divmod(e.neg(),t),t!=="mod"&&(n=m.div.neg()),{div:n,mod:m.mod}):(this.negative&e.negative)!==0?(m=this.neg().divmod(e.neg(),t),t!=="div"&&(d=m.mod.neg(),i&&d.negative!==0&&d.isub(e)),{div:m.div,mod:d}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:e.length===1?t==="div"?{div:this.divn(e.words[0]),mod:null}:t==="mod"?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=t.div.negative!==0?t.mod.isub(e):t.mod,n=e.ushrn(1),d=e.andln(1),m=i.cmp(n);return m<0||d===1&&m===0?t.div:t.div.negative!==0?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){he(e<=67108863);for(var t=(1<<26)%e,i=0,n=this.length-1;n>=0;n--)i=(t*i+(this.words[n]|0))%e;return i},a.prototype.idivn=function(e){he(e<=67108863);for(var t=0,i=this.length-1;i>=0;i--){var n=(this.words[i]|0)+t*67108864;this.words[i]=n/e|0,t=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){he(e.negative===0),he(!e.isZero());var t=this,i=e.clone();t.negative!==0?t=t.umod(e):t=t.clone();for(var n=new a(1),d=new a(0),m=new a(0),se=new a(1),s=0;t.isEven()&&i.isEven();)t.iushrn(1),i.iushrn(1),++s;for(var r=i.clone(),o=t.clone();!t.isZero();){for(var Ce=0,De=1;(t.words[0]&De)===0&&Ce<26;++Ce,De<<=1);if(Ce>0)for(t.iushrn(Ce);Ce-- >0;)(n.isOdd()||d.isOdd())&&(n.iadd(r),d.isub(o)),n.iushrn(1),d.iushrn(1);for(var ke=0,Ue=1;(i.words[0]&Ue)===0&&ke<26;++ke,Ue<<=1);if(ke>0)for(i.iushrn(ke);ke-- >0;)(m.isOdd()||se.isOdd())&&(m.iadd(r),se.isub(o)),m.iushrn(1),se.iushrn(1);t.cmp(i)>=0?(t.isub(i),n.isub(m),d.isub(se)):(i.isub(t),m.isub(n),se.isub(d))}return{a:m,b:se,gcd:i.iushln(s)}},a.prototype._invmp=function(e){he(e.negative===0),he(!e.isZero());var t=this,i=e.clone();t.negative!==0?t=t.umod(e):t=t.clone();for(var n=new a(1),d=new a(0),m=i.clone();t.cmpn(1)>0&&i.cmpn(1)>0;){for(var se=0,s=1;(t.words[0]&s)===0&&se<26;++se,s<<=1);if(se>0)for(t.iushrn(se);se-- >0;)n.isOdd()&&n.iadd(m),n.iushrn(1);for(var r=0,o=1;(i.words[0]&o)===0&&r<26;++r,o<<=1);if(r>0)for(i.iushrn(r);r-- >0;)d.isOdd()&&d.iadd(m),d.iushrn(1);t.cmp(i)>=0?(t.isub(i),n.isub(d)):(i.isub(t),d.isub(n))}var Ce;return t.cmpn(1)===0?Ce=n:Ce=d,Ce.cmpn(0)<0&&Ce.iadd(e),Ce},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var n=0;t.isEven()&&i.isEven();n++)t.iushrn(1),i.iushrn(1);do{for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var d=t.cmp(i);if(d<0){var m=t;t=i,i=m}else if(d===0||i.cmpn(1)===0)break;t.isub(i)}while(!0);return i.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){he(typeof e=="number");var t=e%26,i=(e-t)/26,n=1<<t;if(this.length<=i)return this._expand(i+1),this.words[i]|=n,this;for(var d=n,m=i;d!==0&&m<this.length;m++){var se=this.words[m]|0;se+=d,d=se>>>26,se&=67108863,this.words[m]=se}return d!==0&&(this.words[m]=d,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(e){var t=e<0;if(this.negative!==0&&!t)return-1;if(this.negative===0&&t)return 1;this.strip();var i;if(this.length>1)i=1;else{t&&(e=-e),he(e<=67108863,"Number is too big");var n=this.words[0]|0;i=n===e?0:n<e?-1:1}return this.negative!==0?-i|0:i},a.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var t=this.ucmp(e);return this.negative!==0?-t|0:t},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,i=this.length-1;i>=0;i--){var n=this.words[i]|0,d=e.words[i]|0;if(n!==d){n<d?t=-1:n>d&&(t=1);break}}return t},a.prototype.gtn=function(e){return this.cmpn(e)===1},a.prototype.gt=function(e){return this.cmp(e)===1},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return this.cmpn(e)===-1},a.prototype.lt=function(e){return this.cmp(e)===-1},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return this.cmpn(e)===0},a.prototype.eq=function(e){return this.cmp(e)===0},a.red=function(e){return new Ne(e)},a.prototype.toRed=function(e){return he(!this.red,"Already a number in reduction context"),he(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return he(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return he(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return he(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return he(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return he(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return he(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return he(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return he(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return he(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return he(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return he(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return he(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return he(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return he(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return he(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var Re={k256:null,p224:null,p192:null,p25519:null};function Se(l,e){this.name=l,this.p=new a(e,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Se.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},Se.prototype.ireduce=function(e){var t=e,i;do this.split(t,this.tmp),t=this.imulK(t),t=t.iadd(this.tmp),i=t.bitLength();while(i>this.n);var n=i<this.n?-1:t.ucmp(this.p);return n===0?(t.words[0]=0,t.length=1):n>0?t.isub(this.p):t.strip!==void 0?t.strip():t._strip(),t},Se.prototype.split=function(e,t){e.iushrn(this.n,0,t)},Se.prototype.imulK=function(e){return e.imul(this.k)};function $e(){Se.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}Me($e,Se),$e.prototype.split=function(e,t){for(var i=4194303,n=Math.min(e.length,9),d=0;d<n;d++)t.words[d]=e.words[d];if(t.length=n,e.length<=9){e.words[0]=0,e.length=1;return}var m=e.words[9];for(t.words[t.length++]=m&i,d=10;d<e.length;d++){var se=e.words[d]|0;e.words[d-10]=(se&i)<<4|m>>>22,m=se}m>>>=22,e.words[d-10]=m,m===0&&e.length>10?e.length-=10:e.length-=9},$e.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i<e.length;i++){var n=e.words[i]|0;t+=n*977,e.words[i]=t&67108863,t=n*64+(t/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function Te(){Se.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}Me(Te,Se);function We(){Se.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}Me(We,Se);function Ze(){Se.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}Me(Ze,Se),Ze.prototype.imulK=function(e){for(var t=0,i=0;i<e.length;i++){var n=(e.words[i]|0)*19+t,d=n&67108863;n>>>=26,e.words[i]=d,t=n}return t!==0&&(e.words[e.length++]=t),e},a._prime=function(e){if(Re[e])return Re[e];var t;if(e==="k256")t=new $e;else if(e==="p224")t=new Te;else if(e==="p192")t=new We;else if(e==="p25519")t=new Ze;else throw new Error("Unknown prime "+e);return Re[e]=t,t};function Ne(l){if(typeof l=="string"){var e=a._prime(l);this.m=e.p,this.prime=e}else he(l.gtn(1),"modulus must be greater than 1"),this.m=l,this.prime=null}Ne.prototype._verify1=function(e){he(e.negative===0,"red works only with positives"),he(e.red,"red works only with red numbers")},Ne.prototype._verify2=function(e,t){he((e.negative|t.negative)===0,"red works only with positives"),he(e.red&&e.red===t.red,"red works only with red numbers")},Ne.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},Ne.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},Ne.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},Ne.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},Ne.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},Ne.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},Ne.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},Ne.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},Ne.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},Ne.prototype.isqr=function(e){return this.imul(e,e.clone())},Ne.prototype.sqr=function(e){return this.mul(e,e)},Ne.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(he(t%2===1),t===3){var i=this.m.add(new a(1)).iushrn(2);return this.pow(e,i)}for(var n=this.m.subn(1),d=0;!n.isZero()&&n.andln(1)===0;)d++,n.iushrn(1);he(!n.isZero());var m=new a(1).toRed(this),se=m.redNeg(),s=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new a(2*r*r).toRed(this);this.pow(r,s).cmp(se)!==0;)r.redIAdd(se);for(var o=this.pow(r,n),Ce=this.pow(e,n.addn(1).iushrn(1)),De=this.pow(e,n),ke=d;De.cmp(m)!==0;){for(var Ue=De,Pe=0;Ue.cmp(m)!==0;Pe++)Ue=Ue.redSqr();he(Pe<ke);var qe=this.pow(o,new a(1).iushln(ke-Pe-1));Ce=Ce.redMul(qe),o=qe.redSqr(),De=De.redMul(o),ke=Pe}return Ce},Ne.prototype.invm=function(e){var t=e._invmp(this.m);return t.negative!==0?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},Ne.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(t.cmpn(1)===0)return e.clone();var i=4,n=new Array(1<<i);n[0]=new a(1).toRed(this),n[1]=e;for(var d=2;d<n.length;d++)n[d]=this.mul(n[d-1],e);var m=n[0],se=0,s=0,r=t.bitLength()%26;for(r===0&&(r=26),d=t.length-1;d>=0;d--){for(var o=t.words[d],Ce=r-1;Ce>=0;Ce--){var De=o>>Ce&1;if(m!==n[0]&&(m=this.sqr(m)),De===0&&se===0){s=0;continue}se<<=1,se|=De,s++,!(s!==i&&(d!==0||Ce!==0))&&(m=this.mul(m,n[se]),s=0,se=0)}r=26}return m},Ne.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},Ne.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new Ke(e)};function Ke(l){Ne.call(this,l),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}Me(Ke,Ne),Ke.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},Ke.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},Ke.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),d=i.isub(n).iushrn(this.shift),m=d;return d.cmp(this.m)>=0?m=d.isub(this.m):d.cmpn(0)<0&&(m=d.iadd(this.m)),m._forceRed(this)},Ke.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var i=e.mul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),d=i.isub(n).iushrn(this.shift),m=d;return d.cmp(this.m)>=0?m=d.isub(this.m):d.cmpn(0)<0&&(m=d.iadd(this.m)),m._forceRed(this)},Ke.prototype.invm=function(e){var t=this.imod(e._invmp(this.m).mul(this.r2));return t._forceRed(this)}})(ge,bn$8)})(bn$9)),bn$9.exports}var brorand={exports:{}},hasRequiredBrorand;function requireBrorand(){if(hasRequiredBrorand)return brorand.exports;hasRequiredBrorand=1;var ge;brorand.exports=function(Me){return ge||(ge=new Ee(null)),ge.generate(Me)};function Ee(he){this.rand=he}if(brorand.exports.Rand=Ee,Ee.prototype.generate=function(Me){return this._rand(Me)},Ee.prototype._rand=function(Me){if(this.rand.getBytes)return this.rand.getBytes(Me);for(var a=new Uint8Array(Me),xe=0;xe<a.length;xe++)a[xe]=this.rand.getByte();return a},typeof self=="object")self.crypto&&self.crypto.getRandomValues?Ee.prototype._rand=function(Me){var a=new Uint8Array(Me);return self.crypto.getRandomValues(a),a}:self.msCrypto&&self.msCrypto.getRandomValues?Ee.prototype._rand=function(Me){var a=new Uint8Array(Me);return self.msCrypto.getRandomValues(a),a}:typeof window=="object"&&(Ee.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var Be=requireCryptoBrowserify();if(typeof Be.randomBytes!="function")throw new Error("Not supported");Ee.prototype._rand=function(Me){return Be.randomBytes(Me)}}catch{}return brorand.exports}var mr,hasRequiredMr;function requireMr(){if(hasRequiredMr)return mr;hasRequiredMr=1;var ge=requireBn$4(),Ee=requireBrorand();function Be(he){this.rand=he||new Ee.Rand}return mr=Be,Be.create=function(Me){return new Be(Me)},Be.prototype._randbelow=function(Me){var a=Me.bitLength(),xe=Math.ceil(a/8);do var pe=new ge(this.rand.generate(xe));while(pe.cmp(Me)>=0);return pe},Be.prototype._randrange=function(Me,a){var xe=a.sub(Me);return Me.add(this._randbelow(xe))},Be.prototype.test=function(Me,a,xe){var pe=Me.bitLength(),ve=ge.mont(Me),fe=new ge(1).toRed(ve);a||(a=Math.max(1,pe/48|0));for(var c=Me.subn(1),ue=0;!c.testn(ue);ue++);for(var de=Me.shrn(ue),me=c.toRed(ve),be=!0;a>0;a--){var ye=this._randrange(new ge(2),c);xe&&xe(ye);var _e=ye.toRed(ve).redPow(de);if(!(_e.cmp(fe)===0||_e.cmp(me)===0)){for(var Ae=1;Ae<ue;Ae++){if(_e=_e.redSqr(),_e.cmp(fe)===0)return!1;if(_e.cmp(me)===0)break}if(Ae===ue)return!1}}return be},Be.prototype.getDivisor=function(Me,a){var xe=Me.bitLength(),pe=ge.mont(Me),ve=new ge(1).toRed(pe);a||(a=Math.max(1,xe/48|0));for(var fe=Me.subn(1),c=0;!fe.testn(c);c++);for(var ue=Me.shrn(c),de=fe.toRed(pe);a>0;a--){var me=this._randrange(new ge(2),fe),be=Me.gcd(me);if(be.cmpn(1)!==0)return be;var ye=me.toRed(pe).redPow(ue);if(!(ye.cmp(ve)===0||ye.cmp(de)===0)){for(var _e=1;_e<c;_e++){if(ye=ye.redSqr(),ye.cmp(ve)===0)return ye.fromRed().subn(1).gcd(Me);if(ye.cmp(de)===0)break}if(_e===c)return ye=ye.redSqr(),ye.fromRed().subn(1).gcd(Me)}}return!1},mr}var generatePrime,hasRequiredGeneratePrime;function requireGeneratePrime(){if(hasRequiredGeneratePrime)return generatePrime;hasRequiredGeneratePrime=1;var ge=requireBrowser$a();generatePrime=_e,_e.simpleSieve=be,_e.fermatTest=ye;var Ee=requireBn$5(),Be=new Ee(24),he=requireMr(),Me=new he,a=new Ee(1),xe=new Ee(2),pe=new Ee(5);new Ee(16),new Ee(8);var ve=new Ee(10),fe=new Ee(3);new Ee(7);var c=new Ee(11),ue=new Ee(4);new Ee(12);var de=null;function me(){if(de!==null)return de;var Ae=1048576,we=[];we[0]=2;for(var Re=1,Se=3;Se<Ae;Se+=2){for(var $e=Math.ceil(Math.sqrt(Se)),Te=0;Te<Re&&we[Te]<=$e&&Se%we[Te]!==0;Te++);Re!==Te&&we[Te]<=$e||(we[Re++]=Se)}return de=we,we}function be(Ae){for(var we=me(),Re=0;Re<we.length;Re++)if(Ae.modn(we[Re])===0)return Ae.cmpn(we[Re])===0;return!0}function ye(Ae){var we=Ee.mont(Ae);return xe.toRed(we).redPow(Ae.subn(1)).fromRed().cmpn(1)===0}function _e(Ae,we){if(Ae<16)return we===2||we===5?new Ee([140,123]):new Ee([140,39]);we=new Ee(we);for(var Re,Se;;){for(Re=new Ee(ge(Math.ceil(Ae/8)));Re.bitLength()>Ae;)Re.ishrn(1);if(Re.isEven()&&Re.iadd(a),Re.testn(1)||Re.iadd(xe),we.cmp(xe)){if(!we.cmp(pe))for(;Re.mod(ve).cmp(fe);)Re.iadd(ue)}else for(;Re.mod(Be).cmp(c);)Re.iadd(ue);if(Se=Re.shrn(1),be(Se)&&be(Re)&&ye(Se)&&ye(Re)&&Me.test(Se)&&Me.test(Re))return Re}}return generatePrime}const modp1={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},require$$1$1={modp1,modp2,modp5,modp14,modp15,modp16,modp17,modp18};var dh,hasRequiredDh;function requireDh(){if(hasRequiredDh)return dh;hasRequiredDh=1;var ge=requireBn$5(),Ee=requireMr(),Be=new Ee,he=new ge(24),Me=new ge(11),a=new ge(10),xe=new ge(3),pe=new ge(7),ve=requireGeneratePrime(),fe=requireBrowser$a();dh=be;function c(_e,Ae){return Ae=Ae||"utf8",Buffer.isBuffer(_e)||(_e=new Buffer(_e,Ae)),this._pub=new ge(_e),this}function ue(_e,Ae){return Ae=Ae||"utf8",Buffer.isBuffer(_e)||(_e=new Buffer(_e,Ae)),this._priv=new ge(_e),this}var de={};function me(_e,Ae){var we=Ae.toString("hex"),Re=[we,_e.toString(16)].join("_");if(Re in de)return de[Re];var Se=0;if(_e.isEven()||!ve.simpleSieve||!ve.fermatTest(_e)||!Be.test(_e))return Se+=1,we==="02"||we==="05"?Se+=8:Se+=4,de[Re]=Se,Se;Be.test(_e.shrn(1))||(Se+=2);var $e;switch(we){case"02":_e.mod(he).cmp(Me)&&(Se+=8);break;case"05":$e=_e.mod(a),$e.cmp(xe)&&$e.cmp(pe)&&(Se+=8);break;default:Se+=4}return de[Re]=Se,Se}function be(_e,Ae,we){this.setGenerator(Ae),this.__prime=new ge(_e),this._prime=ge.mont(this.__prime),this._primeLen=_e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,we?(this.setPublicKey=c,this.setPrivateKey=ue):this._primeCode=8}Object.defineProperty(be.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=me(this.__prime,this.__gen)),this._primeCode}}),be.prototype.generateKeys=function(){return this._priv||(this._priv=new ge(fe(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},be.prototype.computeSecret=function(_e){_e=new ge(_e),_e=_e.toRed(this._prime);var Ae=_e.redPow(this._priv).fromRed(),we=new Buffer(Ae.toArray()),Re=this.getPrime();if(we.length<Re.length){var Se=new Buffer(Re.length-we.length);Se.fill(0),we=Buffer.concat([Se,we])}return we},be.prototype.getPublicKey=function(Ae){return ye(this._pub,Ae)},be.prototype.getPrivateKey=function(Ae){return ye(this._priv,Ae)},be.prototype.getPrime=function(_e){return ye(this.__prime,_e)},be.prototype.getGenerator=function(_e){return ye(this._gen,_e)},be.prototype.setGenerator=function(_e,Ae){return Ae=Ae||"utf8",Buffer.isBuffer(_e)||(_e=new Buffer(_e,Ae)),this.__gen=_e,this._gen=new ge(_e),this};function ye(_e,Ae){var we=new Buffer(_e.toArray());return Ae?we.toString(Ae):we}return dh}var hasRequiredBrowser$4;function requireBrowser$4(){if(hasRequiredBrowser$4)return browser$4;hasRequiredBrowser$4=1;var ge=requireGeneratePrime(),Ee=require$$1$1,Be=requireDh();function he(xe){var pe=new Buffer(Ee[xe].prime,"hex"),ve=new Buffer(Ee[xe].gen,"hex");return new Be(pe,ve)}var Me={binary:!0,hex:!0,base64:!0};function a(xe,pe,ve,fe){return Buffer.isBuffer(pe)||Me[pe]===void 0?a(xe,"binary",pe,ve):(pe=pe||"binary",fe=fe||"binary",ve=ve||new Buffer([2]),Buffer.isBuffer(ve)||(ve=new Buffer(ve,fe)),typeof xe=="number"?new Be(ge(xe,ve),ve,!0):(Buffer.isBuffer(xe)||(xe=new Buffer(xe,pe)),new Be(xe,ve,!0)))}return browser$4.DiffieHellmanGroup=browser$4.createDiffieHellmanGroup=browser$4.getDiffieHellman=he,browser$4.createDiffieHellman=browser$4.DiffieHellman=a,browser$4}var sign={exports:{}},browserifyRsa,hasRequiredBrowserifyRsa;function requireBrowserifyRsa(){if(hasRequiredBrowserifyRsa)return browserifyRsa;hasRequiredBrowserifyRsa=1;var ge=requireBn$6(),Ee=requireBrowser$a(),Be=requireSafeBuffer$1().Buffer;function he(xe){var pe=xe.modulus.byteLength(),ve;do ve=new ge(Ee(pe));while(ve.cmp(xe.modulus)>=0||!ve.umod(xe.prime1)||!ve.umod(xe.prime2));return ve}function Me(xe){var pe=he(xe),ve=pe.toRed(ge.mont(xe.modulus)).redPow(new ge(xe.publicExponent)).fromRed();return{blinder:ve,unblinder:pe.invm(xe.modulus)}}function a(xe,pe){var ve=Me(pe),fe=pe.modulus.byteLength(),c=new ge(xe).mul(ve.blinder).umod(pe.modulus),ue=c.toRed(ge.mont(pe.prime1)),de=c.toRed(ge.mont(pe.prime2)),me=pe.coefficient,be=pe.prime1,ye=pe.prime2,_e=ue.redPow(pe.exponent1).fromRed(),Ae=de.redPow(pe.exponent2).fromRed(),we=_e.isub(Ae).imul(me).umod(be).imul(ye);return Ae.iadd(we).imul(ve.unblinder).umod(pe.modulus).toArrayLike(Be,"be",fe)}return a.getr=he,browserifyRsa=a,browserifyRsa}var elliptic={};const version="6.6.1",require$$0={version};var utils$1={},bn$7={exports:{}},bn$6=bn$7.exports,hasRequiredBn$3;function requireBn$3(){return hasRequiredBn$3||(hasRequiredBn$3=1,(function(ge){(function(Ee,Be){function he(l,e){if(!l)throw new Error(e||"Assertion failed")}function Me(l,e){l.super_=e;var t=function(){};t.prototype=e.prototype,l.prototype=new t,l.prototype.constructor=l}function a(l,e,t){if(a.isBN(l))return l;this.negative=0,this.words=null,this.length=0,this.red=null,l!==null&&((e==="le"||e==="be")&&(t=e,e=10),this._init(l||0,e||10,t||"be"))}typeof Ee=="object"?Ee.exports=a:Be.BN=a,a.BN=a,a.wordSize=26;var xe;try{typeof window<"u"&&typeof window.Buffer<"u"?xe=window.Buffer:xe=requireDist().Buffer}catch{}a.isBN=function(e){return e instanceof a?!0:e!==null&&typeof e=="object"&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,i){if(typeof e=="number")return this._initNumber(e,t,i);if(typeof e=="object")return this._initArray(e,t,i);t==="hex"&&(t=16),he(t===(t|0)&&t>=2&&t<=36),e=e.toString().replace(/\s+/g,"");var n=0;e[0]==="-"&&(n++,this.negative=1),n<e.length&&(t===16?this._parseHex(e,n,i):(this._parseBase(e,t,n),i==="le"&&this._initArray(this.toArray(),t,i)))},a.prototype._initNumber=function(e,t,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[e&67108863],this.length=1):e<4503599627370496?(this.words=[e&67108863,e/67108864&67108863],this.length=2):(he(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),i==="le"&&this._initArray(this.toArray(),t,i)},a.prototype._initArray=function(e,t,i){if(he(typeof e.length=="number"),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var d,m,se=0;if(i==="be")for(n=e.length-1,d=0;n>=0;n-=3)m=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[d]|=m<<se&67108863,this.words[d+1]=m>>>26-se&67108863,se+=24,se>=26&&(se-=26,d++);else if(i==="le")for(n=0,d=0;n<e.length;n+=3)m=e[n]|e[n+1]<<8|e[n+2]<<16,this.words[d]|=m<<se&67108863,this.words[d+1]=m>>>26-se&67108863,se+=24,se>=26&&(se-=26,d++);return this.strip()};function pe(l,e){var t=l.charCodeAt(e);return t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:t-48&15}function ve(l,e,t){var i=pe(l,t);return t-1>=e&&(i|=pe(l,t-1)<<4),i}a.prototype._parseHex=function(e,t,i){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var d=0,m=0,se;if(i==="be")for(n=e.length-1;n>=t;n-=2)se=ve(e,t,n)<<d,this.words[m]|=se&67108863,d>=18?(d-=18,m+=1,this.words[m]|=se>>>26):d+=8;else{var s=e.length-t;for(n=s%2===0?t+1:t;n<e.length;n+=2)se=ve(e,t,n)<<d,this.words[m]|=se&67108863,d>=18?(d-=18,m+=1,this.words[m]|=se>>>26):d+=8}this.strip()};function fe(l,e,t,i){for(var n=0,d=Math.min(l.length,t),m=e;m<d;m++){var se=l.charCodeAt(m)-48;n*=i,se>=49?n+=se-49+10:se>=17?n+=se-17+10:n+=se}return n}a.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var n=0,d=1;d<=67108863;d*=t)n++;n--,d=d/t|0;for(var m=e.length-i,se=m%n,s=Math.min(m,m-se)+i,r=0,o=i;o<s;o+=n)r=fe(e,o,o+n,t),this.imuln(d),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r);if(se!==0){var Ce=1;for(r=fe(e,o,e.length,t),o=0;o<se;o++)Ce*=t;this.imuln(Ce),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r)}this.strip()},a.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],ue=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],de=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(e,t){e=e||10,t=t|0||1;var i;if(e===16||e==="hex"){i="";for(var n=0,d=0,m=0;m<this.length;m++){var se=this.words[m],s=((se<<n|d)&16777215).toString(16);d=se>>>24-n&16777215,n+=2,n>=26&&(n-=26,m--),d!==0||m!==this.length-1?i=c[6-s.length]+s+i:i=s+i}for(d!==0&&(i=d.toString(16)+i);i.length%t!==0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}if(e===(e|0)&&e>=2&&e<=36){var r=ue[e],o=de[e];i="";var Ce=this.clone();for(Ce.negative=0;!Ce.isZero();){var De=Ce.modn(o).toString(e);Ce=Ce.idivn(o),Ce.isZero()?i=De+i:i=c[r-De.length]+De+i}for(this.isZero()&&(i="0"+i);i.length%t!==0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}he(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=this.words[1]*67108864:this.length===3&&this.words[2]===1?e+=4503599627370496+this.words[1]*67108864:this.length>2&&he(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return he(typeof xe<"u"),this.toArrayLike(xe,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,i){var n=this.byteLength(),d=i||Math.max(1,n);he(n<=d,"byte array longer than desired length"),he(d>0,"Requested array length <= 0"),this.strip();var m=t==="le",se=new e(d),s,r,o=this.clone();if(m){for(r=0;!o.isZero();r++)s=o.andln(255),o.iushrn(8),se[r]=s;for(;r<d;r++)se[r]=0}else{for(r=0;r<d-n;r++)se[r]=0;for(r=0;!o.isZero();r++)s=o.andln(255),o.iushrn(8),se[d-r-1]=s}return se},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},a.prototype._zeroBits=function(e){if(e===0)return 26;var t=e,i=0;return(t&8191)===0&&(i+=13,t>>>=13),(t&127)===0&&(i+=7,t>>>=7),(t&15)===0&&(i+=4,t>>>=4),(t&3)===0&&(i+=2,t>>>=2),(t&1)===0&&i++,i},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t};function me(l){for(var e=new Array(l.bitLength()),t=0;t<e.length;t++){var i=t/26|0,n=t%26;e[t]=(l.words[i]&1<<n)>>>n}return e}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var i=this._zeroBits(this.words[t]);if(e+=i,i!==26)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},a.prototype.ior=function(e){return he((this.negative|e.negative)===0),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;this.length>e.length?t=e:t=this;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=t.length,this.strip()},a.prototype.iand=function(e){return he((this.negative|e.negative)===0),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=t.words[n]^i.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},a.prototype.ixor=function(e){return he((this.negative|e.negative)===0),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){he(typeof e=="number"&&e>=0);var t=Math.ceil(e/26)|0,i=e%26;this._expand(t),i>0&&t--;for(var n=0;n<t;n++)this.words[n]=~this.words[n]&67108863;for(i>0&&(this.words[n]=~this.words[n]&67108863>>26-i,n++);n<this.length;n++)this.words[n]=0;return this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){he(typeof e=="number"&&e>=0);var i=e/26|0,n=e%26;return this._expand(i+1),t?this.words[i]=this.words[i]|1<<n:this.words[i]=this.words[i]&~(1<<n),this.strip()},a.prototype.iadd=function(e){var t;if(this.negative!==0&&e.negative===0)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();var i,n;this.length>e.length?(i=this,n=e):(i=e,n=this);for(var d=0,m=0;m<n.length;m++)t=(i.words[m]|0)+(n.words[m]|0)+d,this.words[m]=t&67108863,d=t>>>26;for(;d!==0&&m<i.length;m++)t=(i.words[m]|0)+d,this.words[m]=t&67108863,d=t>>>26;if(this.length=i.length,d!==0)this.words[this.length]=d,this.length++;else if(i!==this)for(;m<i.length;m++)this.words[m]=i.words[m];return this},a.prototype.add=function(e){var t;return e.negative!==0&&this.negative===0?(e.negative=0,t=this.sub(e),e.negative^=1,t):e.negative===0&&this.negative!==0?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(i===0)return this.negative=0,this.length=1,this.words[0]=0,this;var n,d;i>0?(n=this,d=e):(n=e,d=this);for(var m=0,se=0;se<d.length;se++)t=(n.words[se]|0)-(d.words[se]|0)+m,m=t>>26,this.words[se]=t&67108863;for(;m!==0&&se<n.length;se++)t=(n.words[se]|0)+m,m=t>>26,this.words[se]=t&67108863;if(m===0&&se<n.length&&n!==this)for(;se<n.length;se++)this.words[se]=n.words[se];return this.length=Math.max(this.length,se),n!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(e){return this.clone().isub(e)};function be(l,e,t){t.negative=e.negative^l.negative;var i=l.length+e.length|0;t.length=i,i=i-1|0;var n=l.words[0]|0,d=e.words[0]|0,m=n*d,se=m&67108863,s=m/67108864|0;t.words[0]=se;for(var r=1;r<i;r++){for(var o=s>>>26,Ce=s&67108863,De=Math.min(r,e.length-1),ke=Math.max(0,r-l.length+1);ke<=De;ke++){var Ue=r-ke|0;n=l.words[Ue]|0,d=e.words[ke]|0,m=n*d+Ce,o+=m/67108864|0,Ce=m&67108863}t.words[r]=Ce|0,s=o|0}return s!==0?t.words[r]=s|0:t.length--,t.strip()}var ye=function(e,t,i){var n=e.words,d=t.words,m=i.words,se=0,s,r,o,Ce=n[0]|0,De=Ce&8191,ke=Ce>>>13,Ue=n[1]|0,Pe=Ue&8191,qe=Ue>>>13,Ie=n[2]|0,Oe=Ie&8191,ze=Ie>>>13,Le=n[3]|0,Fe=Le&8191,He=Le>>>13,Ar=n[4]|0,Ge=Ar&8191,je=Ar>>>13,qr=n[5]|0,Ye=qr&8191,tr=qr>>>13,Rr=n[6]|0,Xe=Rr&8191,Ve=Rr>>>13,Sr=n[7]|0,Je=Sr&8191,er=Sr>>>13,Cr=n[8]|0,rr=Cr&8191,ir=Cr>>>13,Jr=n[9]|0,nr=Jr&8191,ar=Jr>>>13,kr=d[0]|0,cr=kr&8191,fr=kr>>>13,Qr=d[1]|0,vr=Qr&8191,pr=Qr>>>13,et=d[2]|0,br=et&8191,sr=et>>>13,rt=d[3]|0,or=rt&8191,xr=rt>>>13,tt=d[4]|0,gr=tt&8191,hr=tt>>>13,it=d[5]|0,yr=it&8191,ur=it>>>13,at=d[6]|0,dr=at&8191,Qe=at>>>13,Dr=d[7]|0,lr=Dr&8191,wr=Dr>>>13,nt=d[8]|0,Mr=nt&8191,_r=nt>>>13,ft=d[9]|0,Br=ft&8191,Er=ft>>>13;i.negative=e.negative^t.negative,i.length=19,s=Math.imul(De,cr),r=Math.imul(De,fr),r=r+Math.imul(ke,cr)|0,o=Math.imul(ke,fr);var Fr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Fr>>>26)|0,Fr&=67108863,s=Math.imul(Pe,cr),r=Math.imul(Pe,fr),r=r+Math.imul(qe,cr)|0,o=Math.imul(qe,fr),s=s+Math.imul(De,vr)|0,r=r+Math.imul(De,pr)|0,r=r+Math.imul(ke,vr)|0,o=o+Math.imul(ke,pr)|0;var Ir=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,s=Math.imul(Oe,cr),r=Math.imul(Oe,fr),r=r+Math.imul(ze,cr)|0,o=Math.imul(ze,fr),s=s+Math.imul(Pe,vr)|0,r=r+Math.imul(Pe,pr)|0,r=r+Math.imul(qe,vr)|0,o=o+Math.imul(qe,pr)|0,s=s+Math.imul(De,br)|0,r=r+Math.imul(De,sr)|0,r=r+Math.imul(ke,br)|0,o=o+Math.imul(ke,sr)|0;var $r=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+($r>>>26)|0,$r&=67108863,s=Math.imul(Fe,cr),r=Math.imul(Fe,fr),r=r+Math.imul(He,cr)|0,o=Math.imul(He,fr),s=s+Math.imul(Oe,vr)|0,r=r+Math.imul(Oe,pr)|0,r=r+Math.imul(ze,vr)|0,o=o+Math.imul(ze,pr)|0,s=s+Math.imul(Pe,br)|0,r=r+Math.imul(Pe,sr)|0,r=r+Math.imul(qe,br)|0,o=o+Math.imul(qe,sr)|0,s=s+Math.imul(De,or)|0,r=r+Math.imul(De,xr)|0,r=r+Math.imul(ke,or)|0,o=o+Math.imul(ke,xr)|0;var Pr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,s=Math.imul(Ge,cr),r=Math.imul(Ge,fr),r=r+Math.imul(je,cr)|0,o=Math.imul(je,fr),s=s+Math.imul(Fe,vr)|0,r=r+Math.imul(Fe,pr)|0,r=r+Math.imul(He,vr)|0,o=o+Math.imul(He,pr)|0,s=s+Math.imul(Oe,br)|0,r=r+Math.imul(Oe,sr)|0,r=r+Math.imul(ze,br)|0,o=o+Math.imul(ze,sr)|0,s=s+Math.imul(Pe,or)|0,r=r+Math.imul(Pe,xr)|0,r=r+Math.imul(qe,or)|0,o=o+Math.imul(qe,xr)|0,s=s+Math.imul(De,gr)|0,r=r+Math.imul(De,hr)|0,r=r+Math.imul(ke,gr)|0,o=o+Math.imul(ke,hr)|0;var Tr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,s=Math.imul(Ye,cr),r=Math.imul(Ye,fr),r=r+Math.imul(tr,cr)|0,o=Math.imul(tr,fr),s=s+Math.imul(Ge,vr)|0,r=r+Math.imul(Ge,pr)|0,r=r+Math.imul(je,vr)|0,o=o+Math.imul(je,pr)|0,s=s+Math.imul(Fe,br)|0,r=r+Math.imul(Fe,sr)|0,r=r+Math.imul(He,br)|0,o=o+Math.imul(He,sr)|0,s=s+Math.imul(Oe,or)|0,r=r+Math.imul(Oe,xr)|0,r=r+Math.imul(ze,or)|0,o=o+Math.imul(ze,xr)|0,s=s+Math.imul(Pe,gr)|0,r=r+Math.imul(Pe,hr)|0,r=r+Math.imul(qe,gr)|0,o=o+Math.imul(qe,hr)|0,s=s+Math.imul(De,yr)|0,r=r+Math.imul(De,ur)|0,r=r+Math.imul(ke,yr)|0,o=o+Math.imul(ke,ur)|0;var Nr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,s=Math.imul(Xe,cr),r=Math.imul(Xe,fr),r=r+Math.imul(Ve,cr)|0,o=Math.imul(Ve,fr),s=s+Math.imul(Ye,vr)|0,r=r+Math.imul(Ye,pr)|0,r=r+Math.imul(tr,vr)|0,o=o+Math.imul(tr,pr)|0,s=s+Math.imul(Ge,br)|0,r=r+Math.imul(Ge,sr)|0,r=r+Math.imul(je,br)|0,o=o+Math.imul(je,sr)|0,s=s+Math.imul(Fe,or)|0,r=r+Math.imul(Fe,xr)|0,r=r+Math.imul(He,or)|0,o=o+Math.imul(He,xr)|0,s=s+Math.imul(Oe,gr)|0,r=r+Math.imul(Oe,hr)|0,r=r+Math.imul(ze,gr)|0,o=o+Math.imul(ze,hr)|0,s=s+Math.imul(Pe,yr)|0,r=r+Math.imul(Pe,ur)|0,r=r+Math.imul(qe,yr)|0,o=o+Math.imul(qe,ur)|0,s=s+Math.imul(De,dr)|0,r=r+Math.imul(De,Qe)|0,r=r+Math.imul(ke,dr)|0,o=o+Math.imul(ke,Qe)|0;var Lr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,s=Math.imul(Je,cr),r=Math.imul(Je,fr),r=r+Math.imul(er,cr)|0,o=Math.imul(er,fr),s=s+Math.imul(Xe,vr)|0,r=r+Math.imul(Xe,pr)|0,r=r+Math.imul(Ve,vr)|0,o=o+Math.imul(Ve,pr)|0,s=s+Math.imul(Ye,br)|0,r=r+Math.imul(Ye,sr)|0,r=r+Math.imul(tr,br)|0,o=o+Math.imul(tr,sr)|0,s=s+Math.imul(Ge,or)|0,r=r+Math.imul(Ge,xr)|0,r=r+Math.imul(je,or)|0,o=o+Math.imul(je,xr)|0,s=s+Math.imul(Fe,gr)|0,r=r+Math.imul(Fe,hr)|0,r=r+Math.imul(He,gr)|0,o=o+Math.imul(He,hr)|0,s=s+Math.imul(Oe,yr)|0,r=r+Math.imul(Oe,ur)|0,r=r+Math.imul(ze,yr)|0,o=o+Math.imul(ze,ur)|0,s=s+Math.imul(Pe,dr)|0,r=r+Math.imul(Pe,Qe)|0,r=r+Math.imul(qe,dr)|0,o=o+Math.imul(qe,Qe)|0,s=s+Math.imul(De,lr)|0,r=r+Math.imul(De,wr)|0,r=r+Math.imul(ke,lr)|0,o=o+Math.imul(ke,wr)|0;var Or=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Or>>>26)|0,Or&=67108863,s=Math.imul(rr,cr),r=Math.imul(rr,fr),r=r+Math.imul(ir,cr)|0,o=Math.imul(ir,fr),s=s+Math.imul(Je,vr)|0,r=r+Math.imul(Je,pr)|0,r=r+Math.imul(er,vr)|0,o=o+Math.imul(er,pr)|0,s=s+Math.imul(Xe,br)|0,r=r+Math.imul(Xe,sr)|0,r=r+Math.imul(Ve,br)|0,o=o+Math.imul(Ve,sr)|0,s=s+Math.imul(Ye,or)|0,r=r+Math.imul(Ye,xr)|0,r=r+Math.imul(tr,or)|0,o=o+Math.imul(tr,xr)|0,s=s+Math.imul(Ge,gr)|0,r=r+Math.imul(Ge,hr)|0,r=r+Math.imul(je,gr)|0,o=o+Math.imul(je,hr)|0,s=s+Math.imul(Fe,yr)|0,r=r+Math.imul(Fe,ur)|0,r=r+Math.imul(He,yr)|0,o=o+Math.imul(He,ur)|0,s=s+Math.imul(Oe,dr)|0,r=r+Math.imul(Oe,Qe)|0,r=r+Math.imul(ze,dr)|0,o=o+Math.imul(ze,Qe)|0,s=s+Math.imul(Pe,lr)|0,r=r+Math.imul(Pe,wr)|0,r=r+Math.imul(qe,lr)|0,o=o+Math.imul(qe,wr)|0,s=s+Math.imul(De,Mr)|0,r=r+Math.imul(De,_r)|0,r=r+Math.imul(ke,Mr)|0,o=o+Math.imul(ke,_r)|0;var Ur=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,s=Math.imul(nr,cr),r=Math.imul(nr,fr),r=r+Math.imul(ar,cr)|0,o=Math.imul(ar,fr),s=s+Math.imul(rr,vr)|0,r=r+Math.imul(rr,pr)|0,r=r+Math.imul(ir,vr)|0,o=o+Math.imul(ir,pr)|0,s=s+Math.imul(Je,br)|0,r=r+Math.imul(Je,sr)|0,r=r+Math.imul(er,br)|0,o=o+Math.imul(er,sr)|0,s=s+Math.imul(Xe,or)|0,r=r+Math.imul(Xe,xr)|0,r=r+Math.imul(Ve,or)|0,o=o+Math.imul(Ve,xr)|0,s=s+Math.imul(Ye,gr)|0,r=r+Math.imul(Ye,hr)|0,r=r+Math.imul(tr,gr)|0,o=o+Math.imul(tr,hr)|0,s=s+Math.imul(Ge,yr)|0,r=r+Math.imul(Ge,ur)|0,r=r+Math.imul(je,yr)|0,o=o+Math.imul(je,ur)|0,s=s+Math.imul(Fe,dr)|0,r=r+Math.imul(Fe,Qe)|0,r=r+Math.imul(He,dr)|0,o=o+Math.imul(He,Qe)|0,s=s+Math.imul(Oe,lr)|0,r=r+Math.imul(Oe,wr)|0,r=r+Math.imul(ze,lr)|0,o=o+Math.imul(ze,wr)|0,s=s+Math.imul(Pe,Mr)|0,r=r+Math.imul(Pe,_r)|0,r=r+Math.imul(qe,Mr)|0,o=o+Math.imul(qe,_r)|0,s=s+Math.imul(De,Br)|0,r=r+Math.imul(De,Er)|0,r=r+Math.imul(ke,Br)|0,o=o+Math.imul(ke,Er)|0;var Hr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Hr>>>26)|0,Hr&=67108863,s=Math.imul(nr,vr),r=Math.imul(nr,pr),r=r+Math.imul(ar,vr)|0,o=Math.imul(ar,pr),s=s+Math.imul(rr,br)|0,r=r+Math.imul(rr,sr)|0,r=r+Math.imul(ir,br)|0,o=o+Math.imul(ir,sr)|0,s=s+Math.imul(Je,or)|0,r=r+Math.imul(Je,xr)|0,r=r+Math.imul(er,or)|0,o=o+Math.imul(er,xr)|0,s=s+Math.imul(Xe,gr)|0,r=r+Math.imul(Xe,hr)|0,r=r+Math.imul(Ve,gr)|0,o=o+Math.imul(Ve,hr)|0,s=s+Math.imul(Ye,yr)|0,r=r+Math.imul(Ye,ur)|0,r=r+Math.imul(tr,yr)|0,o=o+Math.imul(tr,ur)|0,s=s+Math.imul(Ge,dr)|0,r=r+Math.imul(Ge,Qe)|0,r=r+Math.imul(je,dr)|0,o=o+Math.imul(je,Qe)|0,s=s+Math.imul(Fe,lr)|0,r=r+Math.imul(Fe,wr)|0,r=r+Math.imul(He,lr)|0,o=o+Math.imul(He,wr)|0,s=s+Math.imul(Oe,Mr)|0,r=r+Math.imul(Oe,_r)|0,r=r+Math.imul(ze,Mr)|0,o=o+Math.imul(ze,_r)|0,s=s+Math.imul(Pe,Br)|0,r=r+Math.imul(Pe,Er)|0,r=r+Math.imul(qe,Br)|0,o=o+Math.imul(qe,Er)|0;var zr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(zr>>>26)|0,zr&=67108863,s=Math.imul(nr,br),r=Math.imul(nr,sr),r=r+Math.imul(ar,br)|0,o=Math.imul(ar,sr),s=s+Math.imul(rr,or)|0,r=r+Math.imul(rr,xr)|0,r=r+Math.imul(ir,or)|0,o=o+Math.imul(ir,xr)|0,s=s+Math.imul(Je,gr)|0,r=r+Math.imul(Je,hr)|0,r=r+Math.imul(er,gr)|0,o=o+Math.imul(er,hr)|0,s=s+Math.imul(Xe,yr)|0,r=r+Math.imul(Xe,ur)|0,r=r+Math.imul(Ve,yr)|0,o=o+Math.imul(Ve,ur)|0,s=s+Math.imul(Ye,dr)|0,r=r+Math.imul(Ye,Qe)|0,r=r+Math.imul(tr,dr)|0,o=o+Math.imul(tr,Qe)|0,s=s+Math.imul(Ge,lr)|0,r=r+Math.imul(Ge,wr)|0,r=r+Math.imul(je,lr)|0,o=o+Math.imul(je,wr)|0,s=s+Math.imul(Fe,Mr)|0,r=r+Math.imul(Fe,_r)|0,r=r+Math.imul(He,Mr)|0,o=o+Math.imul(He,_r)|0,s=s+Math.imul(Oe,Br)|0,r=r+Math.imul(Oe,Er)|0,r=r+Math.imul(ze,Br)|0,o=o+Math.imul(ze,Er)|0;var Kr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,s=Math.imul(nr,or),r=Math.imul(nr,xr),r=r+Math.imul(ar,or)|0,o=Math.imul(ar,xr),s=s+Math.imul(rr,gr)|0,r=r+Math.imul(rr,hr)|0,r=r+Math.imul(ir,gr)|0,o=o+Math.imul(ir,hr)|0,s=s+Math.imul(Je,yr)|0,r=r+Math.imul(Je,ur)|0,r=r+Math.imul(er,yr)|0,o=o+Math.imul(er,ur)|0,s=s+Math.imul(Xe,dr)|0,r=r+Math.imul(Xe,Qe)|0,r=r+Math.imul(Ve,dr)|0,o=o+Math.imul(Ve,Qe)|0,s=s+Math.imul(Ye,lr)|0,r=r+Math.imul(Ye,wr)|0,r=r+Math.imul(tr,lr)|0,o=o+Math.imul(tr,wr)|0,s=s+Math.imul(Ge,Mr)|0,r=r+Math.imul(Ge,_r)|0,r=r+Math.imul(je,Mr)|0,o=o+Math.imul(je,_r)|0,s=s+Math.imul(Fe,Br)|0,r=r+Math.imul(Fe,Er)|0,r=r+Math.imul(He,Br)|0,o=o+Math.imul(He,Er)|0;var Wr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,s=Math.imul(nr,gr),r=Math.imul(nr,hr),r=r+Math.imul(ar,gr)|0,o=Math.imul(ar,hr),s=s+Math.imul(rr,yr)|0,r=r+Math.imul(rr,ur)|0,r=r+Math.imul(ir,yr)|0,o=o+Math.imul(ir,ur)|0,s=s+Math.imul(Je,dr)|0,r=r+Math.imul(Je,Qe)|0,r=r+Math.imul(er,dr)|0,o=o+Math.imul(er,Qe)|0,s=s+Math.imul(Xe,lr)|0,r=r+Math.imul(Xe,wr)|0,r=r+Math.imul(Ve,lr)|0,o=o+Math.imul(Ve,wr)|0,s=s+Math.imul(Ye,Mr)|0,r=r+Math.imul(Ye,_r)|0,r=r+Math.imul(tr,Mr)|0,o=o+Math.imul(tr,_r)|0,s=s+Math.imul(Ge,Br)|0,r=r+Math.imul(Ge,Er)|0,r=r+Math.imul(je,Br)|0,o=o+Math.imul(je,Er)|0;var Zr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,s=Math.imul(nr,yr),r=Math.imul(nr,ur),r=r+Math.imul(ar,yr)|0,o=Math.imul(ar,ur),s=s+Math.imul(rr,dr)|0,r=r+Math.imul(rr,Qe)|0,r=r+Math.imul(ir,dr)|0,o=o+Math.imul(ir,Qe)|0,s=s+Math.imul(Je,lr)|0,r=r+Math.imul(Je,wr)|0,r=r+Math.imul(er,lr)|0,o=o+Math.imul(er,wr)|0,s=s+Math.imul(Xe,Mr)|0,r=r+Math.imul(Xe,_r)|0,r=r+Math.imul(Ve,Mr)|0,o=o+Math.imul(Ve,_r)|0,s=s+Math.imul(Ye,Br)|0,r=r+Math.imul(Ye,Er)|0,r=r+Math.imul(tr,Br)|0,o=o+Math.imul(tr,Er)|0;var jr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(jr>>>26)|0,jr&=67108863,s=Math.imul(nr,dr),r=Math.imul(nr,Qe),r=r+Math.imul(ar,dr)|0,o=Math.imul(ar,Qe),s=s+Math.imul(rr,lr)|0,r=r+Math.imul(rr,wr)|0,r=r+Math.imul(ir,lr)|0,o=o+Math.imul(ir,wr)|0,s=s+Math.imul(Je,Mr)|0,r=r+Math.imul(Je,_r)|0,r=r+Math.imul(er,Mr)|0,o=o+Math.imul(er,_r)|0,s=s+Math.imul(Xe,Br)|0,r=r+Math.imul(Xe,Er)|0,r=r+Math.imul(Ve,Br)|0,o=o+Math.imul(Ve,Er)|0;var Gr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,s=Math.imul(nr,lr),r=Math.imul(nr,wr),r=r+Math.imul(ar,lr)|0,o=Math.imul(ar,wr),s=s+Math.imul(rr,Mr)|0,r=r+Math.imul(rr,_r)|0,r=r+Math.imul(ir,Mr)|0,o=o+Math.imul(ir,_r)|0,s=s+Math.imul(Je,Br)|0,r=r+Math.imul(Je,Er)|0,r=r+Math.imul(er,Br)|0,o=o+Math.imul(er,Er)|0;var Vr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Vr>>>26)|0,Vr&=67108863,s=Math.imul(nr,Mr),r=Math.imul(nr,_r),r=r+Math.imul(ar,Mr)|0,o=Math.imul(ar,_r),s=s+Math.imul(rr,Br)|0,r=r+Math.imul(rr,Er)|0,r=r+Math.imul(ir,Br)|0,o=o+Math.imul(ir,Er)|0;var Xr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Xr>>>26)|0,Xr&=67108863,s=Math.imul(nr,Br),r=Math.imul(nr,Er),r=r+Math.imul(ar,Br)|0,o=Math.imul(ar,Er);var Yr=(se+s|0)+((r&8191)<<13)|0;return se=(o+(r>>>13)|0)+(Yr>>>26)|0,Yr&=67108863,m[0]=Fr,m[1]=Ir,m[2]=$r,m[3]=Pr,m[4]=Tr,m[5]=Nr,m[6]=Lr,m[7]=Or,m[8]=Ur,m[9]=Hr,m[10]=zr,m[11]=Kr,m[12]=Wr,m[13]=Zr,m[14]=jr,m[15]=Gr,m[16]=Vr,m[17]=Xr,m[18]=Yr,se!==0&&(m[19]=se,i.length++),i};Math.imul||(ye=be);function _e(l,e,t){t.negative=e.negative^l.negative,t.length=l.length+e.length;for(var i=0,n=0,d=0;d<t.length-1;d++){var m=n;n=0;for(var se=i&67108863,s=Math.min(d,e.length-1),r=Math.max(0,d-l.length+1);r<=s;r++){var o=d-r,Ce=l.words[o]|0,De=e.words[r]|0,ke=Ce*De,Ue=ke&67108863;m=m+(ke/67108864|0)|0,Ue=Ue+se|0,se=Ue&67108863,m=m+(Ue>>>26)|0,n+=m>>>26,m&=67108863}t.words[d]=se,i=m,m=n}return i!==0?t.words[d]=i:t.length--,t.strip()}function Ae(l,e,t){var i=new we;return i.mulp(l,e,t)}a.prototype.mulTo=function(e,t){var i,n=this.length+e.length;return this.length===10&&e.length===10?i=ye(this,e,t):n<63?i=be(this,e,t):n<1024?i=_e(this,e,t):i=Ae(this,e,t),i};function we(l,e){this.x=l,this.y=e}we.prototype.makeRBT=function(e){for(var t=new Array(e),i=a.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,i,e);return t},we.prototype.revBin=function(e,t,i){if(e===0||e===i-1)return e;for(var n=0,d=0;d<t;d++)n|=(e&1)<<t-d-1,e>>=1;return n},we.prototype.permute=function(e,t,i,n,d,m){for(var se=0;se<m;se++)n[se]=t[e[se]],d[se]=i[e[se]]},we.prototype.transform=function(e,t,i,n,d,m){this.permute(m,e,t,i,n,d);for(var se=1;se<d;se<<=1)for(var s=se<<1,r=Math.cos(2*Math.PI/s),o=Math.sin(2*Math.PI/s),Ce=0;Ce<d;Ce+=s)for(var De=r,ke=o,Ue=0;Ue<se;Ue++){var Pe=i[Ce+Ue],qe=n[Ce+Ue],Ie=i[Ce+Ue+se],Oe=n[Ce+Ue+se],ze=De*Ie-ke*Oe;Oe=De*Oe+ke*Ie,Ie=ze,i[Ce+Ue]=Pe+Ie,n[Ce+Ue]=qe+Oe,i[Ce+Ue+se]=Pe-Ie,n[Ce+Ue+se]=qe-Oe,Ue!==s&&(ze=r*De-o*ke,ke=r*ke+o*De,De=ze)}},we.prototype.guessLen13b=function(e,t){var i=Math.max(t,e)|1,n=i&1,d=0;for(i=i/2|0;i;i=i>>>1)d++;return 1<<d+1+n},we.prototype.conjugate=function(e,t,i){if(!(i<=1))for(var n=0;n<i/2;n++){var d=e[n];e[n]=e[i-n-1],e[i-n-1]=d,d=t[n],t[n]=-t[i-n-1],t[i-n-1]=-d}},we.prototype.normalize13b=function(e,t){for(var i=0,n=0;n<t/2;n++){var d=Math.round(e[2*n+1]/t)*8192+Math.round(e[2*n]/t)+i;e[n]=d&67108863,d<67108864?i=0:i=d/67108864|0}return e},we.prototype.convert13b=function(e,t,i,n){for(var d=0,m=0;m<t;m++)d=d+(e[m]|0),i[2*m]=d&8191,d=d>>>13,i[2*m+1]=d&8191,d=d>>>13;for(m=2*t;m<n;++m)i[m]=0;he(d===0),he((d&-8192)===0)},we.prototype.stub=function(e){for(var t=new Array(e),i=0;i<e;i++)t[i]=0;return t},we.prototype.mulp=function(e,t,i){var n=2*this.guessLen13b(e.length,t.length),d=this.makeRBT(n),m=this.stub(n),se=new Array(n),s=new Array(n),r=new Array(n),o=new Array(n),Ce=new Array(n),De=new Array(n),ke=i.words;ke.length=n,this.convert13b(e.words,e.length,se,n),this.convert13b(t.words,t.length,o,n),this.transform(se,m,s,r,n,d),this.transform(o,m,Ce,De,n,d);for(var Ue=0;Ue<n;Ue++){var Pe=s[Ue]*Ce[Ue]-r[Ue]*De[Ue];r[Ue]=s[Ue]*De[Ue]+r[Ue]*Ce[Ue],s[Ue]=Pe}return this.conjugate(s,r,n),this.transform(s,r,ke,m,n,d),this.conjugate(ke,m,n),this.normalize13b(ke,n),i.negative=e.negative^t.negative,i.length=e.length+t.length,i.strip()},a.prototype.mul=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},a.prototype.mulf=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),Ae(this,e,t)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){he(typeof e=="number"),he(e<67108864);for(var t=0,i=0;i<this.length;i++){var n=(this.words[i]|0)*e,d=(n&67108863)+(t&67108863);t>>=26,t+=n/67108864|0,t+=d>>>26,this.words[i]=d&67108863}return t!==0&&(this.words[i]=t,this.length++),this.length=e===0?1:this.length,this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=me(e);if(t.length===0)return new a(1);for(var i=this,n=0;n<t.length&&t[n]===0;n++,i=i.sqr());if(++n<t.length)for(var d=i.sqr();n<t.length;n++,d=d.sqr())t[n]!==0&&(i=i.mul(d));return i},a.prototype.iushln=function(e){he(typeof e=="number"&&e>=0);var t=e%26,i=(e-t)/26,n=67108863>>>26-t<<26-t,d;if(t!==0){var m=0;for(d=0;d<this.length;d++){var se=this.words[d]&n,s=(this.words[d]|0)-se<<t;this.words[d]=s|m,m=se>>>26-t}m&&(this.words[d]=m,this.length++)}if(i!==0){for(d=this.length-1;d>=0;d--)this.words[d+i]=this.words[d];for(d=0;d<i;d++)this.words[d]=0;this.length+=i}return this.strip()},a.prototype.ishln=function(e){return he(this.negative===0),this.iushln(e)},a.prototype.iushrn=function(e,t,i){he(typeof e=="number"&&e>=0);var n;t?n=(t-t%26)/26:n=0;var d=e%26,m=Math.min((e-d)/26,this.length),se=67108863^67108863>>>d<<d,s=i;if(n-=m,n=Math.max(0,n),s){for(var r=0;r<m;r++)s.words[r]=this.words[r];s.length=m}if(m!==0)if(this.length>m)for(this.length-=m,r=0;r<this.length;r++)this.words[r]=this.words[r+m];else this.words[0]=0,this.length=1;var o=0;for(r=this.length-1;r>=0&&(o!==0||r>=n);r--){var Ce=this.words[r]|0;this.words[r]=o<<26-d|Ce>>>d,o=Ce&se}return s&&o!==0&&(s.words[s.length++]=o),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,i){return he(this.negative===0),this.iushrn(e,t,i)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){he(typeof e=="number"&&e>=0);var t=e%26,i=(e-t)/26,n=1<<t;if(this.length<=i)return!1;var d=this.words[i];return!!(d&n)},a.prototype.imaskn=function(e){he(typeof e=="number"&&e>=0);var t=e%26,i=(e-t)/26;if(he(this.negative===0,"imaskn works only with positive numbers"),this.length<=i)return this;if(t!==0&&i++,this.length=Math.min(i,this.length),t!==0){var n=67108863^67108863>>>t<<t;this.words[this.length-1]&=n}return this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return he(typeof e=="number"),he(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(this.words[0]|0)<e?(this.words[0]=e-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(he(typeof e=="number"),he(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,t,i){var n=e.length+i,d;this._expand(n);var m,se=0;for(d=0;d<e.length;d++){m=(this.words[d+i]|0)+se;var s=(e.words[d]|0)*t;m-=s&67108863,se=(m>>26)-(s/67108864|0),this.words[d+i]=m&67108863}for(;d<this.length-i;d++)m=(this.words[d+i]|0)+se,se=m>>26,this.words[d+i]=m&67108863;if(se===0)return this.strip();for(he(se===-1),se=0,d=0;d<this.length;d++)m=-(this.words[d]|0)+se,se=m>>26,this.words[d]=m&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var i=this.length-e.length,n=this.clone(),d=e,m=d.words[d.length-1]|0,se=this._countBits(m);i=26-se,i!==0&&(d=d.ushln(i),n.iushln(i),m=d.words[d.length-1]|0);var s=n.length-d.length,r;if(t!=="mod"){r=new a(null),r.length=s+1,r.words=new Array(r.length);for(var o=0;o<r.length;o++)r.words[o]=0}var Ce=n.clone()._ishlnsubmul(d,1,s);Ce.negative===0&&(n=Ce,r&&(r.words[s]=1));for(var De=s-1;De>=0;De--){var ke=(n.words[d.length+De]|0)*67108864+(n.words[d.length+De-1]|0);for(ke=Math.min(ke/m|0,67108863),n._ishlnsubmul(d,ke,De);n.negative!==0;)ke--,n.negative=0,n._ishlnsubmul(d,1,De),n.isZero()||(n.negative^=1);r&&(r.words[De]=ke)}return r&&r.strip(),n.strip(),t!=="div"&&i!==0&&n.iushrn(i),{div:r||null,mod:n}},a.prototype.divmod=function(e,t,i){if(he(!e.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var n,d,m;return this.negative!==0&&e.negative===0?(m=this.neg().divmod(e,t),t!=="mod"&&(n=m.div.neg()),t!=="div"&&(d=m.mod.neg(),i&&d.negative!==0&&d.iadd(e)),{div:n,mod:d}):this.negative===0&&e.negative!==0?(m=this.divmod(e.neg(),t),t!=="mod"&&(n=m.div.neg()),{div:n,mod:m.mod}):(this.negative&e.negative)!==0?(m=this.neg().divmod(e.neg(),t),t!=="div"&&(d=m.mod.neg(),i&&d.negative!==0&&d.isub(e)),{div:m.div,mod:d}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:e.length===1?t==="div"?{div:this.divn(e.words[0]),mod:null}:t==="mod"?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=t.div.negative!==0?t.mod.isub(e):t.mod,n=e.ushrn(1),d=e.andln(1),m=i.cmp(n);return m<0||d===1&&m===0?t.div:t.div.negative!==0?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){he(e<=67108863);for(var t=(1<<26)%e,i=0,n=this.length-1;n>=0;n--)i=(t*i+(this.words[n]|0))%e;return i},a.prototype.idivn=function(e){he(e<=67108863);for(var t=0,i=this.length-1;i>=0;i--){var n=(this.words[i]|0)+t*67108864;this.words[i]=n/e|0,t=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){he(e.negative===0),he(!e.isZero());var t=this,i=e.clone();t.negative!==0?t=t.umod(e):t=t.clone();for(var n=new a(1),d=new a(0),m=new a(0),se=new a(1),s=0;t.isEven()&&i.isEven();)t.iushrn(1),i.iushrn(1),++s;for(var r=i.clone(),o=t.clone();!t.isZero();){for(var Ce=0,De=1;(t.words[0]&De)===0&&Ce<26;++Ce,De<<=1);if(Ce>0)for(t.iushrn(Ce);Ce-- >0;)(n.isOdd()||d.isOdd())&&(n.iadd(r),d.isub(o)),n.iushrn(1),d.iushrn(1);for(var ke=0,Ue=1;(i.words[0]&Ue)===0&&ke<26;++ke,Ue<<=1);if(ke>0)for(i.iushrn(ke);ke-- >0;)(m.isOdd()||se.isOdd())&&(m.iadd(r),se.isub(o)),m.iushrn(1),se.iushrn(1);t.cmp(i)>=0?(t.isub(i),n.isub(m),d.isub(se)):(i.isub(t),m.isub(n),se.isub(d))}return{a:m,b:se,gcd:i.iushln(s)}},a.prototype._invmp=function(e){he(e.negative===0),he(!e.isZero());var t=this,i=e.clone();t.negative!==0?t=t.umod(e):t=t.clone();for(var n=new a(1),d=new a(0),m=i.clone();t.cmpn(1)>0&&i.cmpn(1)>0;){for(var se=0,s=1;(t.words[0]&s)===0&&se<26;++se,s<<=1);if(se>0)for(t.iushrn(se);se-- >0;)n.isOdd()&&n.iadd(m),n.iushrn(1);for(var r=0,o=1;(i.words[0]&o)===0&&r<26;++r,o<<=1);if(r>0)for(i.iushrn(r);r-- >0;)d.isOdd()&&d.iadd(m),d.iushrn(1);t.cmp(i)>=0?(t.isub(i),n.isub(d)):(i.isub(t),d.isub(n))}var Ce;return t.cmpn(1)===0?Ce=n:Ce=d,Ce.cmpn(0)<0&&Ce.iadd(e),Ce},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var n=0;t.isEven()&&i.isEven();n++)t.iushrn(1),i.iushrn(1);do{for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var d=t.cmp(i);if(d<0){var m=t;t=i,i=m}else if(d===0||i.cmpn(1)===0)break;t.isub(i)}while(!0);return i.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){he(typeof e=="number");var t=e%26,i=(e-t)/26,n=1<<t;if(this.length<=i)return this._expand(i+1),this.words[i]|=n,this;for(var d=n,m=i;d!==0&&m<this.length;m++){var se=this.words[m]|0;se+=d,d=se>>>26,se&=67108863,this.words[m]=se}return d!==0&&(this.words[m]=d,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(e){var t=e<0;if(this.negative!==0&&!t)return-1;if(this.negative===0&&t)return 1;this.strip();var i;if(this.length>1)i=1;else{t&&(e=-e),he(e<=67108863,"Number is too big");var n=this.words[0]|0;i=n===e?0:n<e?-1:1}return this.negative!==0?-i|0:i},a.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var t=this.ucmp(e);return this.negative!==0?-t|0:t},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,i=this.length-1;i>=0;i--){var n=this.words[i]|0,d=e.words[i]|0;if(n!==d){n<d?t=-1:n>d&&(t=1);break}}return t},a.prototype.gtn=function(e){return this.cmpn(e)===1},a.prototype.gt=function(e){return this.cmp(e)===1},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return this.cmpn(e)===-1},a.prototype.lt=function(e){return this.cmp(e)===-1},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return this.cmpn(e)===0},a.prototype.eq=function(e){return this.cmp(e)===0},a.red=function(e){return new Ne(e)},a.prototype.toRed=function(e){return he(!this.red,"Already a number in reduction context"),he(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return he(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return he(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return he(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return he(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return he(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return he(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return he(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return he(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return he(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return he(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return he(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return he(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return he(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return he(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return he(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var Re={k256:null,p224:null,p192:null,p25519:null};function Se(l,e){this.name=l,this.p=new a(e,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Se.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},Se.prototype.ireduce=function(e){var t=e,i;do this.split(t,this.tmp),t=this.imulK(t),t=t.iadd(this.tmp),i=t.bitLength();while(i>this.n);var n=i<this.n?-1:t.ucmp(this.p);return n===0?(t.words[0]=0,t.length=1):n>0?t.isub(this.p):t.strip!==void 0?t.strip():t._strip(),t},Se.prototype.split=function(e,t){e.iushrn(this.n,0,t)},Se.prototype.imulK=function(e){return e.imul(this.k)};function $e(){Se.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}Me($e,Se),$e.prototype.split=function(e,t){for(var i=4194303,n=Math.min(e.length,9),d=0;d<n;d++)t.words[d]=e.words[d];if(t.length=n,e.length<=9){e.words[0]=0,e.length=1;return}var m=e.words[9];for(t.words[t.length++]=m&i,d=10;d<e.length;d++){var se=e.words[d]|0;e.words[d-10]=(se&i)<<4|m>>>22,m=se}m>>>=22,e.words[d-10]=m,m===0&&e.length>10?e.length-=10:e.length-=9},$e.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i<e.length;i++){var n=e.words[i]|0;t+=n*977,e.words[i]=t&67108863,t=n*64+(t/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function Te(){Se.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}Me(Te,Se);function We(){Se.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}Me(We,Se);function Ze(){Se.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}Me(Ze,Se),Ze.prototype.imulK=function(e){for(var t=0,i=0;i<e.length;i++){var n=(e.words[i]|0)*19+t,d=n&67108863;n>>>=26,e.words[i]=d,t=n}return t!==0&&(e.words[e.length++]=t),e},a._prime=function(e){if(Re[e])return Re[e];var t;if(e==="k256")t=new $e;else if(e==="p224")t=new Te;else if(e==="p192")t=new We;else if(e==="p25519")t=new Ze;else throw new Error("Unknown prime "+e);return Re[e]=t,t};function Ne(l){if(typeof l=="string"){var e=a._prime(l);this.m=e.p,this.prime=e}else he(l.gtn(1),"modulus must be greater than 1"),this.m=l,this.prime=null}Ne.prototype._verify1=function(e){he(e.negative===0,"red works only with positives"),he(e.red,"red works only with red numbers")},Ne.prototype._verify2=function(e,t){he((e.negative|t.negative)===0,"red works only with positives"),he(e.red&&e.red===t.red,"red works only with red numbers")},Ne.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},Ne.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},Ne.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},Ne.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},Ne.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},Ne.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},Ne.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},Ne.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},Ne.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},Ne.prototype.isqr=function(e){return this.imul(e,e.clone())},Ne.prototype.sqr=function(e){return this.mul(e,e)},Ne.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(he(t%2===1),t===3){var i=this.m.add(new a(1)).iushrn(2);return this.pow(e,i)}for(var n=this.m.subn(1),d=0;!n.isZero()&&n.andln(1)===0;)d++,n.iushrn(1);he(!n.isZero());var m=new a(1).toRed(this),se=m.redNeg(),s=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new a(2*r*r).toRed(this);this.pow(r,s).cmp(se)!==0;)r.redIAdd(se);for(var o=this.pow(r,n),Ce=this.pow(e,n.addn(1).iushrn(1)),De=this.pow(e,n),ke=d;De.cmp(m)!==0;){for(var Ue=De,Pe=0;Ue.cmp(m)!==0;Pe++)Ue=Ue.redSqr();he(Pe<ke);var qe=this.pow(o,new a(1).iushln(ke-Pe-1));Ce=Ce.redMul(qe),o=qe.redSqr(),De=De.redMul(o),ke=Pe}return Ce},Ne.prototype.invm=function(e){var t=e._invmp(this.m);return t.negative!==0?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},Ne.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(t.cmpn(1)===0)return e.clone();var i=4,n=new Array(1<<i);n[0]=new a(1).toRed(this),n[1]=e;for(var d=2;d<n.length;d++)n[d]=this.mul(n[d-1],e);var m=n[0],se=0,s=0,r=t.bitLength()%26;for(r===0&&(r=26),d=t.length-1;d>=0;d--){for(var o=t.words[d],Ce=r-1;Ce>=0;Ce--){var De=o>>Ce&1;if(m!==n[0]&&(m=this.sqr(m)),De===0&&se===0){s=0;continue}se<<=1,se|=De,s++,!(s!==i&&(d!==0||Ce!==0))&&(m=this.mul(m,n[se]),s=0,se=0)}r=26}return m},Ne.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},Ne.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new Ke(e)};function Ke(l){Ne.call(this,l),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}Me(Ke,Ne),Ke.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},Ke.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},Ke.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),d=i.isub(n).iushrn(this.shift),m=d;return d.cmp(this.m)>=0?m=d.isub(this.m):d.cmpn(0)<0&&(m=d.iadd(this.m)),m._forceRed(this)},Ke.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var i=e.mul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),d=i.isub(n).iushrn(this.shift),m=d;return d.cmp(this.m)>=0?m=d.isub(this.m):d.cmpn(0)<0&&(m=d.iadd(this.m)),m._forceRed(this)},Ke.prototype.invm=function(e){var t=this.imod(e._invmp(this.m).mul(this.r2));return t._forceRed(this)}})(ge,bn$6)})(bn$7)),bn$7.exports}var utils={},hasRequiredUtils$1;function requireUtils$1(){return hasRequiredUtils$1||(hasRequiredUtils$1=1,(function(ge){var Ee=ge;function Be(a,xe){if(Array.isArray(a))return a.slice();if(!a)return[];var pe=[];if(typeof a!="string"){for(var ve=0;ve<a.length;ve++)pe[ve]=a[ve]|0;return pe}if(xe==="hex"){a=a.replace(/[^a-z0-9]+/ig,""),a.length%2!==0&&(a="0"+a);for(var ve=0;ve<a.length;ve+=2)pe.push(parseInt(a[ve]+a[ve+1],16))}else for(var ve=0;ve<a.length;ve++){var fe=a.charCodeAt(ve),c=fe>>8,ue=fe&255;c?pe.push(c,ue):pe.push(ue)}return pe}Ee.toArray=Be;function he(a){return a.length===1?"0"+a:a}Ee.zero2=he;function Me(a){for(var xe="",pe=0;pe<a.length;pe++)xe+=he(a[pe].toString(16));return xe}Ee.toHex=Me,Ee.encode=function(xe,pe){return pe==="hex"?Me(xe):xe}})(utils)),utils}var hasRequiredUtils;function requireUtils(){return hasRequiredUtils||(hasRequiredUtils=1,(function(ge){var Ee=ge,Be=requireBn$3(),he=requireMinimalisticAssert(),Me=requireUtils$1();Ee.assert=he,Ee.toArray=Me.toArray,Ee.zero2=Me.zero2,Ee.toHex=Me.toHex,Ee.encode=Me.encode;function a(c,ue,de){var me=new Array(Math.max(c.bitLength(),de)+1),be;for(be=0;be<me.length;be+=1)me[be]=0;var ye=1<<ue+1,_e=c.clone();for(be=0;be<me.length;be++){var Ae,we=_e.andln(ye-1);_e.isOdd()?(we>(ye>>1)-1?Ae=(ye>>1)-we:Ae=we,_e.isubn(Ae)):Ae=0,me[be]=Ae,_e.iushrn(1)}return me}Ee.getNAF=a;function xe(c,ue){var de=[[],[]];c=c.clone(),ue=ue.clone();for(var me=0,be=0,ye;c.cmpn(-me)>0||ue.cmpn(-be)>0;){var _e=c.andln(3)+me&3,Ae=ue.andln(3)+be&3;_e===3&&(_e=-1),Ae===3&&(Ae=-1);var we;(_e&1)===0?we=0:(ye=c.andln(7)+me&7,(ye===3||ye===5)&&Ae===2?we=-_e:we=_e),de[0].push(we);var Re;(Ae&1)===0?Re=0:(ye=ue.andln(7)+be&7,(ye===3||ye===5)&&_e===2?Re=-Ae:Re=Ae),de[1].push(Re),2*me===we+1&&(me=1-me),2*be===Re+1&&(be=1-be),c.iushrn(1),ue.iushrn(1)}return de}Ee.getJSF=xe;function pe(c,ue,de){var me="_"+ue;c.prototype[ue]=function(){return this[me]!==void 0?this[me]:this[me]=de.call(this)}}Ee.cachedProperty=pe;function ve(c){return typeof c=="string"?Ee.toArray(c,"hex"):c}Ee.parseBytes=ve;function fe(c){return new Be(c,"hex","le")}Ee.intFromLE=fe})(utils$1)),utils$1}var curve={},base$1,hasRequiredBase$1;function requireBase$1(){if(hasRequiredBase$1)return base$1;hasRequiredBase$1=1;var ge=requireBn$3(),Ee=requireUtils(),Be=Ee.getNAF,he=Ee.getJSF,Me=Ee.assert;function a(pe,ve){this.type=pe,this.p=new ge(ve.p,16),this.red=ve.prime?ge.red(ve.prime):ge.mont(this.p),this.zero=new ge(0).toRed(this.red),this.one=new ge(1).toRed(this.red),this.two=new ge(2).toRed(this.red),this.n=ve.n&&new ge(ve.n,16),this.g=ve.g&&this.pointFromJSON(ve.g,ve.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var fe=this.n&&this.p.div(this.n);!fe||fe.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}base$1=a,a.prototype.point=function(){throw new Error("Not implemented")},a.prototype.validate=function(){throw new Error("Not implemented")},a.prototype._fixedNafMul=function(ve,fe){Me(ve.precomputed);var c=ve._getDoubles(),ue=Be(fe,1,this._bitLength),de=(1<<c.step+1)-(c.step%2===0?2:1);de/=3;var me=[],be,ye;for(be=0;be<ue.length;be+=c.step){ye=0;for(var _e=be+c.step-1;_e>=be;_e--)ye=(ye<<1)+ue[_e];me.push(ye)}for(var Ae=this.jpoint(null,null,null),we=this.jpoint(null,null,null),Re=de;Re>0;Re--){for(be=0;be<me.length;be++)ye=me[be],ye===Re?we=we.mixedAdd(c.points[be]):ye===-Re&&(we=we.mixedAdd(c.points[be].neg()));Ae=Ae.add(we)}return Ae.toP()},a.prototype._wnafMul=function(ve,fe){var c=4,ue=ve._getNAFPoints(c);c=ue.wnd;for(var de=ue.points,me=Be(fe,c,this._bitLength),be=this.jpoint(null,null,null),ye=me.length-1;ye>=0;ye--){for(var _e=0;ye>=0&&me[ye]===0;ye--)_e++;if(ye>=0&&_e++,be=be.dblp(_e),ye<0)break;var Ae=me[ye];Me(Ae!==0),ve.type==="affine"?Ae>0?be=be.mixedAdd(de[Ae-1>>1]):be=be.mixedAdd(de[-Ae-1>>1].neg()):Ae>0?be=be.add(de[Ae-1>>1]):be=be.add(de[-Ae-1>>1].neg())}return ve.type==="affine"?be.toP():be},a.prototype._wnafMulAdd=function(ve,fe,c,ue,de){var me=this._wnafT1,be=this._wnafT2,ye=this._wnafT3,_e=0,Ae,we,Re;for(Ae=0;Ae<ue;Ae++){Re=fe[Ae];var Se=Re._getNAFPoints(ve);me[Ae]=Se.wnd,be[Ae]=Se.points}for(Ae=ue-1;Ae>=1;Ae-=2){var $e=Ae-1,Te=Ae;if(me[$e]!==1||me[Te]!==1){ye[$e]=Be(c[$e],me[$e],this._bitLength),ye[Te]=Be(c[Te],me[Te],this._bitLength),_e=Math.max(ye[$e].length,_e),_e=Math.max(ye[Te].length,_e);continue}var We=[fe[$e],null,null,fe[Te]];fe[$e].y.cmp(fe[Te].y)===0?(We[1]=fe[$e].add(fe[Te]),We[2]=fe[$e].toJ().mixedAdd(fe[Te].neg())):fe[$e].y.cmp(fe[Te].y.redNeg())===0?(We[1]=fe[$e].toJ().mixedAdd(fe[Te]),We[2]=fe[$e].add(fe[Te].neg())):(We[1]=fe[$e].toJ().mixedAdd(fe[Te]),We[2]=fe[$e].toJ().mixedAdd(fe[Te].neg()));var Ze=[-3,-1,-5,-7,0,7,5,1,3],Ne=he(c[$e],c[Te]);for(_e=Math.max(Ne[0].length,_e),ye[$e]=new Array(_e),ye[Te]=new Array(_e),we=0;we<_e;we++){var Ke=Ne[0][we]|0,l=Ne[1][we]|0;ye[$e][we]=Ze[(Ke+1)*3+(l+1)],ye[Te][we]=0,be[$e]=We}}var e=this.jpoint(null,null,null),t=this._wnafT4;for(Ae=_e;Ae>=0;Ae--){for(var i=0;Ae>=0;){var n=!0;for(we=0;we<ue;we++)t[we]=ye[we][Ae]|0,t[we]!==0&&(n=!1);if(!n)break;i++,Ae--}if(Ae>=0&&i++,e=e.dblp(i),Ae<0)break;for(we=0;we<ue;we++){var d=t[we];d!==0&&(d>0?Re=be[we][d-1>>1]:d<0&&(Re=be[we][-d-1>>1].neg()),Re.type==="affine"?e=e.mixedAdd(Re):e=e.add(Re))}}for(Ae=0;Ae<ue;Ae++)be[Ae]=null;return de?e:e.toP()};function xe(pe,ve){this.curve=pe,this.type=ve,this.precomputed=null}return a.BasePoint=xe,xe.prototype.eq=function(){throw new Error("Not implemented")},xe.prototype.validate=function(){return this.curve.validate(this)},a.prototype.decodePoint=function(ve,fe){ve=Ee.toArray(ve,fe);var c=this.p.byteLength();if((ve[0]===4||ve[0]===6||ve[0]===7)&&ve.length-1===2*c){ve[0]===6?Me(ve[ve.length-1]%2===0):ve[0]===7&&Me(ve[ve.length-1]%2===1);var ue=this.point(ve.slice(1,1+c),ve.slice(1+c,1+2*c));return ue}else if((ve[0]===2||ve[0]===3)&&ve.length-1===c)return this.pointFromX(ve.slice(1,1+c),ve[0]===3);throw new Error("Unknown point format")},xe.prototype.encodeCompressed=function(ve){return this.encode(ve,!0)},xe.prototype._encode=function(ve){var fe=this.curve.p.byteLength(),c=this.getX().toArray("be",fe);return ve?[this.getY().isEven()?2:3].concat(c):[4].concat(c,this.getY().toArray("be",fe))},xe.prototype.encode=function(ve,fe){return Ee.encode(this._encode(fe),ve)},xe.prototype.precompute=function(ve){if(this.precomputed)return this;var fe={doubles:null,naf:null,beta:null};return fe.naf=this._getNAFPoints(8),fe.doubles=this._getDoubles(4,ve),fe.beta=this._getBeta(),this.precomputed=fe,this},xe.prototype._hasDoubles=function(ve){if(!this.precomputed)return!1;var fe=this.precomputed.doubles;return fe?fe.points.length>=Math.ceil((ve.bitLength()+1)/fe.step):!1},xe.prototype._getDoubles=function(ve,fe){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var c=[this],ue=this,de=0;de<fe;de+=ve){for(var me=0;me<ve;me++)ue=ue.dbl();c.push(ue)}return{step:ve,points:c}},xe.prototype._getNAFPoints=function(ve){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var fe=[this],c=(1<<ve)-1,ue=c===1?null:this.dbl(),de=1;de<c;de++)fe[de]=fe[de-1].add(ue);return{wnd:ve,points:fe}},xe.prototype._getBeta=function(){return null},xe.prototype.dblp=function(ve){for(var fe=this,c=0;c<ve;c++)fe=fe.dbl();return fe},base$1}var short,hasRequiredShort;function requireShort(){if(hasRequiredShort)return short;hasRequiredShort=1;var ge=requireUtils(),Ee=requireBn$3(),Be=requireInherits_browser(),he=requireBase$1(),Me=ge.assert;function a(ve){he.call(this,"short",ve),this.a=new Ee(ve.a,16).toRed(this.red),this.b=new Ee(ve.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(ve),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}Be(a,he),short=a,a.prototype._getEndomorphism=function(fe){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var c,ue;if(fe.beta)c=new Ee(fe.beta,16).toRed(this.red);else{var de=this._getEndoRoots(this.p);c=de[0].cmp(de[1])<0?de[0]:de[1],c=c.toRed(this.red)}if(fe.lambda)ue=new Ee(fe.lambda,16);else{var me=this._getEndoRoots(this.n);this.g.mul(me[0]).x.cmp(this.g.x.redMul(c))===0?ue=me[0]:(ue=me[1],Me(this.g.mul(ue).x.cmp(this.g.x.redMul(c))===0))}var be;return fe.basis?be=fe.basis.map(function(ye){return{a:new Ee(ye.a,16),b:new Ee(ye.b,16)}}):be=this._getEndoBasis(ue),{beta:c,lambda:ue,basis:be}}},a.prototype._getEndoRoots=function(fe){var c=fe===this.p?this.red:Ee.mont(fe),ue=new Ee(2).toRed(c).redInvm(),de=ue.redNeg(),me=new Ee(3).toRed(c).redNeg().redSqrt().redMul(ue),be=de.redAdd(me).fromRed(),ye=de.redSub(me).fromRed();return[be,ye]},a.prototype._getEndoBasis=function(fe){for(var c=this.n.ushrn(Math.floor(this.n.bitLength()/2)),ue=fe,de=this.n.clone(),me=new Ee(1),be=new Ee(0),ye=new Ee(0),_e=new Ee(1),Ae,we,Re,Se,$e,Te,We,Ze=0,Ne,Ke;ue.cmpn(0)!==0;){var l=de.div(ue);Ne=de.sub(l.mul(ue)),Ke=ye.sub(l.mul(me));var e=_e.sub(l.mul(be));if(!Re&&Ne.cmp(c)<0)Ae=We.neg(),we=me,Re=Ne.neg(),Se=Ke;else if(Re&&++Ze===2)break;We=Ne,de=ue,ue=Ne,ye=me,me=Ke,_e=be,be=e}$e=Ne.neg(),Te=Ke;var t=Re.sqr().add(Se.sqr()),i=$e.sqr().add(Te.sqr());return i.cmp(t)>=0&&($e=Ae,Te=we),Re.negative&&(Re=Re.neg(),Se=Se.neg()),$e.negative&&($e=$e.neg(),Te=Te.neg()),[{a:Re,b:Se},{a:$e,b:Te}]},a.prototype._endoSplit=function(fe){var c=this.endo.basis,ue=c[0],de=c[1],me=de.b.mul(fe).divRound(this.n),be=ue.b.neg().mul(fe).divRound(this.n),ye=me.mul(ue.a),_e=be.mul(de.a),Ae=me.mul(ue.b),we=be.mul(de.b),Re=fe.sub(ye).sub(_e),Se=Ae.add(we).neg();return{k1:Re,k2:Se}},a.prototype.pointFromX=function(fe,c){fe=new Ee(fe,16),fe.red||(fe=fe.toRed(this.red));var ue=fe.redSqr().redMul(fe).redIAdd(fe.redMul(this.a)).redIAdd(this.b),de=ue.redSqrt();if(de.redSqr().redSub(ue).cmp(this.zero)!==0)throw new Error("invalid point");var me=de.fromRed().isOdd();return(c&&!me||!c&&me)&&(de=de.redNeg()),this.point(fe,de)},a.prototype.validate=function(fe){if(fe.inf)return!0;var c=fe.x,ue=fe.y,de=this.a.redMul(c),me=c.redSqr().redMul(c).redIAdd(de).redIAdd(this.b);return ue.redSqr().redISub(me).cmpn(0)===0},a.prototype._endoWnafMulAdd=function(fe,c,ue){for(var de=this._endoWnafT1,me=this._endoWnafT2,be=0;be<fe.length;be++){var ye=this._endoSplit(c[be]),_e=fe[be],Ae=_e._getBeta();ye.k1.negative&&(ye.k1.ineg(),_e=_e.neg(!0)),ye.k2.negative&&(ye.k2.ineg(),Ae=Ae.neg(!0)),de[be*2]=_e,de[be*2+1]=Ae,me[be*2]=ye.k1,me[be*2+1]=ye.k2}for(var we=this._wnafMulAdd(1,de,me,be*2,ue),Re=0;Re<be*2;Re++)de[Re]=null,me[Re]=null;return we};function xe(ve,fe,c,ue){he.BasePoint.call(this,ve,"affine"),fe===null&&c===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new Ee(fe,16),this.y=new Ee(c,16),ue&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}Be(xe,he.BasePoint),a.prototype.point=function(fe,c,ue){return new xe(this,fe,c,ue)},a.prototype.pointFromJSON=function(fe,c){return xe.fromJSON(this,fe,c)},xe.prototype._getBeta=function(){if(this.curve.endo){var fe=this.precomputed;if(fe&&fe.beta)return fe.beta;var c=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(fe){var ue=this.curve,de=function(me){return ue.point(me.x.redMul(ue.endo.beta),me.y)};fe.beta=c,c.precomputed={beta:null,naf:fe.naf&&{wnd:fe.naf.wnd,points:fe.naf.points.map(de)},doubles:fe.doubles&&{step:fe.doubles.step,points:fe.doubles.points.map(de)}}}return c}},xe.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},xe.fromJSON=function(fe,c,ue){typeof c=="string"&&(c=JSON.parse(c));var de=fe.point(c[0],c[1],ue);if(!c[2])return de;function me(ye){return fe.point(ye[0],ye[1],ue)}var be=c[2];return de.precomputed={beta:null,doubles:be.doubles&&{step:be.doubles.step,points:[de].concat(be.doubles.points.map(me))},naf:be.naf&&{wnd:be.naf.wnd,points:[de].concat(be.naf.points.map(me))}},de},xe.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},xe.prototype.isInfinity=function(){return this.inf},xe.prototype.add=function(fe){if(this.inf)return fe;if(fe.inf)return this;if(this.eq(fe))return this.dbl();if(this.neg().eq(fe))return this.curve.point(null,null);if(this.x.cmp(fe.x)===0)return this.curve.point(null,null);var c=this.y.redSub(fe.y);c.cmpn(0)!==0&&(c=c.redMul(this.x.redSub(fe.x).redInvm()));var ue=c.redSqr().redISub(this.x).redISub(fe.x),de=c.redMul(this.x.redSub(ue)).redISub(this.y);return this.curve.point(ue,de)},xe.prototype.dbl=function(){if(this.inf)return this;var fe=this.y.redAdd(this.y);if(fe.cmpn(0)===0)return this.curve.point(null,null);var c=this.curve.a,ue=this.x.redSqr(),de=fe.redInvm(),me=ue.redAdd(ue).redIAdd(ue).redIAdd(c).redMul(de),be=me.redSqr().redISub(this.x.redAdd(this.x)),ye=me.redMul(this.x.redSub(be)).redISub(this.y);return this.curve.point(be,ye)},xe.prototype.getX=function(){return this.x.fromRed()},xe.prototype.getY=function(){return this.y.fromRed()},xe.prototype.mul=function(fe){return fe=new Ee(fe,16),this.isInfinity()?this:this._hasDoubles(fe)?this.curve._fixedNafMul(this,fe):this.curve.endo?this.curve._endoWnafMulAdd([this],[fe]):this.curve._wnafMul(this,fe)},xe.prototype.mulAdd=function(fe,c,ue){var de=[this,c],me=[fe,ue];return this.curve.endo?this.curve._endoWnafMulAdd(de,me):this.curve._wnafMulAdd(1,de,me,2)},xe.prototype.jmulAdd=function(fe,c,ue){var de=[this,c],me=[fe,ue];return this.curve.endo?this.curve._endoWnafMulAdd(de,me,!0):this.curve._wnafMulAdd(1,de,me,2,!0)},xe.prototype.eq=function(fe){return this===fe||this.inf===fe.inf&&(this.inf||this.x.cmp(fe.x)===0&&this.y.cmp(fe.y)===0)},xe.prototype.neg=function(fe){if(this.inf)return this;var c=this.curve.point(this.x,this.y.redNeg());if(fe&&this.precomputed){var ue=this.precomputed,de=function(me){return me.neg()};c.precomputed={naf:ue.naf&&{wnd:ue.naf.wnd,points:ue.naf.points.map(de)},doubles:ue.doubles&&{step:ue.doubles.step,points:ue.doubles.points.map(de)}}}return c},xe.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var fe=this.curve.jpoint(this.x,this.y,this.curve.one);return fe};function pe(ve,fe,c,ue){he.BasePoint.call(this,ve,"jacobian"),fe===null&&c===null&&ue===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Ee(0)):(this.x=new Ee(fe,16),this.y=new Ee(c,16),this.z=new Ee(ue,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}return Be(pe,he.BasePoint),a.prototype.jpoint=function(fe,c,ue){return new pe(this,fe,c,ue)},pe.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var fe=this.z.redInvm(),c=fe.redSqr(),ue=this.x.redMul(c),de=this.y.redMul(c).redMul(fe);return this.curve.point(ue,de)},pe.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},pe.prototype.add=function(fe){if(this.isInfinity())return fe;if(fe.isInfinity())return this;var c=fe.z.redSqr(),ue=this.z.redSqr(),de=this.x.redMul(c),me=fe.x.redMul(ue),be=this.y.redMul(c.redMul(fe.z)),ye=fe.y.redMul(ue.redMul(this.z)),_e=de.redSub(me),Ae=be.redSub(ye);if(_e.cmpn(0)===0)return Ae.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var we=_e.redSqr(),Re=we.redMul(_e),Se=de.redMul(we),$e=Ae.redSqr().redIAdd(Re).redISub(Se).redISub(Se),Te=Ae.redMul(Se.redISub($e)).redISub(be.redMul(Re)),We=this.z.redMul(fe.z).redMul(_e);return this.curve.jpoint($e,Te,We)},pe.prototype.mixedAdd=function(fe){if(this.isInfinity())return fe.toJ();if(fe.isInfinity())return this;var c=this.z.redSqr(),ue=this.x,de=fe.x.redMul(c),me=this.y,be=fe.y.redMul(c).redMul(this.z),ye=ue.redSub(de),_e=me.redSub(be);if(ye.cmpn(0)===0)return _e.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var Ae=ye.redSqr(),we=Ae.redMul(ye),Re=ue.redMul(Ae),Se=_e.redSqr().redIAdd(we).redISub(Re).redISub(Re),$e=_e.redMul(Re.redISub(Se)).redISub(me.redMul(we)),Te=this.z.redMul(ye);return this.curve.jpoint(Se,$e,Te)},pe.prototype.dblp=function(fe){if(fe===0)return this;if(this.isInfinity())return this;if(!fe)return this.dbl();var c;if(this.curve.zeroA||this.curve.threeA){var ue=this;for(c=0;c<fe;c++)ue=ue.dbl();return ue}var de=this.curve.a,me=this.curve.tinv,be=this.x,ye=this.y,_e=this.z,Ae=_e.redSqr().redSqr(),we=ye.redAdd(ye);for(c=0;c<fe;c++){var Re=be.redSqr(),Se=we.redSqr(),$e=Se.redSqr(),Te=Re.redAdd(Re).redIAdd(Re).redIAdd(de.redMul(Ae)),We=be.redMul(Se),Ze=Te.redSqr().redISub(We.redAdd(We)),Ne=We.redISub(Ze),Ke=Te.redMul(Ne);Ke=Ke.redIAdd(Ke).redISub($e);var l=we.redMul(_e);c+1<fe&&(Ae=Ae.redMul($e)),be=Ze,_e=l,we=Ke}return this.curve.jpoint(be,we.redMul(me),_e)},pe.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},pe.prototype._zeroDbl=function(){var fe,c,ue;if(this.zOne){var de=this.x.redSqr(),me=this.y.redSqr(),be=me.redSqr(),ye=this.x.redAdd(me).redSqr().redISub(de).redISub(be);ye=ye.redIAdd(ye);var _e=de.redAdd(de).redIAdd(de),Ae=_e.redSqr().redISub(ye).redISub(ye),we=be.redIAdd(be);we=we.redIAdd(we),we=we.redIAdd(we),fe=Ae,c=_e.redMul(ye.redISub(Ae)).redISub(we),ue=this.y.redAdd(this.y)}else{var Re=this.x.redSqr(),Se=this.y.redSqr(),$e=Se.redSqr(),Te=this.x.redAdd(Se).redSqr().redISub(Re).redISub($e);Te=Te.redIAdd(Te);var We=Re.redAdd(Re).redIAdd(Re),Ze=We.redSqr(),Ne=$e.redIAdd($e);Ne=Ne.redIAdd(Ne),Ne=Ne.redIAdd(Ne),fe=Ze.redISub(Te).redISub(Te),c=We.redMul(Te.redISub(fe)).redISub(Ne),ue=this.y.redMul(this.z),ue=ue.redIAdd(ue)}return this.curve.jpoint(fe,c,ue)},pe.prototype._threeDbl=function(){var fe,c,ue;if(this.zOne){var de=this.x.redSqr(),me=this.y.redSqr(),be=me.redSqr(),ye=this.x.redAdd(me).redSqr().redISub(de).redISub(be);ye=ye.redIAdd(ye);var _e=de.redAdd(de).redIAdd(de).redIAdd(this.curve.a),Ae=_e.redSqr().redISub(ye).redISub(ye);fe=Ae;var we=be.redIAdd(be);we=we.redIAdd(we),we=we.redIAdd(we),c=_e.redMul(ye.redISub(Ae)).redISub(we),ue=this.y.redAdd(this.y)}else{var Re=this.z.redSqr(),Se=this.y.redSqr(),$e=this.x.redMul(Se),Te=this.x.redSub(Re).redMul(this.x.redAdd(Re));Te=Te.redAdd(Te).redIAdd(Te);var We=$e.redIAdd($e);We=We.redIAdd(We);var Ze=We.redAdd(We);fe=Te.redSqr().redISub(Ze),ue=this.y.redAdd(this.z).redSqr().redISub(Se).redISub(Re);var Ne=Se.redSqr();Ne=Ne.redIAdd(Ne),Ne=Ne.redIAdd(Ne),Ne=Ne.redIAdd(Ne),c=Te.redMul(We.redISub(fe)).redISub(Ne)}return this.curve.jpoint(fe,c,ue)},pe.prototype._dbl=function(){var fe=this.curve.a,c=this.x,ue=this.y,de=this.z,me=de.redSqr().redSqr(),be=c.redSqr(),ye=ue.redSqr(),_e=be.redAdd(be).redIAdd(be).redIAdd(fe.redMul(me)),Ae=c.redAdd(c);Ae=Ae.redIAdd(Ae);var we=Ae.redMul(ye),Re=_e.redSqr().redISub(we.redAdd(we)),Se=we.redISub(Re),$e=ye.redSqr();$e=$e.redIAdd($e),$e=$e.redIAdd($e),$e=$e.redIAdd($e);var Te=_e.redMul(Se).redISub($e),We=ue.redAdd(ue).redMul(de);return this.curve.jpoint(Re,Te,We)},pe.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var fe=this.x.redSqr(),c=this.y.redSqr(),ue=this.z.redSqr(),de=c.redSqr(),me=fe.redAdd(fe).redIAdd(fe),be=me.redSqr(),ye=this.x.redAdd(c).redSqr().redISub(fe).redISub(de);ye=ye.redIAdd(ye),ye=ye.redAdd(ye).redIAdd(ye),ye=ye.redISub(be);var _e=ye.redSqr(),Ae=de.redIAdd(de);Ae=Ae.redIAdd(Ae),Ae=Ae.redIAdd(Ae),Ae=Ae.redIAdd(Ae);var we=me.redIAdd(ye).redSqr().redISub(be).redISub(_e).redISub(Ae),Re=c.redMul(we);Re=Re.redIAdd(Re),Re=Re.redIAdd(Re);var Se=this.x.redMul(_e).redISub(Re);Se=Se.redIAdd(Se),Se=Se.redIAdd(Se);var $e=this.y.redMul(we.redMul(Ae.redISub(we)).redISub(ye.redMul(_e)));$e=$e.redIAdd($e),$e=$e.redIAdd($e),$e=$e.redIAdd($e);var Te=this.z.redAdd(ye).redSqr().redISub(ue).redISub(_e);return this.curve.jpoint(Se,$e,Te)},pe.prototype.mul=function(fe,c){return fe=new Ee(fe,c),this.curve._wnafMul(this,fe)},pe.prototype.eq=function(fe){if(fe.type==="affine")return this.eq(fe.toJ());if(this===fe)return!0;var c=this.z.redSqr(),ue=fe.z.redSqr();if(this.x.redMul(ue).redISub(fe.x.redMul(c)).cmpn(0)!==0)return!1;var de=c.redMul(this.z),me=ue.redMul(fe.z);return this.y.redMul(me).redISub(fe.y.redMul(de)).cmpn(0)===0},pe.prototype.eqXToP=function(fe){var c=this.z.redSqr(),ue=fe.toRed(this.curve.red).redMul(c);if(this.x.cmp(ue)===0)return!0;for(var de=fe.clone(),me=this.curve.redN.redMul(c);;){if(de.iadd(this.curve.n),de.cmp(this.curve.p)>=0)return!1;if(ue.redIAdd(me),this.x.cmp(ue)===0)return!0}},pe.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},pe.prototype.isInfinity=function(){return this.z.cmpn(0)===0},short}var mont,hasRequiredMont;function requireMont(){if(hasRequiredMont)return mont;hasRequiredMont=1;var ge=requireBn$3(),Ee=requireInherits_browser(),Be=requireBase$1(),he=requireUtils();function Me(xe){Be.call(this,"mont",xe),this.a=new ge(xe.a,16).toRed(this.red),this.b=new ge(xe.b,16).toRed(this.red),this.i4=new ge(4).toRed(this.red).redInvm(),this.two=new ge(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}Ee(Me,Be),mont=Me,Me.prototype.validate=function(pe){var ve=pe.normalize().x,fe=ve.redSqr(),c=fe.redMul(ve).redAdd(fe.redMul(this.a)).redAdd(ve),ue=c.redSqrt();return ue.redSqr().cmp(c)===0};function a(xe,pe,ve){Be.BasePoint.call(this,xe,"projective"),pe===null&&ve===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new ge(pe,16),this.z=new ge(ve,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}return Ee(a,Be.BasePoint),Me.prototype.decodePoint=function(pe,ve){return this.point(he.toArray(pe,ve),1)},Me.prototype.point=function(pe,ve){return new a(this,pe,ve)},Me.prototype.pointFromJSON=function(pe){return a.fromJSON(this,pe)},a.prototype.precompute=function(){},a.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},a.fromJSON=function(pe,ve){return new a(pe,ve[0],ve[1]||pe.one)},a.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},a.prototype.isInfinity=function(){return this.z.cmpn(0)===0},a.prototype.dbl=function(){var pe=this.x.redAdd(this.z),ve=pe.redSqr(),fe=this.x.redSub(this.z),c=fe.redSqr(),ue=ve.redSub(c),de=ve.redMul(c),me=ue.redMul(c.redAdd(this.curve.a24.redMul(ue)));return this.curve.point(de,me)},a.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},a.prototype.diffAdd=function(pe,ve){var fe=this.x.redAdd(this.z),c=this.x.redSub(this.z),ue=pe.x.redAdd(pe.z),de=pe.x.redSub(pe.z),me=de.redMul(fe),be=ue.redMul(c),ye=ve.z.redMul(me.redAdd(be).redSqr()),_e=ve.x.redMul(me.redISub(be).redSqr());return this.curve.point(ye,_e)},a.prototype.mul=function(pe){for(var ve=pe.clone(),fe=this,c=this.curve.point(null,null),ue=this,de=[];ve.cmpn(0)!==0;ve.iushrn(1))de.push(ve.andln(1));for(var me=de.length-1;me>=0;me--)de[me]===0?(fe=fe.diffAdd(c,ue),c=c.dbl()):(c=fe.diffAdd(c,ue),fe=fe.dbl());return c},a.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},a.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},a.prototype.eq=function(pe){return this.getX().cmp(pe.getX())===0},a.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},a.prototype.getX=function(){return this.normalize(),this.x.fromRed()},mont}var edwards,hasRequiredEdwards;function requireEdwards(){if(hasRequiredEdwards)return edwards;hasRequiredEdwards=1;var ge=requireUtils(),Ee=requireBn$3(),Be=requireInherits_browser(),he=requireBase$1(),Me=ge.assert;function a(pe){this.twisted=(pe.a|0)!==1,this.mOneA=this.twisted&&(pe.a|0)===-1,this.extended=this.mOneA,he.call(this,"edwards",pe),this.a=new Ee(pe.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new Ee(pe.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new Ee(pe.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),Me(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(pe.c|0)===1}Be(a,he),edwards=a,a.prototype._mulA=function(ve){return this.mOneA?ve.redNeg():this.a.redMul(ve)},a.prototype._mulC=function(ve){return this.oneC?ve:this.c.redMul(ve)},a.prototype.jpoint=function(ve,fe,c,ue){return this.point(ve,fe,c,ue)},a.prototype.pointFromX=function(ve,fe){ve=new Ee(ve,16),ve.red||(ve=ve.toRed(this.red));var c=ve.redSqr(),ue=this.c2.redSub(this.a.redMul(c)),de=this.one.redSub(this.c2.redMul(this.d).redMul(c)),me=ue.redMul(de.redInvm()),be=me.redSqrt();if(be.redSqr().redSub(me).cmp(this.zero)!==0)throw new Error("invalid point");var ye=be.fromRed().isOdd();return(fe&&!ye||!fe&&ye)&&(be=be.redNeg()),this.point(ve,be)},a.prototype.pointFromY=function(ve,fe){ve=new Ee(ve,16),ve.red||(ve=ve.toRed(this.red));var c=ve.redSqr(),ue=c.redSub(this.c2),de=c.redMul(this.d).redMul(this.c2).redSub(this.a),me=ue.redMul(de.redInvm());if(me.cmp(this.zero)===0){if(fe)throw new Error("invalid point");return this.point(this.zero,ve)}var be=me.redSqrt();if(be.redSqr().redSub(me).cmp(this.zero)!==0)throw new Error("invalid point");return be.fromRed().isOdd()!==fe&&(be=be.redNeg()),this.point(be,ve)},a.prototype.validate=function(ve){if(ve.isInfinity())return!0;ve.normalize();var fe=ve.x.redSqr(),c=ve.y.redSqr(),ue=fe.redMul(this.a).redAdd(c),de=this.c2.redMul(this.one.redAdd(this.d.redMul(fe).redMul(c)));return ue.cmp(de)===0};function xe(pe,ve,fe,c,ue){he.BasePoint.call(this,pe,"projective"),ve===null&&fe===null&&c===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new Ee(ve,16),this.y=new Ee(fe,16),this.z=c?new Ee(c,16):this.curve.one,this.t=ue&&new Ee(ue,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}return Be(xe,he.BasePoint),a.prototype.pointFromJSON=function(ve){return xe.fromJSON(this,ve)},a.prototype.point=function(ve,fe,c,ue){return new xe(this,ve,fe,c,ue)},xe.fromJSON=function(ve,fe){return new xe(ve,fe[0],fe[1],fe[2])},xe.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},xe.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},xe.prototype._extDbl=function(){var ve=this.x.redSqr(),fe=this.y.redSqr(),c=this.z.redSqr();c=c.redIAdd(c);var ue=this.curve._mulA(ve),de=this.x.redAdd(this.y).redSqr().redISub(ve).redISub(fe),me=ue.redAdd(fe),be=me.redSub(c),ye=ue.redSub(fe),_e=de.redMul(be),Ae=me.redMul(ye),we=de.redMul(ye),Re=be.redMul(me);return this.curve.point(_e,Ae,Re,we)},xe.prototype._projDbl=function(){var ve=this.x.redAdd(this.y).redSqr(),fe=this.x.redSqr(),c=this.y.redSqr(),ue,de,me,be,ye,_e;if(this.curve.twisted){be=this.curve._mulA(fe);var Ae=be.redAdd(c);this.zOne?(ue=ve.redSub(fe).redSub(c).redMul(Ae.redSub(this.curve.two)),de=Ae.redMul(be.redSub(c)),me=Ae.redSqr().redSub(Ae).redSub(Ae)):(ye=this.z.redSqr(),_e=Ae.redSub(ye).redISub(ye),ue=ve.redSub(fe).redISub(c).redMul(_e),de=Ae.redMul(be.redSub(c)),me=Ae.redMul(_e))}else be=fe.redAdd(c),ye=this.curve._mulC(this.z).redSqr(),_e=be.redSub(ye).redSub(ye),ue=this.curve._mulC(ve.redISub(be)).redMul(_e),de=this.curve._mulC(be).redMul(fe.redISub(c)),me=be.redMul(_e);return this.curve.point(ue,de,me)},xe.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},xe.prototype._extAdd=function(ve){var fe=this.y.redSub(this.x).redMul(ve.y.redSub(ve.x)),c=this.y.redAdd(this.x).redMul(ve.y.redAdd(ve.x)),ue=this.t.redMul(this.curve.dd).redMul(ve.t),de=this.z.redMul(ve.z.redAdd(ve.z)),me=c.redSub(fe),be=de.redSub(ue),ye=de.redAdd(ue),_e=c.redAdd(fe),Ae=me.redMul(be),we=ye.redMul(_e),Re=me.redMul(_e),Se=be.redMul(ye);return this.curve.point(Ae,we,Se,Re)},xe.prototype._projAdd=function(ve){var fe=this.z.redMul(ve.z),c=fe.redSqr(),ue=this.x.redMul(ve.x),de=this.y.redMul(ve.y),me=this.curve.d.redMul(ue).redMul(de),be=c.redSub(me),ye=c.redAdd(me),_e=this.x.redAdd(this.y).redMul(ve.x.redAdd(ve.y)).redISub(ue).redISub(de),Ae=fe.redMul(be).redMul(_e),we,Re;return this.curve.twisted?(we=fe.redMul(ye).redMul(de.redSub(this.curve._mulA(ue))),Re=be.redMul(ye)):(we=fe.redMul(ye).redMul(de.redSub(ue)),Re=this.curve._mulC(be).redMul(ye)),this.curve.point(Ae,we,Re)},xe.prototype.add=function(ve){return this.isInfinity()?ve:ve.isInfinity()?this:this.curve.extended?this._extAdd(ve):this._projAdd(ve)},xe.prototype.mul=function(ve){return this._hasDoubles(ve)?this.curve._fixedNafMul(this,ve):this.curve._wnafMul(this,ve)},xe.prototype.mulAdd=function(ve,fe,c){return this.curve._wnafMulAdd(1,[this,fe],[ve,c],2,!1)},xe.prototype.jmulAdd=function(ve,fe,c){return this.curve._wnafMulAdd(1,[this,fe],[ve,c],2,!0)},xe.prototype.normalize=function(){if(this.zOne)return this;var ve=this.z.redInvm();return this.x=this.x.redMul(ve),this.y=this.y.redMul(ve),this.t&&(this.t=this.t.redMul(ve)),this.z=this.curve.one,this.zOne=!0,this},xe.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},xe.prototype.getX=function(){return this.normalize(),this.x.fromRed()},xe.prototype.getY=function(){return this.normalize(),this.y.fromRed()},xe.prototype.eq=function(ve){return this===ve||this.getX().cmp(ve.getX())===0&&this.getY().cmp(ve.getY())===0},xe.prototype.eqXToP=function(ve){var fe=ve.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(fe)===0)return!0;for(var c=ve.clone(),ue=this.curve.redN.redMul(this.z);;){if(c.iadd(this.curve.n),c.cmp(this.curve.p)>=0)return!1;if(fe.redIAdd(ue),this.x.cmp(fe)===0)return!0}},xe.prototype.toP=xe.prototype.normalize,xe.prototype.mixedAdd=xe.prototype.add,edwards}var hasRequiredCurve;function requireCurve(){return hasRequiredCurve||(hasRequiredCurve=1,(function(ge){var Ee=ge;Ee.base=requireBase$1(),Ee.short=requireShort(),Ee.mont=requireMont(),Ee.edwards=requireEdwards()})(curve)),curve}var curves={},secp256k1,hasRequiredSecp256k1;function requireSecp256k1(){return hasRequiredSecp256k1||(hasRequiredSecp256k1=1,secp256k1={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}),secp256k1}var hasRequiredCurves;function requireCurves(){return hasRequiredCurves||(hasRequiredCurves=1,(function(ge){var Ee=ge,Be=requireHash(),he=requireCurve(),Me=requireUtils(),a=Me.assert;function xe(fe){fe.type==="short"?this.curve=new he.short(fe):fe.type==="edwards"?this.curve=new he.edwards(fe):this.curve=new he.mont(fe),this.g=this.curve.g,this.n=this.curve.n,this.hash=fe.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}Ee.PresetCurve=xe;function pe(fe,c){Object.defineProperty(Ee,fe,{configurable:!0,enumerable:!0,get:function(){var ue=new xe(c);return Object.defineProperty(Ee,fe,{configurable:!0,enumerable:!0,value:ue}),ue}})}pe("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:Be.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),pe("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:Be.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),pe("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:Be.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),pe("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:Be.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),pe("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:Be.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),pe("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Be.sha256,gRed:!1,g:["9"]}),pe("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Be.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var ve;try{ve=requireSecp256k1()}catch{ve=void 0}pe("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:Be.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",ve]})})(curves)),curves}var hmacDrbg,hasRequiredHmacDrbg;function requireHmacDrbg(){if(hasRequiredHmacDrbg)return hmacDrbg;hasRequiredHmacDrbg=1;var ge=requireHash(),Ee=requireUtils$1(),Be=requireMinimalisticAssert();function he(Me){if(!(this instanceof he))return new he(Me);this.hash=Me.hash,this.predResist=!!Me.predResist,this.outLen=this.hash.outSize,this.minEntropy=Me.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var a=Ee.toArray(Me.entropy,Me.entropyEnc||"hex"),xe=Ee.toArray(Me.nonce,Me.nonceEnc||"hex"),pe=Ee.toArray(Me.pers,Me.persEnc||"hex");Be(a.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(a,xe,pe)}return hmacDrbg=he,he.prototype._init=function(a,xe,pe){var ve=a.concat(xe).concat(pe);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var fe=0;fe<this.V.length;fe++)this.K[fe]=0,this.V[fe]=1;this._update(ve),this._reseed=1,this.reseedInterval=281474976710656},he.prototype._hmac=function(){return new ge.hmac(this.hash,this.K)},he.prototype._update=function(a){var xe=this._hmac().update(this.V).update([0]);a&&(xe=xe.update(a)),this.K=xe.digest(),this.V=this._hmac().update(this.V).digest(),a&&(this.K=this._hmac().update(this.V).update([1]).update(a).digest(),this.V=this._hmac().update(this.V).digest())},he.prototype.reseed=function(a,xe,pe,ve){typeof xe!="string"&&(ve=pe,pe=xe,xe=null),a=Ee.toArray(a,xe),pe=Ee.toArray(pe,ve),Be(a.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(a.concat(pe||[])),this._reseed=1},he.prototype.generate=function(a,xe,pe,ve){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof xe!="string"&&(ve=pe,pe=xe,xe=null),pe&&(pe=Ee.toArray(pe,ve||"hex"),this._update(pe));for(var fe=[];fe.length<a;)this.V=this._hmac().update(this.V).digest(),fe=fe.concat(this.V);var c=fe.slice(0,a);return this._update(pe),this._reseed++,Ee.encode(c,xe)},hmacDrbg}var key$1,hasRequiredKey$1;function requireKey$1(){if(hasRequiredKey$1)return key$1;hasRequiredKey$1=1;var ge=requireBn$3(),Ee=requireUtils(),Be=Ee.assert;function he(Me,a){this.ec=Me,this.priv=null,this.pub=null,a.priv&&this._importPrivate(a.priv,a.privEnc),a.pub&&this._importPublic(a.pub,a.pubEnc)}return key$1=he,he.fromPublic=function(a,xe,pe){return xe instanceof he?xe:new he(a,{pub:xe,pubEnc:pe})},he.fromPrivate=function(a,xe,pe){return xe instanceof he?xe:new he(a,{priv:xe,privEnc:pe})},he.prototype.validate=function(){var a=this.getPublic();return a.isInfinity()?{result:!1,reason:"Invalid public key"}:a.validate()?a.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},he.prototype.getPublic=function(a,xe){return typeof a=="string"&&(xe=a,a=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),xe?this.pub.encode(xe,a):this.pub},he.prototype.getPrivate=function(a){return a==="hex"?this.priv.toString(16,2):this.priv},he.prototype._importPrivate=function(a,xe){this.priv=new ge(a,xe||16),this.priv=this.priv.umod(this.ec.curve.n)},he.prototype._importPublic=function(a,xe){if(a.x||a.y){this.ec.curve.type==="mont"?Be(a.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&Be(a.x&&a.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(a.x,a.y);return}this.pub=this.ec.curve.decodePoint(a,xe)},he.prototype.derive=function(a){return a.validate()||Be(a.validate(),"public point not validated"),a.mul(this.priv).getX()},he.prototype.sign=function(a,xe,pe){return this.ec.sign(a,this,xe,pe)},he.prototype.verify=function(a,xe,pe){return this.ec.verify(a,xe,this,void 0,pe)},he.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"},key$1}var signature$1,hasRequiredSignature$1;function requireSignature$1(){if(hasRequiredSignature$1)return signature$1;hasRequiredSignature$1=1;var ge=requireBn$3(),Ee=requireUtils(),Be=Ee.assert;function he(ve,fe){if(ve instanceof he)return ve;this._importDER(ve,fe)||(Be(ve.r&&ve.s,"Signature without r or s"),this.r=new ge(ve.r,16),this.s=new ge(ve.s,16),ve.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=ve.recoveryParam)}signature$1=he;function Me(){this.place=0}function a(ve,fe){var c=ve[fe.place++];if(!(c&128))return c;var ue=c&15;if(ue===0||ue>4||ve[fe.place]===0)return!1;for(var de=0,me=0,be=fe.place;me<ue;me++,be++)de<<=8,de|=ve[be],de>>>=0;return de<=127?!1:(fe.place=be,de)}function xe(ve){for(var fe=0,c=ve.length-1;!ve[fe]&&!(ve[fe+1]&128)&&fe<c;)fe++;return fe===0?ve:ve.slice(fe)}he.prototype._importDER=function(fe,c){fe=Ee.toArray(fe,c);var ue=new Me;if(fe[ue.place++]!==48)return!1;var de=a(fe,ue);if(de===!1||de+ue.place!==fe.length||fe[ue.place++]!==2)return!1;var me=a(fe,ue);if(me===!1||(fe[ue.place]&128)!==0)return!1;var be=fe.slice(ue.place,me+ue.place);if(ue.place+=me,fe[ue.place++]!==2)return!1;var ye=a(fe,ue);if(ye===!1||fe.length!==ye+ue.place||(fe[ue.place]&128)!==0)return!1;var _e=fe.slice(ue.place,ye+ue.place);if(be[0]===0)if(be[1]&128)be=be.slice(1);else return!1;if(_e[0]===0)if(_e[1]&128)_e=_e.slice(1);else return!1;return this.r=new ge(be),this.s=new ge(_e),this.recoveryParam=null,!0};function pe(ve,fe){if(fe<128){ve.push(fe);return}var c=1+(Math.log(fe)/Math.LN2>>>3);for(ve.push(c|128);--c;)ve.push(fe>>>(c<<3)&255);ve.push(fe)}return he.prototype.toDER=function(fe){var c=this.r.toArray(),ue=this.s.toArray();for(c[0]&128&&(c=[0].concat(c)),ue[0]&128&&(ue=[0].concat(ue)),c=xe(c),ue=xe(ue);!ue[0]&&!(ue[1]&128);)ue=ue.slice(1);var de=[2];pe(de,c.length),de=de.concat(c),de.push(2),pe(de,ue.length);var me=de.concat(ue),be=[48];return pe(be,me.length),be=be.concat(me),Ee.encode(be,fe)},signature$1}var ec,hasRequiredEc;function requireEc(){if(hasRequiredEc)return ec;hasRequiredEc=1;var ge=requireBn$3(),Ee=requireHmacDrbg(),Be=requireUtils(),he=requireCurves(),Me=requireBrorand(),a=Be.assert,xe=requireKey$1(),pe=requireSignature$1();function ve(fe){if(!(this instanceof ve))return new ve(fe);typeof fe=="string"&&(a(Object.prototype.hasOwnProperty.call(he,fe),"Unknown curve "+fe),fe=he[fe]),fe instanceof he.PresetCurve&&(fe={curve:fe}),this.curve=fe.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=fe.curve.g,this.g.precompute(fe.curve.n.bitLength()+1),this.hash=fe.hash||fe.curve.hash}return ec=ve,ve.prototype.keyPair=function(c){return new xe(this,c)},ve.prototype.keyFromPrivate=function(c,ue){return xe.fromPrivate(this,c,ue)},ve.prototype.keyFromPublic=function(c,ue){return xe.fromPublic(this,c,ue)},ve.prototype.genKeyPair=function(c){c||(c={});for(var ue=new Ee({hash:this.hash,pers:c.pers,persEnc:c.persEnc||"utf8",entropy:c.entropy||Me(this.hash.hmacStrength),entropyEnc:c.entropy&&c.entropyEnc||"utf8",nonce:this.n.toArray()}),de=this.n.byteLength(),me=this.n.sub(new ge(2));;){var be=new ge(ue.generate(de));if(!(be.cmp(me)>0))return be.iaddn(1),this.keyFromPrivate(be)}},ve.prototype._truncateToN=function(c,ue,de){var me;if(ge.isBN(c)||typeof c=="number")c=new ge(c,16),me=c.byteLength();else if(typeof c=="object")me=c.length,c=new ge(c,16);else{var be=c.toString();me=be.length+1>>>1,c=new ge(be,16)}typeof de!="number"&&(de=me*8);var ye=de-this.n.bitLength();return ye>0&&(c=c.ushrn(ye)),!ue&&c.cmp(this.n)>=0?c.sub(this.n):c},ve.prototype.sign=function(c,ue,de,me){if(typeof de=="object"&&(me=de,de=null),me||(me={}),typeof c!="string"&&typeof c!="number"&&!ge.isBN(c)){a(typeof c=="object"&&c&&typeof c.length=="number","Expected message to be an array-like, a hex string, or a BN instance"),a(c.length>>>0===c.length);for(var be=0;be<c.length;be++)a((c[be]&255)===c[be])}ue=this.keyFromPrivate(ue,de),c=this._truncateToN(c,!1,me.msgBitLength),a(!c.isNeg(),"Can not sign a negative message");var ye=this.n.byteLength(),_e=ue.getPrivate().toArray("be",ye),Ae=c.toArray("be",ye);a(new ge(Ae).eq(c),"Can not sign message");for(var we=new Ee({hash:this.hash,entropy:_e,nonce:Ae,pers:me.pers,persEnc:me.persEnc||"utf8"}),Re=this.n.sub(new ge(1)),Se=0;;Se++){var $e=me.k?me.k(Se):new ge(we.generate(this.n.byteLength()));if($e=this._truncateToN($e,!0),!($e.cmpn(1)<=0||$e.cmp(Re)>=0)){var Te=this.g.mul($e);if(!Te.isInfinity()){var We=Te.getX(),Ze=We.umod(this.n);if(Ze.cmpn(0)!==0){var Ne=$e.invm(this.n).mul(Ze.mul(ue.getPrivate()).iadd(c));if(Ne=Ne.umod(this.n),Ne.cmpn(0)!==0){var Ke=(Te.getY().isOdd()?1:0)|(We.cmp(Ze)!==0?2:0);return me.canonical&&Ne.cmp(this.nh)>0&&(Ne=this.n.sub(Ne),Ke^=1),new pe({r:Ze,s:Ne,recoveryParam:Ke})}}}}}},ve.prototype.verify=function(c,ue,de,me,be){be||(be={}),c=this._truncateToN(c,!1,be.msgBitLength),de=this.keyFromPublic(de,me),ue=new pe(ue,"hex");var ye=ue.r,_e=ue.s;if(ye.cmpn(1)<0||ye.cmp(this.n)>=0||_e.cmpn(1)<0||_e.cmp(this.n)>=0)return!1;var Ae=_e.invm(this.n),we=Ae.mul(c).umod(this.n),Re=Ae.mul(ye).umod(this.n),Se;return this.curve._maxwellTrick?(Se=this.g.jmulAdd(we,de.getPublic(),Re),Se.isInfinity()?!1:Se.eqXToP(ye)):(Se=this.g.mulAdd(we,de.getPublic(),Re),Se.isInfinity()?!1:Se.getX().umod(this.n).cmp(ye)===0)},ve.prototype.recoverPubKey=function(fe,c,ue,de){a((3&ue)===ue,"The recovery param is more than two bits"),c=new pe(c,de);var me=this.n,be=new ge(fe),ye=c.r,_e=c.s,Ae=ue&1,we=ue>>1;if(ye.cmp(this.curve.p.umod(this.curve.n))>=0&&we)throw new Error("Unable to find sencond key candinate");we?ye=this.curve.pointFromX(ye.add(this.curve.n),Ae):ye=this.curve.pointFromX(ye,Ae);var Re=c.r.invm(me),Se=me.sub(be).mul(Re).umod(me),$e=_e.mul(Re).umod(me);return this.g.mulAdd(Se,ye,$e)},ve.prototype.getKeyRecoveryParam=function(fe,c,ue,de){if(c=new pe(c,de),c.recoveryParam!==null)return c.recoveryParam;for(var me=0;me<4;me++){var be;try{be=this.recoverPubKey(fe,c,me)}catch{continue}if(be.eq(ue))return me}throw new Error("Unable to find valid recovery factor")},ec}var key,hasRequiredKey;function requireKey(){if(hasRequiredKey)return key;hasRequiredKey=1;var ge=requireUtils(),Ee=ge.assert,Be=ge.parseBytes,he=ge.cachedProperty;function Me(a,xe){this.eddsa=a,this._secret=Be(xe.secret),a.isPoint(xe.pub)?this._pub=xe.pub:this._pubBytes=Be(xe.pub)}return Me.fromPublic=function(xe,pe){return pe instanceof Me?pe:new Me(xe,{pub:pe})},Me.fromSecret=function(xe,pe){return pe instanceof Me?pe:new Me(xe,{secret:pe})},Me.prototype.secret=function(){return this._secret},he(Me,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),he(Me,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),he(Me,"privBytes",function(){var xe=this.eddsa,pe=this.hash(),ve=xe.encodingLength-1,fe=pe.slice(0,xe.encodingLength);return fe[0]&=248,fe[ve]&=127,fe[ve]|=64,fe}),he(Me,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),he(Me,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),he(Me,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),Me.prototype.sign=function(xe){return Ee(this._secret,"KeyPair can only verify"),this.eddsa.sign(xe,this)},Me.prototype.verify=function(xe,pe){return this.eddsa.verify(xe,pe,this)},Me.prototype.getSecret=function(xe){return Ee(this._secret,"KeyPair is public only"),ge.encode(this.secret(),xe)},Me.prototype.getPublic=function(xe){return ge.encode(this.pubBytes(),xe)},key=Me,key}var signature,hasRequiredSignature;function requireSignature(){if(hasRequiredSignature)return signature;hasRequiredSignature=1;var ge=requireBn$3(),Ee=requireUtils(),Be=Ee.assert,he=Ee.cachedProperty,Me=Ee.parseBytes;function a(xe,pe){this.eddsa=xe,typeof pe!="object"&&(pe=Me(pe)),Array.isArray(pe)&&(Be(pe.length===xe.encodingLength*2,"Signature has invalid size"),pe={R:pe.slice(0,xe.encodingLength),S:pe.slice(xe.encodingLength)}),Be(pe.R&&pe.S,"Signature without R or S"),xe.isPoint(pe.R)&&(this._R=pe.R),pe.S instanceof ge&&(this._S=pe.S),this._Rencoded=Array.isArray(pe.R)?pe.R:pe.Rencoded,this._Sencoded=Array.isArray(pe.S)?pe.S:pe.Sencoded}return he(a,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),he(a,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),he(a,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),he(a,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),a.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},a.prototype.toHex=function(){return Ee.encode(this.toBytes(),"hex").toUpperCase()},signature=a,signature}var eddsa,hasRequiredEddsa;function requireEddsa(){if(hasRequiredEddsa)return eddsa;hasRequiredEddsa=1;var ge=requireHash(),Ee=requireCurves(),Be=requireUtils(),he=Be.assert,Me=Be.parseBytes,a=requireKey(),xe=requireSignature();function pe(ve){if(he(ve==="ed25519","only tested with ed25519 so far"),!(this instanceof pe))return new pe(ve);ve=Ee[ve].curve,this.curve=ve,this.g=ve.g,this.g.precompute(ve.n.bitLength()+1),this.pointClass=ve.point().constructor,this.encodingLength=Math.ceil(ve.n.bitLength()/8),this.hash=ge.sha512}return eddsa=pe,pe.prototype.sign=function(fe,c){fe=Me(fe);var ue=this.keyFromSecret(c),de=this.hashInt(ue.messagePrefix(),fe),me=this.g.mul(de),be=this.encodePoint(me),ye=this.hashInt(be,ue.pubBytes(),fe).mul(ue.priv()),_e=de.add(ye).umod(this.curve.n);return this.makeSignature({R:me,S:_e,Rencoded:be})},pe.prototype.verify=function(fe,c,ue){if(fe=Me(fe),c=this.makeSignature(c),c.S().gte(c.eddsa.curve.n)||c.S().isNeg())return!1;var de=this.keyFromPublic(ue),me=this.hashInt(c.Rencoded(),de.pubBytes(),fe),be=this.g.mul(c.S()),ye=c.R().add(de.pub().mul(me));return ye.eq(be)},pe.prototype.hashInt=function(){for(var fe=this.hash(),c=0;c<arguments.length;c++)fe.update(arguments[c]);return Be.intFromLE(fe.digest()).umod(this.curve.n)},pe.prototype.keyFromPublic=function(fe){return a.fromPublic(this,fe)},pe.prototype.keyFromSecret=function(fe){return a.fromSecret(this,fe)},pe.prototype.makeSignature=function(fe){return fe instanceof xe?fe:new xe(this,fe)},pe.prototype.encodePoint=function(fe){var c=fe.getY().toArray("le",this.encodingLength);return c[this.encodingLength-1]|=fe.getX().isOdd()?128:0,c},pe.prototype.decodePoint=function(fe){fe=Be.parseBytes(fe);var c=fe.length-1,ue=fe.slice(0,c).concat(fe[c]&-129),de=(fe[c]&128)!==0,me=Be.intFromLE(ue);return this.curve.pointFromY(me,de)},pe.prototype.encodeInt=function(fe){return fe.toArray("le",this.encodingLength)},pe.prototype.decodeInt=function(fe){return Be.intFromLE(fe)},pe.prototype.isPoint=function(fe){return fe instanceof this.pointClass},eddsa}var hasRequiredElliptic;function requireElliptic(){return hasRequiredElliptic||(hasRequiredElliptic=1,(function(ge){var Ee=ge;Ee.version=require$$0.version,Ee.utils=requireUtils(),Ee.rand=requireBrorand(),Ee.curve=requireCurve(),Ee.curves=requireCurves(),Ee.ec=requireEc(),Ee.eddsa=requireEddsa()})(elliptic)),elliptic}var asn1$1={},asn1={},bn$5={exports:{}},bn$4=bn$5.exports,hasRequiredBn$2;function requireBn$2(){return hasRequiredBn$2||(hasRequiredBn$2=1,(function(ge){(function(Ee,Be){function he(l,e){if(!l)throw new Error(e||"Assertion failed")}function Me(l,e){l.super_=e;var t=function(){};t.prototype=e.prototype,l.prototype=new t,l.prototype.constructor=l}function a(l,e,t){if(a.isBN(l))return l;this.negative=0,this.words=null,this.length=0,this.red=null,l!==null&&((e==="le"||e==="be")&&(t=e,e=10),this._init(l||0,e||10,t||"be"))}typeof Ee=="object"?Ee.exports=a:Be.BN=a,a.BN=a,a.wordSize=26;var xe;try{typeof window<"u"&&typeof window.Buffer<"u"?xe=window.Buffer:xe=requireDist().Buffer}catch{}a.isBN=function(e){return e instanceof a?!0:e!==null&&typeof e=="object"&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,i){if(typeof e=="number")return this._initNumber(e,t,i);if(typeof e=="object")return this._initArray(e,t,i);t==="hex"&&(t=16),he(t===(t|0)&&t>=2&&t<=36),e=e.toString().replace(/\s+/g,"");var n=0;e[0]==="-"&&(n++,this.negative=1),n<e.length&&(t===16?this._parseHex(e,n,i):(this._parseBase(e,t,n),i==="le"&&this._initArray(this.toArray(),t,i)))},a.prototype._initNumber=function(e,t,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[e&67108863],this.length=1):e<4503599627370496?(this.words=[e&67108863,e/67108864&67108863],this.length=2):(he(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),i==="le"&&this._initArray(this.toArray(),t,i)},a.prototype._initArray=function(e,t,i){if(he(typeof e.length=="number"),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var d,m,se=0;if(i==="be")for(n=e.length-1,d=0;n>=0;n-=3)m=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[d]|=m<<se&67108863,this.words[d+1]=m>>>26-se&67108863,se+=24,se>=26&&(se-=26,d++);else if(i==="le")for(n=0,d=0;n<e.length;n+=3)m=e[n]|e[n+1]<<8|e[n+2]<<16,this.words[d]|=m<<se&67108863,this.words[d+1]=m>>>26-se&67108863,se+=24,se>=26&&(se-=26,d++);return this.strip()};function pe(l,e){var t=l.charCodeAt(e);return t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:t-48&15}function ve(l,e,t){var i=pe(l,t);return t-1>=e&&(i|=pe(l,t-1)<<4),i}a.prototype._parseHex=function(e,t,i){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var d=0,m=0,se;if(i==="be")for(n=e.length-1;n>=t;n-=2)se=ve(e,t,n)<<d,this.words[m]|=se&67108863,d>=18?(d-=18,m+=1,this.words[m]|=se>>>26):d+=8;else{var s=e.length-t;for(n=s%2===0?t+1:t;n<e.length;n+=2)se=ve(e,t,n)<<d,this.words[m]|=se&67108863,d>=18?(d-=18,m+=1,this.words[m]|=se>>>26):d+=8}this.strip()};function fe(l,e,t,i){for(var n=0,d=Math.min(l.length,t),m=e;m<d;m++){var se=l.charCodeAt(m)-48;n*=i,se>=49?n+=se-49+10:se>=17?n+=se-17+10:n+=se}return n}a.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var n=0,d=1;d<=67108863;d*=t)n++;n--,d=d/t|0;for(var m=e.length-i,se=m%n,s=Math.min(m,m-se)+i,r=0,o=i;o<s;o+=n)r=fe(e,o,o+n,t),this.imuln(d),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r);if(se!==0){var Ce=1;for(r=fe(e,o,e.length,t),o=0;o<se;o++)Ce*=t;this.imuln(Ce),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r)}this.strip()},a.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],ue=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],de=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(e,t){e=e||10,t=t|0||1;var i;if(e===16||e==="hex"){i="";for(var n=0,d=0,m=0;m<this.length;m++){var se=this.words[m],s=((se<<n|d)&16777215).toString(16);d=se>>>24-n&16777215,n+=2,n>=26&&(n-=26,m--),d!==0||m!==this.length-1?i=c[6-s.length]+s+i:i=s+i}for(d!==0&&(i=d.toString(16)+i);i.length%t!==0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}if(e===(e|0)&&e>=2&&e<=36){var r=ue[e],o=de[e];i="";var Ce=this.clone();for(Ce.negative=0;!Ce.isZero();){var De=Ce.modn(o).toString(e);Ce=Ce.idivn(o),Ce.isZero()?i=De+i:i=c[r-De.length]+De+i}for(this.isZero()&&(i="0"+i);i.length%t!==0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}he(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=this.words[1]*67108864:this.length===3&&this.words[2]===1?e+=4503599627370496+this.words[1]*67108864:this.length>2&&he(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return he(typeof xe<"u"),this.toArrayLike(xe,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,i){var n=this.byteLength(),d=i||Math.max(1,n);he(n<=d,"byte array longer than desired length"),he(d>0,"Requested array length <= 0"),this.strip();var m=t==="le",se=new e(d),s,r,o=this.clone();if(m){for(r=0;!o.isZero();r++)s=o.andln(255),o.iushrn(8),se[r]=s;for(;r<d;r++)se[r]=0}else{for(r=0;r<d-n;r++)se[r]=0;for(r=0;!o.isZero();r++)s=o.andln(255),o.iushrn(8),se[d-r-1]=s}return se},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},a.prototype._zeroBits=function(e){if(e===0)return 26;var t=e,i=0;return(t&8191)===0&&(i+=13,t>>>=13),(t&127)===0&&(i+=7,t>>>=7),(t&15)===0&&(i+=4,t>>>=4),(t&3)===0&&(i+=2,t>>>=2),(t&1)===0&&i++,i},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t};function me(l){for(var e=new Array(l.bitLength()),t=0;t<e.length;t++){var i=t/26|0,n=t%26;e[t]=(l.words[i]&1<<n)>>>n}return e}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var i=this._zeroBits(this.words[t]);if(e+=i,i!==26)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},a.prototype.ior=function(e){return he((this.negative|e.negative)===0),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;this.length>e.length?t=e:t=this;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=t.length,this.strip()},a.prototype.iand=function(e){return he((this.negative|e.negative)===0),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=t.words[n]^i.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},a.prototype.ixor=function(e){return he((this.negative|e.negative)===0),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){he(typeof e=="number"&&e>=0);var t=Math.ceil(e/26)|0,i=e%26;this._expand(t),i>0&&t--;for(var n=0;n<t;n++)this.words[n]=~this.words[n]&67108863;for(i>0&&(this.words[n]=~this.words[n]&67108863>>26-i,n++);n<this.length;n++)this.words[n]=0;return this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){he(typeof e=="number"&&e>=0);var i=e/26|0,n=e%26;return this._expand(i+1),t?this.words[i]=this.words[i]|1<<n:this.words[i]=this.words[i]&~(1<<n),this.strip()},a.prototype.iadd=function(e){var t;if(this.negative!==0&&e.negative===0)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();var i,n;this.length>e.length?(i=this,n=e):(i=e,n=this);for(var d=0,m=0;m<n.length;m++)t=(i.words[m]|0)+(n.words[m]|0)+d,this.words[m]=t&67108863,d=t>>>26;for(;d!==0&&m<i.length;m++)t=(i.words[m]|0)+d,this.words[m]=t&67108863,d=t>>>26;if(this.length=i.length,d!==0)this.words[this.length]=d,this.length++;else if(i!==this)for(;m<i.length;m++)this.words[m]=i.words[m];return this},a.prototype.add=function(e){var t;return e.negative!==0&&this.negative===0?(e.negative=0,t=this.sub(e),e.negative^=1,t):e.negative===0&&this.negative!==0?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(i===0)return this.negative=0,this.length=1,this.words[0]=0,this;var n,d;i>0?(n=this,d=e):(n=e,d=this);for(var m=0,se=0;se<d.length;se++)t=(n.words[se]|0)-(d.words[se]|0)+m,m=t>>26,this.words[se]=t&67108863;for(;m!==0&&se<n.length;se++)t=(n.words[se]|0)+m,m=t>>26,this.words[se]=t&67108863;if(m===0&&se<n.length&&n!==this)for(;se<n.length;se++)this.words[se]=n.words[se];return this.length=Math.max(this.length,se),n!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(e){return this.clone().isub(e)};function be(l,e,t){t.negative=e.negative^l.negative;var i=l.length+e.length|0;t.length=i,i=i-1|0;var n=l.words[0]|0,d=e.words[0]|0,m=n*d,se=m&67108863,s=m/67108864|0;t.words[0]=se;for(var r=1;r<i;r++){for(var o=s>>>26,Ce=s&67108863,De=Math.min(r,e.length-1),ke=Math.max(0,r-l.length+1);ke<=De;ke++){var Ue=r-ke|0;n=l.words[Ue]|0,d=e.words[ke]|0,m=n*d+Ce,o+=m/67108864|0,Ce=m&67108863}t.words[r]=Ce|0,s=o|0}return s!==0?t.words[r]=s|0:t.length--,t.strip()}var ye=function(e,t,i){var n=e.words,d=t.words,m=i.words,se=0,s,r,o,Ce=n[0]|0,De=Ce&8191,ke=Ce>>>13,Ue=n[1]|0,Pe=Ue&8191,qe=Ue>>>13,Ie=n[2]|0,Oe=Ie&8191,ze=Ie>>>13,Le=n[3]|0,Fe=Le&8191,He=Le>>>13,Ar=n[4]|0,Ge=Ar&8191,je=Ar>>>13,qr=n[5]|0,Ye=qr&8191,tr=qr>>>13,Rr=n[6]|0,Xe=Rr&8191,Ve=Rr>>>13,Sr=n[7]|0,Je=Sr&8191,er=Sr>>>13,Cr=n[8]|0,rr=Cr&8191,ir=Cr>>>13,Jr=n[9]|0,nr=Jr&8191,ar=Jr>>>13,kr=d[0]|0,cr=kr&8191,fr=kr>>>13,Qr=d[1]|0,vr=Qr&8191,pr=Qr>>>13,et=d[2]|0,br=et&8191,sr=et>>>13,rt=d[3]|0,or=rt&8191,xr=rt>>>13,tt=d[4]|0,gr=tt&8191,hr=tt>>>13,it=d[5]|0,yr=it&8191,ur=it>>>13,at=d[6]|0,dr=at&8191,Qe=at>>>13,Dr=d[7]|0,lr=Dr&8191,wr=Dr>>>13,nt=d[8]|0,Mr=nt&8191,_r=nt>>>13,ft=d[9]|0,Br=ft&8191,Er=ft>>>13;i.negative=e.negative^t.negative,i.length=19,s=Math.imul(De,cr),r=Math.imul(De,fr),r=r+Math.imul(ke,cr)|0,o=Math.imul(ke,fr);var Fr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Fr>>>26)|0,Fr&=67108863,s=Math.imul(Pe,cr),r=Math.imul(Pe,fr),r=r+Math.imul(qe,cr)|0,o=Math.imul(qe,fr),s=s+Math.imul(De,vr)|0,r=r+Math.imul(De,pr)|0,r=r+Math.imul(ke,vr)|0,o=o+Math.imul(ke,pr)|0;var Ir=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,s=Math.imul(Oe,cr),r=Math.imul(Oe,fr),r=r+Math.imul(ze,cr)|0,o=Math.imul(ze,fr),s=s+Math.imul(Pe,vr)|0,r=r+Math.imul(Pe,pr)|0,r=r+Math.imul(qe,vr)|0,o=o+Math.imul(qe,pr)|0,s=s+Math.imul(De,br)|0,r=r+Math.imul(De,sr)|0,r=r+Math.imul(ke,br)|0,o=o+Math.imul(ke,sr)|0;var $r=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+($r>>>26)|0,$r&=67108863,s=Math.imul(Fe,cr),r=Math.imul(Fe,fr),r=r+Math.imul(He,cr)|0,o=Math.imul(He,fr),s=s+Math.imul(Oe,vr)|0,r=r+Math.imul(Oe,pr)|0,r=r+Math.imul(ze,vr)|0,o=o+Math.imul(ze,pr)|0,s=s+Math.imul(Pe,br)|0,r=r+Math.imul(Pe,sr)|0,r=r+Math.imul(qe,br)|0,o=o+Math.imul(qe,sr)|0,s=s+Math.imul(De,or)|0,r=r+Math.imul(De,xr)|0,r=r+Math.imul(ke,or)|0,o=o+Math.imul(ke,xr)|0;var Pr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,s=Math.imul(Ge,cr),r=Math.imul(Ge,fr),r=r+Math.imul(je,cr)|0,o=Math.imul(je,fr),s=s+Math.imul(Fe,vr)|0,r=r+Math.imul(Fe,pr)|0,r=r+Math.imul(He,vr)|0,o=o+Math.imul(He,pr)|0,s=s+Math.imul(Oe,br)|0,r=r+Math.imul(Oe,sr)|0,r=r+Math.imul(ze,br)|0,o=o+Math.imul(ze,sr)|0,s=s+Math.imul(Pe,or)|0,r=r+Math.imul(Pe,xr)|0,r=r+Math.imul(qe,or)|0,o=o+Math.imul(qe,xr)|0,s=s+Math.imul(De,gr)|0,r=r+Math.imul(De,hr)|0,r=r+Math.imul(ke,gr)|0,o=o+Math.imul(ke,hr)|0;var Tr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,s=Math.imul(Ye,cr),r=Math.imul(Ye,fr),r=r+Math.imul(tr,cr)|0,o=Math.imul(tr,fr),s=s+Math.imul(Ge,vr)|0,r=r+Math.imul(Ge,pr)|0,r=r+Math.imul(je,vr)|0,o=o+Math.imul(je,pr)|0,s=s+Math.imul(Fe,br)|0,r=r+Math.imul(Fe,sr)|0,r=r+Math.imul(He,br)|0,o=o+Math.imul(He,sr)|0,s=s+Math.imul(Oe,or)|0,r=r+Math.imul(Oe,xr)|0,r=r+Math.imul(ze,or)|0,o=o+Math.imul(ze,xr)|0,s=s+Math.imul(Pe,gr)|0,r=r+Math.imul(Pe,hr)|0,r=r+Math.imul(qe,gr)|0,o=o+Math.imul(qe,hr)|0,s=s+Math.imul(De,yr)|0,r=r+Math.imul(De,ur)|0,r=r+Math.imul(ke,yr)|0,o=o+Math.imul(ke,ur)|0;var Nr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,s=Math.imul(Xe,cr),r=Math.imul(Xe,fr),r=r+Math.imul(Ve,cr)|0,o=Math.imul(Ve,fr),s=s+Math.imul(Ye,vr)|0,r=r+Math.imul(Ye,pr)|0,r=r+Math.imul(tr,vr)|0,o=o+Math.imul(tr,pr)|0,s=s+Math.imul(Ge,br)|0,r=r+Math.imul(Ge,sr)|0,r=r+Math.imul(je,br)|0,o=o+Math.imul(je,sr)|0,s=s+Math.imul(Fe,or)|0,r=r+Math.imul(Fe,xr)|0,r=r+Math.imul(He,or)|0,o=o+Math.imul(He,xr)|0,s=s+Math.imul(Oe,gr)|0,r=r+Math.imul(Oe,hr)|0,r=r+Math.imul(ze,gr)|0,o=o+Math.imul(ze,hr)|0,s=s+Math.imul(Pe,yr)|0,r=r+Math.imul(Pe,ur)|0,r=r+Math.imul(qe,yr)|0,o=o+Math.imul(qe,ur)|0,s=s+Math.imul(De,dr)|0,r=r+Math.imul(De,Qe)|0,r=r+Math.imul(ke,dr)|0,o=o+Math.imul(ke,Qe)|0;var Lr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,s=Math.imul(Je,cr),r=Math.imul(Je,fr),r=r+Math.imul(er,cr)|0,o=Math.imul(er,fr),s=s+Math.imul(Xe,vr)|0,r=r+Math.imul(Xe,pr)|0,r=r+Math.imul(Ve,vr)|0,o=o+Math.imul(Ve,pr)|0,s=s+Math.imul(Ye,br)|0,r=r+Math.imul(Ye,sr)|0,r=r+Math.imul(tr,br)|0,o=o+Math.imul(tr,sr)|0,s=s+Math.imul(Ge,or)|0,r=r+Math.imul(Ge,xr)|0,r=r+Math.imul(je,or)|0,o=o+Math.imul(je,xr)|0,s=s+Math.imul(Fe,gr)|0,r=r+Math.imul(Fe,hr)|0,r=r+Math.imul(He,gr)|0,o=o+Math.imul(He,hr)|0,s=s+Math.imul(Oe,yr)|0,r=r+Math.imul(Oe,ur)|0,r=r+Math.imul(ze,yr)|0,o=o+Math.imul(ze,ur)|0,s=s+Math.imul(Pe,dr)|0,r=r+Math.imul(Pe,Qe)|0,r=r+Math.imul(qe,dr)|0,o=o+Math.imul(qe,Qe)|0,s=s+Math.imul(De,lr)|0,r=r+Math.imul(De,wr)|0,r=r+Math.imul(ke,lr)|0,o=o+Math.imul(ke,wr)|0;var Or=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Or>>>26)|0,Or&=67108863,s=Math.imul(rr,cr),r=Math.imul(rr,fr),r=r+Math.imul(ir,cr)|0,o=Math.imul(ir,fr),s=s+Math.imul(Je,vr)|0,r=r+Math.imul(Je,pr)|0,r=r+Math.imul(er,vr)|0,o=o+Math.imul(er,pr)|0,s=s+Math.imul(Xe,br)|0,r=r+Math.imul(Xe,sr)|0,r=r+Math.imul(Ve,br)|0,o=o+Math.imul(Ve,sr)|0,s=s+Math.imul(Ye,or)|0,r=r+Math.imul(Ye,xr)|0,r=r+Math.imul(tr,or)|0,o=o+Math.imul(tr,xr)|0,s=s+Math.imul(Ge,gr)|0,r=r+Math.imul(Ge,hr)|0,r=r+Math.imul(je,gr)|0,o=o+Math.imul(je,hr)|0,s=s+Math.imul(Fe,yr)|0,r=r+Math.imul(Fe,ur)|0,r=r+Math.imul(He,yr)|0,o=o+Math.imul(He,ur)|0,s=s+Math.imul(Oe,dr)|0,r=r+Math.imul(Oe,Qe)|0,r=r+Math.imul(ze,dr)|0,o=o+Math.imul(ze,Qe)|0,s=s+Math.imul(Pe,lr)|0,r=r+Math.imul(Pe,wr)|0,r=r+Math.imul(qe,lr)|0,o=o+Math.imul(qe,wr)|0,s=s+Math.imul(De,Mr)|0,r=r+Math.imul(De,_r)|0,r=r+Math.imul(ke,Mr)|0,o=o+Math.imul(ke,_r)|0;var Ur=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,s=Math.imul(nr,cr),r=Math.imul(nr,fr),r=r+Math.imul(ar,cr)|0,o=Math.imul(ar,fr),s=s+Math.imul(rr,vr)|0,r=r+Math.imul(rr,pr)|0,r=r+Math.imul(ir,vr)|0,o=o+Math.imul(ir,pr)|0,s=s+Math.imul(Je,br)|0,r=r+Math.imul(Je,sr)|0,r=r+Math.imul(er,br)|0,o=o+Math.imul(er,sr)|0,s=s+Math.imul(Xe,or)|0,r=r+Math.imul(Xe,xr)|0,r=r+Math.imul(Ve,or)|0,o=o+Math.imul(Ve,xr)|0,s=s+Math.imul(Ye,gr)|0,r=r+Math.imul(Ye,hr)|0,r=r+Math.imul(tr,gr)|0,o=o+Math.imul(tr,hr)|0,s=s+Math.imul(Ge,yr)|0,r=r+Math.imul(Ge,ur)|0,r=r+Math.imul(je,yr)|0,o=o+Math.imul(je,ur)|0,s=s+Math.imul(Fe,dr)|0,r=r+Math.imul(Fe,Qe)|0,r=r+Math.imul(He,dr)|0,o=o+Math.imul(He,Qe)|0,s=s+Math.imul(Oe,lr)|0,r=r+Math.imul(Oe,wr)|0,r=r+Math.imul(ze,lr)|0,o=o+Math.imul(ze,wr)|0,s=s+Math.imul(Pe,Mr)|0,r=r+Math.imul(Pe,_r)|0,r=r+Math.imul(qe,Mr)|0,o=o+Math.imul(qe,_r)|0,s=s+Math.imul(De,Br)|0,r=r+Math.imul(De,Er)|0,r=r+Math.imul(ke,Br)|0,o=o+Math.imul(ke,Er)|0;var Hr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Hr>>>26)|0,Hr&=67108863,s=Math.imul(nr,vr),r=Math.imul(nr,pr),r=r+Math.imul(ar,vr)|0,o=Math.imul(ar,pr),s=s+Math.imul(rr,br)|0,r=r+Math.imul(rr,sr)|0,r=r+Math.imul(ir,br)|0,o=o+Math.imul(ir,sr)|0,s=s+Math.imul(Je,or)|0,r=r+Math.imul(Je,xr)|0,r=r+Math.imul(er,or)|0,o=o+Math.imul(er,xr)|0,s=s+Math.imul(Xe,gr)|0,r=r+Math.imul(Xe,hr)|0,r=r+Math.imul(Ve,gr)|0,o=o+Math.imul(Ve,hr)|0,s=s+Math.imul(Ye,yr)|0,r=r+Math.imul(Ye,ur)|0,r=r+Math.imul(tr,yr)|0,o=o+Math.imul(tr,ur)|0,s=s+Math.imul(Ge,dr)|0,r=r+Math.imul(Ge,Qe)|0,r=r+Math.imul(je,dr)|0,o=o+Math.imul(je,Qe)|0,s=s+Math.imul(Fe,lr)|0,r=r+Math.imul(Fe,wr)|0,r=r+Math.imul(He,lr)|0,o=o+Math.imul(He,wr)|0,s=s+Math.imul(Oe,Mr)|0,r=r+Math.imul(Oe,_r)|0,r=r+Math.imul(ze,Mr)|0,o=o+Math.imul(ze,_r)|0,s=s+Math.imul(Pe,Br)|0,r=r+Math.imul(Pe,Er)|0,r=r+Math.imul(qe,Br)|0,o=o+Math.imul(qe,Er)|0;var zr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(zr>>>26)|0,zr&=67108863,s=Math.imul(nr,br),r=Math.imul(nr,sr),r=r+Math.imul(ar,br)|0,o=Math.imul(ar,sr),s=s+Math.imul(rr,or)|0,r=r+Math.imul(rr,xr)|0,r=r+Math.imul(ir,or)|0,o=o+Math.imul(ir,xr)|0,s=s+Math.imul(Je,gr)|0,r=r+Math.imul(Je,hr)|0,r=r+Math.imul(er,gr)|0,o=o+Math.imul(er,hr)|0,s=s+Math.imul(Xe,yr)|0,r=r+Math.imul(Xe,ur)|0,r=r+Math.imul(Ve,yr)|0,o=o+Math.imul(Ve,ur)|0,s=s+Math.imul(Ye,dr)|0,r=r+Math.imul(Ye,Qe)|0,r=r+Math.imul(tr,dr)|0,o=o+Math.imul(tr,Qe)|0,s=s+Math.imul(Ge,lr)|0,r=r+Math.imul(Ge,wr)|0,r=r+Math.imul(je,lr)|0,o=o+Math.imul(je,wr)|0,s=s+Math.imul(Fe,Mr)|0,r=r+Math.imul(Fe,_r)|0,r=r+Math.imul(He,Mr)|0,o=o+Math.imul(He,_r)|0,s=s+Math.imul(Oe,Br)|0,r=r+Math.imul(Oe,Er)|0,r=r+Math.imul(ze,Br)|0,o=o+Math.imul(ze,Er)|0;var Kr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,s=Math.imul(nr,or),r=Math.imul(nr,xr),r=r+Math.imul(ar,or)|0,o=Math.imul(ar,xr),s=s+Math.imul(rr,gr)|0,r=r+Math.imul(rr,hr)|0,r=r+Math.imul(ir,gr)|0,o=o+Math.imul(ir,hr)|0,s=s+Math.imul(Je,yr)|0,r=r+Math.imul(Je,ur)|0,r=r+Math.imul(er,yr)|0,o=o+Math.imul(er,ur)|0,s=s+Math.imul(Xe,dr)|0,r=r+Math.imul(Xe,Qe)|0,r=r+Math.imul(Ve,dr)|0,o=o+Math.imul(Ve,Qe)|0,s=s+Math.imul(Ye,lr)|0,r=r+Math.imul(Ye,wr)|0,r=r+Math.imul(tr,lr)|0,o=o+Math.imul(tr,wr)|0,s=s+Math.imul(Ge,Mr)|0,r=r+Math.imul(Ge,_r)|0,r=r+Math.imul(je,Mr)|0,o=o+Math.imul(je,_r)|0,s=s+Math.imul(Fe,Br)|0,r=r+Math.imul(Fe,Er)|0,r=r+Math.imul(He,Br)|0,o=o+Math.imul(He,Er)|0;var Wr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,s=Math.imul(nr,gr),r=Math.imul(nr,hr),r=r+Math.imul(ar,gr)|0,o=Math.imul(ar,hr),s=s+Math.imul(rr,yr)|0,r=r+Math.imul(rr,ur)|0,r=r+Math.imul(ir,yr)|0,o=o+Math.imul(ir,ur)|0,s=s+Math.imul(Je,dr)|0,r=r+Math.imul(Je,Qe)|0,r=r+Math.imul(er,dr)|0,o=o+Math.imul(er,Qe)|0,s=s+Math.imul(Xe,lr)|0,r=r+Math.imul(Xe,wr)|0,r=r+Math.imul(Ve,lr)|0,o=o+Math.imul(Ve,wr)|0,s=s+Math.imul(Ye,Mr)|0,r=r+Math.imul(Ye,_r)|0,r=r+Math.imul(tr,Mr)|0,o=o+Math.imul(tr,_r)|0,s=s+Math.imul(Ge,Br)|0,r=r+Math.imul(Ge,Er)|0,r=r+Math.imul(je,Br)|0,o=o+Math.imul(je,Er)|0;var Zr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,s=Math.imul(nr,yr),r=Math.imul(nr,ur),r=r+Math.imul(ar,yr)|0,o=Math.imul(ar,ur),s=s+Math.imul(rr,dr)|0,r=r+Math.imul(rr,Qe)|0,r=r+Math.imul(ir,dr)|0,o=o+Math.imul(ir,Qe)|0,s=s+Math.imul(Je,lr)|0,r=r+Math.imul(Je,wr)|0,r=r+Math.imul(er,lr)|0,o=o+Math.imul(er,wr)|0,s=s+Math.imul(Xe,Mr)|0,r=r+Math.imul(Xe,_r)|0,r=r+Math.imul(Ve,Mr)|0,o=o+Math.imul(Ve,_r)|0,s=s+Math.imul(Ye,Br)|0,r=r+Math.imul(Ye,Er)|0,r=r+Math.imul(tr,Br)|0,o=o+Math.imul(tr,Er)|0;var jr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(jr>>>26)|0,jr&=67108863,s=Math.imul(nr,dr),r=Math.imul(nr,Qe),r=r+Math.imul(ar,dr)|0,o=Math.imul(ar,Qe),s=s+Math.imul(rr,lr)|0,r=r+Math.imul(rr,wr)|0,r=r+Math.imul(ir,lr)|0,o=o+Math.imul(ir,wr)|0,s=s+Math.imul(Je,Mr)|0,r=r+Math.imul(Je,_r)|0,r=r+Math.imul(er,Mr)|0,o=o+Math.imul(er,_r)|0,s=s+Math.imul(Xe,Br)|0,r=r+Math.imul(Xe,Er)|0,r=r+Math.imul(Ve,Br)|0,o=o+Math.imul(Ve,Er)|0;var Gr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,s=Math.imul(nr,lr),r=Math.imul(nr,wr),r=r+Math.imul(ar,lr)|0,o=Math.imul(ar,wr),s=s+Math.imul(rr,Mr)|0,r=r+Math.imul(rr,_r)|0,r=r+Math.imul(ir,Mr)|0,o=o+Math.imul(ir,_r)|0,s=s+Math.imul(Je,Br)|0,r=r+Math.imul(Je,Er)|0,r=r+Math.imul(er,Br)|0,o=o+Math.imul(er,Er)|0;var Vr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Vr>>>26)|0,Vr&=67108863,s=Math.imul(nr,Mr),r=Math.imul(nr,_r),r=r+Math.imul(ar,Mr)|0,o=Math.imul(ar,_r),s=s+Math.imul(rr,Br)|0,r=r+Math.imul(rr,Er)|0,r=r+Math.imul(ir,Br)|0,o=o+Math.imul(ir,Er)|0;var Xr=(se+s|0)+((r&8191)<<13)|0;se=(o+(r>>>13)|0)+(Xr>>>26)|0,Xr&=67108863,s=Math.imul(nr,Br),r=Math.imul(nr,Er),r=r+Math.imul(ar,Br)|0,o=Math.imul(ar,Er);var Yr=(se+s|0)+((r&8191)<<13)|0;return se=(o+(r>>>13)|0)+(Yr>>>26)|0,Yr&=67108863,m[0]=Fr,m[1]=Ir,m[2]=$r,m[3]=Pr,m[4]=Tr,m[5]=Nr,m[6]=Lr,m[7]=Or,m[8]=Ur,m[9]=Hr,m[10]=zr,m[11]=Kr,m[12]=Wr,m[13]=Zr,m[14]=jr,m[15]=Gr,m[16]=Vr,m[17]=Xr,m[18]=Yr,se!==0&&(m[19]=se,i.length++),i};Math.imul||(ye=be);function _e(l,e,t){t.negative=e.negative^l.negative,t.length=l.length+e.length;for(var i=0,n=0,d=0;d<t.length-1;d++){var m=n;n=0;for(var se=i&67108863,s=Math.min(d,e.length-1),r=Math.max(0,d-l.length+1);r<=s;r++){var o=d-r,Ce=l.words[o]|0,De=e.words[r]|0,ke=Ce*De,Ue=ke&67108863;m=m+(ke/67108864|0)|0,Ue=Ue+se|0,se=Ue&67108863,m=m+(Ue>>>26)|0,n+=m>>>26,m&=67108863}t.words[d]=se,i=m,m=n}return i!==0?t.words[d]=i:t.length--,t.strip()}function Ae(l,e,t){var i=new we;return i.mulp(l,e,t)}a.prototype.mulTo=function(e,t){var i,n=this.length+e.length;return this.length===10&&e.length===10?i=ye(this,e,t):n<63?i=be(this,e,t):n<1024?i=_e(this,e,t):i=Ae(this,e,t),i};function we(l,e){this.x=l,this.y=e}we.prototype.makeRBT=function(e){for(var t=new Array(e),i=a.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,i,e);return t},we.prototype.revBin=function(e,t,i){if(e===0||e===i-1)return e;for(var n=0,d=0;d<t;d++)n|=(e&1)<<t-d-1,e>>=1;return n},we.prototype.permute=function(e,t,i,n,d,m){for(var se=0;se<m;se++)n[se]=t[e[se]],d[se]=i[e[se]]},we.prototype.transform=function(e,t,i,n,d,m){this.permute(m,e,t,i,n,d);for(var se=1;se<d;se<<=1)for(var s=se<<1,r=Math.cos(2*Math.PI/s),o=Math.sin(2*Math.PI/s),Ce=0;Ce<d;Ce+=s)for(var De=r,ke=o,Ue=0;Ue<se;Ue++){var Pe=i[Ce+Ue],qe=n[Ce+Ue],Ie=i[Ce+Ue+se],Oe=n[Ce+Ue+se],ze=De*Ie-ke*Oe;Oe=De*Oe+ke*Ie,Ie=ze,i[Ce+Ue]=Pe+Ie,n[Ce+Ue]=qe+Oe,i[Ce+Ue+se]=Pe-Ie,n[Ce+Ue+se]=qe-Oe,Ue!==s&&(ze=r*De-o*ke,ke=r*ke+o*De,De=ze)}},we.prototype.guessLen13b=function(e,t){var i=Math.max(t,e)|1,n=i&1,d=0;for(i=i/2|0;i;i=i>>>1)d++;return 1<<d+1+n},we.prototype.conjugate=function(e,t,i){if(!(i<=1))for(var n=0;n<i/2;n++){var d=e[n];e[n]=e[i-n-1],e[i-n-1]=d,d=t[n],t[n]=-t[i-n-1],t[i-n-1]=-d}},we.prototype.normalize13b=function(e,t){for(var i=0,n=0;n<t/2;n++){var d=Math.round(e[2*n+1]/t)*8192+Math.round(e[2*n]/t)+i;e[n]=d&67108863,d<67108864?i=0:i=d/67108864|0}return e},we.prototype.convert13b=function(e,t,i,n){for(var d=0,m=0;m<t;m++)d=d+(e[m]|0),i[2*m]=d&8191,d=d>>>13,i[2*m+1]=d&8191,d=d>>>13;for(m=2*t;m<n;++m)i[m]=0;he(d===0),he((d&-8192)===0)},we.prototype.stub=function(e){for(var t=new Array(e),i=0;i<e;i++)t[i]=0;return t},we.prototype.mulp=function(e,t,i){var n=2*this.guessLen13b(e.length,t.length),d=this.makeRBT(n),m=this.stub(n),se=new Array(n),s=new Array(n),r=new Array(n),o=new Array(n),Ce=new Array(n),De=new Array(n),ke=i.words;ke.length=n,this.convert13b(e.words,e.length,se,n),this.convert13b(t.words,t.length,o,n),this.transform(se,m,s,r,n,d),this.transform(o,m,Ce,De,n,d);for(var Ue=0;Ue<n;Ue++){var Pe=s[Ue]*Ce[Ue]-r[Ue]*De[Ue];r[Ue]=s[Ue]*De[Ue]+r[Ue]*Ce[Ue],s[Ue]=Pe}return this.conjugate(s,r,n),this.transform(s,r,ke,m,n,d),this.conjugate(ke,m,n),this.normalize13b(ke,n),i.negative=e.negative^t.negative,i.length=e.length+t.length,i.strip()},a.prototype.mul=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},a.prototype.mulf=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),Ae(this,e,t)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){he(typeof e=="number"),he(e<67108864);for(var t=0,i=0;i<this.length;i++){var n=(this.words[i]|0)*e,d=(n&67108863)+(t&67108863);t>>=26,t+=n/67108864|0,t+=d>>>26,this.words[i]=d&67108863}return t!==0&&(this.words[i]=t,this.length++),this.length=e===0?1:this.length,this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=me(e);if(t.length===0)return new a(1);for(var i=this,n=0;n<t.length&&t[n]===0;n++,i=i.sqr());if(++n<t.length)for(var d=i.sqr();n<t.length;n++,d=d.sqr())t[n]!==0&&(i=i.mul(d));return i},a.prototype.iushln=function(e){he(typeof e=="number"&&e>=0);var t=e%26,i=(e-t)/26,n=67108863>>>26-t<<26-t,d;if(t!==0){var m=0;for(d=0;d<this.length;d++){var se=this.words[d]&n,s=(this.words[d]|0)-se<<t;this.words[d]=s|m,m=se>>>26-t}m&&(this.words[d]=m,this.length++)}if(i!==0){for(d=this.length-1;d>=0;d--)this.words[d+i]=this.words[d];for(d=0;d<i;d++)this.words[d]=0;this.length+=i}return this.strip()},a.prototype.ishln=function(e){return he(this.negative===0),this.iushln(e)},a.prototype.iushrn=function(e,t,i){he(typeof e=="number"&&e>=0);var n;t?n=(t-t%26)/26:n=0;var d=e%26,m=Math.min((e-d)/26,this.length),se=67108863^67108863>>>d<<d,s=i;if(n-=m,n=Math.max(0,n),s){for(var r=0;r<m;r++)s.words[r]=this.words[r];s.length=m}if(m!==0)if(this.length>m)for(this.length-=m,r=0;r<this.length;r++)this.words[r]=this.words[r+m];else this.words[0]=0,this.length=1;var o=0;for(r=this.length-1;r>=0&&(o!==0||r>=n);r--){var Ce=this.words[r]|0;this.words[r]=o<<26-d|Ce>>>d,o=Ce&se}return s&&o!==0&&(s.words[s.length++]=o),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,i){return he(this.negative===0),this.iushrn(e,t,i)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){he(typeof e=="number"&&e>=0);var t=e%26,i=(e-t)/26,n=1<<t;if(this.length<=i)return!1;var d=this.words[i];return!!(d&n)},a.prototype.imaskn=function(e){he(typeof e=="number"&&e>=0);var t=e%26,i=(e-t)/26;if(he(this.negative===0,"imaskn works only with positive numbers"),this.length<=i)return this;if(t!==0&&i++,this.length=Math.min(i,this.length),t!==0){var n=67108863^67108863>>>t<<t;this.words[this.length-1]&=n}return this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return he(typeof e=="number"),he(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(this.words[0]|0)<e?(this.words[0]=e-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(he(typeof e=="number"),he(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,t,i){var n=e.length+i,d;this._expand(n);var m,se=0;for(d=0;d<e.length;d++){m=(this.words[d+i]|0)+se;var s=(e.words[d]|0)*t;m-=s&67108863,se=(m>>26)-(s/67108864|0),this.words[d+i]=m&67108863}for(;d<this.length-i;d++)m=(this.words[d+i]|0)+se,se=m>>26,this.words[d+i]=m&67108863;if(se===0)return this.strip();for(he(se===-1),se=0,d=0;d<this.length;d++)m=-(this.words[d]|0)+se,se=m>>26,this.words[d]=m&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var i=this.length-e.length,n=this.clone(),d=e,m=d.words[d.length-1]|0,se=this._countBits(m);i=26-se,i!==0&&(d=d.ushln(i),n.iushln(i),m=d.words[d.length-1]|0);var s=n.length-d.length,r;if(t!=="mod"){r=new a(null),r.length=s+1,r.words=new Array(r.length);for(var o=0;o<r.length;o++)r.words[o]=0}var Ce=n.clone()._ishlnsubmul(d,1,s);Ce.negative===0&&(n=Ce,r&&(r.words[s]=1));for(var De=s-1;De>=0;De--){var ke=(n.words[d.length+De]|0)*67108864+(n.words[d.length+De-1]|0);for(ke=Math.min(ke/m|0,67108863),n._ishlnsubmul(d,ke,De);n.negative!==0;)ke--,n.negative=0,n._ishlnsubmul(d,1,De),n.isZero()||(n.negative^=1);r&&(r.words[De]=ke)}return r&&r.strip(),n.strip(),t!=="div"&&i!==0&&n.iushrn(i),{div:r||null,mod:n}},a.prototype.divmod=function(e,t,i){if(he(!e.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var n,d,m;return this.negative!==0&&e.negative===0?(m=this.neg().divmod(e,t),t!=="mod"&&(n=m.div.neg()),t!=="div"&&(d=m.mod.neg(),i&&d.negative!==0&&d.iadd(e)),{div:n,mod:d}):this.negative===0&&e.negative!==0?(m=this.divmod(e.neg(),t),t!=="mod"&&(n=m.div.neg()),{div:n,mod:m.mod}):(this.negative&e.negative)!==0?(m=this.neg().divmod(e.neg(),t),t!=="div"&&(d=m.mod.neg(),i&&d.negative!==0&&d.isub(e)),{div:m.div,mod:d}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:e.length===1?t==="div"?{div:this.divn(e.words[0]),mod:null}:t==="mod"?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=t.div.negative!==0?t.mod.isub(e):t.mod,n=e.ushrn(1),d=e.andln(1),m=i.cmp(n);return m<0||d===1&&m===0?t.div:t.div.negative!==0?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){he(e<=67108863);for(var t=(1<<26)%e,i=0,n=this.length-1;n>=0;n--)i=(t*i+(this.words[n]|0))%e;return i},a.prototype.idivn=function(e){he(e<=67108863);for(var t=0,i=this.length-1;i>=0;i--){var n=(this.words[i]|0)+t*67108864;this.words[i]=n/e|0,t=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){he(e.negative===0),he(!e.isZero());var t=this,i=e.clone();t.negative!==0?t=t.umod(e):t=t.clone();for(var n=new a(1),d=new a(0),m=new a(0),se=new a(1),s=0;t.isEven()&&i.isEven();)t.iushrn(1),i.iushrn(1),++s;for(var r=i.clone(),o=t.clone();!t.isZero();){for(var Ce=0,De=1;(t.words[0]&De)===0&&Ce<26;++Ce,De<<=1);if(Ce>0)for(t.iushrn(Ce);Ce-- >0;)(n.isOdd()||d.isOdd())&&(n.iadd(r),d.isub(o)),n.iushrn(1),d.iushrn(1);for(var ke=0,Ue=1;(i.words[0]&Ue)===0&&ke<26;++ke,Ue<<=1);if(ke>0)for(i.iushrn(ke);ke-- >0;)(m.isOdd()||se.isOdd())&&(m.iadd(r),se.isub(o)),m.iushrn(1),se.iushrn(1);t.cmp(i)>=0?(t.isub(i),n.isub(m),d.isub(se)):(i.isub(t),m.isub(n),se.isub(d))}return{a:m,b:se,gcd:i.iushln(s)}},a.prototype._invmp=function(e){he(e.negative===0),he(!e.isZero());var t=this,i=e.clone();t.negative!==0?t=t.umod(e):t=t.clone();for(var n=new a(1),d=new a(0),m=i.clone();t.cmpn(1)>0&&i.cmpn(1)>0;){for(var se=0,s=1;(t.words[0]&s)===0&&se<26;++se,s<<=1);if(se>0)for(t.iushrn(se);se-- >0;)n.isOdd()&&n.iadd(m),n.iushrn(1);for(var r=0,o=1;(i.words[0]&o)===0&&r<26;++r,o<<=1);if(r>0)for(i.iushrn(r);r-- >0;)d.isOdd()&&d.iadd(m),d.iushrn(1);t.cmp(i)>=0?(t.isub(i),n.isub(d)):(i.isub(t),d.isub(n))}var Ce;return t.cmpn(1)===0?Ce=n:Ce=d,Ce.cmpn(0)<0&&Ce.iadd(e),Ce},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var n=0;t.isEven()&&i.isEven();n++)t.iushrn(1),i.iushrn(1);do{for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var d=t.cmp(i);if(d<0){var m=t;t=i,i=m}else if(d===0||i.cmpn(1)===0)break;t.isub(i)}while(!0);return i.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){he(typeof e=="number");var t=e%26,i=(e-t)/26,n=1<<t;if(this.length<=i)return this._expand(i+1),this.words[i]|=n,this;for(var d=n,m=i;d!==0&&m<this.length;m++){var se=this.words[m]|0;se+=d,d=se>>>26,se&=67108863,this.words[m]=se}return d!==0&&(this.words[m]=d,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(e){var t=e<0;if(this.negative!==0&&!t)return-1;if(this.negative===0&&t)return 1;this.strip();var i;if(this.length>1)i=1;else{t&&(e=-e),he(e<=67108863,"Number is too big");var n=this.words[0]|0;i=n===e?0:n<e?-1:1}return this.negative!==0?-i|0:i},a.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var t=this.ucmp(e);return this.negative!==0?-t|0:t},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,i=this.length-1;i>=0;i--){var n=this.words[i]|0,d=e.words[i]|0;if(n!==d){n<d?t=-1:n>d&&(t=1);break}}return t},a.prototype.gtn=function(e){return this.cmpn(e)===1},a.prototype.gt=function(e){return this.cmp(e)===1},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return this.cmpn(e)===-1},a.prototype.lt=function(e){return this.cmp(e)===-1},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return this.cmpn(e)===0},a.prototype.eq=function(e){return this.cmp(e)===0},a.red=function(e){return new Ne(e)},a.prototype.toRed=function(e){return he(!this.red,"Already a number in reduction context"),he(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return he(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return he(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return he(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return he(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return he(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return he(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return he(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return he(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return he(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return he(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return he(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return he(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return he(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return he(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return he(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var Re={k256:null,p224:null,p192:null,p25519:null};function Se(l,e){this.name=l,this.p=new a(e,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Se.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},Se.prototype.ireduce=function(e){var t=e,i;do this.split(t,this.tmp),t=this.imulK(t),t=t.iadd(this.tmp),i=t.bitLength();while(i>this.n);var n=i<this.n?-1:t.ucmp(this.p);return n===0?(t.words[0]=0,t.length=1):n>0?t.isub(this.p):t.strip!==void 0?t.strip():t._strip(),t},Se.prototype.split=function(e,t){e.iushrn(this.n,0,t)},Se.prototype.imulK=function(e){return e.imul(this.k)};function $e(){Se.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}Me($e,Se),$e.prototype.split=function(e,t){for(var i=4194303,n=Math.min(e.length,9),d=0;d<n;d++)t.words[d]=e.words[d];if(t.length=n,e.length<=9){e.words[0]=0,e.length=1;return}var m=e.words[9];for(t.words[t.length++]=m&i,d=10;d<e.length;d++){var se=e.words[d]|0;e.words[d-10]=(se&i)<<4|m>>>22,m=se}m>>>=22,e.words[d-10]=m,m===0&&e.length>10?e.length-=10:e.length-=9},$e.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i<e.length;i++){var n=e.words[i]|0;t+=n*977,e.words[i]=t&67108863,t=n*64+(t/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function Te(){Se.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}Me(Te,Se);function We(){Se.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}Me(We,Se);function Ze(){Se.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}Me(Ze,Se),Ze.prototype.imulK=function(e){for(var t=0,i=0;i<e.length;i++){var n=(e.words[i]|0)*19+t,d=n&67108863;n>>>=26,e.words[i]=d,t=n}return t!==0&&(e.words[e.length++]=t),e},a._prime=function(e){if(Re[e])return Re[e];var t;if(e==="k256")t=new $e;else if(e==="p224")t=new Te;else if(e==="p192")t=new We;else if(e==="p25519")t=new Ze;else throw new Error("Unknown prime "+e);return Re[e]=t,t};function Ne(l){if(typeof l=="string"){var e=a._prime(l);this.m=e.p,this.prime=e}else he(l.gtn(1),"modulus must be greater than 1"),this.m=l,this.prime=null}Ne.prototype._verify1=function(e){he(e.negative===0,"red works only with positives"),he(e.red,"red works only with red numbers")},Ne.prototype._verify2=function(e,t){he((e.negative|t.negative)===0,"red works only with positives"),he(e.red&&e.red===t.red,"red works only with red numbers")},Ne.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},Ne.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},Ne.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},Ne.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},Ne.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},Ne.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},Ne.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},Ne.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},Ne.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},Ne.prototype.isqr=function(e){return this.imul(e,e.clone())},Ne.prototype.sqr=function(e){return this.mul(e,e)},Ne.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(he(t%2===1),t===3){var i=this.m.add(new a(1)).iushrn(2);return this.pow(e,i)}for(var n=this.m.subn(1),d=0;!n.isZero()&&n.andln(1)===0;)d++,n.iushrn(1);he(!n.isZero());var m=new a(1).toRed(this),se=m.redNeg(),s=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new a(2*r*r).toRed(this);this.pow(r,s).cmp(se)!==0;)r.redIAdd(se);for(var o=this.pow(r,n),Ce=this.pow(e,n.addn(1).iushrn(1)),De=this.pow(e,n),ke=d;De.cmp(m)!==0;){for(var Ue=De,Pe=0;Ue.cmp(m)!==0;Pe++)Ue=Ue.redSqr();he(Pe<ke);var qe=this.pow(o,new a(1).iushln(ke-Pe-1));Ce=Ce.redMul(qe),o=qe.redSqr(),De=De.redMul(o),ke=Pe}return Ce},Ne.prototype.invm=function(e){var t=e._invmp(this.m);return t.negative!==0?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},Ne.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(t.cmpn(1)===0)return e.clone();var i=4,n=new Array(1<<i);n[0]=new a(1).toRed(this),n[1]=e;for(var d=2;d<n.length;d++)n[d]=this.mul(n[d-1],e);var m=n[0],se=0,s=0,r=t.bitLength()%26;for(r===0&&(r=26),d=t.length-1;d>=0;d--){for(var o=t.words[d],Ce=r-1;Ce>=0;Ce--){var De=o>>Ce&1;if(m!==n[0]&&(m=this.sqr(m)),De===0&&se===0){s=0;continue}se<<=1,se|=De,s++,!(s!==i&&(d!==0||Ce!==0))&&(m=this.mul(m,n[se]),s=0,se=0)}r=26}return m},Ne.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},Ne.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new Ke(e)};function Ke(l){Ne.call(this,l),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}Me(Ke,Ne),Ke.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},Ke.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},Ke.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),d=i.isub(n).iushrn(this.shift),m=d;return d.cmp(this.m)>=0?m=d.isub(this.m):d.cmpn(0)<0&&(m=d.iadd(this.m)),m._forceRed(this)},Ke.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var i=e.mul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),d=i.isub(n).iushrn(this.shift),m=d;return d.cmp(this.m)>=0?m=d.isub(this.m):d.cmpn(0)<0&&(m=d.iadd(this.m)),m._forceRed(this)},Ke.prototype.invm=function(e){var t=this.imod(e._invmp(this.m).mul(this.r2));return t._forceRed(this)}})(ge,bn$4)})(bn$5)),bn$5.exports}var api={},vmBrowserify={},hasRequiredVmBrowserify;function requireVmBrowserify(){return hasRequiredVmBrowserify||(hasRequiredVmBrowserify=1,(function(exports){var indexOf=function(ge,Ee){if(ge.indexOf)return ge.indexOf(Ee);for(var Be=0;Be<ge.length;Be++)if(ge[Be]===Ee)return Be;return-1},Object_keys=function(ge){if(Object.keys)return Object.keys(ge);var Ee=[];for(var Be in ge)Ee.push(Be);return Ee},forEach=function(ge,Ee){if(ge.forEach)return ge.forEach(Ee);for(var Be=0;Be<ge.length;Be++)Ee(ge[Be],Be,ge)},defineProp=(function(){try{return Object.defineProperty({},"_",{}),function(ge,Ee,Be){Object.defineProperty(ge,Ee,{writable:!0,enumerable:!1,configurable:!0,value:Be})}}catch{return function(Ee,Be,he){Ee[Be]=he}}})(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(Ee){if(!(this instanceof Script))return new Script(Ee);this.code=Ee};Script.prototype.runInContext=function(ge){if(!(ge instanceof Context))throw new TypeError("needs a 'context' argument.");var Ee=document.createElement("iframe");Ee.style||(Ee.style={}),Ee.style.display="none",document.body.appendChild(Ee);var Be=Ee.contentWindow,he=Be.eval,Me=Be.execScript;!he&&Me&&(Me.call(Be,"null"),he=Be.eval),forEach(Object_keys(ge),function(pe){Be[pe]=ge[pe]}),forEach(globals,function(pe){ge[pe]&&(Be[pe]=ge[pe])});var a=Object_keys(Be),xe=he.call(Be,this.code);return forEach(Object_keys(Be),function(pe){(pe in ge||indexOf(a,pe)===-1)&&(ge[pe]=Be[pe])}),forEach(globals,function(pe){pe in ge||defineProp(ge,pe,Be[pe])}),document.body.removeChild(Ee),xe},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(ge){var Ee=Script.createContext(ge),Be=this.runInContext(Ee);return ge&&forEach(Object_keys(Ee),function(he){ge[he]=Ee[he]}),Be},forEach(Object_keys(Script.prototype),function(ge){exports[ge]=Script[ge]=function(Ee){var Be=Script(Ee);return Be[ge].apply(Be,[].slice.call(arguments,1))}}),exports.isContext=function(ge){return ge instanceof Context},exports.createScript=function(ge){return exports.Script(ge)},exports.createContext=Script.createContext=function(ge){var Ee=new Context;return typeof ge=="object"&&forEach(Object_keys(ge),function(Be){Ee[Be]=ge[Be]}),Ee}})(vmBrowserify)),vmBrowserify}var hasRequiredApi;function requireApi(){return hasRequiredApi||(hasRequiredApi=1,(function(ge){var Ee=requireAsn1$1(),Be=requireInherits_browser(),he=ge;he.define=function(xe,pe){return new Me(xe,pe)};function Me(a,xe){this.name=a,this.body=xe,this.decoders={},this.encoders={}}Me.prototype._createNamed=function(xe){var pe;try{pe=requireVmBrowserify().runInThisContext("(function "+this.name+`(entity) {
|
|
3
3
|
this._initNamed(entity);
|
|
4
4
|
})`)}catch{pe=function(fe){this._initNamed(fe)}}return Be(pe,xe),pe.prototype._initNamed=function(fe){xe.call(this,fe)},new pe(this)},Me.prototype._getDecoder=function(xe){return xe=xe||"der",this.decoders.hasOwnProperty(xe)||(this.decoders[xe]=this._createNamed(Ee.decoders[xe])),this.decoders[xe]},Me.prototype.decode=function(xe,pe,ve){return this._getDecoder(pe).decode(xe,ve)},Me.prototype._getEncoder=function(xe){return xe=xe||"der",this.encoders.hasOwnProperty(xe)||(this.encoders[xe]=this._createNamed(Ee.encoders[xe])),this.encoders[xe]},Me.prototype.encode=function(xe,pe,ve){return this._getEncoder(pe).encode(xe,ve)}})(api)),api}var base={},reporter={},hasRequiredReporter;function requireReporter(){if(hasRequiredReporter)return reporter;hasRequiredReporter=1;var ge=requireInherits_browser();function Ee(he){this._reporterState={obj:null,path:[],options:he||{},errors:[]}}reporter.Reporter=Ee,Ee.prototype.isError=function(Me){return Me instanceof Be},Ee.prototype.save=function(){var Me=this._reporterState;return{obj:Me.obj,pathLen:Me.path.length}},Ee.prototype.restore=function(Me){var a=this._reporterState;a.obj=Me.obj,a.path=a.path.slice(0,Me.pathLen)},Ee.prototype.enterKey=function(Me){return this._reporterState.path.push(Me)},Ee.prototype.exitKey=function(Me){var a=this._reporterState;a.path=a.path.slice(0,Me-1)},Ee.prototype.leaveKey=function(Me,a,xe){var pe=this._reporterState;this.exitKey(Me),pe.obj!==null&&(pe.obj[a]=xe)},Ee.prototype.path=function(){return this._reporterState.path.join("/")},Ee.prototype.enterObject=function(){var Me=this._reporterState,a=Me.obj;return Me.obj={},a},Ee.prototype.leaveObject=function(Me){var a=this._reporterState,xe=a.obj;return a.obj=Me,xe},Ee.prototype.error=function(Me){var a,xe=this._reporterState,pe=Me instanceof Be;if(pe?a=Me:a=new Be(xe.path.map(function(ve){return"["+JSON.stringify(ve)+"]"}).join(""),Me.message||Me,Me.stack),!xe.options.partial)throw a;return pe||xe.errors.push(a),a},Ee.prototype.wrapResult=function(Me){var a=this._reporterState;return a.options.partial?{result:this.isError(Me)?null:Me,errors:a.errors}:Me};function Be(he,Me){this.path=he,this.rethrow(Me)}return ge(Be,Error),Be.prototype.rethrow=function(Me){if(this.message=Me+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,Be),!this.stack)try{throw new Error(this.message)}catch(a){this.stack=a.stack}return this},reporter}var buffer={},hasRequiredBuffer;function requireBuffer(){if(hasRequiredBuffer)return buffer;hasRequiredBuffer=1;var ge=requireInherits_browser(),Ee=requireBase().Reporter,Be=requireDist().Buffer;function he(a,xe){if(Ee.call(this,xe),!Be.isBuffer(a)){this.error("Input not Buffer");return}this.base=a,this.offset=0,this.length=a.length}ge(he,Ee),buffer.DecoderBuffer=he,he.prototype.save=function(){return{offset:this.offset,reporter:Ee.prototype.save.call(this)}},he.prototype.restore=function(xe){var pe=new he(this.base);return pe.offset=xe.offset,pe.length=this.offset,this.offset=xe.offset,Ee.prototype.restore.call(this,xe.reporter),pe},he.prototype.isEmpty=function(){return this.offset===this.length},he.prototype.readUInt8=function(xe){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(xe||"DecoderBuffer overrun")},he.prototype.skip=function(xe,pe){if(!(this.offset+xe<=this.length))return this.error(pe||"DecoderBuffer overrun");var ve=new he(this.base);return ve._reporterState=this._reporterState,ve.offset=this.offset,ve.length=this.offset+xe,this.offset+=xe,ve},he.prototype.raw=function(xe){return this.base.slice(xe?xe.offset:this.offset,this.length)};function Me(a,xe){if(Array.isArray(a))this.length=0,this.value=a.map(function(pe){return pe instanceof Me||(pe=new Me(pe,xe)),this.length+=pe.length,pe},this);else if(typeof a=="number"){if(!(0<=a&&a<=255))return xe.error("non-byte EncoderBuffer value");this.value=a,this.length=1}else if(typeof a=="string")this.value=a,this.length=Be.byteLength(a);else if(Be.isBuffer(a))this.value=a,this.length=a.length;else return xe.error("Unsupported type: "+typeof a)}return buffer.EncoderBuffer=Me,Me.prototype.join=function(xe,pe){return xe||(xe=new Be(this.length)),pe||(pe=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(ve){ve.join(xe,pe),pe+=ve.length}):(typeof this.value=="number"?xe[pe]=this.value:typeof this.value=="string"?xe.write(this.value,pe):Be.isBuffer(this.value)&&this.value.copy(xe,pe),pe+=this.length)),xe},buffer}var node,hasRequiredNode;function requireNode(){if(hasRequiredNode)return node;hasRequiredNode=1;var ge=requireBase().Reporter,Ee=requireBase().EncoderBuffer,Be=requireBase().DecoderBuffer,he=requireMinimalisticAssert(),Me=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],a=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(Me),xe=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function pe(fe,c){var ue={};this._baseState=ue,ue.enc=fe,ue.parent=c||null,ue.children=null,ue.tag=null,ue.args=null,ue.reverseArgs=null,ue.choice=null,ue.optional=!1,ue.any=!1,ue.obj=!1,ue.use=null,ue.useDecoder=null,ue.key=null,ue.default=null,ue.explicit=null,ue.implicit=null,ue.contains=null,ue.parent||(ue.children=[],this._wrap())}node=pe;var ve=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];return pe.prototype.clone=function(){var c=this._baseState,ue={};ve.forEach(function(me){ue[me]=c[me]});var de=new this.constructor(ue.parent);return de._baseState=ue,de},pe.prototype._wrap=function(){var c=this._baseState;a.forEach(function(ue){this[ue]=function(){var me=new this.constructor(this);return c.children.push(me),me[ue].apply(me,arguments)}},this)},pe.prototype._init=function(c){var ue=this._baseState;he(ue.parent===null),c.call(this),ue.children=ue.children.filter(function(de){return de._baseState.parent===this},this),he.equal(ue.children.length,1,"Root node can have only one child")},pe.prototype._useArgs=function(c){var ue=this._baseState,de=c.filter(function(me){return me instanceof this.constructor},this);c=c.filter(function(me){return!(me instanceof this.constructor)},this),de.length!==0&&(he(ue.children===null),ue.children=de,de.forEach(function(me){me._baseState.parent=this},this)),c.length!==0&&(he(ue.args===null),ue.args=c,ue.reverseArgs=c.map(function(me){if(typeof me!="object"||me.constructor!==Object)return me;var be={};return Object.keys(me).forEach(function(ye){ye==(ye|0)&&(ye|=0);var _e=me[ye];be[_e]=ye}),be}))},xe.forEach(function(fe){pe.prototype[fe]=function(){var ue=this._baseState;throw new Error(fe+" not implemented for encoding: "+ue.enc)}}),Me.forEach(function(fe){pe.prototype[fe]=function(){var ue=this._baseState,de=Array.prototype.slice.call(arguments);return he(ue.tag===null),ue.tag=fe,this._useArgs(de),this}}),pe.prototype.use=function(c){he(c);var ue=this._baseState;return he(ue.use===null),ue.use=c,this},pe.prototype.optional=function(){var c=this._baseState;return c.optional=!0,this},pe.prototype.def=function(c){var ue=this._baseState;return he(ue.default===null),ue.default=c,ue.optional=!0,this},pe.prototype.explicit=function(c){var ue=this._baseState;return he(ue.explicit===null&&ue.implicit===null),ue.explicit=c,this},pe.prototype.implicit=function(c){var ue=this._baseState;return he(ue.explicit===null&&ue.implicit===null),ue.implicit=c,this},pe.prototype.obj=function(){var c=this._baseState,ue=Array.prototype.slice.call(arguments);return c.obj=!0,ue.length!==0&&this._useArgs(ue),this},pe.prototype.key=function(c){var ue=this._baseState;return he(ue.key===null),ue.key=c,this},pe.prototype.any=function(){var c=this._baseState;return c.any=!0,this},pe.prototype.choice=function(c){var ue=this._baseState;return he(ue.choice===null),ue.choice=c,this._useArgs(Object.keys(c).map(function(de){return c[de]})),this},pe.prototype.contains=function(c){var ue=this._baseState;return he(ue.use===null),ue.contains=c,this},pe.prototype._decode=function(c,ue){var de=this._baseState;if(de.parent===null)return c.wrapResult(de.children[0]._decode(c,ue));var me=de.default,be=!0,ye=null;if(de.key!==null&&(ye=c.enterKey(de.key)),de.optional){var _e=null;if(de.explicit!==null?_e=de.explicit:de.implicit!==null?_e=de.implicit:de.tag!==null&&(_e=de.tag),_e===null&&!de.any){var Ae=c.save();try{de.choice===null?this._decodeGeneric(de.tag,c,ue):this._decodeChoice(c,ue),be=!0}catch{be=!1}c.restore(Ae)}else if(be=this._peekTag(c,_e,de.any),c.isError(be))return be}var we;if(de.obj&&be&&(we=c.enterObject()),be){if(de.explicit!==null){var Re=this._decodeTag(c,de.explicit);if(c.isError(Re))return Re;c=Re}var Se=c.offset;if(de.use===null&&de.choice===null){if(de.any)var Ae=c.save();var $e=this._decodeTag(c,de.implicit!==null?de.implicit:de.tag,de.any);if(c.isError($e))return $e;de.any?me=c.raw(Ae):c=$e}if(ue&&ue.track&&de.tag!==null&&ue.track(c.path(),Se,c.length,"tagged"),ue&&ue.track&&de.tag!==null&&ue.track(c.path(),c.offset,c.length,"content"),de.any?me=me:de.choice===null?me=this._decodeGeneric(de.tag,c,ue):me=this._decodeChoice(c,ue),c.isError(me))return me;if(!de.any&&de.choice===null&&de.children!==null&&de.children.forEach(function(Ze){Ze._decode(c,ue)}),de.contains&&(de.tag==="octstr"||de.tag==="bitstr")){var Te=new Be(me);me=this._getUse(de.contains,c._reporterState.obj)._decode(Te,ue)}}return de.obj&&be&&(me=c.leaveObject(we)),de.key!==null&&(me!==null||be===!0)?c.leaveKey(ye,de.key,me):ye!==null&&c.exitKey(ye),me},pe.prototype._decodeGeneric=function(c,ue,de){var me=this._baseState;return c==="seq"||c==="set"?null:c==="seqof"||c==="setof"?this._decodeList(ue,c,me.args[0],de):/str$/.test(c)?this._decodeStr(ue,c,de):c==="objid"&&me.args?this._decodeObjid(ue,me.args[0],me.args[1],de):c==="objid"?this._decodeObjid(ue,null,null,de):c==="gentime"||c==="utctime"?this._decodeTime(ue,c,de):c==="null_"?this._decodeNull(ue,de):c==="bool"?this._decodeBool(ue,de):c==="objDesc"?this._decodeStr(ue,c,de):c==="int"||c==="enum"?this._decodeInt(ue,me.args&&me.args[0],de):me.use!==null?this._getUse(me.use,ue._reporterState.obj)._decode(ue,de):ue.error("unknown tag: "+c)},pe.prototype._getUse=function(c,ue){var de=this._baseState;return de.useDecoder=this._use(c,ue),he(de.useDecoder._baseState.parent===null),de.useDecoder=de.useDecoder._baseState.children[0],de.implicit!==de.useDecoder._baseState.implicit&&(de.useDecoder=de.useDecoder.clone(),de.useDecoder._baseState.implicit=de.implicit),de.useDecoder},pe.prototype._decodeChoice=function(c,ue){var de=this._baseState,me=null,be=!1;return Object.keys(de.choice).some(function(ye){var _e=c.save(),Ae=de.choice[ye];try{var we=Ae._decode(c,ue);if(c.isError(we))return!1;me={type:ye,value:we},be=!0}catch{return c.restore(_e),!1}return!0},this),be?me:c.error("Choice not matched")},pe.prototype._createEncoderBuffer=function(c){return new Ee(c,this.reporter)},pe.prototype._encode=function(c,ue,de){var me=this._baseState;if(!(me.default!==null&&me.default===c)){var be=this._encodeValue(c,ue,de);if(be!==void 0&&!this._skipDefault(be,ue,de))return be}},pe.prototype._encodeValue=function(c,ue,de){var me=this._baseState;if(me.parent===null)return me.children[0]._encode(c,ue||new ge);var Ae=null;if(this.reporter=ue,me.optional&&c===void 0)if(me.default!==null)c=me.default;else return;var be=null,ye=!1;if(me.any)Ae=this._createEncoderBuffer(c);else if(me.choice)Ae=this._encodeChoice(c,ue);else if(me.contains)be=this._getUse(me.contains,de)._encode(c,ue),ye=!0;else if(me.children)be=me.children.map(function(Se){if(Se._baseState.tag==="null_")return Se._encode(null,ue,c);if(Se._baseState.key===null)return ue.error("Child should have a key");var $e=ue.enterKey(Se._baseState.key);if(typeof c!="object")return ue.error("Child expected, but input is not object");var Te=Se._encode(c[Se._baseState.key],ue,c);return ue.leaveKey($e),Te},this).filter(function(Se){return Se}),be=this._createEncoderBuffer(be);else if(me.tag==="seqof"||me.tag==="setof"){if(!(me.args&&me.args.length===1))return ue.error("Too many args for : "+me.tag);if(!Array.isArray(c))return ue.error("seqof/setof, but data is not Array");var _e=this.clone();_e._baseState.implicit=null,be=this._createEncoderBuffer(c.map(function(Se){var $e=this._baseState;return this._getUse($e.args[0],c)._encode(Se,ue)},_e))}else me.use!==null?Ae=this._getUse(me.use,de)._encode(c,ue):(be=this._encodePrimitive(me.tag,c),ye=!0);var Ae;if(!me.any&&me.choice===null){var we=me.implicit!==null?me.implicit:me.tag,Re=me.implicit===null?"universal":"context";we===null?me.use===null&&ue.error("Tag could be omitted only for .use()"):me.use===null&&(Ae=this._encodeComposite(we,ye,Re,be))}return me.explicit!==null&&(Ae=this._encodeComposite(me.explicit,!1,"context",Ae)),Ae},pe.prototype._encodeChoice=function(c,ue){var de=this._baseState,me=de.choice[c.type];return me||he(!1,c.type+" not found in "+JSON.stringify(Object.keys(de.choice))),me._encode(c.value,ue)},pe.prototype._encodePrimitive=function(c,ue){var de=this._baseState;if(/str$/.test(c))return this._encodeStr(ue,c);if(c==="objid"&&de.args)return this._encodeObjid(ue,de.reverseArgs[0],de.args[1]);if(c==="objid")return this._encodeObjid(ue,null,null);if(c==="gentime"||c==="utctime")return this._encodeTime(ue,c);if(c==="null_")return this._encodeNull();if(c==="int"||c==="enum")return this._encodeInt(ue,de.args&&de.reverseArgs[0]);if(c==="bool")return this._encodeBool(ue);if(c==="objDesc")return this._encodeStr(ue,c);throw new Error("Unsupported tag: "+c)},pe.prototype._isNumstr=function(c){return/^[0-9 ]*$/.test(c)},pe.prototype._isPrintstr=function(c){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(c)},node}var hasRequiredBase;function requireBase(){return hasRequiredBase||(hasRequiredBase=1,(function(ge){var Ee=ge;Ee.Reporter=requireReporter().Reporter,Ee.DecoderBuffer=requireBuffer().DecoderBuffer,Ee.EncoderBuffer=requireBuffer().EncoderBuffer,Ee.Node=requireNode()})(base)),base}var constants={},der={},hasRequiredDer$2;function requireDer$2(){return hasRequiredDer$2||(hasRequiredDer$2=1,(function(ge){var Ee=requireConstants();ge.tagClass={0:"universal",1:"application",2:"context",3:"private"},ge.tagClassByName=Ee._reverse(ge.tagClass),ge.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},ge.tagByName=Ee._reverse(ge.tag)})(der)),der}var hasRequiredConstants;function requireConstants(){return hasRequiredConstants||(hasRequiredConstants=1,(function(ge){var Ee=ge;Ee._reverse=function(he){var Me={};return Object.keys(he).forEach(function(a){(a|0)==a&&(a=a|0);var xe=he[a];Me[xe]=a}),Me},Ee.der=requireDer$2()})(constants)),constants}var decoders={},der_1$1,hasRequiredDer$1;function requireDer$1(){if(hasRequiredDer$1)return der_1$1;hasRequiredDer$1=1;var ge=requireInherits_browser(),Ee=requireAsn1$1(),Be=Ee.base,he=Ee.bignum,Me=Ee.constants.der;function a(fe){this.enc="der",this.name=fe.name,this.entity=fe,this.tree=new xe,this.tree._init(fe.body)}der_1$1=a,a.prototype.decode=function(c,ue){return c instanceof Be.DecoderBuffer||(c=new Be.DecoderBuffer(c,ue)),this.tree._decode(c,ue)};function xe(fe){Be.Node.call(this,"der",fe)}ge(xe,Be.Node),xe.prototype._peekTag=function(c,ue,de){if(c.isEmpty())return!1;var me=c.save(),be=pe(c,'Failed to peek tag: "'+ue+'"');return c.isError(be)?be:(c.restore(me),be.tag===ue||be.tagStr===ue||be.tagStr+"of"===ue||de)},xe.prototype._decodeTag=function(c,ue,de){var me=pe(c,'Failed to decode tag of "'+ue+'"');if(c.isError(me))return me;var be=ve(c,me.primitive,'Failed to get length of "'+ue+'"');if(c.isError(be))return be;if(!de&&me.tag!==ue&&me.tagStr!==ue&&me.tagStr+"of"!==ue)return c.error('Failed to match tag: "'+ue+'"');if(me.primitive||be!==null)return c.skip(be,'Failed to match body of: "'+ue+'"');var ye=c.save(),_e=this._skipUntilEnd(c,'Failed to skip indefinite length body: "'+this.tag+'"');return c.isError(_e)?_e:(be=c.offset-ye.offset,c.restore(ye),c.skip(be,'Failed to match body of: "'+ue+'"'))},xe.prototype._skipUntilEnd=function(c,ue){for(;;){var de=pe(c,ue);if(c.isError(de))return de;var me=ve(c,de.primitive,ue);if(c.isError(me))return me;var be;if(de.primitive||me!==null?be=c.skip(me):be=this._skipUntilEnd(c,ue),c.isError(be))return be;if(de.tagStr==="end")break}},xe.prototype._decodeList=function(c,ue,de,me){for(var be=[];!c.isEmpty();){var ye=this._peekTag(c,"end");if(c.isError(ye))return ye;var _e=de.decode(c,"der",me);if(c.isError(_e)&&ye)break;be.push(_e)}return be},xe.prototype._decodeStr=function(c,ue){if(ue==="bitstr"){var de=c.readUInt8();return c.isError(de)?de:{unused:de,data:c.raw()}}else if(ue==="bmpstr"){var me=c.raw();if(me.length%2===1)return c.error("Decoding of string type: bmpstr length mismatch");for(var be="",ye=0;ye<me.length/2;ye++)be+=String.fromCharCode(me.readUInt16BE(ye*2));return be}else if(ue==="numstr"){var _e=c.raw().toString("ascii");return this._isNumstr(_e)?_e:c.error("Decoding of string type: numstr unsupported characters")}else{if(ue==="octstr")return c.raw();if(ue==="objDesc")return c.raw();if(ue==="printstr"){var Ae=c.raw().toString("ascii");return this._isPrintstr(Ae)?Ae:c.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(ue)?c.raw().toString():c.error("Decoding of string type: "+ue+" unsupported")}},xe.prototype._decodeObjid=function(c,ue,de){for(var me,be=[],ye=0;!c.isEmpty();){var _e=c.readUInt8();ye<<=7,ye|=_e&127,(_e&128)===0&&(be.push(ye),ye=0)}_e&128&&be.push(ye);var Ae=be[0]/40|0,we=be[0]%40;if(de?me=be:me=[Ae,we].concat(be.slice(1)),ue){var Re=ue[me.join(" ")];Re===void 0&&(Re=ue[me.join(".")]),Re!==void 0&&(me=Re)}return me},xe.prototype._decodeTime=function(c,ue){var de=c.raw().toString();if(ue==="gentime")var me=de.slice(0,4)|0,be=de.slice(4,6)|0,ye=de.slice(6,8)|0,_e=de.slice(8,10)|0,Ae=de.slice(10,12)|0,we=de.slice(12,14)|0;else if(ue==="utctime"){var me=de.slice(0,2)|0,be=de.slice(2,4)|0,ye=de.slice(4,6)|0,_e=de.slice(6,8)|0,Ae=de.slice(8,10)|0,we=de.slice(10,12)|0;me<70?me=2e3+me:me=1900+me}else return c.error("Decoding "+ue+" time is not supported yet");return Date.UTC(me,be-1,ye,_e,Ae,we,0)},xe.prototype._decodeNull=function(c){return null},xe.prototype._decodeBool=function(c){var ue=c.readUInt8();return c.isError(ue)?ue:ue!==0},xe.prototype._decodeInt=function(c,ue){var de=c.raw(),me=new he(de);return ue&&(me=ue[me.toString(10)]||me),me},xe.prototype._use=function(c,ue){return typeof c=="function"&&(c=c(ue)),c._getDecoder("der").tree};function pe(fe,c){var ue=fe.readUInt8(c);if(fe.isError(ue))return ue;var de=Me.tagClass[ue>>6],me=(ue&32)===0;if((ue&31)===31){var be=ue;for(ue=0;(be&128)===128;){if(be=fe.readUInt8(c),fe.isError(be))return be;ue<<=7,ue|=be&127}}else ue&=31;var ye=Me.tag[ue];return{cls:de,primitive:me,tag:ue,tagStr:ye}}function ve(fe,c,ue){var de=fe.readUInt8(ue);if(fe.isError(de))return de;if(!c&&de===128)return null;if((de&128)===0)return de;var me=de&127;if(me>4)return fe.error("length octect is too long");de=0;for(var be=0;be<me;be++){de<<=8;var ye=fe.readUInt8(ue);if(fe.isError(ye))return ye;de|=ye}return de}return der_1$1}var pem$1,hasRequiredPem$1;function requirePem$1(){if(hasRequiredPem$1)return pem$1;hasRequiredPem$1=1;var ge=requireInherits_browser(),Ee=requireDist().Buffer,Be=requireDer$1();function he(Me){Be.call(this,Me),this.enc="pem"}return ge(he,Be),pem$1=he,he.prototype.decode=function(a,xe){for(var pe=a.toString().split(/[\r\n]+/g),ve=xe.label.toUpperCase(),fe=/^-----(BEGIN|END) ([^-]+)-----$/,c=-1,ue=-1,de=0;de<pe.length;de++){var me=pe[de].match(fe);if(me!==null&&me[2]===ve)if(c===-1){if(me[1]!=="BEGIN")break;c=de}else{if(me[1]!=="END")break;ue=de;break}}if(c===-1||ue===-1)throw new Error("PEM section not found for: "+ve);var be=pe.slice(c+1,ue).join("");be.replace(/[^a-z0-9\+\/=]+/gi,"");var ye=new Ee(be,"base64");return Be.prototype.decode.call(this,ye,xe)},pem$1}var hasRequiredDecoders;function requireDecoders(){return hasRequiredDecoders||(hasRequiredDecoders=1,(function(ge){var Ee=ge;Ee.der=requireDer$1(),Ee.pem=requirePem$1()})(decoders)),decoders}var encoders={},der_1,hasRequiredDer;function requireDer(){if(hasRequiredDer)return der_1;hasRequiredDer=1;var ge=requireInherits_browser(),Ee=requireDist().Buffer,Be=requireAsn1$1(),he=Be.base,Me=Be.constants.der;function a(fe){this.enc="der",this.name=fe.name,this.entity=fe,this.tree=new xe,this.tree._init(fe.body)}der_1=a,a.prototype.encode=function(c,ue){return this.tree._encode(c,ue).join()};function xe(fe){he.Node.call(this,"der",fe)}ge(xe,he.Node),xe.prototype._encodeComposite=function(c,ue,de,me){var be=ve(c,ue,de,this.reporter);if(me.length<128){var Ae=new Ee(2);return Ae[0]=be,Ae[1]=me.length,this._createEncoderBuffer([Ae,me])}for(var ye=1,_e=me.length;_e>=256;_e>>=8)ye++;var Ae=new Ee(2+ye);Ae[0]=be,Ae[1]=128|ye;for(var _e=1+ye,we=me.length;we>0;_e--,we>>=8)Ae[_e]=we&255;return this._createEncoderBuffer([Ae,me])},xe.prototype._encodeStr=function(c,ue){if(ue==="bitstr")return this._createEncoderBuffer([c.unused|0,c.data]);if(ue==="bmpstr"){for(var de=new Ee(c.length*2),me=0;me<c.length;me++)de.writeUInt16BE(c.charCodeAt(me),me*2);return this._createEncoderBuffer(de)}else return ue==="numstr"?this._isNumstr(c)?this._createEncoderBuffer(c):this.reporter.error("Encoding of string type: numstr supports only digits and space"):ue==="printstr"?this._isPrintstr(c)?this._createEncoderBuffer(c):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(ue)?this._createEncoderBuffer(c):ue==="objDesc"?this._createEncoderBuffer(c):this.reporter.error("Encoding of string type: "+ue+" unsupported")},xe.prototype._encodeObjid=function(c,ue,de){if(typeof c=="string"){if(!ue)return this.reporter.error("string objid given, but no values map found");if(!ue.hasOwnProperty(c))return this.reporter.error("objid not found in values map");c=ue[c].split(/[\s\.]+/g);for(var me=0;me<c.length;me++)c[me]|=0}else if(Array.isArray(c)){c=c.slice();for(var me=0;me<c.length;me++)c[me]|=0}if(!Array.isArray(c))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(c));if(!de){if(c[1]>=40)return this.reporter.error("Second objid identifier OOB");c.splice(0,2,c[0]*40+c[1])}for(var be=0,me=0;me<c.length;me++){var ye=c[me];for(be++;ye>=128;ye>>=7)be++}for(var _e=new Ee(be),Ae=_e.length-1,me=c.length-1;me>=0;me--){var ye=c[me];for(_e[Ae--]=ye&127;(ye>>=7)>0;)_e[Ae--]=128|ye&127}return this._createEncoderBuffer(_e)};function pe(fe){return fe<10?"0"+fe:fe}xe.prototype._encodeTime=function(c,ue){var de,me=new Date(c);return ue==="gentime"?de=[pe(me.getFullYear()),pe(me.getUTCMonth()+1),pe(me.getUTCDate()),pe(me.getUTCHours()),pe(me.getUTCMinutes()),pe(me.getUTCSeconds()),"Z"].join(""):ue==="utctime"?de=[pe(me.getFullYear()%100),pe(me.getUTCMonth()+1),pe(me.getUTCDate()),pe(me.getUTCHours()),pe(me.getUTCMinutes()),pe(me.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+ue+" time is not supported yet"),this._encodeStr(de,"octstr")},xe.prototype._encodeNull=function(){return this._createEncoderBuffer("")},xe.prototype._encodeInt=function(c,ue){if(typeof c=="string"){if(!ue)return this.reporter.error("String int or enum given, but no values map");if(!ue.hasOwnProperty(c))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(c));c=ue[c]}if(typeof c!="number"&&!Ee.isBuffer(c)){var de=c.toArray();!c.sign&&de[0]&128&&de.unshift(0),c=new Ee(de)}if(Ee.isBuffer(c)){var me=c.length;c.length===0&&me++;var ye=new Ee(me);return c.copy(ye),c.length===0&&(ye[0]=0),this._createEncoderBuffer(ye)}if(c<128)return this._createEncoderBuffer(c);if(c<256)return this._createEncoderBuffer([0,c]);for(var me=1,be=c;be>=256;be>>=8)me++;for(var ye=new Array(me),be=ye.length-1;be>=0;be--)ye[be]=c&255,c>>=8;return ye[0]&128&&ye.unshift(0),this._createEncoderBuffer(new Ee(ye))},xe.prototype._encodeBool=function(c){return this._createEncoderBuffer(c?255:0)},xe.prototype._use=function(c,ue){return typeof c=="function"&&(c=c(ue)),c._getEncoder("der").tree},xe.prototype._skipDefault=function(c,ue,de){var me=this._baseState,be;if(me.default===null)return!1;var ye=c.join();if(me.defaultBuffer===void 0&&(me.defaultBuffer=this._encodeValue(me.default,ue,de).join()),ye.length!==me.defaultBuffer.length)return!1;for(be=0;be<ye.length;be++)if(ye[be]!==me.defaultBuffer[be])return!1;return!0};function ve(fe,c,ue,de){var me;if(fe==="seqof"?fe="seq":fe==="setof"&&(fe="set"),Me.tagByName.hasOwnProperty(fe))me=Me.tagByName[fe];else if(typeof fe=="number"&&(fe|0)===fe)me=fe;else return de.error("Unknown tag: "+fe);return me>=31?de.error("Multi-octet tag encoding unsupported"):(c||(me|=32),me|=Me.tagClassByName[ue||"universal"]<<6,me)}return der_1}var pem,hasRequiredPem;function requirePem(){if(hasRequiredPem)return pem;hasRequiredPem=1;var ge=requireInherits_browser(),Ee=requireDer();function Be(he){Ee.call(this,he),this.enc="pem"}return ge(Be,Ee),pem=Be,Be.prototype.encode=function(Me,a){for(var xe=Ee.prototype.encode.call(this,Me),pe=xe.toString("base64"),ve=["-----BEGIN "+a.label+"-----"],fe=0;fe<pe.length;fe+=64)ve.push(pe.slice(fe,fe+64));return ve.push("-----END "+a.label+"-----"),ve.join(`
|