hfs 3.2.0-rc8 → 3.2.1

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 (170) hide show
  1. package/admin/assets/{af-Bg4-14L0.js → af-U8Sl5sCM.js} +1 -1
  2. package/admin/assets/{am-zWZY9rpx.js → am-n9TdXja0.js} +1 -1
  3. package/admin/assets/{ar-7qGyHfYg.js → ar-CUpxfuw5.js} +1 -1
  4. package/admin/assets/{ar-dz-BoFzvWmm.js → ar-dz-DC58Z9cj.js} +1 -1
  5. package/admin/assets/{ar-iq-C7joJmo_.js → ar-iq-BDkrto6W.js} +1 -1
  6. package/admin/assets/{ar-kw-DvKXJWJA.js → ar-kw-Bz806GvG.js} +1 -1
  7. package/admin/assets/{ar-ly-Dym4ftgf.js → ar-ly-DW7JaKir.js} +1 -1
  8. package/admin/assets/{ar-ma-BbT8pRmB.js → ar-ma-BuveKbkq.js} +1 -1
  9. package/admin/assets/{ar-sa-Bd_iCKLh.js → ar-sa-DRvob1Jp.js} +1 -1
  10. package/admin/assets/{ar-tn-BgppC4Bm.js → ar-tn-Cae7pfui.js} +1 -1
  11. package/admin/assets/{az-GdMtILf1.js → az-B7PpjwCU.js} +1 -1
  12. package/admin/assets/{be-D6qNRfpF.js → be-DSy_sPdD.js} +1 -1
  13. package/admin/assets/{bg-BxuknabT.js → bg-Djacfatx.js} +1 -1
  14. package/admin/assets/{bi-DOHiOGim.js → bi-DOLGYGEN.js} +1 -1
  15. package/admin/assets/{bm-KZqMAdy9.js → bm-BmR133he.js} +1 -1
  16. package/admin/assets/{bn-Bnx9ZxYZ.js → bn-DsjLUmm3.js} +1 -1
  17. package/admin/assets/{bn-bd-DfjvtgwC.js → bn-bd-C3SafRtu.js} +1 -1
  18. package/admin/assets/{bo-WFj6_76A.js → bo-DsMRUw9A.js} +1 -1
  19. package/admin/assets/{br-BoEH4JS6.js → br-BxR8Zm95.js} +1 -1
  20. package/admin/assets/{bs-BUYVOM6U.js → bs-gH68uvCb.js} +1 -1
  21. package/admin/assets/{ca-BXoOvB3r.js → ca-DfGL180b.js} +1 -1
  22. package/admin/assets/{cs-Crsm8jL1.js → cs-D4lFVAq6.js} +1 -1
  23. package/admin/assets/{cv-se44zPX7.js → cv-CFyqoRN7.js} +1 -1
  24. package/admin/assets/{cy-Qfhhmcl_.js → cy-DuubtylZ.js} +1 -1
  25. package/admin/assets/{da-COEoG9rj.js → da-Cp7c-T-B.js} +1 -1
  26. package/admin/assets/{de-BGAz100t.js → de-CeQXU72n.js} +1 -1
  27. package/admin/assets/{de-at-OqE6fHQ9.js → de-at-Cx01BLTk.js} +1 -1
  28. package/admin/assets/{de-ch-YHOyEnpJ.js → de-ch-K5Vn_bWQ.js} +1 -1
  29. package/admin/assets/{dist-WQTlQJoh.js → dist-CfPsVFTp.js} +1 -1
  30. package/admin/assets/{dv-DHZVL1hr.js → dv-DB4pdLQj.js} +1 -1
  31. package/admin/assets/{el-BqOQIQuu.js → el-CNA5lg_z.js} +1 -1
  32. package/admin/assets/{en-S9inMRTE.js → en-Bpua-Wb5.js} +1 -1
  33. package/admin/assets/{en-au-CSj4PTK2.js → en-au-CKwJ7DKC.js} +1 -1
  34. package/admin/assets/{en-ca-CIQEnB7O.js → en-ca-D8vKBgWW.js} +1 -1
  35. package/admin/assets/{en-in-CCG_yRti.js → en-gb-C3jRv20Y.js} +1 -1
  36. package/admin/assets/{en-ie-DymkRW16.js → en-ie-0gd4plad.js} +1 -1
  37. package/admin/assets/{en-il-Cdwfi4_C.js → en-il-BYIz25Pw.js} +1 -1
  38. package/admin/assets/{en-tt-BgKRVNV3.js → en-in-Bhx4y1uu.js} +1 -1
  39. package/admin/assets/{en-nz-C8gB84nr.js → en-nz-CtIJOjgh.js} +1 -1
  40. package/admin/assets/{en-sg-BvSlr2gM.js → en-sg-iygWx8GW.js} +1 -1
  41. package/admin/assets/{en-gb-B3a8pIOY.js → en-tt-Bk-if7Re.js} +1 -1
  42. package/admin/assets/{eo-D4oFq9AO.js → eo-DAvER5ej.js} +1 -1
  43. package/admin/assets/{es-bCHsjaZ4.js → es-C98a0Ggy.js} +1 -1
  44. package/admin/assets/{es-do-C9lCoMJ4.js → es-do-TCakoZXN.js} +1 -1
  45. package/admin/assets/{es-mx-DEquOX75.js → es-mx-BCj7c6Zn.js} +1 -1
  46. package/admin/assets/{es-pr-B-m20jZk.js → es-pr-rsR3Q8oM.js} +1 -1
  47. package/admin/assets/{es-us-WM2oPU2k.js → es-us-DC9NM1XV.js} +1 -1
  48. package/admin/assets/{esm-eOAKkc9h.js → esm-BQaMpob3.js} +1 -1
  49. package/admin/assets/{et-CCtwGw_Y.js → et-tJ-d1AZX.js} +1 -1
  50. package/admin/assets/{eu-BKAJCBrf.js → eu-xzUajtaj.js} +1 -1
  51. package/admin/assets/{fa-DT2t_r-u.js → fa-kR15gQkC.js} +1 -1
  52. package/admin/assets/{fi-Cp9hKrDT.js → fi-DQjRBOgG.js} +1 -1
  53. package/admin/assets/{fo-BuNP87df.js → fo-BHMXHU45.js} +1 -1
  54. package/admin/assets/{fr-DPOioMSR.js → fr-DGS71Nvo.js} +1 -1
  55. package/admin/assets/{fr-ca-Cj1XVw3q.js → fr-ca-Bkzyy0tT.js} +1 -1
  56. package/admin/assets/{fr-ch-JP_uRLpk.js → fr-ch-BRrWrRWV.js} +1 -1
  57. package/admin/assets/{fy-B3YwO5ou.js → fy-Dkv180q7.js} +1 -1
  58. package/admin/assets/{ga-1s0XFi-g.js → ga-xsoXuVDY.js} +1 -1
  59. package/admin/assets/{gd-0iXJrI2a.js → gd-cLPVqYdG.js} +1 -1
  60. package/admin/assets/{gl-DUdW2ja1.js → gl-BUG0DHTt.js} +1 -1
  61. package/admin/assets/{gom-latn-BP20pia8.js → gom-latn-BKRncAa1.js} +1 -1
  62. package/admin/assets/{gu-r2KYOCVP.js → gu-BpmXErqK.js} +1 -1
  63. package/admin/assets/{he-DxGoXtSk.js → he-DNxd9A8z.js} +1 -1
  64. package/admin/assets/{hi-DCmZg2yN.js → hi-dNFE6t75.js} +1 -1
  65. package/admin/assets/{hr-OD5TnW3Q.js → hr-DNZiZtn4.js} +1 -1
  66. package/admin/assets/{ht-Du2y0rns.js → ht-B1LoCeln.js} +1 -1
  67. package/admin/assets/{hu-CQqv-1Ur.js → hu-q6SYps3j.js} +1 -1
  68. package/admin/assets/{hy-am-BcmHF4YV.js → hy-am-BLa2HL3i.js} +1 -1
  69. package/admin/assets/{id-S_zssMBX.js → id-4zvXdXSK.js} +1 -1
  70. package/admin/assets/{index-D4q1FVs4.js → index-D2UH6ajh.js} +7 -7
  71. package/admin/assets/index-eeRX25da.css +1 -0
  72. package/admin/assets/{is-H8JdSEis.js → is-B7wmPDNy.js} +1 -1
  73. package/admin/assets/{it-ER28gyIL.js → it-CGm31WTp.js} +1 -1
  74. package/admin/assets/{it-ch-CZE431mx.js → it-ch-HfVNoF64.js} +1 -1
  75. package/admin/assets/{ja-H_y27xLk.js → ja-RGFi1Jc2.js} +1 -1
  76. package/admin/assets/{jv-B2ORfPCZ.js → jv-BclbE5yu.js} +1 -1
  77. package/admin/assets/{ka-B-qyI6UJ.js → ka-D3ZrxVjT.js} +1 -1
  78. package/admin/assets/{kk-D4tg6gly.js → kk-B7aIapNy.js} +1 -1
  79. package/admin/assets/{km-eV5Z0W0B.js → km-DPwsGner.js} +1 -1
  80. package/admin/assets/{kn-l1cNc25m.js → kn-CuXmm_DG.js} +1 -1
  81. package/admin/assets/{ko-BF-hdl_h.js → ko-BlPgy9aF.js} +1 -1
  82. package/admin/assets/{ku-Dh4MGrMZ.js → ku-B6w51rl_.js} +1 -1
  83. package/admin/assets/{ky-6tayDOxo.js → ky-RLmSGZmf.js} +1 -1
  84. package/admin/assets/{lb-CMJBR7AZ.js → lb-AKcfj05J.js} +1 -1
  85. package/admin/assets/{lo-5siOoXT6.js → lo-VBKOzJn1.js} +1 -1
  86. package/admin/assets/{lt-2zPGCi33.js → lt-53JaHFcf.js} +1 -1
  87. package/admin/assets/{lv-91iznPuT.js → lv-DGOgmu9w.js} +1 -1
  88. package/admin/assets/{me-DY3vD4yo.js → me-zNrvFUXX.js} +1 -1
  89. package/admin/assets/{mi-Do_qNTUe.js → mi-BBDE1uK4.js} +1 -1
  90. package/admin/assets/{mk-DLY2Kw-w.js → mk-2LiSrAS9.js} +1 -1
  91. package/admin/assets/{ml-DFdvVaWU.js → ml-BEwbrVql.js} +1 -1
  92. package/admin/assets/{mn-Dvtc18oN.js → mn-LuMGd2Ic.js} +1 -1
  93. package/admin/assets/{mr-xQ9KmUmO.js → mr-C_dFhleR.js} +1 -1
  94. package/admin/assets/{ms-TDRKk6ME.js → ms-BHnmZJI4.js} +1 -1
  95. package/admin/assets/{ms-my-WKPboGdX.js → ms-my-FcVPbGSE.js} +1 -1
  96. package/admin/assets/{mt-DlLU9DYk.js → mt-DzhvOV5Z.js} +1 -1
  97. package/admin/assets/{my-PqGLq6fY.js → my-Mmp3v0PH.js} +1 -1
  98. package/admin/assets/{nb-DjCT6w8b.js → nb-CYPvI8e3.js} +1 -1
  99. package/admin/assets/{ne-DBm9EqxY.js → ne-BtVsV5BN.js} +1 -1
  100. package/admin/assets/{nl-BRLhCbSa.js → nl-C6aRDFNr.js} +1 -1
  101. package/admin/assets/{nl-be-kLQwP6uc.js → nl-be-X-pQSY5N.js} +1 -1
  102. package/admin/assets/{nn-Y_6VxU8y.js → nn-C1m9zYBT.js} +1 -1
  103. package/admin/assets/{oc-lnc-B33kqpbN.js → oc-lnc-CFT7xZs-.js} +1 -1
  104. package/admin/assets/{pa-in-CgjsALFX.js → pa-in-Bby4AmI2.js} +1 -1
  105. package/admin/assets/{pl-CZkFScFZ.js → pl-MmIf2tXf.js} +1 -1
  106. package/admin/assets/{pt-CQROSXCQ.js → pt-DHCh_z9j.js} +1 -1
  107. package/admin/assets/{pt-br-qeUsNzCS.js → pt-br-Cu8EXyIK.js} +1 -1
  108. package/admin/assets/{rn-B4eqqkBN.js → rn-DZUJ5hf0.js} +1 -1
  109. package/admin/assets/{ro-AxPEWZYS.js → ro-BRHg1GDk.js} +1 -1
  110. package/admin/assets/{ru-flOWCQcj.js → ru-Wv8fMN5W.js} +1 -1
  111. package/admin/assets/{rw-DAOrscBF.js → rw-B_XP1EHM.js} +1 -1
  112. package/admin/assets/{sd-C-gSIbcY.js → sd-_X3CAPlB.js} +1 -1
  113. package/admin/assets/{se-BFoTo5tH.js → se-FItkWaOK.js} +1 -1
  114. package/admin/assets/{sha512-C4Z0evfL.js → sha512-UQMP5wnF.js} +1 -1
  115. package/admin/assets/{si-uwlcENl7.js → si-DhVYEiDt.js} +1 -1
  116. package/admin/assets/{sk-C2ooPH5H.js → sk-cWZR9gF4.js} +1 -1
  117. package/admin/assets/{sl-C1VQ_NND.js → sl-CJckZkV8.js} +1 -1
  118. package/admin/assets/{sq-p6Fqfl0P.js → sq-B7eoM8fS.js} +1 -1
  119. package/admin/assets/{sr-aGptMRLx.js → sr-SfiQA7kg.js} +1 -1
  120. package/admin/assets/{sr-cyrl-H2xFKyKQ.js → sr-cyrl-Db8Rrl0U.js} +1 -1
  121. package/admin/assets/{ss-DZGLu8of.js → ss-Bian2WDB.js} +1 -1
  122. package/admin/assets/{sv-CbPdPZZ_.js → sv-D-Dsf8uN.js} +1 -1
  123. package/admin/assets/{sv-fi-CyKaJvej.js → sv-fi-BBv1GPVJ.js} +1 -1
  124. package/admin/assets/{sw-xnU6Up60.js → sw-BIzZvuq6.js} +1 -1
  125. package/admin/assets/{ta-YgdHc0ZL.js → ta-C2JoHqar.js} +1 -1
  126. package/admin/assets/{te-Bwz0yw2b.js → te-ByKFS-hT.js} +1 -1
  127. package/admin/assets/{tet-Bbcov1-z.js → tet-Bq9OQkFH.js} +1 -1
  128. package/admin/assets/{tg-D7Q6Tr-6.js → tg-BPqYCigR.js} +1 -1
  129. package/admin/assets/{th-CXkdtTo8.js → th-m4ghaYsj.js} +1 -1
  130. package/admin/assets/{tk-aWNuFpaN.js → tk-CFxWTO9D.js} +1 -1
  131. package/admin/assets/{tl-ph-Dnu7kH17.js → tl-ph-BiBY15io.js} +1 -1
  132. package/admin/assets/{tlh-ruM0NXgJ.js → tlh-CyBfXfLa.js} +1 -1
  133. package/admin/assets/{tr-CbgFjnKs.js → tr-69QiF4Yn.js} +1 -1
  134. package/admin/assets/{tzl-BegFFTvM.js → tzl-BG9jvswA.js} +1 -1
  135. package/admin/assets/{tzm-BfOwLfRA.js → tzm-IJGtGn0k.js} +1 -1
  136. package/admin/assets/{tzm-latn-kjUPStHQ.js → tzm-latn-CAelnev_.js} +1 -1
  137. package/admin/assets/{ug-cn-CFiepF9Q.js → ug-cn-CKlXJ1Cr.js} +1 -1
  138. package/admin/assets/{uk-pVLNvNQF.js → uk-DazXNZ9b.js} +1 -1
  139. package/admin/assets/{ur-B56v5-z6.js → ur-BFAjqt9p.js} +1 -1
  140. package/admin/assets/{uz-v9Yke0zW.js → uz-CjoAOeqe.js} +1 -1
  141. package/admin/assets/{uz-latn-DHYpLP5q.js → uz-latn-CzIzARA0.js} +1 -1
  142. package/admin/assets/{vi-C_Zoy7Q8.js → vi-DZuOT62g.js} +1 -1
  143. package/admin/assets/{x-pseudo-wqPEtM6k.js → x-pseudo-DlpsSPis.js} +1 -1
  144. package/admin/assets/{yo-B3VerO7U.js → yo-BvI53ejW.js} +1 -1
  145. package/admin/assets/{zh-RanXyvAH.js → zh-ci4y7UyJ.js} +1 -1
  146. package/admin/assets/{zh-cn-DVYQADKA.js → zh-cn-CwOh6Lhp.js} +1 -1
  147. package/admin/assets/{zh-hk-1uGTDXkZ.js → zh-hk-CPgMd5VF.js} +1 -1
  148. package/admin/assets/{zh-tw-CPCFRxwB.js → zh-tw-DJiWMOSA.js} +1 -1
  149. package/admin/index.html +2 -2
  150. package/central.json +1 -4
  151. package/frontend/assets/{dist-legacy-BaWYNjA6.js → dist-legacy-CFPnugjA.js} +1 -1
  152. package/frontend/assets/index-legacy-CCOgiwQJ.js +1 -0
  153. package/frontend/assets/{lib-legacy-DKUc98Ib.js → lib-legacy-CCULxbTk.js} +1 -1
  154. package/frontend/assets/{sha512-legacy-Drx4F1hz.js → sha512-legacy-D8zcvvqa.js} +1 -1
  155. package/frontend/index.html +1 -1
  156. package/npm-shrinkwrap.json +28 -28
  157. package/package.json +1 -1
  158. package/src/api.auth.js +25 -7
  159. package/src/api.lang.js +1 -1
  160. package/src/apiMiddleware.js +2 -3
  161. package/src/basicWeb.js +1 -1
  162. package/src/cross.js +1 -1
  163. package/src/frontEndApis.js +26 -29
  164. package/src/index.js +2 -1
  165. package/src/lang.js +6 -1
  166. package/src/outboundProxy.js +2 -1
  167. package/src/util-files.js +2 -0
  168. package/src/webdav.js +1 -4
  169. package/admin/assets/index-BGZpazPR.css +0 -1
  170. package/frontend/assets/index-legacy-DKhdXq5m.js +0 -1
@@ -1 +1 @@
1
- System.register(["./index-legacy-DKhdXq5m.js"],(function(t,i){var h,s,e,r,o,a;return{setters:[function(t){h=t.t}],execute:function(){s=h((function(t,i){!function(t){function h(t,i){return this instanceof h?(this._low=0,this._high=0,this.remainder=null,void 0===i?e.call(this,t):"string"==typeof t?r.call(this,t,i):void s.call(this,t,i)):new h(t,i)}function s(t,i){return this._low=0|t,this._high=0|i,this}function e(t){return this._low=65535&t,this._high=t>>>16,this}function r(t,i){var h=parseInt(t,i||10);return this._low=65535&h,this._high=h>>>16,this}h(Math.pow(36,5)),h(Math.pow(16,7)),h(Math.pow(10,9)),h(Math.pow(2,30)),h(36),h(16),h(10),h(2),h.prototype.fromBits=s,h.prototype.fromNumber=e,h.prototype.fromString=r,h.prototype.toNumber=function(){return 65536*this._high+this._low},h.prototype.toString=function(t){return this.toNumber().toString(t||10)},h.prototype.add=function(t){var i=this._low+t._low,h=i>>>16;return h+=this._high+t._high,this._low=65535&i,this._high=65535&h,this},h.prototype.subtract=function(t){return this.add(t.clone().negate())},h.prototype.multiply=function(t){var i,h=this._high,s=this._low,e=t._high,r=t._low,o=s*r;return i=o>>>16,i+=h*r,i&=65535,i+=s*e,this._low=65535&o,this._high=65535&i,this},h.prototype.div=function(t){if(0==t._low&&0==t._high)throw Error("division by zero");if(0==t._high&&1==t._low)return this.remainder=new h(0),this;if(t.gt(this))return this.remainder=this.clone(),this._low=0,this._high=0,this;if(this.eq(t))return this.remainder=new h(0),this._low=1,this._high=0,this;for(var i=t.clone(),s=-1;!this.lt(i);)i.shiftLeft(1,!0),s++;for(this.remainder=this.clone(),this._low=0,this._high=0;s>=0;s--)i.shiftRight(1),this.remainder.lt(i)||(this.remainder.subtract(i),s>=16?this._high|=1<<s-16:this._low|=1<<s);return this},h.prototype.negate=function(){var t=1+(65535&~this._low);return this._low=65535&t,this._high=~this._high+(t>>>16)&65535,this},h.prototype.equals=h.prototype.eq=function(t){return this._low==t._low&&this._high==t._high},h.prototype.greaterThan=h.prototype.gt=function(t){return this._high>t._high||!(this._high<t._high)&&this._low>t._low},h.prototype.lessThan=h.prototype.lt=function(t){return this._high<t._high||!(this._high>t._high)&&this._low<t._low},h.prototype.or=function(t){return this._low|=t._low,this._high|=t._high,this},h.prototype.and=function(t){return this._low&=t._low,this._high&=t._high,this},h.prototype.not=function(){return this._low=65535&~this._low,this._high=65535&~this._high,this},h.prototype.xor=function(t){return this._low^=t._low,this._high^=t._high,this},h.prototype.shiftRight=h.prototype.shiftr=function(t){return t>16?(this._low=this._high>>t-16,this._high=0):16==t?(this._low=this._high,this._high=0):(this._low=this._low>>t|this._high<<16-t&65535,this._high>>=t),this},h.prototype.shiftLeft=h.prototype.shiftl=function(t,i){return t>16?(this._high=this._low<<t-16,this._low=0,i||(this._high&=65535)):16==t?(this._high=this._low,this._low=0):(this._high=this._high<<t|this._low>>16-t,this._low=this._low<<t&65535,i||(this._high&=65535)),this},h.prototype.rotateLeft=h.prototype.rotl=function(t){var i=this._high<<16|this._low;return i=i<<t|i>>>32-t,this._low=65535&i,this._high=i>>>16,this},h.prototype.rotateRight=h.prototype.rotr=function(t){var i=this._high<<16|this._low;return i=i>>>t|i<<32-t,this._low=65535&i,this._high=i>>>16,this},h.prototype.clone=function(){return new h(this._low,this._high)},"undefined"!=typeof define&&define.amd?define([],(function(){return h})):void 0!==i&&i.exports?i.exports=h:t.UINT32=h}(t)})),e=h((function(t,i){!function(t){var h={16:e(Math.pow(16,5)),10:e(Math.pow(10,5)),2:e(Math.pow(2,5))},s={16:e(16),10:e(10),2:e(2)};function e(t,i,h,s){return this instanceof e?(this.remainder=null,"string"==typeof t?a.call(this,t,i):void 0===i?o.call(this,t):void r.apply(this,arguments)):new e(t,i,h,s)}function r(t,i,h,s){return void 0===h?(this._a00=65535&t,this._a16=t>>>16,this._a32=65535&i,this._a48=i>>>16,this):(this._a00=0|t,this._a16=0|i,this._a32=0|h,this._a48=0|s,this)}function o(t){return this._a00=65535&t,this._a16=t>>>16,this._a32=0,this._a48=0,this}function a(t,i){i=i||10,this._a00=0,this._a16=0,this._a32=0,this._a48=0;for(var s=h[i]||new e(Math.pow(i,5)),r=0,o=t.length;r<o;r+=5){var a=Math.min(5,o-r),m=parseInt(t.slice(r,r+a),i);this.multiply(a<5?new e(Math.pow(i,a)):s).add(new e(m))}return this}e.prototype.fromBits=r,e.prototype.fromNumber=o,e.prototype.fromString=a,e.prototype.toNumber=function(){return 65536*this._a16+this._a00},e.prototype.toString=function(t){var i=s[t=t||10]||new e(t);if(!this.gt(i))return this.toNumber().toString(t);for(var h=this.clone(),r=new Array(64),o=63;o>=0&&(h.div(i),r[o]=h.remainder.toNumber().toString(t),h.gt(i));o--);return r[o-1]=h.toNumber().toString(t),r.join("")},e.prototype.add=function(t){var i=this._a00+t._a00,h=i>>>16,s=(h+=this._a16+t._a16)>>>16,e=(s+=this._a32+t._a32)>>>16;return e+=this._a48+t._a48,this._a00=65535&i,this._a16=65535&h,this._a32=65535&s,this._a48=65535&e,this},e.prototype.subtract=function(t){return this.add(t.clone().negate())},e.prototype.multiply=function(t){var i=this._a00,h=this._a16,s=this._a32,e=this._a48,r=t._a00,o=t._a16,a=t._a32,m=i*r,n=m>>>16,_=(n+=i*o)>>>16;n&=65535,_+=(n+=h*r)>>>16;var l=(_+=i*a)>>>16;return _&=65535,l+=(_+=h*o)>>>16,_&=65535,l+=(_+=s*r)>>>16,l+=i*t._a48,l&=65535,l+=h*a,l&=65535,l+=s*o,l&=65535,l+=e*r,this._a00=65535&m,this._a16=65535&n,this._a32=65535&_,this._a48=65535&l,this},e.prototype.div=function(t){if(0==t._a16&&0==t._a32&&0==t._a48){if(0==t._a00)throw Error("division by zero");if(1==t._a00)return this.remainder=new e(0),this}if(t.gt(this))return this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0,this;if(this.eq(t))return this.remainder=new e(0),this._a00=1,this._a16=0,this._a32=0,this._a48=0,this;for(var i=t.clone(),h=-1;!this.lt(i);)i.shiftLeft(1,!0),h++;for(this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0;h>=0;h--)i.shiftRight(1),this.remainder.lt(i)||(this.remainder.subtract(i),h>=48?this._a48|=1<<h-48:h>=32?this._a32|=1<<h-32:h>=16?this._a16|=1<<h-16:this._a00|=1<<h);return this},e.prototype.negate=function(){var t=1+(65535&~this._a00);return this._a00=65535&t,t=(65535&~this._a16)+(t>>>16),this._a16=65535&t,t=(65535&~this._a32)+(t>>>16),this._a32=65535&t,this._a48=~this._a48+(t>>>16)&65535,this},e.prototype.equals=e.prototype.eq=function(t){return this._a48==t._a48&&this._a00==t._a00&&this._a32==t._a32&&this._a16==t._a16},e.prototype.greaterThan=e.prototype.gt=function(t){return this._a48>t._a48||!(this._a48<t._a48)&&(this._a32>t._a32||!(this._a32<t._a32)&&(this._a16>t._a16||!(this._a16<t._a16)&&this._a00>t._a00))},e.prototype.lessThan=e.prototype.lt=function(t){return this._a48<t._a48||!(this._a48>t._a48)&&(this._a32<t._a32||!(this._a32>t._a32)&&(this._a16<t._a16||!(this._a16>t._a16)&&this._a00<t._a00))},e.prototype.or=function(t){return this._a00|=t._a00,this._a16|=t._a16,this._a32|=t._a32,this._a48|=t._a48,this},e.prototype.and=function(t){return this._a00&=t._a00,this._a16&=t._a16,this._a32&=t._a32,this._a48&=t._a48,this},e.prototype.xor=function(t){return this._a00^=t._a00,this._a16^=t._a16,this._a32^=t._a32,this._a48^=t._a48,this},e.prototype.not=function(){return this._a00=65535&~this._a00,this._a16=65535&~this._a16,this._a32=65535&~this._a32,this._a48=65535&~this._a48,this},e.prototype.shiftRight=e.prototype.shiftr=function(t){return(t%=64)>=48?(this._a00=this._a48>>t-48,this._a16=0,this._a32=0,this._a48=0):t>=32?(t-=32,this._a00=65535&(this._a32>>t|this._a48<<16-t),this._a16=this._a48>>t&65535,this._a32=0,this._a48=0):t>=16?(t-=16,this._a00=65535&(this._a16>>t|this._a32<<16-t),this._a16=65535&(this._a32>>t|this._a48<<16-t),this._a32=this._a48>>t&65535,this._a48=0):(this._a00=65535&(this._a00>>t|this._a16<<16-t),this._a16=65535&(this._a16>>t|this._a32<<16-t),this._a32=65535&(this._a32>>t|this._a48<<16-t),this._a48=this._a48>>t&65535),this},e.prototype.shiftLeft=e.prototype.shiftl=function(t,i){return(t%=64)>=48?(this._a48=this._a00<<t-48,this._a32=0,this._a16=0,this._a00=0):t>=32?(t-=32,this._a48=this._a16<<t|this._a00>>16-t,this._a32=this._a00<<t&65535,this._a16=0,this._a00=0):t>=16?(t-=16,this._a48=this._a32<<t|this._a16>>16-t,this._a32=65535&(this._a16<<t|this._a00>>16-t),this._a16=this._a00<<t&65535,this._a00=0):(this._a48=this._a48<<t|this._a32>>16-t,this._a32=65535&(this._a32<<t|this._a16>>16-t),this._a16=65535&(this._a16<<t|this._a00>>16-t),this._a00=this._a00<<t&65535),i||(this._a48&=65535),this},e.prototype.rotateLeft=e.prototype.rotl=function(t){if(0==(t%=64))return this;if(t>=32){var i=this._a00;if(this._a00=this._a32,this._a32=i,i=this._a48,this._a48=this._a16,this._a16=i,32==t)return this;t-=32}var h=this._a48<<16|this._a32,s=this._a16<<16|this._a00,e=h<<t|s>>>32-t,r=s<<t|h>>>32-t;return this._a00=65535&r,this._a16=r>>>16,this._a32=65535&e,this._a48=e>>>16,this},e.prototype.rotateRight=e.prototype.rotr=function(t){if(0==(t%=64))return this;if(t>=32){var i=this._a00;if(this._a00=this._a32,this._a32=i,i=this._a48,this._a48=this._a16,this._a16=i,32==t)return this;t-=32}var h=this._a48<<16|this._a32,s=this._a16<<16|this._a00,e=h>>>t|s<<32-t,r=s>>>t|h<<32-t;return this._a00=65535&r,this._a16=r>>>16,this._a32=65535&e,this._a48=e>>>16,this},e.prototype.clone=function(){return new e(this._a00,this._a16,this._a32,this._a48)},"undefined"!=typeof define&&define.amd?define([],(function(){return e})):void 0!==i&&i.exports?i.exports=e:t.UINT64=e}(t)})),r=h((function(t){t.UINT32=s(),t.UINT64=e()})),o=h((function(t,i){var h=r().UINT32;h.prototype.xxh_update=function(t,i){var h,r=e._low,o=e._high,a=t*r;h=a>>>16,h+=i*r,h&=65535,h+=t*o;var m=this._low+(65535&a),n=m>>>16,_=(n+=this._high+(65535&h))<<16|65535&m;n=(_=_<<13|_>>>19)>>>16,h=(a=(m=65535&_)*(r=s._low))>>>16,h+=n*r,h&=65535,h+=m*(o=s._high),this._low=65535&a,this._high=65535&h};var s=h("2654435761"),e=h("2246822519"),o=h("3266489917"),a=h("668265263"),m=h("374761393");function n(){return 2==arguments.length?new n(arguments[1]).update(arguments[0]).digest():this instanceof n?void _.call(this,arguments[0]):new n(arguments[0])}function _(t){return this.seed=t instanceof h?t.clone():h(t),this.v1=this.seed.clone().add(s).add(e),this.v2=this.seed.clone().add(e),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(s),this.total_len=0,this.memsize=0,this.memory=null,this}n.prototype.init=_,n.prototype.update=function(t){var i,h="string"==typeof t;h&&(t=function(t){for(var i=[],h=0,s=t.length;h<s;h++){var e=t.charCodeAt(h);e<128?i.push(e):e<2048?i.push(192|e>>6,128|63&e):e<55296||e>=57344?i.push(224|e>>12,128|e>>6&63,128|63&e):(h++,e=65536+((1023&e)<<10|1023&t.charCodeAt(h)),i.push(240|e>>18,128|e>>12&63,128|e>>6&63,128|63&e))}return new Uint8Array(i)}(t),h=!1,i=!0),"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer&&(i=!0,t=new Uint8Array(t));var s=0,e=t.length,r=s+e;if(0==e)return this;if(this.total_len+=e,0==this.memsize&&(this.memory=h?"":i?new Uint8Array(16):new Buffer(16)),this.memsize+e<16)return h?this.memory+=t:i?this.memory.set(t.subarray(0,e),this.memsize):t.copy(this.memory,this.memsize,0,e),this.memsize+=e,this;if(this.memsize>0){h?this.memory+=t.slice(0,16-this.memsize):i?this.memory.set(t.subarray(0,16-this.memsize),this.memsize):t.copy(this.memory,this.memsize,0,16-this.memsize);var o=0;h?(this.v1.xxh_update(this.memory.charCodeAt(o+1)<<8|this.memory.charCodeAt(o),this.memory.charCodeAt(o+3)<<8|this.memory.charCodeAt(o+2)),o+=4,this.v2.xxh_update(this.memory.charCodeAt(o+1)<<8|this.memory.charCodeAt(o),this.memory.charCodeAt(o+3)<<8|this.memory.charCodeAt(o+2)),o+=4,this.v3.xxh_update(this.memory.charCodeAt(o+1)<<8|this.memory.charCodeAt(o),this.memory.charCodeAt(o+3)<<8|this.memory.charCodeAt(o+2)),o+=4,this.v4.xxh_update(this.memory.charCodeAt(o+1)<<8|this.memory.charCodeAt(o),this.memory.charCodeAt(o+3)<<8|this.memory.charCodeAt(o+2))):(this.v1.xxh_update(this.memory[o+1]<<8|this.memory[o],this.memory[o+3]<<8|this.memory[o+2]),o+=4,this.v2.xxh_update(this.memory[o+1]<<8|this.memory[o],this.memory[o+3]<<8|this.memory[o+2]),o+=4,this.v3.xxh_update(this.memory[o+1]<<8|this.memory[o],this.memory[o+3]<<8|this.memory[o+2]),o+=4,this.v4.xxh_update(this.memory[o+1]<<8|this.memory[o],this.memory[o+3]<<8|this.memory[o+2])),s+=16-this.memsize,this.memsize=0,h&&(this.memory="")}if(s<=r-16){var a=r-16;do{h?(this.v1.xxh_update(t.charCodeAt(s+1)<<8|t.charCodeAt(s),t.charCodeAt(s+3)<<8|t.charCodeAt(s+2)),s+=4,this.v2.xxh_update(t.charCodeAt(s+1)<<8|t.charCodeAt(s),t.charCodeAt(s+3)<<8|t.charCodeAt(s+2)),s+=4,this.v3.xxh_update(t.charCodeAt(s+1)<<8|t.charCodeAt(s),t.charCodeAt(s+3)<<8|t.charCodeAt(s+2)),s+=4,this.v4.xxh_update(t.charCodeAt(s+1)<<8|t.charCodeAt(s),t.charCodeAt(s+3)<<8|t.charCodeAt(s+2))):(this.v1.xxh_update(t[s+1]<<8|t[s],t[s+3]<<8|t[s+2]),s+=4,this.v2.xxh_update(t[s+1]<<8|t[s],t[s+3]<<8|t[s+2]),s+=4,this.v3.xxh_update(t[s+1]<<8|t[s],t[s+3]<<8|t[s+2]),s+=4,this.v4.xxh_update(t[s+1]<<8|t[s],t[s+3]<<8|t[s+2])),s+=4}while(s<=a)}return s<r&&(h?this.memory+=t.slice(s):i?this.memory.set(t.subarray(s,r),this.memsize):t.copy(this.memory,this.memsize,s,r),this.memsize=r-s),this},n.prototype.digest=function(){var t,i,r=this.memory,n="string"==typeof r,_=0,l=this.memsize,d=new h;for((t=this.total_len>=16?this.v1.rotl(1).add(this.v2.rotl(7).add(this.v3.rotl(12).add(this.v4.rotl(18)))):this.seed.clone().add(m)).add(d.fromNumber(this.total_len));_<=l-4;)n?d.fromBits(r.charCodeAt(_+1)<<8|r.charCodeAt(_),r.charCodeAt(_+3)<<8|r.charCodeAt(_+2)):d.fromBits(r[_+1]<<8|r[_],r[_+3]<<8|r[_+2]),t.add(d.multiply(o)).rotl(17).multiply(a),_+=4;for(;_<l;)d.fromBits(n?r.charCodeAt(_++):r[_++],0),t.add(d.multiply(m)).rotl(11).multiply(s);return i=t.clone().shiftRight(15),t.xor(i).multiply(e),i=t.clone().shiftRight(13),t.xor(i).multiply(o),i=t.clone().shiftRight(16),t.xor(i),this.init(this.seed),t},i.exports=n})),a=h((function(t,i){var h=r().UINT64,s=h("11400714785074694791"),e=h("14029467366897019727"),o=h("1609587929392839161"),a=h("9650029242287828579"),m=h("2870177450012600261");function n(){return 2==arguments.length?new n(arguments[1]).update(arguments[0]).digest():this instanceof n?void _.call(this,arguments[0]):new n(arguments[0])}function _(t){return this.seed=t instanceof h?t.clone():h(t),this.v1=this.seed.clone().add(s).add(e),this.v2=this.seed.clone().add(e),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(s),this.total_len=0,this.memsize=0,this.memory=null,this}n.prototype.init=_,n.prototype.update=function(t){var i,r="string"==typeof t;r&&(t=function(t){for(var i=[],h=0,s=t.length;h<s;h++){var e=t.charCodeAt(h);e<128?i.push(e):e<2048?i.push(192|e>>6,128|63&e):e<55296||e>=57344?i.push(224|e>>12,128|e>>6&63,128|63&e):(h++,e=65536+((1023&e)<<10|1023&t.charCodeAt(h)),i.push(240|e>>18,128|e>>12&63,128|e>>6&63,128|63&e))}return new Uint8Array(i)}(t),r=!1,i=!0),"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer&&(i=!0,t=new Uint8Array(t));var o=0,a=t.length,m=o+a;if(0==a)return this;if(this.total_len+=a,0==this.memsize&&(this.memory=r?"":i?new Uint8Array(32):new Buffer(32)),this.memsize+a<32)return r?this.memory+=t:i?this.memory.set(t.subarray(0,a),this.memsize):t.copy(this.memory,this.memsize,0,a),this.memsize+=a,this;if(this.memsize>0){r?this.memory+=t.slice(0,32-this.memsize):i?this.memory.set(t.subarray(0,32-this.memsize),this.memsize):t.copy(this.memory,this.memsize,0,32-this.memsize);var n=0;if(r){var _=h(this.memory.charCodeAt(n+1)<<8|this.memory.charCodeAt(n),this.memory.charCodeAt(n+3)<<8|this.memory.charCodeAt(n+2),this.memory.charCodeAt(n+5)<<8|this.memory.charCodeAt(n+4),this.memory.charCodeAt(n+7)<<8|this.memory.charCodeAt(n+6));this.v1.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory.charCodeAt(n+1)<<8|this.memory.charCodeAt(n),this.memory.charCodeAt(n+3)<<8|this.memory.charCodeAt(n+2),this.memory.charCodeAt(n+5)<<8|this.memory.charCodeAt(n+4),this.memory.charCodeAt(n+7)<<8|this.memory.charCodeAt(n+6)),this.v2.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory.charCodeAt(n+1)<<8|this.memory.charCodeAt(n),this.memory.charCodeAt(n+3)<<8|this.memory.charCodeAt(n+2),this.memory.charCodeAt(n+5)<<8|this.memory.charCodeAt(n+4),this.memory.charCodeAt(n+7)<<8|this.memory.charCodeAt(n+6)),this.v3.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory.charCodeAt(n+1)<<8|this.memory.charCodeAt(n),this.memory.charCodeAt(n+3)<<8|this.memory.charCodeAt(n+2),this.memory.charCodeAt(n+5)<<8|this.memory.charCodeAt(n+4),this.memory.charCodeAt(n+7)<<8|this.memory.charCodeAt(n+6)),this.v4.add(_.multiply(e)).rotl(31).multiply(s)}else _=h(this.memory[n+1]<<8|this.memory[n],this.memory[n+3]<<8|this.memory[n+2],this.memory[n+5]<<8|this.memory[n+4],this.memory[n+7]<<8|this.memory[n+6]),this.v1.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory[n+1]<<8|this.memory[n],this.memory[n+3]<<8|this.memory[n+2],this.memory[n+5]<<8|this.memory[n+4],this.memory[n+7]<<8|this.memory[n+6]),this.v2.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory[n+1]<<8|this.memory[n],this.memory[n+3]<<8|this.memory[n+2],this.memory[n+5]<<8|this.memory[n+4],this.memory[n+7]<<8|this.memory[n+6]),this.v3.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory[n+1]<<8|this.memory[n],this.memory[n+3]<<8|this.memory[n+2],this.memory[n+5]<<8|this.memory[n+4],this.memory[n+7]<<8|this.memory[n+6]),this.v4.add(_.multiply(e)).rotl(31).multiply(s);o+=32-this.memsize,this.memsize=0,r&&(this.memory="")}if(o<=m-32){var l=m-32;do{r?(_=h(t.charCodeAt(o+1)<<8|t.charCodeAt(o),t.charCodeAt(o+3)<<8|t.charCodeAt(o+2),t.charCodeAt(o+5)<<8|t.charCodeAt(o+4),t.charCodeAt(o+7)<<8|t.charCodeAt(o+6)),this.v1.add(_.multiply(e)).rotl(31).multiply(s),o+=8,_=h(t.charCodeAt(o+1)<<8|t.charCodeAt(o),t.charCodeAt(o+3)<<8|t.charCodeAt(o+2),t.charCodeAt(o+5)<<8|t.charCodeAt(o+4),t.charCodeAt(o+7)<<8|t.charCodeAt(o+6)),this.v2.add(_.multiply(e)).rotl(31).multiply(s),o+=8,_=h(t.charCodeAt(o+1)<<8|t.charCodeAt(o),t.charCodeAt(o+3)<<8|t.charCodeAt(o+2),t.charCodeAt(o+5)<<8|t.charCodeAt(o+4),t.charCodeAt(o+7)<<8|t.charCodeAt(o+6)),this.v3.add(_.multiply(e)).rotl(31).multiply(s),o+=8,_=h(t.charCodeAt(o+1)<<8|t.charCodeAt(o),t.charCodeAt(o+3)<<8|t.charCodeAt(o+2),t.charCodeAt(o+5)<<8|t.charCodeAt(o+4),t.charCodeAt(o+7)<<8|t.charCodeAt(o+6)),this.v4.add(_.multiply(e)).rotl(31).multiply(s)):(_=h(t[o+1]<<8|t[o],t[o+3]<<8|t[o+2],t[o+5]<<8|t[o+4],t[o+7]<<8|t[o+6]),this.v1.add(_.multiply(e)).rotl(31).multiply(s),_=h(t[(o+=8)+1]<<8|t[o],t[o+3]<<8|t[o+2],t[o+5]<<8|t[o+4],t[o+7]<<8|t[o+6]),this.v2.add(_.multiply(e)).rotl(31).multiply(s),_=h(t[(o+=8)+1]<<8|t[o],t[o+3]<<8|t[o+2],t[o+5]<<8|t[o+4],t[o+7]<<8|t[o+6]),this.v3.add(_.multiply(e)).rotl(31).multiply(s),_=h(t[(o+=8)+1]<<8|t[o],t[o+3]<<8|t[o+2],t[o+5]<<8|t[o+4],t[o+7]<<8|t[o+6]),this.v4.add(_.multiply(e)).rotl(31).multiply(s)),o+=8}while(o<=l)}return o<m&&(r?this.memory+=t.slice(o):i?this.memory.set(t.subarray(o,m),this.memsize):t.copy(this.memory,this.memsize,o,m),this.memsize=m-o),this},n.prototype.digest=function(){var t,i,r=this.memory,n="string"==typeof r,_=0,l=this.memsize,d=new h;for(this.total_len>=32?((t=this.v1.clone().rotl(1)).add(this.v2.clone().rotl(7)),t.add(this.v3.clone().rotl(12)),t.add(this.v4.clone().rotl(18)),t.xor(this.v1.multiply(e).rotl(31).multiply(s)),t.multiply(s).add(a),t.xor(this.v2.multiply(e).rotl(31).multiply(s)),t.multiply(s).add(a),t.xor(this.v3.multiply(e).rotl(31).multiply(s)),t.multiply(s).add(a),t.xor(this.v4.multiply(e).rotl(31).multiply(s)),t.multiply(s).add(a)):t=this.seed.clone().add(m),t.add(d.fromNumber(this.total_len));_<=l-8;)n?d.fromBits(r.charCodeAt(_+1)<<8|r.charCodeAt(_),r.charCodeAt(_+3)<<8|r.charCodeAt(_+2),r.charCodeAt(_+5)<<8|r.charCodeAt(_+4),r.charCodeAt(_+7)<<8|r.charCodeAt(_+6)):d.fromBits(r[_+1]<<8|r[_],r[_+3]<<8|r[_+2],r[_+5]<<8|r[_+4],r[_+7]<<8|r[_+6]),d.multiply(e).rotl(31).multiply(s),t.xor(d).rotl(27).multiply(s).add(a),_+=8;for(_+4<=l&&(n?d.fromBits(r.charCodeAt(_+1)<<8|r.charCodeAt(_),r.charCodeAt(_+3)<<8|r.charCodeAt(_+2),0,0):d.fromBits(r[_+1]<<8|r[_],r[_+3]<<8|r[_+2],0,0),t.xor(d.multiply(s)).rotl(23).multiply(e).add(o),_+=4);_<l;)d.fromBits(n?r.charCodeAt(_++):r[_++],0,0,0),t.xor(d.multiply(m)).rotl(11).multiply(s);return i=t.clone().shiftRight(33),t.xor(i).multiply(e),i=t.clone().shiftRight(29),t.xor(i).multiply(o),i=t.clone().shiftRight(32),t.xor(i),this.init(this.seed),t},i.exports=n})),t("default",h((function(t,i){i.exports={h32:o(),h64:a()}}))())}}}));
1
+ System.register(["./index-legacy-CCOgiwQJ.js"],(function(t,i){var h,s,e,r,o,a;return{setters:[function(t){h=t.t}],execute:function(){s=h((function(t,i){!function(t){function h(t,i){return this instanceof h?(this._low=0,this._high=0,this.remainder=null,void 0===i?e.call(this,t):"string"==typeof t?r.call(this,t,i):void s.call(this,t,i)):new h(t,i)}function s(t,i){return this._low=0|t,this._high=0|i,this}function e(t){return this._low=65535&t,this._high=t>>>16,this}function r(t,i){var h=parseInt(t,i||10);return this._low=65535&h,this._high=h>>>16,this}h(Math.pow(36,5)),h(Math.pow(16,7)),h(Math.pow(10,9)),h(Math.pow(2,30)),h(36),h(16),h(10),h(2),h.prototype.fromBits=s,h.prototype.fromNumber=e,h.prototype.fromString=r,h.prototype.toNumber=function(){return 65536*this._high+this._low},h.prototype.toString=function(t){return this.toNumber().toString(t||10)},h.prototype.add=function(t){var i=this._low+t._low,h=i>>>16;return h+=this._high+t._high,this._low=65535&i,this._high=65535&h,this},h.prototype.subtract=function(t){return this.add(t.clone().negate())},h.prototype.multiply=function(t){var i,h=this._high,s=this._low,e=t._high,r=t._low,o=s*r;return i=o>>>16,i+=h*r,i&=65535,i+=s*e,this._low=65535&o,this._high=65535&i,this},h.prototype.div=function(t){if(0==t._low&&0==t._high)throw Error("division by zero");if(0==t._high&&1==t._low)return this.remainder=new h(0),this;if(t.gt(this))return this.remainder=this.clone(),this._low=0,this._high=0,this;if(this.eq(t))return this.remainder=new h(0),this._low=1,this._high=0,this;for(var i=t.clone(),s=-1;!this.lt(i);)i.shiftLeft(1,!0),s++;for(this.remainder=this.clone(),this._low=0,this._high=0;s>=0;s--)i.shiftRight(1),this.remainder.lt(i)||(this.remainder.subtract(i),s>=16?this._high|=1<<s-16:this._low|=1<<s);return this},h.prototype.negate=function(){var t=1+(65535&~this._low);return this._low=65535&t,this._high=~this._high+(t>>>16)&65535,this},h.prototype.equals=h.prototype.eq=function(t){return this._low==t._low&&this._high==t._high},h.prototype.greaterThan=h.prototype.gt=function(t){return this._high>t._high||!(this._high<t._high)&&this._low>t._low},h.prototype.lessThan=h.prototype.lt=function(t){return this._high<t._high||!(this._high>t._high)&&this._low<t._low},h.prototype.or=function(t){return this._low|=t._low,this._high|=t._high,this},h.prototype.and=function(t){return this._low&=t._low,this._high&=t._high,this},h.prototype.not=function(){return this._low=65535&~this._low,this._high=65535&~this._high,this},h.prototype.xor=function(t){return this._low^=t._low,this._high^=t._high,this},h.prototype.shiftRight=h.prototype.shiftr=function(t){return t>16?(this._low=this._high>>t-16,this._high=0):16==t?(this._low=this._high,this._high=0):(this._low=this._low>>t|this._high<<16-t&65535,this._high>>=t),this},h.prototype.shiftLeft=h.prototype.shiftl=function(t,i){return t>16?(this._high=this._low<<t-16,this._low=0,i||(this._high&=65535)):16==t?(this._high=this._low,this._low=0):(this._high=this._high<<t|this._low>>16-t,this._low=this._low<<t&65535,i||(this._high&=65535)),this},h.prototype.rotateLeft=h.prototype.rotl=function(t){var i=this._high<<16|this._low;return i=i<<t|i>>>32-t,this._low=65535&i,this._high=i>>>16,this},h.prototype.rotateRight=h.prototype.rotr=function(t){var i=this._high<<16|this._low;return i=i>>>t|i<<32-t,this._low=65535&i,this._high=i>>>16,this},h.prototype.clone=function(){return new h(this._low,this._high)},"undefined"!=typeof define&&define.amd?define([],(function(){return h})):void 0!==i&&i.exports?i.exports=h:t.UINT32=h}(t)})),e=h((function(t,i){!function(t){var h={16:e(Math.pow(16,5)),10:e(Math.pow(10,5)),2:e(Math.pow(2,5))},s={16:e(16),10:e(10),2:e(2)};function e(t,i,h,s){return this instanceof e?(this.remainder=null,"string"==typeof t?a.call(this,t,i):void 0===i?o.call(this,t):void r.apply(this,arguments)):new e(t,i,h,s)}function r(t,i,h,s){return void 0===h?(this._a00=65535&t,this._a16=t>>>16,this._a32=65535&i,this._a48=i>>>16,this):(this._a00=0|t,this._a16=0|i,this._a32=0|h,this._a48=0|s,this)}function o(t){return this._a00=65535&t,this._a16=t>>>16,this._a32=0,this._a48=0,this}function a(t,i){i=i||10,this._a00=0,this._a16=0,this._a32=0,this._a48=0;for(var s=h[i]||new e(Math.pow(i,5)),r=0,o=t.length;r<o;r+=5){var a=Math.min(5,o-r),m=parseInt(t.slice(r,r+a),i);this.multiply(a<5?new e(Math.pow(i,a)):s).add(new e(m))}return this}e.prototype.fromBits=r,e.prototype.fromNumber=o,e.prototype.fromString=a,e.prototype.toNumber=function(){return 65536*this._a16+this._a00},e.prototype.toString=function(t){var i=s[t=t||10]||new e(t);if(!this.gt(i))return this.toNumber().toString(t);for(var h=this.clone(),r=new Array(64),o=63;o>=0&&(h.div(i),r[o]=h.remainder.toNumber().toString(t),h.gt(i));o--);return r[o-1]=h.toNumber().toString(t),r.join("")},e.prototype.add=function(t){var i=this._a00+t._a00,h=i>>>16,s=(h+=this._a16+t._a16)>>>16,e=(s+=this._a32+t._a32)>>>16;return e+=this._a48+t._a48,this._a00=65535&i,this._a16=65535&h,this._a32=65535&s,this._a48=65535&e,this},e.prototype.subtract=function(t){return this.add(t.clone().negate())},e.prototype.multiply=function(t){var i=this._a00,h=this._a16,s=this._a32,e=this._a48,r=t._a00,o=t._a16,a=t._a32,m=i*r,n=m>>>16,_=(n+=i*o)>>>16;n&=65535,_+=(n+=h*r)>>>16;var l=(_+=i*a)>>>16;return _&=65535,l+=(_+=h*o)>>>16,_&=65535,l+=(_+=s*r)>>>16,l+=i*t._a48,l&=65535,l+=h*a,l&=65535,l+=s*o,l&=65535,l+=e*r,this._a00=65535&m,this._a16=65535&n,this._a32=65535&_,this._a48=65535&l,this},e.prototype.div=function(t){if(0==t._a16&&0==t._a32&&0==t._a48){if(0==t._a00)throw Error("division by zero");if(1==t._a00)return this.remainder=new e(0),this}if(t.gt(this))return this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0,this;if(this.eq(t))return this.remainder=new e(0),this._a00=1,this._a16=0,this._a32=0,this._a48=0,this;for(var i=t.clone(),h=-1;!this.lt(i);)i.shiftLeft(1,!0),h++;for(this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0;h>=0;h--)i.shiftRight(1),this.remainder.lt(i)||(this.remainder.subtract(i),h>=48?this._a48|=1<<h-48:h>=32?this._a32|=1<<h-32:h>=16?this._a16|=1<<h-16:this._a00|=1<<h);return this},e.prototype.negate=function(){var t=1+(65535&~this._a00);return this._a00=65535&t,t=(65535&~this._a16)+(t>>>16),this._a16=65535&t,t=(65535&~this._a32)+(t>>>16),this._a32=65535&t,this._a48=~this._a48+(t>>>16)&65535,this},e.prototype.equals=e.prototype.eq=function(t){return this._a48==t._a48&&this._a00==t._a00&&this._a32==t._a32&&this._a16==t._a16},e.prototype.greaterThan=e.prototype.gt=function(t){return this._a48>t._a48||!(this._a48<t._a48)&&(this._a32>t._a32||!(this._a32<t._a32)&&(this._a16>t._a16||!(this._a16<t._a16)&&this._a00>t._a00))},e.prototype.lessThan=e.prototype.lt=function(t){return this._a48<t._a48||!(this._a48>t._a48)&&(this._a32<t._a32||!(this._a32>t._a32)&&(this._a16<t._a16||!(this._a16>t._a16)&&this._a00<t._a00))},e.prototype.or=function(t){return this._a00|=t._a00,this._a16|=t._a16,this._a32|=t._a32,this._a48|=t._a48,this},e.prototype.and=function(t){return this._a00&=t._a00,this._a16&=t._a16,this._a32&=t._a32,this._a48&=t._a48,this},e.prototype.xor=function(t){return this._a00^=t._a00,this._a16^=t._a16,this._a32^=t._a32,this._a48^=t._a48,this},e.prototype.not=function(){return this._a00=65535&~this._a00,this._a16=65535&~this._a16,this._a32=65535&~this._a32,this._a48=65535&~this._a48,this},e.prototype.shiftRight=e.prototype.shiftr=function(t){return(t%=64)>=48?(this._a00=this._a48>>t-48,this._a16=0,this._a32=0,this._a48=0):t>=32?(t-=32,this._a00=65535&(this._a32>>t|this._a48<<16-t),this._a16=this._a48>>t&65535,this._a32=0,this._a48=0):t>=16?(t-=16,this._a00=65535&(this._a16>>t|this._a32<<16-t),this._a16=65535&(this._a32>>t|this._a48<<16-t),this._a32=this._a48>>t&65535,this._a48=0):(this._a00=65535&(this._a00>>t|this._a16<<16-t),this._a16=65535&(this._a16>>t|this._a32<<16-t),this._a32=65535&(this._a32>>t|this._a48<<16-t),this._a48=this._a48>>t&65535),this},e.prototype.shiftLeft=e.prototype.shiftl=function(t,i){return(t%=64)>=48?(this._a48=this._a00<<t-48,this._a32=0,this._a16=0,this._a00=0):t>=32?(t-=32,this._a48=this._a16<<t|this._a00>>16-t,this._a32=this._a00<<t&65535,this._a16=0,this._a00=0):t>=16?(t-=16,this._a48=this._a32<<t|this._a16>>16-t,this._a32=65535&(this._a16<<t|this._a00>>16-t),this._a16=this._a00<<t&65535,this._a00=0):(this._a48=this._a48<<t|this._a32>>16-t,this._a32=65535&(this._a32<<t|this._a16>>16-t),this._a16=65535&(this._a16<<t|this._a00>>16-t),this._a00=this._a00<<t&65535),i||(this._a48&=65535),this},e.prototype.rotateLeft=e.prototype.rotl=function(t){if(0==(t%=64))return this;if(t>=32){var i=this._a00;if(this._a00=this._a32,this._a32=i,i=this._a48,this._a48=this._a16,this._a16=i,32==t)return this;t-=32}var h=this._a48<<16|this._a32,s=this._a16<<16|this._a00,e=h<<t|s>>>32-t,r=s<<t|h>>>32-t;return this._a00=65535&r,this._a16=r>>>16,this._a32=65535&e,this._a48=e>>>16,this},e.prototype.rotateRight=e.prototype.rotr=function(t){if(0==(t%=64))return this;if(t>=32){var i=this._a00;if(this._a00=this._a32,this._a32=i,i=this._a48,this._a48=this._a16,this._a16=i,32==t)return this;t-=32}var h=this._a48<<16|this._a32,s=this._a16<<16|this._a00,e=h>>>t|s<<32-t,r=s>>>t|h<<32-t;return this._a00=65535&r,this._a16=r>>>16,this._a32=65535&e,this._a48=e>>>16,this},e.prototype.clone=function(){return new e(this._a00,this._a16,this._a32,this._a48)},"undefined"!=typeof define&&define.amd?define([],(function(){return e})):void 0!==i&&i.exports?i.exports=e:t.UINT64=e}(t)})),r=h((function(t){t.UINT32=s(),t.UINT64=e()})),o=h((function(t,i){var h=r().UINT32;h.prototype.xxh_update=function(t,i){var h,r=e._low,o=e._high,a=t*r;h=a>>>16,h+=i*r,h&=65535,h+=t*o;var m=this._low+(65535&a),n=m>>>16,_=(n+=this._high+(65535&h))<<16|65535&m;n=(_=_<<13|_>>>19)>>>16,h=(a=(m=65535&_)*(r=s._low))>>>16,h+=n*r,h&=65535,h+=m*(o=s._high),this._low=65535&a,this._high=65535&h};var s=h("2654435761"),e=h("2246822519"),o=h("3266489917"),a=h("668265263"),m=h("374761393");function n(){return 2==arguments.length?new n(arguments[1]).update(arguments[0]).digest():this instanceof n?void _.call(this,arguments[0]):new n(arguments[0])}function _(t){return this.seed=t instanceof h?t.clone():h(t),this.v1=this.seed.clone().add(s).add(e),this.v2=this.seed.clone().add(e),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(s),this.total_len=0,this.memsize=0,this.memory=null,this}n.prototype.init=_,n.prototype.update=function(t){var i,h="string"==typeof t;h&&(t=function(t){for(var i=[],h=0,s=t.length;h<s;h++){var e=t.charCodeAt(h);e<128?i.push(e):e<2048?i.push(192|e>>6,128|63&e):e<55296||e>=57344?i.push(224|e>>12,128|e>>6&63,128|63&e):(h++,e=65536+((1023&e)<<10|1023&t.charCodeAt(h)),i.push(240|e>>18,128|e>>12&63,128|e>>6&63,128|63&e))}return new Uint8Array(i)}(t),h=!1,i=!0),"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer&&(i=!0,t=new Uint8Array(t));var s=0,e=t.length,r=s+e;if(0==e)return this;if(this.total_len+=e,0==this.memsize&&(this.memory=h?"":i?new Uint8Array(16):new Buffer(16)),this.memsize+e<16)return h?this.memory+=t:i?this.memory.set(t.subarray(0,e),this.memsize):t.copy(this.memory,this.memsize,0,e),this.memsize+=e,this;if(this.memsize>0){h?this.memory+=t.slice(0,16-this.memsize):i?this.memory.set(t.subarray(0,16-this.memsize),this.memsize):t.copy(this.memory,this.memsize,0,16-this.memsize);var o=0;h?(this.v1.xxh_update(this.memory.charCodeAt(o+1)<<8|this.memory.charCodeAt(o),this.memory.charCodeAt(o+3)<<8|this.memory.charCodeAt(o+2)),o+=4,this.v2.xxh_update(this.memory.charCodeAt(o+1)<<8|this.memory.charCodeAt(o),this.memory.charCodeAt(o+3)<<8|this.memory.charCodeAt(o+2)),o+=4,this.v3.xxh_update(this.memory.charCodeAt(o+1)<<8|this.memory.charCodeAt(o),this.memory.charCodeAt(o+3)<<8|this.memory.charCodeAt(o+2)),o+=4,this.v4.xxh_update(this.memory.charCodeAt(o+1)<<8|this.memory.charCodeAt(o),this.memory.charCodeAt(o+3)<<8|this.memory.charCodeAt(o+2))):(this.v1.xxh_update(this.memory[o+1]<<8|this.memory[o],this.memory[o+3]<<8|this.memory[o+2]),o+=4,this.v2.xxh_update(this.memory[o+1]<<8|this.memory[o],this.memory[o+3]<<8|this.memory[o+2]),o+=4,this.v3.xxh_update(this.memory[o+1]<<8|this.memory[o],this.memory[o+3]<<8|this.memory[o+2]),o+=4,this.v4.xxh_update(this.memory[o+1]<<8|this.memory[o],this.memory[o+3]<<8|this.memory[o+2])),s+=16-this.memsize,this.memsize=0,h&&(this.memory="")}if(s<=r-16){var a=r-16;do{h?(this.v1.xxh_update(t.charCodeAt(s+1)<<8|t.charCodeAt(s),t.charCodeAt(s+3)<<8|t.charCodeAt(s+2)),s+=4,this.v2.xxh_update(t.charCodeAt(s+1)<<8|t.charCodeAt(s),t.charCodeAt(s+3)<<8|t.charCodeAt(s+2)),s+=4,this.v3.xxh_update(t.charCodeAt(s+1)<<8|t.charCodeAt(s),t.charCodeAt(s+3)<<8|t.charCodeAt(s+2)),s+=4,this.v4.xxh_update(t.charCodeAt(s+1)<<8|t.charCodeAt(s),t.charCodeAt(s+3)<<8|t.charCodeAt(s+2))):(this.v1.xxh_update(t[s+1]<<8|t[s],t[s+3]<<8|t[s+2]),s+=4,this.v2.xxh_update(t[s+1]<<8|t[s],t[s+3]<<8|t[s+2]),s+=4,this.v3.xxh_update(t[s+1]<<8|t[s],t[s+3]<<8|t[s+2]),s+=4,this.v4.xxh_update(t[s+1]<<8|t[s],t[s+3]<<8|t[s+2])),s+=4}while(s<=a)}return s<r&&(h?this.memory+=t.slice(s):i?this.memory.set(t.subarray(s,r),this.memsize):t.copy(this.memory,this.memsize,s,r),this.memsize=r-s),this},n.prototype.digest=function(){var t,i,r=this.memory,n="string"==typeof r,_=0,l=this.memsize,d=new h;for((t=this.total_len>=16?this.v1.rotl(1).add(this.v2.rotl(7).add(this.v3.rotl(12).add(this.v4.rotl(18)))):this.seed.clone().add(m)).add(d.fromNumber(this.total_len));_<=l-4;)n?d.fromBits(r.charCodeAt(_+1)<<8|r.charCodeAt(_),r.charCodeAt(_+3)<<8|r.charCodeAt(_+2)):d.fromBits(r[_+1]<<8|r[_],r[_+3]<<8|r[_+2]),t.add(d.multiply(o)).rotl(17).multiply(a),_+=4;for(;_<l;)d.fromBits(n?r.charCodeAt(_++):r[_++],0),t.add(d.multiply(m)).rotl(11).multiply(s);return i=t.clone().shiftRight(15),t.xor(i).multiply(e),i=t.clone().shiftRight(13),t.xor(i).multiply(o),i=t.clone().shiftRight(16),t.xor(i),this.init(this.seed),t},i.exports=n})),a=h((function(t,i){var h=r().UINT64,s=h("11400714785074694791"),e=h("14029467366897019727"),o=h("1609587929392839161"),a=h("9650029242287828579"),m=h("2870177450012600261");function n(){return 2==arguments.length?new n(arguments[1]).update(arguments[0]).digest():this instanceof n?void _.call(this,arguments[0]):new n(arguments[0])}function _(t){return this.seed=t instanceof h?t.clone():h(t),this.v1=this.seed.clone().add(s).add(e),this.v2=this.seed.clone().add(e),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(s),this.total_len=0,this.memsize=0,this.memory=null,this}n.prototype.init=_,n.prototype.update=function(t){var i,r="string"==typeof t;r&&(t=function(t){for(var i=[],h=0,s=t.length;h<s;h++){var e=t.charCodeAt(h);e<128?i.push(e):e<2048?i.push(192|e>>6,128|63&e):e<55296||e>=57344?i.push(224|e>>12,128|e>>6&63,128|63&e):(h++,e=65536+((1023&e)<<10|1023&t.charCodeAt(h)),i.push(240|e>>18,128|e>>12&63,128|e>>6&63,128|63&e))}return new Uint8Array(i)}(t),r=!1,i=!0),"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer&&(i=!0,t=new Uint8Array(t));var o=0,a=t.length,m=o+a;if(0==a)return this;if(this.total_len+=a,0==this.memsize&&(this.memory=r?"":i?new Uint8Array(32):new Buffer(32)),this.memsize+a<32)return r?this.memory+=t:i?this.memory.set(t.subarray(0,a),this.memsize):t.copy(this.memory,this.memsize,0,a),this.memsize+=a,this;if(this.memsize>0){r?this.memory+=t.slice(0,32-this.memsize):i?this.memory.set(t.subarray(0,32-this.memsize),this.memsize):t.copy(this.memory,this.memsize,0,32-this.memsize);var n=0;if(r){var _=h(this.memory.charCodeAt(n+1)<<8|this.memory.charCodeAt(n),this.memory.charCodeAt(n+3)<<8|this.memory.charCodeAt(n+2),this.memory.charCodeAt(n+5)<<8|this.memory.charCodeAt(n+4),this.memory.charCodeAt(n+7)<<8|this.memory.charCodeAt(n+6));this.v1.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory.charCodeAt(n+1)<<8|this.memory.charCodeAt(n),this.memory.charCodeAt(n+3)<<8|this.memory.charCodeAt(n+2),this.memory.charCodeAt(n+5)<<8|this.memory.charCodeAt(n+4),this.memory.charCodeAt(n+7)<<8|this.memory.charCodeAt(n+6)),this.v2.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory.charCodeAt(n+1)<<8|this.memory.charCodeAt(n),this.memory.charCodeAt(n+3)<<8|this.memory.charCodeAt(n+2),this.memory.charCodeAt(n+5)<<8|this.memory.charCodeAt(n+4),this.memory.charCodeAt(n+7)<<8|this.memory.charCodeAt(n+6)),this.v3.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory.charCodeAt(n+1)<<8|this.memory.charCodeAt(n),this.memory.charCodeAt(n+3)<<8|this.memory.charCodeAt(n+2),this.memory.charCodeAt(n+5)<<8|this.memory.charCodeAt(n+4),this.memory.charCodeAt(n+7)<<8|this.memory.charCodeAt(n+6)),this.v4.add(_.multiply(e)).rotl(31).multiply(s)}else _=h(this.memory[n+1]<<8|this.memory[n],this.memory[n+3]<<8|this.memory[n+2],this.memory[n+5]<<8|this.memory[n+4],this.memory[n+7]<<8|this.memory[n+6]),this.v1.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory[n+1]<<8|this.memory[n],this.memory[n+3]<<8|this.memory[n+2],this.memory[n+5]<<8|this.memory[n+4],this.memory[n+7]<<8|this.memory[n+6]),this.v2.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory[n+1]<<8|this.memory[n],this.memory[n+3]<<8|this.memory[n+2],this.memory[n+5]<<8|this.memory[n+4],this.memory[n+7]<<8|this.memory[n+6]),this.v3.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory[n+1]<<8|this.memory[n],this.memory[n+3]<<8|this.memory[n+2],this.memory[n+5]<<8|this.memory[n+4],this.memory[n+7]<<8|this.memory[n+6]),this.v4.add(_.multiply(e)).rotl(31).multiply(s);o+=32-this.memsize,this.memsize=0,r&&(this.memory="")}if(o<=m-32){var l=m-32;do{r?(_=h(t.charCodeAt(o+1)<<8|t.charCodeAt(o),t.charCodeAt(o+3)<<8|t.charCodeAt(o+2),t.charCodeAt(o+5)<<8|t.charCodeAt(o+4),t.charCodeAt(o+7)<<8|t.charCodeAt(o+6)),this.v1.add(_.multiply(e)).rotl(31).multiply(s),o+=8,_=h(t.charCodeAt(o+1)<<8|t.charCodeAt(o),t.charCodeAt(o+3)<<8|t.charCodeAt(o+2),t.charCodeAt(o+5)<<8|t.charCodeAt(o+4),t.charCodeAt(o+7)<<8|t.charCodeAt(o+6)),this.v2.add(_.multiply(e)).rotl(31).multiply(s),o+=8,_=h(t.charCodeAt(o+1)<<8|t.charCodeAt(o),t.charCodeAt(o+3)<<8|t.charCodeAt(o+2),t.charCodeAt(o+5)<<8|t.charCodeAt(o+4),t.charCodeAt(o+7)<<8|t.charCodeAt(o+6)),this.v3.add(_.multiply(e)).rotl(31).multiply(s),o+=8,_=h(t.charCodeAt(o+1)<<8|t.charCodeAt(o),t.charCodeAt(o+3)<<8|t.charCodeAt(o+2),t.charCodeAt(o+5)<<8|t.charCodeAt(o+4),t.charCodeAt(o+7)<<8|t.charCodeAt(o+6)),this.v4.add(_.multiply(e)).rotl(31).multiply(s)):(_=h(t[o+1]<<8|t[o],t[o+3]<<8|t[o+2],t[o+5]<<8|t[o+4],t[o+7]<<8|t[o+6]),this.v1.add(_.multiply(e)).rotl(31).multiply(s),_=h(t[(o+=8)+1]<<8|t[o],t[o+3]<<8|t[o+2],t[o+5]<<8|t[o+4],t[o+7]<<8|t[o+6]),this.v2.add(_.multiply(e)).rotl(31).multiply(s),_=h(t[(o+=8)+1]<<8|t[o],t[o+3]<<8|t[o+2],t[o+5]<<8|t[o+4],t[o+7]<<8|t[o+6]),this.v3.add(_.multiply(e)).rotl(31).multiply(s),_=h(t[(o+=8)+1]<<8|t[o],t[o+3]<<8|t[o+2],t[o+5]<<8|t[o+4],t[o+7]<<8|t[o+6]),this.v4.add(_.multiply(e)).rotl(31).multiply(s)),o+=8}while(o<=l)}return o<m&&(r?this.memory+=t.slice(o):i?this.memory.set(t.subarray(o,m),this.memsize):t.copy(this.memory,this.memsize,o,m),this.memsize=m-o),this},n.prototype.digest=function(){var t,i,r=this.memory,n="string"==typeof r,_=0,l=this.memsize,d=new h;for(this.total_len>=32?((t=this.v1.clone().rotl(1)).add(this.v2.clone().rotl(7)),t.add(this.v3.clone().rotl(12)),t.add(this.v4.clone().rotl(18)),t.xor(this.v1.multiply(e).rotl(31).multiply(s)),t.multiply(s).add(a),t.xor(this.v2.multiply(e).rotl(31).multiply(s)),t.multiply(s).add(a),t.xor(this.v3.multiply(e).rotl(31).multiply(s)),t.multiply(s).add(a),t.xor(this.v4.multiply(e).rotl(31).multiply(s)),t.multiply(s).add(a)):t=this.seed.clone().add(m),t.add(d.fromNumber(this.total_len));_<=l-8;)n?d.fromBits(r.charCodeAt(_+1)<<8|r.charCodeAt(_),r.charCodeAt(_+3)<<8|r.charCodeAt(_+2),r.charCodeAt(_+5)<<8|r.charCodeAt(_+4),r.charCodeAt(_+7)<<8|r.charCodeAt(_+6)):d.fromBits(r[_+1]<<8|r[_],r[_+3]<<8|r[_+2],r[_+5]<<8|r[_+4],r[_+7]<<8|r[_+6]),d.multiply(e).rotl(31).multiply(s),t.xor(d).rotl(27).multiply(s).add(a),_+=8;for(_+4<=l&&(n?d.fromBits(r.charCodeAt(_+1)<<8|r.charCodeAt(_),r.charCodeAt(_+3)<<8|r.charCodeAt(_+2),0,0):d.fromBits(r[_+1]<<8|r[_],r[_+3]<<8|r[_+2],0,0),t.xor(d.multiply(s)).rotl(23).multiply(e).add(o),_+=4);_<l;)d.fromBits(n?r.charCodeAt(_++):r[_++],0,0,0),t.xor(d.multiply(m)).rotl(11).multiply(s);return i=t.clone().shiftRight(33),t.xor(i).multiply(e),i=t.clone().shiftRight(29),t.xor(i).multiply(o),i=t.clone().shiftRight(32),t.xor(i),this.init(this.seed),t},i.exports=n})),t("default",h((function(t,i){i.exports={h32:o(),h64:a()}}))())}}}));
@@ -1 +1 @@
1
- System.register(["./index-legacy-DKhdXq5m.js"],(function(h,t){var i;return{setters:[function(h){i=h.t}],execute:function(){h("default",i((function(h,t){!function(){var h="input is invalid type",i="object"==typeof window,s=i?window:{};s.JS_SHA512_NO_WINDOW&&(i=!1);var e=!i&&"object"==typeof self;!s.JS_SHA512_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node?s=global:e&&(s=self);var r=!s.JS_SHA512_NO_COMMON_JS&&"object"==typeof t&&t.exports,n="function"==typeof define&&define.amd,o=!s.JS_SHA512_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,a="0123456789abcdef".split(""),l=[-2147483648,8388608,32768,128],f=[24,16,8,0],c=[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],u=["hex","array","digest","arrayBuffer"],y=[];!s.JS_SHA512_NO_NODE_JS&&Array.isArray||(Array.isArray=function(h){return"[object Array]"===Object.prototype.toString.call(h)}),!o||!s.JS_SHA512_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(h){return"object"==typeof h&&h.buffer&&h.buffer.constructor===ArrayBuffer});var p=function(h,t){return function(i){return new A(t,!0).update(i)[h]()}},d=function(h){var t=p("hex",h);t.create=function(){return new A(h)},t.update=function(h){return t.create().update(h)};for(var i=0;i<u.length;++i){var s=u[i];t[s]=p(s,h)}return t},b=function(h,t){return function(i,s){return new v(i,t,!0).update(s)[h]()}},w=function(h){var t=b("hex",h);t.create=function(t){return new v(t,h)},t.update=function(h,i){return t.create(h).update(i)};for(var i=0;i<u.length;++i){var s=u[i];t[s]=b(s,h)}return t};function A(h,t){t?(y[0]=y[1]=y[2]=y[3]=y[4]=y[5]=y[6]=y[7]=y[8]=y[9]=y[10]=y[11]=y[12]=y[13]=y[14]=y[15]=y[16]=y[17]=y[18]=y[19]=y[20]=y[21]=y[22]=y[23]=y[24]=y[25]=y[26]=y[27]=y[28]=y[29]=y[30]=y[31]=y[32]=0,this.blocks=y):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],384==h?(this.h0h=3418070365,this.h0l=3238371032,this.h1h=1654270250,this.h1l=914150663,this.h2h=2438529370,this.h2l=812702999,this.h3h=355462360,this.h3l=4144912697,this.h4h=1731405415,this.h4l=4290775857,this.h5h=2394180231,this.h5l=1750603025,this.h6h=3675008525,this.h6l=1694076839,this.h7h=1203062813,this.h7l=3204075428):256==h?(this.h0h=573645204,this.h0l=4230739756,this.h1h=2673172387,this.h1l=3360449730,this.h2h=596883563,this.h2l=1867755857,this.h3h=2520282905,this.h3l=1497426621,this.h4h=2519219938,this.h4l=2827943907,this.h5h=3193839141,this.h5l=1401305490,this.h6h=721525244,this.h6l=746961066,this.h7h=246885852,this.h7l=2177182882):224==h?(this.h0h=2352822216,this.h0l=424955298,this.h1h=1944164710,this.h1l=2312950998,this.h2h=502970286,this.h2l=855612546,this.h3h=1738396948,this.h3l=1479516111,this.h4h=258812777,this.h4l=2077511080,this.h5h=2011393907,this.h5l=79989058,this.h6h=1067287976,this.h6l=1780299464,this.h7h=286451373,this.h7l=2446758561):(this.h0h=1779033703,this.h0l=4089235720,this.h1h=3144134277,this.h1l=2227873595,this.h2h=1013904242,this.h2l=4271175723,this.h3h=2773480762,this.h3l=1595750129,this.h4h=1359893119,this.h4l=2917565137,this.h5h=2600822924,this.h5l=725511199,this.h6h=528734635,this.h6l=4215389547,this.h7h=1541459225,this.h7l=327033209),this.bits=h,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1}function v(t,i,s){var e,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(h);if(null===t)throw new Error(h);if(o&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||o&&ArrayBuffer.isView(t)))throw new Error(h);e=!0}var n=t.length;if(!e){for(var a,l=[],f=(n=t.length,0),c=0;c<n;++c)(a=t.charCodeAt(c))<128?l[f++]=a:a<2048?(l[f++]=192|a>>6,l[f++]=128|63&a):a<55296||a>=57344?(l[f++]=224|a>>12,l[f++]=128|a>>6&63,l[f++]=128|63&a):(a=65536+((1023&a)<<10|1023&t.charCodeAt(++c)),l[f++]=240|a>>18,l[f++]=128|a>>12&63,l[f++]=128|a>>6&63,l[f++]=128|63&a);t=l}t.length>128&&(t=new A(i,!0).update(t).array());var u=[],y=[];for(c=0;c<128;++c){var p=t[c]||0;u[c]=92^p,y[c]=54^p}A.call(this,i,s),this.update(y),this.oKeyPad=u,this.inner=!0,this.sharedMemory=s}A.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var i,s=typeof t;if("string"!==s){if("object"!==s)throw new Error(h);if(null===t)throw new Error(h);if(o&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||o&&ArrayBuffer.isView(t)))throw new Error(h);i=!0}for(var e,r,n=0,a=t.length,l=this.blocks;n<a;){if(this.hashed&&(this.hashed=!1,l[0]=this.block,l[1]=l[2]=l[3]=l[4]=l[5]=l[6]=l[7]=l[8]=l[9]=l[10]=l[11]=l[12]=l[13]=l[14]=l[15]=l[16]=l[17]=l[18]=l[19]=l[20]=l[21]=l[22]=l[23]=l[24]=l[25]=l[26]=l[27]=l[28]=l[29]=l[30]=l[31]=l[32]=0),i)for(r=this.start;n<a&&r<128;++n)l[r>>2]|=t[n]<<f[3&r++];else for(r=this.start;n<a&&r<128;++n)(e=t.charCodeAt(n))<128?l[r>>2]|=e<<f[3&r++]:e<2048?(l[r>>2]|=(192|e>>6)<<f[3&r++],l[r>>2]|=(128|63&e)<<f[3&r++]):e<55296||e>=57344?(l[r>>2]|=(224|e>>12)<<f[3&r++],l[r>>2]|=(128|e>>6&63)<<f[3&r++],l[r>>2]|=(128|63&e)<<f[3&r++]):(e=65536+((1023&e)<<10|1023&t.charCodeAt(++n)),l[r>>2]|=(240|e>>18)<<f[3&r++],l[r>>2]|=(128|e>>12&63)<<f[3&r++],l[r>>2]|=(128|e>>6&63)<<f[3&r++],l[r>>2]|=(128|63&e)<<f[3&r++]);this.lastByteIndex=r,this.bytes+=r-this.start,r>=128?(this.block=l[32],this.start=r-128,this.hash(),this.hashed=!0):this.start=r}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},A.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var h=this.blocks,t=this.lastByteIndex;h[32]=this.block,h[t>>2]|=l[3&t],this.block=h[32],t>=112&&(this.hashed||this.hash(),h[0]=this.block,h[1]=h[2]=h[3]=h[4]=h[5]=h[6]=h[7]=h[8]=h[9]=h[10]=h[11]=h[12]=h[13]=h[14]=h[15]=h[16]=h[17]=h[18]=h[19]=h[20]=h[21]=h[22]=h[23]=h[24]=h[25]=h[26]=h[27]=h[28]=h[29]=h[30]=h[31]=h[32]=0),h[30]=this.hBytes<<3|this.bytes>>>29,h[31]=this.bytes<<3,this.hash()}},A.prototype.hash=function(){var h,t,i,s,e,r,n,o,a,l,f,u,y,p,d,b,w,A,v,_,B,U,g,S,k,z=this.h0h,x=this.h0l,E=this.h1h,O=this.h1l,j=this.h2h,N=this.h2l,J=this.h3h,m=this.h3l,H=this.h4h,I=this.h4l,R=this.h5h,V=this.h5l,C=this.h6h,K=this.h6l,P=this.h7h,D=this.h7l,F=this.blocks;for(h=32;h<160;h+=2)t=((_=F[h-30])>>>1|(B=F[h-29])<<31)^(_>>>8|B<<24)^_>>>7,i=(B>>>1|_<<31)^(B>>>8|_<<24)^(B>>>7|_<<25),s=((_=F[h-4])>>>19|(B=F[h-3])<<13)^(B>>>29|_<<3)^_>>>6,e=(B>>>19|_<<13)^(_>>>29|B<<3)^(B>>>6|_<<26),_=F[h-32],B=F[h-31],a=((U=F[h-14])>>>16)+(_>>>16)+(t>>>16)+(s>>>16)+((o=(65535&U)+(65535&_)+(65535&t)+(65535&s)+((n=((g=F[h-13])>>>16)+(B>>>16)+(i>>>16)+(e>>>16)+((r=(65535&g)+(65535&B)+(65535&i)+(65535&e))>>>16))>>>16))>>>16),F[h]=a<<16|65535&o,F[h+1]=n<<16|65535&r;var M=z,T=x,W=E,Y=O,q=j,G=N,L=J,Q=m,X=H,Z=I,$=R,hh=V,th=C,ih=K,sh=P,eh=D;for(b=W&q,w=Y&G,h=0;h<160;h+=8)t=(M>>>28|T<<4)^(T>>>2|M<<30)^(T>>>7|M<<25),i=(T>>>28|M<<4)^(M>>>2|T<<30)^(M>>>7|T<<25),s=(X>>>14|Z<<18)^(X>>>18|Z<<14)^(Z>>>9|X<<23),e=(Z>>>14|X<<18)^(Z>>>18|X<<14)^(X>>>9|Z<<23),A=(l=M&W)^M&q^b,v=(f=T&Y)^T&G^w,S=X&$^~X&th,k=Z&hh^~Z&ih,_=F[h],B=F[h+1],_=(a=((U=c[h])>>>16)+(_>>>16)+(S>>>16)+(s>>>16)+(sh>>>16)+((o=(65535&U)+(65535&_)+(65535&S)+(65535&s)+(65535&sh)+((n=((g=c[h+1])>>>16)+(B>>>16)+(k>>>16)+(e>>>16)+(eh>>>16)+((r=(65535&g)+(65535&B)+(65535&k)+(65535&e)+(65535&eh))>>>16))>>>16))>>>16))<<16|65535&o,B=n<<16|65535&r,U=(a=(A>>>16)+(t>>>16)+((o=(65535&A)+(65535&t)+((n=(v>>>16)+(i>>>16)+((r=(65535&v)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&o,g=n<<16|65535&r,sh=(a=(L>>>16)+(_>>>16)+((o=(65535&L)+(65535&_)+((n=(Q>>>16)+(B>>>16)+((r=(65535&Q)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o,eh=n<<16|65535&r,t=((L=(a=(U>>>16)+(_>>>16)+((o=(65535&U)+(65535&_)+((n=(g>>>16)+(B>>>16)+((r=(65535&g)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o)>>>28|(Q=n<<16|65535&r)<<4)^(Q>>>2|L<<30)^(Q>>>7|L<<25),i=(Q>>>28|L<<4)^(L>>>2|Q<<30)^(L>>>7|Q<<25),s=(sh>>>14|eh<<18)^(sh>>>18|eh<<14)^(eh>>>9|sh<<23),e=(eh>>>14|sh<<18)^(eh>>>18|sh<<14)^(sh>>>9|eh<<23),A=(u=L&M)^L&W^l,v=(y=Q&T)^Q&Y^f,S=sh&X^~sh&$,k=eh&Z^~eh&hh,_=F[h+2],B=F[h+3],_=(a=((U=c[h+2])>>>16)+(_>>>16)+(S>>>16)+(s>>>16)+(th>>>16)+((o=(65535&U)+(65535&_)+(65535&S)+(65535&s)+(65535&th)+((n=((g=c[h+3])>>>16)+(B>>>16)+(k>>>16)+(e>>>16)+(ih>>>16)+((r=(65535&g)+(65535&B)+(65535&k)+(65535&e)+(65535&ih))>>>16))>>>16))>>>16))<<16|65535&o,B=n<<16|65535&r,U=(a=(A>>>16)+(t>>>16)+((o=(65535&A)+(65535&t)+((n=(v>>>16)+(i>>>16)+((r=(65535&v)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&o,g=n<<16|65535&r,th=(a=(q>>>16)+(_>>>16)+((o=(65535&q)+(65535&_)+((n=(G>>>16)+(B>>>16)+((r=(65535&G)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o,ih=n<<16|65535&r,t=((q=(a=(U>>>16)+(_>>>16)+((o=(65535&U)+(65535&_)+((n=(g>>>16)+(B>>>16)+((r=(65535&g)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o)>>>28|(G=n<<16|65535&r)<<4)^(G>>>2|q<<30)^(G>>>7|q<<25),i=(G>>>28|q<<4)^(q>>>2|G<<30)^(q>>>7|G<<25),s=(th>>>14|ih<<18)^(th>>>18|ih<<14)^(ih>>>9|th<<23),e=(ih>>>14|th<<18)^(ih>>>18|th<<14)^(th>>>9|ih<<23),A=(p=q&L)^q&M^u,v=(d=G&Q)^G&T^y,S=th&sh^~th&X,k=ih&eh^~ih&Z,_=F[h+4],B=F[h+5],_=(a=((U=c[h+4])>>>16)+(_>>>16)+(S>>>16)+(s>>>16)+($>>>16)+((o=(65535&U)+(65535&_)+(65535&S)+(65535&s)+(65535&$)+((n=((g=c[h+5])>>>16)+(B>>>16)+(k>>>16)+(e>>>16)+(hh>>>16)+((r=(65535&g)+(65535&B)+(65535&k)+(65535&e)+(65535&hh))>>>16))>>>16))>>>16))<<16|65535&o,B=n<<16|65535&r,U=(a=(A>>>16)+(t>>>16)+((o=(65535&A)+(65535&t)+((n=(v>>>16)+(i>>>16)+((r=(65535&v)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&o,g=n<<16|65535&r,$=(a=(W>>>16)+(_>>>16)+((o=(65535&W)+(65535&_)+((n=(Y>>>16)+(B>>>16)+((r=(65535&Y)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o,hh=n<<16|65535&r,t=((W=(a=(U>>>16)+(_>>>16)+((o=(65535&U)+(65535&_)+((n=(g>>>16)+(B>>>16)+((r=(65535&g)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o)>>>28|(Y=n<<16|65535&r)<<4)^(Y>>>2|W<<30)^(Y>>>7|W<<25),i=(Y>>>28|W<<4)^(W>>>2|Y<<30)^(W>>>7|Y<<25),s=($>>>14|hh<<18)^($>>>18|hh<<14)^(hh>>>9|$<<23),e=(hh>>>14|$<<18)^(hh>>>18|$<<14)^($>>>9|hh<<23),A=(b=W&q)^W&L^p,v=(w=Y&G)^Y&Q^d,S=$&th^~$&sh,k=hh&ih^~hh&eh,_=F[h+6],B=F[h+7],_=(a=((U=c[h+6])>>>16)+(_>>>16)+(S>>>16)+(s>>>16)+(X>>>16)+((o=(65535&U)+(65535&_)+(65535&S)+(65535&s)+(65535&X)+((n=((g=c[h+7])>>>16)+(B>>>16)+(k>>>16)+(e>>>16)+(Z>>>16)+((r=(65535&g)+(65535&B)+(65535&k)+(65535&e)+(65535&Z))>>>16))>>>16))>>>16))<<16|65535&o,B=n<<16|65535&r,U=(a=(A>>>16)+(t>>>16)+((o=(65535&A)+(65535&t)+((n=(v>>>16)+(i>>>16)+((r=(65535&v)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&o,g=n<<16|65535&r,X=(a=(M>>>16)+(_>>>16)+((o=(65535&M)+(65535&_)+((n=(T>>>16)+(B>>>16)+((r=(65535&T)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o,Z=n<<16|65535&r,M=(a=(U>>>16)+(_>>>16)+((o=(65535&U)+(65535&_)+((n=(g>>>16)+(B>>>16)+((r=(65535&g)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o,T=n<<16|65535&r;a=(z>>>16)+(M>>>16)+((o=(65535&z)+(65535&M)+((n=(x>>>16)+(T>>>16)+((r=(65535&x)+(65535&T))>>>16))>>>16))>>>16),this.h0h=a<<16|65535&o,this.h0l=n<<16|65535&r,a=(E>>>16)+(W>>>16)+((o=(65535&E)+(65535&W)+((n=(O>>>16)+(Y>>>16)+((r=(65535&O)+(65535&Y))>>>16))>>>16))>>>16),this.h1h=a<<16|65535&o,this.h1l=n<<16|65535&r,a=(j>>>16)+(q>>>16)+((o=(65535&j)+(65535&q)+((n=(N>>>16)+(G>>>16)+((r=(65535&N)+(65535&G))>>>16))>>>16))>>>16),this.h2h=a<<16|65535&o,this.h2l=n<<16|65535&r,a=(J>>>16)+(L>>>16)+((o=(65535&J)+(65535&L)+((n=(m>>>16)+(Q>>>16)+((r=(65535&m)+(65535&Q))>>>16))>>>16))>>>16),this.h3h=a<<16|65535&o,this.h3l=n<<16|65535&r,a=(H>>>16)+(X>>>16)+((o=(65535&H)+(65535&X)+((n=(I>>>16)+(Z>>>16)+((r=(65535&I)+(65535&Z))>>>16))>>>16))>>>16),this.h4h=a<<16|65535&o,this.h4l=n<<16|65535&r,a=(R>>>16)+($>>>16)+((o=(65535&R)+(65535&$)+((n=(V>>>16)+(hh>>>16)+((r=(65535&V)+(65535&hh))>>>16))>>>16))>>>16),this.h5h=a<<16|65535&o,this.h5l=n<<16|65535&r,a=(C>>>16)+(th>>>16)+((o=(65535&C)+(65535&th)+((n=(K>>>16)+(ih>>>16)+((r=(65535&K)+(65535&ih))>>>16))>>>16))>>>16),this.h6h=a<<16|65535&o,this.h6l=n<<16|65535&r,a=(P>>>16)+(sh>>>16)+((o=(65535&P)+(65535&sh)+((n=(D>>>16)+(eh>>>16)+((r=(65535&D)+(65535&eh))>>>16))>>>16))>>>16),this.h7h=a<<16|65535&o,this.h7l=n<<16|65535&r},A.prototype.hex=function(){this.finalize();var h=this.h0h,t=this.h0l,i=this.h1h,s=this.h1l,e=this.h2h,r=this.h2l,n=this.h3h,o=this.h3l,l=this.h4h,f=this.h4l,c=this.h5h,u=this.h5l,y=this.h6h,p=this.h6l,d=this.h7h,b=this.h7l,w=this.bits,A=a[h>>28&15]+a[h>>24&15]+a[h>>20&15]+a[h>>16&15]+a[h>>12&15]+a[h>>8&15]+a[h>>4&15]+a[15&h]+a[t>>28&15]+a[t>>24&15]+a[t>>20&15]+a[t>>16&15]+a[t>>12&15]+a[t>>8&15]+a[t>>4&15]+a[15&t]+a[i>>28&15]+a[i>>24&15]+a[i>>20&15]+a[i>>16&15]+a[i>>12&15]+a[i>>8&15]+a[i>>4&15]+a[15&i]+a[s>>28&15]+a[s>>24&15]+a[s>>20&15]+a[s>>16&15]+a[s>>12&15]+a[s>>8&15]+a[s>>4&15]+a[15&s]+a[e>>28&15]+a[e>>24&15]+a[e>>20&15]+a[e>>16&15]+a[e>>12&15]+a[e>>8&15]+a[e>>4&15]+a[15&e]+a[r>>28&15]+a[r>>24&15]+a[r>>20&15]+a[r>>16&15]+a[r>>12&15]+a[r>>8&15]+a[r>>4&15]+a[15&r]+a[n>>28&15]+a[n>>24&15]+a[n>>20&15]+a[n>>16&15]+a[n>>12&15]+a[n>>8&15]+a[n>>4&15]+a[15&n];return w>=256&&(A+=a[o>>28&15]+a[o>>24&15]+a[o>>20&15]+a[o>>16&15]+a[o>>12&15]+a[o>>8&15]+a[o>>4&15]+a[15&o]),w>=384&&(A+=a[l>>28&15]+a[l>>24&15]+a[l>>20&15]+a[l>>16&15]+a[l>>12&15]+a[l>>8&15]+a[l>>4&15]+a[15&l]+a[f>>28&15]+a[f>>24&15]+a[f>>20&15]+a[f>>16&15]+a[f>>12&15]+a[f>>8&15]+a[f>>4&15]+a[15&f]+a[c>>28&15]+a[c>>24&15]+a[c>>20&15]+a[c>>16&15]+a[c>>12&15]+a[c>>8&15]+a[c>>4&15]+a[15&c]+a[u>>28&15]+a[u>>24&15]+a[u>>20&15]+a[u>>16&15]+a[u>>12&15]+a[u>>8&15]+a[u>>4&15]+a[15&u]),512==w&&(A+=a[y>>28&15]+a[y>>24&15]+a[y>>20&15]+a[y>>16&15]+a[y>>12&15]+a[y>>8&15]+a[y>>4&15]+a[15&y]+a[p>>28&15]+a[p>>24&15]+a[p>>20&15]+a[p>>16&15]+a[p>>12&15]+a[p>>8&15]+a[p>>4&15]+a[15&p]+a[d>>28&15]+a[d>>24&15]+a[d>>20&15]+a[d>>16&15]+a[d>>12&15]+a[d>>8&15]+a[d>>4&15]+a[15&d]+a[b>>28&15]+a[b>>24&15]+a[b>>20&15]+a[b>>16&15]+a[b>>12&15]+a[b>>8&15]+a[b>>4&15]+a[15&b]),A},A.prototype.toString=A.prototype.hex,A.prototype.digest=function(){this.finalize();var h=this.h0h,t=this.h0l,i=this.h1h,s=this.h1l,e=this.h2h,r=this.h2l,n=this.h3h,o=this.h3l,a=this.h4h,l=this.h4l,f=this.h5h,c=this.h5l,u=this.h6h,y=this.h6l,p=this.h7h,d=this.h7l,b=this.bits,w=[h>>24&255,h>>16&255,h>>8&255,255&h,t>>24&255,t>>16&255,t>>8&255,255&t,i>>24&255,i>>16&255,i>>8&255,255&i,s>>24&255,s>>16&255,s>>8&255,255&s,e>>24&255,e>>16&255,e>>8&255,255&e,r>>24&255,r>>16&255,r>>8&255,255&r,n>>24&255,n>>16&255,n>>8&255,255&n];return b>=256&&w.push(o>>24&255,o>>16&255,o>>8&255,255&o),b>=384&&w.push(a>>24&255,a>>16&255,a>>8&255,255&a,l>>24&255,l>>16&255,l>>8&255,255&l,f>>24&255,f>>16&255,f>>8&255,255&f,c>>24&255,c>>16&255,c>>8&255,255&c),512==b&&w.push(u>>24&255,u>>16&255,u>>8&255,255&u,y>>24&255,y>>16&255,y>>8&255,255&y,p>>24&255,p>>16&255,p>>8&255,255&p,d>>24&255,d>>16&255,d>>8&255,255&d),w},A.prototype.array=A.prototype.digest,A.prototype.arrayBuffer=function(){this.finalize();var h=this.bits,t=new ArrayBuffer(h/8),i=new DataView(t);return i.setUint32(0,this.h0h),i.setUint32(4,this.h0l),i.setUint32(8,this.h1h),i.setUint32(12,this.h1l),i.setUint32(16,this.h2h),i.setUint32(20,this.h2l),i.setUint32(24,this.h3h),h>=256&&i.setUint32(28,this.h3l),h>=384&&(i.setUint32(32,this.h4h),i.setUint32(36,this.h4l),i.setUint32(40,this.h5h),i.setUint32(44,this.h5l)),512==h&&(i.setUint32(48,this.h6h),i.setUint32(52,this.h6l),i.setUint32(56,this.h7h),i.setUint32(60,this.h7l)),t},A.prototype.clone=function(){var h=new A(this.bits,!1);return this.copyTo(h),h},A.prototype.copyTo=function(h){var t=0,i=["h0h","h0l","h1h","h1l","h2h","h2l","h3h","h3l","h4h","h4l","h5h","h5l","h6h","h6l","h7h","h7l","start","bytes","hBytes","finalized","hashed","lastByteIndex"];for(t=0;t<i.length;++t)h[i[t]]=this[i[t]];for(t=0;t<this.blocks.length;++t)h.blocks[t]=this.blocks[t]},v.prototype=new A,v.prototype.finalize=function(){if(A.prototype.finalize.call(this),this.inner){this.inner=!1;var h=this.array();A.call(this,this.bits,this.sharedMemory),this.update(this.oKeyPad),this.update(h),A.prototype.finalize.call(this)}},v.prototype.clone=function(){var h=new v([],this.bits,!1);this.copyTo(h),h.inner=this.inner;for(var t=0;t<this.oKeyPad.length;++t)h.oKeyPad[t]=this.oKeyPad[t];return h};var _=d(512);_.sha512=_,_.sha384=d(384),_.sha512_256=d(256),_.sha512_224=d(224),_.sha512.hmac=w(512),_.sha384.hmac=w(384),_.sha512_256.hmac=w(256),_.sha512_224.hmac=w(224),r?t.exports=_:(s.sha512=_.sha512,s.sha384=_.sha384,s.sha512_256=_.sha512_256,s.sha512_224=_.sha512_224,n&&define((function(){return _})))}()}))())}}}));
1
+ System.register(["./index-legacy-CCOgiwQJ.js"],(function(h,t){var i;return{setters:[function(h){i=h.t}],execute:function(){h("default",i((function(h,t){!function(){var h="input is invalid type",i="object"==typeof window,s=i?window:{};s.JS_SHA512_NO_WINDOW&&(i=!1);var e=!i&&"object"==typeof self;!s.JS_SHA512_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node?s=global:e&&(s=self);var r=!s.JS_SHA512_NO_COMMON_JS&&"object"==typeof t&&t.exports,n="function"==typeof define&&define.amd,o=!s.JS_SHA512_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,a="0123456789abcdef".split(""),l=[-2147483648,8388608,32768,128],f=[24,16,8,0],c=[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],u=["hex","array","digest","arrayBuffer"],y=[];!s.JS_SHA512_NO_NODE_JS&&Array.isArray||(Array.isArray=function(h){return"[object Array]"===Object.prototype.toString.call(h)}),!o||!s.JS_SHA512_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(h){return"object"==typeof h&&h.buffer&&h.buffer.constructor===ArrayBuffer});var p=function(h,t){return function(i){return new A(t,!0).update(i)[h]()}},d=function(h){var t=p("hex",h);t.create=function(){return new A(h)},t.update=function(h){return t.create().update(h)};for(var i=0;i<u.length;++i){var s=u[i];t[s]=p(s,h)}return t},b=function(h,t){return function(i,s){return new v(i,t,!0).update(s)[h]()}},w=function(h){var t=b("hex",h);t.create=function(t){return new v(t,h)},t.update=function(h,i){return t.create(h).update(i)};for(var i=0;i<u.length;++i){var s=u[i];t[s]=b(s,h)}return t};function A(h,t){t?(y[0]=y[1]=y[2]=y[3]=y[4]=y[5]=y[6]=y[7]=y[8]=y[9]=y[10]=y[11]=y[12]=y[13]=y[14]=y[15]=y[16]=y[17]=y[18]=y[19]=y[20]=y[21]=y[22]=y[23]=y[24]=y[25]=y[26]=y[27]=y[28]=y[29]=y[30]=y[31]=y[32]=0,this.blocks=y):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],384==h?(this.h0h=3418070365,this.h0l=3238371032,this.h1h=1654270250,this.h1l=914150663,this.h2h=2438529370,this.h2l=812702999,this.h3h=355462360,this.h3l=4144912697,this.h4h=1731405415,this.h4l=4290775857,this.h5h=2394180231,this.h5l=1750603025,this.h6h=3675008525,this.h6l=1694076839,this.h7h=1203062813,this.h7l=3204075428):256==h?(this.h0h=573645204,this.h0l=4230739756,this.h1h=2673172387,this.h1l=3360449730,this.h2h=596883563,this.h2l=1867755857,this.h3h=2520282905,this.h3l=1497426621,this.h4h=2519219938,this.h4l=2827943907,this.h5h=3193839141,this.h5l=1401305490,this.h6h=721525244,this.h6l=746961066,this.h7h=246885852,this.h7l=2177182882):224==h?(this.h0h=2352822216,this.h0l=424955298,this.h1h=1944164710,this.h1l=2312950998,this.h2h=502970286,this.h2l=855612546,this.h3h=1738396948,this.h3l=1479516111,this.h4h=258812777,this.h4l=2077511080,this.h5h=2011393907,this.h5l=79989058,this.h6h=1067287976,this.h6l=1780299464,this.h7h=286451373,this.h7l=2446758561):(this.h0h=1779033703,this.h0l=4089235720,this.h1h=3144134277,this.h1l=2227873595,this.h2h=1013904242,this.h2l=4271175723,this.h3h=2773480762,this.h3l=1595750129,this.h4h=1359893119,this.h4l=2917565137,this.h5h=2600822924,this.h5l=725511199,this.h6h=528734635,this.h6l=4215389547,this.h7h=1541459225,this.h7l=327033209),this.bits=h,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1}function v(t,i,s){var e,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(h);if(null===t)throw new Error(h);if(o&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||o&&ArrayBuffer.isView(t)))throw new Error(h);e=!0}var n=t.length;if(!e){for(var a,l=[],f=(n=t.length,0),c=0;c<n;++c)(a=t.charCodeAt(c))<128?l[f++]=a:a<2048?(l[f++]=192|a>>6,l[f++]=128|63&a):a<55296||a>=57344?(l[f++]=224|a>>12,l[f++]=128|a>>6&63,l[f++]=128|63&a):(a=65536+((1023&a)<<10|1023&t.charCodeAt(++c)),l[f++]=240|a>>18,l[f++]=128|a>>12&63,l[f++]=128|a>>6&63,l[f++]=128|63&a);t=l}t.length>128&&(t=new A(i,!0).update(t).array());var u=[],y=[];for(c=0;c<128;++c){var p=t[c]||0;u[c]=92^p,y[c]=54^p}A.call(this,i,s),this.update(y),this.oKeyPad=u,this.inner=!0,this.sharedMemory=s}A.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var i,s=typeof t;if("string"!==s){if("object"!==s)throw new Error(h);if(null===t)throw new Error(h);if(o&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||o&&ArrayBuffer.isView(t)))throw new Error(h);i=!0}for(var e,r,n=0,a=t.length,l=this.blocks;n<a;){if(this.hashed&&(this.hashed=!1,l[0]=this.block,l[1]=l[2]=l[3]=l[4]=l[5]=l[6]=l[7]=l[8]=l[9]=l[10]=l[11]=l[12]=l[13]=l[14]=l[15]=l[16]=l[17]=l[18]=l[19]=l[20]=l[21]=l[22]=l[23]=l[24]=l[25]=l[26]=l[27]=l[28]=l[29]=l[30]=l[31]=l[32]=0),i)for(r=this.start;n<a&&r<128;++n)l[r>>2]|=t[n]<<f[3&r++];else for(r=this.start;n<a&&r<128;++n)(e=t.charCodeAt(n))<128?l[r>>2]|=e<<f[3&r++]:e<2048?(l[r>>2]|=(192|e>>6)<<f[3&r++],l[r>>2]|=(128|63&e)<<f[3&r++]):e<55296||e>=57344?(l[r>>2]|=(224|e>>12)<<f[3&r++],l[r>>2]|=(128|e>>6&63)<<f[3&r++],l[r>>2]|=(128|63&e)<<f[3&r++]):(e=65536+((1023&e)<<10|1023&t.charCodeAt(++n)),l[r>>2]|=(240|e>>18)<<f[3&r++],l[r>>2]|=(128|e>>12&63)<<f[3&r++],l[r>>2]|=(128|e>>6&63)<<f[3&r++],l[r>>2]|=(128|63&e)<<f[3&r++]);this.lastByteIndex=r,this.bytes+=r-this.start,r>=128?(this.block=l[32],this.start=r-128,this.hash(),this.hashed=!0):this.start=r}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},A.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var h=this.blocks,t=this.lastByteIndex;h[32]=this.block,h[t>>2]|=l[3&t],this.block=h[32],t>=112&&(this.hashed||this.hash(),h[0]=this.block,h[1]=h[2]=h[3]=h[4]=h[5]=h[6]=h[7]=h[8]=h[9]=h[10]=h[11]=h[12]=h[13]=h[14]=h[15]=h[16]=h[17]=h[18]=h[19]=h[20]=h[21]=h[22]=h[23]=h[24]=h[25]=h[26]=h[27]=h[28]=h[29]=h[30]=h[31]=h[32]=0),h[30]=this.hBytes<<3|this.bytes>>>29,h[31]=this.bytes<<3,this.hash()}},A.prototype.hash=function(){var h,t,i,s,e,r,n,o,a,l,f,u,y,p,d,b,w,A,v,_,B,U,g,S,k,z=this.h0h,x=this.h0l,E=this.h1h,O=this.h1l,j=this.h2h,N=this.h2l,J=this.h3h,m=this.h3l,H=this.h4h,I=this.h4l,R=this.h5h,V=this.h5l,C=this.h6h,K=this.h6l,P=this.h7h,D=this.h7l,F=this.blocks;for(h=32;h<160;h+=2)t=((_=F[h-30])>>>1|(B=F[h-29])<<31)^(_>>>8|B<<24)^_>>>7,i=(B>>>1|_<<31)^(B>>>8|_<<24)^(B>>>7|_<<25),s=((_=F[h-4])>>>19|(B=F[h-3])<<13)^(B>>>29|_<<3)^_>>>6,e=(B>>>19|_<<13)^(_>>>29|B<<3)^(B>>>6|_<<26),_=F[h-32],B=F[h-31],a=((U=F[h-14])>>>16)+(_>>>16)+(t>>>16)+(s>>>16)+((o=(65535&U)+(65535&_)+(65535&t)+(65535&s)+((n=((g=F[h-13])>>>16)+(B>>>16)+(i>>>16)+(e>>>16)+((r=(65535&g)+(65535&B)+(65535&i)+(65535&e))>>>16))>>>16))>>>16),F[h]=a<<16|65535&o,F[h+1]=n<<16|65535&r;var M=z,T=x,W=E,Y=O,q=j,G=N,L=J,Q=m,X=H,Z=I,$=R,hh=V,th=C,ih=K,sh=P,eh=D;for(b=W&q,w=Y&G,h=0;h<160;h+=8)t=(M>>>28|T<<4)^(T>>>2|M<<30)^(T>>>7|M<<25),i=(T>>>28|M<<4)^(M>>>2|T<<30)^(M>>>7|T<<25),s=(X>>>14|Z<<18)^(X>>>18|Z<<14)^(Z>>>9|X<<23),e=(Z>>>14|X<<18)^(Z>>>18|X<<14)^(X>>>9|Z<<23),A=(l=M&W)^M&q^b,v=(f=T&Y)^T&G^w,S=X&$^~X&th,k=Z&hh^~Z&ih,_=F[h],B=F[h+1],_=(a=((U=c[h])>>>16)+(_>>>16)+(S>>>16)+(s>>>16)+(sh>>>16)+((o=(65535&U)+(65535&_)+(65535&S)+(65535&s)+(65535&sh)+((n=((g=c[h+1])>>>16)+(B>>>16)+(k>>>16)+(e>>>16)+(eh>>>16)+((r=(65535&g)+(65535&B)+(65535&k)+(65535&e)+(65535&eh))>>>16))>>>16))>>>16))<<16|65535&o,B=n<<16|65535&r,U=(a=(A>>>16)+(t>>>16)+((o=(65535&A)+(65535&t)+((n=(v>>>16)+(i>>>16)+((r=(65535&v)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&o,g=n<<16|65535&r,sh=(a=(L>>>16)+(_>>>16)+((o=(65535&L)+(65535&_)+((n=(Q>>>16)+(B>>>16)+((r=(65535&Q)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o,eh=n<<16|65535&r,t=((L=(a=(U>>>16)+(_>>>16)+((o=(65535&U)+(65535&_)+((n=(g>>>16)+(B>>>16)+((r=(65535&g)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o)>>>28|(Q=n<<16|65535&r)<<4)^(Q>>>2|L<<30)^(Q>>>7|L<<25),i=(Q>>>28|L<<4)^(L>>>2|Q<<30)^(L>>>7|Q<<25),s=(sh>>>14|eh<<18)^(sh>>>18|eh<<14)^(eh>>>9|sh<<23),e=(eh>>>14|sh<<18)^(eh>>>18|sh<<14)^(sh>>>9|eh<<23),A=(u=L&M)^L&W^l,v=(y=Q&T)^Q&Y^f,S=sh&X^~sh&$,k=eh&Z^~eh&hh,_=F[h+2],B=F[h+3],_=(a=((U=c[h+2])>>>16)+(_>>>16)+(S>>>16)+(s>>>16)+(th>>>16)+((o=(65535&U)+(65535&_)+(65535&S)+(65535&s)+(65535&th)+((n=((g=c[h+3])>>>16)+(B>>>16)+(k>>>16)+(e>>>16)+(ih>>>16)+((r=(65535&g)+(65535&B)+(65535&k)+(65535&e)+(65535&ih))>>>16))>>>16))>>>16))<<16|65535&o,B=n<<16|65535&r,U=(a=(A>>>16)+(t>>>16)+((o=(65535&A)+(65535&t)+((n=(v>>>16)+(i>>>16)+((r=(65535&v)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&o,g=n<<16|65535&r,th=(a=(q>>>16)+(_>>>16)+((o=(65535&q)+(65535&_)+((n=(G>>>16)+(B>>>16)+((r=(65535&G)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o,ih=n<<16|65535&r,t=((q=(a=(U>>>16)+(_>>>16)+((o=(65535&U)+(65535&_)+((n=(g>>>16)+(B>>>16)+((r=(65535&g)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o)>>>28|(G=n<<16|65535&r)<<4)^(G>>>2|q<<30)^(G>>>7|q<<25),i=(G>>>28|q<<4)^(q>>>2|G<<30)^(q>>>7|G<<25),s=(th>>>14|ih<<18)^(th>>>18|ih<<14)^(ih>>>9|th<<23),e=(ih>>>14|th<<18)^(ih>>>18|th<<14)^(th>>>9|ih<<23),A=(p=q&L)^q&M^u,v=(d=G&Q)^G&T^y,S=th&sh^~th&X,k=ih&eh^~ih&Z,_=F[h+4],B=F[h+5],_=(a=((U=c[h+4])>>>16)+(_>>>16)+(S>>>16)+(s>>>16)+($>>>16)+((o=(65535&U)+(65535&_)+(65535&S)+(65535&s)+(65535&$)+((n=((g=c[h+5])>>>16)+(B>>>16)+(k>>>16)+(e>>>16)+(hh>>>16)+((r=(65535&g)+(65535&B)+(65535&k)+(65535&e)+(65535&hh))>>>16))>>>16))>>>16))<<16|65535&o,B=n<<16|65535&r,U=(a=(A>>>16)+(t>>>16)+((o=(65535&A)+(65535&t)+((n=(v>>>16)+(i>>>16)+((r=(65535&v)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&o,g=n<<16|65535&r,$=(a=(W>>>16)+(_>>>16)+((o=(65535&W)+(65535&_)+((n=(Y>>>16)+(B>>>16)+((r=(65535&Y)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o,hh=n<<16|65535&r,t=((W=(a=(U>>>16)+(_>>>16)+((o=(65535&U)+(65535&_)+((n=(g>>>16)+(B>>>16)+((r=(65535&g)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o)>>>28|(Y=n<<16|65535&r)<<4)^(Y>>>2|W<<30)^(Y>>>7|W<<25),i=(Y>>>28|W<<4)^(W>>>2|Y<<30)^(W>>>7|Y<<25),s=($>>>14|hh<<18)^($>>>18|hh<<14)^(hh>>>9|$<<23),e=(hh>>>14|$<<18)^(hh>>>18|$<<14)^($>>>9|hh<<23),A=(b=W&q)^W&L^p,v=(w=Y&G)^Y&Q^d,S=$&th^~$&sh,k=hh&ih^~hh&eh,_=F[h+6],B=F[h+7],_=(a=((U=c[h+6])>>>16)+(_>>>16)+(S>>>16)+(s>>>16)+(X>>>16)+((o=(65535&U)+(65535&_)+(65535&S)+(65535&s)+(65535&X)+((n=((g=c[h+7])>>>16)+(B>>>16)+(k>>>16)+(e>>>16)+(Z>>>16)+((r=(65535&g)+(65535&B)+(65535&k)+(65535&e)+(65535&Z))>>>16))>>>16))>>>16))<<16|65535&o,B=n<<16|65535&r,U=(a=(A>>>16)+(t>>>16)+((o=(65535&A)+(65535&t)+((n=(v>>>16)+(i>>>16)+((r=(65535&v)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&o,g=n<<16|65535&r,X=(a=(M>>>16)+(_>>>16)+((o=(65535&M)+(65535&_)+((n=(T>>>16)+(B>>>16)+((r=(65535&T)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o,Z=n<<16|65535&r,M=(a=(U>>>16)+(_>>>16)+((o=(65535&U)+(65535&_)+((n=(g>>>16)+(B>>>16)+((r=(65535&g)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o,T=n<<16|65535&r;a=(z>>>16)+(M>>>16)+((o=(65535&z)+(65535&M)+((n=(x>>>16)+(T>>>16)+((r=(65535&x)+(65535&T))>>>16))>>>16))>>>16),this.h0h=a<<16|65535&o,this.h0l=n<<16|65535&r,a=(E>>>16)+(W>>>16)+((o=(65535&E)+(65535&W)+((n=(O>>>16)+(Y>>>16)+((r=(65535&O)+(65535&Y))>>>16))>>>16))>>>16),this.h1h=a<<16|65535&o,this.h1l=n<<16|65535&r,a=(j>>>16)+(q>>>16)+((o=(65535&j)+(65535&q)+((n=(N>>>16)+(G>>>16)+((r=(65535&N)+(65535&G))>>>16))>>>16))>>>16),this.h2h=a<<16|65535&o,this.h2l=n<<16|65535&r,a=(J>>>16)+(L>>>16)+((o=(65535&J)+(65535&L)+((n=(m>>>16)+(Q>>>16)+((r=(65535&m)+(65535&Q))>>>16))>>>16))>>>16),this.h3h=a<<16|65535&o,this.h3l=n<<16|65535&r,a=(H>>>16)+(X>>>16)+((o=(65535&H)+(65535&X)+((n=(I>>>16)+(Z>>>16)+((r=(65535&I)+(65535&Z))>>>16))>>>16))>>>16),this.h4h=a<<16|65535&o,this.h4l=n<<16|65535&r,a=(R>>>16)+($>>>16)+((o=(65535&R)+(65535&$)+((n=(V>>>16)+(hh>>>16)+((r=(65535&V)+(65535&hh))>>>16))>>>16))>>>16),this.h5h=a<<16|65535&o,this.h5l=n<<16|65535&r,a=(C>>>16)+(th>>>16)+((o=(65535&C)+(65535&th)+((n=(K>>>16)+(ih>>>16)+((r=(65535&K)+(65535&ih))>>>16))>>>16))>>>16),this.h6h=a<<16|65535&o,this.h6l=n<<16|65535&r,a=(P>>>16)+(sh>>>16)+((o=(65535&P)+(65535&sh)+((n=(D>>>16)+(eh>>>16)+((r=(65535&D)+(65535&eh))>>>16))>>>16))>>>16),this.h7h=a<<16|65535&o,this.h7l=n<<16|65535&r},A.prototype.hex=function(){this.finalize();var h=this.h0h,t=this.h0l,i=this.h1h,s=this.h1l,e=this.h2h,r=this.h2l,n=this.h3h,o=this.h3l,l=this.h4h,f=this.h4l,c=this.h5h,u=this.h5l,y=this.h6h,p=this.h6l,d=this.h7h,b=this.h7l,w=this.bits,A=a[h>>28&15]+a[h>>24&15]+a[h>>20&15]+a[h>>16&15]+a[h>>12&15]+a[h>>8&15]+a[h>>4&15]+a[15&h]+a[t>>28&15]+a[t>>24&15]+a[t>>20&15]+a[t>>16&15]+a[t>>12&15]+a[t>>8&15]+a[t>>4&15]+a[15&t]+a[i>>28&15]+a[i>>24&15]+a[i>>20&15]+a[i>>16&15]+a[i>>12&15]+a[i>>8&15]+a[i>>4&15]+a[15&i]+a[s>>28&15]+a[s>>24&15]+a[s>>20&15]+a[s>>16&15]+a[s>>12&15]+a[s>>8&15]+a[s>>4&15]+a[15&s]+a[e>>28&15]+a[e>>24&15]+a[e>>20&15]+a[e>>16&15]+a[e>>12&15]+a[e>>8&15]+a[e>>4&15]+a[15&e]+a[r>>28&15]+a[r>>24&15]+a[r>>20&15]+a[r>>16&15]+a[r>>12&15]+a[r>>8&15]+a[r>>4&15]+a[15&r]+a[n>>28&15]+a[n>>24&15]+a[n>>20&15]+a[n>>16&15]+a[n>>12&15]+a[n>>8&15]+a[n>>4&15]+a[15&n];return w>=256&&(A+=a[o>>28&15]+a[o>>24&15]+a[o>>20&15]+a[o>>16&15]+a[o>>12&15]+a[o>>8&15]+a[o>>4&15]+a[15&o]),w>=384&&(A+=a[l>>28&15]+a[l>>24&15]+a[l>>20&15]+a[l>>16&15]+a[l>>12&15]+a[l>>8&15]+a[l>>4&15]+a[15&l]+a[f>>28&15]+a[f>>24&15]+a[f>>20&15]+a[f>>16&15]+a[f>>12&15]+a[f>>8&15]+a[f>>4&15]+a[15&f]+a[c>>28&15]+a[c>>24&15]+a[c>>20&15]+a[c>>16&15]+a[c>>12&15]+a[c>>8&15]+a[c>>4&15]+a[15&c]+a[u>>28&15]+a[u>>24&15]+a[u>>20&15]+a[u>>16&15]+a[u>>12&15]+a[u>>8&15]+a[u>>4&15]+a[15&u]),512==w&&(A+=a[y>>28&15]+a[y>>24&15]+a[y>>20&15]+a[y>>16&15]+a[y>>12&15]+a[y>>8&15]+a[y>>4&15]+a[15&y]+a[p>>28&15]+a[p>>24&15]+a[p>>20&15]+a[p>>16&15]+a[p>>12&15]+a[p>>8&15]+a[p>>4&15]+a[15&p]+a[d>>28&15]+a[d>>24&15]+a[d>>20&15]+a[d>>16&15]+a[d>>12&15]+a[d>>8&15]+a[d>>4&15]+a[15&d]+a[b>>28&15]+a[b>>24&15]+a[b>>20&15]+a[b>>16&15]+a[b>>12&15]+a[b>>8&15]+a[b>>4&15]+a[15&b]),A},A.prototype.toString=A.prototype.hex,A.prototype.digest=function(){this.finalize();var h=this.h0h,t=this.h0l,i=this.h1h,s=this.h1l,e=this.h2h,r=this.h2l,n=this.h3h,o=this.h3l,a=this.h4h,l=this.h4l,f=this.h5h,c=this.h5l,u=this.h6h,y=this.h6l,p=this.h7h,d=this.h7l,b=this.bits,w=[h>>24&255,h>>16&255,h>>8&255,255&h,t>>24&255,t>>16&255,t>>8&255,255&t,i>>24&255,i>>16&255,i>>8&255,255&i,s>>24&255,s>>16&255,s>>8&255,255&s,e>>24&255,e>>16&255,e>>8&255,255&e,r>>24&255,r>>16&255,r>>8&255,255&r,n>>24&255,n>>16&255,n>>8&255,255&n];return b>=256&&w.push(o>>24&255,o>>16&255,o>>8&255,255&o),b>=384&&w.push(a>>24&255,a>>16&255,a>>8&255,255&a,l>>24&255,l>>16&255,l>>8&255,255&l,f>>24&255,f>>16&255,f>>8&255,255&f,c>>24&255,c>>16&255,c>>8&255,255&c),512==b&&w.push(u>>24&255,u>>16&255,u>>8&255,255&u,y>>24&255,y>>16&255,y>>8&255,255&y,p>>24&255,p>>16&255,p>>8&255,255&p,d>>24&255,d>>16&255,d>>8&255,255&d),w},A.prototype.array=A.prototype.digest,A.prototype.arrayBuffer=function(){this.finalize();var h=this.bits,t=new ArrayBuffer(h/8),i=new DataView(t);return i.setUint32(0,this.h0h),i.setUint32(4,this.h0l),i.setUint32(8,this.h1h),i.setUint32(12,this.h1l),i.setUint32(16,this.h2h),i.setUint32(20,this.h2l),i.setUint32(24,this.h3h),h>=256&&i.setUint32(28,this.h3l),h>=384&&(i.setUint32(32,this.h4h),i.setUint32(36,this.h4l),i.setUint32(40,this.h5h),i.setUint32(44,this.h5l)),512==h&&(i.setUint32(48,this.h6h),i.setUint32(52,this.h6l),i.setUint32(56,this.h7h),i.setUint32(60,this.h7l)),t},A.prototype.clone=function(){var h=new A(this.bits,!1);return this.copyTo(h),h},A.prototype.copyTo=function(h){var t=0,i=["h0h","h0l","h1h","h1l","h2h","h2l","h3h","h3l","h4h","h4l","h5h","h5l","h6h","h6l","h7h","h7l","start","bytes","hBytes","finalized","hashed","lastByteIndex"];for(t=0;t<i.length;++t)h[i[t]]=this[i[t]];for(t=0;t<this.blocks.length;++t)h.blocks[t]=this.blocks[t]},v.prototype=new A,v.prototype.finalize=function(){if(A.prototype.finalize.call(this),this.inner){this.inner=!1;var h=this.array();A.call(this,this.bits,this.sharedMemory),this.update(this.oKeyPad),this.update(h),A.prototype.finalize.call(this)}},v.prototype.clone=function(){var h=new v([],this.bits,!1);this.copyTo(h),h.inner=this.inner;for(var t=0;t<this.oKeyPad.length;++t)h.oKeyPad[t]=this.oKeyPad[t];return h};var _=d(512);_.sha512=_,_.sha384=d(384),_.sha512_256=d(256),_.sha512_224=d(224),_.sha512.hmac=w(512),_.sha384.hmac=w(384),_.sha512_256.hmac=w(256),_.sha512_224.hmac=w(224),r?t.exports=_:(s.sha512=_.sha512,s.sha384=_.sha384,s.sha512_256=_.sha512_256,s.sha512_224=_.sha512_224,n&&define((function(){return _})))}()}))())}}}));
@@ -25,6 +25,6 @@
25
25
  document.getElementById('root').innerHTML = 'Loading...'
26
26
  </script>
27
27
  <script crossorigin id="vite-legacy-polyfill" src="/assets/polyfills-legacy-uhvhjQSD.js"></script>
28
- <script crossorigin id="vite-legacy-entry" data-src="/assets/index-legacy-DKhdXq5m.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
28
+ <script crossorigin id="vite-legacy-entry" data-src="/assets/index-legacy-CCOgiwQJ.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
29
29
  </body>
30
30
  </html>
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "hfs",
3
- "version": "3.2.0-rc8",
3
+ "version": "3.2.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "hfs",
9
- "version": "3.2.0-rc8",
9
+ "version": "3.2.1",
10
10
  "license": "GPL-3.0",
11
11
  "dependencies": {
12
12
  "@gregoranders/csv": "^0.0.13",
@@ -828,9 +828,9 @@
828
828
  }
829
829
  },
830
830
  "node_modules/fast-xml-builder": {
831
- "version": "1.2.0",
832
- "resolved": "https://registry.npmjs.org/fast-xml-builder/-/fast-xml-builder-1.2.0.tgz",
833
- "integrity": "sha512-00aAWieqff+ZJhsXA4g1g7M8k+7AYoMUUHF+/zFb5U6Uv/P0Vl4QZo84/IcufzYalLuEj9928bXN9PbbFzMF0Q==",
831
+ "version": "1.3.0",
832
+ "resolved": "https://registry.npmjs.org/fast-xml-builder/-/fast-xml-builder-1.3.0.tgz",
833
+ "integrity": "sha512-F74cZEdCvuw9P41GAC3rod4X04jjWGM1JPEv/GWSqFTWLsdyMSBMBMlm9Hk3GLBgLBbdBNY8yee0pQh2RBVESQ==",
834
834
  "funding": [
835
835
  {
836
836
  "type": "github",
@@ -839,14 +839,14 @@
839
839
  ],
840
840
  "license": "MIT",
841
841
  "dependencies": {
842
- "path-expression-matcher": "^1.5.0",
843
- "xml-naming": "^0.1.0"
842
+ "path-expression-matcher": "^1.6.2",
843
+ "xml-naming": "^0.3.0"
844
844
  }
845
845
  },
846
846
  "node_modules/fast-xml-parser": {
847
- "version": "5.9.3",
848
- "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.9.3.tgz",
849
- "integrity": "sha512-brCNCeScma/kqa54J4PIDriSSSLssRkuYaUCpvHJulGc3HGI/xxKUCTDcYkAdqJsyb//ydpbxecjC3hB9+tb/g==",
847
+ "version": "5.10.0",
848
+ "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.10.0.tgz",
849
+ "integrity": "sha512-SLhnTEqE5QpJHq/6zl9bsmImEP2adv+y6Wy+cJa7nVTRzQh1OZfCe9k29M5xN74LWnu0xa1zrUrq3KnOKl92Fg==",
850
850
  "funding": [
851
851
  {
852
852
  "type": "github",
@@ -857,10 +857,10 @@
857
857
  "dependencies": {
858
858
  "@nodable/entities": "^2.2.0",
859
859
  "fast-xml-builder": "^1.2.0",
860
- "is-unsafe": "^1.0.1",
861
- "path-expression-matcher": "^1.5.0",
860
+ "is-unsafe": "^2.0.0",
861
+ "path-expression-matcher": "^1.6.2",
862
862
  "strnum": "^2.4.1",
863
- "xml-naming": "^0.1.0"
863
+ "xml-naming": "^0.3.0"
864
864
  },
865
865
  "bin": {
866
866
  "fxparser": "src/cli/cli.js"
@@ -1201,9 +1201,9 @@
1201
1201
  }
1202
1202
  },
1203
1203
  "node_modules/iconv-lite": {
1204
- "version": "0.7.2",
1205
- "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.2.tgz",
1206
- "integrity": "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==",
1204
+ "version": "0.7.3",
1205
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.3.tgz",
1206
+ "integrity": "sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==",
1207
1207
  "license": "MIT",
1208
1208
  "dependencies": {
1209
1209
  "safer-buffer": ">= 2.1.2 < 3.0.0"
@@ -1303,9 +1303,9 @@
1303
1303
  "license": "MIT"
1304
1304
  },
1305
1305
  "node_modules/is-unsafe": {
1306
- "version": "1.0.1",
1307
- "resolved": "https://registry.npmjs.org/is-unsafe/-/is-unsafe-1.0.1.tgz",
1308
- "integrity": "sha512-CLK2+VdgERgD96EYm5lUQssZYlRg2tkZnbsxZoacmSiRxiFJ4Nk4SzjCl+Ur+v3kXIY9dTIdb3IH22y1mZ56LA==",
1306
+ "version": "2.0.0",
1307
+ "resolved": "https://registry.npmjs.org/is-unsafe/-/is-unsafe-2.0.0.tgz",
1308
+ "integrity": "sha512-2LdV822R+wmI86unXA93WCFpL6g+av8ynWk0nrHyJqGop5VoocYsSLFgN8jrfalT6iGeLNM4KXuVSsULP53kEA==",
1309
1309
  "funding": [
1310
1310
  {
1311
1311
  "type": "github",
@@ -1649,9 +1649,9 @@
1649
1649
  }
1650
1650
  },
1651
1651
  "node_modules/path-expression-matcher": {
1652
- "version": "1.6.1",
1653
- "resolved": "https://registry.npmjs.org/path-expression-matcher/-/path-expression-matcher-1.6.1.tgz",
1654
- "integrity": "sha512-h7bxdzhHk8Knyc4Tj+jMaa7fEEoUJy7p1qtbVgkYg1Uhpe5Np5VuGXCRZnkZvU+Q42M1vStt0ifa3ueykRJPmQ==",
1652
+ "version": "1.6.2",
1653
+ "resolved": "https://registry.npmjs.org/path-expression-matcher/-/path-expression-matcher-1.6.2.tgz",
1654
+ "integrity": "sha512-enSlaiat05iasnzmgNxRj8reFdj3puY2QpNgP1aPIaVfT6nn9ICuPoFlKHk8EN22HcwewshO+mN2DGbkCEOtqQ==",
1655
1655
  "funding": [
1656
1656
  {
1657
1657
  "type": "github",
@@ -1664,9 +1664,9 @@
1664
1664
  }
1665
1665
  },
1666
1666
  "node_modules/picomatch": {
1667
- "version": "4.0.4",
1668
- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",
1669
- "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",
1667
+ "version": "4.0.5",
1668
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.5.tgz",
1669
+ "integrity": "sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==",
1670
1670
  "license": "MIT",
1671
1671
  "engines": {
1672
1672
  "node": ">=12"
@@ -2036,9 +2036,9 @@
2036
2036
  }
2037
2037
  },
2038
2038
  "node_modules/xml-naming": {
2039
- "version": "0.1.0",
2040
- "resolved": "https://registry.npmjs.org/xml-naming/-/xml-naming-0.1.0.tgz",
2041
- "integrity": "sha512-k8KO9hrMyNk6tUWqUfkTEZbezRRpONVOzUTnc97VnCvyj6Tf9lyUR9EDAIeiVLv56jsMcoXEwjW8Kv5yPY52lw==",
2039
+ "version": "0.3.0",
2040
+ "resolved": "https://registry.npmjs.org/xml-naming/-/xml-naming-0.3.0.tgz",
2041
+ "integrity": "sha512-ghig2TBE/H11aOVgmahA3MhimvkBr6JIYknH/Dhdk10nXwdbIqBJsbfMxpvFPG8bAw77gN29aQWvKpmVoPlvPQ==",
2042
2042
  "funding": [
2043
2043
  {
2044
2044
  "type": "github",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hfs",
3
- "version": "3.2.0-rc8",
3
+ "version": "3.2.1",
4
4
  "description": "HTTP File Server",
5
5
  "keywords": [
6
6
  "file server",
package/src/api.auth.js CHANGED
@@ -14,8 +14,10 @@ const auth_1 = require("./auth");
14
14
  const config_1 = require("./config");
15
15
  const events_1 = __importDefault(require("./events"));
16
16
  const misc_1 = require("./misc");
17
+ const node_crypto_1 = require("node:crypto");
17
18
  const ongoingLogins = {}; // store data that doesn't fit session object
18
19
  const keepSessionAlive = (0, config_1.defineConfig)('keep_session_alive', true);
20
+ const fakeSrpSecret = (0, node_crypto_1.randomBytes)(32);
19
21
  const refresh_session = async ({}, ctx) => {
20
22
  const username = (0, auth_1.getCurrentUsername)(ctx);
21
23
  const isAdmin = (0, adminApis_1.ctxAdminAccess)(ctx) || undefined;
@@ -61,16 +63,17 @@ exports.authApis = {
61
63
  return new apiMiddleware_1.ApiError(const_1.HTTP_METHOD_NOT_ALLOWED);
62
64
  if ((await events_1.default.emitAsync('attemptingLogin', { ctx, username }))?.isDefaultPrevented())
63
65
  return;
64
- if (!account || !(0, perm_1.accountCanLogin)(account)) { // TODO simulate fake account to prevent knowing valid usernames
66
+ if (account && !(0, perm_1.accountCanLogin)(account)) {
65
67
  ctx.logExtra({ u: username });
66
68
  ctx.state.dontLog = false; // log even if log_api is false
67
- return new apiMiddleware_1.ApiError(const_1.HTTP_UNAUTHORIZED, account && (0, perm_1.accountIsDisabled)(account) ? 'Account disabled' : undefined);
69
+ return unauthorized((0, perm_1.accountIsDisabled)(account) ? 'Account disabled' : undefined);
68
70
  }
69
- if ((0, middlewares_1.failAllowNet)(ctx, account))
70
- return new apiMiddleware_1.ApiError(const_1.HTTP_UNAUTHORIZED);
71
- try {
72
- const { srpServer, ...rest } = await (0, auth_1.srpServerStep1)(account);
73
- const sid = Math.random();
71
+ if (account && (0, middlewares_1.failAllowNet)(ctx, account))
72
+ return unauthorized();
73
+ try { // unknown users complete step 1 so only a full failed login can reveal and penalize the attempt
74
+ const { srpServer, ...rest } = await (0, auth_1.srpServerStep1)(account || fakeSrpAccount(username));
75
+ // keep the public handshake identifier independent of predictable application PRNG state
76
+ const sid = (0, node_crypto_1.randomUUID)();
74
77
  ongoingLogins[sid] = srpServer;
75
78
  setTimeout(() => delete ongoingLogins[sid], 60_000);
76
79
  ctx.session.loggingIn = { username, sid }; // temporarily store until process is complete
@@ -79,6 +82,21 @@ exports.authApis = {
79
82
  catch (code) {
80
83
  return new apiMiddleware_1.ApiError(code);
81
84
  }
85
+ function unauthorized(message) {
86
+ events_1.default.emit('failedLogin', { ctx, username });
87
+ return new apiMiddleware_1.ApiError(const_1.HTTP_UNAUTHORIZED, message);
88
+ }
89
+ function fakeSrpAccount(username) {
90
+ username = (0, perm_1.normalizeUsername)(username);
91
+ return {
92
+ username,
93
+ // process-secret derivation keeps fake credentials stable per username without storing attacker-controlled names
94
+ srp: `${derive('salt')}|${derive('verifier')}`,
95
+ };
96
+ function derive(field) {
97
+ return BigInt('0x' + (0, node_crypto_1.createHmac)('sha256', fakeSrpSecret).update(field).update(username).digest('hex')).toString();
98
+ }
99
+ }
82
100
  },
83
101
  async loginSrp2({ pubKey, proof }, ctx) {
84
102
  if (!ctx.session)
package/src/api.lang.js CHANGED
@@ -58,6 +58,6 @@ const apis = {
58
58
  };
59
59
  exports.default = apis;
60
60
  function validateCode(code) {
61
- if (!/^(\w\w)(-\w\w)*$/.test(code))
61
+ if ((0, lang_1.normalizeLangCode)(code) !== code.toLowerCase())
62
62
  throw new apiMiddleware_1.ApiError(const_1.HTTP_BAD_REQUEST, 'bad code/filename');
63
63
  }
@@ -29,12 +29,11 @@ function apiMiddleware(apis) {
29
29
  const params = isPost ? ctx.state.params || {} : ctx.query;
30
30
  const apiName = ctx.path;
31
31
  console.debug('API', ctx.method, apiName, { ...params });
32
- const csrfSafe = !isPost
33
- || ctx.get('x-hfs-anti-csrf') // automatic browser actions won't carry this header
32
+ const csrfSafe = ctx.get('x-hfs-anti-csrf') // automatic browser actions won't carry this header
34
33
  || apiName.startsWith('get_') // "get_" apis are safe because they make no change
35
34
  || /^(curl|wget|python|go-|java|axios|postman|httpie|insomnia|bruno)/i.test(ctx.get('user-agent') || ''); // only browser are subject to CSRF
36
35
  if (!csrfSafe)
37
- return send(const_1.HTTP_FOOL, "missing header x-hfs-anti-csrf=1");
36
+ return send(const_1.HTTP_FOOL, "missing header x-hfs-anti-csrf:1");
38
37
  const customApiRest = apiName.startsWith(const_1.PLUGIN_CUSTOM_REST_PREFIX) && apiName.slice(const_1.PLUGIN_CUSTOM_REST_PREFIX.length);
39
38
  const apiFun = customApiRest && (0, plugins_1.firstPlugin)(pl => pl.getData().customRest?.[customApiRest])
40
39
  || apis.hasOwnProperty(apiName) && apis[apiName];
package/src/basicWeb.js CHANGED
@@ -56,7 +56,7 @@ function basicWeb(ctx, node) {
56
56
  stream.on('ending', () => stream.push('</ul>\n' + (0, customHtml_1.getSection)('basicFooter')));
57
57
  return true;
58
58
  function a(href, label) {
59
- return `<a href='${href}'>${label}</a>`;
59
+ return `<a href='${href}'>${(0, misc_1.escapeHTML)(label)}</a>`;
60
60
  }
61
61
  }
62
62
  function detectBasicAgent(ctx) {
package/src/cross.js CHANGED
@@ -349,7 +349,7 @@ function getOrSet(o, k, creator) {
349
349
  return k in o ? o[k]
350
350
  : (o[k] = creator());
351
351
  }
352
- // 10 chars is 51+bits, 8 is 41+bits
352
+ // non-cryptographic; 10 chars is 51+bits, 8 is 41+bits
353
353
  function randomId(len = 10) {
354
354
  if (len > 10)
355
355
  return randomId(10) + randomId(len - 10);
@@ -206,36 +206,33 @@ async function moveFiles(uri_from, uri_to, ctx, override) {
206
206
  async function requestedRename(node, newName, ctx) {
207
207
  if (!node)
208
208
  throw new apiMiddleware_1.ApiError(const_1.HTTP_NOT_FOUND);
209
+ // requestedRename is exported, so keep disk rename confinement here even when callers pre-validate
210
+ if (!(0, util_files_1.isValidFileName)(newName))
211
+ throw new apiMiddleware_1.ApiError(const_1.HTTP_BAD_REQUEST);
209
212
  if ((0, vfs_1.statusCodeForMissingPerm)(node, 'can_delete', ctx))
210
- return new apiMiddleware_1.ApiError(ctx.status);
211
- try {
212
- if (node.name) // virtual name = virtual rename
213
- node.name = newName;
214
- else {
215
- if (!node.source)
216
- throw new apiMiddleware_1.ApiError(const_1.HTTP_FAILED_DEPENDENCY);
217
- const destNode = await (0, vfs_1.urlToNode)((0, misc_1.pathEncode)(newName), ctx, node.parent);
218
- if (destNode && (0, vfs_1.statusCodeForMissingPerm)(destNode, 'can_delete', ctx)) // if destination exists, you need delete permission
219
- return new apiMiddleware_1.ApiError(ctx.status);
220
- try {
221
- const destSource = (0, path_1.join)((0, path_1.dirname)(node.source), newName);
222
- await (0, promises_1.rename)(node.source, destSource);
223
- await (0, misc_1.moveStoredFileAttrs)(node.source, destSource);
224
- (0, comments_1.getCommentFor)(node.source).then(c => {
225
- if (!c)
226
- return;
227
- void (0, comments_1.setCommentFor)(node.source, '');
228
- void (0, comments_1.setCommentFor)(destSource, c);
229
- });
230
- return {};
231
- }
232
- catch (e) {
233
- return new apiMiddleware_1.ApiError(const_1.HTTP_SERVER_ERROR, e);
234
- }
213
+ throw new apiMiddleware_1.ApiError(ctx.status);
214
+ if (node.name) // virtual name = virtual rename
215
+ node.name = newName;
216
+ else {
217
+ if (!node.source)
218
+ throw new apiMiddleware_1.ApiError(const_1.HTTP_FAILED_DEPENDENCY);
219
+ const destNode = await (0, vfs_1.urlToNode)((0, misc_1.pathEncode)(newName), ctx, node.parent);
220
+ if (destNode && (0, vfs_1.statusCodeForMissingPerm)(destNode, 'can_delete', ctx)) // if destination exists, you need delete permission
221
+ throw new apiMiddleware_1.ApiError(ctx.status);
222
+ try {
223
+ const destSource = (0, path_1.join)((0, path_1.dirname)(node.source), newName);
224
+ await (0, promises_1.rename)(node.source, destSource);
225
+ await (0, misc_1.moveStoredFileAttrs)(node.source, destSource);
226
+ (0, comments_1.getCommentFor)(node.source).then(c => {
227
+ if (!c)
228
+ return;
229
+ void (0, comments_1.setCommentFor)(node.source, '');
230
+ void (0, comments_1.setCommentFor)(destSource, c);
231
+ });
232
+ return {};
233
+ }
234
+ catch (e) {
235
+ throw new apiMiddleware_1.ApiError(const_1.HTTP_SERVER_ERROR, e);
235
236
  }
236
- return;
237
- }
238
- catch (e) {
239
- throw new apiMiddleware_1.ApiError(const_1.HTTP_SERVER_ERROR, e);
240
237
  }
241
238
  }
package/src/index.js CHANGED
@@ -25,6 +25,7 @@ const config_1 = require("./config");
25
25
  const assert_1 = require("assert");
26
26
  const lodash_1 = __importDefault(require("lodash"));
27
27
  const misc_1 = require("./misc");
28
+ const node_crypto_1 = require("node:crypto");
28
29
  const selfCheck_1 = require("./selfCheck");
29
30
  const acme_1 = require("./acme");
30
31
  require("./geo");
@@ -41,7 +42,7 @@ if (new config_1.Version(process.versions.node).olderThan('18.15.0')) {
41
42
  process.title = 'HFS ' + const_1.VERSION;
42
43
  misc_1.httpStream.defaultUA = 'HFS';
43
44
  const keys = process.env.COOKIE_SIGN_KEYS?.split(',')
44
- || [(0, misc_1.randomId)(30)]; // randomness at start gives some extra security, btu also invalidates existing sessions
45
+ || [(0, node_crypto_1.randomBytes)(32).toString('base64url')]; // cookie signatures need randomness that cannot be reconstructed from observable Math.random() output
45
46
  exports.app = new koa_1.default({ keys });
46
47
  exports.app.use(middlewares_1.sessionMiddleware)
47
48
  .use(selfCheck_1.selfCheckMiddleware)
package/src/lang.js CHANGED
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.normalizeLangCode = normalizeLangCode;
6
7
  exports.code2file = code2file;
7
8
  exports.file2code = file2code;
8
9
  exports.getLangData = getLangData;
@@ -18,6 +19,10 @@ const path_1 = require("path");
18
19
  const lodash_1 = __importDefault(require("lodash"));
19
20
  const PREFIX = 'hfs-lang-';
20
21
  const SUFFIX = '.json';
22
+ function normalizeLangCode(code) {
23
+ code = code.toLowerCase().split(';', 1)[0].trim();
24
+ return /^[a-z]{2,3}(-[a-z0-9]{2,8})*$/.test(code) ? code : '';
25
+ }
21
26
  function code2file(code) {
22
27
  return PREFIX + code.toLowerCase() + SUFFIX;
23
28
  }
@@ -35,7 +40,7 @@ async function getLangData(ctxOrLangCsv) {
35
40
  }
36
41
  const csv = ctxOrLangCsv.toLowerCase();
37
42
  return cache.try(csv, async () => {
38
- const langs = csv.split(',');
43
+ const langs = csv.split(',').map(normalizeLangCode).filter(Boolean);
39
44
  const ret = {};
40
45
  let i = 0;
41
46
  while (i < langs.length) {
@@ -26,7 +26,8 @@ config_1.configReady.then(async (startedWithoutConfig) => {
26
26
  if (!const_1.IS_WINDOWS || !startedWithoutConfig)
27
27
  return;
28
28
  // try to read Windows system setting for proxy
29
- const out = await (0, util_os_1.reg)('query', 'HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings');
29
+ const out = await (0, util_os_1.reg)('query', 'HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings')
30
+ .catch(() => '');
30
31
  if (!Number(/ProxyEnable\s+\w+\s+(.+)/.exec(out)?.[1]))
31
32
  return;
32
33
  const read = /ProxyServer\s+\w+\s+(.+)/.exec(out)?.[1];
package/src/util-files.js CHANGED
@@ -111,6 +111,8 @@ async function unzip(stream, cb) {
111
111
  .on('error', reject)
112
112
  .on('entry', (entry) => chain = chain.then(async () => {
113
113
  const { path, type } = entry;
114
+ if (hasDirTraversal(path))
115
+ return entry.autodrain().promise();
114
116
  const dest = await (0, cross_1.try_)(() => cb(path), e => console.warn(String(e)));
115
117
  if (!dest || type !== 'File')
116
118
  return entry.autodrain().promise();