@stakekit/widget 0.0.292 → 0.0.294

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.
Files changed (151) hide show
  1. package/dist/bundle/{DateTime-BBRIKkPv.js → DateTime-CMMZj2i-.js} +54 -54
  2. package/dist/bundle/{assets-vw12jo1v.js → assets-Bc9gJ-IT.js} +6 -6
  3. package/dist/bundle/{cardano-connector-DCWdS4Lt.js → cardano-connector-4FH7sm5s.js} +2 -2
  4. package/dist/bundle/{configured-chains-Bc6_pgMo.js → configured-chains-DF5IpaPp.js} +1 -1
  5. package/dist/bundle/{cosmos-connector-meta-Br67nymZ.js → cosmos-connector-meta-BKRBGzAs.js} +1 -1
  6. package/dist/bundle/index.bundle.css +1 -1
  7. package/dist/bundle/index.bundle.js +15768 -15242
  8. package/dist/bundle/{ledger-connector-wZ-AWITi.js → ledger-connector-Em3Ex6Ns.js} +5 -5
  9. package/dist/bundle/{network-D8-Flo2u.js → network-D2ajkWp0.js} +1 -1
  10. package/dist/bundle/{reward-rate-chart-B41r4AU4.js → reward-rate-chart-6q6gJawR.js} +4 -4
  11. package/dist/bundle/{solana-connector-CXe_nU4I.js → solana-connector-DHrdMGZC.js} +3 -3
  12. package/dist/bundle/{stellar-connector-Cdl9Hnba.js → stellar-connector-DkR_jg41.js} +2 -2
  13. package/dist/bundle/{styles.css-BJ7-ORZP.js → styles.css-DQG3ba8V.js} +6 -6
  14. package/dist/bundle/{substrate-connector-DFeFqV_q.js → substrate-connector-CzewVoQ6.js} +1 -1
  15. package/dist/bundle/{ton-connector-CWmOukzn.js → ton-connector-CcahoFeW.js} +3 -3
  16. package/dist/bundle/{transaction-BwhgjU0e.js → transaction-BGiGADTK.js} +1 -1
  17. package/dist/bundle/{transaction-CUoDE6CU.js → transaction-BvpQWKqm.js} +1 -1
  18. package/dist/bundle/{transaction-B8S7Vgaq.js → transaction-CD_QhA6u.js} +2 -2
  19. package/dist/bundle/{transaction-DxrR2BHC.js → transaction-CiEShf7a.js} +1 -1
  20. package/dist/bundle/{tron-connector--M_0_Iy7.js → tron-connector-Dy_36o_J.js} +3 -3
  21. package/dist/bundle/{utils-CoW929-6.js → utils-BMTuLksW.js} +1 -1
  22. package/dist/bundle/{wallet-manager-C3rmOq7t.js → wallet-manager-BLaLHs2U.js} +11 -11
  23. package/dist/package/{DateTime-DJZXpaqx.js → DateTime-CGVpQQm9.js} +24 -2
  24. package/dist/package/{assets-BuIo5TOF.js → assets-CEn8BPdT.js} +1 -1
  25. package/dist/package/{cardano-connector-DIZuipB7.js → cardano-connector-BDWTBXaS.js} +2 -2
  26. package/dist/package/{configured-chains-B6PD9hvx.js → configured-chains-CRuy8tse.js} +1 -1
  27. package/dist/package/{cosmos-connector-meta-CgvZWkLV.js → cosmos-connector-meta-B-ke1Dvw.js} +1 -1
  28. package/dist/package/index.package.css +162 -162
  29. package/dist/package/index.package.js +4126 -3050
  30. package/dist/package/{ledger-connector-B3kEcKjM.js → ledger-connector-BQDRUjOJ.js} +5 -5
  31. package/dist/package/{network-B4Qs3uRl.js → network-K03Uj00V.js} +1 -1
  32. package/dist/package/{reward-rate-chart-B42ZCby7.js → reward-rate-chart-DBx39GdL.js} +2 -2
  33. package/dist/package/{solana-connector-VG2pC1EJ.js → solana-connector-fL70NOkD.js} +3 -3
  34. package/dist/package/{stellar-connector-DO9tJUOg.js → stellar-connector-C_33sqO5.js} +2 -2
  35. package/dist/package/{styles.css-DwJjrmLr.js → styles.css-BOghDWGq.js} +1 -1
  36. package/dist/package/{substrate-connector-P80MVt5T.js → substrate-connector-Cr7LEt2o.js} +1 -1
  37. package/dist/package/{ton-connector-3rqiqNZO.js → ton-connector-81-rUhzX.js} +3 -3
  38. package/dist/package/{transaction-DTbU7sxm.js → transaction-BHIZ9rKF.js} +1 -1
  39. package/dist/package/{transaction-CuMGfUeE.js → transaction-C5e_gCK6.js} +1 -1
  40. package/dist/package/{transaction-V39s0qKU.js → transaction-DMMfLvk1.js} +2 -2
  41. package/dist/package/{transaction-Do_oUKxl.js → transaction-DgdU5pHH.js} +1 -1
  42. package/dist/package/{tron-connector-CKUZFHDh.js → tron-connector-Cuez3U16.js} +3 -3
  43. package/dist/package/{wallet-manager-CioQJQ5H.js → wallet-manager-DWFwmdLb.js} +2 -2
  44. package/dist/types/domain/earn/contract.d.ts +1 -0
  45. package/dist/types/generated/yield-provider-ids.d.ts +86 -0
  46. package/dist/types/index.bundle.d.ts +2 -2
  47. package/dist/types/index.package.d.ts +2 -2
  48. package/dist/types/public-api/types.d.ts +21 -3
  49. package/dist/website/assets/AlertController-Dd3t1FDe.js +1 -0
  50. package/dist/website/assets/{CaipNetworkUtil-CIgzbD6k.js → CaipNetworkUtil-CyIDQhS0.js} +1 -1
  51. package/dist/website/assets/DateTime-ByC3zr_K.js +1 -0
  52. package/dist/website/assets/{HelpersUtil-BokHy7la.js → HelpersUtil-Bpil3MMz.js} +1 -1
  53. package/dist/website/assets/ModalController-BhWRBcfd.js +5 -0
  54. package/dist/website/assets/{albedo.module-Dn9vkw3f.js → albedo.module-DkOe0Unb.js} +1 -1
  55. package/dist/website/assets/assets-DXO6qW6R.js +2 -0
  56. package/dist/website/assets/{axios-Dl6BaS8Y.js → axios-rFNl7rAx.js} +2 -2
  57. package/dist/website/assets/{base-signer-b1ff2VPI-DF_m1Hx-.js → base-signer-b1ff2VPI-DEykpag5.js} +1 -1
  58. package/dist/website/assets/{basic-Bt_YnOIC.js → basic-By5_muQ4.js} +1 -1
  59. package/dist/website/assets/bignumber-FohbSRh0.js +1 -0
  60. package/dist/website/assets/blakejs-x6iaQxOd.js +3 -0
  61. package/dist/website/assets/bn-Ck4DeaX2.js +1 -0
  62. package/dist/website/assets/{browser-ponyfill-_v4sZCld.js → browser-ponyfill-lHyeX8iJ.js} +1 -1
  63. package/dist/website/assets/{bs58-CiFyCgrv.js → bs58-gzsgdke5.js} +1 -1
  64. package/dist/website/assets/{build-DM4Sawu1.js → build-ClRxYQRR.js} +1 -1
  65. package/dist/website/assets/{build-Butjcagw.js → build-TBrHU398.js} +1 -1
  66. package/dist/website/assets/{build-B5AnTSOq.js → build-Tl3I8dhV.js} +1 -1
  67. package/dist/website/assets/{cardano-connector-BC5bF4Y2.js → cardano-connector-8El4Ztf_.js} +9 -9
  68. package/dist/website/assets/{configured-chains-Bp7rWkOZ.js → configured-chains-DQ_M8-li.js} +1 -1
  69. package/dist/website/assets/core-BiDQVY37.js +2 -0
  70. package/dist/website/assets/{cosmos-connector-meta-CZFaunIB.js → cosmos-connector-meta-DRTieEt0.js} +1 -1
  71. package/dist/website/assets/dist-BVuLBvyS.js +7 -0
  72. package/dist/website/assets/{dist-BKdXTi2f.js → dist-Bo7ZdXT8.js} +3 -3
  73. package/dist/website/assets/{dist-7PipG_eL.js → dist-DlLKQSrv.js} +3 -3
  74. package/dist/website/assets/dist-ZKTSEBXW.js +1 -0
  75. package/dist/website/assets/{elliptic-j9CClrcl.js → elliptic-BdE4gFqn.js} +2 -2
  76. package/dist/website/assets/{esm-DVfwo40P.js → esm-BjyHrLEJ.js} +1 -1
  77. package/dist/website/assets/events-CMzhc0tf.js +1 -0
  78. package/dist/website/assets/{extrinsic-encoding-B3zynq2U.js → extrinsic-encoding-BIj1XBpl.js} +1 -1
  79. package/dist/website/assets/{features-LE43LGiF.js → features-Cy1CFK9a.js} +1 -1
  80. package/dist/website/assets/{fhevm-relayer-DXLb4mIw-bVmGMiQn.js → fhevm-relayer-DXLb4mIw-Bbrz0cha.js} +5 -3
  81. package/dist/website/assets/freighter.module-DsmrpiWT.js +1 -0
  82. package/dist/website/assets/index-7hHJ2eI5.js +558 -0
  83. package/dist/website/assets/index-zFAIWvcU.css +1 -0
  84. package/dist/website/assets/{index.es-D6B6PG3M.js → index.es-BGzDKZr_.js} +1 -1
  85. package/dist/website/assets/index.es-BHs2-Pa6.js +1 -0
  86. package/dist/website/assets/{index.es-wqX1ruQA.js → index.es-Bpga9r91.js} +5 -5
  87. package/dist/website/assets/{kms_lib-mPebVu09.js → kms_lib-BgnOy0xU.js} +1 -1
  88. package/dist/website/assets/{kms_lib-Bh_Z1nH6.js → kms_lib-w0jRi8cP.js} +1 -1
  89. package/dist/website/assets/{ledger-connector-BOOoTKx_.js → ledger-connector-CNNjVgC1.js} +3 -3
  90. package/dist/website/assets/{lib-es-5LFNYQ9J.js → lib-es-DmH9FYVZ.js} +1 -1
  91. package/dist/website/assets/lobstr.module-BUAItZUt.js +1 -0
  92. package/dist/website/assets/{nacl-fast-BI97gFtf.js → nacl-fast-B5R4wpqG.js} +1 -1
  93. package/dist/website/assets/{nacl-util-DCWJejqG.js → nacl-util-6167mj42.js} +1 -1
  94. package/dist/website/assets/{network-CEcIzsgc.js → network-BVzpe0Ii.js} +1 -1
  95. package/dist/website/assets/{polkadot-ledger-transaction-DaDP252u.js → polkadot-ledger-transaction-Dp6EFfyV.js} +1 -1
  96. package/dist/website/assets/registry-BgQw-qJW.js +1 -0
  97. package/dist/website/assets/{reward-rate-chart-COP_M115.js → reward-rate-chart-CO_yI4og.js} +4 -4
  98. package/dist/website/assets/{safe-buffer-Dz6e-rwu.js → safe-buffer-BUgQmBOp.js} +1 -1
  99. package/dist/website/assets/{safe-connector-DG2cXEO5.js → safe-connector-BObu9WgG.js} +2 -2
  100. package/dist/website/assets/{solana-connector-DSpWnxwA.js → solana-connector-CVuV_EKp.js} +1 -1
  101. package/dist/website/assets/{src-Zq1Jw-Sn.js → src-DbdC_Alu.js} +1 -1
  102. package/dist/website/assets/{src-hSPfFTzN.js → src-Dl7INWvU.js} +1 -1
  103. package/dist/website/assets/state-D5Nw1L4F.js +1 -0
  104. package/dist/website/assets/{stellar-connector-BAbbdkSK.js → stellar-connector-Ba7Jcrbg.js} +1 -1
  105. package/dist/website/assets/styles.css-NtRiu07M.js +1 -0
  106. package/dist/website/assets/substrate-connector-hQ3vc47X.js +2 -0
  107. package/dist/website/assets/tfhe-BACovsAk.js +1 -0
  108. package/dist/website/assets/{tfhe-DuWT_ao1.js → tfhe-BSAXrnM6.js} +1 -1
  109. package/dist/website/assets/ton-connector-CU1xiP2u.js +2264 -0
  110. package/dist/website/assets/tracking-variants-CtfEiKNR.js +93 -0
  111. package/dist/website/assets/{transaction-BH4ssPh3.js → transaction-B5hUD0AE.js} +1 -1
  112. package/dist/website/assets/{transaction-BVuftLt1.js → transaction-BWEzzOww.js} +1 -1
  113. package/dist/website/assets/transaction-BmFUkzQv.js +2 -0
  114. package/dist/website/assets/{transaction-1KdJeqcp.js → transaction-C_iyacpP.js} +1 -1
  115. package/dist/website/assets/{tron-connector-CJURHEQe.js → tron-connector-gXtlAAuG.js} +7 -7
  116. package/dist/website/assets/{tx-Bkou_ALe.js → tx-Cosvp39i.js} +1 -1
  117. package/dist/website/assets/{utils-CH0e59XB.js → utils-meUBO1X1.js} +1 -1
  118. package/dist/website/assets/{viem-BQ_7aeKB.js → viem-8-EtcU49.js} +1 -1
  119. package/dist/website/assets/{w3m-modal-BLY--NNS.js → w3m-modal-HS9RLkN8.js} +2 -2
  120. package/dist/website/assets/wallet-manager-BQrZx180.js +5 -0
  121. package/dist/website/assets/{web-4qAQ-Ymk.js → web-azgm2Psf.js} +1 -1
  122. package/dist/website/assets/{wui-list-item-1gzb5UQJ.js → wui-list-item-CfZ1WQql.js} +1 -1
  123. package/dist/website/assets/{xbull.module-B4N1LGQD.js → xbull.module-DQx6rh7x.js} +1 -1
  124. package/dist/website/index.html +19 -19
  125. package/package.json +3 -2
  126. package/dist/website/assets/AlertController-CH5fpr36.js +0 -1
  127. package/dist/website/assets/DateTime-DR7XeJxF.js +0 -1
  128. package/dist/website/assets/ModalController-CWwEAkfw.js +0 -5
  129. package/dist/website/assets/assets-Dk5ppLtc.js +0 -2
  130. package/dist/website/assets/bignumber-CziKLYjt.js +0 -1
  131. package/dist/website/assets/blakejs-Dx-Zt5zT.js +0 -3
  132. package/dist/website/assets/bn-CJG5j3KW.js +0 -1
  133. package/dist/website/assets/core-uatW2d6Y.js +0 -2
  134. package/dist/website/assets/dist-CELdgNh9.js +0 -1
  135. package/dist/website/assets/dist-omv2KNC4.js +0 -5
  136. package/dist/website/assets/events-D2w4OsQJ.js +0 -1
  137. package/dist/website/assets/freighter.module-CaBNS6Y-.js +0 -1
  138. package/dist/website/assets/index-3l3n0-cX.js +0 -540
  139. package/dist/website/assets/index-Dpi1HuAK.css +0 -1
  140. package/dist/website/assets/index.es-DCi2xZ1b.js +0 -1
  141. package/dist/website/assets/lobstr.module-GQjJAf8P.js +0 -1
  142. package/dist/website/assets/registry-DVfYVrCY.js +0 -1
  143. package/dist/website/assets/state-B8Vu3fYx.js +0 -1
  144. package/dist/website/assets/styles.css-BK5OO2Hh.js +0 -1
  145. package/dist/website/assets/substrate-connector-CwnGlD2K.js +0 -2
  146. package/dist/website/assets/tfhe-PDJAG8Bv.js +0 -1
  147. package/dist/website/assets/ton-connector-DMNOeieX.js +0 -2264
  148. package/dist/website/assets/tracking-variants-CuRpr0B_.js +0 -85
  149. package/dist/website/assets/transaction-CbxrIerN.js +0 -2
  150. package/dist/website/assets/wallet-manager-D8tOJ1jy.js +0 -5
  151. package/dist/website/mockServiceWorker.js +0 -460
@@ -1,5 +1,5 @@
1
- import{n as e,o as t,r as n,t as r}from"./rolldown-runtime-BcKkbAw3.js";import{n as i,t as a}from"./dist-Cuadm9-o.js";import{n as o,t as s}from"./dist-D6L6gF64.js";import{r as c,t as l}from"./dist-CELdgNh9.js";import{n as u,t as d}from"./bn-CJG5j3KW.js";import{t as f}from"./safe-buffer-Dz6e-rwu.js";import{t as p}from"./events-D2w4OsQJ.js";import{t as m}from"./__vite-browser-external-rzXbT8Yi.js";import{a as h,i as g,n as _,o as v,r as y,t as b}from"./has-property-descriptors-BgbN2I7Y.js";var x=n({author:()=>A,bugs:()=>ee,default:()=>N,dependencies:()=>te,description:()=>w,devDependencies:()=>M,files:()=>E,homepage:()=>j,keywords:()=>k,license:()=>`MIT`,main:()=>T,name:()=>S,repository:()=>O,scripts:()=>D,version:()=>C}),S,C,w,T,E,D,O,k,A,ee,j,M,te,N,P=e((()=>{S=`elliptic`,C=`6.6.1`,w=`EC cryptography`,T=`lib/elliptic.js`,E=[`lib`],D={lint:`eslint lib test`,"lint:fix":`npm run lint -- --fix`,unit:`istanbul test _mocha --reporter=spec test/index.js`,test:`npm run lint && npm run unit`,version:`grunt dist && git add dist/`},O={type:`git`,url:`git@github.com:indutny/elliptic`},k=[`EC`,`Elliptic`,`curve`,`Cryptography`],A=`Fedor Indutny <fedor@indutny.com>`,ee={url:`https://github.com/indutny/elliptic/issues`},j=`https://github.com/indutny/elliptic`,M={brfs:`^2.0.2`,coveralls:`^3.1.0`,eslint:`^7.6.0`,grunt:`^1.2.1`,"grunt-browserify":`^5.3.0`,"grunt-cli":`^1.3.2`,"grunt-contrib-connect":`^3.0.0`,"grunt-contrib-copy":`^1.0.0`,"grunt-contrib-uglify":`^5.0.0`,"grunt-mocha-istanbul":`^5.0.2`,"grunt-saucelabs":`^9.0.1`,istanbul:`^0.4.5`,mocha:`^8.0.1`},te={"bn.js":`^4.11.9`,brorand:`^1.1.0`,"hash.js":`^1.0.0`,"hmac-drbg":`^1.0.1`,inherits:`^2.0.4`,"minimalistic-assert":`^1.0.1`,"minimalistic-crypto-utils":`^1.0.1`},N={name:S,version:C,description:w,main:T,files:E,scripts:D,repository:O,keywords:k,author:A,license:`MIT`,bugs:ee,homepage:j,devDependencies:M,dependencies:te}})),F=r(((e,t)=>{(function(e,t){function n(e,t){if(!e)throw Error(t||`Assertion failed`)}function r(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,e!==null&&((t===`le`||t===`be`)&&(n=t,t=10),this._init(e||0,t||10,n||`be`))}typeof e==`object`?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;var a;try{a=typeof window<`u`&&window.Buffer!==void 0?window.Buffer:u().Buffer}catch{}i.isBN=function(e){return e instanceof i||typeof e==`object`&&!!e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,r){if(typeof e==`number`)return this._initNumber(e,t,r);if(typeof e==`object`)return this._initArray(e,t,r);t===`hex`&&(t=16),n(t===(t|0)&&t>=2&&t<=36),e=e.toString().replace(/\s+/g,``);var i=0;e[0]===`-`&&(i++,this.negative=1),i<e.length&&(t===16?this._parseHex(e,i,r):(this._parseBase(e,t,i),r===`le`&&this._initArray(this.toArray(),t,r)))},i.prototype._initNumber=function(e,t,r){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):(n(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),r===`le`&&this._initArray(this.toArray(),t,r)},i.prototype._initArray=function(e,t,r){if(n(typeof e.length==`number`),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var a,o,s=0;if(r===`be`)for(i=e.length-1,a=0;i>=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,s+=24,s>=26&&(s-=26,a++);else if(r===`le`)for(i=0,a=0;i<e.length;i+=3)o=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,s+=24,s>=26&&(s-=26,a++);return this.strip()};function o(e,t){var n=e.charCodeAt(t);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function s(e,t,n){var r=o(e,n);return n-1>=t&&(r|=o(e,n-1)<<4),r}i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i=0,a=0,o;if(n===`be`)for(r=e.length-1;r>=t;r-=2)o=s(e,t,r)<<i,this.words[a]|=o&67108863,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;else for(r=(e.length-t)%2==0?t+1:t;r<e.length;r+=2)o=s(e,t,r)<<i,this.words[a]|=o&67108863,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;this.strip()};function c(e,t,n,r){for(var i=0,a=Math.min(e.length,n),o=t;o<a;o++){var s=e.charCodeAt(o)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var a=e.length-n,o=a%r,s=Math.min(a,a-o)+n,l=0,u=n;u<s;u+=r)l=c(e,u,u+r,t),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(o!==0){var d=1;for(l=c(e,u,e.length,t),u=0;u<o;u++)d*=t;this.imuln(d),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this.strip()},i.prototype.copy=function(e){e.words=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},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?`<BN-R: `:`<BN: `)+this.toString(16)+`>`};var l=`.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`.split(`.`),d=[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],f=[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];i.prototype.toString=function(e,t){e||=10,t=t|0||1;var r;if(e===16||e===`hex`){r=``;for(var i=0,a=0,o=0;o<this.length;o++){var s=this.words[o],c=((s<<i|a)&16777215).toString(16);a=s>>>24-i&16777215,i+=2,i>=26&&(i-=26,o--),r=a!==0||o!==this.length-1?l[6-c.length]+c+r:c+r}for(a!==0&&(r=a.toString(16)+r);r.length%t!==0;)r=`0`+r;return this.negative!==0&&(r=`-`+r),r}if(e===(e|0)&&e>=2&&e<=36){var u=d[e],p=f[e];r=``;var m=this.clone();for(m.negative=0;!m.isZero();){var h=m.modn(p).toString(e);m=m.idivn(p),r=m.isZero()?h+r:l[u-h.length]+h+r}for(this.isZero()&&(r=`0`+r);r.length%t!==0;)r=`0`+r;return this.negative!==0&&(r=`-`+r),r}n(!1,`Base should be between 2 and 36`)},i.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&&n(!1,`Number can only safely store up to 53 bits`),this.negative===0?e:-e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return n(a!==void 0),this.toArrayLike(a,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),a=r||Math.max(1,i);n(i<=a,`byte array longer than desired length`),n(a>0,`Requested array length <= 0`),this.strip();var o=t===`le`,s=new e(a),c,l,u=this.clone();if(o){for(l=0;!u.isZero();l++)c=u.andln(255),u.iushrn(8),s[l]=c;for(;l<a;l++)s[l]=0}else{for(l=0;l<a-i;l++)s[l]=0;for(l=0;!u.isZero();l++)c=u.andln(255),u.iushrn(8),s[a-l-1]=c}return s},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(e===0)return 26;var t=e,n=0;return t&8191||(n+=13,t>>>=13),t&127||(n+=7,t>>>=7),t&15||(n+=4,t>>>=4),t&3||(n+=2,t>>>=2),t&1||n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t};function p(e){for(var t=Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=(e.words[r]&1<<i)>>>i}return t}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,n!==26)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return this.negative===0?this.clone():this.abs().inotn(e).iaddn(1)},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.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()},i.prototype.ior=function(e){return n((this.negative|e.negative)===0),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){for(var t=this.length>e.length?e:this,n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},i.prototype.iand=function(e){return n((this.negative|e.negative)===0),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},i.prototype.ixor=function(e){return n((this.negative|e.negative)===0),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n(typeof e==`number`&&e>=0);var t=Math.ceil(e/26)|0,r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=~this.words[i]&67108863;for(r>0&&(this.words[i]=~this.words[i]&67108863>>26-r,i++);i<this.length;i++)this.words[i]=0;return this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n(typeof e==`number`&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this.strip()},i.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 n,r;this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,a=0;a<r.length;a++)t=(n.words[a]|0)+(r.words[a]|0)+i,this.words[a]=t&67108863,i=t>>>26;for(;i!==0&&a<n.length;a++)t=(n.words[a]|0)+i,this.words[a]=t&67108863,i=t>>>26;if(this.length=n.length,i!==0)this.words[this.length]=i,this.length++;else if(n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this},i.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)},i.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(n===0)return this.negative=0,this.length=1,this.words[0]=0,this;var r,i;n>0?(r=this,i=e):(r=e,i=this);for(var a=0,o=0;o<i.length;o++)t=(r.words[o]|0)-(i.words[o]|0)+a,a=t>>26,this.words[o]=t&67108863;for(;a!==0&&o<r.length;o++)t=(r.words[o]|0)+a,a=t>>26,this.words[o]=t&67108863;if(a===0&&o<r.length&&r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this.length=Math.max(this.length,o),r!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};function m(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=e.words[0]|0,a=t.words[0]|0,o=i*a,s=o&67108863,c=o/67108864|0;n.words[0]=s;for(var l=1;l<r;l++){for(var u=c>>>26,d=c&67108863,f=Math.min(l,t.length-1),p=Math.max(0,l-e.length+1);p<=f;p++){var m=l-p|0;i=e.words[m]|0,a=t.words[p]|0,o=i*a+d,u+=o/67108864|0,d=o&67108863}n.words[l]=d|0,c=u|0}return c===0?n.length--:n.words[l]=c|0,n.strip()}var h=function(e,t,n){var r=e.words,i=t.words,a=n.words,o=0,s,c,l,u=r[0]|0,d=u&8191,f=u>>>13,p=r[1]|0,m=p&8191,h=p>>>13,g=r[2]|0,_=g&8191,v=g>>>13,y=r[3]|0,b=y&8191,x=y>>>13,S=r[4]|0,C=S&8191,w=S>>>13,T=r[5]|0,E=T&8191,D=T>>>13,O=r[6]|0,k=O&8191,A=O>>>13,ee=r[7]|0,j=ee&8191,M=ee>>>13,te=r[8]|0,N=te&8191,P=te>>>13,F=r[9]|0,I=F&8191,L=F>>>13,R=i[0]|0,z=R&8191,B=R>>>13,ne=i[1]|0,V=ne&8191,H=ne>>>13,re=i[2]|0,U=re&8191,W=re>>>13,ie=i[3]|0,G=ie&8191,K=ie>>>13,ae=i[4]|0,q=ae&8191,J=ae>>>13,oe=i[5]|0,se=oe&8191,ce=oe>>>13,le=i[6]|0,ue=le&8191,Y=le>>>13,de=i[7]|0,X=de&8191,fe=de>>>13,pe=i[8]|0,Z=pe&8191,Q=pe>>>13,me=i[9]|0,$=me&8191,he=me>>>13;n.negative=e.negative^t.negative,n.length=19,s=Math.imul(d,z),c=Math.imul(d,B),c=c+Math.imul(f,z)|0,l=Math.imul(f,B);var ge=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(ge>>>26)|0,ge&=67108863,s=Math.imul(m,z),c=Math.imul(m,B),c=c+Math.imul(h,z)|0,l=Math.imul(h,B),s=s+Math.imul(d,V)|0,c=c+Math.imul(d,H)|0,c=c+Math.imul(f,V)|0,l=l+Math.imul(f,H)|0;var _e=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(_e>>>26)|0,_e&=67108863,s=Math.imul(_,z),c=Math.imul(_,B),c=c+Math.imul(v,z)|0,l=Math.imul(v,B),s=s+Math.imul(m,V)|0,c=c+Math.imul(m,H)|0,c=c+Math.imul(h,V)|0,l=l+Math.imul(h,H)|0,s=s+Math.imul(d,U)|0,c=c+Math.imul(d,W)|0,c=c+Math.imul(f,U)|0,l=l+Math.imul(f,W)|0;var ve=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(ve>>>26)|0,ve&=67108863,s=Math.imul(b,z),c=Math.imul(b,B),c=c+Math.imul(x,z)|0,l=Math.imul(x,B),s=s+Math.imul(_,V)|0,c=c+Math.imul(_,H)|0,c=c+Math.imul(v,V)|0,l=l+Math.imul(v,H)|0,s=s+Math.imul(m,U)|0,c=c+Math.imul(m,W)|0,c=c+Math.imul(h,U)|0,l=l+Math.imul(h,W)|0,s=s+Math.imul(d,G)|0,c=c+Math.imul(d,K)|0,c=c+Math.imul(f,G)|0,l=l+Math.imul(f,K)|0;var ye=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(ye>>>26)|0,ye&=67108863,s=Math.imul(C,z),c=Math.imul(C,B),c=c+Math.imul(w,z)|0,l=Math.imul(w,B),s=s+Math.imul(b,V)|0,c=c+Math.imul(b,H)|0,c=c+Math.imul(x,V)|0,l=l+Math.imul(x,H)|0,s=s+Math.imul(_,U)|0,c=c+Math.imul(_,W)|0,c=c+Math.imul(v,U)|0,l=l+Math.imul(v,W)|0,s=s+Math.imul(m,G)|0,c=c+Math.imul(m,K)|0,c=c+Math.imul(h,G)|0,l=l+Math.imul(h,K)|0,s=s+Math.imul(d,q)|0,c=c+Math.imul(d,J)|0,c=c+Math.imul(f,q)|0,l=l+Math.imul(f,J)|0;var be=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(be>>>26)|0,be&=67108863,s=Math.imul(E,z),c=Math.imul(E,B),c=c+Math.imul(D,z)|0,l=Math.imul(D,B),s=s+Math.imul(C,V)|0,c=c+Math.imul(C,H)|0,c=c+Math.imul(w,V)|0,l=l+Math.imul(w,H)|0,s=s+Math.imul(b,U)|0,c=c+Math.imul(b,W)|0,c=c+Math.imul(x,U)|0,l=l+Math.imul(x,W)|0,s=s+Math.imul(_,G)|0,c=c+Math.imul(_,K)|0,c=c+Math.imul(v,G)|0,l=l+Math.imul(v,K)|0,s=s+Math.imul(m,q)|0,c=c+Math.imul(m,J)|0,c=c+Math.imul(h,q)|0,l=l+Math.imul(h,J)|0,s=s+Math.imul(d,se)|0,c=c+Math.imul(d,ce)|0,c=c+Math.imul(f,se)|0,l=l+Math.imul(f,ce)|0;var xe=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(xe>>>26)|0,xe&=67108863,s=Math.imul(k,z),c=Math.imul(k,B),c=c+Math.imul(A,z)|0,l=Math.imul(A,B),s=s+Math.imul(E,V)|0,c=c+Math.imul(E,H)|0,c=c+Math.imul(D,V)|0,l=l+Math.imul(D,H)|0,s=s+Math.imul(C,U)|0,c=c+Math.imul(C,W)|0,c=c+Math.imul(w,U)|0,l=l+Math.imul(w,W)|0,s=s+Math.imul(b,G)|0,c=c+Math.imul(b,K)|0,c=c+Math.imul(x,G)|0,l=l+Math.imul(x,K)|0,s=s+Math.imul(_,q)|0,c=c+Math.imul(_,J)|0,c=c+Math.imul(v,q)|0,l=l+Math.imul(v,J)|0,s=s+Math.imul(m,se)|0,c=c+Math.imul(m,ce)|0,c=c+Math.imul(h,se)|0,l=l+Math.imul(h,ce)|0,s=s+Math.imul(d,ue)|0,c=c+Math.imul(d,Y)|0,c=c+Math.imul(f,ue)|0,l=l+Math.imul(f,Y)|0;var Se=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(Se>>>26)|0,Se&=67108863,s=Math.imul(j,z),c=Math.imul(j,B),c=c+Math.imul(M,z)|0,l=Math.imul(M,B),s=s+Math.imul(k,V)|0,c=c+Math.imul(k,H)|0,c=c+Math.imul(A,V)|0,l=l+Math.imul(A,H)|0,s=s+Math.imul(E,U)|0,c=c+Math.imul(E,W)|0,c=c+Math.imul(D,U)|0,l=l+Math.imul(D,W)|0,s=s+Math.imul(C,G)|0,c=c+Math.imul(C,K)|0,c=c+Math.imul(w,G)|0,l=l+Math.imul(w,K)|0,s=s+Math.imul(b,q)|0,c=c+Math.imul(b,J)|0,c=c+Math.imul(x,q)|0,l=l+Math.imul(x,J)|0,s=s+Math.imul(_,se)|0,c=c+Math.imul(_,ce)|0,c=c+Math.imul(v,se)|0,l=l+Math.imul(v,ce)|0,s=s+Math.imul(m,ue)|0,c=c+Math.imul(m,Y)|0,c=c+Math.imul(h,ue)|0,l=l+Math.imul(h,Y)|0,s=s+Math.imul(d,X)|0,c=c+Math.imul(d,fe)|0,c=c+Math.imul(f,X)|0,l=l+Math.imul(f,fe)|0;var Ce=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,s=Math.imul(N,z),c=Math.imul(N,B),c=c+Math.imul(P,z)|0,l=Math.imul(P,B),s=s+Math.imul(j,V)|0,c=c+Math.imul(j,H)|0,c=c+Math.imul(M,V)|0,l=l+Math.imul(M,H)|0,s=s+Math.imul(k,U)|0,c=c+Math.imul(k,W)|0,c=c+Math.imul(A,U)|0,l=l+Math.imul(A,W)|0,s=s+Math.imul(E,G)|0,c=c+Math.imul(E,K)|0,c=c+Math.imul(D,G)|0,l=l+Math.imul(D,K)|0,s=s+Math.imul(C,q)|0,c=c+Math.imul(C,J)|0,c=c+Math.imul(w,q)|0,l=l+Math.imul(w,J)|0,s=s+Math.imul(b,se)|0,c=c+Math.imul(b,ce)|0,c=c+Math.imul(x,se)|0,l=l+Math.imul(x,ce)|0,s=s+Math.imul(_,ue)|0,c=c+Math.imul(_,Y)|0,c=c+Math.imul(v,ue)|0,l=l+Math.imul(v,Y)|0,s=s+Math.imul(m,X)|0,c=c+Math.imul(m,fe)|0,c=c+Math.imul(h,X)|0,l=l+Math.imul(h,fe)|0,s=s+Math.imul(d,Z)|0,c=c+Math.imul(d,Q)|0,c=c+Math.imul(f,Z)|0,l=l+Math.imul(f,Q)|0;var we=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(we>>>26)|0,we&=67108863,s=Math.imul(I,z),c=Math.imul(I,B),c=c+Math.imul(L,z)|0,l=Math.imul(L,B),s=s+Math.imul(N,V)|0,c=c+Math.imul(N,H)|0,c=c+Math.imul(P,V)|0,l=l+Math.imul(P,H)|0,s=s+Math.imul(j,U)|0,c=c+Math.imul(j,W)|0,c=c+Math.imul(M,U)|0,l=l+Math.imul(M,W)|0,s=s+Math.imul(k,G)|0,c=c+Math.imul(k,K)|0,c=c+Math.imul(A,G)|0,l=l+Math.imul(A,K)|0,s=s+Math.imul(E,q)|0,c=c+Math.imul(E,J)|0,c=c+Math.imul(D,q)|0,l=l+Math.imul(D,J)|0,s=s+Math.imul(C,se)|0,c=c+Math.imul(C,ce)|0,c=c+Math.imul(w,se)|0,l=l+Math.imul(w,ce)|0,s=s+Math.imul(b,ue)|0,c=c+Math.imul(b,Y)|0,c=c+Math.imul(x,ue)|0,l=l+Math.imul(x,Y)|0,s=s+Math.imul(_,X)|0,c=c+Math.imul(_,fe)|0,c=c+Math.imul(v,X)|0,l=l+Math.imul(v,fe)|0,s=s+Math.imul(m,Z)|0,c=c+Math.imul(m,Q)|0,c=c+Math.imul(h,Z)|0,l=l+Math.imul(h,Q)|0,s=s+Math.imul(d,$)|0,c=c+Math.imul(d,he)|0,c=c+Math.imul(f,$)|0,l=l+Math.imul(f,he)|0;var Te=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(Te>>>26)|0,Te&=67108863,s=Math.imul(I,V),c=Math.imul(I,H),c=c+Math.imul(L,V)|0,l=Math.imul(L,H),s=s+Math.imul(N,U)|0,c=c+Math.imul(N,W)|0,c=c+Math.imul(P,U)|0,l=l+Math.imul(P,W)|0,s=s+Math.imul(j,G)|0,c=c+Math.imul(j,K)|0,c=c+Math.imul(M,G)|0,l=l+Math.imul(M,K)|0,s=s+Math.imul(k,q)|0,c=c+Math.imul(k,J)|0,c=c+Math.imul(A,q)|0,l=l+Math.imul(A,J)|0,s=s+Math.imul(E,se)|0,c=c+Math.imul(E,ce)|0,c=c+Math.imul(D,se)|0,l=l+Math.imul(D,ce)|0,s=s+Math.imul(C,ue)|0,c=c+Math.imul(C,Y)|0,c=c+Math.imul(w,ue)|0,l=l+Math.imul(w,Y)|0,s=s+Math.imul(b,X)|0,c=c+Math.imul(b,fe)|0,c=c+Math.imul(x,X)|0,l=l+Math.imul(x,fe)|0,s=s+Math.imul(_,Z)|0,c=c+Math.imul(_,Q)|0,c=c+Math.imul(v,Z)|0,l=l+Math.imul(v,Q)|0,s=s+Math.imul(m,$)|0,c=c+Math.imul(m,he)|0,c=c+Math.imul(h,$)|0,l=l+Math.imul(h,he)|0;var Ee=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,s=Math.imul(I,U),c=Math.imul(I,W),c=c+Math.imul(L,U)|0,l=Math.imul(L,W),s=s+Math.imul(N,G)|0,c=c+Math.imul(N,K)|0,c=c+Math.imul(P,G)|0,l=l+Math.imul(P,K)|0,s=s+Math.imul(j,q)|0,c=c+Math.imul(j,J)|0,c=c+Math.imul(M,q)|0,l=l+Math.imul(M,J)|0,s=s+Math.imul(k,se)|0,c=c+Math.imul(k,ce)|0,c=c+Math.imul(A,se)|0,l=l+Math.imul(A,ce)|0,s=s+Math.imul(E,ue)|0,c=c+Math.imul(E,Y)|0,c=c+Math.imul(D,ue)|0,l=l+Math.imul(D,Y)|0,s=s+Math.imul(C,X)|0,c=c+Math.imul(C,fe)|0,c=c+Math.imul(w,X)|0,l=l+Math.imul(w,fe)|0,s=s+Math.imul(b,Z)|0,c=c+Math.imul(b,Q)|0,c=c+Math.imul(x,Z)|0,l=l+Math.imul(x,Q)|0,s=s+Math.imul(_,$)|0,c=c+Math.imul(_,he)|0,c=c+Math.imul(v,$)|0,l=l+Math.imul(v,he)|0;var De=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(De>>>26)|0,De&=67108863,s=Math.imul(I,G),c=Math.imul(I,K),c=c+Math.imul(L,G)|0,l=Math.imul(L,K),s=s+Math.imul(N,q)|0,c=c+Math.imul(N,J)|0,c=c+Math.imul(P,q)|0,l=l+Math.imul(P,J)|0,s=s+Math.imul(j,se)|0,c=c+Math.imul(j,ce)|0,c=c+Math.imul(M,se)|0,l=l+Math.imul(M,ce)|0,s=s+Math.imul(k,ue)|0,c=c+Math.imul(k,Y)|0,c=c+Math.imul(A,ue)|0,l=l+Math.imul(A,Y)|0,s=s+Math.imul(E,X)|0,c=c+Math.imul(E,fe)|0,c=c+Math.imul(D,X)|0,l=l+Math.imul(D,fe)|0,s=s+Math.imul(C,Z)|0,c=c+Math.imul(C,Q)|0,c=c+Math.imul(w,Z)|0,l=l+Math.imul(w,Q)|0,s=s+Math.imul(b,$)|0,c=c+Math.imul(b,he)|0,c=c+Math.imul(x,$)|0,l=l+Math.imul(x,he)|0;var Oe=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,s=Math.imul(I,q),c=Math.imul(I,J),c=c+Math.imul(L,q)|0,l=Math.imul(L,J),s=s+Math.imul(N,se)|0,c=c+Math.imul(N,ce)|0,c=c+Math.imul(P,se)|0,l=l+Math.imul(P,ce)|0,s=s+Math.imul(j,ue)|0,c=c+Math.imul(j,Y)|0,c=c+Math.imul(M,ue)|0,l=l+Math.imul(M,Y)|0,s=s+Math.imul(k,X)|0,c=c+Math.imul(k,fe)|0,c=c+Math.imul(A,X)|0,l=l+Math.imul(A,fe)|0,s=s+Math.imul(E,Z)|0,c=c+Math.imul(E,Q)|0,c=c+Math.imul(D,Z)|0,l=l+Math.imul(D,Q)|0,s=s+Math.imul(C,$)|0,c=c+Math.imul(C,he)|0,c=c+Math.imul(w,$)|0,l=l+Math.imul(w,he)|0;var ke=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(ke>>>26)|0,ke&=67108863,s=Math.imul(I,se),c=Math.imul(I,ce),c=c+Math.imul(L,se)|0,l=Math.imul(L,ce),s=s+Math.imul(N,ue)|0,c=c+Math.imul(N,Y)|0,c=c+Math.imul(P,ue)|0,l=l+Math.imul(P,Y)|0,s=s+Math.imul(j,X)|0,c=c+Math.imul(j,fe)|0,c=c+Math.imul(M,X)|0,l=l+Math.imul(M,fe)|0,s=s+Math.imul(k,Z)|0,c=c+Math.imul(k,Q)|0,c=c+Math.imul(A,Z)|0,l=l+Math.imul(A,Q)|0,s=s+Math.imul(E,$)|0,c=c+Math.imul(E,he)|0,c=c+Math.imul(D,$)|0,l=l+Math.imul(D,he)|0;var Ae=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,s=Math.imul(I,ue),c=Math.imul(I,Y),c=c+Math.imul(L,ue)|0,l=Math.imul(L,Y),s=s+Math.imul(N,X)|0,c=c+Math.imul(N,fe)|0,c=c+Math.imul(P,X)|0,l=l+Math.imul(P,fe)|0,s=s+Math.imul(j,Z)|0,c=c+Math.imul(j,Q)|0,c=c+Math.imul(M,Z)|0,l=l+Math.imul(M,Q)|0,s=s+Math.imul(k,$)|0,c=c+Math.imul(k,he)|0,c=c+Math.imul(A,$)|0,l=l+Math.imul(A,he)|0;var je=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(je>>>26)|0,je&=67108863,s=Math.imul(I,X),c=Math.imul(I,fe),c=c+Math.imul(L,X)|0,l=Math.imul(L,fe),s=s+Math.imul(N,Z)|0,c=c+Math.imul(N,Q)|0,c=c+Math.imul(P,Z)|0,l=l+Math.imul(P,Q)|0,s=s+Math.imul(j,$)|0,c=c+Math.imul(j,he)|0,c=c+Math.imul(M,$)|0,l=l+Math.imul(M,he)|0;var Me=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(Me>>>26)|0,Me&=67108863,s=Math.imul(I,Z),c=Math.imul(I,Q),c=c+Math.imul(L,Z)|0,l=Math.imul(L,Q),s=s+Math.imul(N,$)|0,c=c+Math.imul(N,he)|0,c=c+Math.imul(P,$)|0,l=l+Math.imul(P,he)|0;var Ne=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,s=Math.imul(I,$),c=Math.imul(I,he),c=c+Math.imul(L,$)|0,l=Math.imul(L,he);var Pe=(o+s|0)+((c&8191)<<13)|0;return o=(l+(c>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,a[0]=ge,a[1]=_e,a[2]=ve,a[3]=ye,a[4]=be,a[5]=xe,a[6]=Se,a[7]=Ce,a[8]=we,a[9]=Te,a[10]=Ee,a[11]=De,a[12]=Oe,a[13]=ke,a[14]=Ae,a[15]=je,a[16]=Me,a[17]=Ne,a[18]=Pe,o!==0&&(a[19]=o,n.length++),n};Math.imul||(h=m);function g(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,a=0;a<n.length-1;a++){var o=i;i=0;for(var s=r&67108863,c=Math.min(a,t.length-1),l=Math.max(0,a-e.length+1);l<=c;l++){var u=a-l,d=(e.words[u]|0)*(t.words[l]|0),f=d&67108863;o=o+(d/67108864|0)|0,f=f+s|0,s=f&67108863,o=o+(f>>>26)|0,i+=o>>>26,o&=67108863}n.words[a]=s,r=o,o=i}return r===0?n.length--:n.words[a]=r,n.strip()}function _(e,t,n){return new v().mulp(e,t,n)}i.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=this.length===10&&e.length===10?h(this,e,t):r<63?m(this,e,t):r<1024?g(this,e,t):_(this,e,t),n};function v(e,t){this.x=e,this.y=t}v.prototype.makeRBT=function(e){for(var t=Array(e),n=i.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},v.prototype.revBin=function(e,t,n){if(e===0||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(e&1)<<t-i-1,e>>=1;return r},v.prototype.permute=function(e,t,n,r,i,a){for(var o=0;o<a;o++)r[o]=t[e[o]],i[o]=n[e[o]]},v.prototype.transform=function(e,t,n,r,i,a){this.permute(a,e,t,n,r,i);for(var o=1;o<i;o<<=1)for(var s=o<<1,c=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var d=c,f=l,p=0;p<o;p++){var m=n[u+p],h=r[u+p],g=n[u+p+o],_=r[u+p+o],v=d*g-f*_;_=d*_+f*g,g=v,n[u+p]=m+g,r[u+p]=h+_,n[u+p+o]=m-g,r[u+p+o]=h-_,p!==s&&(v=c*d-l*f,f=c*f+l*d,d=v)}},v.prototype.guessLen13b=function(e,t){var n=Math.max(t,e)|1,r=n&1,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},v.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},v.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=Math.round(e[2*r+1]/t)*8192+Math.round(e[2*r]/t)+n;e[r]=i&67108863,n=i<67108864?0:i/67108864|0}return e},v.prototype.convert13b=function(e,t,r,i){for(var a=0,o=0;o<t;o++)a+=e[o]|0,r[2*o]=a&8191,a>>>=13,r[2*o+1]=a&8191,a>>>=13;for(o=2*t;o<i;++o)r[o]=0;n(a===0),n(!(a&-8192))},v.prototype.stub=function(e){for(var t=Array(e),n=0;n<e;n++)t[n]=0;return t},v.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),a=this.stub(r),o=Array(r),s=Array(r),c=Array(r),l=Array(r),u=Array(r),d=Array(r),f=n.words;f.length=r,this.convert13b(e.words,e.length,o,r),this.convert13b(t.words,t.length,l,r),this.transform(o,a,s,c,r,i),this.transform(l,a,u,d,r,i);for(var p=0;p<r;p++){var m=s[p]*u[p]-c[p]*d[p];c[p]=s[p]*d[p]+c[p]*u[p],s[p]=m}return this.conjugate(s,c,r),this.transform(s,c,f,a,r,i),this.conjugate(f,a,r),this.normalize13b(f,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},i.prototype.mul=function(e){var t=new i(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=Array(this.length+e.length),_(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){n(typeof e==`number`),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(this.words[r]|0)*e,a=(i&67108863)+(t&67108863);t>>=26,t+=i/67108864|0,t+=a>>>26,this.words[r]=a&67108863}return t!==0&&(this.words[r]=t,this.length++),this.length=e===0?1:this.length,this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=p(e);if(t.length===0)return new i(1);for(var n=this,r=0;r<t.length&&t[r]===0;r++,n=n.sqr());if(++r<t.length)for(var a=n.sqr();r<t.length;r++,a=a.sqr())t[r]!==0&&(n=n.mul(a));return n},i.prototype.iushln=function(e){n(typeof e==`number`&&e>=0);var t=e%26,r=(e-t)/26,i=67108863>>>26-t<<26-t,a;if(t!==0){var o=0;for(a=0;a<this.length;a++){var s=this.words[a]&i,c=(this.words[a]|0)-s<<t;this.words[a]=c|o,o=s>>>26-t}o&&(this.words[a]=o,this.length++)}if(r!==0){for(a=this.length-1;a>=0;a--)this.words[a+r]=this.words[a];for(a=0;a<r;a++)this.words[a]=0;this.length+=r}return this.strip()},i.prototype.ishln=function(e){return n(this.negative===0),this.iushln(e)},i.prototype.iushrn=function(e,t,r){n(typeof e==`number`&&e>=0);var i=t?(t-t%26)/26:0,a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<<a,c=r;if(i-=o,i=Math.max(0,i),c){for(var l=0;l<o;l++)c.words[l]=this.words[l];c.length=o}if(o!==0){if(this.length>o)for(this.length-=o,l=0;l<this.length;l++)this.words[l]=this.words[l+o];else this.words[0]=0,this.length=1}var u=0;for(l=this.length-1;l>=0&&(u!==0||l>=i);l--){var d=this.words[l]|0;this.words[l]=u<<26-a|d>>>a,u=d&s}return c&&u!==0&&(c.words[c.length++]=u),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,r){return n(this.negative===0),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n(typeof e==`number`&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return this.length<=r?!1:!!(this.words[r]&i)},i.prototype.imaskn=function(e){n(typeof e==`number`&&e>=0);var t=e%26,r=(e-t)/26;if(n(this.negative===0,`imaskn works only with positive numbers`),this.length<=r)return this;if(t!==0&&r++,this.length=Math.min(r,this.length),t!==0){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return n(typeof e==`number`),n(e<67108864),e<0?this.isubn(-e):this.negative===0?this._iaddn(e):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)},i.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},i.prototype.isubn=function(e){if(n(typeof e==`number`),n(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];return this.strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,t,r){var i=e.length+r,a;this._expand(i);var o,s=0;for(a=0;a<e.length;a++){o=(this.words[a+r]|0)+s;var c=(e.words[a]|0)*t;o-=c&67108863,s=(o>>26)-(c/67108864|0),this.words[a+r]=o&67108863}for(;a<this.length-r;a++)o=(this.words[a+r]|0)+s,s=o>>26,this.words[a+r]=o&67108863;if(s===0)return this.strip();for(n(s===-1),s=0,a=0;a<this.length;a++)o=-(this.words[a]|0)+s,s=o>>26,this.words[a]=o&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=this.length-e.length,r=this.clone(),a=e,o=a.words[a.length-1]|0;n=26-this._countBits(o),n!==0&&(a=a.ushln(n),r.iushln(n),o=a.words[a.length-1]|0);var s=r.length-a.length,c;if(t!==`mod`){c=new i(null),c.length=s+1,c.words=Array(c.length);for(var l=0;l<c.length;l++)c.words[l]=0}var u=r.clone()._ishlnsubmul(a,1,s);u.negative===0&&(r=u,c&&(c.words[s]=1));for(var d=s-1;d>=0;d--){var f=(r.words[a.length+d]|0)*67108864+(r.words[a.length+d-1]|0);for(f=Math.min(f/o|0,67108863),r._ishlnsubmul(a,f,d);r.negative!==0;)f--,r.negative=0,r._ishlnsubmul(a,1,d),r.isZero()||(r.negative^=1);c&&(c.words[d]=f)}return c&&c.strip(),r.strip(),t!==`div`&&n!==0&&r.iushrn(n),{div:c||null,mod:r}},i.prototype.divmod=function(e,t,r){if(n(!e.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var a,o,s;return this.negative!==0&&e.negative===0?(s=this.neg().divmod(e,t),t!==`mod`&&(a=s.div.neg()),t!==`div`&&(o=s.mod.neg(),r&&o.negative!==0&&o.iadd(e)),{div:a,mod:o}):this.negative===0&&e.negative!==0?(s=this.divmod(e.neg(),t),t!==`mod`&&(a=s.div.neg()),{div:a,mod:s.mod}):(this.negative&e.negative)===0?e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:e.length===1?t===`div`?{div:this.divn(e.words[0]),mod:null}:t===`mod`?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t):(s=this.neg().divmod(e.neg(),t),t!==`div`&&(o=s.mod.neg(),r&&o.negative!==0&&o.isub(e)),{div:s.div,mod:o})},i.prototype.div=function(e){return this.divmod(e,`div`,!1).div},i.prototype.mod=function(e){return this.divmod(e,`mod`,!1).mod},i.prototype.umod=function(e){return this.divmod(e,`mod`,!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=t.div.negative===0?t.mod:t.mod.isub(e),r=e.ushrn(1),i=e.andln(1),a=n.cmp(r);return a<0||i===1&&a===0?t.div:t.div.negative===0?t.div.iaddn(1):t.div.isubn(1)},i.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(this.words[i]|0))%e;return r},i.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(this.words[r]|0)+t*67108864;this.words[r]=i/e|0,t=i%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(e.negative===0),n(!e.isZero());var t=this,r=e.clone();t=t.negative===0?t.clone():t.umod(e);for(var a=new i(1),o=new i(0),s=new i(0),c=new i(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var u=r.clone(),d=t.clone();!t.isZero();){for(var f=0,p=1;(t.words[0]&p)===0&&f<26;++f,p<<=1);if(f>0)for(t.iushrn(f);f-->0;)(a.isOdd()||o.isOdd())&&(a.iadd(u),o.isub(d)),a.iushrn(1),o.iushrn(1);for(var m=0,h=1;(r.words[0]&h)===0&&m<26;++m,h<<=1);if(m>0)for(r.iushrn(m);m-->0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s),o.isub(c)):(r.isub(t),s.isub(a),c.isub(o))}return{a:s,b:c,gcd:r.iushln(l)}},i.prototype._invmp=function(e){n(e.negative===0),n(!e.isZero());var t=this,r=e.clone();t=t.negative===0?t.clone():t.umod(e);for(var a=new i(1),o=new i(0),s=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;(t.words[0]&l)===0&&c<26;++c,l<<=1);if(c>0)for(t.iushrn(c);c-->0;)a.isOdd()&&a.iadd(s),a.iushrn(1);for(var u=0,d=1;(r.words[0]&d)===0&&u<26;++u,d<<=1);if(u>0)for(r.iushrn(u);u-->0;)o.isOdd()&&o.iadd(s),o.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(o)):(r.isub(t),o.isub(a))}var f=t.cmpn(1)===0?a:o;return f.cmpn(0)<0&&f.iadd(e),f},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);do{for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var a=t;t=n,n=a}else if(i===0||n.cmpn(1)===0)break;t.isub(n)}while(1);return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return!(this.words[0]&1)},i.prototype.isOdd=function(){return(this.words[0]&1)==1},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n(typeof e==`number`);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var a=i,o=r;a!==0&&o<this.length;o++){var s=this.words[o]|0;s+=a,a=s>>>26,s&=67108863,this.words[o]=s}return a!==0&&(this.words[o]=a,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.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 r;if(this.length>1)r=1;else{t&&(e=-e),n(e<=67108863,`Number is too big`);var i=this.words[0]|0;r=i===e?0:i<e?-1:1}return this.negative===0?r:-r|0},i.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:-t|0},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=this.words[n]|0,i=e.words[n]|0;if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},i.prototype.gtn=function(e){return this.cmpn(e)===1},i.prototype.gt=function(e){return this.cmp(e)===1},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return this.cmpn(e)===-1},i.prototype.lt=function(e){return this.cmp(e)===-1},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return this.cmpn(e)===0},i.prototype.eq=function(e){return this.cmp(e)===0},i.red=function(e){return new T(e)},i.prototype.toRed=function(e){return n(!this.red,`Already a number in reduction context`),n(this.negative===0,`red works only with positives`),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,`fromRed works only with numbers in reduction context`),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,`Already a number in reduction context`),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,`redAdd works only with red numbers`),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,`redIAdd works only with red numbers`),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,`redSub works only with red numbers`),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,`redISub works only with red numbers`),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,`redShl works only with red numbers`),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,`redMul works only with red numbers`),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,`redMul works only with red numbers`),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,`redSqr works only with red numbers`),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,`redISqr works only with red numbers`),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,`redSqrt works only with red numbers`),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,`redInvm works only with red numbers`),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,`redNeg works only with red numbers`),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,`redPow(normalNum)`),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}b.prototype._tmp=function(){var e=new i(null);return e.words=Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t=e,n;do this.split(t,this.tmp),t=this.imulK(t),t=t.iadd(this.tmp),n=t.bitLength();while(n>this.n);var r=n<this.n?-1:t.ucmp(this.p);return r===0?(t.words[0]=0,t.length=1):r>0?t.isub(this.p):t.strip===void 0?t._strip():t.strip(),t},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)};function x(){b.call(this,`k256`,`ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f`)}r(x,b),x.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i<r;i++)t.words[i]=e.words[i];if(t.length=r,e.length<=9){e.words[0]=0,e.length=1;return}var a=e.words[9];for(t.words[t.length++]=a&n,i=10;i<e.length;i++){var o=e.words[i]|0;e.words[i-10]=(o&n)<<4|a>>>22,a=o}a>>>=22,e.words[i-10]=a,a===0&&e.length>10?e.length-=10:e.length-=9},x.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=e.words[n]|0;t+=r*977,e.words[n]=t&67108863,t=r*64+(t/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function S(){b.call(this,`p224`,`ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001`)}r(S,b);function C(){b.call(this,`p192`,`ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff`)}r(C,b);function w(){b.call(this,`25519`,`7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed`)}r(w,b),w.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=(e.words[n]|0)*19+t,i=r&67108863;r>>>=26,e.words[n]=i,t=r}return t!==0&&(e.words[e.length++]=t),e},i._prime=function(e){if(y[e])return y[e];var t;if(e===`k256`)t=new x;else if(e===`p224`)t=new S;else if(e===`p192`)t=new C;else if(e===`p25519`)t=new w;else throw Error(`Unknown prime `+e);return y[e]=t,t};function T(e){if(typeof e==`string`){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),`modulus must be greater than 1`),this.m=e,this.prime=null}T.prototype._verify1=function(e){n(e.negative===0,`red works only with positives`),n(e.red,`red works only with red numbers`)},T.prototype._verify2=function(e,t){n((e.negative|t.negative)===0,`red works only with positives`),n(e.red&&e.red===t.red,`red works only with red numbers`)},T.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},T.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},T.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},T.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},T.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},T.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},T.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},T.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},T.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},T.prototype.isqr=function(e){return this.imul(e,e.clone())},T.prototype.sqr=function(e){return this.mul(e,e)},T.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),t===3){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var a=this.m.subn(1),o=0;!a.isZero()&&a.andln(1)===0;)o++,a.iushrn(1);n(!a.isZero());var s=new i(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new i(2*u*u).toRed(this);this.pow(u,l).cmp(c)!==0;)u.redIAdd(c);for(var d=this.pow(u,a),f=this.pow(e,a.addn(1).iushrn(1)),p=this.pow(e,a),m=o;p.cmp(s)!==0;){for(var h=p,g=0;h.cmp(s)!==0;g++)h=h.redSqr();n(g<m);var _=this.pow(d,new i(1).iushln(m-g-1));f=f.redMul(_),d=_.redSqr(),p=p.redMul(d),m=g}return f},T.prototype.invm=function(e){var t=e._invmp(this.m);return t.negative===0?this.imod(t):(t.negative=0,this.imod(t).redNeg())},T.prototype.pow=function(e,t){if(t.isZero())return new i(1).toRed(this);if(t.cmpn(1)===0)return e.clone();var n=4,r=Array(1<<n);r[0]=new i(1).toRed(this),r[1]=e;for(var a=2;a<r.length;a++)r[a]=this.mul(r[a-1],e);var o=r[0],s=0,c=0,l=t.bitLength()%26;for(l===0&&(l=26),a=t.length-1;a>=0;a--){for(var u=t.words[a],d=l-1;d>=0;d--){var f=u>>d&1;if(o!==r[0]&&(o=this.sqr(o)),f===0&&s===0){c=0;continue}s<<=1,s|=f,c++,(c===n||a===0&&d===0)&&(o=this.mul(o,r[s]),c=0,s=0)}l=26}return o},T.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},T.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new E(e)};function E(e){T.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(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)}r(E,T),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}})(t===void 0||t,e)})),I=r(((e,t)=>{t.exports=n;function n(e,t){if(!e)throw Error(t||`Assertion failed`)}n.equal=function(e,t,n){if(e!=t)throw Error(n||`Assertion failed: `+e+` != `+t)}})),L=r((e=>{var t=e;function n(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if(typeof e!=`string`){for(var r=0;r<e.length;r++)n[r]=e[r]|0;return n}if(t===`hex`){e=e.replace(/[^a-z0-9]+/gi,``),e.length%2!=0&&(e=`0`+e);for(var r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16))}else for(var r=0;r<e.length;r++){var i=e.charCodeAt(r),a=i>>8,o=i&255;a?n.push(a,o):n.push(o)}return n}t.toArray=n;function r(e){return e.length===1?`0`+e:e}t.zero2=r;function i(e){for(var t=``,n=0;n<e.length;n++)t+=r(e[n].toString(16));return t}t.toHex=i,t.encode=function(e,t){return t===`hex`?i(e):e}})),R=r((e=>{var t=e,n=F(),r=I(),i=L();t.assert=r,t.toArray=i.toArray,t.zero2=i.zero2,t.toHex=i.toHex,t.encode=i.encode;function a(e,t,n){for(var r=Array(Math.max(e.bitLength(),n)+1),i=0;i<r.length;i+=1)r[i]=0;var a=1<<t+1,o=e.clone();for(i=0;i<r.length;i++){var s,c=o.andln(a-1);o.isOdd()?(s=c>(a>>1)-1?(a>>1)-c:c,o.isubn(s)):s=0,r[i]=s,o.iushrn(1)}return r}t.getNAF=a;function o(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r=0,i=0,a;e.cmpn(-r)>0||t.cmpn(-i)>0;){var o=e.andln(3)+r&3,s=t.andln(3)+i&3;o===3&&(o=-1),s===3&&(s=-1);var c;o&1?(a=e.andln(7)+r&7,c=(a===3||a===5)&&s===2?-o:o):c=0,n[0].push(c);var l;s&1?(a=t.andln(7)+i&7,l=(a===3||a===5)&&o===2?-s:s):l=0,n[1].push(l),2*r===c+1&&(r=1-r),2*i===l+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return n}t.getJSF=o;function s(e,t,n){var r=`_`+t;e.prototype[t]=function(){return this[r]===void 0?this[r]=n.call(this):this[r]}}t.cachedProperty=s;function c(e){return typeof e==`string`?t.toArray(e,`hex`):e}t.parseBytes=c;function l(e){return new n(e,`hex`,`le`)}t.intFromLE=l})),z=r(((e,t)=>{o(),a();var n=65536,r=4294967295;function c(){throw Error(`Secure random number generation is not supported by this browser.
2
- Use Chrome, Firefox or Internet Explorer 11`)}var l=f().Buffer,u=s.crypto||s.msCrypto;t.exports=u&&u.getRandomValues?d:c;function d(e,t){if(e>r)throw RangeError(`requested too many random bytes`);var a=l.allocUnsafe(e);if(e>0){if(e>n)for(var o=0;o<e;o+=n)u.getRandomValues(a.slice(o,o+n));else u.getRandomValues(a)}return typeof t==`function`?i.nextTick(function(){t(null,a)}):a}})),B=r(((e,t)=>{t.exports=typeof Object.create==`function`?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),ne=r(((e,t)=>{var n=f().Buffer,r=m().Transform,i=B();function a(e){r.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}i(a,r),a.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)},a.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)};var o=typeof Uint8Array<`u`,s=typeof ArrayBuffer<`u`&&typeof Uint8Array<`u`&&ArrayBuffer.isView&&(n.prototype instanceof Uint8Array||n.TYPED_ARRAY_SUPPORT);function c(e,t){if(e instanceof n)return e;if(typeof e==`string`)return n.from(e,t);if(s&&ArrayBuffer.isView(e)){if(e.byteLength===0)return n.alloc(0);var r=n.from(e.buffer,e.byteOffset,e.byteLength);if(r.byteLength===e.byteLength)return r}if(o&&e instanceof Uint8Array||n.isBuffer(e)&&e.constructor&&typeof e.constructor.isBuffer==`function`&&e.constructor.isBuffer(e))return n.from(e);throw TypeError(`The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.`)}a.prototype.update=function(e,t){if(this._finalized)throw Error(`Digest already called`);e=c(e,t);for(var n=this._block,r=0;this._blockOffset+e.length-r>=this._blockSize;){for(var i=this._blockOffset;i<this._blockSize;)n[i++]=e[r++];this._update(),this._blockOffset=0}for(;r<e.length;)n[this._blockOffset++]=e[r++];for(var a=0,o=e.length*8;o>0;++a)this._length[a]+=o,o=this._length[a]/4294967296|0,o>0&&(this._length[a]-=4294967296*o);return this},a.prototype._update=function(){throw Error(`_update is not implemented`)},a.prototype.digest=function(e){if(this._finalized)throw Error(`Digest already called`);this._finalized=!0;var t=this._digest();e!==void 0&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},a.prototype._digest=function(){throw Error(`_digest is not implemented`)},t.exports=a})),V=r(((e,t)=>{var n=B(),r=ne(),i=f().Buffer,a=Array(16);function o(){r.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}n(o,r),o.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);var n=this._a,r=this._b,i=this._c,o=this._d;n=c(n,r,i,o,e[0],3614090360,7),o=c(o,n,r,i,e[1],3905402710,12),i=c(i,o,n,r,e[2],606105819,17),r=c(r,i,o,n,e[3],3250441966,22),n=c(n,r,i,o,e[4],4118548399,7),o=c(o,n,r,i,e[5],1200080426,12),i=c(i,o,n,r,e[6],2821735955,17),r=c(r,i,o,n,e[7],4249261313,22),n=c(n,r,i,o,e[8],1770035416,7),o=c(o,n,r,i,e[9],2336552879,12),i=c(i,o,n,r,e[10],4294925233,17),r=c(r,i,o,n,e[11],2304563134,22),n=c(n,r,i,o,e[12],1804603682,7),o=c(o,n,r,i,e[13],4254626195,12),i=c(i,o,n,r,e[14],2792965006,17),r=c(r,i,o,n,e[15],1236535329,22),n=l(n,r,i,o,e[1],4129170786,5),o=l(o,n,r,i,e[6],3225465664,9),i=l(i,o,n,r,e[11],643717713,14),r=l(r,i,o,n,e[0],3921069994,20),n=l(n,r,i,o,e[5],3593408605,5),o=l(o,n,r,i,e[10],38016083,9),i=l(i,o,n,r,e[15],3634488961,14),r=l(r,i,o,n,e[4],3889429448,20),n=l(n,r,i,o,e[9],568446438,5),o=l(o,n,r,i,e[14],3275163606,9),i=l(i,o,n,r,e[3],4107603335,14),r=l(r,i,o,n,e[8],1163531501,20),n=l(n,r,i,o,e[13],2850285829,5),o=l(o,n,r,i,e[2],4243563512,9),i=l(i,o,n,r,e[7],1735328473,14),r=l(r,i,o,n,e[12],2368359562,20),n=u(n,r,i,o,e[5],4294588738,4),o=u(o,n,r,i,e[8],2272392833,11),i=u(i,o,n,r,e[11],1839030562,16),r=u(r,i,o,n,e[14],4259657740,23),n=u(n,r,i,o,e[1],2763975236,4),o=u(o,n,r,i,e[4],1272893353,11),i=u(i,o,n,r,e[7],4139469664,16),r=u(r,i,o,n,e[10],3200236656,23),n=u(n,r,i,o,e[13],681279174,4),o=u(o,n,r,i,e[0],3936430074,11),i=u(i,o,n,r,e[3],3572445317,16),r=u(r,i,o,n,e[6],76029189,23),n=u(n,r,i,o,e[9],3654602809,4),o=u(o,n,r,i,e[12],3873151461,11),i=u(i,o,n,r,e[15],530742520,16),r=u(r,i,o,n,e[2],3299628645,23),n=d(n,r,i,o,e[0],4096336452,6),o=d(o,n,r,i,e[7],1126891415,10),i=d(i,o,n,r,e[14],2878612391,15),r=d(r,i,o,n,e[5],4237533241,21),n=d(n,r,i,o,e[12],1700485571,6),o=d(o,n,r,i,e[3],2399980690,10),i=d(i,o,n,r,e[10],4293915773,15),r=d(r,i,o,n,e[1],2240044497,21),n=d(n,r,i,o,e[8],1873313359,6),o=d(o,n,r,i,e[15],4264355552,10),i=d(i,o,n,r,e[6],2734768916,15),r=d(r,i,o,n,e[13],1309151649,21),n=d(n,r,i,o,e[4],4149444226,6),o=d(o,n,r,i,e[11],3174756917,10),i=d(i,o,n,r,e[2],718787259,15),r=d(r,i,o,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+o|0},o.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 e=i.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e};function s(e,t){return e<<t|e>>>32-t}function c(e,t,n,r,i,a,o){return s(e+(t&n|~t&r)+i+a|0,o)+t|0}function l(e,t,n,r,i,a,o){return s(e+(t&r|n&~r)+i+a|0,o)+t|0}function u(e,t,n,r,i,a,o){return s(e+(t^n^r)+i+a|0,o)+t|0}function d(e,t,n,r,i,a,o){return s(e+(n^(t|~r))+i+a|0,o)+t|0}t.exports=o})),H=r(((e,t)=>{var n={}.toString;t.exports=Array.isArray||function(e){return n.call(e)==`[object Array]`}})),re=r(((e,t)=>{t.exports=Object})),U=r(((e,t)=>{t.exports=Error})),W=r(((e,t)=>{t.exports=EvalError})),ie=r(((e,t)=>{t.exports=RangeError})),G=r(((e,t)=>{t.exports=ReferenceError})),K=r(((e,t)=>{t.exports=URIError})),ae=r(((e,t)=>{t.exports=Math.abs})),q=r(((e,t)=>{t.exports=Math.floor})),J=r(((e,t)=>{t.exports=Math.max})),oe=r(((e,t)=>{t.exports=Math.min})),se=r(((e,t)=>{t.exports=Math.pow})),ce=r(((e,t)=>{t.exports=Math.round})),le=r(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),ue=r(((e,t)=>{var n=le();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}})),Y=r(((e,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}})),de=r(((e,t)=>{var n=typeof Symbol<`u`&&Symbol,r=Y();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}})),X=r(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null})),fe=r(((e,t)=>{t.exports=re().getPrototypeOf||null})),pe=r(((e,t)=>{var n=Object.prototype.toString,r=Math.max,i=`[object Function]`,a=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},o=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},s=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||n.apply(t)!==i)throw TypeError(`Function.prototype.bind called on incompatible `+t);for(var c=o(arguments,1),l,u=function(){if(this instanceof l){var n=t.apply(this,a(c,arguments));return Object(n)===n?n:this}return t.apply(e,a(c,arguments))},d=r(0,t.length-c.length),f=[],p=0;p<d;p++)f[p]=`$`+p;if(l=Function(`binder`,`return function (`+s(f,`,`)+`){ return binder.apply(this,arguments); }`)(u),t.prototype){var m=function(){};m.prototype=t.prototype,l.prototype=new m,m.prototype=null}return l}})),Z=r(((e,t)=>{var n=pe();t.exports=Function.prototype.bind||n})),Q=r(((e,t)=>{t.exports=Function.prototype.call})),me=r(((e,t)=>{t.exports=Function.prototype.apply})),$=r(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply})),he=r(((e,t)=>{var n=Z(),r=me(),i=Q();t.exports=$()||n.call(i,r)})),ge=r(((e,t)=>{var n=Z(),r=v(),i=Q(),a=he();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}})),_e=r(((e,t)=>{var n=ge(),r=g(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`&&function(e){return s(e==null?e:o(e))}})),ve=r(((e,t)=>{var n=X(),r=fe(),i=_e();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null})),ye=r(((e,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=Z().call(n,r)})),be=r(((e,t)=>{var n,r=re(),i=U(),a=W(),o=ie(),s=G(),c=h(),l=v(),u=K(),d=ae(),f=q(),p=J(),m=oe(),_=se(),b=ce(),x=ue(),S=Function,C=function(e){try{return S(`"use strict"; return (`+e+`).constructor;`)()}catch{}},w=g(),T=y(),E=function(){throw new l},D=w?function(){try{return arguments.callee,E}catch{try{return w(arguments,`callee`).get}catch{return E}}}():E,O=de()(),k=ve(),A=fe(),ee=X(),j=me(),M=Q(),te={},N=typeof Uint8Array>`u`||!k?n:k(Uint8Array),P={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":O&&k?k([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":te,"%AsyncGenerator%":te,"%AsyncGeneratorFunction%":te,"%AsyncIteratorPrototype%":te,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":S,"%GeneratorFunction%":te,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":O&&k?k(k([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!O||!k?n:k(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!O||!k?n:k(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&k?k(``[Symbol.iterator]()):n,"%Symbol%":O?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":D,"%TypedArray%":N,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":M,"%Function.prototype.apply%":j,"%Object.defineProperty%":T,"%Object.getPrototypeOf%":A,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":_,"%Math.round%":b,"%Math.sign%":x,"%Reflect.getPrototypeOf%":ee};if(k)try{null.error}catch(e){P[`%Error.prototype%`]=k(k(e))}var F=function e(t){var n;if(t===`%AsyncFunction%`)n=C(`async function () {}`);else if(t===`%GeneratorFunction%`)n=C(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=C(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&k&&(n=k(i.prototype))}return P[t]=n,n},I={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},L=Z(),R=ye(),z=L.call(M,Array.prototype.concat),B=L.call(j,Array.prototype.splice),ne=L.call(M,String.prototype.replace),V=L.call(M,String.prototype.slice),H=L.call(M,RegExp.prototype.exec),le=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Y=/\\(\\)?/g,pe=function(e){var t=V(e,0,1),n=V(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return ne(e,le,function(e,t,n,i){r[r.length]=n?ne(i,Y,`$1`):t||e}),r},$=function(e,t){var n=e,r;if(R(I,n)&&(r=I[n],n=`%`+r[0]+`%`),R(P,n)){var i=P[n];if(i===te&&(i=F(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(H(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=pe(e),r=n.length>0?n[0]:``,i=$(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],B(n,z([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=V(p,0,1),h=V(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,R(P,a))o=P[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(w&&d+1>=n.length){var g=w(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=R(o,p),o=o[p];f&&!s&&(P[a]=o)}}return o}})),xe=r(((e,t)=>{var n=be(),r=ge(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}})),Se=r(((e,t)=>{var n=Function.prototype.toString,r=typeof Reflect==`object`&&Reflect!==null&&Reflect.apply,i,a;if(typeof r==`function`&&typeof Object.defineProperty==`function`)try{i=Object.defineProperty({},"length",{get:function(){throw a}}),a={},r(function(){throw 42},null,i)}catch(e){e!==a&&(r=null)}else r=null;var o=/^\s*class\b/,s=function(e){try{var t=n.call(e);return o.test(t)}catch{return!1}},c=function(e){try{return!s(e)&&(n.call(e),!0)}catch{return!1}},l=Object.prototype.toString,u=`[object Object]`,d=`[object Function]`,f=`[object GeneratorFunction]`,p=`[object HTMLAllCollection]`,m=`[object HTML document.all class]`,h=`[object HTMLCollection]`,g=typeof Symbol==`function`&&!!Symbol.toStringTag,_=!(0 in[,]),v=function(){return!1};if(typeof document==`object`){var y=document.all;l.call(y)===l.call(document.all)&&(v=function(e){if((_||!e)&&(e===void 0||typeof e==`object`))try{var t=l.call(e);return(t===p||t===m||t===h||t===u)&&e(``)==null}catch{}return!1})}t.exports=r?function(e){if(v(e))return!0;if(!e||typeof e!=`function`&&typeof e!=`object`)return!1;try{r(e,null,i)}catch(e){if(e!==a)return!1}return!s(e)&&c(e)}:function(e){if(v(e))return!0;if(!e||typeof e!=`function`&&typeof e!=`object`)return!1;if(g)return c(e);if(s(e))return!1;var t=l.call(e);return t!==d&&t!==f&&!/^\[object HTML/.test(t)?!1:c(e)}})),Ce=r(((e,t)=>{var n=Se(),r=Object.prototype.toString,i=Object.prototype.hasOwnProperty,a=function(e,t,n){for(var r=0,a=e.length;r<a;r++)i.call(e,r)&&(n==null?t(e[r],r,e):t.call(n,e[r],r,e))},o=function(e,t,n){for(var r=0,i=e.length;r<i;r++)n==null?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)},s=function(e,t,n){for(var r in e)i.call(e,r)&&(n==null?t(e[r],r,e):t.call(n,e[r],r,e))};function c(e){return r.call(e)===`[object Array]`}t.exports=function(e,t,r){if(!n(t))throw TypeError(`iterator must be a function`);var i;arguments.length>=3&&(i=r),c(e)?a(e,t,i):typeof e==`string`?o(e,t,i):s(e,t,i)}})),we=r(((e,t)=>{t.exports=[`Float16Array`,`Float32Array`,`Float64Array`,`Int8Array`,`Int16Array`,`Int32Array`,`Uint8Array`,`Uint8ClampedArray`,`Uint16Array`,`Uint32Array`,`BigInt64Array`,`BigUint64Array`]})),Te=r(((e,t)=>{o();var n=we(),r=typeof globalThis>`u`?s:globalThis;t.exports=function(){for(var e=[],t=0;t<n.length;t++)typeof r[n[t]]==`function`&&(e[e.length]=n[t]);return e}})),Ee=r(((e,t)=>{var n=be(),r=_(),i=b()(),a=g(),o=v(),s=n(`%Math.floor%`);t.exports=function(e,t){if(typeof e!=`function`)throw new o("`fn` is not a function");if(typeof t!=`number`||t<0||t>4294967295||s(t)!==t)throw new o("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],c=!0,l=!0;if(`length`in e&&a){var u=a(e,`length`);u&&!u.configurable&&(c=!1),u&&!u.writable&&(l=!1)}return(c||l||!n)&&(i?r(e,`length`,t,!0,!0):r(e,`length`,t)),e}})),De=r(((e,t)=>{var n=Z(),r=me(),i=he();t.exports=function(){return i(n,r,arguments)}})),Oe=r(((e,t)=>{var n=Ee(),r=y(),i=ge(),a=De();t.exports=function(e){var t=i(arguments),r=1+e.length-(arguments.length-1);return n(t,r>0?r:0,!0)},r?r(t.exports,`apply`,{value:a}):t.exports.apply=a})),ke=r(((e,t)=>{var n=Y();t.exports=function(){return n()&&!!Symbol.toStringTag}})),Ae=r(((e,t)=>{o();var n=Ce(),r=Te(),i=Oe(),a=xe(),c=g(),l=ve(),u=a(`Object.prototype.toString`),d=ke()(),f=typeof globalThis>`u`?s:globalThis,p=r(),m=a(`String.prototype.slice`),h=a(`Array.prototype.indexOf`,!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},_={__proto__:null};d&&c&&l?n(p,function(e){var t=new f[e];if(Symbol.toStringTag in t&&l){var n=l(t),r=c(n,Symbol.toStringTag);!r&&n&&(r=c(l(n),Symbol.toStringTag)),_[`$`+e]=i(r.get)}}):n(p,function(e){var t=new f[e],n=t.slice||t.set;n&&(_[`$`+e]=i(n))});var v=function(e){var t=!1;return n(_,function(n,r){if(!t)try{`$`+n(e)===r&&(t=m(r,1))}catch{}}),t},y=function(e){var t=!1;return n(_,function(n,r){if(!t)try{n(e),t=m(r,1)}catch{}}),t};t.exports=function(e){if(!e||typeof e!=`object`)return!1;if(!d){var t=m(u(e),8,-1);return h(p,t)>-1?t:t===`Object`&&y(e)}return c?v(e):null}})),je=r(((e,t)=>{var n=Ae();t.exports=function(e){return!!n(e)}})),Me=r(((e,t)=>{var n=v(),r=xe()(`TypedArray.prototype.buffer`,!0),i=je();t.exports=r||function(e){if(!i(e))throw new n(`Not a Typed Array`);return e.buffer}})),Ne=r(((e,t)=>{var n=f().Buffer,r=H(),i=Me(),a=ArrayBuffer.isView||function(e){try{return i(e),!0}catch{return!1}},o=typeof Uint8Array<`u`,s=typeof ArrayBuffer<`u`&&typeof Uint8Array<`u`,c=s&&(n.prototype instanceof Uint8Array||n.TYPED_ARRAY_SUPPORT);t.exports=function(e,t){if(n.isBuffer(e))return e.constructor&&!(`isBuffer`in e)?n.from(e):e;if(typeof e==`string`)return n.from(e,t);if(s&&a(e)){if(e.byteLength===0)return n.alloc(0);if(c){var i=n.from(e.buffer,e.byteOffset,e.byteLength);if(i.byteLength===e.byteLength)return i}var l=e instanceof Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),u=n.from(l);if(u.length===e.byteLength)return u}if(o&&e instanceof Uint8Array)return n.from(e);var d=r(e);if(d)for(var f=0;f<e.length;f+=1){var p=e[f];if(typeof p!=`number`||p<0||p>255||~~p!==p)throw RangeError(`Array items must be numbers in the range 0-255.`)}if(d||n.isBuffer(e)&&e.constructor&&typeof e.constructor.isBuffer==`function`&&e.constructor.isBuffer(e))return n.from(e);throw TypeError(`The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.`)}})),Pe=r(((e,t)=>{var n=f().Buffer,r=Ne(),i=typeof Uint8Array<`u`,a=i&&typeof ArrayBuffer<`u`&&ArrayBuffer.isView;t.exports=function(e,t){if(typeof e==`string`||n.isBuffer(e)||i&&e instanceof Uint8Array||a&&a(e))return r(e,t);throw TypeError(`The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView`)}})),Fe=r(((e,t)=>{a(),t.exports=i===void 0||!i.version||i.version.indexOf(`v0.`)===0||i.version.indexOf(`v1.`)===0&&i.version.indexOf(`v1.8.`)!==0?{nextTick:n}:i;function n(e,t,n,r){if(typeof e!=`function`)throw TypeError(`"callback" argument must be a function`);var a=arguments.length,o,s;switch(a){case 0:case 1:return i.nextTick(e);case 2:return i.nextTick(function(){e.call(null,t)});case 3:return i.nextTick(function(){e.call(null,t,n)});case 4:return i.nextTick(function(){e.call(null,t,n,r)});default:for(o=Array(a-1),s=0;s<o.length;)o[s++]=arguments[s];return i.nextTick(function(){e.apply(null,o)})}}})),Ie=r(((e,t)=>{var n={}.toString;t.exports=Array.isArray||function(e){return n.call(e)==`[object Array]`}})),Le=r(((e,t)=>{t.exports=p().EventEmitter})),Re=r(((e,t)=>{var n=u(),r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a);function a(e,t,n){return r(e,t,n)}i(r,a),a.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return r(e,t,n)},a.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var i=r(e);return t===void 0?i.fill(0):typeof n==`string`?i.fill(t,n):i.fill(t),i},a.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r(e)},a.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return n.SlowBuffer(e)}})),ze=r((e=>{function t(e){return Array.isArray?Array.isArray(e):g(e)===`[object Array]`}e.isArray=t;function n(e){return typeof e==`boolean`}e.isBoolean=n;function r(e){return e===null}e.isNull=r;function i(e){return e==null}e.isNullOrUndefined=i;function a(e){return typeof e==`number`}e.isNumber=a;function o(e){return typeof e==`string`}e.isString=o;function s(e){return typeof e==`symbol`}e.isSymbol=s;function c(e){return e===void 0}e.isUndefined=c;function l(e){return g(e)===`[object RegExp]`}e.isRegExp=l;function d(e){return typeof e==`object`&&!!e}e.isObject=d;function f(e){return g(e)===`[object Date]`}e.isDate=f;function p(e){return g(e)===`[object Error]`||e instanceof Error}e.isError=p;function m(e){return typeof e==`function`}e.isFunction=m;function h(e){return e===null||typeof e==`boolean`||typeof e==`number`||typeof e==`string`||typeof e==`symbol`||e===void 0}e.isPrimitive=h,e.isBuffer=u().Buffer.isBuffer;function g(e){return Object.prototype.toString.call(e)}})),Be=r(((e,t)=>{function n(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var r=Re().Buffer,i=m();function a(e,t,n){e.copy(t,n)}t.exports=function(){function e(){n(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(this.length!==0){var e=this.head.data;return this.head=this.length===1?this.tail=null:this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(this.length===0)return``;for(var t=this.head,n=``+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(this.length===0)return r.alloc(0);for(var t=r.allocUnsafe(e>>>0),n=this.head,i=0;n;)a(n.data,t,i),i+=n.data.length,n=n.next;return t},e}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+` `+e})})),Ve=r(((e,t)=>{var n=Fe();function r(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return i||o?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(a,this,e)):n.nextTick(a,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(a,r,e)):n.nextTick(a,r,e):t&&t(e)}),this)}function i(){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 a(e,t){e.emit(`error`,t)}t.exports={destroy:r,undestroy:i}})),He=r(((e,t)=>{o(),t.exports=n;function n(e,t){if(r(`noDeprecation`))return e;var n=!1;function i(){if(!n){if(r(`throwDeprecation`))throw Error(t);r(`traceDeprecation`),n=!0}return e.apply(this,arguments)}return i}function r(e){try{if(!s.localStorage)return!1}catch{return!1}var t=s.localStorage[e];return t!=null&&String(t).toLowerCase()===`true`}})),Ue=r(((e,t)=>{o(),a();var n=Fe();t.exports=x;function r(e){var t=this;this.next=null,this.entry=null,this.finish=function(){I(t,e)}}var c=!i.browser&&[`v0.10`,`v0.9.`].indexOf(i.version.slice(0,5))>-1?setImmediate:n.nextTick,l;x.WritableState=y;var u=Object.create(ze());u.inherits=B();var d={deprecate:He()},f=Le(),p=Re().Buffer,m=(s===void 0?typeof window<`u`?window:typeof self<`u`?self:{}:s).Uint8Array||function(){};function h(e){return p.from(e)}function g(e){return p.isBuffer(e)||e instanceof m}var _=Ve();u.inherits(x,f);function v(){}function y(e,t){l||=We(),e||={};var n=t instanceof l;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,a=e.writableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=i||i===0?i:n&&(a||a===0)?a:o,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 s=e.decodeStrings===!1;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){k(t,e)},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 r(this)}y.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},(function(){try{Object.defineProperty(y.prototype,"buffer",{get:d.deprecate(function(){return this.getBuffer()},`_writableState.buffer is deprecated. Use _writableState.getBuffer instead.`,`DEP0003`)})}catch{}})();var b;typeof Symbol==`function`&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==`function`?(b=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(e){return b.call(this,e)?!0:this===x&&e&&e._writableState instanceof y}})):b=function(e){return e instanceof this};function x(e){if(l||=We(),!b.call(x,this)&&!(this instanceof l))return new x(e);this._writableState=new y(e,this),this.writable=!0,e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final)),f.call(this)}x.prototype.pipe=function(){this.emit(`error`,Error(`Cannot pipe, not readable`))};function S(e,t){var r=Error(`write after end`);e.emit(`error`,r),n.nextTick(t,r)}function C(e,t,r,i){var a=!0,o=!1;return r===null?o=TypeError(`May not write null values to stream`):typeof r!=`string`&&r!==void 0&&!t.objectMode&&(o=TypeError(`Invalid non-string/buffer chunk`)),o&&(e.emit(`error`,o),n.nextTick(i,o),a=!1),a}x.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=!r.objectMode&&g(e);return a&&!p.isBuffer(e)&&(e=h(e)),typeof t==`function`&&(n=t,t=null),a?t=`buffer`:t||=r.defaultEncoding,typeof n!=`function`&&(n=v),r.ended?S(this,n):(a||C(this,r,e,n))&&(r.pendingcb++,i=T(this,r,a,e,t,n)),i},x.prototype.cork=function(){var e=this._writableState;e.corked++},x.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&j(this,e))},x.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=e.toLowerCase()),!([`hex`,`utf8`,`utf-8`,`ascii`,`binary`,`base64`,`ucs2`,`ucs-2`,`utf16le`,`utf-16le`,`raw`].indexOf((e+``).toLowerCase())>-1))throw TypeError(`Unknown encoding: `+e);return this._writableState.defaultEncoding=e,this};function w(e,t,n){return!e.objectMode&&e.decodeStrings!==!1&&typeof t==`string`&&(t=p.from(t,n)),t}Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function T(e,t,n,r,i,a){if(!n){var o=w(t,r,i);r!==o&&(n=!0,i=`buffer`,r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else E(e,t,!1,s,r,i,a);return c}function E(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function D(e,t,r,i,a){--t.pendingcb,r?(n.nextTick(a,i),n.nextTick(P,e,t),e._writableState.errorEmitted=!0,e.emit(`error`,i)):(a(i),e._writableState.errorEmitted=!0,e.emit(`error`,i),P(e,t))}function O(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function k(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(O(n),t)D(e,n,r,t,i);else{var a=M(n);!a&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&j(e,n),r?c(A,e,n,a,i):A(e,n,a,i)}}function A(e,t,n,r){n||ee(e,t),t.pendingcb--,r(),P(e,t)}function ee(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit(`drain`))}function j(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var i=t.bufferedRequestCount,a=Array(i),o=t.corkedRequestsFree;o.entry=n;for(var s=0,c=!0;n;)a[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;a.allBuffers=c,E(e,t,!0,t.length,a,``,o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new r(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,d=n.callback;if(E(e,t,!1,t.objectMode?1:l.length,l,u,d),n=n.next,t.bufferedRequestCount--,t.writing)break}n===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}x.prototype._write=function(e,t,n){n(Error(`_write() is not implemented`))},x.prototype._writev=null,x.prototype.end=function(e,t,n){var r=this._writableState;typeof e==`function`?(n=e,e=null,t=null):typeof t==`function`&&(n=t,t=null),e!=null&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||F(this,r,n)};function M(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function te(e,t){e._final(function(n){t.pendingcb--,n&&e.emit(`error`,n),t.prefinished=!0,e.emit(`prefinish`),P(e,t)})}function N(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final==`function`?(t.pendingcb++,t.finalCalled=!0,n.nextTick(te,e,t)):(t.prefinished=!0,e.emit(`prefinish`)))}function P(e,t){var n=M(t);return n&&(N(e,t),t.pendingcb===0&&(t.finished=!0,e.emit(`finish`))),n}function F(e,t,r){t.ending=!0,P(e,t),r&&(t.finished?n.nextTick(r):e.once(`finish`,r)),t.ended=!0,e.writable=!1}function I(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}Object.defineProperty(x.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),x.prototype.destroy=_.destroy,x.prototype._undestroy=_.undestroy,x.prototype._destroy=function(e,t){this.end(),t(e)}})),We=r(((e,t)=>{var n=Fe(),r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=u;var i=Object.create(ze());i.inherits=B();var a=Ke(),o=Ue();i.inherits(u,a);for(var s=r(o.prototype),c=0;c<s.length;c++){var l=s[c];u.prototype[l]||(u.prototype[l]=o.prototype[l])}function u(e){if(!(this instanceof u))return new u(e);a.call(this,e),o.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once(`end`,d)}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function d(){this.allowHalfOpen||this._writableState.ended||n.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(u.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),u.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}})),Ge=r((e=>{var t=Re().Buffer,n=t.isEncoding||function(e){switch(e=``+e,e&&e.toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:case`raw`:return!0;default:return!1}};function r(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}function i(e){var i=r(e);if(typeof i!=`string`&&(t.isEncoding===n||!n(e)))throw Error(`Unknown encoding: `+e);return i||e}e.StringDecoder=a;function a(e){this.encoding=i(e);var n;switch(this.encoding){case`utf16le`:this.text=f,this.end=p,n=4;break;case`utf8`:this.fillLast=l,n=4;break;case`base64`:this.text=m,this.end=h,n=3;break;default:this.write=g,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return``;n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||``},a.prototype.end=d,a.prototype.text=u,a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function l(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function u(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function f(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function m(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-n))}function h(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):``}})),Ke=r(((e,t)=>{o(),a();var n=Fe();t.exports=E;var r=Ie(),c;E.ReadableState=T,p().EventEmitter;var l=function(e,t){return e.listeners(t).length},u=Le(),d=Re().Buffer,f=(s===void 0?typeof window<`u`?window:typeof self<`u`?self:{}:s).Uint8Array||function(){};function h(e){return d.from(e)}function g(e){return d.isBuffer(e)||e instanceof f}var _=Object.create(ze());_.inherits=B();var v=m(),y=void 0;y=v&&v.debuglog?v.debuglog(`stream`):function(){};var b=Be(),x=Ve(),S;_.inherits(E,u);var C=[`error`,`close`,`destroy`,`pause`,`resume`];function w(e,t,n){if(typeof e.prependListener==`function`)return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):r(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}function T(e,t){c||=We(),e||={};var n=t instanceof c;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,i=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=r||r===0?r:n&&(i||i===0)?i:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,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=e.defaultEncoding||`utf8`,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(S||=Ge().StringDecoder,this.decoder=new S(e.encoding),this.encoding=e.encoding)}function E(e){if(c||=We(),!(this instanceof E))return new E(e);this._readableState=new T(e,this),this.readable=!0,e&&(typeof e.read==`function`&&(this._read=e.read),typeof e.destroy==`function`&&(this._destroy=e.destroy)),u.call(this)}Object.defineProperty(E.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),E.prototype.destroy=x.destroy,E.prototype._undestroy=x.undestroy,E.prototype._destroy=function(e,t){this.push(null),t(e)},E.prototype.push=function(e,t){var n=this._readableState,r;return n.objectMode?r=!0:typeof e==`string`&&(t||=n.defaultEncoding,t!==n.encoding&&(e=d.from(e,t),t=``),r=!0),D(this,e,t,!1,r)},E.prototype.unshift=function(e){return D(this,e,null,!0,!1)};function D(e,t,n,r,i){var a=e._readableState;if(t===null)a.reading=!1,te(e,a);else{var o;i||(o=k(a,t)),o?e.emit(`error`,o):a.objectMode||t&&t.length>0?(typeof t!=`string`&&!a.objectMode&&Object.getPrototypeOf(t)!==d.prototype&&(t=h(t)),r?a.endEmitted?e.emit(`error`,Error(`stream.unshift() after end event`)):O(e,a,t,!0):a.ended?e.emit(`error`,Error(`stream.push() after EOF`)):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||t.length!==0?O(e,a,t,!1):F(e,a)):O(e,a,t,!1))):r||(a.reading=!1)}return A(a)}function O(e,t,n,r){t.flowing&&t.length===0&&!t.sync?(e.emit(`data`,n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&N(e)),F(e,t)}function k(e,t){var n;return!g(t)&&typeof t!=`string`&&t!==void 0&&!e.objectMode&&(n=TypeError(`Invalid non-string/buffer chunk`)),n}function A(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}E.prototype.isPaused=function(){return this._readableState.flowing===!1},E.prototype.setEncoding=function(e){return S||=Ge().StringDecoder,this._readableState.decoder=new S(e),this._readableState.encoding=e,this};var ee=8388608;function j(e){return e>=ee?e=ee:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function M(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e===e?(e>t.highWaterMark&&(t.highWaterMark=j(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}E.prototype.read=function(e){y(`read`,e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return y(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?ie(this):N(this),null;if(e=M(e,t),e===0&&t.ended)return t.length===0&&ie(this),null;var r=t.needReadable;y(`need readable`,r),(t.length===0||t.length-e<t.highWaterMark)&&(r=!0,y(`length less than watermark`,r)),t.ended||t.reading?(r=!1,y(`reading or ended`,r)):r&&(y(`do read`),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=M(n,t)));var i=e>0?H(e,t):null;return i===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&ie(this)),i!==null&&this.emit(`data`,i),i};function te(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,N(e)}}function N(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(y(`emitReadable`,t.flowing),t.emittedReadable=!0,t.sync?n.nextTick(P,e):P(e))}function P(e){y(`emit readable`),e.emit(`readable`),V(e)}function F(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(I,e,t))}function I(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(y(`maybeReadMore read 0`),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}E.prototype._read=function(e){this.emit(`error`,Error(`_read() is not implemented`))},E.prototype.pipe=function(e,t){var r=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,y(`pipe count=%d opts=%j`,a.pipesCount,t);var o=(!t||t.end!==!1)&&e!==i.stdout&&e!==i.stderr?c:v;a.endEmitted?n.nextTick(o):r.once(`end`,o),e.on(`unpipe`,s);function s(e,t){y(`onunpipe`),e===r&&t&&t.hasUnpiped===!1&&(t.hasUnpiped=!0,f())}function c(){y(`onend`),e.end()}var u=L(r);e.on(`drain`,u);var d=!1;function f(){y(`cleanup`),e.removeListener(`close`,g),e.removeListener(`finish`,_),e.removeListener(`drain`,u),e.removeListener(`error`,h),e.removeListener(`unpipe`,s),r.removeListener(`end`,c),r.removeListener(`end`,v),r.removeListener(`data`,m),d=!0,a.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u()}var p=!1;r.on(`data`,m);function m(t){y(`ondata`),p=!1,!1===e.write(t)&&!p&&((a.pipesCount===1&&a.pipes===e||a.pipesCount>1&&K(a.pipes,e)!==-1)&&!d&&(y(`false write response, pause`,a.awaitDrain),a.awaitDrain++,p=!0),r.pause())}function h(t){y(`onerror`,t),v(),e.removeListener(`error`,h),l(e,`error`)===0&&e.emit(`error`,t)}w(e,`error`,h);function g(){e.removeListener(`finish`,_),v()}e.once(`close`,g);function _(){y(`onfinish`),e.removeListener(`close`,g),v()}e.once(`finish`,_);function v(){y(`unpipe`),r.unpipe(e)}return e.emit(`pipe`,r),a.flowing||(y(`pipe resume`),r.resume()),e};function L(e){return function(){var t=e._readableState;y(`pipeOnDrain`,t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&l(e,`data`)&&(t.flowing=!0,V(e))}}E.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||=t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(`unpipe`,this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit(`unpipe`,this,{hasUnpiped:!1});return this}var o=K(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),--t.pipesCount,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit(`unpipe`,this,n),this)},E.prototype.on=function(e,t){var r=u.prototype.on.call(this,e,t);if(e===`data`)this._readableState.flowing!==!1&&this.resume();else if(e===`readable`){var i=this._readableState;!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&N(this):n.nextTick(R,this))}return r},E.prototype.addListener=E.prototype.on;function R(e){y(`readable nexttick read 0`),e.read(0)}E.prototype.resume=function(){var e=this._readableState;return e.flowing||(y(`resume`),e.flowing=!0,z(this,e)),this};function z(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(ne,e,t))}function ne(e,t){t.reading||(y(`resume read 0`),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit(`resume`),V(e),t.flowing&&!t.reading&&e.read(0)}E.prototype.pause=function(){return y(`call pause flowing=%j`,this._readableState.flowing),!1!==this._readableState.flowing&&(y(`pause`),this._readableState.flowing=!1,this.emit(`pause`)),this};function V(e){var t=e._readableState;for(y(`flow`,t.flowing);t.flowing&&e.read()!==null;);}E.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on(`end`,function(){if(y(`wrapped end`),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on(`data`,function(i){y(`wrapped data`),n.decoder&&(i=n.decoder.write(i)),!(n.objectMode&&i==null)&&(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))}),e)this[i]===void 0&&typeof e[i]==`function`&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<C.length;a++)e.on(C[a],this.emit.bind(this,C[a]));return this._read=function(t){y(`wrapped _read`,t),r&&(r=!1,e.resume())},this},Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),E._fromList=H;function H(e,t){if(t.length===0)return null;var n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=re(e,t.buffer,t.decoder),n}function re(e,t,n){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?U(e,t):W(e,t),r}function U(e,t){var n=t.head,r=1,i=n.data;for(e-=i.length;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),e-=o,e===0){o===a.length?(++r,t.head=n.next?n.next:t.tail=null):(t.head=n,n.data=a.slice(o));break}++r}return t.length-=r,i}function W(e,t){var n=d.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(a.copy(n,n.length-e,0,o),e-=o,e===0){o===a.length?(++i,t.head=r.next?r.next:t.tail=null):(t.head=r,r.data=a.slice(o));break}++i}return t.length-=i,n}function ie(e){var t=e._readableState;if(t.length>0)throw Error(`"endReadable()" called on non-empty stream`);t.endEmitted||(t.ended=!0,n.nextTick(G,t,e))}function G(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(`end`))}function K(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}})),qe=r(((e,t)=>{t.exports=a;var n=We(),r=Object.create(ze());r.inherits=B(),r.inherits(a,n);function i(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit(`error`,Error(`write callback called multiple times`));n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState={afterTransform:i.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform==`function`&&(this._transform=e.transform),typeof e.flush==`function`&&(this._flush=e.flush)),this.on(`prefinish`,o)}function o(){var e=this;typeof this._flush==`function`?this._flush(function(t,n){s(e,t,n)}):s(this,null,null)}a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw Error(`_transform() is not implemented`)},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,function(e){t(e),r.emit(`close`)})};function s(e,t,n){if(t)return e.emit(`error`,t);if(n!=null&&e.push(n),e._writableState.length)throw Error(`Calling transform done when ws.length != 0`);if(e._transformState.transforming)throw Error(`Calling transform done when still transforming`);return e.push(null)}})),Je=r(((e,t)=>{t.exports=i;var n=qe(),r=Object.create(ze());r.inherits=B(),r.inherits(i,n);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}i.prototype._transform=function(e,t,n){n(null,e)}})),Ye=r(((e,t)=>{e=t.exports=Ke(),e.Stream=e,e.Readable=e,e.Writable=Ue(),e.Duplex=We(),e.Transform=qe(),e.PassThrough=Je()})),Xe=r(((e,t)=>{var n=f().Buffer,r=Pe(),i=Ye().Transform,a=B();function o(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}a(o,i),o.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},o.prototype.update=function(e,t){if(this._finalized)throw Error(`Digest already called`);for(var n=r(e,t),i=this._block,a=0;this._blockOffset+n.length-a>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)i[o]=n[a],o+=1,a+=1;this._update(),this._blockOffset=0}for(;a<n.length;)i[this._blockOffset]=n[a],this._blockOffset+=1,a+=1;for(var s=0,c=n.length*8;c>0;++s)this._length[s]+=c,c=this._length[s]/4294967296|0,c>0&&(this._length[s]-=4294967296*c);return this},o.prototype._update=function(){throw Error(`_update is not implemented`)},o.prototype.digest=function(e){if(this._finalized)throw Error(`Digest already called`);this._finalized=!0;var t=this._digest();e!==void 0&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},o.prototype._digest=function(){throw Error(`_digest is not implemented`)},t.exports=o})),Ze=r(((e,t)=>{var n=u().Buffer,r=B(),i=Xe(),a=Array(16),o=[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],s=[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],c=[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],l=[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],d=[0,1518500249,1859775393,2400959708,2840853838],f=[1352829926,1548603684,1836072691,2053994217,0];function p(e,t){return e<<t|e>>>32-t}function m(e,t,n,r,i,a,o,s){return p(e+(t^n^r)+a+o|0,s)+i|0}function h(e,t,n,r,i,a,o,s){return p(e+(t&n|~t&r)+a+o|0,s)+i|0}function g(e,t,n,r,i,a,o,s){return p(e+((t|~n)^r)+a+o|0,s)+i|0}function _(e,t,n,r,i,a,o,s){return p(e+(t&r|n&~r)+a+o|0,s)+i|0}function v(e,t,n,r,i,a,o,s){return p(e+(t^(n|~r))+a+o|0,s)+i|0}function y(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}r(y,i),y.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);for(var n=this._a|0,r=this._b|0,i=this._c|0,u=this._d|0,y=this._e|0,b=this._a|0,x=this._b|0,S=this._c|0,C=this._d|0,w=this._e|0,T=0;T<80;T+=1){var E,D;T<16?(E=m(n,r,i,u,y,e[o[T]],d[0],c[T]),D=v(b,x,S,C,w,e[s[T]],f[0],l[T])):T<32?(E=h(n,r,i,u,y,e[o[T]],d[1],c[T]),D=_(b,x,S,C,w,e[s[T]],f[1],l[T])):T<48?(E=g(n,r,i,u,y,e[o[T]],d[2],c[T]),D=g(b,x,S,C,w,e[s[T]],f[2],l[T])):T<64?(E=_(n,r,i,u,y,e[o[T]],d[3],c[T]),D=h(b,x,S,C,w,e[s[T]],f[3],l[T])):(E=v(n,r,i,u,y,e[o[T]],d[4],c[T]),D=m(b,x,S,C,w,e[s[T]],f[4],l[T])),n=y,y=u,u=p(i,10),i=r,r=E,b=w,w=C,C=p(S,10),S=x,x=D}var O=this._b+i+C|0;this._b=this._c+u+w|0,this._c=this._d+y+b|0,this._d=this._e+n+x|0,this._e=this._a+r+S|0,this._a=O},y.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 e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},t.exports=y})),Qe=r(((e,t)=>{var n=f().Buffer,r=Ne();function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){e=r(e,t||`utf8`);for(var n=this._block,i=this._blockSize,a=e.length,o=this._len,s=0;s<a;){for(var c=o%i,l=Math.min(a-s,i-c),u=0;u<l;u++)n[c+u]=e[s+u];o+=l,s+=l,o%i===0&&this._update(n)}return this._len+=a,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=this._len*8;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(n&4294967295)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},i.prototype._update=function(){throw Error(`_update must be implemented by subclass`)},t.exports=i})),$e=r(((e,t)=>{var n=B(),r=Qe(),i=f().Buffer,a=[1518500249,1859775393,-1894007588,-899497514],o=Array(80);function s(){this.init(),this._w=o,r.call(this,64,56)}n(s,r),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function c(e){return e<<5|e>>>27}function l(e){return e<<30|e>>>2}function u(e,t,n,r){return e===0?t&n|~t&r:e===2?t&n|t&r|n&r:t^n^r}s.prototype._update=function(e){for(var t=this._w,n=this._a|0,r=this._b|0,i=this._c|0,o=this._d|0,s=this._e|0,d=0;d<16;++d)t[d]=e.readInt32BE(d*4);for(;d<80;++d)t[d]=t[d-3]^t[d-8]^t[d-14]^t[d-16];for(var f=0;f<80;++f){var p=~~(f/20),m=c(n)+u(p,r,i,o)+s+t[f]+a[p]|0;s=o,o=i,i=l(r),r=n,n=m}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e},t.exports=s})),et=r(((e,t)=>{var n=B(),r=Qe(),i=f().Buffer,a=[1518500249,1859775393,-1894007588,-899497514],o=Array(80);function s(){this.init(),this._w=o,r.call(this,64,56)}n(s,r),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function c(e){return e<<1|e>>>31}function l(e){return e<<5|e>>>27}function u(e){return e<<30|e>>>2}function d(e,t,n,r){return e===0?t&n|~t&r:e===2?t&n|t&r|n&r:t^n^r}s.prototype._update=function(e){for(var t=this._w,n=this._a|0,r=this._b|0,i=this._c|0,o=this._d|0,s=this._e|0,f=0;f<16;++f)t[f]=e.readInt32BE(f*4);for(;f<80;++f)t[f]=c(t[f-3]^t[f-8]^t[f-14]^t[f-16]);for(var p=0;p<80;++p){var m=~~(p/20),h=l(n)+d(m,r,i,o)+s+t[p]+a[m]|0;s=o,o=i,i=u(r),r=n,n=h}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e},t.exports=s})),tt=r(((e,t)=>{var n=B(),r=Qe(),i=f().Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],o=Array(64);function s(){this.init(),this._w=o,r.call(this,64,56)}n(s,r),s.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function c(e,t,n){return n^e&(t^n)}function l(e,t,n){return e&t|n&(e|t)}function u(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function p(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function m(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}s.prototype._update=function(e){for(var t=this._w,n=this._a|0,r=this._b|0,i=this._c|0,o=this._d|0,s=this._e|0,f=this._f|0,h=this._g|0,g=this._h|0,_=0;_<16;++_)t[_]=e.readInt32BE(_*4);for(;_<64;++_)t[_]=m(t[_-2])+t[_-7]+p(t[_-15])+t[_-16]|0;for(var v=0;v<64;++v){var y=g+d(s)+c(s,f,h)+a[v]+t[v]|0,b=u(n)+l(n,r,i)|0;g=h,h=f,f=s,s=o+y|0,o=i,i=r,r=n,n=y+b|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0,this._f=f+this._f|0,this._g=h+this._g|0,this._h=g+this._h|0},s.prototype._hash=function(){var e=i.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=s})),nt=r(((e,t)=>{var n=B(),r=tt(),i=Qe(),a=f().Buffer,o=Array(64);function s(){this.init(),this._w=o,i.call(this,64,56)}n(s,r),s.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},s.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=s})),rt=r(((e,t)=>{var n=B(),r=Qe(),i=f().Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],o=Array(160);function s(){this.init(),this._w=o,r.call(this,128,112)}n(s,r),s.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function c(e,t,n){return n^e&(t^n)}function l(e,t,n){return e&t|n&(e|t)}function u(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function m(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function h(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function _(e,t){return+(e>>>0<t>>>0)}s.prototype._update=function(e){for(var t=this._w,n=this._ah|0,r=this._bh|0,i=this._ch|0,o=this._dh|0,s=this._eh|0,f=this._fh|0,v=this._gh|0,y=this._hh|0,b=this._al|0,x=this._bl|0,S=this._cl|0,C=this._dl|0,w=this._el|0,T=this._fl|0,E=this._gl|0,D=this._hl|0,O=0;O<32;O+=2)t[O]=e.readInt32BE(O*4),t[O+1]=e.readInt32BE(O*4+4);for(;O<160;O+=2){var k=t[O-30],A=t[O-30+1],ee=p(k,A),j=m(A,k);k=t[O-4],A=t[O-4+1];var M=h(k,A),te=g(A,k),N=t[O-14],P=t[O-14+1],F=t[O-32],I=t[O-32+1],L=j+P|0,R=ee+N+_(L,j)|0;L=L+te|0,R=R+M+_(L,te)|0,L=L+I|0,R=R+F+_(L,I)|0,t[O]=R,t[O+1]=L}for(var z=0;z<160;z+=2){R=t[z],L=t[z+1];var B=l(n,r,i),ne=l(b,x,S),V=u(n,b),H=u(b,n),re=d(s,w),U=d(w,s),W=a[z],ie=a[z+1],G=c(s,f,v),K=c(w,T,E),ae=D+U|0,q=y+re+_(ae,D)|0;ae=ae+K|0,q=q+G+_(ae,K)|0,ae=ae+ie|0,q=q+W+_(ae,ie)|0,ae=ae+L|0,q=q+R+_(ae,L)|0;var J=H+ne|0,oe=V+B+_(J,H)|0;y=v,D=E,v=f,E=T,f=s,T=w,w=C+ae|0,s=o+q+_(w,C)|0,o=i,C=S,i=r,S=x,r=n,x=b,b=ae+J|0,n=q+oe+_(b,ae)|0}this._al=this._al+b|0,this._bl=this._bl+x|0,this._cl=this._cl+S|0,this._dl=this._dl+C|0,this._el=this._el+w|0,this._fl=this._fl+T|0,this._gl=this._gl+E|0,this._hl=this._hl+D|0,this._ah=this._ah+n+_(this._al,b)|0,this._bh=this._bh+r+_(this._bl,x)|0,this._ch=this._ch+i+_(this._cl,S)|0,this._dh=this._dh+o+_(this._dl,C)|0,this._eh=this._eh+s+_(this._el,w)|0,this._fh=this._fh+f+_(this._fl,T)|0,this._gh=this._gh+v+_(this._gl,E)|0,this._hh=this._hh+y+_(this._hl,D)|0},s.prototype._hash=function(){var e=i.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},t.exports=s})),it=r(((e,t)=>{var n=B(),r=rt(),i=Qe(),a=f().Buffer,o=Array(160);function s(){this.init(),this._w=o,i.call(this,128,112)}n(s,r),s.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},s.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},t.exports=s})),at=r(((e,t)=>{t.exports=function(e){var n=e.toLowerCase(),r=t.exports[n];if(!r)throw Error(n+` is not supported (we accept pull requests)`);return new r},t.exports.sha=$e(),t.exports.sha1=et(),t.exports.sha224=nt(),t.exports.sha256=tt(),t.exports.sha384=it(),t.exports.sha512=rt()})),ot=r((e=>{var t=f().Buffer,n=t.isEncoding||function(e){switch(e=``+e,e&&e.toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:case`raw`:return!0;default:return!1}};function r(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}function i(e){var i=r(e);if(typeof i!=`string`&&(t.isEncoding===n||!n(e)))throw Error(`Unknown encoding: `+e);return i||e}e.StringDecoder=a;function a(e){this.encoding=i(e);var n;switch(this.encoding){case`utf16le`:this.text=p,this.end=m,n=4;break;case`utf8`:this.fillLast=l,n=4;break;case`base64`:this.text=h,this.end=g,n=3;break;default:this.write=_,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return``;n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||``},a.prototype.end=d,a.prototype.text=u,a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function l(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function u(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function p(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function h(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-n))}function g(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function _(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):``}})),st=r(((e,t)=>{var n=f().Buffer,r=m().Transform,i=ot().StringDecoder,a=B(),o=Ne();function s(e){r.call(this),this.hashMode=typeof e==`string`,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&=(this.__final=this._final,null),this._decoder=null,this._encoding=null}a(s,r),s.prototype.update=function(e,t,n){var r=o(e,t),i=this._update(r);return this.hashMode?this:(n&&(i=this._toString(i,n)),i)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw Error(`trying to get auth tag in unsupported state`)},s.prototype.setAuthTag=function(){throw Error(`trying to set auth tag in unsupported state`)},s.prototype.setAAD=function(){throw Error(`trying to set aad in unsupported state`)},s.prototype._transform=function(e,t,n){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){r=e}finally{n(r)}},s.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},s.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},s.prototype._toString=function(e,t,n){if(this._decoder||(this._decoder=new i(t),this._encoding=t),this._encoding!==t)throw Error(`can’t switch encodings`);var r=this._decoder.write(e);return n&&(r+=this._decoder.end()),r},t.exports=s})),ct=r(((e,t)=>{var n=B(),r=V(),i=Ze(),a=at(),o=st();function s(e){o.call(this,`digest`),this._hash=e}n(s,o),s.prototype._update=function(e){this._hash.update(e)},s.prototype._final=function(){return this._hash.digest()},t.exports=function(e){return e=e.toLowerCase(),e===`md5`?new r:e===`rmd160`||e===`ripemd160`?new i:new s(a(e))}})),lt=r(((e,t)=>{var n=B(),r=f().Buffer,i=st(),a=r.alloc(128),o=64;function s(e,t){i.call(this,`digest`),typeof t==`string`&&(t=r.from(t)),this._alg=e,this._key=t,t.length>o?t=e(t):t.length<o&&(t=r.concat([t,a],o));for(var n=this._ipad=r.allocUnsafe(o),s=this._opad=r.allocUnsafe(o),c=0;c<o;c++)n[c]=t[c]^54,s[c]=t[c]^92;this._hash=[n]}n(s,i),s.prototype._update=function(e){this._hash.push(e)},s.prototype._final=function(){var e=this._alg(r.concat(this._hash));return this._alg(r.concat([this._opad,e]))},t.exports=s})),ut=r(((e,t)=>{var n=V();t.exports=function(e){return new n().update(e).digest()}})),dt=r(((e,t)=>{var n=B(),r=lt(),i=st(),a=f().Buffer,o=ut(),s=Ze(),c=at(),l=a.alloc(128);function u(e,t){i.call(this,`digest`),typeof t==`string`&&(t=a.from(t));var n=e===`sha512`||e===`sha384`?128:64;this._alg=e,this._key=t,t.length>n?t=(e===`rmd160`?new s:c(e)).update(t).digest():t.length<n&&(t=a.concat([t,l],n));for(var r=this._ipad=a.allocUnsafe(n),o=this._opad=a.allocUnsafe(n),u=0;u<n;u++)r[u]=t[u]^54,o[u]=t[u]^92;this._hash=e===`rmd160`?new s:c(e),this._hash.update(r)}n(u,i),u.prototype._update=function(e){this._hash.update(e)},u.prototype._final=function(){var e=this._hash.digest();return(this._alg===`rmd160`?new s:c(this._alg)).update(this._opad).update(e).digest()},t.exports=function(e,t){return e=e.toLowerCase(),e===`rmd160`||e===`ripemd160`?new u(`rmd160`,t):e===`md5`?new r(o,t):new u(e,t)}})),ft=n({DSA:()=>xt,default:()=>wt,md5WithRSAEncryption:()=>Ct,ripemd160WithRSA:()=>St,sha224:()=>vt,sha224WithRSAEncryption:()=>pt,sha256:()=>_t,sha256WithRSAEncryption:()=>mt,sha384:()=>yt,sha384WithRSAEncryption:()=>ht,sha512:()=>bt,sha512WithRSAEncryption:()=>gt}),pt,mt,ht,gt,_t,vt,yt,bt,xt,St,Ct,wt,Tt=e((()=>{pt={sign:`rsa`,hash:`sha224`,id:`302d300d06096086480165030402040500041c`},mt={sign:`rsa`,hash:`sha256`,id:`3031300d060960864801650304020105000420`},ht={sign:`rsa`,hash:`sha384`,id:`3041300d060960864801650304020205000430`},gt={sign:`rsa`,hash:`sha512`,id:`3051300d060960864801650304020305000440`},_t={sign:`ecdsa`,hash:`sha256`,id:``},vt={sign:`ecdsa`,hash:`sha224`,id:``},yt={sign:`ecdsa`,hash:`sha384`,id:``},bt={sign:`ecdsa`,hash:`sha512`,id:``},xt={sign:`dsa`,hash:`sha1`,id:``},St={sign:`rsa`,hash:`rmd160`,id:`3021300906052b2403020105000414`},Ct={sign:`rsa`,hash:`md5`,id:`3020300c06082a864886f70d020505000410`},wt={sha224WithRSAEncryption:pt,"RSA-SHA224":{sign:`ecdsa/rsa`,hash:`sha224`,id:`302d300d06096086480165030402040500041c`},sha256WithRSAEncryption:mt,"RSA-SHA256":{sign:`ecdsa/rsa`,hash:`sha256`,id:`3031300d060960864801650304020105000420`},sha384WithRSAEncryption:ht,"RSA-SHA384":{sign:`ecdsa/rsa`,hash:`sha384`,id:`3041300d060960864801650304020205000430`},sha512WithRSAEncryption:gt,"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:_t,sha224:vt,sha384:yt,sha512:bt,"DSA-SHA":{sign:`dsa`,hash:`sha1`,id:``},"DSA-SHA1":{sign:`dsa`,hash:`sha1`,id:``},DSA:xt,"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:St,"RSA-RIPEMD160":{sign:`rsa`,hash:`rmd160`,id:`3021300906052b2403020105000414`},md5WithRSAEncryption:Ct,"RSA-MD5":{sign:`rsa`,hash:`md5`,id:`3020300c06082a864886f70d020505000410`}}})),Et=r(((e,n)=>{n.exports=(Tt(),t(ft).default)})),Dt=r(((e,t)=>{var n=isFinite,r=2**30-1;t.exports=function(e,t){if(typeof e!=`number`)throw TypeError(`Iterations not a number`);if(e<0||!n(e))throw TypeError(`Bad iterations`);if(typeof t!=`number`)throw TypeError(`Key length not a number`);if(t<0||t>r||t!==t)throw TypeError(`Bad key length`);return t+0}})),Ot=r(((e,t)=>{o(),a(),t.exports=s.process&&s.process.browser?`utf-8`:s.process&&s.process.version?parseInt(i.version.split(`.`)[0].slice(1),10)>=6?`utf-8`:`binary`:`utf-8`})),kt=r(((e,t)=>{var n=f().Buffer,r=Ne(),i=typeof Uint8Array<`u`,a=i&&typeof ArrayBuffer<`u`&&ArrayBuffer.isView;t.exports=function(e,t,o){if(typeof e==`string`||n.isBuffer(e)||i&&e instanceof Uint8Array||a&&a(e))return r(e,t);throw TypeError(o+` must be a string, a Buffer, a Uint8Array, or a DataView`)}})),At=r(((e,t)=>{var n=ut(),r=Ze(),i=at(),a=f().Buffer,o=Dt(),s=Ot(),c=kt(),l=a.alloc(128),u={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},d={__proto__:null,"sha-1":`sha1`,"sha-224":`sha224`,"sha-256":`sha256`,"sha-384":`sha384`,"sha-512":`sha512`,"ripemd-160":`ripemd160`};function p(e){return new r().update(e).digest()}function m(e){function t(t){return i(e).update(t).digest()}return e===`rmd160`||e===`ripemd160`?p:e===`md5`?n:t}function h(e,t,n){var r=m(e),i=e===`sha512`||e===`sha384`?128:64;t.length>i?t=r(t):t.length<i&&(t=a.concat([t,l],i));for(var o=a.allocUnsafe(i+u[e]),s=a.allocUnsafe(i+u[e]),c=0;c<i;c++)o[c]=t[c]^54,s[c]=t[c]^92;var d=a.allocUnsafe(i+n+4);o.copy(d,0,0,i),this.ipad1=d,this.ipad2=o,this.opad=s,this.alg=e,this.blocksize=i,this.hash=r,this.size=u[e]}h.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)};function g(e,t,n,r,i){r=o(n,r),e=c(e,s,`Password`),t=c(t,s,`Salt`);var l=(i||`sha1`).toLowerCase(),f=d[l]||l,p=u[f];if(typeof p!=`number`||!p)throw TypeError(`Digest algorithm not supported: `+i);var m=new h(f,e,t.length),g=a.allocUnsafe(r),_=a.allocUnsafe(t.length+4);t.copy(_,0,0,t.length);for(var v=0,y=p,b=Math.ceil(r/y),x=1;x<=b;x++){_.writeUInt32BE(x,t.length);for(var S=m.run(_,m.ipad1),C=S,w=1;w<n;w++){C=m.run(C,m.ipad2);for(var T=0;T<y;T++)S[T]^=C[T]}S.copy(g,v),v+=y}return g}t.exports=g})),jt=r(((e,t)=>{o();var n=f().Buffer,r=Dt(),i=Ot(),a=At(),c=kt(),l,u=s.crypto&&s.crypto.subtle,d={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`},p=[],m;function h(){return m||(m=s.process&&s.process.nextTick?s.process.nextTick:s.queueMicrotask?s.queueMicrotask:s.setImmediate?s.setImmediate:s.setTimeout,m)}function g(e,t,r,i,a){return u.importKey(`raw`,e,{name:`PBKDF2`},!1,[`deriveBits`]).then(function(e){return u.deriveBits({name:`PBKDF2`,salt:t,iterations:r,hash:{name:a}},e,i<<3)}).then(function(e){return n.from(e)})}function _(e){if(s.process&&!s.process.browser||!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(p[e]!==void 0)return p[e];l||=n.alloc(8);var t=g(l,l,10,128,e).then(function(){return!0},function(){return!1});return p[e]=t,t}function v(e,t){e.then(function(e){h()(function(){t(null,e)})},function(e){h()(function(){t(e)})})}t.exports=function(e,t,n,o,l,u){if(typeof l==`function`&&(u=l,l=void 0),o=r(n,o),e=c(e,i,`Password`),t=c(t,i,`Salt`),typeof u!=`function`)throw Error(`No callback provided to pbkdf2`);l||=`sha1`;var f=d[l.toLowerCase()];if(!f||typeof s.Promise!=`function`){h()(function(){var r;try{r=a(e,t,n,o,l)}catch(e){u(e);return}u(null,r)});return}v(_(f).then(function(r){return r?g(e,t,n,o,f):a(e,t,n,o,l)}),u)}})),Mt=r((e=>{e.pbkdf2=jt(),e.pbkdf2Sync=At()})),Nt=r((e=>{e.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},e.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=t&255},e.ip=function(e,t,n,r){for(var i=0,a=0,o=6;o>=0;o-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+o&1;for(var s=0;s<=24;s+=8)i<<=1,i|=e>>>s+o&1}for(var o=6;o>=0;o-=2){for(var s=1;s<=25;s+=8)a<<=1,a|=t>>>s+o&1;for(var s=1;s<=25;s+=8)a<<=1,a|=e>>>s+o&1}n[r+0]=i>>>0,n[r+1]=a>>>0},e.rip=function(e,t,n,r){for(var i=0,a=0,o=0;o<4;o++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+o&1,i<<=1,i|=e>>>s+o&1;for(var o=4;o<8;o++)for(var s=24;s>=0;s-=8)a<<=1,a|=t>>>s+o&1,a<<=1,a|=e>>>s+o&1;n[r+0]=i>>>0,n[r+1]=a>>>0},e.pc1=function(e,t,n,r){for(var i=0,a=0,o=7;o>=5;o--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+o&1}for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(var o=1;o<=3;o++){for(var s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1;for(var s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1}for(var s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1;n[r+0]=i>>>0,n[r+1]=a>>>0},e.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var t=[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];e.pc2=function(e,n,r,i){for(var a=0,o=0,s=t.length>>>1,c=0;c<s;c++)a<<=1,a|=e>>>t[c]&1;for(var c=s;c<t.length;c++)o<<=1,o|=n>>>t[c]&1;r[i+0]=a>>>0,r[i+1]=o>>>0},e.expand=function(e,t,n){var r=0,i=0;r=(e&1)<<5|e>>>27;for(var a=23;a>=15;a-=4)r<<=6,r|=e>>>a&63;for(var a=11;a>=3;a-=4)i|=e>>>a&63,i<<=6;i|=(e&31)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=i>>>0};var n=[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];e.substitute=function(e,t){for(var r=0,i=0;i<4;i++){var a=e>>>18-i*6&63,o=n[i*64+a];r<<=4,r|=o}for(var i=0;i<4;i++){var a=t>>>18-i*6&63,o=n[256+i*64+a];r<<=4,r|=o}return r>>>0};var r=[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];e.permute=function(e){for(var t=0,n=0;n<r.length;n++)t<<=1,t|=e>>>r[n]&1;return t>>>0},e.padSplit=function(e,t,n){for(var r=e.toString(2);r.length<t;)r=`0`+r;for(var i=[],a=0;a<t;a+=n)i.push(r.slice(a,a+n));return i.join(` `)}})),Pt=r(((e,t)=>{var n=I();function r(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=Array(this.blockSize),this.bufferOff=0,this.padding=e.padding!==!1}t.exports=r,r.prototype._init=function(){},r.prototype.update=function(e){return e.length===0?[]:this.type===`decrypt`?this._updateDecrypt(e):this._updateEncrypt(e)},r.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),r=0;r<n;r++)this.buffer[this.bufferOff+r]=e[t+r];return this.bufferOff+=n,n},r.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},r.prototype._updateEncrypt=function(e){var t=0,n=0,r=(this.bufferOff+e.length)/this.blockSize|0,i=Array(r*this.blockSize);this.bufferOff!==0&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(i,n)));for(var a=e.length-(e.length-t)%this.blockSize;t<a;t+=this.blockSize)this._update(e,t,i,n),n+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},r.prototype._updateDecrypt=function(e){for(var t=0,n=0,r=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=Array(r*this.blockSize);r>0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(i,n);return t+=this._buffer(e,t),i},r.prototype.final=function(e){var t;e&&(t=this.update(e));var n=this.type===`encrypt`?this._finalEncrypt():this._finalDecrypt();return t?t.concat(n):n},r.prototype._pad=function(e,t){if(t===0)return!1;for(;t<e.length;)e[t++]=0;return!0},r.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=Array(this.blockSize);return this._update(this.buffer,0,e,0),e},r.prototype._unpad=function(e){return e},r.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,`Not enough data to decrypt`);var e=Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}})),Ft=r(((e,t)=>{var n=I(),r=B(),i=Nt(),a=Pt();function o(){this.tmp=[,,],this.keys=null}function s(e){a.call(this,e);var t=new o;this._desState=t,this.deriveKeys(t,e.key)}r(s,a),t.exports=s,s.create=function(e){return new s(e)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];s.prototype.deriveKeys=function(e,t){e.keys=Array(32),n.equal(t.length,this.blockSize,`Invalid key length`);var r=i.readUInt32BE(t,0),a=i.readUInt32BE(t,4);i.pc1(r,a,e.tmp,0),r=e.tmp[0],a=e.tmp[1];for(var o=0;o<e.keys.length;o+=2){var s=c[o>>>1];r=i.r28shl(r,s),a=i.r28shl(a,s),i.pc2(r,a,e.keys,o)}},s.prototype._update=function(e,t,n,r){var a=this._desState,o=i.readUInt32BE(e,t),s=i.readUInt32BE(e,t+4);i.ip(o,s,a.tmp,0),o=a.tmp[0],s=a.tmp[1],this.type===`encrypt`?this._encrypt(a,o,s,a.tmp,0):this._decrypt(a,o,s,a.tmp,0),o=a.tmp[0],s=a.tmp[1],i.writeUInt32BE(n,o,r),i.writeUInt32BE(n,s,r+4)},s.prototype._pad=function(e,t){if(this.padding===!1)return!1;for(var n=e.length-t,r=t;r<e.length;r++)e[r]=n;return!0},s.prototype._unpad=function(e){if(this.padding===!1)return e;for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)n.equal(e[r],t);return e.slice(0,e.length-t)},s.prototype._encrypt=function(e,t,n,r,a){for(var o=t,s=n,c=0;c<e.keys.length;c+=2){var l=e.keys[c],u=e.keys[c+1];i.expand(s,e.tmp,0),l^=e.tmp[0],u^=e.tmp[1];var d=i.substitute(l,u),f=i.permute(d),p=s;s=(o^f)>>>0,o=p}i.rip(s,o,r,a)},s.prototype._decrypt=function(e,t,n,r,a){for(var o=n,s=t,c=e.keys.length-2;c>=0;c-=2){var l=e.keys[c],u=e.keys[c+1];i.expand(o,e.tmp,0),l^=e.tmp[0],u^=e.tmp[1];var d=i.substitute(l,u),f=i.permute(d),p=o;o=(s^f)>>>0,s=p}i.rip(o,s,r,a)}})),It=r((e=>{var t=I(),n=B(),r={};function i(e){t.equal(e.length,8,`Invalid IV length`),this.iv=Array(8);for(var n=0;n<this.iv.length;n++)this.iv[n]=e[n]}function a(e){function t(t){e.call(this,t),this._cbcInit()}n(t,e);for(var i=Object.keys(r),a=0;a<i.length;a++){var o=i[a];t.prototype[o]=r[o]}return t.create=function(e){return new t(e)},t}e.instantiate=a,r._cbcInit=function(){var e=new i(this.options.iv);this._cbcState=e},r._update=function(e,t,n,r){var i=this._cbcState,a=this.constructor.super_.prototype,o=i.iv;if(this.type===`encrypt`){for(var s=0;s<this.blockSize;s++)o[s]^=e[t+s];a._update.call(this,o,0,n,r);for(var s=0;s<this.blockSize;s++)o[s]=n[r+s]}else{a._update.call(this,e,t,n,r);for(var s=0;s<this.blockSize;s++)n[r+s]^=o[s];for(var s=0;s<this.blockSize;s++)o[s]=e[t+s]}}})),Lt=r(((e,t)=>{var n=I(),r=B(),i=Pt(),a=Ft();function o(e,t){n.equal(t.length,24,`Invalid key length`);var r=t.slice(0,8),i=t.slice(8,16),o=t.slice(16,24);this.ciphers=e===`encrypt`?[a.create({type:`encrypt`,key:r}),a.create({type:`decrypt`,key:i}),a.create({type:`encrypt`,key:o})]:[a.create({type:`decrypt`,key:o}),a.create({type:`encrypt`,key:i}),a.create({type:`decrypt`,key:r})]}function s(e){i.call(this,e);var t=new o(this.type,this.options.key);this._edeState=t}r(s,i),t.exports=s,s.create=function(e){return new s(e)},s.prototype._update=function(e,t,n,r){var i=this._edeState;i.ciphers[0]._update(e,t,n,r),i.ciphers[1]._update(n,r,n,r),i.ciphers[2]._update(n,r,n,r)},s.prototype._pad=a.prototype._pad,s.prototype._unpad=a.prototype._unpad})),Rt=r((e=>{e.utils=Nt(),e.Cipher=Pt(),e.DES=Ft(),e.CBC=It(),e.EDE=Lt()})),zt=r(((e,t)=>{var n=st(),r=Rt(),i=B(),a=f().Buffer,o={"des-ede3-cbc":r.CBC.instantiate(r.EDE),"des-ede3":r.EDE,"des-ede-cbc":r.CBC.instantiate(r.EDE),"des-ede":r.EDE,"des-cbc":r.CBC.instantiate(r.DES),"des-ecb":r.DES};o.des=o[`des-cbc`],o.des3=o[`des-ede3-cbc`],t.exports=s,i(s,n);function s(e){n.call(this);var t=e.mode.toLowerCase(),r=o[t],i=e.decrypt?`decrypt`:`encrypt`,s=e.key;a.isBuffer(s)||(s=a.from(s)),(t===`des-ede`||t===`des-ede-cbc`)&&(s=a.concat([s,s.slice(0,8)]));var c=e.iv;a.isBuffer(c)||(c=a.from(c)),this._des=r.create({key:s,iv:c,type:i})}s.prototype._update=function(e){return a.from(this._des.update(e))},s.prototype._final=function(){return a.from(this._des.final())}})),Bt=r((e=>{e.encrypt=function(e,t){return e._cipher.encryptBlock(t)},e.decrypt=function(e,t){return e._cipher.decryptBlock(t)}})),Vt=r(((e,t)=>{c(),t.exports=function(e,t){for(var n=Math.min(e.length,t.length),r=new l(n),i=0;i<n;++i)r[i]=e[i]^t[i];return r}})),Ht=r((e=>{var t=Vt();e.encrypt=function(e,n){var r=t(n,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},e.decrypt=function(e,n){var r=e._prev;return e._prev=n,t(e._cipher.decryptBlock(n),r)}})),Ut=r((e=>{var t=f().Buffer,n=Vt();function r(e,r,i){var a=r.length,o=n(r,e._cache);return e._cache=e._cache.slice(a),e._prev=t.concat([e._prev,i?r:o]),o}e.encrypt=function(e,n,i){for(var a=t.allocUnsafe(0),o;n.length;)if(e._cache.length===0&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=t.allocUnsafe(0)),e._cache.length<=n.length)o=e._cache.length,a=t.concat([a,r(e,n.slice(0,o),i)]),n=n.slice(o);else{a=t.concat([a,r(e,n,i)]);break}return a}})),Wt=r((e=>{var t=f().Buffer;function n(e,n,r){var i=e._cipher.encryptBlock(e._prev)[0]^n;return e._prev=t.concat([e._prev.slice(1),t.from([r?n:i])]),i}e.encrypt=function(e,r,i){for(var a=r.length,o=t.allocUnsafe(a),s=-1;++s<a;)o[s]=n(e,r[s],i);return o}})),Gt=r((e=>{var t=f().Buffer;function n(e,t,n){for(var i,a=-1,o=8,s=0,c,l;++a<o;)i=e._cipher.encryptBlock(e._prev),c=t&1<<7-a?128:0,l=i[0]^c,s+=(l&128)>>a%8,e._prev=r(e._prev,n?c:l);return s}function r(e,n){var r=e.length,i=-1,a=t.allocUnsafe(e.length);for(e=t.concat([e,t.from([n])]);++i<r;)a[i]=e[i]<<1|e[i+1]>>7;return a}e.encrypt=function(e,r,i){for(var a=r.length,o=t.allocUnsafe(a),s=-1;++s<a;)o[s]=n(e,r[s],i);return o}})),Kt=r((e=>{c();var t=Vt();function n(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}e.encrypt=function(e,r){for(;e._cache.length<r.length;)e._cache=l.concat([e._cache,n(e)]);var i=e._cache.slice(0,r.length);return e._cache=e._cache.slice(r.length),t(r,i)}})),qt=r(((e,t)=>{function n(e){for(var t=e.length,n;t--;)if(n=e.readUInt8(t),n===255)e.writeUInt8(0,t);else{n++,e.writeUInt8(n,t);break}}t.exports=n})),Jt=r((e=>{var t=Vt(),n=f().Buffer,r=qt();function i(e){var t=e._cipher.encryptBlockRaw(e._prev);return r(e._prev),t}var a=16;e.encrypt=function(e,r){var o=Math.ceil(r.length/a),s=e._cache.length;e._cache=n.concat([e._cache,n.allocUnsafe(o*a)]);for(var c=0;c<o;c++){var l=i(e),u=s+c*a;e._cache.writeUInt32BE(l[0],u+0),e._cache.writeUInt32BE(l[1],u+4),e._cache.writeUInt32BE(l[2],u+8),e._cache.writeUInt32BE(l[3],u+12)}var d=e._cache.slice(0,r.length);return e._cache=e._cache.slice(r.length),t(r,d)}})),Yt=n({aes128:()=>Xt,aes192:()=>Zt,aes256:()=>Qt,default:()=>$t}),Xt,Zt,Qt,$t,en=e((()=>{Xt={cipher:`AES`,key:128,iv:16,mode:`CBC`,type:`block`},Zt={cipher:`AES`,key:192,iv:16,mode:`CBC`,type:`block`},Qt={cipher:`AES`,key:256,iv:16,mode:`CBC`,type:`block`},$t={"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:Xt,aes192:Zt,aes256:Qt,"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`}}})),tn=r(((e,n)=>{var r={ECB:Bt(),CBC:Ht(),CFB:Ut(),CFB8:Wt(),CFB1:Gt(),OFB:Kt(),CTR:Jt(),GCM:Jt()},i=(en(),t(Yt).default);for(var a in i)i[a].module=r[i[a].mode];n.exports=i})),nn=r(((e,t)=>{var n=f().Buffer;function r(e){n.isBuffer(e)||(e=n.from(e));for(var t=e.length/4|0,r=Array(t),i=0;i<t;i++)r[i]=e.readUInt32BE(i*4);return r}function i(e){for(var t=0;t<e.length;e++)e[t]=0}function a(e,t,n,r,i){for(var a=n[0],o=n[1],s=n[2],c=n[3],l=e[0]^t[0],u=e[1]^t[1],d=e[2]^t[2],f=e[3]^t[3],p,m,h,g,_=4,v=1;v<i;v++)p=a[l>>>24]^o[u>>>16&255]^s[d>>>8&255]^c[f&255]^t[_++],m=a[u>>>24]^o[d>>>16&255]^s[f>>>8&255]^c[l&255]^t[_++],h=a[d>>>24]^o[f>>>16&255]^s[l>>>8&255]^c[u&255]^t[_++],g=a[f>>>24]^o[l>>>16&255]^s[u>>>8&255]^c[d&255]^t[_++],l=p,u=m,d=h,f=g;return p=(r[l>>>24]<<24|r[u>>>16&255]<<16|r[d>>>8&255]<<8|r[f&255])^t[_++],m=(r[u>>>24]<<24|r[d>>>16&255]<<16|r[f>>>8&255]<<8|r[l&255])^t[_++],h=(r[d>>>24]<<24|r[f>>>16&255]<<16|r[l>>>8&255]<<8|r[u&255])^t[_++],g=(r[f>>>24]<<24|r[l>>>16&255]<<16|r[u>>>8&255]<<8|r[d&255])^t[_++],p>>>=0,m>>>=0,h>>>=0,g>>>=0,[p,m,h,g]}var o=[0,1,2,4,8,16,32,64,128,27,54],s=(function(){for(var e=Array(256),t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var n=[],r=[],i=[[],[],[],[]],a=[[],[],[],[]],o=0,s=0,c=0;c<256;++c){var l=s^s<<1^s<<2^s<<3^s<<4;l=l>>>8^l&255^99,n[o]=l,r[l]=o;var u=e[o],d=e[u],f=e[d],p=e[l]*257^l*16843008;i[0][o]=p<<24|p>>>8,i[1][o]=p<<16|p>>>16,i[2][o]=p<<8|p>>>24,i[3][o]=p,p=f*16843009^d*65537^u*257^o*16843008,a[0][l]=p<<24|p>>>8,a[1][l]=p<<16|p>>>16,a[2][l]=p<<8|p>>>24,a[3][l]=p,o===0?o=s=1:(o=u^e[e[e[f^u]]],s^=e[e[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:a}})();function c(e){this._key=r(e),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=(n+1)*4,i=[],a=0;a<t;a++)i[a]=e[a];for(a=t;a<r;a++){var c=i[a-1];a%t===0?(c=c<<8|c>>>24,c=s.SBOX[c>>>24]<<24|s.SBOX[c>>>16&255]<<16|s.SBOX[c>>>8&255]<<8|s.SBOX[c&255],c^=o[a/t|0]<<24):t>6&&a%t===4&&(c=s.SBOX[c>>>24]<<24|s.SBOX[c>>>16&255]<<16|s.SBOX[c>>>8&255]<<8|s.SBOX[c&255]),i[a]=i[a-t]^c}for(var l=[],u=0;u<r;u++){var d=r-u,f=i[d-(u%4?0:4)];u<4||d<=4?l[u]=f:l[u]=s.INV_SUB_MIX[0][s.SBOX[f>>>24]]^s.INV_SUB_MIX[1][s.SBOX[f>>>16&255]]^s.INV_SUB_MIX[2][s.SBOX[f>>>8&255]]^s.INV_SUB_MIX[3][s.SBOX[f&255]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=l},c.prototype.encryptBlockRaw=function(e){return e=r(e),a(e,this._keySchedule,s.SUB_MIX,s.SBOX,this._nRounds)},c.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},c.prototype.decryptBlock=function(e){e=r(e);var t=e[1];e[1]=e[3],e[3]=t;var i=a(e,this._invKeySchedule,s.INV_SUB_MIX,s.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(i[0],0),o.writeUInt32BE(i[3],4),o.writeUInt32BE(i[2],8),o.writeUInt32BE(i[1],12),o},c.prototype.scrub=function(){i(this._keySchedule),i(this._invKeySchedule),i(this._key)},t.exports.AES=c})),rn=r(((e,t)=>{var n=f().Buffer,r=n.alloc(16,0);function i(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}function a(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function o(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}o.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},o.prototype._multiply=function(){for(var e=i(this.h),t=[0,0,0,0],n,r,o,s=-1;++s<128;){for(r=!!(this.state[~~(s/8)]&1<<7-s%8),r&&(t[0]^=e[0],t[1]^=e[1],t[2]^=e[2],t[3]^=e[3]),o=!!(e[3]&1),n=3;n>0;n--)e[n]=e[n]>>>1|(e[n-1]&1)<<31;e[0]>>>=1,o&&(e[0]^=225<<24)}this.state=a(t)},o.prototype.update=function(e){this.cache=n.concat([this.cache,e]);for(var t;this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},o.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,r],16)),this.ghash(a([0,e,0,t])),this.state},t.exports=o})),an=r(((e,t)=>{var n=nn(),r=f().Buffer,i=st(),a=B(),o=rn(),s=Vt(),c=qt();function l(e,t){var n=0;e.length!==t.length&&n++;for(var r=Math.min(e.length,t.length),i=0;i<r;++i)n+=e[i]^t[i];return n}function u(e,t,n){if(t.length===12)return e._finID=r.concat([t,r.from([0,0,0,1])]),r.concat([t,r.from([0,0,0,2])]);var i=new o(n),a=t.length,s=a%16;i.update(t),s&&(s=16-s,i.update(r.alloc(s,0))),i.update(r.alloc(8,0));var l=a*8,u=r.alloc(8);u.writeUIntBE(l,0,8),i.update(u),e._finID=i.state;var d=r.from(e._finID);return c(d),d}function d(e,t,a,s){i.call(this);var c=r.alloc(4,0);this._cipher=new n.AES(t);var l=this._cipher.encryptBlock(c);this._ghash=new o(l),a=u(this,a,l),this._prev=r.from(a),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=s,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}a(d,i),d.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=r.alloc(t,0),this._ghash.update(t))}this._called=!0;var n=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(n),this._len+=e.length,n},d.prototype._final=function(){if(this._decrypt&&!this._authTag)throw Error(`Unsupported state or unable to authenticate data`);var e=s(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&l(e,this._authTag))throw Error(`Unsupported state or unable to authenticate data`);this._authTag=e,this._cipher.scrub()},d.prototype.getAuthTag=function(){if(this._decrypt||!r.isBuffer(this._authTag))throw Error(`Attempting to get auth tag in unsupported state`);return this._authTag},d.prototype.setAuthTag=function(e){if(!this._decrypt)throw Error(`Attempting to set auth tag in unsupported state`);this._authTag=e},d.prototype.setAAD=function(e){if(this._called)throw Error(`Attempting to set AAD in unsupported state`);this._ghash.update(e),this._alen+=e.length},t.exports=d})),on=r(((e,t)=>{var n=nn(),r=f().Buffer,i=st(),a=B();function o(e,t,a,o){i.call(this),this._cipher=new n.AES(t),this._prev=r.from(a),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=o,this._mode=e}a(o,i),o.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()},t.exports=o})),sn=r(((e,t)=>{var n=f().Buffer,r=V();function i(e,t,i,a){if(n.isBuffer(e)||(e=n.from(e,`binary`)),t&&(n.isBuffer(t)||(t=n.from(t,`binary`)),t.length!==8))throw RangeError(`salt should be Buffer with 8 byte length`);for(var o=i/8,s=n.alloc(o),c=n.alloc(a||0),l=n.alloc(0);o>0||a>0;){var u=new r;u.update(l),u.update(e),t&&u.update(t),l=u.digest();var d=0;if(o>0){var f=s.length-o;d=Math.min(o,l.length),l.copy(s,f,0,d),o-=d}if(d<l.length&&a>0){var p=c.length-a,m=Math.min(a,l.length-d);l.copy(c,p,d,d+m),a-=m}}return l.fill(0),{key:s,iv:c}}t.exports=i})),cn=r((e=>{var t=tn(),n=an(),r=f().Buffer,i=on(),a=st(),o=nn(),s=sn(),c=B();function l(e,t,n){a.call(this),this._cache=new d,this._cipher=new o.AES(t),this._prev=r.from(n),this._mode=e,this._autopadding=!0}c(l,a),l.prototype._update=function(e){this._cache.add(e);for(var t,n,i=[];t=this._cache.get();)n=this._mode.encrypt(this,t),i.push(n);return r.concat(i)};var u=r.alloc(16,16);l.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(u))throw this._cipher.scrub(),Error(`data not multiple of block length`)},l.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this};function d(){this.cache=r.allocUnsafe(0)}d.prototype.add=function(e){this.cache=r.concat([this.cache,e])},d.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},d.prototype.flush=function(){for(var e=16-this.cache.length,t=r.allocUnsafe(e),n=-1;++n<e;)t.writeUInt8(e,n);return r.concat([this.cache,t])};function p(e,a,o){var s=t[e.toLowerCase()];if(!s)throw TypeError(`invalid suite type`);if(typeof a==`string`&&(a=r.from(a)),a.length!==s.key/8)throw TypeError(`invalid key length `+a.length);if(typeof o==`string`&&(o=r.from(o)),s.mode!==`GCM`&&o.length!==s.iv)throw TypeError(`invalid iv length `+o.length);return s.type===`stream`?new i(s.module,a,o):s.type===`auth`?new n(s.module,a,o):new l(s.module,a,o)}function m(e,n){var r=t[e.toLowerCase()];if(!r)throw TypeError(`invalid suite type`);var i=s(n,!1,r.key,r.iv);return p(e,i.key,i.iv)}e.createCipheriv=p,e.createCipher=m})),ln=r((e=>{var t=an(),n=f().Buffer,r=tn(),i=on(),a=st(),o=nn(),s=sn(),c=B();function l(e,t,r){a.call(this),this._cache=new u,this._last=void 0,this._cipher=new o.AES(t),this._prev=n.from(r),this._mode=e,this._autopadding=!0}c(l,a),l.prototype._update=function(e){this._cache.add(e);for(var t,r,i=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),i.push(r);return n.concat(i)},l.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return d(this._mode.decrypt(this,e));if(e)throw Error(`data not multiple of block length`)},l.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this};function u(){this.cache=n.allocUnsafe(0)}u.prototype.add=function(e){this.cache=n.concat([this.cache,e])},u.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},u.prototype.flush=function(){if(this.cache.length)return this.cache};function d(e){var t=e[15];if(t<1||t>16)throw Error(`unable to decrypt data`);for(var n=-1;++n<t;)if(e[n+(16-t)]!==t)throw Error(`unable to decrypt data`);if(t!==16)return e.slice(0,16-t)}function p(e,a,o){var s=r[e.toLowerCase()];if(!s)throw TypeError(`invalid suite type`);if(typeof o==`string`&&(o=n.from(o)),s.mode!==`GCM`&&o.length!==s.iv)throw TypeError(`invalid iv length `+o.length);if(typeof a==`string`&&(a=n.from(a)),a.length!==s.key/8)throw TypeError(`invalid key length `+a.length);return s.type===`stream`?new i(s.module,a,o,!0):s.type===`auth`?new t(s.module,a,o,!0):new l(s.module,a,o)}function m(e,t){var n=r[e.toLowerCase()];if(!n)throw TypeError(`invalid suite type`);var i=s(t,!1,n.key,n.iv);return p(e,i.key,i.iv)}e.createDecipher=m,e.createDecipheriv=p})),un=r((e=>{var n=cn(),r=ln(),i=(en(),t(Yt).default);function a(){return Object.keys(i)}e.createCipher=e.Cipher=n.createCipher,e.createCipheriv=e.Cipheriv=n.createCipheriv,e.createDecipher=e.Decipher=r.createDecipher,e.createDecipheriv=e.Decipheriv=r.createDecipheriv,e.listCiphers=e.getCiphers=a})),dn=r((e=>{e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}})),fn=r((e=>{var t=zt(),n=un(),r=tn(),i=dn(),a=sn();function o(e,t){e=e.toLowerCase();var n,o;if(r[e])n=r[e].key,o=r[e].iv;else if(i[e])n=i[e].key*8,o=i[e].iv;else throw TypeError(`invalid suite type`);var s=a(t,!1,n,o);return c(e,s.key,s.iv)}function s(e,t){e=e.toLowerCase();var n,o;if(r[e])n=r[e].key,o=r[e].iv;else if(i[e])n=i[e].key*8,o=i[e].iv;else throw TypeError(`invalid suite type`);var s=a(t,!1,n,o);return l(e,s.key,s.iv)}function c(e,a,o){if(e=e.toLowerCase(),r[e])return n.createCipheriv(e,a,o);if(i[e])return new t({key:a,iv:o,mode:e});throw TypeError(`invalid suite type`)}function l(e,a,o){if(e=e.toLowerCase(),r[e])return n.createDecipheriv(e,a,o);if(i[e])return new t({key:a,iv:o,mode:e,decrypt:!0});throw TypeError(`invalid suite type`)}function u(){return Object.keys(i).concat(n.getCiphers())}e.createCipher=e.Cipher=o,e.createCipheriv=e.Cipheriv=c,e.createDecipher=e.Decipher=s,e.createDecipheriv=e.Decipheriv=l,e.listCiphers=e.getCiphers=u})),pn=r(((e,t)=>{var n=F(),r=dr();function i(e){this.rand=e||new r.Rand}t.exports=i,i.create=function(e){return new i(e)},i.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do var i=new n(this.rand.generate(r));while(i.cmp(e)>=0);return i},i.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},i.prototype.test=function(e,t,r){var i=e.bitLength(),a=n.mont(e),o=new n(1).toRed(a);t||=Math.max(1,i/48|0);for(var s=e.subn(1),c=0;!s.testn(c);c++);for(var l=e.shrn(c),u=s.toRed(a),d=!0;t>0;t--){var f=this._randrange(new n(2),s);r&&r(f);var p=f.toRed(a).redPow(l);if(p.cmp(o)!==0&&p.cmp(u)!==0){for(var m=1;m<c;m++){if(p=p.redSqr(),p.cmp(o)===0)return!1;if(p.cmp(u)===0)break}if(m===c)return!1}}return d},i.prototype.getDivisor=function(e,t){var r=e.bitLength(),i=n.mont(e),a=new n(1).toRed(i);t||=Math.max(1,r/48|0);for(var o=e.subn(1),s=0;!o.testn(s);s++);for(var c=e.shrn(s),l=o.toRed(i);t>0;t--){var u=this._randrange(new n(2),o),d=e.gcd(u);if(d.cmpn(1)!==0)return d;var f=u.toRed(i).redPow(c);if(f.cmp(a)!==0&&f.cmp(l)!==0){for(var p=1;p<s;p++){if(f=f.redSqr(),f.cmp(a)===0)return f.fromRed().subn(1).gcd(e);if(f.cmp(l)===0)break}if(p===s)return f=f.redSqr(),f.fromRed().subn(1).gcd(e)}}return!1}})),mn=r(((e,t)=>{var n=z();t.exports=_,_.simpleSieve=h,_.fermatTest=g;var r=F(),i=new r(24),a=new(pn()),o=new r(1),s=new r(2),c=new r(5);new r(16),new r(8);var l=new r(10),u=new r(3);new r(7);var d=new r(11),f=new r(4);new r(12);var p=null;function m(){if(p!==null)return p;var e=1048576,t=[];t[0]=2;for(var n=1,r=3;r<e;r+=2){for(var i=Math.ceil(Math.sqrt(r)),a=0;a<n&&t[a]<=i&&r%t[a]!==0;a++);n!==a&&t[a]<=i||(t[n++]=r)}return p=t,t}function h(e){for(var t=m(),n=0;n<t.length;n++)if(e.modn(t[n])===0)return e.cmpn(t[n])===0;return!0}function g(e){var t=r.mont(e);return s.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)===0}function _(e,t){if(e<16)return t===2||t===5?new r([140,123]):new r([140,39]);t=new r(t);for(var p,m;;){for(p=new r(n(Math.ceil(e/8)));p.bitLength()>e;)p.ishrn(1);if(p.isEven()&&p.iadd(o),p.testn(1)||p.iadd(s),!t.cmp(s))for(;p.mod(i).cmp(d);)p.iadd(f);else if(!t.cmp(c))for(;p.mod(l).cmp(u);)p.iadd(f);if(m=p.shrn(1),h(m)&&h(p)&&g(m)&&g(p)&&a.test(m)&&a.test(p))return p}}})),hn=n({default:()=>wn,modp1:()=>gn,modp14:()=>yn,modp15:()=>bn,modp16:()=>xn,modp17:()=>Sn,modp18:()=>Cn,modp2:()=>_n,modp5:()=>vn}),gn,_n,vn,yn,bn,xn,Sn,Cn,wn,Tn=e((()=>{gn={gen:`02`,prime:`ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff`},_n={gen:`02`,prime:`ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff`},vn={gen:`02`,prime:`ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff`},yn={gen:`02`,prime:`ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff`},bn={gen:`02`,prime:`ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff`},xn={gen:`02`,prime:`ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff`},Sn={gen:`02`,prime:`ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff`},Cn={gen:`02`,prime:`ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff`},wn={modp1:gn,modp2:_n,modp5:vn,modp14:yn,modp15:bn,modp16:xn,modp17:Sn,modp18:Cn}})),En=r(((e,t)=>{c();var n=F(),r=new(pn()),i=new n(24),a=new n(11),o=new n(10),s=new n(3),u=new n(7),d=mn(),f=z();t.exports=_;function p(e,t){return t||=`utf8`,l.isBuffer(e)||(e=new l(e,t)),this._pub=new n(e),this}function m(e,t){return t||=`utf8`,l.isBuffer(e)||(e=new l(e,t)),this._priv=new n(e),this}var h={};function g(e,t){var n=t.toString(`hex`),c=[n,e.toString(16)].join(`_`);if(c in h)return h[c];var l=0;if(e.isEven()||!d.simpleSieve||!d.fermatTest(e)||!r.test(e))return l+=1,l+=n===`02`||n===`05`?8:4,h[c]=l,l;r.test(e.shrn(1))||(l+=2);var f;switch(n){case`02`:e.mod(i).cmp(a)&&(l+=8);break;case`05`:f=e.mod(o),f.cmp(s)&&f.cmp(u)&&(l+=8);break;default:l+=4}return h[c]=l,l}function _(e,t,r){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=p,this.setPrivateKey=m):this._primeCode=8}Object.defineProperty(_.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!=`number`&&(this._primeCode=g(this.__prime,this.__gen)),this._primeCode}}),_.prototype.generateKeys=function(){return this._priv||=new n(f(this._primeLen)),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},_.prototype.computeSecret=function(e){e=new n(e),e=e.toRed(this._prime);var t=e.redPow(this._priv).fromRed(),r=new l(t.toArray()),i=this.getPrime();if(r.length<i.length){var a=new l(i.length-r.length);a.fill(0),r=l.concat([a,r])}return r},_.prototype.getPublicKey=function(e){return v(this._pub,e)},_.prototype.getPrivateKey=function(e){return v(this._priv,e)},_.prototype.getPrime=function(e){return v(this.__prime,e)},_.prototype.getGenerator=function(e){return v(this._gen,e)},_.prototype.setGenerator=function(e,t){return t||=`utf8`,l.isBuffer(e)||(e=new l(e,t)),this.__gen=e,this._gen=new n(e),this};function v(e,t){var n=new l(e.toArray());return t?n.toString(t):n}})),Dn=r((e=>{c();var n=mn(),r=(Tn(),t(hn).default),i=En();function a(e){return new i(new l(r[e].prime,`hex`),new l(r[e].gen,`hex`))}var o={binary:!0,hex:!0,base64:!0};function s(e,t,r,a){return l.isBuffer(t)||o[t]===void 0?s(e,`binary`,t,r):(t||=`binary`,a||=`binary`,r||=new l([2]),l.isBuffer(r)||(r=new l(r,a)),typeof e==`number`?new i(n(e,r),r,!0):(l.isBuffer(e)||(e=new l(e,t)),new i(e,r,!0)))}e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=a,e.createDiffieHellman=e.DiffieHellman=s})),On=r(((e,t)=>{var n=d(),r=z(),i=f().Buffer;function a(e){var t=e.modulus.byteLength(),i;do i=new n(r(t));while(i.cmp(e.modulus)>=0||!i.umod(e.prime1)||!i.umod(e.prime2));return i}function o(e){var t=a(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}function s(e,t){var r=o(t),a=t.modulus.byteLength(),s=new n(e).mul(r.blinder).umod(t.modulus),c=s.toRed(n.mont(t.prime1)),l=s.toRed(n.mont(t.prime2)),u=t.coefficient,d=t.prime1,f=t.prime2,p=c.redPow(t.exponent1).fromRed(),m=l.redPow(t.exponent2).fromRed(),h=p.isub(m).imul(u).umod(d).imul(f);return m.iadd(h).imul(r.unblinder).umod(t.modulus).toArrayLike(i,`be`,a)}s.getr=a,t.exports=s})),kn=r((e=>{var t=Hn(),n=B(),r=e;r.define=function(e,t){return new i(e,t)};function i(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}i.prototype._createNamed=function(e){var t;try{t=m().runInThisContext(`(function `+this.name+`(entity) {
1
+ import{n as e,o as t,r as n,t as r}from"./rolldown-runtime-BcKkbAw3.js";import{n as i,t as a}from"./dist-Cuadm9-o.js";import{n as o,t as s}from"./dist-D6L6gF64.js";import{r as c,t as l}from"./dist-ZKTSEBXW.js";import{n as u,t as d}from"./bn-Ck4DeaX2.js";import{t as f}from"./safe-buffer-BUgQmBOp.js";import{t as p}from"./events-CMzhc0tf.js";import{t as m}from"./__vite-browser-external-rzXbT8Yi.js";import{a as h,i as g,n as _,o as v,r as y,t as b}from"./has-property-descriptors-BgbN2I7Y.js";var x=n({author:()=>A,bugs:()=>ee,default:()=>N,dependencies:()=>te,description:()=>w,devDependencies:()=>M,files:()=>E,homepage:()=>j,keywords:()=>k,license:()=>`MIT`,main:()=>T,name:()=>S,repository:()=>O,scripts:()=>D,version:()=>C}),S,C,w,T,E,D,O,k,A,ee,j,M,te,N,P=e((()=>{S=`elliptic`,C=`6.6.1`,w=`EC cryptography`,T=`lib/elliptic.js`,E=[`lib`],D={lint:`eslint lib test`,"lint:fix":`npm run lint -- --fix`,unit:`istanbul test _mocha --reporter=spec test/index.js`,test:`npm run lint && npm run unit`,version:`grunt dist && git add dist/`},O={type:`git`,url:`git@github.com:indutny/elliptic`},k=[`EC`,`Elliptic`,`curve`,`Cryptography`],A=`Fedor Indutny <fedor@indutny.com>`,ee={url:`https://github.com/indutny/elliptic/issues`},j=`https://github.com/indutny/elliptic`,M={brfs:`^2.0.2`,coveralls:`^3.1.0`,eslint:`^7.6.0`,grunt:`^1.2.1`,"grunt-browserify":`^5.3.0`,"grunt-cli":`^1.3.2`,"grunt-contrib-connect":`^3.0.0`,"grunt-contrib-copy":`^1.0.0`,"grunt-contrib-uglify":`^5.0.0`,"grunt-mocha-istanbul":`^5.0.2`,"grunt-saucelabs":`^9.0.1`,istanbul:`^0.4.5`,mocha:`^8.0.1`},te={"bn.js":`^4.11.9`,brorand:`^1.1.0`,"hash.js":`^1.0.0`,"hmac-drbg":`^1.0.1`,inherits:`^2.0.4`,"minimalistic-assert":`^1.0.1`,"minimalistic-crypto-utils":`^1.0.1`},N={name:S,version:C,description:w,main:T,files:E,scripts:D,repository:O,keywords:k,author:A,license:`MIT`,bugs:ee,homepage:j,devDependencies:M,dependencies:te}})),F=r(((e,t)=>{(function(e,t){function n(e,t){if(!e)throw Error(t||`Assertion failed`)}function r(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,e!==null&&((t===`le`||t===`be`)&&(n=t,t=10),this._init(e||0,t||10,n||`be`))}typeof e==`object`?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;var a;try{a=typeof window<`u`&&window.Buffer!==void 0?window.Buffer:u().Buffer}catch{}i.isBN=function(e){return e instanceof i||typeof e==`object`&&!!e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,r){if(typeof e==`number`)return this._initNumber(e,t,r);if(typeof e==`object`)return this._initArray(e,t,r);t===`hex`&&(t=16),n(t===(t|0)&&t>=2&&t<=36),e=e.toString().replace(/\s+/g,``);var i=0;e[0]===`-`&&(i++,this.negative=1),i<e.length&&(t===16?this._parseHex(e,i,r):(this._parseBase(e,t,i),r===`le`&&this._initArray(this.toArray(),t,r)))},i.prototype._initNumber=function(e,t,r){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):(n(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),r===`le`&&this._initArray(this.toArray(),t,r)},i.prototype._initArray=function(e,t,r){if(n(typeof e.length==`number`),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var a,o,s=0;if(r===`be`)for(i=e.length-1,a=0;i>=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,s+=24,s>=26&&(s-=26,a++);else if(r===`le`)for(i=0,a=0;i<e.length;i+=3)o=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,s+=24,s>=26&&(s-=26,a++);return this.strip()};function o(e,t){var n=e.charCodeAt(t);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function s(e,t,n){var r=o(e,n);return n-1>=t&&(r|=o(e,n-1)<<4),r}i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i=0,a=0,o;if(n===`be`)for(r=e.length-1;r>=t;r-=2)o=s(e,t,r)<<i,this.words[a]|=o&67108863,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;else for(r=(e.length-t)%2==0?t+1:t;r<e.length;r+=2)o=s(e,t,r)<<i,this.words[a]|=o&67108863,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;this.strip()};function c(e,t,n,r){for(var i=0,a=Math.min(e.length,n),o=t;o<a;o++){var s=e.charCodeAt(o)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var a=e.length-n,o=a%r,s=Math.min(a,a-o)+n,l=0,u=n;u<s;u+=r)l=c(e,u,u+r,t),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(o!==0){var d=1;for(l=c(e,u,e.length,t),u=0;u<o;u++)d*=t;this.imuln(d),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this.strip()},i.prototype.copy=function(e){e.words=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},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?`<BN-R: `:`<BN: `)+this.toString(16)+`>`};var l=`.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`.split(`.`),d=[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],f=[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];i.prototype.toString=function(e,t){e||=10,t=t|0||1;var r;if(e===16||e===`hex`){r=``;for(var i=0,a=0,o=0;o<this.length;o++){var s=this.words[o],c=((s<<i|a)&16777215).toString(16);a=s>>>24-i&16777215,i+=2,i>=26&&(i-=26,o--),r=a!==0||o!==this.length-1?l[6-c.length]+c+r:c+r}for(a!==0&&(r=a.toString(16)+r);r.length%t!==0;)r=`0`+r;return this.negative!==0&&(r=`-`+r),r}if(e===(e|0)&&e>=2&&e<=36){var u=d[e],p=f[e];r=``;var m=this.clone();for(m.negative=0;!m.isZero();){var h=m.modn(p).toString(e);m=m.idivn(p),r=m.isZero()?h+r:l[u-h.length]+h+r}for(this.isZero()&&(r=`0`+r);r.length%t!==0;)r=`0`+r;return this.negative!==0&&(r=`-`+r),r}n(!1,`Base should be between 2 and 36`)},i.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&&n(!1,`Number can only safely store up to 53 bits`),this.negative===0?e:-e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return n(a!==void 0),this.toArrayLike(a,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),a=r||Math.max(1,i);n(i<=a,`byte array longer than desired length`),n(a>0,`Requested array length <= 0`),this.strip();var o=t===`le`,s=new e(a),c,l,u=this.clone();if(o){for(l=0;!u.isZero();l++)c=u.andln(255),u.iushrn(8),s[l]=c;for(;l<a;l++)s[l]=0}else{for(l=0;l<a-i;l++)s[l]=0;for(l=0;!u.isZero();l++)c=u.andln(255),u.iushrn(8),s[a-l-1]=c}return s},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(e===0)return 26;var t=e,n=0;return t&8191||(n+=13,t>>>=13),t&127||(n+=7,t>>>=7),t&15||(n+=4,t>>>=4),t&3||(n+=2,t>>>=2),t&1||n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t};function p(e){for(var t=Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=(e.words[r]&1<<i)>>>i}return t}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,n!==26)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return this.negative===0?this.clone():this.abs().inotn(e).iaddn(1)},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.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()},i.prototype.ior=function(e){return n((this.negative|e.negative)===0),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){for(var t=this.length>e.length?e:this,n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},i.prototype.iand=function(e){return n((this.negative|e.negative)===0),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},i.prototype.ixor=function(e){return n((this.negative|e.negative)===0),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n(typeof e==`number`&&e>=0);var t=Math.ceil(e/26)|0,r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=~this.words[i]&67108863;for(r>0&&(this.words[i]=~this.words[i]&67108863>>26-r,i++);i<this.length;i++)this.words[i]=0;return this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n(typeof e==`number`&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this.strip()},i.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 n,r;this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,a=0;a<r.length;a++)t=(n.words[a]|0)+(r.words[a]|0)+i,this.words[a]=t&67108863,i=t>>>26;for(;i!==0&&a<n.length;a++)t=(n.words[a]|0)+i,this.words[a]=t&67108863,i=t>>>26;if(this.length=n.length,i!==0)this.words[this.length]=i,this.length++;else if(n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this},i.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)},i.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(n===0)return this.negative=0,this.length=1,this.words[0]=0,this;var r,i;n>0?(r=this,i=e):(r=e,i=this);for(var a=0,o=0;o<i.length;o++)t=(r.words[o]|0)-(i.words[o]|0)+a,a=t>>26,this.words[o]=t&67108863;for(;a!==0&&o<r.length;o++)t=(r.words[o]|0)+a,a=t>>26,this.words[o]=t&67108863;if(a===0&&o<r.length&&r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this.length=Math.max(this.length,o),r!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};function m(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=e.words[0]|0,a=t.words[0]|0,o=i*a,s=o&67108863,c=o/67108864|0;n.words[0]=s;for(var l=1;l<r;l++){for(var u=c>>>26,d=c&67108863,f=Math.min(l,t.length-1),p=Math.max(0,l-e.length+1);p<=f;p++){var m=l-p|0;i=e.words[m]|0,a=t.words[p]|0,o=i*a+d,u+=o/67108864|0,d=o&67108863}n.words[l]=d|0,c=u|0}return c===0?n.length--:n.words[l]=c|0,n.strip()}var h=function(e,t,n){var r=e.words,i=t.words,a=n.words,o=0,s,c,l,u=r[0]|0,d=u&8191,f=u>>>13,p=r[1]|0,m=p&8191,h=p>>>13,g=r[2]|0,_=g&8191,v=g>>>13,y=r[3]|0,b=y&8191,x=y>>>13,S=r[4]|0,C=S&8191,w=S>>>13,T=r[5]|0,E=T&8191,D=T>>>13,O=r[6]|0,k=O&8191,A=O>>>13,ee=r[7]|0,j=ee&8191,M=ee>>>13,te=r[8]|0,N=te&8191,P=te>>>13,F=r[9]|0,I=F&8191,L=F>>>13,R=i[0]|0,z=R&8191,B=R>>>13,ne=i[1]|0,V=ne&8191,H=ne>>>13,re=i[2]|0,U=re&8191,W=re>>>13,ie=i[3]|0,G=ie&8191,K=ie>>>13,ae=i[4]|0,q=ae&8191,J=ae>>>13,oe=i[5]|0,se=oe&8191,ce=oe>>>13,le=i[6]|0,ue=le&8191,Y=le>>>13,de=i[7]|0,X=de&8191,fe=de>>>13,pe=i[8]|0,Z=pe&8191,Q=pe>>>13,me=i[9]|0,$=me&8191,he=me>>>13;n.negative=e.negative^t.negative,n.length=19,s=Math.imul(d,z),c=Math.imul(d,B),c=c+Math.imul(f,z)|0,l=Math.imul(f,B);var ge=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(ge>>>26)|0,ge&=67108863,s=Math.imul(m,z),c=Math.imul(m,B),c=c+Math.imul(h,z)|0,l=Math.imul(h,B),s=s+Math.imul(d,V)|0,c=c+Math.imul(d,H)|0,c=c+Math.imul(f,V)|0,l=l+Math.imul(f,H)|0;var _e=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(_e>>>26)|0,_e&=67108863,s=Math.imul(_,z),c=Math.imul(_,B),c=c+Math.imul(v,z)|0,l=Math.imul(v,B),s=s+Math.imul(m,V)|0,c=c+Math.imul(m,H)|0,c=c+Math.imul(h,V)|0,l=l+Math.imul(h,H)|0,s=s+Math.imul(d,U)|0,c=c+Math.imul(d,W)|0,c=c+Math.imul(f,U)|0,l=l+Math.imul(f,W)|0;var ve=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(ve>>>26)|0,ve&=67108863,s=Math.imul(b,z),c=Math.imul(b,B),c=c+Math.imul(x,z)|0,l=Math.imul(x,B),s=s+Math.imul(_,V)|0,c=c+Math.imul(_,H)|0,c=c+Math.imul(v,V)|0,l=l+Math.imul(v,H)|0,s=s+Math.imul(m,U)|0,c=c+Math.imul(m,W)|0,c=c+Math.imul(h,U)|0,l=l+Math.imul(h,W)|0,s=s+Math.imul(d,G)|0,c=c+Math.imul(d,K)|0,c=c+Math.imul(f,G)|0,l=l+Math.imul(f,K)|0;var ye=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(ye>>>26)|0,ye&=67108863,s=Math.imul(C,z),c=Math.imul(C,B),c=c+Math.imul(w,z)|0,l=Math.imul(w,B),s=s+Math.imul(b,V)|0,c=c+Math.imul(b,H)|0,c=c+Math.imul(x,V)|0,l=l+Math.imul(x,H)|0,s=s+Math.imul(_,U)|0,c=c+Math.imul(_,W)|0,c=c+Math.imul(v,U)|0,l=l+Math.imul(v,W)|0,s=s+Math.imul(m,G)|0,c=c+Math.imul(m,K)|0,c=c+Math.imul(h,G)|0,l=l+Math.imul(h,K)|0,s=s+Math.imul(d,q)|0,c=c+Math.imul(d,J)|0,c=c+Math.imul(f,q)|0,l=l+Math.imul(f,J)|0;var be=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(be>>>26)|0,be&=67108863,s=Math.imul(E,z),c=Math.imul(E,B),c=c+Math.imul(D,z)|0,l=Math.imul(D,B),s=s+Math.imul(C,V)|0,c=c+Math.imul(C,H)|0,c=c+Math.imul(w,V)|0,l=l+Math.imul(w,H)|0,s=s+Math.imul(b,U)|0,c=c+Math.imul(b,W)|0,c=c+Math.imul(x,U)|0,l=l+Math.imul(x,W)|0,s=s+Math.imul(_,G)|0,c=c+Math.imul(_,K)|0,c=c+Math.imul(v,G)|0,l=l+Math.imul(v,K)|0,s=s+Math.imul(m,q)|0,c=c+Math.imul(m,J)|0,c=c+Math.imul(h,q)|0,l=l+Math.imul(h,J)|0,s=s+Math.imul(d,se)|0,c=c+Math.imul(d,ce)|0,c=c+Math.imul(f,se)|0,l=l+Math.imul(f,ce)|0;var xe=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(xe>>>26)|0,xe&=67108863,s=Math.imul(k,z),c=Math.imul(k,B),c=c+Math.imul(A,z)|0,l=Math.imul(A,B),s=s+Math.imul(E,V)|0,c=c+Math.imul(E,H)|0,c=c+Math.imul(D,V)|0,l=l+Math.imul(D,H)|0,s=s+Math.imul(C,U)|0,c=c+Math.imul(C,W)|0,c=c+Math.imul(w,U)|0,l=l+Math.imul(w,W)|0,s=s+Math.imul(b,G)|0,c=c+Math.imul(b,K)|0,c=c+Math.imul(x,G)|0,l=l+Math.imul(x,K)|0,s=s+Math.imul(_,q)|0,c=c+Math.imul(_,J)|0,c=c+Math.imul(v,q)|0,l=l+Math.imul(v,J)|0,s=s+Math.imul(m,se)|0,c=c+Math.imul(m,ce)|0,c=c+Math.imul(h,se)|0,l=l+Math.imul(h,ce)|0,s=s+Math.imul(d,ue)|0,c=c+Math.imul(d,Y)|0,c=c+Math.imul(f,ue)|0,l=l+Math.imul(f,Y)|0;var Se=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(Se>>>26)|0,Se&=67108863,s=Math.imul(j,z),c=Math.imul(j,B),c=c+Math.imul(M,z)|0,l=Math.imul(M,B),s=s+Math.imul(k,V)|0,c=c+Math.imul(k,H)|0,c=c+Math.imul(A,V)|0,l=l+Math.imul(A,H)|0,s=s+Math.imul(E,U)|0,c=c+Math.imul(E,W)|0,c=c+Math.imul(D,U)|0,l=l+Math.imul(D,W)|0,s=s+Math.imul(C,G)|0,c=c+Math.imul(C,K)|0,c=c+Math.imul(w,G)|0,l=l+Math.imul(w,K)|0,s=s+Math.imul(b,q)|0,c=c+Math.imul(b,J)|0,c=c+Math.imul(x,q)|0,l=l+Math.imul(x,J)|0,s=s+Math.imul(_,se)|0,c=c+Math.imul(_,ce)|0,c=c+Math.imul(v,se)|0,l=l+Math.imul(v,ce)|0,s=s+Math.imul(m,ue)|0,c=c+Math.imul(m,Y)|0,c=c+Math.imul(h,ue)|0,l=l+Math.imul(h,Y)|0,s=s+Math.imul(d,X)|0,c=c+Math.imul(d,fe)|0,c=c+Math.imul(f,X)|0,l=l+Math.imul(f,fe)|0;var Ce=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,s=Math.imul(N,z),c=Math.imul(N,B),c=c+Math.imul(P,z)|0,l=Math.imul(P,B),s=s+Math.imul(j,V)|0,c=c+Math.imul(j,H)|0,c=c+Math.imul(M,V)|0,l=l+Math.imul(M,H)|0,s=s+Math.imul(k,U)|0,c=c+Math.imul(k,W)|0,c=c+Math.imul(A,U)|0,l=l+Math.imul(A,W)|0,s=s+Math.imul(E,G)|0,c=c+Math.imul(E,K)|0,c=c+Math.imul(D,G)|0,l=l+Math.imul(D,K)|0,s=s+Math.imul(C,q)|0,c=c+Math.imul(C,J)|0,c=c+Math.imul(w,q)|0,l=l+Math.imul(w,J)|0,s=s+Math.imul(b,se)|0,c=c+Math.imul(b,ce)|0,c=c+Math.imul(x,se)|0,l=l+Math.imul(x,ce)|0,s=s+Math.imul(_,ue)|0,c=c+Math.imul(_,Y)|0,c=c+Math.imul(v,ue)|0,l=l+Math.imul(v,Y)|0,s=s+Math.imul(m,X)|0,c=c+Math.imul(m,fe)|0,c=c+Math.imul(h,X)|0,l=l+Math.imul(h,fe)|0,s=s+Math.imul(d,Z)|0,c=c+Math.imul(d,Q)|0,c=c+Math.imul(f,Z)|0,l=l+Math.imul(f,Q)|0;var we=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(we>>>26)|0,we&=67108863,s=Math.imul(I,z),c=Math.imul(I,B),c=c+Math.imul(L,z)|0,l=Math.imul(L,B),s=s+Math.imul(N,V)|0,c=c+Math.imul(N,H)|0,c=c+Math.imul(P,V)|0,l=l+Math.imul(P,H)|0,s=s+Math.imul(j,U)|0,c=c+Math.imul(j,W)|0,c=c+Math.imul(M,U)|0,l=l+Math.imul(M,W)|0,s=s+Math.imul(k,G)|0,c=c+Math.imul(k,K)|0,c=c+Math.imul(A,G)|0,l=l+Math.imul(A,K)|0,s=s+Math.imul(E,q)|0,c=c+Math.imul(E,J)|0,c=c+Math.imul(D,q)|0,l=l+Math.imul(D,J)|0,s=s+Math.imul(C,se)|0,c=c+Math.imul(C,ce)|0,c=c+Math.imul(w,se)|0,l=l+Math.imul(w,ce)|0,s=s+Math.imul(b,ue)|0,c=c+Math.imul(b,Y)|0,c=c+Math.imul(x,ue)|0,l=l+Math.imul(x,Y)|0,s=s+Math.imul(_,X)|0,c=c+Math.imul(_,fe)|0,c=c+Math.imul(v,X)|0,l=l+Math.imul(v,fe)|0,s=s+Math.imul(m,Z)|0,c=c+Math.imul(m,Q)|0,c=c+Math.imul(h,Z)|0,l=l+Math.imul(h,Q)|0,s=s+Math.imul(d,$)|0,c=c+Math.imul(d,he)|0,c=c+Math.imul(f,$)|0,l=l+Math.imul(f,he)|0;var Te=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(Te>>>26)|0,Te&=67108863,s=Math.imul(I,V),c=Math.imul(I,H),c=c+Math.imul(L,V)|0,l=Math.imul(L,H),s=s+Math.imul(N,U)|0,c=c+Math.imul(N,W)|0,c=c+Math.imul(P,U)|0,l=l+Math.imul(P,W)|0,s=s+Math.imul(j,G)|0,c=c+Math.imul(j,K)|0,c=c+Math.imul(M,G)|0,l=l+Math.imul(M,K)|0,s=s+Math.imul(k,q)|0,c=c+Math.imul(k,J)|0,c=c+Math.imul(A,q)|0,l=l+Math.imul(A,J)|0,s=s+Math.imul(E,se)|0,c=c+Math.imul(E,ce)|0,c=c+Math.imul(D,se)|0,l=l+Math.imul(D,ce)|0,s=s+Math.imul(C,ue)|0,c=c+Math.imul(C,Y)|0,c=c+Math.imul(w,ue)|0,l=l+Math.imul(w,Y)|0,s=s+Math.imul(b,X)|0,c=c+Math.imul(b,fe)|0,c=c+Math.imul(x,X)|0,l=l+Math.imul(x,fe)|0,s=s+Math.imul(_,Z)|0,c=c+Math.imul(_,Q)|0,c=c+Math.imul(v,Z)|0,l=l+Math.imul(v,Q)|0,s=s+Math.imul(m,$)|0,c=c+Math.imul(m,he)|0,c=c+Math.imul(h,$)|0,l=l+Math.imul(h,he)|0;var Ee=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,s=Math.imul(I,U),c=Math.imul(I,W),c=c+Math.imul(L,U)|0,l=Math.imul(L,W),s=s+Math.imul(N,G)|0,c=c+Math.imul(N,K)|0,c=c+Math.imul(P,G)|0,l=l+Math.imul(P,K)|0,s=s+Math.imul(j,q)|0,c=c+Math.imul(j,J)|0,c=c+Math.imul(M,q)|0,l=l+Math.imul(M,J)|0,s=s+Math.imul(k,se)|0,c=c+Math.imul(k,ce)|0,c=c+Math.imul(A,se)|0,l=l+Math.imul(A,ce)|0,s=s+Math.imul(E,ue)|0,c=c+Math.imul(E,Y)|0,c=c+Math.imul(D,ue)|0,l=l+Math.imul(D,Y)|0,s=s+Math.imul(C,X)|0,c=c+Math.imul(C,fe)|0,c=c+Math.imul(w,X)|0,l=l+Math.imul(w,fe)|0,s=s+Math.imul(b,Z)|0,c=c+Math.imul(b,Q)|0,c=c+Math.imul(x,Z)|0,l=l+Math.imul(x,Q)|0,s=s+Math.imul(_,$)|0,c=c+Math.imul(_,he)|0,c=c+Math.imul(v,$)|0,l=l+Math.imul(v,he)|0;var De=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(De>>>26)|0,De&=67108863,s=Math.imul(I,G),c=Math.imul(I,K),c=c+Math.imul(L,G)|0,l=Math.imul(L,K),s=s+Math.imul(N,q)|0,c=c+Math.imul(N,J)|0,c=c+Math.imul(P,q)|0,l=l+Math.imul(P,J)|0,s=s+Math.imul(j,se)|0,c=c+Math.imul(j,ce)|0,c=c+Math.imul(M,se)|0,l=l+Math.imul(M,ce)|0,s=s+Math.imul(k,ue)|0,c=c+Math.imul(k,Y)|0,c=c+Math.imul(A,ue)|0,l=l+Math.imul(A,Y)|0,s=s+Math.imul(E,X)|0,c=c+Math.imul(E,fe)|0,c=c+Math.imul(D,X)|0,l=l+Math.imul(D,fe)|0,s=s+Math.imul(C,Z)|0,c=c+Math.imul(C,Q)|0,c=c+Math.imul(w,Z)|0,l=l+Math.imul(w,Q)|0,s=s+Math.imul(b,$)|0,c=c+Math.imul(b,he)|0,c=c+Math.imul(x,$)|0,l=l+Math.imul(x,he)|0;var Oe=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,s=Math.imul(I,q),c=Math.imul(I,J),c=c+Math.imul(L,q)|0,l=Math.imul(L,J),s=s+Math.imul(N,se)|0,c=c+Math.imul(N,ce)|0,c=c+Math.imul(P,se)|0,l=l+Math.imul(P,ce)|0,s=s+Math.imul(j,ue)|0,c=c+Math.imul(j,Y)|0,c=c+Math.imul(M,ue)|0,l=l+Math.imul(M,Y)|0,s=s+Math.imul(k,X)|0,c=c+Math.imul(k,fe)|0,c=c+Math.imul(A,X)|0,l=l+Math.imul(A,fe)|0,s=s+Math.imul(E,Z)|0,c=c+Math.imul(E,Q)|0,c=c+Math.imul(D,Z)|0,l=l+Math.imul(D,Q)|0,s=s+Math.imul(C,$)|0,c=c+Math.imul(C,he)|0,c=c+Math.imul(w,$)|0,l=l+Math.imul(w,he)|0;var ke=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(ke>>>26)|0,ke&=67108863,s=Math.imul(I,se),c=Math.imul(I,ce),c=c+Math.imul(L,se)|0,l=Math.imul(L,ce),s=s+Math.imul(N,ue)|0,c=c+Math.imul(N,Y)|0,c=c+Math.imul(P,ue)|0,l=l+Math.imul(P,Y)|0,s=s+Math.imul(j,X)|0,c=c+Math.imul(j,fe)|0,c=c+Math.imul(M,X)|0,l=l+Math.imul(M,fe)|0,s=s+Math.imul(k,Z)|0,c=c+Math.imul(k,Q)|0,c=c+Math.imul(A,Z)|0,l=l+Math.imul(A,Q)|0,s=s+Math.imul(E,$)|0,c=c+Math.imul(E,he)|0,c=c+Math.imul(D,$)|0,l=l+Math.imul(D,he)|0;var Ae=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,s=Math.imul(I,ue),c=Math.imul(I,Y),c=c+Math.imul(L,ue)|0,l=Math.imul(L,Y),s=s+Math.imul(N,X)|0,c=c+Math.imul(N,fe)|0,c=c+Math.imul(P,X)|0,l=l+Math.imul(P,fe)|0,s=s+Math.imul(j,Z)|0,c=c+Math.imul(j,Q)|0,c=c+Math.imul(M,Z)|0,l=l+Math.imul(M,Q)|0,s=s+Math.imul(k,$)|0,c=c+Math.imul(k,he)|0,c=c+Math.imul(A,$)|0,l=l+Math.imul(A,he)|0;var je=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(je>>>26)|0,je&=67108863,s=Math.imul(I,X),c=Math.imul(I,fe),c=c+Math.imul(L,X)|0,l=Math.imul(L,fe),s=s+Math.imul(N,Z)|0,c=c+Math.imul(N,Q)|0,c=c+Math.imul(P,Z)|0,l=l+Math.imul(P,Q)|0,s=s+Math.imul(j,$)|0,c=c+Math.imul(j,he)|0,c=c+Math.imul(M,$)|0,l=l+Math.imul(M,he)|0;var Me=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(Me>>>26)|0,Me&=67108863,s=Math.imul(I,Z),c=Math.imul(I,Q),c=c+Math.imul(L,Z)|0,l=Math.imul(L,Q),s=s+Math.imul(N,$)|0,c=c+Math.imul(N,he)|0,c=c+Math.imul(P,$)|0,l=l+Math.imul(P,he)|0;var Ne=(o+s|0)+((c&8191)<<13)|0;o=(l+(c>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,s=Math.imul(I,$),c=Math.imul(I,he),c=c+Math.imul(L,$)|0,l=Math.imul(L,he);var Pe=(o+s|0)+((c&8191)<<13)|0;return o=(l+(c>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,a[0]=ge,a[1]=_e,a[2]=ve,a[3]=ye,a[4]=be,a[5]=xe,a[6]=Se,a[7]=Ce,a[8]=we,a[9]=Te,a[10]=Ee,a[11]=De,a[12]=Oe,a[13]=ke,a[14]=Ae,a[15]=je,a[16]=Me,a[17]=Ne,a[18]=Pe,o!==0&&(a[19]=o,n.length++),n};Math.imul||(h=m);function g(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,a=0;a<n.length-1;a++){var o=i;i=0;for(var s=r&67108863,c=Math.min(a,t.length-1),l=Math.max(0,a-e.length+1);l<=c;l++){var u=a-l,d=(e.words[u]|0)*(t.words[l]|0),f=d&67108863;o=o+(d/67108864|0)|0,f=f+s|0,s=f&67108863,o=o+(f>>>26)|0,i+=o>>>26,o&=67108863}n.words[a]=s,r=o,o=i}return r===0?n.length--:n.words[a]=r,n.strip()}function _(e,t,n){return new v().mulp(e,t,n)}i.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=this.length===10&&e.length===10?h(this,e,t):r<63?m(this,e,t):r<1024?g(this,e,t):_(this,e,t),n};function v(e,t){this.x=e,this.y=t}v.prototype.makeRBT=function(e){for(var t=Array(e),n=i.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},v.prototype.revBin=function(e,t,n){if(e===0||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(e&1)<<t-i-1,e>>=1;return r},v.prototype.permute=function(e,t,n,r,i,a){for(var o=0;o<a;o++)r[o]=t[e[o]],i[o]=n[e[o]]},v.prototype.transform=function(e,t,n,r,i,a){this.permute(a,e,t,n,r,i);for(var o=1;o<i;o<<=1)for(var s=o<<1,c=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var d=c,f=l,p=0;p<o;p++){var m=n[u+p],h=r[u+p],g=n[u+p+o],_=r[u+p+o],v=d*g-f*_;_=d*_+f*g,g=v,n[u+p]=m+g,r[u+p]=h+_,n[u+p+o]=m-g,r[u+p+o]=h-_,p!==s&&(v=c*d-l*f,f=c*f+l*d,d=v)}},v.prototype.guessLen13b=function(e,t){var n=Math.max(t,e)|1,r=n&1,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},v.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},v.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=Math.round(e[2*r+1]/t)*8192+Math.round(e[2*r]/t)+n;e[r]=i&67108863,n=i<67108864?0:i/67108864|0}return e},v.prototype.convert13b=function(e,t,r,i){for(var a=0,o=0;o<t;o++)a+=e[o]|0,r[2*o]=a&8191,a>>>=13,r[2*o+1]=a&8191,a>>>=13;for(o=2*t;o<i;++o)r[o]=0;n(a===0),n(!(a&-8192))},v.prototype.stub=function(e){for(var t=Array(e),n=0;n<e;n++)t[n]=0;return t},v.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),a=this.stub(r),o=Array(r),s=Array(r),c=Array(r),l=Array(r),u=Array(r),d=Array(r),f=n.words;f.length=r,this.convert13b(e.words,e.length,o,r),this.convert13b(t.words,t.length,l,r),this.transform(o,a,s,c,r,i),this.transform(l,a,u,d,r,i);for(var p=0;p<r;p++){var m=s[p]*u[p]-c[p]*d[p];c[p]=s[p]*d[p]+c[p]*u[p],s[p]=m}return this.conjugate(s,c,r),this.transform(s,c,f,a,r,i),this.conjugate(f,a,r),this.normalize13b(f,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},i.prototype.mul=function(e){var t=new i(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=Array(this.length+e.length),_(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){n(typeof e==`number`),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(this.words[r]|0)*e,a=(i&67108863)+(t&67108863);t>>=26,t+=i/67108864|0,t+=a>>>26,this.words[r]=a&67108863}return t!==0&&(this.words[r]=t,this.length++),this.length=e===0?1:this.length,this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=p(e);if(t.length===0)return new i(1);for(var n=this,r=0;r<t.length&&t[r]===0;r++,n=n.sqr());if(++r<t.length)for(var a=n.sqr();r<t.length;r++,a=a.sqr())t[r]!==0&&(n=n.mul(a));return n},i.prototype.iushln=function(e){n(typeof e==`number`&&e>=0);var t=e%26,r=(e-t)/26,i=67108863>>>26-t<<26-t,a;if(t!==0){var o=0;for(a=0;a<this.length;a++){var s=this.words[a]&i,c=(this.words[a]|0)-s<<t;this.words[a]=c|o,o=s>>>26-t}o&&(this.words[a]=o,this.length++)}if(r!==0){for(a=this.length-1;a>=0;a--)this.words[a+r]=this.words[a];for(a=0;a<r;a++)this.words[a]=0;this.length+=r}return this.strip()},i.prototype.ishln=function(e){return n(this.negative===0),this.iushln(e)},i.prototype.iushrn=function(e,t,r){n(typeof e==`number`&&e>=0);var i=t?(t-t%26)/26:0,a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<<a,c=r;if(i-=o,i=Math.max(0,i),c){for(var l=0;l<o;l++)c.words[l]=this.words[l];c.length=o}if(o!==0){if(this.length>o)for(this.length-=o,l=0;l<this.length;l++)this.words[l]=this.words[l+o];else this.words[0]=0,this.length=1}var u=0;for(l=this.length-1;l>=0&&(u!==0||l>=i);l--){var d=this.words[l]|0;this.words[l]=u<<26-a|d>>>a,u=d&s}return c&&u!==0&&(c.words[c.length++]=u),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,r){return n(this.negative===0),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n(typeof e==`number`&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return this.length<=r?!1:!!(this.words[r]&i)},i.prototype.imaskn=function(e){n(typeof e==`number`&&e>=0);var t=e%26,r=(e-t)/26;if(n(this.negative===0,`imaskn works only with positive numbers`),this.length<=r)return this;if(t!==0&&r++,this.length=Math.min(r,this.length),t!==0){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return n(typeof e==`number`),n(e<67108864),e<0?this.isubn(-e):this.negative===0?this._iaddn(e):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)},i.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},i.prototype.isubn=function(e){if(n(typeof e==`number`),n(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];return this.strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,t,r){var i=e.length+r,a;this._expand(i);var o,s=0;for(a=0;a<e.length;a++){o=(this.words[a+r]|0)+s;var c=(e.words[a]|0)*t;o-=c&67108863,s=(o>>26)-(c/67108864|0),this.words[a+r]=o&67108863}for(;a<this.length-r;a++)o=(this.words[a+r]|0)+s,s=o>>26,this.words[a+r]=o&67108863;if(s===0)return this.strip();for(n(s===-1),s=0,a=0;a<this.length;a++)o=-(this.words[a]|0)+s,s=o>>26,this.words[a]=o&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=this.length-e.length,r=this.clone(),a=e,o=a.words[a.length-1]|0;n=26-this._countBits(o),n!==0&&(a=a.ushln(n),r.iushln(n),o=a.words[a.length-1]|0);var s=r.length-a.length,c;if(t!==`mod`){c=new i(null),c.length=s+1,c.words=Array(c.length);for(var l=0;l<c.length;l++)c.words[l]=0}var u=r.clone()._ishlnsubmul(a,1,s);u.negative===0&&(r=u,c&&(c.words[s]=1));for(var d=s-1;d>=0;d--){var f=(r.words[a.length+d]|0)*67108864+(r.words[a.length+d-1]|0);for(f=Math.min(f/o|0,67108863),r._ishlnsubmul(a,f,d);r.negative!==0;)f--,r.negative=0,r._ishlnsubmul(a,1,d),r.isZero()||(r.negative^=1);c&&(c.words[d]=f)}return c&&c.strip(),r.strip(),t!==`div`&&n!==0&&r.iushrn(n),{div:c||null,mod:r}},i.prototype.divmod=function(e,t,r){if(n(!e.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var a,o,s;return this.negative!==0&&e.negative===0?(s=this.neg().divmod(e,t),t!==`mod`&&(a=s.div.neg()),t!==`div`&&(o=s.mod.neg(),r&&o.negative!==0&&o.iadd(e)),{div:a,mod:o}):this.negative===0&&e.negative!==0?(s=this.divmod(e.neg(),t),t!==`mod`&&(a=s.div.neg()),{div:a,mod:s.mod}):(this.negative&e.negative)===0?e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:e.length===1?t===`div`?{div:this.divn(e.words[0]),mod:null}:t===`mod`?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t):(s=this.neg().divmod(e.neg(),t),t!==`div`&&(o=s.mod.neg(),r&&o.negative!==0&&o.isub(e)),{div:s.div,mod:o})},i.prototype.div=function(e){return this.divmod(e,`div`,!1).div},i.prototype.mod=function(e){return this.divmod(e,`mod`,!1).mod},i.prototype.umod=function(e){return this.divmod(e,`mod`,!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=t.div.negative===0?t.mod:t.mod.isub(e),r=e.ushrn(1),i=e.andln(1),a=n.cmp(r);return a<0||i===1&&a===0?t.div:t.div.negative===0?t.div.iaddn(1):t.div.isubn(1)},i.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(this.words[i]|0))%e;return r},i.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(this.words[r]|0)+t*67108864;this.words[r]=i/e|0,t=i%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(e.negative===0),n(!e.isZero());var t=this,r=e.clone();t=t.negative===0?t.clone():t.umod(e);for(var a=new i(1),o=new i(0),s=new i(0),c=new i(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var u=r.clone(),d=t.clone();!t.isZero();){for(var f=0,p=1;(t.words[0]&p)===0&&f<26;++f,p<<=1);if(f>0)for(t.iushrn(f);f-->0;)(a.isOdd()||o.isOdd())&&(a.iadd(u),o.isub(d)),a.iushrn(1),o.iushrn(1);for(var m=0,h=1;(r.words[0]&h)===0&&m<26;++m,h<<=1);if(m>0)for(r.iushrn(m);m-->0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s),o.isub(c)):(r.isub(t),s.isub(a),c.isub(o))}return{a:s,b:c,gcd:r.iushln(l)}},i.prototype._invmp=function(e){n(e.negative===0),n(!e.isZero());var t=this,r=e.clone();t=t.negative===0?t.clone():t.umod(e);for(var a=new i(1),o=new i(0),s=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;(t.words[0]&l)===0&&c<26;++c,l<<=1);if(c>0)for(t.iushrn(c);c-->0;)a.isOdd()&&a.iadd(s),a.iushrn(1);for(var u=0,d=1;(r.words[0]&d)===0&&u<26;++u,d<<=1);if(u>0)for(r.iushrn(u);u-->0;)o.isOdd()&&o.iadd(s),o.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(o)):(r.isub(t),o.isub(a))}var f=t.cmpn(1)===0?a:o;return f.cmpn(0)<0&&f.iadd(e),f},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);do{for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var a=t;t=n,n=a}else if(i===0||n.cmpn(1)===0)break;t.isub(n)}while(1);return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return!(this.words[0]&1)},i.prototype.isOdd=function(){return(this.words[0]&1)==1},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n(typeof e==`number`);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var a=i,o=r;a!==0&&o<this.length;o++){var s=this.words[o]|0;s+=a,a=s>>>26,s&=67108863,this.words[o]=s}return a!==0&&(this.words[o]=a,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.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 r;if(this.length>1)r=1;else{t&&(e=-e),n(e<=67108863,`Number is too big`);var i=this.words[0]|0;r=i===e?0:i<e?-1:1}return this.negative===0?r:-r|0},i.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:-t|0},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=this.words[n]|0,i=e.words[n]|0;if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},i.prototype.gtn=function(e){return this.cmpn(e)===1},i.prototype.gt=function(e){return this.cmp(e)===1},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return this.cmpn(e)===-1},i.prototype.lt=function(e){return this.cmp(e)===-1},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return this.cmpn(e)===0},i.prototype.eq=function(e){return this.cmp(e)===0},i.red=function(e){return new T(e)},i.prototype.toRed=function(e){return n(!this.red,`Already a number in reduction context`),n(this.negative===0,`red works only with positives`),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,`fromRed works only with numbers in reduction context`),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,`Already a number in reduction context`),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,`redAdd works only with red numbers`),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,`redIAdd works only with red numbers`),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,`redSub works only with red numbers`),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,`redISub works only with red numbers`),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,`redShl works only with red numbers`),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,`redMul works only with red numbers`),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,`redMul works only with red numbers`),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,`redSqr works only with red numbers`),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,`redISqr works only with red numbers`),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,`redSqrt works only with red numbers`),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,`redInvm works only with red numbers`),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,`redNeg works only with red numbers`),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,`redPow(normalNum)`),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}b.prototype._tmp=function(){var e=new i(null);return e.words=Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t=e,n;do this.split(t,this.tmp),t=this.imulK(t),t=t.iadd(this.tmp),n=t.bitLength();while(n>this.n);var r=n<this.n?-1:t.ucmp(this.p);return r===0?(t.words[0]=0,t.length=1):r>0?t.isub(this.p):t.strip===void 0?t._strip():t.strip(),t},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)};function x(){b.call(this,`k256`,`ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f`)}r(x,b),x.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i<r;i++)t.words[i]=e.words[i];if(t.length=r,e.length<=9){e.words[0]=0,e.length=1;return}var a=e.words[9];for(t.words[t.length++]=a&n,i=10;i<e.length;i++){var o=e.words[i]|0;e.words[i-10]=(o&n)<<4|a>>>22,a=o}a>>>=22,e.words[i-10]=a,a===0&&e.length>10?e.length-=10:e.length-=9},x.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=e.words[n]|0;t+=r*977,e.words[n]=t&67108863,t=r*64+(t/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function S(){b.call(this,`p224`,`ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001`)}r(S,b);function C(){b.call(this,`p192`,`ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff`)}r(C,b);function w(){b.call(this,`25519`,`7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed`)}r(w,b),w.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=(e.words[n]|0)*19+t,i=r&67108863;r>>>=26,e.words[n]=i,t=r}return t!==0&&(e.words[e.length++]=t),e},i._prime=function(e){if(y[e])return y[e];var t;if(e===`k256`)t=new x;else if(e===`p224`)t=new S;else if(e===`p192`)t=new C;else if(e===`p25519`)t=new w;else throw Error(`Unknown prime `+e);return y[e]=t,t};function T(e){if(typeof e==`string`){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),`modulus must be greater than 1`),this.m=e,this.prime=null}T.prototype._verify1=function(e){n(e.negative===0,`red works only with positives`),n(e.red,`red works only with red numbers`)},T.prototype._verify2=function(e,t){n((e.negative|t.negative)===0,`red works only with positives`),n(e.red&&e.red===t.red,`red works only with red numbers`)},T.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},T.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},T.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},T.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},T.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},T.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},T.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},T.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},T.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},T.prototype.isqr=function(e){return this.imul(e,e.clone())},T.prototype.sqr=function(e){return this.mul(e,e)},T.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),t===3){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var a=this.m.subn(1),o=0;!a.isZero()&&a.andln(1)===0;)o++,a.iushrn(1);n(!a.isZero());var s=new i(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new i(2*u*u).toRed(this);this.pow(u,l).cmp(c)!==0;)u.redIAdd(c);for(var d=this.pow(u,a),f=this.pow(e,a.addn(1).iushrn(1)),p=this.pow(e,a),m=o;p.cmp(s)!==0;){for(var h=p,g=0;h.cmp(s)!==0;g++)h=h.redSqr();n(g<m);var _=this.pow(d,new i(1).iushln(m-g-1));f=f.redMul(_),d=_.redSqr(),p=p.redMul(d),m=g}return f},T.prototype.invm=function(e){var t=e._invmp(this.m);return t.negative===0?this.imod(t):(t.negative=0,this.imod(t).redNeg())},T.prototype.pow=function(e,t){if(t.isZero())return new i(1).toRed(this);if(t.cmpn(1)===0)return e.clone();var n=4,r=Array(1<<n);r[0]=new i(1).toRed(this),r[1]=e;for(var a=2;a<r.length;a++)r[a]=this.mul(r[a-1],e);var o=r[0],s=0,c=0,l=t.bitLength()%26;for(l===0&&(l=26),a=t.length-1;a>=0;a--){for(var u=t.words[a],d=l-1;d>=0;d--){var f=u>>d&1;if(o!==r[0]&&(o=this.sqr(o)),f===0&&s===0){c=0;continue}s<<=1,s|=f,c++,(c===n||a===0&&d===0)&&(o=this.mul(o,r[s]),c=0,s=0)}l=26}return o},T.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},T.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new E(e)};function E(e){T.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(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)}r(E,T),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}})(t===void 0||t,e)})),I=r(((e,t)=>{t.exports=n;function n(e,t){if(!e)throw Error(t||`Assertion failed`)}n.equal=function(e,t,n){if(e!=t)throw Error(n||`Assertion failed: `+e+` != `+t)}})),L=r((e=>{var t=e;function n(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if(typeof e!=`string`){for(var r=0;r<e.length;r++)n[r]=e[r]|0;return n}if(t===`hex`){e=e.replace(/[^a-z0-9]+/gi,``),e.length%2!=0&&(e=`0`+e);for(var r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16))}else for(var r=0;r<e.length;r++){var i=e.charCodeAt(r),a=i>>8,o=i&255;a?n.push(a,o):n.push(o)}return n}t.toArray=n;function r(e){return e.length===1?`0`+e:e}t.zero2=r;function i(e){for(var t=``,n=0;n<e.length;n++)t+=r(e[n].toString(16));return t}t.toHex=i,t.encode=function(e,t){return t===`hex`?i(e):e}})),R=r((e=>{var t=e,n=F(),r=I(),i=L();t.assert=r,t.toArray=i.toArray,t.zero2=i.zero2,t.toHex=i.toHex,t.encode=i.encode;function a(e,t,n){for(var r=Array(Math.max(e.bitLength(),n)+1),i=0;i<r.length;i+=1)r[i]=0;var a=1<<t+1,o=e.clone();for(i=0;i<r.length;i++){var s,c=o.andln(a-1);o.isOdd()?(s=c>(a>>1)-1?(a>>1)-c:c,o.isubn(s)):s=0,r[i]=s,o.iushrn(1)}return r}t.getNAF=a;function o(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r=0,i=0,a;e.cmpn(-r)>0||t.cmpn(-i)>0;){var o=e.andln(3)+r&3,s=t.andln(3)+i&3;o===3&&(o=-1),s===3&&(s=-1);var c;o&1?(a=e.andln(7)+r&7,c=(a===3||a===5)&&s===2?-o:o):c=0,n[0].push(c);var l;s&1?(a=t.andln(7)+i&7,l=(a===3||a===5)&&o===2?-s:s):l=0,n[1].push(l),2*r===c+1&&(r=1-r),2*i===l+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return n}t.getJSF=o;function s(e,t,n){var r=`_`+t;e.prototype[t]=function(){return this[r]===void 0?this[r]=n.call(this):this[r]}}t.cachedProperty=s;function c(e){return typeof e==`string`?t.toArray(e,`hex`):e}t.parseBytes=c;function l(e){return new n(e,`hex`,`le`)}t.intFromLE=l})),z=r(((e,t)=>{o(),a();var n=65536,r=4294967295;function c(){throw Error(`Secure random number generation is not supported by this browser.
2
+ Use Chrome, Firefox or Internet Explorer 11`)}var l=f().Buffer,u=s.crypto||s.msCrypto;t.exports=u&&u.getRandomValues?d:c;function d(e,t){if(e>r)throw RangeError(`requested too many random bytes`);var a=l.allocUnsafe(e);if(e>0){if(e>n)for(var o=0;o<e;o+=n)u.getRandomValues(a.slice(o,o+n));else u.getRandomValues(a)}return typeof t==`function`?i.nextTick(function(){t(null,a)}):a}})),B=r(((e,t)=>{t.exports=typeof Object.create==`function`?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),ne=r(((e,t)=>{var n=f().Buffer,r=m().Transform,i=B();function a(e){r.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}i(a,r),a.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)},a.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)};var o=typeof Uint8Array<`u`,s=typeof ArrayBuffer<`u`&&typeof Uint8Array<`u`&&ArrayBuffer.isView&&(n.prototype instanceof Uint8Array||n.TYPED_ARRAY_SUPPORT);function c(e,t){if(e instanceof n)return e;if(typeof e==`string`)return n.from(e,t);if(s&&ArrayBuffer.isView(e)){if(e.byteLength===0)return n.alloc(0);var r=n.from(e.buffer,e.byteOffset,e.byteLength);if(r.byteLength===e.byteLength)return r}if(o&&e instanceof Uint8Array||n.isBuffer(e)&&e.constructor&&typeof e.constructor.isBuffer==`function`&&e.constructor.isBuffer(e))return n.from(e);throw TypeError(`The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.`)}a.prototype.update=function(e,t){if(this._finalized)throw Error(`Digest already called`);e=c(e,t);for(var n=this._block,r=0;this._blockOffset+e.length-r>=this._blockSize;){for(var i=this._blockOffset;i<this._blockSize;)n[i++]=e[r++];this._update(),this._blockOffset=0}for(;r<e.length;)n[this._blockOffset++]=e[r++];for(var a=0,o=e.length*8;o>0;++a)this._length[a]+=o,o=this._length[a]/4294967296|0,o>0&&(this._length[a]-=4294967296*o);return this},a.prototype._update=function(){throw Error(`_update is not implemented`)},a.prototype.digest=function(e){if(this._finalized)throw Error(`Digest already called`);this._finalized=!0;var t=this._digest();e!==void 0&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},a.prototype._digest=function(){throw Error(`_digest is not implemented`)},t.exports=a})),V=r(((e,t)=>{var n=B(),r=ne(),i=f().Buffer,a=Array(16);function o(){r.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}n(o,r),o.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);var n=this._a,r=this._b,i=this._c,o=this._d;n=c(n,r,i,o,e[0],3614090360,7),o=c(o,n,r,i,e[1],3905402710,12),i=c(i,o,n,r,e[2],606105819,17),r=c(r,i,o,n,e[3],3250441966,22),n=c(n,r,i,o,e[4],4118548399,7),o=c(o,n,r,i,e[5],1200080426,12),i=c(i,o,n,r,e[6],2821735955,17),r=c(r,i,o,n,e[7],4249261313,22),n=c(n,r,i,o,e[8],1770035416,7),o=c(o,n,r,i,e[9],2336552879,12),i=c(i,o,n,r,e[10],4294925233,17),r=c(r,i,o,n,e[11],2304563134,22),n=c(n,r,i,o,e[12],1804603682,7),o=c(o,n,r,i,e[13],4254626195,12),i=c(i,o,n,r,e[14],2792965006,17),r=c(r,i,o,n,e[15],1236535329,22),n=l(n,r,i,o,e[1],4129170786,5),o=l(o,n,r,i,e[6],3225465664,9),i=l(i,o,n,r,e[11],643717713,14),r=l(r,i,o,n,e[0],3921069994,20),n=l(n,r,i,o,e[5],3593408605,5),o=l(o,n,r,i,e[10],38016083,9),i=l(i,o,n,r,e[15],3634488961,14),r=l(r,i,o,n,e[4],3889429448,20),n=l(n,r,i,o,e[9],568446438,5),o=l(o,n,r,i,e[14],3275163606,9),i=l(i,o,n,r,e[3],4107603335,14),r=l(r,i,o,n,e[8],1163531501,20),n=l(n,r,i,o,e[13],2850285829,5),o=l(o,n,r,i,e[2],4243563512,9),i=l(i,o,n,r,e[7],1735328473,14),r=l(r,i,o,n,e[12],2368359562,20),n=u(n,r,i,o,e[5],4294588738,4),o=u(o,n,r,i,e[8],2272392833,11),i=u(i,o,n,r,e[11],1839030562,16),r=u(r,i,o,n,e[14],4259657740,23),n=u(n,r,i,o,e[1],2763975236,4),o=u(o,n,r,i,e[4],1272893353,11),i=u(i,o,n,r,e[7],4139469664,16),r=u(r,i,o,n,e[10],3200236656,23),n=u(n,r,i,o,e[13],681279174,4),o=u(o,n,r,i,e[0],3936430074,11),i=u(i,o,n,r,e[3],3572445317,16),r=u(r,i,o,n,e[6],76029189,23),n=u(n,r,i,o,e[9],3654602809,4),o=u(o,n,r,i,e[12],3873151461,11),i=u(i,o,n,r,e[15],530742520,16),r=u(r,i,o,n,e[2],3299628645,23),n=d(n,r,i,o,e[0],4096336452,6),o=d(o,n,r,i,e[7],1126891415,10),i=d(i,o,n,r,e[14],2878612391,15),r=d(r,i,o,n,e[5],4237533241,21),n=d(n,r,i,o,e[12],1700485571,6),o=d(o,n,r,i,e[3],2399980690,10),i=d(i,o,n,r,e[10],4293915773,15),r=d(r,i,o,n,e[1],2240044497,21),n=d(n,r,i,o,e[8],1873313359,6),o=d(o,n,r,i,e[15],4264355552,10),i=d(i,o,n,r,e[6],2734768916,15),r=d(r,i,o,n,e[13],1309151649,21),n=d(n,r,i,o,e[4],4149444226,6),o=d(o,n,r,i,e[11],3174756917,10),i=d(i,o,n,r,e[2],718787259,15),r=d(r,i,o,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+o|0},o.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 e=i.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e};function s(e,t){return e<<t|e>>>32-t}function c(e,t,n,r,i,a,o){return s(e+(t&n|~t&r)+i+a|0,o)+t|0}function l(e,t,n,r,i,a,o){return s(e+(t&r|n&~r)+i+a|0,o)+t|0}function u(e,t,n,r,i,a,o){return s(e+(t^n^r)+i+a|0,o)+t|0}function d(e,t,n,r,i,a,o){return s(e+(n^(t|~r))+i+a|0,o)+t|0}t.exports=o})),H=r(((e,t)=>{var n={}.toString;t.exports=Array.isArray||function(e){return n.call(e)==`[object Array]`}})),re=r(((e,t)=>{t.exports=Object})),U=r(((e,t)=>{t.exports=Error})),W=r(((e,t)=>{t.exports=EvalError})),ie=r(((e,t)=>{t.exports=RangeError})),G=r(((e,t)=>{t.exports=ReferenceError})),K=r(((e,t)=>{t.exports=URIError})),ae=r(((e,t)=>{t.exports=Math.abs})),q=r(((e,t)=>{t.exports=Math.floor})),J=r(((e,t)=>{t.exports=Math.max})),oe=r(((e,t)=>{t.exports=Math.min})),se=r(((e,t)=>{t.exports=Math.pow})),ce=r(((e,t)=>{t.exports=Math.round})),le=r(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),ue=r(((e,t)=>{var n=le();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}})),Y=r(((e,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}})),de=r(((e,t)=>{var n=typeof Symbol<`u`&&Symbol,r=Y();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}})),X=r(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null})),fe=r(((e,t)=>{t.exports=re().getPrototypeOf||null})),pe=r(((e,t)=>{var n=Object.prototype.toString,r=Math.max,i=`[object Function]`,a=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},o=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},s=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||n.apply(t)!==i)throw TypeError(`Function.prototype.bind called on incompatible `+t);for(var c=o(arguments,1),l,u=function(){if(this instanceof l){var n=t.apply(this,a(c,arguments));return Object(n)===n?n:this}return t.apply(e,a(c,arguments))},d=r(0,t.length-c.length),f=[],p=0;p<d;p++)f[p]=`$`+p;if(l=Function(`binder`,`return function (`+s(f,`,`)+`){ return binder.apply(this,arguments); }`)(u),t.prototype){var m=function(){};m.prototype=t.prototype,l.prototype=new m,m.prototype=null}return l}})),Z=r(((e,t)=>{var n=pe();t.exports=Function.prototype.bind||n})),Q=r(((e,t)=>{t.exports=Function.prototype.call})),me=r(((e,t)=>{t.exports=Function.prototype.apply})),$=r(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply})),he=r(((e,t)=>{var n=Z(),r=me(),i=Q();t.exports=$()||n.call(i,r)})),ge=r(((e,t)=>{var n=Z(),r=v(),i=Q(),a=he();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}})),_e=r(((e,t)=>{var n=ge(),r=g(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`&&function(e){return s(e==null?e:o(e))}})),ve=r(((e,t)=>{var n=X(),r=fe(),i=_e();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null})),ye=r(((e,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=Z().call(n,r)})),be=r(((e,t)=>{var n,r=re(),i=U(),a=W(),o=ie(),s=G(),c=h(),l=v(),u=K(),d=ae(),f=q(),p=J(),m=oe(),_=se(),b=ce(),x=ue(),S=Function,C=function(e){try{return S(`"use strict"; return (`+e+`).constructor;`)()}catch{}},w=g(),T=y(),E=function(){throw new l},D=w?function(){try{return arguments.callee,E}catch{try{return w(arguments,`callee`).get}catch{return E}}}():E,O=de()(),k=ve(),A=fe(),ee=X(),j=me(),M=Q(),te={},N=typeof Uint8Array>`u`||!k?n:k(Uint8Array),P={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":O&&k?k([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":te,"%AsyncGenerator%":te,"%AsyncGeneratorFunction%":te,"%AsyncIteratorPrototype%":te,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":S,"%GeneratorFunction%":te,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":O&&k?k(k([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!O||!k?n:k(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!O||!k?n:k(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&k?k(``[Symbol.iterator]()):n,"%Symbol%":O?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":D,"%TypedArray%":N,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":M,"%Function.prototype.apply%":j,"%Object.defineProperty%":T,"%Object.getPrototypeOf%":A,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":_,"%Math.round%":b,"%Math.sign%":x,"%Reflect.getPrototypeOf%":ee};if(k)try{null.error}catch(e){P[`%Error.prototype%`]=k(k(e))}var F=function e(t){var n;if(t===`%AsyncFunction%`)n=C(`async function () {}`);else if(t===`%GeneratorFunction%`)n=C(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=C(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&k&&(n=k(i.prototype))}return P[t]=n,n},I={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},L=Z(),R=ye(),z=L.call(M,Array.prototype.concat),B=L.call(j,Array.prototype.splice),ne=L.call(M,String.prototype.replace),V=L.call(M,String.prototype.slice),H=L.call(M,RegExp.prototype.exec),le=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Y=/\\(\\)?/g,pe=function(e){var t=V(e,0,1),n=V(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return ne(e,le,function(e,t,n,i){r[r.length]=n?ne(i,Y,`$1`):t||e}),r},$=function(e,t){var n=e,r;if(R(I,n)&&(r=I[n],n=`%`+r[0]+`%`),R(P,n)){var i=P[n];if(i===te&&(i=F(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(H(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=pe(e),r=n.length>0?n[0]:``,i=$(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],B(n,z([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=V(p,0,1),h=V(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,R(P,a))o=P[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(w&&d+1>=n.length){var g=w(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=R(o,p),o=o[p];f&&!s&&(P[a]=o)}}return o}})),xe=r(((e,t)=>{var n=be(),r=ge(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}})),Se=r(((e,t)=>{var n=Function.prototype.toString,r=typeof Reflect==`object`&&Reflect!==null&&Reflect.apply,i,a;if(typeof r==`function`&&typeof Object.defineProperty==`function`)try{i=Object.defineProperty({},"length",{get:function(){throw a}}),a={},r(function(){throw 42},null,i)}catch(e){e!==a&&(r=null)}else r=null;var o=/^\s*class\b/,s=function(e){try{var t=n.call(e);return o.test(t)}catch{return!1}},c=function(e){try{return!s(e)&&(n.call(e),!0)}catch{return!1}},l=Object.prototype.toString,u=`[object Object]`,d=`[object Function]`,f=`[object GeneratorFunction]`,p=`[object HTMLAllCollection]`,m=`[object HTML document.all class]`,h=`[object HTMLCollection]`,g=typeof Symbol==`function`&&!!Symbol.toStringTag,_=!(0 in[,]),v=function(){return!1};if(typeof document==`object`){var y=document.all;l.call(y)===l.call(document.all)&&(v=function(e){if((_||!e)&&(e===void 0||typeof e==`object`))try{var t=l.call(e);return(t===p||t===m||t===h||t===u)&&e(``)==null}catch{}return!1})}t.exports=r?function(e){if(v(e))return!0;if(!e||typeof e!=`function`&&typeof e!=`object`)return!1;try{r(e,null,i)}catch(e){if(e!==a)return!1}return!s(e)&&c(e)}:function(e){if(v(e))return!0;if(!e||typeof e!=`function`&&typeof e!=`object`)return!1;if(g)return c(e);if(s(e))return!1;var t=l.call(e);return t!==d&&t!==f&&!/^\[object HTML/.test(t)?!1:c(e)}})),Ce=r(((e,t)=>{var n=Se(),r=Object.prototype.toString,i=Object.prototype.hasOwnProperty,a=function(e,t,n){for(var r=0,a=e.length;r<a;r++)i.call(e,r)&&(n==null?t(e[r],r,e):t.call(n,e[r],r,e))},o=function(e,t,n){for(var r=0,i=e.length;r<i;r++)n==null?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)},s=function(e,t,n){for(var r in e)i.call(e,r)&&(n==null?t(e[r],r,e):t.call(n,e[r],r,e))};function c(e){return r.call(e)===`[object Array]`}t.exports=function(e,t,r){if(!n(t))throw TypeError(`iterator must be a function`);var i;arguments.length>=3&&(i=r),c(e)?a(e,t,i):typeof e==`string`?o(e,t,i):s(e,t,i)}})),we=r(((e,t)=>{t.exports=[`Float16Array`,`Float32Array`,`Float64Array`,`Int8Array`,`Int16Array`,`Int32Array`,`Uint8Array`,`Uint8ClampedArray`,`Uint16Array`,`Uint32Array`,`BigInt64Array`,`BigUint64Array`]})),Te=r(((e,t)=>{o();var n=we(),r=typeof globalThis>`u`?s:globalThis;t.exports=function(){for(var e=[],t=0;t<n.length;t++)typeof r[n[t]]==`function`&&(e[e.length]=n[t]);return e}})),Ee=r(((e,t)=>{var n=be(),r=_(),i=b()(),a=g(),o=v(),s=n(`%Math.floor%`);t.exports=function(e,t){if(typeof e!=`function`)throw new o("`fn` is not a function");if(typeof t!=`number`||t<0||t>4294967295||s(t)!==t)throw new o("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],c=!0,l=!0;if(`length`in e&&a){var u=a(e,`length`);u&&!u.configurable&&(c=!1),u&&!u.writable&&(l=!1)}return(c||l||!n)&&(i?r(e,`length`,t,!0,!0):r(e,`length`,t)),e}})),De=r(((e,t)=>{var n=Z(),r=me(),i=he();t.exports=function(){return i(n,r,arguments)}})),Oe=r(((e,t)=>{var n=Ee(),r=y(),i=ge(),a=De();t.exports=function(e){var t=i(arguments),r=1+e.length-(arguments.length-1);return n(t,r>0?r:0,!0)},r?r(t.exports,`apply`,{value:a}):t.exports.apply=a})),ke=r(((e,t)=>{var n=Y();t.exports=function(){return n()&&!!Symbol.toStringTag}})),Ae=r(((e,t)=>{o();var n=Ce(),r=Te(),i=Oe(),a=xe(),c=g(),l=ve(),u=a(`Object.prototype.toString`),d=ke()(),f=typeof globalThis>`u`?s:globalThis,p=r(),m=a(`String.prototype.slice`),h=a(`Array.prototype.indexOf`,!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},_={__proto__:null};d&&c&&l?n(p,function(e){var t=new f[e];if(Symbol.toStringTag in t&&l){var n=l(t),r=c(n,Symbol.toStringTag);!r&&n&&(r=c(l(n),Symbol.toStringTag)),_[`$`+e]=i(r.get)}}):n(p,function(e){var t=new f[e],n=t.slice||t.set;n&&(_[`$`+e]=i(n))});var v=function(e){var t=!1;return n(_,function(n,r){if(!t)try{`$`+n(e)===r&&(t=m(r,1))}catch{}}),t},y=function(e){var t=!1;return n(_,function(n,r){if(!t)try{n(e),t=m(r,1)}catch{}}),t};t.exports=function(e){if(!e||typeof e!=`object`)return!1;if(!d){var t=m(u(e),8,-1);return h(p,t)>-1?t:t===`Object`&&y(e)}return c?v(e):null}})),je=r(((e,t)=>{var n=Ae();t.exports=function(e){return!!n(e)}})),Me=r(((e,t)=>{var n=v(),r=xe()(`TypedArray.prototype.buffer`,!0),i=je();t.exports=r||function(e){if(!i(e))throw new n(`Not a Typed Array`);return e.buffer}})),Ne=r(((e,t)=>{var n=f().Buffer,r=H(),i=Me(),a=ArrayBuffer.isView||function(e){try{return i(e),!0}catch{return!1}},o=typeof Uint8Array<`u`,s=typeof ArrayBuffer<`u`&&typeof Uint8Array<`u`,c=s&&(n.prototype instanceof Uint8Array||n.TYPED_ARRAY_SUPPORT);t.exports=function(e,t){if(n.isBuffer(e))return e.constructor&&!(`isBuffer`in e)?n.from(e):e;if(typeof e==`string`)return n.from(e,t);if(s&&a(e)){if(e.byteLength===0)return n.alloc(0);if(c){var i=n.from(e.buffer,e.byteOffset,e.byteLength);if(i.byteLength===e.byteLength)return i}var l=e instanceof Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),u=n.from(l);if(u.length===e.byteLength)return u}if(o&&e instanceof Uint8Array)return n.from(e);var d=r(e);if(d)for(var f=0;f<e.length;f+=1){var p=e[f];if(typeof p!=`number`||p<0||p>255||~~p!==p)throw RangeError(`Array items must be numbers in the range 0-255.`)}if(d||n.isBuffer(e)&&e.constructor&&typeof e.constructor.isBuffer==`function`&&e.constructor.isBuffer(e))return n.from(e);throw TypeError(`The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.`)}})),Pe=r(((e,t)=>{var n=f().Buffer,r=Ne(),i=typeof Uint8Array<`u`,a=i&&typeof ArrayBuffer<`u`&&ArrayBuffer.isView;t.exports=function(e,t){if(typeof e==`string`||n.isBuffer(e)||i&&e instanceof Uint8Array||a&&a(e))return r(e,t);throw TypeError(`The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView`)}})),Fe=r(((e,t)=>{a(),t.exports=i===void 0||!i.version||i.version.indexOf(`v0.`)===0||i.version.indexOf(`v1.`)===0&&i.version.indexOf(`v1.8.`)!==0?{nextTick:n}:i;function n(e,t,n,r){if(typeof e!=`function`)throw TypeError(`"callback" argument must be a function`);var a=arguments.length,o,s;switch(a){case 0:case 1:return i.nextTick(e);case 2:return i.nextTick(function(){e.call(null,t)});case 3:return i.nextTick(function(){e.call(null,t,n)});case 4:return i.nextTick(function(){e.call(null,t,n,r)});default:for(o=Array(a-1),s=0;s<o.length;)o[s++]=arguments[s];return i.nextTick(function(){e.apply(null,o)})}}})),Ie=r(((e,t)=>{var n={}.toString;t.exports=Array.isArray||function(e){return n.call(e)==`[object Array]`}})),Le=r(((e,t)=>{t.exports=p().EventEmitter})),Re=r(((e,t)=>{var n=u(),r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a);function a(e,t,n){return r(e,t,n)}i(r,a),a.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return r(e,t,n)},a.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var i=r(e);return t===void 0?i.fill(0):typeof n==`string`?i.fill(t,n):i.fill(t),i},a.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r(e)},a.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return n.SlowBuffer(e)}})),ze=r((e=>{function t(e){return Array.isArray?Array.isArray(e):g(e)===`[object Array]`}e.isArray=t;function n(e){return typeof e==`boolean`}e.isBoolean=n;function r(e){return e===null}e.isNull=r;function i(e){return e==null}e.isNullOrUndefined=i;function a(e){return typeof e==`number`}e.isNumber=a;function o(e){return typeof e==`string`}e.isString=o;function s(e){return typeof e==`symbol`}e.isSymbol=s;function c(e){return e===void 0}e.isUndefined=c;function l(e){return g(e)===`[object RegExp]`}e.isRegExp=l;function d(e){return typeof e==`object`&&!!e}e.isObject=d;function f(e){return g(e)===`[object Date]`}e.isDate=f;function p(e){return g(e)===`[object Error]`||e instanceof Error}e.isError=p;function m(e){return typeof e==`function`}e.isFunction=m;function h(e){return e===null||typeof e==`boolean`||typeof e==`number`||typeof e==`string`||typeof e==`symbol`||e===void 0}e.isPrimitive=h,e.isBuffer=u().Buffer.isBuffer;function g(e){return Object.prototype.toString.call(e)}})),Be=r(((e,t)=>{function n(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var r=Re().Buffer,i=m();function a(e,t,n){e.copy(t,n)}t.exports=function(){function e(){n(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(this.length!==0){var e=this.head.data;return this.head=this.length===1?this.tail=null:this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(this.length===0)return``;for(var t=this.head,n=``+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(this.length===0)return r.alloc(0);for(var t=r.allocUnsafe(e>>>0),n=this.head,i=0;n;)a(n.data,t,i),i+=n.data.length,n=n.next;return t},e}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+` `+e})})),Ve=r(((e,t)=>{var n=Fe();function r(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return i||o?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(a,this,e)):n.nextTick(a,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(a,r,e)):n.nextTick(a,r,e):t&&t(e)}),this)}function i(){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 a(e,t){e.emit(`error`,t)}t.exports={destroy:r,undestroy:i}})),He=r(((e,t)=>{o(),t.exports=n;function n(e,t){if(r(`noDeprecation`))return e;var n=!1;function i(){if(!n){if(r(`throwDeprecation`))throw Error(t);r(`traceDeprecation`)?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return i}function r(e){try{if(!s.localStorage)return!1}catch{return!1}var t=s.localStorage[e];return t!=null&&String(t).toLowerCase()===`true`}})),Ue=r(((e,t)=>{o(),a();var n=Fe();t.exports=x;function r(e){var t=this;this.next=null,this.entry=null,this.finish=function(){I(t,e)}}var c=!i.browser&&[`v0.10`,`v0.9.`].indexOf(i.version.slice(0,5))>-1?setImmediate:n.nextTick,l;x.WritableState=y;var u=Object.create(ze());u.inherits=B();var d={deprecate:He()},f=Le(),p=Re().Buffer,m=(s===void 0?typeof window<`u`?window:typeof self<`u`?self:{}:s).Uint8Array||function(){};function h(e){return p.from(e)}function g(e){return p.isBuffer(e)||e instanceof m}var _=Ve();u.inherits(x,f);function v(){}function y(e,t){l||=We(),e||={};var n=t instanceof l;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,a=e.writableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=i||i===0?i:n&&(a||a===0)?a:o,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 s=e.decodeStrings===!1;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){k(t,e)},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 r(this)}y.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},(function(){try{Object.defineProperty(y.prototype,"buffer",{get:d.deprecate(function(){return this.getBuffer()},`_writableState.buffer is deprecated. Use _writableState.getBuffer instead.`,`DEP0003`)})}catch{}})();var b;typeof Symbol==`function`&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==`function`?(b=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(e){return b.call(this,e)?!0:this===x&&e&&e._writableState instanceof y}})):b=function(e){return e instanceof this};function x(e){if(l||=We(),!b.call(x,this)&&!(this instanceof l))return new x(e);this._writableState=new y(e,this),this.writable=!0,e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final)),f.call(this)}x.prototype.pipe=function(){this.emit(`error`,Error(`Cannot pipe, not readable`))};function S(e,t){var r=Error(`write after end`);e.emit(`error`,r),n.nextTick(t,r)}function C(e,t,r,i){var a=!0,o=!1;return r===null?o=TypeError(`May not write null values to stream`):typeof r!=`string`&&r!==void 0&&!t.objectMode&&(o=TypeError(`Invalid non-string/buffer chunk`)),o&&(e.emit(`error`,o),n.nextTick(i,o),a=!1),a}x.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=!r.objectMode&&g(e);return a&&!p.isBuffer(e)&&(e=h(e)),typeof t==`function`&&(n=t,t=null),a?t=`buffer`:t||=r.defaultEncoding,typeof n!=`function`&&(n=v),r.ended?S(this,n):(a||C(this,r,e,n))&&(r.pendingcb++,i=T(this,r,a,e,t,n)),i},x.prototype.cork=function(){var e=this._writableState;e.corked++},x.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&j(this,e))},x.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=e.toLowerCase()),!([`hex`,`utf8`,`utf-8`,`ascii`,`binary`,`base64`,`ucs2`,`ucs-2`,`utf16le`,`utf-16le`,`raw`].indexOf((e+``).toLowerCase())>-1))throw TypeError(`Unknown encoding: `+e);return this._writableState.defaultEncoding=e,this};function w(e,t,n){return!e.objectMode&&e.decodeStrings!==!1&&typeof t==`string`&&(t=p.from(t,n)),t}Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function T(e,t,n,r,i,a){if(!n){var o=w(t,r,i);r!==o&&(n=!0,i=`buffer`,r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else E(e,t,!1,s,r,i,a);return c}function E(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function D(e,t,r,i,a){--t.pendingcb,r?(n.nextTick(a,i),n.nextTick(P,e,t),e._writableState.errorEmitted=!0,e.emit(`error`,i)):(a(i),e._writableState.errorEmitted=!0,e.emit(`error`,i),P(e,t))}function O(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function k(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(O(n),t)D(e,n,r,t,i);else{var a=M(n);!a&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&j(e,n),r?c(A,e,n,a,i):A(e,n,a,i)}}function A(e,t,n,r){n||ee(e,t),t.pendingcb--,r(),P(e,t)}function ee(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit(`drain`))}function j(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var i=t.bufferedRequestCount,a=Array(i),o=t.corkedRequestsFree;o.entry=n;for(var s=0,c=!0;n;)a[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;a.allBuffers=c,E(e,t,!0,t.length,a,``,o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new r(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,d=n.callback;if(E(e,t,!1,t.objectMode?1:l.length,l,u,d),n=n.next,t.bufferedRequestCount--,t.writing)break}n===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}x.prototype._write=function(e,t,n){n(Error(`_write() is not implemented`))},x.prototype._writev=null,x.prototype.end=function(e,t,n){var r=this._writableState;typeof e==`function`?(n=e,e=null,t=null):typeof t==`function`&&(n=t,t=null),e!=null&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||F(this,r,n)};function M(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function te(e,t){e._final(function(n){t.pendingcb--,n&&e.emit(`error`,n),t.prefinished=!0,e.emit(`prefinish`),P(e,t)})}function N(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final==`function`?(t.pendingcb++,t.finalCalled=!0,n.nextTick(te,e,t)):(t.prefinished=!0,e.emit(`prefinish`)))}function P(e,t){var n=M(t);return n&&(N(e,t),t.pendingcb===0&&(t.finished=!0,e.emit(`finish`))),n}function F(e,t,r){t.ending=!0,P(e,t),r&&(t.finished?n.nextTick(r):e.once(`finish`,r)),t.ended=!0,e.writable=!1}function I(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}Object.defineProperty(x.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),x.prototype.destroy=_.destroy,x.prototype._undestroy=_.undestroy,x.prototype._destroy=function(e,t){this.end(),t(e)}})),We=r(((e,t)=>{var n=Fe(),r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=u;var i=Object.create(ze());i.inherits=B();var a=Ke(),o=Ue();i.inherits(u,a);for(var s=r(o.prototype),c=0;c<s.length;c++){var l=s[c];u.prototype[l]||(u.prototype[l]=o.prototype[l])}function u(e){if(!(this instanceof u))return new u(e);a.call(this,e),o.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once(`end`,d)}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function d(){this.allowHalfOpen||this._writableState.ended||n.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(u.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),u.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}})),Ge=r((e=>{var t=Re().Buffer,n=t.isEncoding||function(e){switch(e=``+e,e&&e.toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:case`raw`:return!0;default:return!1}};function r(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}function i(e){var i=r(e);if(typeof i!=`string`&&(t.isEncoding===n||!n(e)))throw Error(`Unknown encoding: `+e);return i||e}e.StringDecoder=a;function a(e){this.encoding=i(e);var n;switch(this.encoding){case`utf16le`:this.text=f,this.end=p,n=4;break;case`utf8`:this.fillLast=l,n=4;break;case`base64`:this.text=m,this.end=h,n=3;break;default:this.write=g,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return``;n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||``},a.prototype.end=d,a.prototype.text=u,a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function l(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function u(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function f(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function m(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-n))}function h(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):``}})),Ke=r(((e,t)=>{o(),a();var n=Fe();t.exports=E;var r=Ie(),c;E.ReadableState=T,p().EventEmitter;var l=function(e,t){return e.listeners(t).length},u=Le(),d=Re().Buffer,f=(s===void 0?typeof window<`u`?window:typeof self<`u`?self:{}:s).Uint8Array||function(){};function h(e){return d.from(e)}function g(e){return d.isBuffer(e)||e instanceof f}var _=Object.create(ze());_.inherits=B();var v=m(),y=void 0;y=v&&v.debuglog?v.debuglog(`stream`):function(){};var b=Be(),x=Ve(),S;_.inherits(E,u);var C=[`error`,`close`,`destroy`,`pause`,`resume`];function w(e,t,n){if(typeof e.prependListener==`function`)return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):r(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}function T(e,t){c||=We(),e||={};var n=t instanceof c;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,i=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=r||r===0?r:n&&(i||i===0)?i:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,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=e.defaultEncoding||`utf8`,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(S||=Ge().StringDecoder,this.decoder=new S(e.encoding),this.encoding=e.encoding)}function E(e){if(c||=We(),!(this instanceof E))return new E(e);this._readableState=new T(e,this),this.readable=!0,e&&(typeof e.read==`function`&&(this._read=e.read),typeof e.destroy==`function`&&(this._destroy=e.destroy)),u.call(this)}Object.defineProperty(E.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),E.prototype.destroy=x.destroy,E.prototype._undestroy=x.undestroy,E.prototype._destroy=function(e,t){this.push(null),t(e)},E.prototype.push=function(e,t){var n=this._readableState,r;return n.objectMode?r=!0:typeof e==`string`&&(t||=n.defaultEncoding,t!==n.encoding&&(e=d.from(e,t),t=``),r=!0),D(this,e,t,!1,r)},E.prototype.unshift=function(e){return D(this,e,null,!0,!1)};function D(e,t,n,r,i){var a=e._readableState;if(t===null)a.reading=!1,te(e,a);else{var o;i||(o=k(a,t)),o?e.emit(`error`,o):a.objectMode||t&&t.length>0?(typeof t!=`string`&&!a.objectMode&&Object.getPrototypeOf(t)!==d.prototype&&(t=h(t)),r?a.endEmitted?e.emit(`error`,Error(`stream.unshift() after end event`)):O(e,a,t,!0):a.ended?e.emit(`error`,Error(`stream.push() after EOF`)):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||t.length!==0?O(e,a,t,!1):F(e,a)):O(e,a,t,!1))):r||(a.reading=!1)}return A(a)}function O(e,t,n,r){t.flowing&&t.length===0&&!t.sync?(e.emit(`data`,n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&N(e)),F(e,t)}function k(e,t){var n;return!g(t)&&typeof t!=`string`&&t!==void 0&&!e.objectMode&&(n=TypeError(`Invalid non-string/buffer chunk`)),n}function A(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}E.prototype.isPaused=function(){return this._readableState.flowing===!1},E.prototype.setEncoding=function(e){return S||=Ge().StringDecoder,this._readableState.decoder=new S(e),this._readableState.encoding=e,this};var ee=8388608;function j(e){return e>=ee?e=ee:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function M(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e===e?(e>t.highWaterMark&&(t.highWaterMark=j(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}E.prototype.read=function(e){y(`read`,e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return y(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?ie(this):N(this),null;if(e=M(e,t),e===0&&t.ended)return t.length===0&&ie(this),null;var r=t.needReadable;y(`need readable`,r),(t.length===0||t.length-e<t.highWaterMark)&&(r=!0,y(`length less than watermark`,r)),t.ended||t.reading?(r=!1,y(`reading or ended`,r)):r&&(y(`do read`),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=M(n,t)));var i=e>0?H(e,t):null;return i===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&ie(this)),i!==null&&this.emit(`data`,i),i};function te(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,N(e)}}function N(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(y(`emitReadable`,t.flowing),t.emittedReadable=!0,t.sync?n.nextTick(P,e):P(e))}function P(e){y(`emit readable`),e.emit(`readable`),V(e)}function F(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(I,e,t))}function I(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(y(`maybeReadMore read 0`),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}E.prototype._read=function(e){this.emit(`error`,Error(`_read() is not implemented`))},E.prototype.pipe=function(e,t){var r=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,y(`pipe count=%d opts=%j`,a.pipesCount,t);var o=(!t||t.end!==!1)&&e!==i.stdout&&e!==i.stderr?c:v;a.endEmitted?n.nextTick(o):r.once(`end`,o),e.on(`unpipe`,s);function s(e,t){y(`onunpipe`),e===r&&t&&t.hasUnpiped===!1&&(t.hasUnpiped=!0,f())}function c(){y(`onend`),e.end()}var u=L(r);e.on(`drain`,u);var d=!1;function f(){y(`cleanup`),e.removeListener(`close`,g),e.removeListener(`finish`,_),e.removeListener(`drain`,u),e.removeListener(`error`,h),e.removeListener(`unpipe`,s),r.removeListener(`end`,c),r.removeListener(`end`,v),r.removeListener(`data`,m),d=!0,a.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u()}var p=!1;r.on(`data`,m);function m(t){y(`ondata`),p=!1,!1===e.write(t)&&!p&&((a.pipesCount===1&&a.pipes===e||a.pipesCount>1&&K(a.pipes,e)!==-1)&&!d&&(y(`false write response, pause`,a.awaitDrain),a.awaitDrain++,p=!0),r.pause())}function h(t){y(`onerror`,t),v(),e.removeListener(`error`,h),l(e,`error`)===0&&e.emit(`error`,t)}w(e,`error`,h);function g(){e.removeListener(`finish`,_),v()}e.once(`close`,g);function _(){y(`onfinish`),e.removeListener(`close`,g),v()}e.once(`finish`,_);function v(){y(`unpipe`),r.unpipe(e)}return e.emit(`pipe`,r),a.flowing||(y(`pipe resume`),r.resume()),e};function L(e){return function(){var t=e._readableState;y(`pipeOnDrain`,t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&l(e,`data`)&&(t.flowing=!0,V(e))}}E.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||=t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(`unpipe`,this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit(`unpipe`,this,{hasUnpiped:!1});return this}var o=K(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),--t.pipesCount,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit(`unpipe`,this,n),this)},E.prototype.on=function(e,t){var r=u.prototype.on.call(this,e,t);if(e===`data`)this._readableState.flowing!==!1&&this.resume();else if(e===`readable`){var i=this._readableState;!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&N(this):n.nextTick(R,this))}return r},E.prototype.addListener=E.prototype.on;function R(e){y(`readable nexttick read 0`),e.read(0)}E.prototype.resume=function(){var e=this._readableState;return e.flowing||(y(`resume`),e.flowing=!0,z(this,e)),this};function z(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(ne,e,t))}function ne(e,t){t.reading||(y(`resume read 0`),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit(`resume`),V(e),t.flowing&&!t.reading&&e.read(0)}E.prototype.pause=function(){return y(`call pause flowing=%j`,this._readableState.flowing),!1!==this._readableState.flowing&&(y(`pause`),this._readableState.flowing=!1,this.emit(`pause`)),this};function V(e){var t=e._readableState;for(y(`flow`,t.flowing);t.flowing&&e.read()!==null;);}E.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on(`end`,function(){if(y(`wrapped end`),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on(`data`,function(i){y(`wrapped data`),n.decoder&&(i=n.decoder.write(i)),!(n.objectMode&&i==null)&&(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))}),e)this[i]===void 0&&typeof e[i]==`function`&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<C.length;a++)e.on(C[a],this.emit.bind(this,C[a]));return this._read=function(t){y(`wrapped _read`,t),r&&(r=!1,e.resume())},this},Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),E._fromList=H;function H(e,t){if(t.length===0)return null;var n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=re(e,t.buffer,t.decoder),n}function re(e,t,n){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?U(e,t):W(e,t),r}function U(e,t){var n=t.head,r=1,i=n.data;for(e-=i.length;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),e-=o,e===0){o===a.length?(++r,t.head=n.next?n.next:t.tail=null):(t.head=n,n.data=a.slice(o));break}++r}return t.length-=r,i}function W(e,t){var n=d.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(a.copy(n,n.length-e,0,o),e-=o,e===0){o===a.length?(++i,t.head=r.next?r.next:t.tail=null):(t.head=r,r.data=a.slice(o));break}++i}return t.length-=i,n}function ie(e){var t=e._readableState;if(t.length>0)throw Error(`"endReadable()" called on non-empty stream`);t.endEmitted||(t.ended=!0,n.nextTick(G,t,e))}function G(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(`end`))}function K(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}})),qe=r(((e,t)=>{t.exports=a;var n=We(),r=Object.create(ze());r.inherits=B(),r.inherits(a,n);function i(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit(`error`,Error(`write callback called multiple times`));n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState={afterTransform:i.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform==`function`&&(this._transform=e.transform),typeof e.flush==`function`&&(this._flush=e.flush)),this.on(`prefinish`,o)}function o(){var e=this;typeof this._flush==`function`?this._flush(function(t,n){s(e,t,n)}):s(this,null,null)}a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw Error(`_transform() is not implemented`)},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,function(e){t(e),r.emit(`close`)})};function s(e,t,n){if(t)return e.emit(`error`,t);if(n!=null&&e.push(n),e._writableState.length)throw Error(`Calling transform done when ws.length != 0`);if(e._transformState.transforming)throw Error(`Calling transform done when still transforming`);return e.push(null)}})),Je=r(((e,t)=>{t.exports=i;var n=qe(),r=Object.create(ze());r.inherits=B(),r.inherits(i,n);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}i.prototype._transform=function(e,t,n){n(null,e)}})),Ye=r(((e,t)=>{e=t.exports=Ke(),e.Stream=e,e.Readable=e,e.Writable=Ue(),e.Duplex=We(),e.Transform=qe(),e.PassThrough=Je()})),Xe=r(((e,t)=>{var n=f().Buffer,r=Pe(),i=Ye().Transform,a=B();function o(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}a(o,i),o.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},o.prototype.update=function(e,t){if(this._finalized)throw Error(`Digest already called`);for(var n=r(e,t),i=this._block,a=0;this._blockOffset+n.length-a>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)i[o]=n[a],o+=1,a+=1;this._update(),this._blockOffset=0}for(;a<n.length;)i[this._blockOffset]=n[a],this._blockOffset+=1,a+=1;for(var s=0,c=n.length*8;c>0;++s)this._length[s]+=c,c=this._length[s]/4294967296|0,c>0&&(this._length[s]-=4294967296*c);return this},o.prototype._update=function(){throw Error(`_update is not implemented`)},o.prototype.digest=function(e){if(this._finalized)throw Error(`Digest already called`);this._finalized=!0;var t=this._digest();e!==void 0&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},o.prototype._digest=function(){throw Error(`_digest is not implemented`)},t.exports=o})),Ze=r(((e,t)=>{var n=u().Buffer,r=B(),i=Xe(),a=Array(16),o=[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],s=[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],c=[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],l=[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],d=[0,1518500249,1859775393,2400959708,2840853838],f=[1352829926,1548603684,1836072691,2053994217,0];function p(e,t){return e<<t|e>>>32-t}function m(e,t,n,r,i,a,o,s){return p(e+(t^n^r)+a+o|0,s)+i|0}function h(e,t,n,r,i,a,o,s){return p(e+(t&n|~t&r)+a+o|0,s)+i|0}function g(e,t,n,r,i,a,o,s){return p(e+((t|~n)^r)+a+o|0,s)+i|0}function _(e,t,n,r,i,a,o,s){return p(e+(t&r|n&~r)+a+o|0,s)+i|0}function v(e,t,n,r,i,a,o,s){return p(e+(t^(n|~r))+a+o|0,s)+i|0}function y(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}r(y,i),y.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);for(var n=this._a|0,r=this._b|0,i=this._c|0,u=this._d|0,y=this._e|0,b=this._a|0,x=this._b|0,S=this._c|0,C=this._d|0,w=this._e|0,T=0;T<80;T+=1){var E,D;T<16?(E=m(n,r,i,u,y,e[o[T]],d[0],c[T]),D=v(b,x,S,C,w,e[s[T]],f[0],l[T])):T<32?(E=h(n,r,i,u,y,e[o[T]],d[1],c[T]),D=_(b,x,S,C,w,e[s[T]],f[1],l[T])):T<48?(E=g(n,r,i,u,y,e[o[T]],d[2],c[T]),D=g(b,x,S,C,w,e[s[T]],f[2],l[T])):T<64?(E=_(n,r,i,u,y,e[o[T]],d[3],c[T]),D=h(b,x,S,C,w,e[s[T]],f[3],l[T])):(E=v(n,r,i,u,y,e[o[T]],d[4],c[T]),D=m(b,x,S,C,w,e[s[T]],f[4],l[T])),n=y,y=u,u=p(i,10),i=r,r=E,b=w,w=C,C=p(S,10),S=x,x=D}var O=this._b+i+C|0;this._b=this._c+u+w|0,this._c=this._d+y+b|0,this._d=this._e+n+x|0,this._e=this._a+r+S|0,this._a=O},y.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 e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},t.exports=y})),Qe=r(((e,t)=>{var n=f().Buffer,r=Ne();function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){e=r(e,t||`utf8`);for(var n=this._block,i=this._blockSize,a=e.length,o=this._len,s=0;s<a;){for(var c=o%i,l=Math.min(a-s,i-c),u=0;u<l;u++)n[c+u]=e[s+u];o+=l,s+=l,o%i===0&&this._update(n)}return this._len+=a,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=this._len*8;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(n&4294967295)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},i.prototype._update=function(){throw Error(`_update must be implemented by subclass`)},t.exports=i})),$e=r(((e,t)=>{var n=B(),r=Qe(),i=f().Buffer,a=[1518500249,1859775393,-1894007588,-899497514],o=Array(80);function s(){this.init(),this._w=o,r.call(this,64,56)}n(s,r),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function c(e){return e<<5|e>>>27}function l(e){return e<<30|e>>>2}function u(e,t,n,r){return e===0?t&n|~t&r:e===2?t&n|t&r|n&r:t^n^r}s.prototype._update=function(e){for(var t=this._w,n=this._a|0,r=this._b|0,i=this._c|0,o=this._d|0,s=this._e|0,d=0;d<16;++d)t[d]=e.readInt32BE(d*4);for(;d<80;++d)t[d]=t[d-3]^t[d-8]^t[d-14]^t[d-16];for(var f=0;f<80;++f){var p=~~(f/20),m=c(n)+u(p,r,i,o)+s+t[f]+a[p]|0;s=o,o=i,i=l(r),r=n,n=m}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e},t.exports=s})),et=r(((e,t)=>{var n=B(),r=Qe(),i=f().Buffer,a=[1518500249,1859775393,-1894007588,-899497514],o=Array(80);function s(){this.init(),this._w=o,r.call(this,64,56)}n(s,r),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function c(e){return e<<1|e>>>31}function l(e){return e<<5|e>>>27}function u(e){return e<<30|e>>>2}function d(e,t,n,r){return e===0?t&n|~t&r:e===2?t&n|t&r|n&r:t^n^r}s.prototype._update=function(e){for(var t=this._w,n=this._a|0,r=this._b|0,i=this._c|0,o=this._d|0,s=this._e|0,f=0;f<16;++f)t[f]=e.readInt32BE(f*4);for(;f<80;++f)t[f]=c(t[f-3]^t[f-8]^t[f-14]^t[f-16]);for(var p=0;p<80;++p){var m=~~(p/20),h=l(n)+d(m,r,i,o)+s+t[p]+a[m]|0;s=o,o=i,i=u(r),r=n,n=h}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e},t.exports=s})),tt=r(((e,t)=>{var n=B(),r=Qe(),i=f().Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],o=Array(64);function s(){this.init(),this._w=o,r.call(this,64,56)}n(s,r),s.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function c(e,t,n){return n^e&(t^n)}function l(e,t,n){return e&t|n&(e|t)}function u(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function p(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function m(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}s.prototype._update=function(e){for(var t=this._w,n=this._a|0,r=this._b|0,i=this._c|0,o=this._d|0,s=this._e|0,f=this._f|0,h=this._g|0,g=this._h|0,_=0;_<16;++_)t[_]=e.readInt32BE(_*4);for(;_<64;++_)t[_]=m(t[_-2])+t[_-7]+p(t[_-15])+t[_-16]|0;for(var v=0;v<64;++v){var y=g+d(s)+c(s,f,h)+a[v]+t[v]|0,b=u(n)+l(n,r,i)|0;g=h,h=f,f=s,s=o+y|0,o=i,i=r,r=n,n=y+b|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0,this._f=f+this._f|0,this._g=h+this._g|0,this._h=g+this._h|0},s.prototype._hash=function(){var e=i.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=s})),nt=r(((e,t)=>{var n=B(),r=tt(),i=Qe(),a=f().Buffer,o=Array(64);function s(){this.init(),this._w=o,i.call(this,64,56)}n(s,r),s.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},s.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=s})),rt=r(((e,t)=>{var n=B(),r=Qe(),i=f().Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],o=Array(160);function s(){this.init(),this._w=o,r.call(this,128,112)}n(s,r),s.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function c(e,t,n){return n^e&(t^n)}function l(e,t,n){return e&t|n&(e|t)}function u(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function m(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function h(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function _(e,t){return+(e>>>0<t>>>0)}s.prototype._update=function(e){for(var t=this._w,n=this._ah|0,r=this._bh|0,i=this._ch|0,o=this._dh|0,s=this._eh|0,f=this._fh|0,v=this._gh|0,y=this._hh|0,b=this._al|0,x=this._bl|0,S=this._cl|0,C=this._dl|0,w=this._el|0,T=this._fl|0,E=this._gl|0,D=this._hl|0,O=0;O<32;O+=2)t[O]=e.readInt32BE(O*4),t[O+1]=e.readInt32BE(O*4+4);for(;O<160;O+=2){var k=t[O-30],A=t[O-30+1],ee=p(k,A),j=m(A,k);k=t[O-4],A=t[O-4+1];var M=h(k,A),te=g(A,k),N=t[O-14],P=t[O-14+1],F=t[O-32],I=t[O-32+1],L=j+P|0,R=ee+N+_(L,j)|0;L=L+te|0,R=R+M+_(L,te)|0,L=L+I|0,R=R+F+_(L,I)|0,t[O]=R,t[O+1]=L}for(var z=0;z<160;z+=2){R=t[z],L=t[z+1];var B=l(n,r,i),ne=l(b,x,S),V=u(n,b),H=u(b,n),re=d(s,w),U=d(w,s),W=a[z],ie=a[z+1],G=c(s,f,v),K=c(w,T,E),ae=D+U|0,q=y+re+_(ae,D)|0;ae=ae+K|0,q=q+G+_(ae,K)|0,ae=ae+ie|0,q=q+W+_(ae,ie)|0,ae=ae+L|0,q=q+R+_(ae,L)|0;var J=H+ne|0,oe=V+B+_(J,H)|0;y=v,D=E,v=f,E=T,f=s,T=w,w=C+ae|0,s=o+q+_(w,C)|0,o=i,C=S,i=r,S=x,r=n,x=b,b=ae+J|0,n=q+oe+_(b,ae)|0}this._al=this._al+b|0,this._bl=this._bl+x|0,this._cl=this._cl+S|0,this._dl=this._dl+C|0,this._el=this._el+w|0,this._fl=this._fl+T|0,this._gl=this._gl+E|0,this._hl=this._hl+D|0,this._ah=this._ah+n+_(this._al,b)|0,this._bh=this._bh+r+_(this._bl,x)|0,this._ch=this._ch+i+_(this._cl,S)|0,this._dh=this._dh+o+_(this._dl,C)|0,this._eh=this._eh+s+_(this._el,w)|0,this._fh=this._fh+f+_(this._fl,T)|0,this._gh=this._gh+v+_(this._gl,E)|0,this._hh=this._hh+y+_(this._hl,D)|0},s.prototype._hash=function(){var e=i.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},t.exports=s})),it=r(((e,t)=>{var n=B(),r=rt(),i=Qe(),a=f().Buffer,o=Array(160);function s(){this.init(),this._w=o,i.call(this,128,112)}n(s,r),s.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},s.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},t.exports=s})),at=r(((e,t)=>{t.exports=function(e){var n=e.toLowerCase(),r=t.exports[n];if(!r)throw Error(n+` is not supported (we accept pull requests)`);return new r},t.exports.sha=$e(),t.exports.sha1=et(),t.exports.sha224=nt(),t.exports.sha256=tt(),t.exports.sha384=it(),t.exports.sha512=rt()})),ot=r((e=>{var t=f().Buffer,n=t.isEncoding||function(e){switch(e=``+e,e&&e.toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:case`raw`:return!0;default:return!1}};function r(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}function i(e){var i=r(e);if(typeof i!=`string`&&(t.isEncoding===n||!n(e)))throw Error(`Unknown encoding: `+e);return i||e}e.StringDecoder=a;function a(e){this.encoding=i(e);var n;switch(this.encoding){case`utf16le`:this.text=p,this.end=m,n=4;break;case`utf8`:this.fillLast=l,n=4;break;case`base64`:this.text=h,this.end=g,n=3;break;default:this.write=_,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return``;n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||``},a.prototype.end=d,a.prototype.text=u,a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function l(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function u(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function p(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function h(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-n))}function g(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function _(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):``}})),st=r(((e,t)=>{var n=f().Buffer,r=m().Transform,i=ot().StringDecoder,a=B(),o=Ne();function s(e){r.call(this),this.hashMode=typeof e==`string`,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&=(this.__final=this._final,null),this._decoder=null,this._encoding=null}a(s,r),s.prototype.update=function(e,t,n){var r=o(e,t),i=this._update(r);return this.hashMode?this:(n&&(i=this._toString(i,n)),i)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw Error(`trying to get auth tag in unsupported state`)},s.prototype.setAuthTag=function(){throw Error(`trying to set auth tag in unsupported state`)},s.prototype.setAAD=function(){throw Error(`trying to set aad in unsupported state`)},s.prototype._transform=function(e,t,n){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){r=e}finally{n(r)}},s.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},s.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},s.prototype._toString=function(e,t,n){if(this._decoder||(this._decoder=new i(t),this._encoding=t),this._encoding!==t)throw Error(`can’t switch encodings`);var r=this._decoder.write(e);return n&&(r+=this._decoder.end()),r},t.exports=s})),ct=r(((e,t)=>{var n=B(),r=V(),i=Ze(),a=at(),o=st();function s(e){o.call(this,`digest`),this._hash=e}n(s,o),s.prototype._update=function(e){this._hash.update(e)},s.prototype._final=function(){return this._hash.digest()},t.exports=function(e){return e=e.toLowerCase(),e===`md5`?new r:e===`rmd160`||e===`ripemd160`?new i:new s(a(e))}})),lt=r(((e,t)=>{var n=B(),r=f().Buffer,i=st(),a=r.alloc(128),o=64;function s(e,t){i.call(this,`digest`),typeof t==`string`&&(t=r.from(t)),this._alg=e,this._key=t,t.length>o?t=e(t):t.length<o&&(t=r.concat([t,a],o));for(var n=this._ipad=r.allocUnsafe(o),s=this._opad=r.allocUnsafe(o),c=0;c<o;c++)n[c]=t[c]^54,s[c]=t[c]^92;this._hash=[n]}n(s,i),s.prototype._update=function(e){this._hash.push(e)},s.prototype._final=function(){var e=this._alg(r.concat(this._hash));return this._alg(r.concat([this._opad,e]))},t.exports=s})),ut=r(((e,t)=>{var n=V();t.exports=function(e){return new n().update(e).digest()}})),dt=r(((e,t)=>{var n=B(),r=lt(),i=st(),a=f().Buffer,o=ut(),s=Ze(),c=at(),l=a.alloc(128);function u(e,t){i.call(this,`digest`),typeof t==`string`&&(t=a.from(t));var n=e===`sha512`||e===`sha384`?128:64;this._alg=e,this._key=t,t.length>n?t=(e===`rmd160`?new s:c(e)).update(t).digest():t.length<n&&(t=a.concat([t,l],n));for(var r=this._ipad=a.allocUnsafe(n),o=this._opad=a.allocUnsafe(n),u=0;u<n;u++)r[u]=t[u]^54,o[u]=t[u]^92;this._hash=e===`rmd160`?new s:c(e),this._hash.update(r)}n(u,i),u.prototype._update=function(e){this._hash.update(e)},u.prototype._final=function(){var e=this._hash.digest();return(this._alg===`rmd160`?new s:c(this._alg)).update(this._opad).update(e).digest()},t.exports=function(e,t){return e=e.toLowerCase(),e===`rmd160`||e===`ripemd160`?new u(`rmd160`,t):e===`md5`?new r(o,t):new u(e,t)}})),ft=n({DSA:()=>xt,default:()=>wt,md5WithRSAEncryption:()=>Ct,ripemd160WithRSA:()=>St,sha224:()=>vt,sha224WithRSAEncryption:()=>pt,sha256:()=>_t,sha256WithRSAEncryption:()=>mt,sha384:()=>yt,sha384WithRSAEncryption:()=>ht,sha512:()=>bt,sha512WithRSAEncryption:()=>gt}),pt,mt,ht,gt,_t,vt,yt,bt,xt,St,Ct,wt,Tt=e((()=>{pt={sign:`rsa`,hash:`sha224`,id:`302d300d06096086480165030402040500041c`},mt={sign:`rsa`,hash:`sha256`,id:`3031300d060960864801650304020105000420`},ht={sign:`rsa`,hash:`sha384`,id:`3041300d060960864801650304020205000430`},gt={sign:`rsa`,hash:`sha512`,id:`3051300d060960864801650304020305000440`},_t={sign:`ecdsa`,hash:`sha256`,id:``},vt={sign:`ecdsa`,hash:`sha224`,id:``},yt={sign:`ecdsa`,hash:`sha384`,id:``},bt={sign:`ecdsa`,hash:`sha512`,id:``},xt={sign:`dsa`,hash:`sha1`,id:``},St={sign:`rsa`,hash:`rmd160`,id:`3021300906052b2403020105000414`},Ct={sign:`rsa`,hash:`md5`,id:`3020300c06082a864886f70d020505000410`},wt={sha224WithRSAEncryption:pt,"RSA-SHA224":{sign:`ecdsa/rsa`,hash:`sha224`,id:`302d300d06096086480165030402040500041c`},sha256WithRSAEncryption:mt,"RSA-SHA256":{sign:`ecdsa/rsa`,hash:`sha256`,id:`3031300d060960864801650304020105000420`},sha384WithRSAEncryption:ht,"RSA-SHA384":{sign:`ecdsa/rsa`,hash:`sha384`,id:`3041300d060960864801650304020205000430`},sha512WithRSAEncryption:gt,"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:_t,sha224:vt,sha384:yt,sha512:bt,"DSA-SHA":{sign:`dsa`,hash:`sha1`,id:``},"DSA-SHA1":{sign:`dsa`,hash:`sha1`,id:``},DSA:xt,"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:St,"RSA-RIPEMD160":{sign:`rsa`,hash:`rmd160`,id:`3021300906052b2403020105000414`},md5WithRSAEncryption:Ct,"RSA-MD5":{sign:`rsa`,hash:`md5`,id:`3020300c06082a864886f70d020505000410`}}})),Et=r(((e,n)=>{n.exports=(Tt(),t(ft).default)})),Dt=r(((e,t)=>{var n=isFinite,r=2**30-1;t.exports=function(e,t){if(typeof e!=`number`)throw TypeError(`Iterations not a number`);if(e<0||!n(e))throw TypeError(`Bad iterations`);if(typeof t!=`number`)throw TypeError(`Key length not a number`);if(t<0||t>r||t!==t)throw TypeError(`Bad key length`);return t+0}})),Ot=r(((e,t)=>{o(),a(),t.exports=s.process&&s.process.browser?`utf-8`:s.process&&s.process.version?parseInt(i.version.split(`.`)[0].slice(1),10)>=6?`utf-8`:`binary`:`utf-8`})),kt=r(((e,t)=>{var n=f().Buffer,r=Ne(),i=typeof Uint8Array<`u`,a=i&&typeof ArrayBuffer<`u`&&ArrayBuffer.isView;t.exports=function(e,t,o){if(typeof e==`string`||n.isBuffer(e)||i&&e instanceof Uint8Array||a&&a(e))return r(e,t);throw TypeError(o+` must be a string, a Buffer, a Uint8Array, or a DataView`)}})),At=r(((e,t)=>{var n=ut(),r=Ze(),i=at(),a=f().Buffer,o=Dt(),s=Ot(),c=kt(),l=a.alloc(128),u={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},d={__proto__:null,"sha-1":`sha1`,"sha-224":`sha224`,"sha-256":`sha256`,"sha-384":`sha384`,"sha-512":`sha512`,"ripemd-160":`ripemd160`};function p(e){return new r().update(e).digest()}function m(e){function t(t){return i(e).update(t).digest()}return e===`rmd160`||e===`ripemd160`?p:e===`md5`?n:t}function h(e,t,n){var r=m(e),i=e===`sha512`||e===`sha384`?128:64;t.length>i?t=r(t):t.length<i&&(t=a.concat([t,l],i));for(var o=a.allocUnsafe(i+u[e]),s=a.allocUnsafe(i+u[e]),c=0;c<i;c++)o[c]=t[c]^54,s[c]=t[c]^92;var d=a.allocUnsafe(i+n+4);o.copy(d,0,0,i),this.ipad1=d,this.ipad2=o,this.opad=s,this.alg=e,this.blocksize=i,this.hash=r,this.size=u[e]}h.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)};function g(e,t,n,r,i){r=o(n,r),e=c(e,s,`Password`),t=c(t,s,`Salt`);var l=(i||`sha1`).toLowerCase(),f=d[l]||l,p=u[f];if(typeof p!=`number`||!p)throw TypeError(`Digest algorithm not supported: `+i);var m=new h(f,e,t.length),g=a.allocUnsafe(r),_=a.allocUnsafe(t.length+4);t.copy(_,0,0,t.length);for(var v=0,y=p,b=Math.ceil(r/y),x=1;x<=b;x++){_.writeUInt32BE(x,t.length);for(var S=m.run(_,m.ipad1),C=S,w=1;w<n;w++){C=m.run(C,m.ipad2);for(var T=0;T<y;T++)S[T]^=C[T]}S.copy(g,v),v+=y}return g}t.exports=g})),jt=r(((e,t)=>{o();var n=f().Buffer,r=Dt(),i=Ot(),a=At(),c=kt(),l,u=s.crypto&&s.crypto.subtle,d={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`},p=[],m;function h(){return m||(m=s.process&&s.process.nextTick?s.process.nextTick:s.queueMicrotask?s.queueMicrotask:s.setImmediate?s.setImmediate:s.setTimeout,m)}function g(e,t,r,i,a){return u.importKey(`raw`,e,{name:`PBKDF2`},!1,[`deriveBits`]).then(function(e){return u.deriveBits({name:`PBKDF2`,salt:t,iterations:r,hash:{name:a}},e,i<<3)}).then(function(e){return n.from(e)})}function _(e){if(s.process&&!s.process.browser||!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(p[e]!==void 0)return p[e];l||=n.alloc(8);var t=g(l,l,10,128,e).then(function(){return!0},function(){return!1});return p[e]=t,t}function v(e,t){e.then(function(e){h()(function(){t(null,e)})},function(e){h()(function(){t(e)})})}t.exports=function(e,t,n,o,l,u){if(typeof l==`function`&&(u=l,l=void 0),o=r(n,o),e=c(e,i,`Password`),t=c(t,i,`Salt`),typeof u!=`function`)throw Error(`No callback provided to pbkdf2`);l||=`sha1`;var f=d[l.toLowerCase()];if(!f||typeof s.Promise!=`function`){h()(function(){var r;try{r=a(e,t,n,o,l)}catch(e){u(e);return}u(null,r)});return}v(_(f).then(function(r){return r?g(e,t,n,o,f):a(e,t,n,o,l)}),u)}})),Mt=r((e=>{e.pbkdf2=jt(),e.pbkdf2Sync=At()})),Nt=r((e=>{e.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},e.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=t&255},e.ip=function(e,t,n,r){for(var i=0,a=0,o=6;o>=0;o-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+o&1;for(var s=0;s<=24;s+=8)i<<=1,i|=e>>>s+o&1}for(var o=6;o>=0;o-=2){for(var s=1;s<=25;s+=8)a<<=1,a|=t>>>s+o&1;for(var s=1;s<=25;s+=8)a<<=1,a|=e>>>s+o&1}n[r+0]=i>>>0,n[r+1]=a>>>0},e.rip=function(e,t,n,r){for(var i=0,a=0,o=0;o<4;o++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+o&1,i<<=1,i|=e>>>s+o&1;for(var o=4;o<8;o++)for(var s=24;s>=0;s-=8)a<<=1,a|=t>>>s+o&1,a<<=1,a|=e>>>s+o&1;n[r+0]=i>>>0,n[r+1]=a>>>0},e.pc1=function(e,t,n,r){for(var i=0,a=0,o=7;o>=5;o--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+o&1}for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(var o=1;o<=3;o++){for(var s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1;for(var s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1}for(var s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1;n[r+0]=i>>>0,n[r+1]=a>>>0},e.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var t=[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];e.pc2=function(e,n,r,i){for(var a=0,o=0,s=t.length>>>1,c=0;c<s;c++)a<<=1,a|=e>>>t[c]&1;for(var c=s;c<t.length;c++)o<<=1,o|=n>>>t[c]&1;r[i+0]=a>>>0,r[i+1]=o>>>0},e.expand=function(e,t,n){var r=0,i=0;r=(e&1)<<5|e>>>27;for(var a=23;a>=15;a-=4)r<<=6,r|=e>>>a&63;for(var a=11;a>=3;a-=4)i|=e>>>a&63,i<<=6;i|=(e&31)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=i>>>0};var n=[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];e.substitute=function(e,t){for(var r=0,i=0;i<4;i++){var a=e>>>18-i*6&63,o=n[i*64+a];r<<=4,r|=o}for(var i=0;i<4;i++){var a=t>>>18-i*6&63,o=n[256+i*64+a];r<<=4,r|=o}return r>>>0};var r=[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];e.permute=function(e){for(var t=0,n=0;n<r.length;n++)t<<=1,t|=e>>>r[n]&1;return t>>>0},e.padSplit=function(e,t,n){for(var r=e.toString(2);r.length<t;)r=`0`+r;for(var i=[],a=0;a<t;a+=n)i.push(r.slice(a,a+n));return i.join(` `)}})),Pt=r(((e,t)=>{var n=I();function r(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=Array(this.blockSize),this.bufferOff=0,this.padding=e.padding!==!1}t.exports=r,r.prototype._init=function(){},r.prototype.update=function(e){return e.length===0?[]:this.type===`decrypt`?this._updateDecrypt(e):this._updateEncrypt(e)},r.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),r=0;r<n;r++)this.buffer[this.bufferOff+r]=e[t+r];return this.bufferOff+=n,n},r.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},r.prototype._updateEncrypt=function(e){var t=0,n=0,r=(this.bufferOff+e.length)/this.blockSize|0,i=Array(r*this.blockSize);this.bufferOff!==0&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(i,n)));for(var a=e.length-(e.length-t)%this.blockSize;t<a;t+=this.blockSize)this._update(e,t,i,n),n+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},r.prototype._updateDecrypt=function(e){for(var t=0,n=0,r=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=Array(r*this.blockSize);r>0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(i,n);return t+=this._buffer(e,t),i},r.prototype.final=function(e){var t;e&&(t=this.update(e));var n=this.type===`encrypt`?this._finalEncrypt():this._finalDecrypt();return t?t.concat(n):n},r.prototype._pad=function(e,t){if(t===0)return!1;for(;t<e.length;)e[t++]=0;return!0},r.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=Array(this.blockSize);return this._update(this.buffer,0,e,0),e},r.prototype._unpad=function(e){return e},r.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,`Not enough data to decrypt`);var e=Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}})),Ft=r(((e,t)=>{var n=I(),r=B(),i=Nt(),a=Pt();function o(){this.tmp=[,,],this.keys=null}function s(e){a.call(this,e);var t=new o;this._desState=t,this.deriveKeys(t,e.key)}r(s,a),t.exports=s,s.create=function(e){return new s(e)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];s.prototype.deriveKeys=function(e,t){e.keys=Array(32),n.equal(t.length,this.blockSize,`Invalid key length`);var r=i.readUInt32BE(t,0),a=i.readUInt32BE(t,4);i.pc1(r,a,e.tmp,0),r=e.tmp[0],a=e.tmp[1];for(var o=0;o<e.keys.length;o+=2){var s=c[o>>>1];r=i.r28shl(r,s),a=i.r28shl(a,s),i.pc2(r,a,e.keys,o)}},s.prototype._update=function(e,t,n,r){var a=this._desState,o=i.readUInt32BE(e,t),s=i.readUInt32BE(e,t+4);i.ip(o,s,a.tmp,0),o=a.tmp[0],s=a.tmp[1],this.type===`encrypt`?this._encrypt(a,o,s,a.tmp,0):this._decrypt(a,o,s,a.tmp,0),o=a.tmp[0],s=a.tmp[1],i.writeUInt32BE(n,o,r),i.writeUInt32BE(n,s,r+4)},s.prototype._pad=function(e,t){if(this.padding===!1)return!1;for(var n=e.length-t,r=t;r<e.length;r++)e[r]=n;return!0},s.prototype._unpad=function(e){if(this.padding===!1)return e;for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)n.equal(e[r],t);return e.slice(0,e.length-t)},s.prototype._encrypt=function(e,t,n,r,a){for(var o=t,s=n,c=0;c<e.keys.length;c+=2){var l=e.keys[c],u=e.keys[c+1];i.expand(s,e.tmp,0),l^=e.tmp[0],u^=e.tmp[1];var d=i.substitute(l,u),f=i.permute(d),p=s;s=(o^f)>>>0,o=p}i.rip(s,o,r,a)},s.prototype._decrypt=function(e,t,n,r,a){for(var o=n,s=t,c=e.keys.length-2;c>=0;c-=2){var l=e.keys[c],u=e.keys[c+1];i.expand(o,e.tmp,0),l^=e.tmp[0],u^=e.tmp[1];var d=i.substitute(l,u),f=i.permute(d),p=o;o=(s^f)>>>0,s=p}i.rip(o,s,r,a)}})),It=r((e=>{var t=I(),n=B(),r={};function i(e){t.equal(e.length,8,`Invalid IV length`),this.iv=Array(8);for(var n=0;n<this.iv.length;n++)this.iv[n]=e[n]}function a(e){function t(t){e.call(this,t),this._cbcInit()}n(t,e);for(var i=Object.keys(r),a=0;a<i.length;a++){var o=i[a];t.prototype[o]=r[o]}return t.create=function(e){return new t(e)},t}e.instantiate=a,r._cbcInit=function(){var e=new i(this.options.iv);this._cbcState=e},r._update=function(e,t,n,r){var i=this._cbcState,a=this.constructor.super_.prototype,o=i.iv;if(this.type===`encrypt`){for(var s=0;s<this.blockSize;s++)o[s]^=e[t+s];a._update.call(this,o,0,n,r);for(var s=0;s<this.blockSize;s++)o[s]=n[r+s]}else{a._update.call(this,e,t,n,r);for(var s=0;s<this.blockSize;s++)n[r+s]^=o[s];for(var s=0;s<this.blockSize;s++)o[s]=e[t+s]}}})),Lt=r(((e,t)=>{var n=I(),r=B(),i=Pt(),a=Ft();function o(e,t){n.equal(t.length,24,`Invalid key length`);var r=t.slice(0,8),i=t.slice(8,16),o=t.slice(16,24);this.ciphers=e===`encrypt`?[a.create({type:`encrypt`,key:r}),a.create({type:`decrypt`,key:i}),a.create({type:`encrypt`,key:o})]:[a.create({type:`decrypt`,key:o}),a.create({type:`encrypt`,key:i}),a.create({type:`decrypt`,key:r})]}function s(e){i.call(this,e);var t=new o(this.type,this.options.key);this._edeState=t}r(s,i),t.exports=s,s.create=function(e){return new s(e)},s.prototype._update=function(e,t,n,r){var i=this._edeState;i.ciphers[0]._update(e,t,n,r),i.ciphers[1]._update(n,r,n,r),i.ciphers[2]._update(n,r,n,r)},s.prototype._pad=a.prototype._pad,s.prototype._unpad=a.prototype._unpad})),Rt=r((e=>{e.utils=Nt(),e.Cipher=Pt(),e.DES=Ft(),e.CBC=It(),e.EDE=Lt()})),zt=r(((e,t)=>{var n=st(),r=Rt(),i=B(),a=f().Buffer,o={"des-ede3-cbc":r.CBC.instantiate(r.EDE),"des-ede3":r.EDE,"des-ede-cbc":r.CBC.instantiate(r.EDE),"des-ede":r.EDE,"des-cbc":r.CBC.instantiate(r.DES),"des-ecb":r.DES};o.des=o[`des-cbc`],o.des3=o[`des-ede3-cbc`],t.exports=s,i(s,n);function s(e){n.call(this);var t=e.mode.toLowerCase(),r=o[t],i=e.decrypt?`decrypt`:`encrypt`,s=e.key;a.isBuffer(s)||(s=a.from(s)),(t===`des-ede`||t===`des-ede-cbc`)&&(s=a.concat([s,s.slice(0,8)]));var c=e.iv;a.isBuffer(c)||(c=a.from(c)),this._des=r.create({key:s,iv:c,type:i})}s.prototype._update=function(e){return a.from(this._des.update(e))},s.prototype._final=function(){return a.from(this._des.final())}})),Bt=r((e=>{e.encrypt=function(e,t){return e._cipher.encryptBlock(t)},e.decrypt=function(e,t){return e._cipher.decryptBlock(t)}})),Vt=r(((e,t)=>{c(),t.exports=function(e,t){for(var n=Math.min(e.length,t.length),r=new l(n),i=0;i<n;++i)r[i]=e[i]^t[i];return r}})),Ht=r((e=>{var t=Vt();e.encrypt=function(e,n){var r=t(n,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},e.decrypt=function(e,n){var r=e._prev;return e._prev=n,t(e._cipher.decryptBlock(n),r)}})),Ut=r((e=>{var t=f().Buffer,n=Vt();function r(e,r,i){var a=r.length,o=n(r,e._cache);return e._cache=e._cache.slice(a),e._prev=t.concat([e._prev,i?r:o]),o}e.encrypt=function(e,n,i){for(var a=t.allocUnsafe(0),o;n.length;)if(e._cache.length===0&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=t.allocUnsafe(0)),e._cache.length<=n.length)o=e._cache.length,a=t.concat([a,r(e,n.slice(0,o),i)]),n=n.slice(o);else{a=t.concat([a,r(e,n,i)]);break}return a}})),Wt=r((e=>{var t=f().Buffer;function n(e,n,r){var i=e._cipher.encryptBlock(e._prev)[0]^n;return e._prev=t.concat([e._prev.slice(1),t.from([r?n:i])]),i}e.encrypt=function(e,r,i){for(var a=r.length,o=t.allocUnsafe(a),s=-1;++s<a;)o[s]=n(e,r[s],i);return o}})),Gt=r((e=>{var t=f().Buffer;function n(e,t,n){for(var i,a=-1,o=8,s=0,c,l;++a<o;)i=e._cipher.encryptBlock(e._prev),c=t&1<<7-a?128:0,l=i[0]^c,s+=(l&128)>>a%8,e._prev=r(e._prev,n?c:l);return s}function r(e,n){var r=e.length,i=-1,a=t.allocUnsafe(e.length);for(e=t.concat([e,t.from([n])]);++i<r;)a[i]=e[i]<<1|e[i+1]>>7;return a}e.encrypt=function(e,r,i){for(var a=r.length,o=t.allocUnsafe(a),s=-1;++s<a;)o[s]=n(e,r[s],i);return o}})),Kt=r((e=>{c();var t=Vt();function n(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}e.encrypt=function(e,r){for(;e._cache.length<r.length;)e._cache=l.concat([e._cache,n(e)]);var i=e._cache.slice(0,r.length);return e._cache=e._cache.slice(r.length),t(r,i)}})),qt=r(((e,t)=>{function n(e){for(var t=e.length,n;t--;)if(n=e.readUInt8(t),n===255)e.writeUInt8(0,t);else{n++,e.writeUInt8(n,t);break}}t.exports=n})),Jt=r((e=>{var t=Vt(),n=f().Buffer,r=qt();function i(e){var t=e._cipher.encryptBlockRaw(e._prev);return r(e._prev),t}var a=16;e.encrypt=function(e,r){var o=Math.ceil(r.length/a),s=e._cache.length;e._cache=n.concat([e._cache,n.allocUnsafe(o*a)]);for(var c=0;c<o;c++){var l=i(e),u=s+c*a;e._cache.writeUInt32BE(l[0],u+0),e._cache.writeUInt32BE(l[1],u+4),e._cache.writeUInt32BE(l[2],u+8),e._cache.writeUInt32BE(l[3],u+12)}var d=e._cache.slice(0,r.length);return e._cache=e._cache.slice(r.length),t(r,d)}})),Yt=n({aes128:()=>Xt,aes192:()=>Zt,aes256:()=>Qt,default:()=>$t}),Xt,Zt,Qt,$t,en=e((()=>{Xt={cipher:`AES`,key:128,iv:16,mode:`CBC`,type:`block`},Zt={cipher:`AES`,key:192,iv:16,mode:`CBC`,type:`block`},Qt={cipher:`AES`,key:256,iv:16,mode:`CBC`,type:`block`},$t={"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:Xt,aes192:Zt,aes256:Qt,"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`}}})),tn=r(((e,n)=>{var r={ECB:Bt(),CBC:Ht(),CFB:Ut(),CFB8:Wt(),CFB1:Gt(),OFB:Kt(),CTR:Jt(),GCM:Jt()},i=(en(),t(Yt).default);for(var a in i)i[a].module=r[i[a].mode];n.exports=i})),nn=r(((e,t)=>{var n=f().Buffer;function r(e){n.isBuffer(e)||(e=n.from(e));for(var t=e.length/4|0,r=Array(t),i=0;i<t;i++)r[i]=e.readUInt32BE(i*4);return r}function i(e){for(var t=0;t<e.length;e++)e[t]=0}function a(e,t,n,r,i){for(var a=n[0],o=n[1],s=n[2],c=n[3],l=e[0]^t[0],u=e[1]^t[1],d=e[2]^t[2],f=e[3]^t[3],p,m,h,g,_=4,v=1;v<i;v++)p=a[l>>>24]^o[u>>>16&255]^s[d>>>8&255]^c[f&255]^t[_++],m=a[u>>>24]^o[d>>>16&255]^s[f>>>8&255]^c[l&255]^t[_++],h=a[d>>>24]^o[f>>>16&255]^s[l>>>8&255]^c[u&255]^t[_++],g=a[f>>>24]^o[l>>>16&255]^s[u>>>8&255]^c[d&255]^t[_++],l=p,u=m,d=h,f=g;return p=(r[l>>>24]<<24|r[u>>>16&255]<<16|r[d>>>8&255]<<8|r[f&255])^t[_++],m=(r[u>>>24]<<24|r[d>>>16&255]<<16|r[f>>>8&255]<<8|r[l&255])^t[_++],h=(r[d>>>24]<<24|r[f>>>16&255]<<16|r[l>>>8&255]<<8|r[u&255])^t[_++],g=(r[f>>>24]<<24|r[l>>>16&255]<<16|r[u>>>8&255]<<8|r[d&255])^t[_++],p>>>=0,m>>>=0,h>>>=0,g>>>=0,[p,m,h,g]}var o=[0,1,2,4,8,16,32,64,128,27,54],s=(function(){for(var e=Array(256),t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var n=[],r=[],i=[[],[],[],[]],a=[[],[],[],[]],o=0,s=0,c=0;c<256;++c){var l=s^s<<1^s<<2^s<<3^s<<4;l=l>>>8^l&255^99,n[o]=l,r[l]=o;var u=e[o],d=e[u],f=e[d],p=e[l]*257^l*16843008;i[0][o]=p<<24|p>>>8,i[1][o]=p<<16|p>>>16,i[2][o]=p<<8|p>>>24,i[3][o]=p,p=f*16843009^d*65537^u*257^o*16843008,a[0][l]=p<<24|p>>>8,a[1][l]=p<<16|p>>>16,a[2][l]=p<<8|p>>>24,a[3][l]=p,o===0?o=s=1:(o=u^e[e[e[f^u]]],s^=e[e[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:a}})();function c(e){this._key=r(e),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=(n+1)*4,i=[],a=0;a<t;a++)i[a]=e[a];for(a=t;a<r;a++){var c=i[a-1];a%t===0?(c=c<<8|c>>>24,c=s.SBOX[c>>>24]<<24|s.SBOX[c>>>16&255]<<16|s.SBOX[c>>>8&255]<<8|s.SBOX[c&255],c^=o[a/t|0]<<24):t>6&&a%t===4&&(c=s.SBOX[c>>>24]<<24|s.SBOX[c>>>16&255]<<16|s.SBOX[c>>>8&255]<<8|s.SBOX[c&255]),i[a]=i[a-t]^c}for(var l=[],u=0;u<r;u++){var d=r-u,f=i[d-(u%4?0:4)];u<4||d<=4?l[u]=f:l[u]=s.INV_SUB_MIX[0][s.SBOX[f>>>24]]^s.INV_SUB_MIX[1][s.SBOX[f>>>16&255]]^s.INV_SUB_MIX[2][s.SBOX[f>>>8&255]]^s.INV_SUB_MIX[3][s.SBOX[f&255]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=l},c.prototype.encryptBlockRaw=function(e){return e=r(e),a(e,this._keySchedule,s.SUB_MIX,s.SBOX,this._nRounds)},c.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},c.prototype.decryptBlock=function(e){e=r(e);var t=e[1];e[1]=e[3],e[3]=t;var i=a(e,this._invKeySchedule,s.INV_SUB_MIX,s.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(i[0],0),o.writeUInt32BE(i[3],4),o.writeUInt32BE(i[2],8),o.writeUInt32BE(i[1],12),o},c.prototype.scrub=function(){i(this._keySchedule),i(this._invKeySchedule),i(this._key)},t.exports.AES=c})),rn=r(((e,t)=>{var n=f().Buffer,r=n.alloc(16,0);function i(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}function a(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function o(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}o.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},o.prototype._multiply=function(){for(var e=i(this.h),t=[0,0,0,0],n,r,o,s=-1;++s<128;){for(r=!!(this.state[~~(s/8)]&1<<7-s%8),r&&(t[0]^=e[0],t[1]^=e[1],t[2]^=e[2],t[3]^=e[3]),o=!!(e[3]&1),n=3;n>0;n--)e[n]=e[n]>>>1|(e[n-1]&1)<<31;e[0]>>>=1,o&&(e[0]^=225<<24)}this.state=a(t)},o.prototype.update=function(e){this.cache=n.concat([this.cache,e]);for(var t;this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},o.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,r],16)),this.ghash(a([0,e,0,t])),this.state},t.exports=o})),an=r(((e,t)=>{var n=nn(),r=f().Buffer,i=st(),a=B(),o=rn(),s=Vt(),c=qt();function l(e,t){var n=0;e.length!==t.length&&n++;for(var r=Math.min(e.length,t.length),i=0;i<r;++i)n+=e[i]^t[i];return n}function u(e,t,n){if(t.length===12)return e._finID=r.concat([t,r.from([0,0,0,1])]),r.concat([t,r.from([0,0,0,2])]);var i=new o(n),a=t.length,s=a%16;i.update(t),s&&(s=16-s,i.update(r.alloc(s,0))),i.update(r.alloc(8,0));var l=a*8,u=r.alloc(8);u.writeUIntBE(l,0,8),i.update(u),e._finID=i.state;var d=r.from(e._finID);return c(d),d}function d(e,t,a,s){i.call(this);var c=r.alloc(4,0);this._cipher=new n.AES(t);var l=this._cipher.encryptBlock(c);this._ghash=new o(l),a=u(this,a,l),this._prev=r.from(a),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=s,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}a(d,i),d.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=r.alloc(t,0),this._ghash.update(t))}this._called=!0;var n=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(n),this._len+=e.length,n},d.prototype._final=function(){if(this._decrypt&&!this._authTag)throw Error(`Unsupported state or unable to authenticate data`);var e=s(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&l(e,this._authTag))throw Error(`Unsupported state or unable to authenticate data`);this._authTag=e,this._cipher.scrub()},d.prototype.getAuthTag=function(){if(this._decrypt||!r.isBuffer(this._authTag))throw Error(`Attempting to get auth tag in unsupported state`);return this._authTag},d.prototype.setAuthTag=function(e){if(!this._decrypt)throw Error(`Attempting to set auth tag in unsupported state`);this._authTag=e},d.prototype.setAAD=function(e){if(this._called)throw Error(`Attempting to set AAD in unsupported state`);this._ghash.update(e),this._alen+=e.length},t.exports=d})),on=r(((e,t)=>{var n=nn(),r=f().Buffer,i=st(),a=B();function o(e,t,a,o){i.call(this),this._cipher=new n.AES(t),this._prev=r.from(a),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=o,this._mode=e}a(o,i),o.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()},t.exports=o})),sn=r(((e,t)=>{var n=f().Buffer,r=V();function i(e,t,i,a){if(n.isBuffer(e)||(e=n.from(e,`binary`)),t&&(n.isBuffer(t)||(t=n.from(t,`binary`)),t.length!==8))throw RangeError(`salt should be Buffer with 8 byte length`);for(var o=i/8,s=n.alloc(o),c=n.alloc(a||0),l=n.alloc(0);o>0||a>0;){var u=new r;u.update(l),u.update(e),t&&u.update(t),l=u.digest();var d=0;if(o>0){var f=s.length-o;d=Math.min(o,l.length),l.copy(s,f,0,d),o-=d}if(d<l.length&&a>0){var p=c.length-a,m=Math.min(a,l.length-d);l.copy(c,p,d,d+m),a-=m}}return l.fill(0),{key:s,iv:c}}t.exports=i})),cn=r((e=>{var t=tn(),n=an(),r=f().Buffer,i=on(),a=st(),o=nn(),s=sn(),c=B();function l(e,t,n){a.call(this),this._cache=new d,this._cipher=new o.AES(t),this._prev=r.from(n),this._mode=e,this._autopadding=!0}c(l,a),l.prototype._update=function(e){this._cache.add(e);for(var t,n,i=[];t=this._cache.get();)n=this._mode.encrypt(this,t),i.push(n);return r.concat(i)};var u=r.alloc(16,16);l.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(u))throw this._cipher.scrub(),Error(`data not multiple of block length`)},l.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this};function d(){this.cache=r.allocUnsafe(0)}d.prototype.add=function(e){this.cache=r.concat([this.cache,e])},d.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},d.prototype.flush=function(){for(var e=16-this.cache.length,t=r.allocUnsafe(e),n=-1;++n<e;)t.writeUInt8(e,n);return r.concat([this.cache,t])};function p(e,a,o){var s=t[e.toLowerCase()];if(!s)throw TypeError(`invalid suite type`);if(typeof a==`string`&&(a=r.from(a)),a.length!==s.key/8)throw TypeError(`invalid key length `+a.length);if(typeof o==`string`&&(o=r.from(o)),s.mode!==`GCM`&&o.length!==s.iv)throw TypeError(`invalid iv length `+o.length);return s.type===`stream`?new i(s.module,a,o):s.type===`auth`?new n(s.module,a,o):new l(s.module,a,o)}function m(e,n){var r=t[e.toLowerCase()];if(!r)throw TypeError(`invalid suite type`);var i=s(n,!1,r.key,r.iv);return p(e,i.key,i.iv)}e.createCipheriv=p,e.createCipher=m})),ln=r((e=>{var t=an(),n=f().Buffer,r=tn(),i=on(),a=st(),o=nn(),s=sn(),c=B();function l(e,t,r){a.call(this),this._cache=new u,this._last=void 0,this._cipher=new o.AES(t),this._prev=n.from(r),this._mode=e,this._autopadding=!0}c(l,a),l.prototype._update=function(e){this._cache.add(e);for(var t,r,i=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),i.push(r);return n.concat(i)},l.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return d(this._mode.decrypt(this,e));if(e)throw Error(`data not multiple of block length`)},l.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this};function u(){this.cache=n.allocUnsafe(0)}u.prototype.add=function(e){this.cache=n.concat([this.cache,e])},u.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},u.prototype.flush=function(){if(this.cache.length)return this.cache};function d(e){var t=e[15];if(t<1||t>16)throw Error(`unable to decrypt data`);for(var n=-1;++n<t;)if(e[n+(16-t)]!==t)throw Error(`unable to decrypt data`);if(t!==16)return e.slice(0,16-t)}function p(e,a,o){var s=r[e.toLowerCase()];if(!s)throw TypeError(`invalid suite type`);if(typeof o==`string`&&(o=n.from(o)),s.mode!==`GCM`&&o.length!==s.iv)throw TypeError(`invalid iv length `+o.length);if(typeof a==`string`&&(a=n.from(a)),a.length!==s.key/8)throw TypeError(`invalid key length `+a.length);return s.type===`stream`?new i(s.module,a,o,!0):s.type===`auth`?new t(s.module,a,o,!0):new l(s.module,a,o)}function m(e,t){var n=r[e.toLowerCase()];if(!n)throw TypeError(`invalid suite type`);var i=s(t,!1,n.key,n.iv);return p(e,i.key,i.iv)}e.createDecipher=m,e.createDecipheriv=p})),un=r((e=>{var n=cn(),r=ln(),i=(en(),t(Yt).default);function a(){return Object.keys(i)}e.createCipher=e.Cipher=n.createCipher,e.createCipheriv=e.Cipheriv=n.createCipheriv,e.createDecipher=e.Decipher=r.createDecipher,e.createDecipheriv=e.Decipheriv=r.createDecipheriv,e.listCiphers=e.getCiphers=a})),dn=r((e=>{e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}})),fn=r((e=>{var t=zt(),n=un(),r=tn(),i=dn(),a=sn();function o(e,t){e=e.toLowerCase();var n,o;if(r[e])n=r[e].key,o=r[e].iv;else if(i[e])n=i[e].key*8,o=i[e].iv;else throw TypeError(`invalid suite type`);var s=a(t,!1,n,o);return c(e,s.key,s.iv)}function s(e,t){e=e.toLowerCase();var n,o;if(r[e])n=r[e].key,o=r[e].iv;else if(i[e])n=i[e].key*8,o=i[e].iv;else throw TypeError(`invalid suite type`);var s=a(t,!1,n,o);return l(e,s.key,s.iv)}function c(e,a,o){if(e=e.toLowerCase(),r[e])return n.createCipheriv(e,a,o);if(i[e])return new t({key:a,iv:o,mode:e});throw TypeError(`invalid suite type`)}function l(e,a,o){if(e=e.toLowerCase(),r[e])return n.createDecipheriv(e,a,o);if(i[e])return new t({key:a,iv:o,mode:e,decrypt:!0});throw TypeError(`invalid suite type`)}function u(){return Object.keys(i).concat(n.getCiphers())}e.createCipher=e.Cipher=o,e.createCipheriv=e.Cipheriv=c,e.createDecipher=e.Decipher=s,e.createDecipheriv=e.Decipheriv=l,e.listCiphers=e.getCiphers=u})),pn=r(((e,t)=>{var n=F(),r=dr();function i(e){this.rand=e||new r.Rand}t.exports=i,i.create=function(e){return new i(e)},i.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do var i=new n(this.rand.generate(r));while(i.cmp(e)>=0);return i},i.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},i.prototype.test=function(e,t,r){var i=e.bitLength(),a=n.mont(e),o=new n(1).toRed(a);t||=Math.max(1,i/48|0);for(var s=e.subn(1),c=0;!s.testn(c);c++);for(var l=e.shrn(c),u=s.toRed(a),d=!0;t>0;t--){var f=this._randrange(new n(2),s);r&&r(f);var p=f.toRed(a).redPow(l);if(p.cmp(o)!==0&&p.cmp(u)!==0){for(var m=1;m<c;m++){if(p=p.redSqr(),p.cmp(o)===0)return!1;if(p.cmp(u)===0)break}if(m===c)return!1}}return d},i.prototype.getDivisor=function(e,t){var r=e.bitLength(),i=n.mont(e),a=new n(1).toRed(i);t||=Math.max(1,r/48|0);for(var o=e.subn(1),s=0;!o.testn(s);s++);for(var c=e.shrn(s),l=o.toRed(i);t>0;t--){var u=this._randrange(new n(2),o),d=e.gcd(u);if(d.cmpn(1)!==0)return d;var f=u.toRed(i).redPow(c);if(f.cmp(a)!==0&&f.cmp(l)!==0){for(var p=1;p<s;p++){if(f=f.redSqr(),f.cmp(a)===0)return f.fromRed().subn(1).gcd(e);if(f.cmp(l)===0)break}if(p===s)return f=f.redSqr(),f.fromRed().subn(1).gcd(e)}}return!1}})),mn=r(((e,t)=>{var n=z();t.exports=_,_.simpleSieve=h,_.fermatTest=g;var r=F(),i=new r(24),a=new(pn()),o=new r(1),s=new r(2),c=new r(5);new r(16),new r(8);var l=new r(10),u=new r(3);new r(7);var d=new r(11),f=new r(4);new r(12);var p=null;function m(){if(p!==null)return p;var e=1048576,t=[];t[0]=2;for(var n=1,r=3;r<e;r+=2){for(var i=Math.ceil(Math.sqrt(r)),a=0;a<n&&t[a]<=i&&r%t[a]!==0;a++);n!==a&&t[a]<=i||(t[n++]=r)}return p=t,t}function h(e){for(var t=m(),n=0;n<t.length;n++)if(e.modn(t[n])===0)return e.cmpn(t[n])===0;return!0}function g(e){var t=r.mont(e);return s.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)===0}function _(e,t){if(e<16)return t===2||t===5?new r([140,123]):new r([140,39]);t=new r(t);for(var p,m;;){for(p=new r(n(Math.ceil(e/8)));p.bitLength()>e;)p.ishrn(1);if(p.isEven()&&p.iadd(o),p.testn(1)||p.iadd(s),!t.cmp(s))for(;p.mod(i).cmp(d);)p.iadd(f);else if(!t.cmp(c))for(;p.mod(l).cmp(u);)p.iadd(f);if(m=p.shrn(1),h(m)&&h(p)&&g(m)&&g(p)&&a.test(m)&&a.test(p))return p}}})),hn=n({default:()=>wn,modp1:()=>gn,modp14:()=>yn,modp15:()=>bn,modp16:()=>xn,modp17:()=>Sn,modp18:()=>Cn,modp2:()=>_n,modp5:()=>vn}),gn,_n,vn,yn,bn,xn,Sn,Cn,wn,Tn=e((()=>{gn={gen:`02`,prime:`ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff`},_n={gen:`02`,prime:`ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff`},vn={gen:`02`,prime:`ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff`},yn={gen:`02`,prime:`ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff`},bn={gen:`02`,prime:`ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff`},xn={gen:`02`,prime:`ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff`},Sn={gen:`02`,prime:`ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff`},Cn={gen:`02`,prime:`ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff`},wn={modp1:gn,modp2:_n,modp5:vn,modp14:yn,modp15:bn,modp16:xn,modp17:Sn,modp18:Cn}})),En=r(((e,t)=>{c();var n=F(),r=new(pn()),i=new n(24),a=new n(11),o=new n(10),s=new n(3),u=new n(7),d=mn(),f=z();t.exports=_;function p(e,t){return t||=`utf8`,l.isBuffer(e)||(e=new l(e,t)),this._pub=new n(e),this}function m(e,t){return t||=`utf8`,l.isBuffer(e)||(e=new l(e,t)),this._priv=new n(e),this}var h={};function g(e,t){var n=t.toString(`hex`),c=[n,e.toString(16)].join(`_`);if(c in h)return h[c];var l=0;if(e.isEven()||!d.simpleSieve||!d.fermatTest(e)||!r.test(e))return l+=1,l+=n===`02`||n===`05`?8:4,h[c]=l,l;r.test(e.shrn(1))||(l+=2);var f;switch(n){case`02`:e.mod(i).cmp(a)&&(l+=8);break;case`05`:f=e.mod(o),f.cmp(s)&&f.cmp(u)&&(l+=8);break;default:l+=4}return h[c]=l,l}function _(e,t,r){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=p,this.setPrivateKey=m):this._primeCode=8}Object.defineProperty(_.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!=`number`&&(this._primeCode=g(this.__prime,this.__gen)),this._primeCode}}),_.prototype.generateKeys=function(){return this._priv||=new n(f(this._primeLen)),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},_.prototype.computeSecret=function(e){e=new n(e),e=e.toRed(this._prime);var t=e.redPow(this._priv).fromRed(),r=new l(t.toArray()),i=this.getPrime();if(r.length<i.length){var a=new l(i.length-r.length);a.fill(0),r=l.concat([a,r])}return r},_.prototype.getPublicKey=function(e){return v(this._pub,e)},_.prototype.getPrivateKey=function(e){return v(this._priv,e)},_.prototype.getPrime=function(e){return v(this.__prime,e)},_.prototype.getGenerator=function(e){return v(this._gen,e)},_.prototype.setGenerator=function(e,t){return t||=`utf8`,l.isBuffer(e)||(e=new l(e,t)),this.__gen=e,this._gen=new n(e),this};function v(e,t){var n=new l(e.toArray());return t?n.toString(t):n}})),Dn=r((e=>{c();var n=mn(),r=(Tn(),t(hn).default),i=En();function a(e){return new i(new l(r[e].prime,`hex`),new l(r[e].gen,`hex`))}var o={binary:!0,hex:!0,base64:!0};function s(e,t,r,a){return l.isBuffer(t)||o[t]===void 0?s(e,`binary`,t,r):(t||=`binary`,a||=`binary`,r||=new l([2]),l.isBuffer(r)||(r=new l(r,a)),typeof e==`number`?new i(n(e,r),r,!0):(l.isBuffer(e)||(e=new l(e,t)),new i(e,r,!0)))}e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=a,e.createDiffieHellman=e.DiffieHellman=s})),On=r(((e,t)=>{var n=d(),r=z(),i=f().Buffer;function a(e){var t=e.modulus.byteLength(),i;do i=new n(r(t));while(i.cmp(e.modulus)>=0||!i.umod(e.prime1)||!i.umod(e.prime2));return i}function o(e){var t=a(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}function s(e,t){var r=o(t),a=t.modulus.byteLength(),s=new n(e).mul(r.blinder).umod(t.modulus),c=s.toRed(n.mont(t.prime1)),l=s.toRed(n.mont(t.prime2)),u=t.coefficient,d=t.prime1,f=t.prime2,p=c.redPow(t.exponent1).fromRed(),m=l.redPow(t.exponent2).fromRed(),h=p.isub(m).imul(u).umod(d).imul(f);return m.iadd(h).imul(r.unblinder).umod(t.modulus).toArrayLike(i,`be`,a)}s.getr=a,t.exports=s})),kn=r((e=>{var t=Hn(),n=B(),r=e;r.define=function(e,t){return new i(e,t)};function i(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}i.prototype._createNamed=function(e){var t;try{t=m().runInThisContext(`(function `+this.name+`(entity) {
3
3
  this._initNamed(entity);
4
4
  })`)}catch{t=function(e){this._initNamed(e)}}return n(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},i.prototype._getDecoder=function(e){return e||=`der`,this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(t.decoders[e])),this.decoders[e]},i.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)},i.prototype._getEncoder=function(e){return e||=`der`,this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(t.encoders[e])),this.encoders[e]},i.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}})),An=r((e=>{var t=B();function n(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}e.Reporter=n,n.prototype.isError=function(e){return e instanceof r},n.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},n.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},n.prototype.enterKey=function(e){return this._reporterState.path.push(e)},n.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},n.prototype.leaveKey=function(e,t,n){var r=this._reporterState;this.exitKey(e),r.obj!==null&&(r.obj[t]=n)},n.prototype.path=function(){return this._reporterState.path.join(`/`)},n.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},n.prototype.leaveObject=function(e){var t=this._reporterState,n=t.obj;return t.obj=e,n},n.prototype.error=function(e){var t,n=this._reporterState,i=e instanceof r;if(t=i?e:new r(n.path.map(function(e){return`[`+JSON.stringify(e)+`]`}).join(``),e.message||e,e.stack),!n.options.partial)throw t;return i||n.errors.push(t),t},n.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e};function r(e,t){this.path=e,this.rethrow(t)}t(r,Error),r.prototype.rethrow=function(e){if(this.message=e+` at: `+(this.path||`(shallow)`),Error.captureStackTrace&&Error.captureStackTrace(this,r),!this.stack)try{throw Error(this.message)}catch(e){this.stack=e.stack}return this}})),jn=r((e=>{var t=B(),n=Nn().Reporter,r=u().Buffer;function i(e,t){if(n.call(this,t),!r.isBuffer(e)){this.error(`Input not Buffer`);return}this.base=e,this.offset=0,this.length=e.length}t(i,n),e.DecoderBuffer=i,i.prototype.save=function(){return{offset:this.offset,reporter:n.prototype.save.call(this)}},i.prototype.restore=function(e){var t=new i(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,n.prototype.restore.call(this,e.reporter),t},i.prototype.isEmpty=function(){return this.offset===this.length},i.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||`DecoderBuffer overrun`)},i.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||`DecoderBuffer overrun`);var n=new i(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},i.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)};function a(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return e instanceof a||(e=new a(e,t)),this.length+=e.length,e},this);else if(typeof e==`number`){if(!(0<=e&&e<=255))return t.error(`non-byte EncoderBuffer value`);this.value=e,this.length=1}else if(typeof e==`string`)this.value=e,this.length=r.byteLength(e);else if(r.isBuffer(e))this.value=e,this.length=e.length;else return t.error(`Unsupported type: `+typeof e)}e.EncoderBuffer=a,a.prototype.join=function(e,t){return e||=new r(this.length),t||=0,this.length===0||(Array.isArray(this.value)?this.value.forEach(function(n){n.join(e,t),t+=n.length}):(typeof this.value==`number`?e[t]=this.value:typeof this.value==`string`?e.write(this.value,t):r.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}})),Mn=r(((e,t)=>{var n=Nn().Reporter,r=Nn().EncoderBuffer,i=Nn().DecoderBuffer,a=I(),o=`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`.split(`.`),s=[`key`,`obj`,`use`,`optional`,`explicit`,`implicit`,`def`,`choice`,`any`,`contains`].concat(o),c=[`_peekTag`,`_decodeTag`,`_use`,`_decodeStr`,`_decodeObjid`,`_decodeTime`,`_decodeNull`,`_decodeInt`,`_decodeBool`,`_decodeList`,`_encodeComposite`,`_encodeStr`,`_encodeObjid`,`_encodeTime`,`_encodeNull`,`_encodeInt`,`_encodeBool`];function l(e,t){var n={};this._baseState=n,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}t.exports=l;var u=[`enc`,`parent`,`children`,`tag`,`args`,`reverseArgs`,`choice`,`optional`,`any`,`obj`,`use`,`alteredUse`,`key`,`default`,`explicit`,`implicit`,`contains`];l.prototype.clone=function(){var e=this._baseState,t={};u.forEach(function(n){t[n]=e[n]});var n=new this.constructor(t.parent);return n._baseState=t,n},l.prototype._wrap=function(){var e=this._baseState;s.forEach(function(t){this[t]=function(){var n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}},this)},l.prototype._init=function(e){var t=this._baseState;a(t.parent===null),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),a.equal(t.children.length,1,`Root node can have only one child`)},l.prototype._useArgs=function(e){var t=this._baseState,n=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),n.length!==0&&(a(t.children===null),t.children=n,n.forEach(function(e){e._baseState.parent=this},this)),e.length!==0&&(a(t.args===null),t.args=e,t.reverseArgs=e.map(function(e){if(typeof e!=`object`||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach(function(n){n==(n|0)&&(n|=0);var r=e[n];t[r]=n}),t}))},c.forEach(function(e){l.prototype[e]=function(){var t=this._baseState;throw Error(e+` not implemented for encoding: `+t.enc)}}),o.forEach(function(e){l.prototype[e]=function(){var t=this._baseState,n=Array.prototype.slice.call(arguments);return a(t.tag===null),t.tag=e,this._useArgs(n),this}}),l.prototype.use=function(e){a(e);var t=this._baseState;return a(t.use===null),t.use=e,this},l.prototype.optional=function(){var e=this._baseState;return e.optional=!0,this},l.prototype.def=function(e){var t=this._baseState;return a(t.default===null),t.default=e,t.optional=!0,this},l.prototype.explicit=function(e){var t=this._baseState;return a(t.explicit===null&&t.implicit===null),t.explicit=e,this},l.prototype.implicit=function(e){var t=this._baseState;return a(t.explicit===null&&t.implicit===null),t.implicit=e,this},l.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,t.length!==0&&this._useArgs(t),this},l.prototype.key=function(e){var t=this._baseState;return a(t.key===null),t.key=e,this},l.prototype.any=function(){var e=this._baseState;return e.any=!0,this},l.prototype.choice=function(e){var t=this._baseState;return a(t.choice===null),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},l.prototype.contains=function(e){var t=this._baseState;return a(t.use===null),t.contains=e,this},l.prototype._decode=function(e,t){var n=this._baseState;if(n.parent===null)return e.wrapResult(n.children[0]._decode(e,t));var r=n.default,a=!0,o=null;if(n.key!==null&&(o=e.enterKey(n.key)),n.optional){var s=null;if(n.explicit===null?n.implicit===null?n.tag!==null&&(s=n.tag):s=n.implicit:s=n.explicit,s===null&&!n.any){var c=e.save();try{n.choice===null?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),a=!0}catch{a=!1}e.restore(c)}else if(a=this._peekTag(e,s,n.any),e.isError(a))return a}var l;if(n.obj&&a&&(l=e.enterObject()),a){if(n.explicit!==null){var u=this._decodeTag(e,n.explicit);if(e.isError(u))return u;e=u}var d=e.offset;if(n.use===null&&n.choice===null){if(n.any)var c=e.save();var f=this._decodeTag(e,n.implicit===null?n.tag:n.implicit,n.any);if(e.isError(f))return f;n.any?r=e.raw(c):e=f}if(t&&t.track&&n.tag!==null&&t.track(e.path(),d,e.length,`tagged`),t&&t.track&&n.tag!==null&&t.track(e.path(),e.offset,e.length,`content`),r=n.any?r:n.choice===null?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),e.isError(r))return r;if(!n.any&&n.choice===null&&n.children!==null&&n.children.forEach(function(n){n._decode(e,t)}),n.contains&&(n.tag===`octstr`||n.tag===`bitstr`)){var p=new i(r);r=this._getUse(n.contains,e._reporterState.obj)._decode(p,t)}}return n.obj&&a&&(r=e.leaveObject(l)),n.key!==null&&(r!==null||a===!0)?e.leaveKey(o,n.key,r):o!==null&&e.exitKey(o),r},l.prototype._decodeGeneric=function(e,t,n){var r=this._baseState;return e===`seq`||e===`set`?null:e===`seqof`||e===`setof`?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):e===`objid`&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):e===`objid`?this._decodeObjid(t,null,null,n):e===`gentime`||e===`utctime`?this._decodeTime(t,e,n):e===`null_`?this._decodeNull(t,n):e===`bool`?this._decodeBool(t,n):e===`objDesc`?this._decodeStr(t,e,n):e===`int`||e===`enum`?this._decodeInt(t,r.args&&r.args[0],n):r.use===null?t.error(`unknown tag: `+e):this._getUse(r.use,t._reporterState.obj)._decode(t,n)},l.prototype._getUse=function(e,t){var n=this._baseState;return n.useDecoder=this._use(e,t),a(n.useDecoder._baseState.parent===null),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},l.prototype._decodeChoice=function(e,t){var n=this._baseState,r=null,i=!1;return Object.keys(n.choice).some(function(a){var o=e.save(),s=n.choice[a];try{var c=s._decode(e,t);if(e.isError(c))return!1;r={type:a,value:c},i=!0}catch{return e.restore(o),!1}return!0},this),i?r:e.error(`Choice not matched`)},l.prototype._createEncoderBuffer=function(e){return new r(e,this.reporter)},l.prototype._encode=function(e,t,n){var r=this._baseState;if(r.default===null||r.default!==e){var i=this._encodeValue(e,t,n);if(i!==void 0&&!this._skipDefault(i,t,n))return i}},l.prototype._encodeValue=function(e,t,r){var i=this._baseState;if(i.parent===null)return i.children[0]._encode(e,t||new n);var a=null;if(this.reporter=t,i.optional&&e===void 0){if(i.default!==null)e=i.default;else return}var o=null,s=!1;if(i.any)a=this._createEncoderBuffer(e);else if(i.choice)a=this._encodeChoice(e,t);else if(i.contains)o=this._getUse(i.contains,r)._encode(e,t),s=!0;else if(i.children)o=i.children.map(function(n){if(n._baseState.tag===`null_`)return n._encode(null,t,e);if(n._baseState.key===null)return t.error(`Child should have a key`);var r=t.enterKey(n._baseState.key);if(typeof e!=`object`)return t.error(`Child expected, but input is not object`);var i=n._encode(e[n._baseState.key],t,e);return t.leaveKey(r),i},this).filter(function(e){return e}),o=this._createEncoderBuffer(o);else if(i.tag===`seqof`||i.tag===`setof`){if(!(i.args&&i.args.length===1))return t.error(`Too many args for : `+i.tag);if(!Array.isArray(e))return t.error(`seqof/setof, but data is not Array`);var c=this.clone();c._baseState.implicit=null,o=this._createEncoderBuffer(e.map(function(n){var r=this._baseState;return this._getUse(r.args[0],e)._encode(n,t)},c))}else i.use===null?(o=this._encodePrimitive(i.tag,e),s=!0):a=this._getUse(i.use,r)._encode(e,t);var a;if(!i.any&&i.choice===null){var l=i.implicit===null?i.tag:i.implicit,u=i.implicit===null?`universal`:`context`;l===null?i.use===null&&t.error(`Tag could be omitted only for .use()`):i.use===null&&(a=this._encodeComposite(l,s,u,o))}return i.explicit!==null&&(a=this._encodeComposite(i.explicit,!1,`context`,a)),a},l.prototype._encodeChoice=function(e,t){var n=this._baseState,r=n.choice[e.type];return r||a(!1,e.type+` not found in `+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},l.prototype._encodePrimitive=function(e,t){var n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if(e===`objid`&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if(e===`objid`)return this._encodeObjid(t,null,null);if(e===`gentime`||e===`utctime`)return this._encodeTime(t,e);if(e===`null_`)return this._encodeNull();if(e===`int`||e===`enum`)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if(e===`bool`)return this._encodeBool(t);if(e===`objDesc`)return this._encodeStr(t,e);throw Error(`Unsupported tag: `+e)},l.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},l.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}})),Nn=r((e=>{var t=e;t.Reporter=An().Reporter,t.DecoderBuffer=jn().DecoderBuffer,t.EncoderBuffer=jn().EncoderBuffer,t.Node=Mn()})),Pn=r((e=>{var t=Fn();e.tagClass={0:`universal`,1:`application`,2:`context`,3:`private`},e.tagClassByName=t._reverse(e.tagClass),e.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`},e.tagByName=t._reverse(e.tag)})),Fn=r((e=>{var t=e;t._reverse=function(e){var t={};return Object.keys(e).forEach(function(n){(n|0)==n&&(n|=0);var r=e[n];t[r]=n}),t},t.der=Pn()})),In=r(((e,t)=>{var n=B(),r=Hn(),i=r.base,a=r.bignum,o=r.constants.der;function s(e){this.enc=`der`,this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}t.exports=s,s.prototype.decode=function(e,t){return e instanceof i.DecoderBuffer||(e=new i.DecoderBuffer(e,t)),this.tree._decode(e,t)};function c(e){i.Node.call(this,`der`,e)}n(c,i.Node),c.prototype._peekTag=function(e,t,n){if(e.isEmpty())return!1;var r=e.save(),i=l(e,`Failed to peek tag: "`+t+`"`);return e.isError(i)?i:(e.restore(r),i.tag===t||i.tagStr===t||i.tagStr+`of`===t||n)},c.prototype._decodeTag=function(e,t,n){var r=l(e,`Failed to decode tag of "`+t+`"`);if(e.isError(r))return r;var i=u(e,r.primitive,`Failed to get length of "`+t+`"`);if(e.isError(i))return i;if(!n&&r.tag!==t&&r.tagStr!==t&&r.tagStr+`of`!==t)return e.error(`Failed to match tag: "`+t+`"`);if(r.primitive||i!==null)return e.skip(i,`Failed to match body of: "`+t+`"`);var a=e.save(),o=this._skipUntilEnd(e,`Failed to skip indefinite length body: "`+this.tag+`"`);return e.isError(o)?o:(i=e.offset-a.offset,e.restore(a),e.skip(i,`Failed to match body of: "`+t+`"`))},c.prototype._skipUntilEnd=function(e,t){for(;;){var n=l(e,t);if(e.isError(n))return n;var r=u(e,n.primitive,t);if(e.isError(r))return r;var i=n.primitive||r!==null?e.skip(r):this._skipUntilEnd(e,t);if(e.isError(i))return i;if(n.tagStr===`end`)break}},c.prototype._decodeList=function(e,t,n,r){for(var i=[];!e.isEmpty();){var a=this._peekTag(e,`end`);if(e.isError(a))return a;var o=n.decode(e,`der`,r);if(e.isError(o)&&a)break;i.push(o)}return i},c.prototype._decodeStr=function(e,t){if(t===`bitstr`){var n=e.readUInt8();return e.isError(n)?n:{unused:n,data:e.raw()}}if(t===`bmpstr`){var r=e.raw();if(r.length%2==1)return e.error(`Decoding of string type: bmpstr length mismatch`);for(var i=``,a=0;a<r.length/2;a++)i+=String.fromCharCode(r.readUInt16BE(a*2));return i}if(t===`numstr`){var o=e.raw().toString(`ascii`);return this._isNumstr(o)?o:e.error(`Decoding of string type: numstr unsupported characters`)}if(t===`octstr`||t===`objDesc`)return e.raw();if(t===`printstr`){var s=e.raw().toString(`ascii`);return this._isPrintstr(s)?s:e.error(`Decoding of string type: printstr unsupported characters`)}return/str$/.test(t)?e.raw().toString():e.error(`Decoding of string type: `+t+` unsupported`)},c.prototype._decodeObjid=function(e,t,n){for(var r,i=[],a=0;!e.isEmpty();){var o=e.readUInt8();a<<=7,a|=o&127,o&128||(i.push(a),a=0)}o&128&&i.push(a);var s=i[0]/40|0,c=i[0]%40;if(r=n?i:[s,c].concat(i.slice(1)),t){var l=t[r.join(` `)];l===void 0&&(l=t[r.join(`.`)]),l!==void 0&&(r=l)}return r},c.prototype._decodeTime=function(e,t){var n=e.raw().toString();if(t===`gentime`)var r=n.slice(0,4)|0,i=n.slice(4,6)|0,a=n.slice(6,8)|0,o=n.slice(8,10)|0,s=n.slice(10,12)|0,c=n.slice(12,14)|0;else if(t===`utctime`){var r=n.slice(0,2)|0,i=n.slice(2,4)|0,a=n.slice(4,6)|0,o=n.slice(6,8)|0,s=n.slice(8,10)|0,c=n.slice(10,12)|0;r=r<70?2e3+r:1900+r}else return e.error(`Decoding `+t+` time is not supported yet`);return Date.UTC(r,i-1,a,o,s,c,0)},c.prototype._decodeNull=function(e){return null},c.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:t!==0},c.prototype._decodeInt=function(e,t){var n=new a(e.raw());return t&&(n=t[n.toString(10)]||n),n},c.prototype._use=function(e,t){return typeof e==`function`&&(e=e(t)),e._getDecoder(`der`).tree};function l(e,t){var n=e.readUInt8(t);if(e.isError(n))return n;var r=o.tagClass[n>>6],i=!(n&32);if((n&31)==31){var a=n;for(n=0;(a&128)==128;){if(a=e.readUInt8(t),e.isError(a))return a;n<<=7,n|=a&127}}else n&=31;var s=o.tag[n];return{cls:r,primitive:i,tag:n,tagStr:s}}function u(e,t,n){var r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&r===128)return null;if(!(r&128))return r;var i=r&127;if(i>4)return e.error(`length octect is too long`);r=0;for(var a=0;a<i;a++){r<<=8;var o=e.readUInt8(n);if(e.isError(o))return o;r|=o}return r}})),Ln=r(((e,t)=>{var n=B(),r=u().Buffer,i=In();function a(e){i.call(this,e),this.enc=`pem`}n(a,i),t.exports=a,a.prototype.decode=function(e,t){for(var n=e.toString().split(/[\r\n]+/g),a=t.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,c=-1,l=0;l<n.length;l++){var u=n[l].match(o);if(u!==null&&u[2]===a){if(s===-1){if(u[1]!==`BEGIN`)break;s=l}else{if(u[1]!==`END`)break;c=l;break}}}if(s===-1||c===-1)throw Error(`PEM section not found for: `+a);var d=n.slice(s+1,c).join(``);d.replace(/[^a-z0-9\+\/=]+/gi,``);var f=new r(d,`base64`);return i.prototype.decode.call(this,f,t)}})),Rn=r((e=>{var t=e;t.der=In(),t.pem=Ln()})),zn=r(((e,t)=>{var n=B(),r=u().Buffer,i=Hn(),a=i.base,o=i.constants.der;function s(e){this.enc=`der`,this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}t.exports=s,s.prototype.encode=function(e,t){return this.tree._encode(e,t).join()};function c(e){a.Node.call(this,`der`,e)}n(c,a.Node),c.prototype._encodeComposite=function(e,t,n,i){var a=d(e,t,n,this.reporter);if(i.length<128){var o=new r(2);return o[0]=a,o[1]=i.length,this._createEncoderBuffer([o,i])}for(var s=1,c=i.length;c>=256;c>>=8)s++;var o=new r(2+s);o[0]=a,o[1]=128|s;for(var c=1+s,l=i.length;l>0;c--,l>>=8)o[c]=l&255;return this._createEncoderBuffer([o,i])},c.prototype._encodeStr=function(e,t){if(t===`bitstr`)return this._createEncoderBuffer([e.unused|0,e.data]);if(t===`bmpstr`){for(var n=new r(e.length*2),i=0;i<e.length;i++)n.writeUInt16BE(e.charCodeAt(i),i*2);return this._createEncoderBuffer(n)}return t===`numstr`?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error(`Encoding of string type: numstr supports only digits and space`):t===`printstr`?this._isPrintstr(e)?this._createEncoderBuffer(e):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(t)||t===`objDesc`?this._createEncoderBuffer(e):this.reporter.error(`Encoding of string type: `+t+` unsupported`)},c.prototype._encodeObjid=function(e,t,n){if(typeof e==`string`){if(!t)return this.reporter.error(`string objid given, but no values map found`);if(!t.hasOwnProperty(e))return this.reporter.error(`objid not found in values map`);e=t[e].split(/[\s\.]+/g);for(var i=0;i<e.length;i++)e[i]|=0}else if(Array.isArray(e)){e=e.slice();for(var i=0;i<e.length;i++)e[i]|=0}if(!Array.isArray(e))return this.reporter.error(`objid() should be either array or string, got: `+JSON.stringify(e));if(!n){if(e[1]>=40)return this.reporter.error(`Second objid identifier OOB`);e.splice(0,2,e[0]*40+e[1])}for(var a=0,i=0;i<e.length;i++){var o=e[i];for(a++;o>=128;o>>=7)a++}for(var s=new r(a),c=s.length-1,i=e.length-1;i>=0;i--){var o=e[i];for(s[c--]=o&127;(o>>=7)>0;)s[c--]=128|o&127}return this._createEncoderBuffer(s)};function l(e){return e<10?`0`+e:e}c.prototype._encodeTime=function(e,t){var n,r=new Date(e);return t===`gentime`?n=[l(r.getFullYear()),l(r.getUTCMonth()+1),l(r.getUTCDate()),l(r.getUTCHours()),l(r.getUTCMinutes()),l(r.getUTCSeconds()),`Z`].join(``):t===`utctime`?n=[l(r.getFullYear()%100),l(r.getUTCMonth()+1),l(r.getUTCDate()),l(r.getUTCHours()),l(r.getUTCMinutes()),l(r.getUTCSeconds()),`Z`].join(``):this.reporter.error(`Encoding `+t+` time is not supported yet`),this._encodeStr(n,`octstr`)},c.prototype._encodeNull=function(){return this._createEncoderBuffer(``)},c.prototype._encodeInt=function(e,t){if(typeof e==`string`){if(!t)return this.reporter.error(`String int or enum given, but no values map`);if(!t.hasOwnProperty(e))return this.reporter.error(`Values map doesn't contain: `+JSON.stringify(e));e=t[e]}if(typeof e!=`number`&&!r.isBuffer(e)){var n=e.toArray();!e.sign&&n[0]&128&&n.unshift(0),e=new r(n)}if(r.isBuffer(e)){var i=e.length;e.length===0&&i++;var a=new r(i);return e.copy(a),e.length===0&&(a[0]=0),this._createEncoderBuffer(a)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var i=1,o=e;o>=256;o>>=8)i++;for(var a=Array(i),o=a.length-1;o>=0;o--)a[o]=e&255,e>>=8;return a[0]&128&&a.unshift(0),this._createEncoderBuffer(new r(a))},c.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},c.prototype._use=function(e,t){return typeof e==`function`&&(e=e(t)),e._getEncoder(`der`).tree},c.prototype._skipDefault=function(e,t,n){var r=this._baseState,i;if(r.default===null)return!1;var a=e.join();if(r.defaultBuffer===void 0&&(r.defaultBuffer=this._encodeValue(r.default,t,n).join()),a.length!==r.defaultBuffer.length)return!1;for(i=0;i<a.length;i++)if(a[i]!==r.defaultBuffer[i])return!1;return!0};function d(e,t,n,r){var i;if(e===`seqof`?e=`seq`:e===`setof`&&(e=`set`),o.tagByName.hasOwnProperty(e))i=o.tagByName[e];else if(typeof e==`number`&&(e|0)===e)i=e;else return r.error(`Unknown tag: `+e);return i>=31?r.error(`Multi-octet tag encoding unsupported`):(t||(i|=32),i|=o.tagClassByName[n||`universal`]<<6,i)}})),Bn=r(((e,t)=>{var n=B(),r=zn();function i(e){r.call(this,e),this.enc=`pem`}n(i,r),t.exports=i,i.prototype.encode=function(e,t){for(var n=r.prototype.encode.call(this,e).toString(`base64`),i=[`-----BEGIN `+t.label+`-----`],a=0;a<n.length;a+=64)i.push(n.slice(a,a+64));return i.push(`-----END `+t.label+`-----`),i.join(`
5
5
  `)}})),Vn=r((e=>{var t=e;t.der=zn(),t.pem=Bn()})),Hn=r((e=>{var t=e;t.bignum=F(),t.define=kn().define,t.base=Nn(),t.constants=Fn(),t.decoders=Rn(),t.encoders=Vn()})),Un=r(((e,t)=>{var n=Hn(),r=n.define(`Time`,function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),i=n.define(`AttributeTypeValue`,function(){this.seq().obj(this.key(`type`).objid(),this.key(`value`).any())}),a=n.define(`AlgorithmIdentifier`,function(){this.seq().obj(this.key(`algorithm`).objid(),this.key(`parameters`).optional(),this.key(`curve`).objid().optional())}),o=n.define(`SubjectPublicKeyInfo`,function(){this.seq().obj(this.key(`algorithm`).use(a),this.key(`subjectPublicKey`).bitstr())}),s=n.define(`RelativeDistinguishedName`,function(){this.setof(i)}),c=n.define(`RDNSequence`,function(){this.seqof(s)}),l=n.define(`Name`,function(){this.choice({rdnSequence:this.use(c)})}),u=n.define(`Validity`,function(){this.seq().obj(this.key(`notBefore`).use(r),this.key(`notAfter`).use(r))}),d=n.define(`Extension`,function(){this.seq().obj(this.key(`extnID`).objid(),this.key(`critical`).bool().def(!1),this.key(`extnValue`).octstr())}),f=n.define(`TBSCertificate`,function(){this.seq().obj(this.key(`version`).explicit(0).int().optional(),this.key(`serialNumber`).int(),this.key(`signature`).use(a),this.key(`issuer`).use(l),this.key(`validity`).use(u),this.key(`subject`).use(l),this.key(`subjectPublicKeyInfo`).use(o),this.key(`issuerUniqueID`).implicit(1).bitstr().optional(),this.key(`subjectUniqueID`).implicit(2).bitstr().optional(),this.key(`extensions`).explicit(3).seqof(d).optional())});t.exports=n.define(`X509Certificate`,function(){this.seq().obj(this.key(`tbsCertificate`).use(f),this.key(`signatureAlgorithm`).use(a),this.key(`signatureValue`).bitstr())})})),Wn=r((e=>{var t=Hn();e.certificate=Un(),e.RSAPrivateKey=t.define(`RSAPrivateKey`,function(){this.seq().obj(this.key(`version`).int(),this.key(`modulus`).int(),this.key(`publicExponent`).int(),this.key(`privateExponent`).int(),this.key(`prime1`).int(),this.key(`prime2`).int(),this.key(`exponent1`).int(),this.key(`exponent2`).int(),this.key(`coefficient`).int())}),e.RSAPublicKey=t.define(`RSAPublicKey`,function(){this.seq().obj(this.key(`modulus`).int(),this.key(`publicExponent`).int())});var n=t.define(`AlgorithmIdentifier`,function(){this.seq().obj(this.key(`algorithm`).objid(),this.key(`none`).null_().optional(),this.key(`curve`).objid().optional(),this.key(`params`).seq().obj(this.key(`p`).int(),this.key(`q`).int(),this.key(`g`).int()).optional())});e.PublicKey=t.define(`SubjectPublicKeyInfo`,function(){this.seq().obj(this.key(`algorithm`).use(n),this.key(`subjectPublicKey`).bitstr())}),e.PrivateKey=t.define(`PrivateKeyInfo`,function(){this.seq().obj(this.key(`version`).int(),this.key(`algorithm`).use(n),this.key(`subjectPrivateKey`).octstr())}),e.EncryptedPrivateKey=t.define(`EncryptedPrivateKeyInfo`,function(){this.seq().obj(this.key(`algorithm`).seq().obj(this.key(`id`).objid(),this.key(`decrypt`).seq().obj(this.key(`kde`).seq().obj(this.key(`id`).objid(),this.key(`kdeparams`).seq().obj(this.key(`salt`).octstr(),this.key(`iters`).int())),this.key(`cipher`).seq().obj(this.key(`algo`).objid(),this.key(`iv`).octstr()))),this.key(`subjectPrivateKey`).octstr())}),e.DSAPrivateKey=t.define(`DSAPrivateKey`,function(){this.seq().obj(this.key(`version`).int(),this.key(`p`).int(),this.key(`q`).int(),this.key(`g`).int(),this.key(`pub_key`).int(),this.key(`priv_key`).int())}),e.DSAparam=t.define(`DSAparam`,function(){this.int()});var r=t.define(`ECParameters`,function(){this.choice({namedCurve:this.objid()})});e.ECPrivateKey=t.define(`ECPrivateKey`,function(){this.seq().obj(this.key(`version`).int(),this.key(`privateKey`).octstr(),this.key(`parameters`).optional().explicit(0).use(r),this.key(`publicKey`).optional().explicit(1).bitstr())}),e.signature=t.define(`signature`,function(){this.seq().obj(this.key(`r`).int(),this.key(`s`).int())})})),Gn=n({default:()=>Kn}),Kn,qn=e((()=>{Kn={"2.16.840.1.101.3.4.1.1":`aes-128-ecb`,"2.16.840.1.101.3.4.1.2":`aes-128-cbc`,"2.16.840.1.101.3.4.1.3":`aes-128-ofb`,"2.16.840.1.101.3.4.1.4":`aes-128-cfb`,"2.16.840.1.101.3.4.1.21":`aes-192-ecb`,"2.16.840.1.101.3.4.1.22":`aes-192-cbc`,"2.16.840.1.101.3.4.1.23":`aes-192-ofb`,"2.16.840.1.101.3.4.1.24":`aes-192-cfb`,"2.16.840.1.101.3.4.1.41":`aes-256-ecb`,"2.16.840.1.101.3.4.1.42":`aes-256-cbc`,"2.16.840.1.101.3.4.1.43":`aes-256-ofb`,"2.16.840.1.101.3.4.1.44":`aes-256-cfb`}})),Jn=r(((e,t)=>{var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,r=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,a=sn(),o=un(),s=f().Buffer;t.exports=function(e,t){var c=e.toString(),l=c.match(n),u;if(l){var d=`aes`+l[1],f=s.from(l[2],`hex`),p=s.from(l[3].replace(/[\r\n]/g,``),`base64`),m=a(t,f.slice(0,8),parseInt(l[1],10)).key,h=[],g=o.createDecipheriv(d,m,f);h.push(g.update(p)),h.push(g.final()),u=s.concat(h)}else{var _=c.match(i);u=s.from(_[2].replace(/[\r\n]/g,``),`base64`)}return{tag:c.match(r)[1],data:u}}})),Yn=r(((e,n)=>{var r=Wn(),i=(qn(),t(Gn).default),a=Jn(),o=un(),s=Mt().pbkdf2Sync,c=f().Buffer;function l(e,t){var n=e.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),a=i[e.algorithm.decrypt.cipher.algo.join(`.`)],l=e.algorithm.decrypt.cipher.iv,u=e.subjectPrivateKey,d=s(t,n,r,parseInt(a.split(`-`)[1],10)/8,`sha1`),f=o.createDecipheriv(a,d,l),p=[];return p.push(f.update(u)),p.push(f.final()),c.concat(p)}function u(e){var t;typeof e==`object`&&!c.isBuffer(e)&&(t=e.passphrase,e=e.key),typeof e==`string`&&(e=c.from(e));var n=a(e,t),i=n.tag,o=n.data,s,u;switch(i){case`CERTIFICATE`:u=r.certificate.decode(o,`der`).tbsCertificate.subjectPublicKeyInfo;case`PUBLIC KEY`:switch(u||=r.PublicKey.decode(o,`der`),s=u.algorithm.algorithm.join(`.`),s){case`1.2.840.113549.1.1.1`:return r.RSAPublicKey.decode(u.subjectPublicKey.data,`der`);case`1.2.840.10045.2.1`:return u.subjectPrivateKey=u.subjectPublicKey,{type:`ec`,data:u};case`1.2.840.10040.4.1`:return u.algorithm.params.pub_key=r.DSAparam.decode(u.subjectPublicKey.data,`der`),{type:`dsa`,data:u.algorithm.params};default:throw Error(`unknown key id `+s)}case`ENCRYPTED PRIVATE KEY`:o=r.EncryptedPrivateKey.decode(o,`der`),o=l(o,t);case`PRIVATE KEY`:switch(u=r.PrivateKey.decode(o,`der`),s=u.algorithm.algorithm.join(`.`),s){case`1.2.840.113549.1.1.1`:return r.RSAPrivateKey.decode(u.subjectPrivateKey,`der`);case`1.2.840.10045.2.1`:return{curve:u.algorithm.curve,privateKey:r.ECPrivateKey.decode(u.subjectPrivateKey,`der`).privateKey};case`1.2.840.10040.4.1`:return u.algorithm.params.priv_key=r.DSAparam.decode(u.subjectPrivateKey,`der`),{type:`dsa`,params:u.algorithm.params};default:throw Error(`unknown key id `+s)}case`RSA PUBLIC KEY`:return r.RSAPublicKey.decode(o,`der`);case`RSA PRIVATE KEY`:return r.RSAPrivateKey.decode(o,`der`);case`DSA PRIVATE KEY`:return{type:`dsa`,params:r.DSAPrivateKey.decode(o,`der`)};case`EC PRIVATE KEY`:return o=r.ECPrivateKey.decode(o,`der`),{curve:o.parameters.value,privateKey:o.privateKey};default:throw Error(`unknown key type `+i)}}u.signature=r.signature,n.exports=u})),Xn=n({default:()=>Zn}),Zn,Qn=e((()=>{Zn={"1.3.132.0.10":`secp256k1`,"1.3.132.0.33":`p224`,"1.2.840.10045.3.1.1":`p192`,"1.2.840.10045.3.1.7":`p256`,"1.3.132.0.34":`p384`,"1.3.132.0.35":`p521`}})),$n=r(((e,n)=>{var r=f().Buffer,i=dt(),a=On(),o=Rr().ec,s=d(),c=Yn(),l=(Qn(),t(Xn).default),u=1;function p(e,t,n,i,o){var s=c(t);if(s.curve){if(i!==`ecdsa`&&i!==`ecdsa/rsa`)throw Error(`wrong private key type`);return m(e,s)}if(s.type===`dsa`){if(i!==`dsa`)throw Error(`wrong private key type`);return h(e,s,n)}if(i!==`rsa`&&i!==`ecdsa/rsa`)throw Error(`wrong private key type`);if(t.padding!==void 0&&t.padding!==u)throw Error(`illegal or unsupported padding mode`);e=r.concat([o,e]);for(var l=s.modulus.byteLength(),d=[0,1];e.length+d.length+1<l;)d.push(255);d.push(0);for(var f=-1;++f<e.length;)d.push(e[f]);return a(d,s)}function m(e,t){var n=l[t.curve.join(`.`)];if(!n)throw Error(`unknown curve `+t.curve.join(`.`));var i=new o(n).keyFromPrivate(t.privateKey).sign(e);return r.from(i.toDER())}function h(e,t,n){for(var r=t.params.priv_key,i=t.params.p,a=t.params.q,o=t.params.g,c=new s(0),l,u=v(e,a).mod(a),d=!1,f=_(r,a,e,n);d===!1;)l=b(a,f,n),c=x(o,l,i,a),d=l.invm(a).imul(u.add(r.mul(c))).mod(a),d.cmpn(0)===0&&(d=!1,c=new s(0));return g(c,d)}function g(e,t){e=e.toArray(),t=t.toArray(),e[0]&128&&(e=[0].concat(e)),t[0]&128&&(t=[0].concat(t));var n=[48,e.length+t.length+4,2,e.length];return n=n.concat(e,[2,t.length],t),r.from(n)}function _(e,t,n,a){if(e=r.from(e.toArray()),e.length<t.byteLength()){var o=r.alloc(t.byteLength()-e.length);e=r.concat([o,e])}var s=n.length,c=y(n,t),l=r.alloc(s);l.fill(1);var u=r.alloc(s);return u=i(a,u).update(l).update(r.from([0])).update(e).update(c).digest(),l=i(a,u).update(l).digest(),u=i(a,u).update(l).update(r.from([1])).update(e).update(c).digest(),l=i(a,u).update(l).digest(),{k:u,v:l}}function v(e,t){var n=new s(e),r=(e.length<<3)-t.bitLength();return r>0&&n.ishrn(r),n}function y(e,t){e=v(e,t),e=e.mod(t);var n=r.from(e.toArray());if(n.length<t.byteLength()){var i=r.alloc(t.byteLength()-n.length);n=r.concat([i,n])}return n}function b(e,t,n){var a,o;do{for(a=r.alloc(0);a.length*8<e.bitLength();)t.v=i(n,t.k).update(t.v).digest(),a=r.concat([a,t.v]);o=v(a,e),t.k=i(n,t.k).update(t.v).update(r.from([0])).digest(),t.v=i(n,t.k).update(t.v).digest()}while(o.cmp(e)!==-1);return o}function x(e,t,n,r){return e.toRed(s.mont(n)).redPow(t).fromRed().mod(r)}n.exports=p,n.exports.getKey=_,n.exports.makeKey=b})),er=r(((e,n)=>{var r=f().Buffer,i=d(),a=Rr().ec,o=Yn(),s=(Qn(),t(Xn).default);function c(e,t,n,a,s){var c=o(n);if(c.type===`ec`){if(a!==`ecdsa`&&a!==`ecdsa/rsa`)throw Error(`wrong public key type`);return l(e,t,c)}if(c.type===`dsa`){if(a!==`dsa`)throw Error(`wrong public key type`);return u(e,t,c)}if(a!==`rsa`&&a!==`ecdsa/rsa`)throw Error(`wrong public key type`);t=r.concat([s,t]);for(var d=c.modulus.byteLength(),f=[1],p=0;t.length+f.length+2<d;)f.push(255),p+=1;f.push(0);for(var m=-1;++m<t.length;)f.push(t[m]);f=r.from(f);var h=i.mont(c.modulus);e=new i(e).toRed(h),e=e.redPow(new i(c.publicExponent)),e=r.from(e.fromRed().toArray());var g=+(p<8);for(d=Math.min(e.length,f.length),e.length!==f.length&&(g=1),m=-1;++m<d;)g|=e[m]^f[m];return g===0}function l(e,t,n){var r=s[n.data.algorithm.curve.join(`.`)];if(!r)throw Error(`unknown curve `+n.data.algorithm.curve.join(`.`));var i=new a(r),o=n.data.subjectPrivateKey.data;return i.verify(t,e,o)}function u(e,t,n){var r=n.data.p,a=n.data.q,s=n.data.g,c=n.data.pub_key,l=o.signature.decode(e,`der`),u=l.s,d=l.r;p(u,a),p(d,a);var f=i.mont(r),m=u.invm(a);return s.toRed(f).redPow(new i(t).mul(m).mod(a)).fromRed().mul(c.toRed(f).redPow(d.mul(m).mod(a)).fromRed()).mod(r).mod(a).cmp(d)===0}function p(e,t){if(e.cmpn(0)<=0||e.cmp(t)>=0)throw Error(`invalid sig`)}n.exports=c})),tr=r(((e,n)=>{var r=f().Buffer,i=ct(),a=Ye(),o=B(),s=$n(),c=er(),l=(Tt(),t(ft).default);Object.keys(l).forEach(function(e){l[e].id=r.from(l[e].id,`hex`),l[e.toLowerCase()]=l[e]});function u(e){a.Writable.call(this);var t=l[e];if(!t)throw Error(`Unknown message digest`);this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}o(u,a.Writable),u.prototype._write=function(e,t,n){this._hash.update(e),n()},u.prototype.update=function(e,t){return this._hash.update(typeof e==`string`?r.from(e,t):e),this},u.prototype.sign=function(e,t){this.end();var n=s(this._hash.digest(),e,this._hashType,this._signType,this._tag);return t?n.toString(t):n};function d(e){a.Writable.call(this);var t=l[e];if(!t)throw Error(`Unknown message digest`);this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}o(d,a.Writable),d.prototype._write=function(e,t,n){this._hash.update(e),n()},d.prototype.update=function(e,t){return this._hash.update(typeof e==`string`?r.from(e,t):e),this},d.prototype.verify=function(e,t,n){var i=typeof t==`string`?r.from(t,n):t;return this.end(),c(i,this._hash.digest(),e,this._signType,this._tag)};function p(e){return new u(e)}function m(e){return new d(e)}n.exports={Sign:p,Verify:m,createSign:p,createVerify:m}})),nr=r(((e,t)=>{c();var n=Rr(),r=F();t.exports=function(e){return new a(e)};var i={secp256k1:{name:`secp256k1`,byteLength:32},secp224r1:{name:`p224`,byteLength:28},prime256v1:{name:`p256`,byteLength:32},prime192v1:{name:`p192`,byteLength:24},ed25519:{name:`ed25519`,byteLength:32},secp384r1:{name:`p384`,byteLength:48},secp521r1:{name:`p521`,byteLength:66}};i.p224=i.secp224r1,i.p256=i.secp256r1=i.prime256v1,i.p192=i.secp192r1=i.prime192v1,i.p384=i.secp384r1,i.p521=i.secp521r1;function a(e){this.curveType=i[e],this.curveType||={name:e},this.curve=new n.ec(this.curveType.name),this.keys=void 0}a.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},a.prototype.computeSecret=function(e,t,n){return t||=`utf8`,l.isBuffer(e)||(e=new l(e,t)),o(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),n,this.curveType.byteLength)},a.prototype.getPublicKey=function(e,t){var n=this.keys.getPublic(t===`compressed`,!0);return t===`hybrid`&&(n[0]=n[n.length-1]%2?7:6),o(n,e)},a.prototype.getPrivateKey=function(e){return o(this.keys.getPrivate(),e)},a.prototype.setPublicKey=function(e,t){return t||=`utf8`,l.isBuffer(e)||(e=new l(e,t)),this.keys._importPublic(e),this},a.prototype.setPrivateKey=function(e,t){t||=`utf8`,l.isBuffer(e)||(e=new l(e,t));var n=new r(e);return n=n.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(n),this};function o(e,t,n){Array.isArray(e)||(e=e.toArray());var r=new l(e);if(n&&r.length<n){var i=new l(n-r.length);i.fill(0),r=l.concat([i,r])}return t?r.toString(t):r}})),rr=r(((e,t)=>{var n=ct(),r=f().Buffer;t.exports=function(e,t){for(var a=r.alloc(0),o=0,s;a.length<t;)s=i(o++),a=r.concat([a,n(`sha1`).update(e).update(s).digest()]);return a.slice(0,t)};function i(e){var t=r.allocUnsafe(4);return t.writeUInt32BE(e,0),t}})),ir=r(((e,t)=>{t.exports=function(e,t){for(var n=e.length,r=-1;++r<n;)e[r]^=t[r];return e}})),ar=r(((e,t)=>{var n=F(),r=f().Buffer;function i(e,t){return r.from(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}t.exports=i})),or=r(((e,t)=>{var n=Yn(),r=z(),i=ct(),a=rr(),o=ir(),s=F(),c=ar(),l=On(),u=f().Buffer;t.exports=function(e,t,r){var i=e.padding?e.padding:r?1:4,a=n(e),o;if(i===4)o=d(a,t);else if(i===1)o=p(a,t,r);else if(i===3){if(o=new s(t),o.cmp(a.modulus)>=0)throw Error(`data too long for modulus`)}else throw Error(`unknown padding`);return r?l(o,a):c(o,a)};function d(e,t){var n=e.modulus.byteLength(),c=t.length,l=i(`sha1`).update(u.alloc(0)).digest(),d=l.length,f=2*d;if(c>n-f-2)throw Error(`message too long`);var p=u.alloc(n-c-f-2),m=n-d-1,h=r(d),g=o(u.concat([l,p,u.alloc(1,1),t],m),a(h,m)),_=o(h,a(g,d));return new s(u.concat([u.alloc(1),_,g],n))}function p(e,t,n){var r=t.length,i=e.modulus.byteLength();if(r>i-11)throw Error(`message too long`);var a=n?u.alloc(i-r-3,255):m(i-r-3);return new s(u.concat([u.from([0,n?1:2]),a,u.alloc(1),t],i))}function m(e){for(var t=u.allocUnsafe(e),n=0,i=r(e*2),a=0,o;n<e;)a===i.length&&(i=r(e*2),a=0),o=i[a++],o&&(t[n++]=o);return t}})),sr=r(((e,t)=>{var n=Yn(),r=rr(),i=ir(),a=F(),o=On(),s=ct(),c=ar(),l=f().Buffer;t.exports=function(e,t,r){var i=e.padding?e.padding:r?1:4,s=n(e),f=s.modulus.byteLength();if(t.length>f||new a(t).cmp(s.modulus)>=0)throw Error(`decryption error`);var p=r?c(new a(t),s):o(t,s),m=l.alloc(f-p.length);if(p=l.concat([m,p],f),i===4)return u(s,p);if(i===1)return d(s,p,r);if(i===3)return p;throw Error(`unknown padding`)};function u(e,t){var n=e.modulus.byteLength(),a=s(`sha1`).update(l.alloc(0)).digest(),o=a.length;if(t[0]!==0)throw Error(`decryption error`);var c=t.slice(1,o+1),u=t.slice(o+1),d=i(u,r(i(c,r(u,o)),n-o-1));if(p(a,d.slice(0,o)))throw Error(`decryption error`);for(var f=o;d[f]===0;)f++;if(d[f++]!==1)throw Error(`decryption error`);return d.slice(f)}function d(e,t,n){for(var r=t.slice(0,2),i=2,a=0;t[i++]!==0;)if(i>=t.length){a++;break}var o=t.slice(2,i-1);if((r.toString(`hex`)!==`0002`&&!n||r.toString(`hex`)!==`0001`&&n)&&a++,o.length<8&&a++,a)throw Error(`decryption error`);return t.slice(i)}function p(e,t){e=l.from(e),t=l.from(t);var n=0,r=e.length;e.length!==t.length&&(n++,r=Math.min(e.length,t.length));for(var i=-1;++i<r;)n+=e[i]^t[i];return n}})),cr=r((e=>{e.publicEncrypt=or(),e.privateDecrypt=sr(),e.privateEncrypt=function(t,n){return e.publicEncrypt(t,n,!0)},e.publicDecrypt=function(t,n){return e.privateDecrypt(t,n,!0)}})),lr=r((e=>{o(),a();function t(){throw Error(`secure random number generation not supported by this browser