hfs 3.2.0 → 3.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/assets/{af-BcngPxum.js → af-BDoqNBMg.js} +1 -1
- package/admin/assets/{am-DtFo7gXc.js → am-DXBvKJ3X.js} +1 -1
- package/admin/assets/{ar-B_EQ0gOA.js → ar-BJIoxKTh.js} +1 -1
- package/admin/assets/{ar-dz-C7XYleW9.js → ar-dz-C9l3uc_3.js} +1 -1
- package/admin/assets/{ar-iq-BfQJc2dx.js → ar-iq-DKH8u2lX.js} +1 -1
- package/admin/assets/{ar-kw-0U1JfQOh.js → ar-kw-D3gJalQp.js} +1 -1
- package/admin/assets/{ar-ly-zXio0U_R.js → ar-ly-BZJzWFeR.js} +1 -1
- package/admin/assets/{ar-ma-RnCHj7rY.js → ar-ma-DabiOCr0.js} +1 -1
- package/admin/assets/{ar-sa-CMO7zpcn.js → ar-sa-C7suzSCY.js} +1 -1
- package/admin/assets/{ar-tn-BKftC1Mu.js → ar-tn-BvBucEx0.js} +1 -1
- package/admin/assets/{az-AiZRgUb5.js → az-CPUppH2M.js} +1 -1
- package/admin/assets/{be-y6bzPWFN.js → be-vzvhX2dl.js} +1 -1
- package/admin/assets/{bg-BisLARft.js → bg-09Xbj_Y3.js} +1 -1
- package/admin/assets/{bi-48sz9hUu.js → bi-CvhiuiE9.js} +1 -1
- package/admin/assets/{bm-Bs6BVzFS.js → bm-DtJAZAkZ.js} +1 -1
- package/admin/assets/{bn-CyEiX_eK.js → bn-Dnzh2x6I.js} +1 -1
- package/admin/assets/{bn-bd-_Q2I_DOn.js → bn-bd-xEy4797g.js} +1 -1
- package/admin/assets/{bo-Ue1q-9BD.js → bo-vuPmptG3.js} +1 -1
- package/admin/assets/{br-Bb9l-ihS.js → br-C9xH4OD3.js} +1 -1
- package/admin/assets/{bs-BPmB5n9t.js → bs-BB_uCUp1.js} +1 -1
- package/admin/assets/{ca-B_r4lj3j.js → ca-D7LKaf98.js} +1 -1
- package/admin/assets/{cs-CyhhYDkg.js → cs-DMFTNdNC.js} +1 -1
- package/admin/assets/{cv-ulbhiGq8.js → cv-DNUjJwnO.js} +1 -1
- package/admin/assets/{cy-C3WqFe_5.js → cy-qmAOTPwC.js} +1 -1
- package/admin/assets/{da-DZLHh8Xm.js → da-DDX54iM9.js} +1 -1
- package/admin/assets/{de-clnjk21u.js → de-BBmlsfbM.js} +1 -1
- package/admin/assets/{de-at-CCxj6Bp4.js → de-at-CuMZqYfu.js} +1 -1
- package/admin/assets/{de-ch-CM8icK9J.js → de-ch-s8OXKb-5.js} +1 -1
- package/admin/assets/{dist-Cvm-5z2_.js → dist-CHP3cW_n.js} +1 -1
- package/admin/assets/{dv-X1dg-Sap.js → dv-Cjs3QDBN.js} +1 -1
- package/admin/assets/{el-Df4pHDZ3.js → el-BsAOrUDP.js} +1 -1
- package/admin/assets/{en-rCfYK-2n.js → en-DQ460ET7.js} +1 -1
- package/admin/assets/{en-au-Ct_0mddK.js → en-au-8tMHM2OT.js} +1 -1
- package/admin/assets/{en-ca-CQqkpac1.js → en-ca-c9jM4M_8.js} +1 -1
- package/admin/assets/{en-in-DVbA81wM.js → en-gb-unFIXx9f.js} +1 -1
- package/admin/assets/{en-ie-CFOYG_Tt.js → en-ie-D4_e3kV6.js} +1 -1
- package/admin/assets/{en-il-DgoPI8Zb.js → en-il-BoaZOven.js} +1 -1
- package/admin/assets/{en-tt-BAyEMcr3.js → en-in-D2ULzXMp.js} +1 -1
- package/admin/assets/{en-nz-D4INWdbm.js → en-nz-grrmB3dg.js} +1 -1
- package/admin/assets/{en-sg-_a9wehQB.js → en-sg-Cmqxpoir.js} +1 -1
- package/admin/assets/{en-gb-BL2mYabO.js → en-tt-Cn72OR4N.js} +1 -1
- package/admin/assets/{eo-CMQMiEUh.js → eo-Cqxmc0TT.js} +1 -1
- package/admin/assets/{es-B7YOeh-c.js → es-CkjKdFZ3.js} +1 -1
- package/admin/assets/{es-do-Mq8WNgVk.js → es-do-CTcTshup.js} +1 -1
- package/admin/assets/{es-mx-B_RMTunI.js → es-mx-DMXgMMxs.js} +1 -1
- package/admin/assets/{es-pr-uqTuZpUr.js → es-pr-DNCV91L3.js} +1 -1
- package/admin/assets/{es-us-D598JSxH.js → es-us-C7o2mlIH.js} +1 -1
- package/admin/assets/{esm-C8k0V7Wx.js → esm-DvUbRuYx.js} +1 -1
- package/admin/assets/{et-B6n19kok.js → et-DaPpH-gK.js} +1 -1
- package/admin/assets/{eu-CNx2Jk1_.js → eu-DfKyFruu.js} +1 -1
- package/admin/assets/{fa-DGIot4qi.js → fa-xWrBjePb.js} +1 -1
- package/admin/assets/{fi-DaJl-Yrn.js → fi-BOWDMsDS.js} +1 -1
- package/admin/assets/{fo-DgxLc8Be.js → fo-B3FupW8R.js} +1 -1
- package/admin/assets/{fr-DoSFLSk1.js → fr-DZBDBkwp.js} +1 -1
- package/admin/assets/{fr-ca-XcVXSZm2.js → fr-ca-CRePPJJ5.js} +1 -1
- package/admin/assets/{fr-ch-CY_qBJu6.js → fr-ch-pFKvYU8D.js} +1 -1
- package/admin/assets/{fy-CwP6pdZi.js → fy-0k7RzHUH.js} +1 -1
- package/admin/assets/{ga-BtKmIiqR.js → ga-D31rB2ys.js} +1 -1
- package/admin/assets/{gd-BdHmijxR.js → gd-CbgY-FFE.js} +1 -1
- package/admin/assets/{gl-C5lGSMcI.js → gl-DrtvS9gt.js} +1 -1
- package/admin/assets/{gom-latn-DLun_Cyc.js → gom-latn-Dkke3GyE.js} +1 -1
- package/admin/assets/{gu-BBxROGEb.js → gu-BlEipYhR.js} +1 -1
- package/admin/assets/{he-DseTadyh.js → he-BrHT6OLB.js} +1 -1
- package/admin/assets/{hi-DM8DF6aA.js → hi-Bx0zlAgr.js} +1 -1
- package/admin/assets/{hr-Dcrr0w28.js → hr-CoFYGbr6.js} +1 -1
- package/admin/assets/{ht-B6ek9t1g.js → ht-Df5xKo4a.js} +1 -1
- package/admin/assets/{hu-TGqjozNS.js → hu-BFTN3q6-.js} +1 -1
- package/admin/assets/{hy-am-D5nMz6Yy.js → hy-am-DuZTJQed.js} +1 -1
- package/admin/assets/{id-B9LrfD64.js → id-DBZ5nPkf.js} +1 -1
- package/admin/assets/{index-CMfN0pC5.js → index-BGIe1xaR.js} +57 -57
- package/admin/assets/index-eeRX25da.css +1 -0
- package/admin/assets/{is-CHPxwKd7.js → is-CmeHm47B.js} +1 -1
- package/admin/assets/{it-D1Dtu0nW.js → it-Cv3fjOA9.js} +1 -1
- package/admin/assets/{it-ch-C1zLR1pY.js → it-ch-DCTyHA3T.js} +1 -1
- package/admin/assets/{ja-DNNRQqi9.js → ja-DHNVXAM5.js} +1 -1
- package/admin/assets/{jv-ByMRyHLP.js → jv-BdNIxhWv.js} +1 -1
- package/admin/assets/{ka-BaIaZhNb.js → ka-D-joD0QB.js} +1 -1
- package/admin/assets/{kk-CdG5pC8o.js → kk-8wRNNjxz.js} +1 -1
- package/admin/assets/{km-CQGImLMP.js → km-dUWOg1uK.js} +1 -1
- package/admin/assets/{kn-i6v2JbuU.js → kn-CwQbzel0.js} +1 -1
- package/admin/assets/{ko-B7ZMJY_D.js → ko-D_gn9Sfw.js} +1 -1
- package/admin/assets/{ku-Du7Lj5Ai.js → ku-Dh3MRML3.js} +1 -1
- package/admin/assets/{ky-BFcjDu3n.js → ky-CWYuRvil.js} +1 -1
- package/admin/assets/{lb-kUg2Mh9U.js → lb-Cc2xsSIx.js} +1 -1
- package/admin/assets/{lo-CP6L0V2h.js → lo-CkwNFDBz.js} +1 -1
- package/admin/assets/{lt-BIgC7Saa.js → lt-HWyFDLXu.js} +1 -1
- package/admin/assets/{lv-BOs7b0pg.js → lv-C7Zx3OLO.js} +1 -1
- package/admin/assets/{me-DYHaVe93.js → me-DH3AqnfF.js} +1 -1
- package/admin/assets/{mi-Drez7lLe.js → mi-DMmUry6m.js} +1 -1
- package/admin/assets/{mk-BK-ldTLL.js → mk-D6MNZrzX.js} +1 -1
- package/admin/assets/{ml-DaF3pZLU.js → ml-B_ur8Zqf.js} +1 -1
- package/admin/assets/{mn-nHbNPFAG.js → mn-DeL8Ry7x.js} +1 -1
- package/admin/assets/{mr-Wwf63eZM.js → mr-C01qRXFL.js} +1 -1
- package/admin/assets/{ms-BIXjE3b0.js → ms-DFUZJzOm.js} +1 -1
- package/admin/assets/{ms-my-CMG5GLpT.js → ms-my-CUYHkebs.js} +1 -1
- package/admin/assets/{mt-SRQPZ5le.js → mt-CE8t5jSj.js} +1 -1
- package/admin/assets/{my-DQYSisI9.js → my-Df96A8jZ.js} +1 -1
- package/admin/assets/{nb-BU06Sx9X.js → nb-D0837ewu.js} +1 -1
- package/admin/assets/{ne-BMChpdeq.js → ne-BdK5TR0R.js} +1 -1
- package/admin/assets/{nl-be-fI6vO9FU.js → nl-be-BfVC0cur.js} +1 -1
- package/admin/assets/{nl-CXWGdKg5.js → nl-oYKmSma6.js} +1 -1
- package/admin/assets/{nn-CkojFw3N.js → nn-IEUPnyc8.js} +1 -1
- package/admin/assets/{oc-lnc-BKfjK0lp.js → oc-lnc-g_wSIROr.js} +1 -1
- package/admin/assets/{pa-in-BT8DvsfB.js → pa-in-gWhcLmZE.js} +1 -1
- package/admin/assets/{pl-D0Cpx-wE.js → pl-H3-LoxVn.js} +1 -1
- package/admin/assets/{pt-br-DPY09O20.js → pt-br-B8UcNR6_.js} +1 -1
- package/admin/assets/{pt-DD7k0D3o.js → pt-hiX8RqVw.js} +1 -1
- package/admin/assets/{rn-DWaRj8UF.js → rn-BKupViLr.js} +1 -1
- package/admin/assets/{ro-X4IcZOVs.js → ro-DmhgIvml.js} +1 -1
- package/admin/assets/{ru-DqdQ6YYP.js → ru-CcpO-b8g.js} +1 -1
- package/admin/assets/{rw-q8Mu5eAK.js → rw-DWX_5ZK0.js} +1 -1
- package/admin/assets/{sd-WzFJ-b9p.js → sd-Dat8YgLw.js} +1 -1
- package/admin/assets/{se-B0Nt39h7.js → se-nTBYCwx3.js} +1 -1
- package/admin/assets/{sha512-ChZ-ZgQF.js → sha512-CZz40GwW.js} +1 -1
- package/admin/assets/{si-D7WSpsGm.js → si-DG88w5El.js} +1 -1
- package/admin/assets/{sk-wIcTcNYq.js → sk-s5FxW36J.js} +1 -1
- package/admin/assets/{sl-k_cEMlZY.js → sl-B-HyGrpA.js} +1 -1
- package/admin/assets/{sq-D145xgL0.js → sq-DPFtfEC8.js} +1 -1
- package/admin/assets/{sr-hqDfAF1G.js → sr-bBPg1zz4.js} +1 -1
- package/admin/assets/{sr-cyrl-CEGYotNk.js → sr-cyrl-cXkYHMcP.js} +1 -1
- package/admin/assets/{ss-DnoCncEs.js → ss-7nSqXJN7.js} +1 -1
- package/admin/assets/{sv-DB81pVMk.js → sv-B8mG1QK4.js} +1 -1
- package/admin/assets/{sv-fi-DYpZcfvJ.js → sv-fi-CotGRXSH.js} +1 -1
- package/admin/assets/{sw-DjXd57gN.js → sw-fAxU-Uck.js} +1 -1
- package/admin/assets/{ta-C3wYK0Z3.js → ta-Dl0Z1pan.js} +1 -1
- package/admin/assets/{te-BD4lPDF4.js → te-DmcKasFF.js} +1 -1
- package/admin/assets/{tet-BDurv1U8.js → tet-D6mmvYpQ.js} +1 -1
- package/admin/assets/{tg-Bm80AbZW.js → tg-39Hf2-oO.js} +1 -1
- package/admin/assets/{th-DflYkQDK.js → th-BSmTJSFN.js} +1 -1
- package/admin/assets/{tk-rvsm_JbC.js → tk-m85E5igC.js} +1 -1
- package/admin/assets/{tl-ph-Bwc5zmby.js → tl-ph-BlYxVvNt.js} +1 -1
- package/admin/assets/{tlh-HKfEoZ7k.js → tlh-D1POnIeE.js} +1 -1
- package/admin/assets/{tr-VizeBtG6.js → tr-BurtfrLy.js} +1 -1
- package/admin/assets/{tzl-BwO5wCIa.js → tzl-BvyD0lOf.js} +1 -1
- package/admin/assets/{tzm-BG7lewWS.js → tzm-DZHS0dK6.js} +1 -1
- package/admin/assets/{tzm-latn-CrnUHIcs.js → tzm-latn-yNW7CNCH.js} +1 -1
- package/admin/assets/{ug-cn-BK--SUxc.js → ug-cn-rxs2pf5Y.js} +1 -1
- package/admin/assets/{uk-AJsAkG20.js → uk-CgZM-NnA.js} +1 -1
- package/admin/assets/{ur-vO2PrLFV.js → ur-YxIR8yYD.js} +1 -1
- package/admin/assets/{uz-CU8j0C84.js → uz-CE9QsQMG.js} +1 -1
- package/admin/assets/{uz-latn-B1U_SldD.js → uz-latn-DiVdSW6G.js} +1 -1
- package/admin/assets/{vi-Br-FE8zw.js → vi-DKARV6qf.js} +1 -1
- package/admin/assets/{x-pseudo-BEc6ucZj.js → x-pseudo-BuAdOrXQ.js} +1 -1
- package/admin/assets/{yo-DL2G7So6.js → yo-BcB85DhC.js} +1 -1
- package/admin/assets/{zh-DNL75MTZ.js → zh-DLmxfxzl.js} +1 -1
- package/admin/assets/{zh-cn-BBd_VD1y.js → zh-cn-ILRADZJi.js} +1 -1
- package/admin/assets/{zh-hk-CNn_dGjQ.js → zh-hk-fT7fQk9_.js} +1 -1
- package/admin/assets/{zh-tw-B7cjw6lq.js → zh-tw-NqRXGP6v.js} +1 -1
- package/admin/index.html +2 -2
- package/central.json +1 -4
- package/frontend/assets/{dist-legacy-CFPnugjA.js → dist-legacy-BPToXNXu.js} +1 -1
- package/frontend/assets/index-legacy-CmusDwvl.js +1 -0
- package/frontend/assets/{lib-legacy-CCULxbTk.js → lib-legacy-CBk-_G90.js} +1 -1
- package/frontend/assets/{sha512-legacy-D8zcvvqa.js → sha512-legacy-CWrR2rkQ.js} +1 -1
- package/frontend/index.html +1 -1
- package/npm-shrinkwrap.json +33 -29
- package/package.json +6 -5
- package/src/api.auth.js +25 -7
- package/src/api.lang.js +1 -1
- package/src/apiMiddleware.js +2 -3
- package/src/auth.js +4 -1
- package/src/basicWeb.js +1 -1
- package/src/block.js +4 -3
- package/src/connections.js +3 -2
- package/src/cross.js +1 -1
- package/src/fileAttr.js +5 -1
- package/src/index.js +2 -1
- package/src/lang.js +6 -1
- package/src/langs/embedded.js +2 -1
- package/src/langs/hfs-lang-pl.json +181 -0
- package/src/listen.js +1 -1
- package/src/middlewares.js +4 -2
- package/src/nat.js +4 -2
- package/src/outboundProxy.js +3 -1
- package/src/selfCheck.js +4 -4
- package/src/serveFile.js +5 -3
- package/src/upload.js +1 -1
- package/src/vfs.js +8 -4
- package/src/webdav.js +12 -0
- package/src/zip.js +3 -2
- package/admin/assets/index-BGZpazPR.css +0 -1
- package/frontend/assets/index-legacy-CCOgiwQJ.js +0 -1
|
@@ -1 +1 @@
|
|
|
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
|
+
System.register(["./index-legacy-CmusDwvl.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-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 _})))}()}))())}}}));
|
|
1
|
+
System.register(["./index-legacy-CmusDwvl.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 _})))}()}))())}}}));
|
package/frontend/index.html
CHANGED
|
@@ -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-
|
|
28
|
+
<script crossorigin id="vite-legacy-entry" data-src="/assets/index-legacy-CmusDwvl.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
|
|
29
29
|
</body>
|
|
30
30
|
</html>
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hfs",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "hfs",
|
|
9
|
-
"version": "3.2.
|
|
9
|
+
"version": "3.2.2",
|
|
10
10
|
"license": "GPL-3.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@gregoranders/csv": "^0.0.13",
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
"node_modules/@nodable/entities": {
|
|
60
|
-
"version": "
|
|
61
|
-
"resolved": "https://registry.npmjs.org/@nodable/entities/-/entities-
|
|
62
|
-
"integrity": "sha512-
|
|
60
|
+
"version": "3.0.0",
|
|
61
|
+
"resolved": "https://registry.npmjs.org/@nodable/entities/-/entities-3.0.0.tgz",
|
|
62
|
+
"integrity": "sha512-8L9xFeTYKhm49xfIypoe2W5wV1m/3Z58kT+7kR9A8OyFxcPduI4VmxaUMQyKYrRjUoLLSXv6EKKID5Tvj9cUVw==",
|
|
63
63
|
"funding": [
|
|
64
64
|
{
|
|
65
65
|
"type": "github",
|
|
@@ -828,9 +828,9 @@
|
|
|
828
828
|
}
|
|
829
829
|
},
|
|
830
830
|
"node_modules/fast-xml-builder": {
|
|
831
|
-
"version": "1.
|
|
832
|
-
"resolved": "https://registry.npmjs.org/fast-xml-builder/-/fast-xml-builder-1.
|
|
833
|
-
"integrity": "sha512-
|
|
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.
|
|
843
|
-
"xml-naming": "^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.
|
|
848
|
-
"resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.
|
|
849
|
-
"integrity": "sha512-
|
|
847
|
+
"version": "5.10.1",
|
|
848
|
+
"resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.10.1.tgz",
|
|
849
|
+
"integrity": "sha512-IEMIf7298kXuZSRFoGfMYrl7is8LpavODgbNz1cwIudv7KwVFnuU+UsMporfq6PD6aXSlawZlARiA3UywCTfMw==",
|
|
850
850
|
"funding": [
|
|
851
851
|
{
|
|
852
852
|
"type": "github",
|
|
@@ -855,12 +855,12 @@
|
|
|
855
855
|
],
|
|
856
856
|
"license": "MIT",
|
|
857
857
|
"dependencies": {
|
|
858
|
-
"@nodable/entities": "^
|
|
858
|
+
"@nodable/entities": "^3.0.0",
|
|
859
859
|
"fast-xml-builder": "^1.2.0",
|
|
860
|
-
"is-unsafe": "^
|
|
861
|
-
"path-expression-matcher": "^1.
|
|
860
|
+
"is-unsafe": "^2.0.0",
|
|
861
|
+
"path-expression-matcher": "^1.6.2",
|
|
862
862
|
"strnum": "^2.4.1",
|
|
863
|
-
"xml-naming": "^0.
|
|
863
|
+
"xml-naming": "^0.3.0"
|
|
864
864
|
},
|
|
865
865
|
"bin": {
|
|
866
866
|
"fxparser": "src/cli/cli.js"
|
|
@@ -1303,9 +1303,9 @@
|
|
|
1303
1303
|
"license": "MIT"
|
|
1304
1304
|
},
|
|
1305
1305
|
"node_modules/is-unsafe": {
|
|
1306
|
-
"version": "
|
|
1307
|
-
"resolved": "https://registry.npmjs.org/is-unsafe/-/is-unsafe-
|
|
1308
|
-
"integrity": "sha512-
|
|
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",
|
|
@@ -1504,12 +1504,16 @@
|
|
|
1504
1504
|
}
|
|
1505
1505
|
},
|
|
1506
1506
|
"node_modules/media-typer": {
|
|
1507
|
-
"version": "1.1.
|
|
1508
|
-
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.
|
|
1509
|
-
"integrity": "sha512-
|
|
1507
|
+
"version": "1.1.1",
|
|
1508
|
+
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.1.tgz",
|
|
1509
|
+
"integrity": "sha512-yz3xRaG20c6/BOzvYoDaGtPmGscs7YivItZEEqe6GbwNfHuxu9YNmvnEkMzKldAGY4/80pRcQRZSEnhquk9XuQ==",
|
|
1510
1510
|
"license": "MIT",
|
|
1511
1511
|
"engines": {
|
|
1512
1512
|
"node": ">= 0.8"
|
|
1513
|
+
},
|
|
1514
|
+
"funding": {
|
|
1515
|
+
"type": "opencollective",
|
|
1516
|
+
"url": "https://opencollective.com/express"
|
|
1513
1517
|
}
|
|
1514
1518
|
},
|
|
1515
1519
|
"node_modules/merge2": {
|
|
@@ -1649,9 +1653,9 @@
|
|
|
1649
1653
|
}
|
|
1650
1654
|
},
|
|
1651
1655
|
"node_modules/path-expression-matcher": {
|
|
1652
|
-
"version": "1.6.
|
|
1653
|
-
"resolved": "https://registry.npmjs.org/path-expression-matcher/-/path-expression-matcher-1.6.
|
|
1654
|
-
"integrity": "sha512-
|
|
1656
|
+
"version": "1.6.2",
|
|
1657
|
+
"resolved": "https://registry.npmjs.org/path-expression-matcher/-/path-expression-matcher-1.6.2.tgz",
|
|
1658
|
+
"integrity": "sha512-enSlaiat05iasnzmgNxRj8reFdj3puY2QpNgP1aPIaVfT6nn9ICuPoFlKHk8EN22HcwewshO+mN2DGbkCEOtqQ==",
|
|
1655
1659
|
"funding": [
|
|
1656
1660
|
{
|
|
1657
1661
|
"type": "github",
|
|
@@ -2036,9 +2040,9 @@
|
|
|
2036
2040
|
}
|
|
2037
2041
|
},
|
|
2038
2042
|
"node_modules/xml-naming": {
|
|
2039
|
-
"version": "0.
|
|
2040
|
-
"resolved": "https://registry.npmjs.org/xml-naming/-/xml-naming-0.
|
|
2041
|
-
"integrity": "sha512-
|
|
2043
|
+
"version": "0.3.0",
|
|
2044
|
+
"resolved": "https://registry.npmjs.org/xml-naming/-/xml-naming-0.3.0.tgz",
|
|
2045
|
+
"integrity": "sha512-ghig2TBE/H11aOVgmahA3MhimvkBr6JIYknH/Dhdk10nXwdbIqBJsbfMxpvFPG8bAw77gN29aQWvKpmVoPlvPQ==",
|
|
2042
2046
|
"funding": [
|
|
2043
2047
|
{
|
|
2044
2048
|
"type": "github",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hfs",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.2",
|
|
4
4
|
"description": "HTTP File Server",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"file server",
|
|
@@ -19,12 +19,13 @@
|
|
|
19
19
|
"build-server": "rm -rf dist/src dist/plugins && npm i && tsc && touch package.json && cp -v -r package.json central.json README* LICENSE* hfs.ico plugins dist && find dist -name .DS_Store -o -name storage -exec rm -rf {} + && node scripts/afterbuild.js",
|
|
20
20
|
"build-frontend": "npm run build --workspace=frontend",
|
|
21
21
|
"build-admin": "npm run build --workspace=admin",
|
|
22
|
-
"
|
|
23
|
-
"server-for-test
|
|
22
|
+
"prepare-test": "mkdir -p tests/work tests/tmp && cp tests/config.yaml tests/work/config.yaml && cp tests/alfa.txt tests/tmp/alfa.txt",
|
|
23
|
+
"server-for-test": "npm run prepare-test && node dist/src --cwd tests/work --config tests/work/config.yaml --debug",
|
|
24
|
+
"server-for-test-dev": "npm run prepare-test && cross-env DEV=1 FRONTEND_PROXY=3005 ADMIN_PROXY=3006 nodemon --ignore tests/ --watch src -e ts,tsx --exec tsx src -- --cwd tests/work --config tests",
|
|
24
25
|
"test": "sh -c 'npm run port-is-free >/dev/null && { echo \"no server\"; exit 1; }; node --import tsx --test \"$@\" tests/test.ts' --",
|
|
25
|
-
"test-with-server": "sh -c 'npm run port-is-free && tsc && rm -rf tests/work tests/tmp &&
|
|
26
|
+
"test-with-server": "sh -c 'npm run port-is-free && tsc && rm -rf tests/work tests/tmp && npm run prepare-test && (node dist/src --cwd tests/work --config tests/work/config.yaml & echo $! > .server_pid) && sleep 2 && node --import tsx --test \"$@\" tests/test.ts; _exit=$?; if [ -f ./.server_pid ]; then SERVER_PID=$(cat ./.server_pid); kill \"$SERVER_PID\" 2>/dev/null || true; rm -f ./.server_pid; fi; exit $_exit' --",
|
|
26
27
|
"port-is-free": "node -e \"const port=process.argv[1]||8081;process.exit(await fetch('http://localhost:'+port).then(() => console.log('BUSY')||1, () => 0))\" --",
|
|
27
|
-
"test-ui": "npm run port-is-free -- 8081 && rm -rf tests/work tests/work2 && npx playwright test frontend && npx playwright test serial && npx playwright test admin-vfs",
|
|
28
|
+
"test-ui": "npm run port-is-free -- 8081 && rm -rf tests/work tests/work2 tests/tmp && npx playwright test frontend && npx playwright test serial && npx playwright test admin-vfs",
|
|
28
29
|
"test-with-ui": "sh -c 'npm run port-is-free -- 3005 && npm run start-frontend & npm run port-is-free -- 3006 && npm run start-admin & cross-env TEST_WITH_UI=1 npx playwright test --ui \"$@\"' --",
|
|
29
30
|
"pub": "cd dist && npm publish",
|
|
30
31
|
"dist": "STASHED=; STASH_BEFORE=$(git rev-parse -q --verify refs/stash || true); git update-index -q --refresh; if ! git diff-index --quiet HEAD --; then git stash push -m 'dist' || exit $?; STASH_AFTER=$(git rev-parse -q --verify refs/stash || true); [ \"$STASH_AFTER\" != \"$STASH_BEFORE\" ] && STASHED=1; fi; npm audit --omit=dev --audit-level=moderate && CI=1 FORCE_COLOR=1 npm run dist-uncommitted; EXIT_CODE=$?; if [ -n \"$STASHED\" ]; then git stash pop || exit $?; fi; exit $EXIT_CODE",
|
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 (
|
|
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
|
|
69
|
+
return unauthorized((0, perm_1.accountIsDisabled)(account) ? 'Account disabled' : undefined);
|
|
68
70
|
}
|
|
69
|
-
if ((0, middlewares_1.failAllowNet)(ctx, account))
|
|
70
|
-
return
|
|
71
|
-
try {
|
|
72
|
-
const { srpServer, ...rest } = await (0, auth_1.srpServerStep1)(account);
|
|
73
|
-
|
|
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 (
|
|
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
|
}
|
package/src/apiMiddleware.js
CHANGED
|
@@ -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 =
|
|
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
|
|
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/auth.js
CHANGED
|
@@ -106,7 +106,10 @@ async function setLoggedIn(ctx, username) {
|
|
|
106
106
|
if (!a)
|
|
107
107
|
return;
|
|
108
108
|
await events_1.default.emitAsync('finalizingLogin', { ctx, username, inputs: { ...ctx.state.params, ...ctx.query } });
|
|
109
|
-
|
|
109
|
+
const normalized = (0, perm_1.normalizeUsername)(username);
|
|
110
|
+
if (s.username !== normalized)
|
|
111
|
+
delete s.allowNet; // discard restrictions cached for another identity before replacing the session account
|
|
112
|
+
s.username = normalized;
|
|
110
113
|
s.ts = Date.now();
|
|
111
114
|
const k = cross_const_1.ALLOW_SESSION_IP_CHANGE;
|
|
112
115
|
s[k] = k in ctx.query || Boolean(ctx.state.params?.[k]) || undefined; // login APIs will get ctx.state.params, others can rely on ctx.query
|
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/block.js
CHANGED
|
@@ -20,9 +20,10 @@ exports.block = (0, config_1.defineConfig)('block', [], rules => {
|
|
|
20
20
|
rule.expire &&= new Date(rule.expire);
|
|
21
21
|
return !rule.disabled && (rule.expire || now) >= now && (0, misc_1.makeNetMatcher)(rule.ip);
|
|
22
22
|
}));
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
setTimeout(() => {
|
|
24
|
+
for (const { socket, ip } of (0, connections_1.getConnections)()) // reapply new block to existing connections
|
|
25
|
+
applyBlock(socket, ip);
|
|
26
|
+
});
|
|
26
27
|
return ret;
|
|
27
28
|
});
|
|
28
29
|
function applyBlock(socket, ip = (0, connections_1.normalizeIp)(socket.remoteAddress || '')) {
|
package/src/connections.js
CHANGED
|
@@ -95,8 +95,9 @@ function disconnect(what, logMessage = '') {
|
|
|
95
95
|
console.debug("Disconnection:", logMessage, ip);
|
|
96
96
|
(0, geo_1.ip2country)(ip).then(res => {
|
|
97
97
|
const rec = { ip, country: res || undefined, ts: new Date, msg: logMessage || undefined };
|
|
98
|
-
exports.disconnectionsLog.
|
|
99
|
-
exports.disconnectionsLog.length
|
|
98
|
+
exports.disconnectionsLog.push(rec);
|
|
99
|
+
if (exports.disconnectionsLog.length > 1000)
|
|
100
|
+
exports.disconnectionsLog.shift();
|
|
100
101
|
events_1.default.emit('disconnection', rec);
|
|
101
102
|
});
|
|
102
103
|
return what.destroy();
|
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);
|
package/src/fileAttr.js
CHANGED
|
@@ -45,11 +45,15 @@ async function loadFileAttr(path, k) {
|
|
|
45
45
|
.then((x) => x === '' ? undefined : (0, cross_1.tryJson)(String(x)), () => exports.fileAttrDb.isOpen() ? exports.fileAttrDb.get(fileAttrKey(path, k)).catch(console.error) : null)
|
|
46
46
|
?? undefined; // normalize, as we get null instead of undefined on windows
|
|
47
47
|
}
|
|
48
|
+
// remove file-attr for files that don't exist anymore
|
|
48
49
|
async function purgeFileAttr() {
|
|
49
50
|
let n = 0;
|
|
50
51
|
await Promise.all(Array.from(exports.fileAttrDb.keys()).map(k => {
|
|
51
52
|
const fn = splitFileAttrKey(k)?.filePath;
|
|
52
|
-
return fn && (0, promises_1.access)(fn).catch(() =>
|
|
53
|
+
return fn && (0, promises_1.access)(fn).catch(() => {
|
|
54
|
+
n++;
|
|
55
|
+
return exports.fileAttrDb.del(k);
|
|
56
|
+
});
|
|
53
57
|
}));
|
|
54
58
|
if (n)
|
|
55
59
|
await exports.fileAttrDb.rewrite();
|
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,
|
|
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) {
|