@zeniai/web-app-ui 5.0.85-dev → 5.0.85-next
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/AddressRoutes-BTrd57s2.js +1 -0
- package/dist/assets/{AddressScreen-iadLC3wL.js → AddressScreen-BvMQB8FF.js} +1 -1
- package/dist/assets/{AiCfoScreen-DnNvzRXg.js → AiCfoScreen-DNmotkk5.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-aEVqsC6X.js → BillPayApprovalRoutes-BqycijzY.js} +1 -1
- package/dist/assets/{BillPayRoutes-OhgtAqt5.js → BillPayRoutes-DcPzz5vY.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-Bpcf42MJ.js → BusinessVerificationPageScreen-x0C706ZJ.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-CC3rUcEx.js → ChargeCardRoutes-BZN_rT-F.js} +1 -1
- package/dist/assets/{CompanyPassportScreen-Bo8U2F7k.js → CompanyPassportScreen-D6yPFCfS.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-B8zFmWwE.js → ConnectionAuthScreen-BpVpKcdb.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-NQu_T9jk.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-oUdkgm9z.js → CustomerOnboardingRoutes-BGlngZ6e.js} +1 -1
- package/dist/assets/{DashboardRoutes-CIv9TwmX.js → DashboardRoutes-W9H9Wk5O.js} +1 -1
- package/dist/assets/{DefaultTenantHome-CzfX63rA.js → DefaultTenantHome-CaDzFVa8.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-cxtSnsYA.js → DomesticWireDetailScreen-D0UoKqzj.js} +1 -1
- package/dist/assets/{DrawerScreen-ZPO4Ypa0.js → DrawerScreen-DTAMBHDh.js} +1 -1
- package/dist/assets/{EntityDetailRoutes-DmfoaR8r.js → EntityDetailRoutes-CwZL3vFL.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-70ubL0r1.js → ExpenseAutomationRoutes-C8rYvumd.js} +1 -1
- package/dist/assets/{FeaturePreviewScreen-D78u7iOi.js → FeaturePreviewScreen-IL56yObW.js} +1 -1
- package/dist/assets/{HubSpotOAuthCallbackScreen-C9fFwBcJ.js → HubSpotOAuthCallbackScreen-Bn1S03Qv.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-DhAnytU9.js → MagicLinkRoutes-C5zFGH0x.js} +1 -1
- package/dist/assets/{MagicLinkSignInScreen-ni2a4_kD.js → MagicLinkSignInScreen-C_AC7KhO.js} +1 -1
- package/dist/assets/{MobileAppDrawer-DuLLFVYe.js → MobileAppDrawer-CuP4fq1B.js} +1 -1
- package/dist/assets/NotFoundScreen-YKkxofho.js +1 -0
- package/dist/assets/{NotificationRoutes-DHzbPPiF.js → NotificationRoutes-Bg72dHqS.js} +1 -1
- package/dist/assets/{OAuthConsentScreen-Dck3ttsM.js → OAuthConsentScreen-ClYHEuXL.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-j7pNIg3t.js → PandLWithForecastRoutes-DLv_fyFO.js} +1 -1
- package/dist/assets/{PeopleRoutes-BKKvfS70.js → PeopleRoutes-DYVLissD.js} +1 -1
- package/dist/assets/{PerformanceRoutes-DSCVYWBr.js → PerformanceRoutes-CGjcWKBJ.js} +1 -1
- package/dist/assets/{Preview-DHZ-1chc.js → Preview-OfbNwl97.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-eKsh6fZL.js → QBOConnectionScreen-DOLdLoS0.js} +1 -1
- package/dist/assets/{ReferralListScreen-De_dGEop.js → ReferralListScreen-vfg1s_YP.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-uuEexwT2.js → ReimbursementApprovalRoutes-jiOOsHvW.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-BOkWTXGa.js → ReimbursementApprovalRuleDetailScreen-Bbsz8QQ6.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-CcnOfRVK.js → ReimbursementRoutes-B5Sw13Ed.js} +1 -1
- package/dist/assets/{ReportsRoutes-BSCnGMpO.js → ReportsRoutes-LZJ0MKKr.js} +1 -1
- package/dist/assets/{RewardsRoutes-SW6jGQWJ.js → RewardsRoutes-D5g_M2XG.js} +1 -1
- package/dist/assets/{ScreenRoutes-D7t2GB4Z.js → ScreenRoutes-BNgaE4bd.js} +2 -2
- package/dist/assets/{SettingsRoutes-C7bM-RTm.js → SettingsRoutes-Dv_Ka7i6.js} +1 -1
- package/dist/assets/{SetupPagesScreen-BbrLzo4b.js → SetupPagesScreen-DeN_QNf8.js} +1 -1
- package/dist/assets/{SignInScreen-B8X6mEk8.js → SignInScreen-Xb-rwCEV.js} +1 -1
- package/dist/assets/{SignOutScreen-DDvMBRd7.js → SignOutScreen-7Dwf7rnU.js} +1 -1
- package/dist/assets/{TaskListScreen-CUOhqgD-.js → TaskListScreen-BwXGWL1j.js} +1 -1
- package/dist/assets/{TaskRoutes-v8AsLlq0.js → TaskRoutes-B2WWoSAP.js} +1 -1
- package/dist/assets/TransactionDetailRoutes-DY2UJC6b.js +1 -0
- package/dist/assets/{TransactionDetailScreen-718LSRWk.js → TransactionDetailScreen-CxbLldkU.js} +1 -1
- package/dist/assets/{TransactionListRoutes-BhS0v3iK.js → TransactionListRoutes-CasY9nUL.js} +1 -1
- package/dist/assets/{TreasuryRoutes-Dde0CrN8.js → TreasuryRoutes-BWDk7gT_.js} +1 -1
- package/dist/assets/{VendorsRoutes-CRJAC3dc.js → VendorsRoutes-nJ4B-tBU.js} +1 -1
- package/dist/assets/{WiseConfirmationScreen-CUB6U8zj.js → WiseConfirmationScreen-BszKriUp.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-BPbGWjLj.js → ZeniAccountRoutes-DyN4j1Qq.js} +1 -1
- package/dist/assets/{ZeniAccountStatementScreen-DOfTHOXY.js → ZeniAccountStatementScreen-BRW8WxDR.js} +1 -1
- package/dist/assets/{accountMappingHelper-DIs9XlFT.js → accountMappingHelper-4acz-SwQ.js} +1 -1
- package/dist/assets/{analytics-cU6JjHUB.js → analytics-DyMyvTxh.js} +1 -1
- package/dist/assets/{analyticsHelper-1nvJW90-.js → analyticsHelper-DN-X1P8T.js} +1 -1
- package/dist/assets/{core-CjgV1pRV.js → core-aR0qKEiV.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-N2eflqcZ.js → decodeURIComponentSafe-imXO9fsR.js} +1 -1
- package/dist/assets/{dnd-DHtwlo1Y.js → dnd-CZ0pE10o.js} +1 -1
- package/dist/assets/{empty-DDprIUHc.js → empty-9TGazCdO.js} +1 -1
- package/dist/assets/{empty-CyGd8cnQ.js → empty-DcODLT1b.js} +1 -1
- package/dist/assets/{emptyVideoElement-DNVEo2Xc.js → emptyVideoElement-BQz-nkII.js} +1 -1
- package/dist/assets/{epic-D4aEg97H.js → epic-uNwbwWI4.js} +1 -1
- package/dist/assets/{getLocaleForTenant-D5dw7iAh.js → getLocaleForTenant-DhBtn3Ee.js} +1 -1
- package/dist/assets/{index-vm-rweqa.js → index-4FSocmrF.js} +1 -1
- package/dist/assets/{index-6IUOh0lu.js → index-B7d7MSWD.js} +1 -1
- package/dist/assets/{index-DFlDlBb4.js → index-BkZ9kaZ9.js} +1 -1
- package/dist/assets/{index-CEFWvyAZ.js → index-ChczZgz4.js} +1 -1
- package/dist/assets/{index-BcVOuC0n.js → index-Cy593RGQ.js} +7 -7
- package/dist/assets/{index-BnsuU_HD.js → index-DH1VA1sJ.js} +1 -1
- package/dist/assets/{index-DLy2V-c8.js → index-ooKt2AnX.js} +1 -1
- package/dist/assets/{index-CWaji86e.js → index-zeRn3DGw.js} +2 -2
- package/dist/assets/{lexical-MibAVFD6.js → lexical-oQNXHxEc.js} +1 -1
- package/dist/assets/{liveblocks-FqlsN9l2.js → liveblocks-CLqAhud6.js} +1 -1
- package/dist/assets/{lottie-wdoglqbL.js → lottie-Bz1bpTt2.js} +1 -1
- package/dist/assets/{mui-DV0w8xOn.js → mui-BY8zvgs4.js} +1 -1
- package/dist/assets/{pathToGoBack-DjdAyrK6.js → pathToGoBack-BgMfa4Fs.js} +1 -1
- package/dist/assets/{pdf-FCPcIMVR.js → pdf-DGbhE1eo.js} +3 -3
- package/dist/assets/{pdf-lib-CMxizmxK.js → pdf-lib-BYGY-M64.js} +1 -1
- package/dist/assets/{plaid-BkGpAOW9.js → plaid-BgClSQ5E.js} +1 -1
- package/dist/assets/{pusher-BEl5dYf3.js → pusher-CtTjQ1YW.js} +1 -1
- package/dist/assets/{react-CxQwwzka.js → react-CMnFYwb8.js} +1 -1
- package/dist/assets/{react-jKiqoE8I.js → react-CV_JpCVX.js} +1 -1
- package/dist/assets/{react-D-sP_7d_.js → react-DW03PVpd.js} +1 -1
- package/dist/assets/{react-D83iag70.js → react-DdvtD_V9.js} +1 -1
- package/dist/assets/{react-CNcx_TR6.js → react-DhBpDFIR.js} +1 -1
- package/dist/assets/{react-DgxhZd-z.js → react-eqWonw_S.js} +1 -1
- package/dist/assets/{recharts-Bc1ZLC_I.js → recharts-RPqam0Wx.js} +1 -1
- package/dist/assets/{routePaths-em7mZQJi.js → routePaths-Cr_t1xHP.js} +1 -1
- package/dist/assets/{sentry-D49LOZ1j.js → sentry-Cx_bjk1I.js} +1 -1
- package/dist/assets/{url-DR56GGlL.js → url-DTcdHmle.js} +1 -1
- package/dist/assets/{url-CmiyMP1N.js → url-TomWfXax.js} +1 -1
- package/dist/assets/{useAskAiCfoHostNavButtonProps-CjtZhD5y.js → useAskAiCfoHostNavButtonProps-BHH5iUyl.js} +1 -1
- package/dist/assets/{useDeviceId-204emeAp.js → useDeviceId-BYnqlZ2w.js} +1 -1
- package/dist/assets/{useFetchSuggestedQuestionsWhenReady-CM8iKDtd.js → useFetchSuggestedQuestionsWhenReady-Csr1Wwy2.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-CFG3lo7l.js → useInitialThreadRequest-B-1U2ylt.js} +1 -1
- package/dist/assets/{utils-RiJ_hKSI.js → utils-B5-1mb3v.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-BevSoIGb.js → withTransactionSidePanel-4Qi1EecU.js} +1 -1
- package/dist/assets/{zeni-epic-state-CZMuxCUG.js → zeni-epic-state-deE-VpAu.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/AddressRoutes-ph_CA4HZ.js +0 -1
- package/dist/assets/CustomerOnboardingAuthScreen-B4vyHJSH.js +0 -1
- package/dist/assets/NotFoundScreen-Bjx2V_hY.js +0 -1
- package/dist/assets/TransactionDetailRoutes-LD__juBl.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as n}from"./index-
|
|
1
|
+
import{_ as n}from"./index-Cy593RGQ.js";import"./mui-BY8zvgs4.js";import"./sentry-Cx_bjk1I.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="2aa3be53-b5f7-4cbc-8d0f-7a8e931034cb",e._sentryDebugIdIdentifier="sentry-dbid-2aa3be53-b5f7-4cbc-8d0f-7a8e931034cb")}catch{}})();function f(e){if(e.companyLocaleInfo!=null&&e.companyLocaleInfo.languageCode.length>0&&e.companyLocaleInfo.companyIncCountryCode.length>0){const o=`${e.companyLocaleInfo.languageCode.toLowerCase()}-${e.companyLocaleInfo.companyIncCountryCode.toUpperCase()}`;return console.warn(`localeID ${o}`),n(o)??"en"}return"en"}export{f as t};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{g as vn}from"./sentry-D49LOZ1j.js";(function(){try{var qe=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},xe=new qe.Error().stack;xe&&(qe._sentryDebugIds=qe._sentryDebugIds||{},qe._sentryDebugIds[xe]="6fc09c3c-5100-40d3-9430-593cbd9d0860",qe._sentryDebugIdIdentifier="sentry-dbid-6fc09c3c-5100-40d3-9430-593cbd9d0860")}catch{}})();function yn(qe,xe){for(var ge=0;ge<xe.length;ge++){const ue=xe[ge];if(typeof ue!="string"&&!Array.isArray(ue)){for(const y in ue)if(y!=="default"&&!(y in qe)){const v=Object.getOwnPropertyDescriptor(ue,y);v&&Object.defineProperty(qe,y,v.get?v:{enumerable:!0,get:()=>ue[y]})}}}return Object.freeze(Object.defineProperty(qe,Symbol.toStringTag,{value:"Module"}))}var Yt,$t,Wt,Gt={exports:{}};function mn(){return Yt?Gt.exports:(Yt=1,qe=function(){return function(xe){var ge={};function ue(y){if(ge[y])return ge[y].exports;var v=ge[y]={i:y,l:!1,exports:{}};return xe[y].call(v.exports,v,v.exports,ue),v.l=!0,v.exports}return ue.m=xe,ue.c=ge,ue.d=function(y,v,K){ue.o(y,v)||Object.defineProperty(y,v,{enumerable:!0,get:K})},ue.r=function(y){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(y,"__esModule",{value:!0})},ue.t=function(y,v){if(1&v&&(y=ue(y)),8&v||4&v&&typeof y=="object"&&y&&y.__esModule)return y;var K=Object.create(null);if(ue.r(K),Object.defineProperty(K,"default",{enumerable:!0,value:y}),2&v&&typeof y!="string")for(var fe in y)ue.d(K,fe,(function(ce){return y[ce]}).bind(null,fe));return K},ue.n=function(y){var v=y&&y.__esModule?function(){return y.default}:function(){return y};return ue.d(v,"a",v),v},ue.o=function(y,v){return Object.prototype.hasOwnProperty.call(y,v)},ue.p="",ue(ue.s=3)}([function(xe,ge,ue){var y,v=this&&this.__extends||(y=function(x,C){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,V){P.__proto__=V}||function(P,V){for(var ve in V)V.hasOwnProperty(ve)&&(P[ve]=V[ve])},y(x,C)},function(x,C){function P(){this.constructor=x}y(x,C),x.prototype=C===null?Object.create(C):(P.prototype=C.prototype,new P)});Object.defineProperty(ge,"__esModule",{value:!0});var K=256,fe=function(){function x(C){C===void 0&&(C="="),this._paddingCharacter=C}return x.prototype.encodedLength=function(C){return this._paddingCharacter?(C+2)/3*4|0:(8*C+5)/6|0},x.prototype.encode=function(C){for(var P="",V=0;V<C.length-2;V+=3){var ve=C[V]<<16|C[V+1]<<8|C[V+2];P+=this._encodeByte(ve>>>18&63),P+=this._encodeByte(ve>>>12&63),P+=this._encodeByte(ve>>>6&63),P+=this._encodeByte(ve>>>0&63)}var De=C.length-V;return De>0&&(ve=C[V]<<16|(De===2?C[V+1]<<8:0),P+=this._encodeByte(ve>>>18&63),P+=this._encodeByte(ve>>>12&63),P+=De===2?this._encodeByte(ve>>>6&63):this._paddingCharacter||"",P+=this._paddingCharacter||""),P},x.prototype.maxDecodedLength=function(C){return this._paddingCharacter?C/4*3|0:(6*C+7)/8|0},x.prototype.decodedLength=function(C){return this.maxDecodedLength(C.length-this._getPaddingLength(C))},x.prototype.decode=function(C){if(C.length===0)return new Uint8Array(0);for(var P=this._getPaddingLength(C),V=C.length-P,ve=new Uint8Array(this.maxDecodedLength(V)),De=0,Te=0,Ie=0,Fe=0,Re=0,Me=0,Le=0;Te<V-4;Te+=4)Fe=this._decodeChar(C.charCodeAt(Te+0)),Re=this._decodeChar(C.charCodeAt(Te+1)),Me=this._decodeChar(C.charCodeAt(Te+2)),Le=this._decodeChar(C.charCodeAt(Te+3)),ve[De++]=Fe<<2|Re>>>4,ve[De++]=Re<<4|Me>>>2,ve[De++]=Me<<6|Le,Ie|=Fe&K,Ie|=Re&K,Ie|=Me&K,Ie|=Le&K;if(Te<V-1&&(Fe=this._decodeChar(C.charCodeAt(Te)),Re=this._decodeChar(C.charCodeAt(Te+1)),ve[De++]=Fe<<2|Re>>>4,Ie|=Fe&K,Ie|=Re&K),Te<V-2&&(Me=this._decodeChar(C.charCodeAt(Te+2)),ve[De++]=Re<<4|Me>>>2,Ie|=Me&K),Te<V-3&&(Le=this._decodeChar(C.charCodeAt(Te+3)),ve[De++]=Me<<6|Le,Ie|=Le&K),Ie!==0)throw new Error("Base64Coder: incorrect characters for decoding");return ve},x.prototype._encodeByte=function(C){var P=C;return P+=65,P+=25-C>>>8&6,P+=51-C>>>8&-75,P+=61-C>>>8&-15,P+=62-C>>>8&3,String.fromCharCode(P)},x.prototype._decodeChar=function(C){var P=K;return P+=(42-C&C-44)>>>8&-256+C-43+62,P+=(46-C&C-48)>>>8&-256+C-47+63,P+=(47-C&C-58)>>>8&-256+C-48+52,P+=(64-C&C-91)>>>8&-256+C-65+0,P+=(96-C&C-123)>>>8&-256+C-97+26},x.prototype._getPaddingLength=function(C){var P=0;if(this._paddingCharacter){for(var V=C.length-1;V>=0&&C[V]===this._paddingCharacter;V--)P++;if(C.length<4||P>2)throw new Error("Base64Coder: incorrect padding")}return P},x}();ge.Coder=fe;var ce=new fe;ge.encode=function(x){return ce.encode(x)},ge.decode=function(x){return ce.decode(x)};var ie=function(x){function C(){return x!==null&&x.apply(this,arguments)||this}return v(C,x),C.prototype._encodeByte=function(P){var V=P;return V+=65,V+=25-P>>>8&6,V+=51-P>>>8&-75,V+=61-P>>>8&-13,V+=62-P>>>8&49,String.fromCharCode(V)},C.prototype._decodeChar=function(P){var V=K;return V+=(44-P&P-46)>>>8&-256+P-45+62,V+=(94-P&P-96)>>>8&-256+P-95+63,V+=(47-P&P-58)>>>8&-256+P-48+52,V+=(64-P&P-91)>>>8&-256+P-65+0,V+=(96-P&P-123)>>>8&-256+P-97+26},C}(fe);ge.URLSafeCoder=ie;var W=new ie;ge.encodeURLSafe=function(x){return W.encode(x)},ge.decodeURLSafe=function(x){return W.decode(x)},ge.encodedLength=function(x){return ce.encodedLength(x)},ge.maxDecodedLength=function(x){return ce.maxDecodedLength(x)},ge.decodedLength=function(x){return ce.decodedLength(x)}},function(xe,ge,ue){Object.defineProperty(ge,"__esModule",{value:!0});var y="utf8: invalid string",v="utf8: invalid source encoding";function K(fe){for(var ce=0,ie=0;ie<fe.length;ie++){var W=fe.charCodeAt(ie);if(W<128)ce+=1;else if(W<2048)ce+=2;else if(W<55296)ce+=3;else{if(!(W<=57343))throw new Error(y);if(ie>=fe.length-1)throw new Error(y);ie++,ce+=4}}return ce}ge.encode=function(fe){for(var ce=new Uint8Array(K(fe)),ie=0,W=0;W<fe.length;W++){var x=fe.charCodeAt(W);x<128?ce[ie++]=x:x<2048?(ce[ie++]=192|x>>6,ce[ie++]=128|63&x):x<55296?(ce[ie++]=224|x>>12,ce[ie++]=128|x>>6&63,ce[ie++]=128|63&x):(W++,x=(1023&x)<<10,x|=1023&fe.charCodeAt(W),x+=65536,ce[ie++]=240|x>>18,ce[ie++]=128|x>>12&63,ce[ie++]=128|x>>6&63,ce[ie++]=128|63&x)}return ce},ge.encodedLength=K,ge.decode=function(fe){for(var ce=[],ie=0;ie<fe.length;ie++){var W=fe[ie];if(128&W){var x=void 0;if(W<224){if(ie>=fe.length)throw new Error(v);if((192&(C=fe[++ie]))!=128)throw new Error(v);W=(31&W)<<6|63&C,x=128}else if(W<240){if(ie>=fe.length-1)throw new Error(v);var C=fe[++ie],P=fe[++ie];if((192&C)!=128||(192&P)!=128)throw new Error(v);W=(15&W)<<12|(63&C)<<6|63&P,x=2048}else{if(!(W<248))throw new Error(v);if(ie>=fe.length-2)throw new Error(v);C=fe[++ie],P=fe[++ie];var V=fe[++ie];if((192&C)!=128||(192&P)!=128||(192&V)!=128)throw new Error(v);W=(15&W)<<18|(63&C)<<12|(63&P)<<6|63&V,x=65536}if(W<x||W>=55296&&W<=57343)throw new Error(v);if(W>=65536){if(W>1114111)throw new Error(v);W-=65536,ce.push(String.fromCharCode(55296|W>>10)),W=56320|1023&W}}ce.push(String.fromCharCode(W))}return ce.join("")}},function(xe,ge,ue){(function(y){var v=function(s){var a,c=new Float64Array(16);if(s)for(a=0;a<s.length;a++)c[a]=s[a];return c},K=function(){throw new Error("no PRNG")},fe=new Uint8Array(16),ce=new Uint8Array(32);ce[0]=9;var ie=v(),W=v([1]),x=v([56129,1]),C=v([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),P=v([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),V=v([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),ve=v([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),De=v([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function Te(s,a,c,t){s[a]=c>>24&255,s[a+1]=c>>16&255,s[a+2]=c>>8&255,s[a+3]=255&c,s[a+4]=t>>24&255,s[a+5]=t>>16&255,s[a+6]=t>>8&255,s[a+7]=255&t}function Ie(s,a,c,t,i){var l,d=0;for(l=0;l<i;l++)d|=s[a+l]^c[t+l];return(1&d-1>>>8)-1}function Fe(s,a,c,t){return Ie(s,a,c,t,16)}function Re(s,a,c,t){return Ie(s,a,c,t,32)}function Me(s,a,c,t){(function(i,l,d,f){for(var h,_=255&f[0]|(255&f[1])<<8|(255&f[2])<<16|(255&f[3])<<24,D=255&d[0]|(255&d[1])<<8|(255&d[2])<<16|(255&d[3])<<24,O=255&d[4]|(255&d[5])<<8|(255&d[6])<<16|(255&d[7])<<24,z=255&d[8]|(255&d[9])<<8|(255&d[10])<<16|(255&d[11])<<24,j=255&d[12]|(255&d[13])<<8|(255&d[14])<<16|(255&d[15])<<24,L=255&f[4]|(255&f[5])<<8|(255&f[6])<<16|(255&f[7])<<24,q=255&l[0]|(255&l[1])<<8|(255&l[2])<<16|(255&l[3])<<24,F=255&l[4]|(255&l[5])<<8|(255&l[6])<<16|(255&l[7])<<24,R=255&l[8]|(255&l[9])<<8|(255&l[10])<<16|(255&l[11])<<24,X=255&l[12]|(255&l[13])<<8|(255&l[14])<<16|(255&l[15])<<24,M=255&f[8]|(255&f[9])<<8|(255&f[10])<<16|(255&f[11])<<24,A=255&d[16]|(255&d[17])<<8|(255&d[18])<<16|(255&d[19])<<24,J=255&d[20]|(255&d[21])<<8|(255&d[22])<<16|(255&d[23])<<24,te=255&d[24]|(255&d[25])<<8|(255&d[26])<<16|(255&d[27])<<24,I=255&d[28]|(255&d[29])<<8|(255&d[30])<<16|(255&d[31])<<24,g=255&f[12]|(255&f[13])<<8|(255&f[14])<<16|(255&f[15])<<24,b=_,T=D,w=O,m=z,S=j,ee=L,se=q,Q=F,re=R,de=X,pe=M,B=A,Y=J,G=te,Z=I,H=g,oe=0;oe<20;oe+=2)b^=(h=(Y^=(h=(re^=(h=(S^=(h=b+Y|0)<<7|h>>>25)+b|0)<<9|h>>>23)+S|0)<<13|h>>>19)+re|0)<<18|h>>>14,ee^=(h=(T^=(h=(G^=(h=(de^=(h=ee+T|0)<<7|h>>>25)+ee|0)<<9|h>>>23)+de|0)<<13|h>>>19)+G|0)<<18|h>>>14,pe^=(h=(se^=(h=(w^=(h=(Z^=(h=pe+se|0)<<7|h>>>25)+pe|0)<<9|h>>>23)+Z|0)<<13|h>>>19)+w|0)<<18|h>>>14,H^=(h=(B^=(h=(Q^=(h=(m^=(h=H+B|0)<<7|h>>>25)+H|0)<<9|h>>>23)+m|0)<<13|h>>>19)+Q|0)<<18|h>>>14,b^=(h=(m^=(h=(w^=(h=(T^=(h=b+m|0)<<7|h>>>25)+b|0)<<9|h>>>23)+T|0)<<13|h>>>19)+w|0)<<18|h>>>14,ee^=(h=(S^=(h=(Q^=(h=(se^=(h=ee+S|0)<<7|h>>>25)+ee|0)<<9|h>>>23)+se|0)<<13|h>>>19)+Q|0)<<18|h>>>14,pe^=(h=(de^=(h=(re^=(h=(B^=(h=pe+de|0)<<7|h>>>25)+pe|0)<<9|h>>>23)+B|0)<<13|h>>>19)+re|0)<<18|h>>>14,H^=(h=(Z^=(h=(G^=(h=(Y^=(h=H+Z|0)<<7|h>>>25)+H|0)<<9|h>>>23)+Y|0)<<13|h>>>19)+G|0)<<18|h>>>14;b=b+_|0,T=T+D|0,w=w+O|0,m=m+z|0,S=S+j|0,ee=ee+L|0,se=se+q|0,Q=Q+F|0,re=re+R|0,de=de+X|0,pe=pe+M|0,B=B+A|0,Y=Y+J|0,G=G+te|0,Z=Z+I|0,H=H+g|0,i[0]=b>>>0&255,i[1]=b>>>8&255,i[2]=b>>>16&255,i[3]=b>>>24&255,i[4]=T>>>0&255,i[5]=T>>>8&255,i[6]=T>>>16&255,i[7]=T>>>24&255,i[8]=w>>>0&255,i[9]=w>>>8&255,i[10]=w>>>16&255,i[11]=w>>>24&255,i[12]=m>>>0&255,i[13]=m>>>8&255,i[14]=m>>>16&255,i[15]=m>>>24&255,i[16]=S>>>0&255,i[17]=S>>>8&255,i[18]=S>>>16&255,i[19]=S>>>24&255,i[20]=ee>>>0&255,i[21]=ee>>>8&255,i[22]=ee>>>16&255,i[23]=ee>>>24&255,i[24]=se>>>0&255,i[25]=se>>>8&255,i[26]=se>>>16&255,i[27]=se>>>24&255,i[28]=Q>>>0&255,i[29]=Q>>>8&255,i[30]=Q>>>16&255,i[31]=Q>>>24&255,i[32]=re>>>0&255,i[33]=re>>>8&255,i[34]=re>>>16&255,i[35]=re>>>24&255,i[36]=de>>>0&255,i[37]=de>>>8&255,i[38]=de>>>16&255,i[39]=de>>>24&255,i[40]=pe>>>0&255,i[41]=pe>>>8&255,i[42]=pe>>>16&255,i[43]=pe>>>24&255,i[44]=B>>>0&255,i[45]=B>>>8&255,i[46]=B>>>16&255,i[47]=B>>>24&255,i[48]=Y>>>0&255,i[49]=Y>>>8&255,i[50]=Y>>>16&255,i[51]=Y>>>24&255,i[52]=G>>>0&255,i[53]=G>>>8&255,i[54]=G>>>16&255,i[55]=G>>>24&255,i[56]=Z>>>0&255,i[57]=Z>>>8&255,i[58]=Z>>>16&255,i[59]=Z>>>24&255,i[60]=H>>>0&255,i[61]=H>>>8&255,i[62]=H>>>16&255,i[63]=H>>>24&255})(s,a,c,t)}function Le(s,a,c,t){(function(i,l,d,f){for(var h,_=255&f[0]|(255&f[1])<<8|(255&f[2])<<16|(255&f[3])<<24,D=255&d[0]|(255&d[1])<<8|(255&d[2])<<16|(255&d[3])<<24,O=255&d[4]|(255&d[5])<<8|(255&d[6])<<16|(255&d[7])<<24,z=255&d[8]|(255&d[9])<<8|(255&d[10])<<16|(255&d[11])<<24,j=255&d[12]|(255&d[13])<<8|(255&d[14])<<16|(255&d[15])<<24,L=255&f[4]|(255&f[5])<<8|(255&f[6])<<16|(255&f[7])<<24,q=255&l[0]|(255&l[1])<<8|(255&l[2])<<16|(255&l[3])<<24,F=255&l[4]|(255&l[5])<<8|(255&l[6])<<16|(255&l[7])<<24,R=255&l[8]|(255&l[9])<<8|(255&l[10])<<16|(255&l[11])<<24,X=255&l[12]|(255&l[13])<<8|(255&l[14])<<16|(255&l[15])<<24,M=255&f[8]|(255&f[9])<<8|(255&f[10])<<16|(255&f[11])<<24,A=255&d[16]|(255&d[17])<<8|(255&d[18])<<16|(255&d[19])<<24,J=255&d[20]|(255&d[21])<<8|(255&d[22])<<16|(255&d[23])<<24,te=255&d[24]|(255&d[25])<<8|(255&d[26])<<16|(255&d[27])<<24,I=255&d[28]|(255&d[29])<<8|(255&d[30])<<16|(255&d[31])<<24,g=255&f[12]|(255&f[13])<<8|(255&f[14])<<16|(255&f[15])<<24,b=0;b<20;b+=2)_^=(h=(J^=(h=(R^=(h=(j^=(h=_+J|0)<<7|h>>>25)+_|0)<<9|h>>>23)+j|0)<<13|h>>>19)+R|0)<<18|h>>>14,L^=(h=(D^=(h=(te^=(h=(X^=(h=L+D|0)<<7|h>>>25)+L|0)<<9|h>>>23)+X|0)<<13|h>>>19)+te|0)<<18|h>>>14,M^=(h=(q^=(h=(O^=(h=(I^=(h=M+q|0)<<7|h>>>25)+M|0)<<9|h>>>23)+I|0)<<13|h>>>19)+O|0)<<18|h>>>14,g^=(h=(A^=(h=(F^=(h=(z^=(h=g+A|0)<<7|h>>>25)+g|0)<<9|h>>>23)+z|0)<<13|h>>>19)+F|0)<<18|h>>>14,_^=(h=(z^=(h=(O^=(h=(D^=(h=_+z|0)<<7|h>>>25)+_|0)<<9|h>>>23)+D|0)<<13|h>>>19)+O|0)<<18|h>>>14,L^=(h=(j^=(h=(F^=(h=(q^=(h=L+j|0)<<7|h>>>25)+L|0)<<9|h>>>23)+q|0)<<13|h>>>19)+F|0)<<18|h>>>14,M^=(h=(X^=(h=(R^=(h=(A^=(h=M+X|0)<<7|h>>>25)+M|0)<<9|h>>>23)+A|0)<<13|h>>>19)+R|0)<<18|h>>>14,g^=(h=(I^=(h=(te^=(h=(J^=(h=g+I|0)<<7|h>>>25)+g|0)<<9|h>>>23)+J|0)<<13|h>>>19)+te|0)<<18|h>>>14;i[0]=_>>>0&255,i[1]=_>>>8&255,i[2]=_>>>16&255,i[3]=_>>>24&255,i[4]=L>>>0&255,i[5]=L>>>8&255,i[6]=L>>>16&255,i[7]=L>>>24&255,i[8]=M>>>0&255,i[9]=M>>>8&255,i[10]=M>>>16&255,i[11]=M>>>24&255,i[12]=g>>>0&255,i[13]=g>>>8&255,i[14]=g>>>16&255,i[15]=g>>>24&255,i[16]=q>>>0&255,i[17]=q>>>8&255,i[18]=q>>>16&255,i[19]=q>>>24&255,i[20]=F>>>0&255,i[21]=F>>>8&255,i[22]=F>>>16&255,i[23]=F>>>24&255,i[24]=R>>>0&255,i[25]=R>>>8&255,i[26]=R>>>16&255,i[27]=R>>>24&255,i[28]=X>>>0&255,i[29]=X>>>8&255,i[30]=X>>>16&255,i[31]=X>>>24&255})(s,a,c,t)}var Xe=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function kt(s,a,c,t,i,l,d){var f,h,_=new Uint8Array(16),D=new Uint8Array(64);for(h=0;h<16;h++)_[h]=0;for(h=0;h<8;h++)_[h]=l[h];for(;i>=64;){for(Me(D,_,d,Xe),h=0;h<64;h++)s[a+h]=c[t+h]^D[h];for(f=1,h=8;h<16;h++)f=f+(255&_[h])|0,_[h]=255&f,f>>>=8;i-=64,a+=64,t+=64}if(i>0)for(Me(D,_,d,Xe),h=0;h<i;h++)s[a+h]=c[t+h]^D[h];return 0}function Ct(s,a,c,t,i){var l,d,f=new Uint8Array(16),h=new Uint8Array(64);for(d=0;d<16;d++)f[d]=0;for(d=0;d<8;d++)f[d]=t[d];for(;c>=64;){for(Me(h,f,i,Xe),d=0;d<64;d++)s[a+d]=h[d];for(l=1,d=8;d<16;d++)l=l+(255&f[d])|0,f[d]=255&l,l>>>=8;c-=64,a+=64}if(c>0)for(Me(h,f,i,Xe),d=0;d<c;d++)s[a+d]=h[d];return 0}function Tt(s,a,c,t,i){var l=new Uint8Array(32);Le(l,t,i,Xe);for(var d=new Uint8Array(8),f=0;f<8;f++)d[f]=t[f+16];return Ct(s,a,c,d,l)}function pt(s,a,c,t,i,l,d){var f=new Uint8Array(32);Le(f,l,d,Xe);for(var h=new Uint8Array(8),_=0;_<8;_++)h[_]=l[_+16];return kt(s,a,c,t,i,h,f)}var it=function(s){var a,c,t,i,l,d,f,h;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,a=255&s[0]|(255&s[1])<<8,this.r[0]=8191&a,c=255&s[2]|(255&s[3])<<8,this.r[1]=8191&(a>>>13|c<<3),t=255&s[4]|(255&s[5])<<8,this.r[2]=7939&(c>>>10|t<<6),i=255&s[6]|(255&s[7])<<8,this.r[3]=8191&(t>>>7|i<<9),l=255&s[8]|(255&s[9])<<8,this.r[4]=255&(i>>>4|l<<12),this.r[5]=l>>>1&8190,d=255&s[10]|(255&s[11])<<8,this.r[6]=8191&(l>>>14|d<<2),f=255&s[12]|(255&s[13])<<8,this.r[7]=8065&(d>>>11|f<<5),h=255&s[14]|(255&s[15])<<8,this.r[8]=8191&(f>>>8|h<<8),this.r[9]=h>>>5&127,this.pad[0]=255&s[16]|(255&s[17])<<8,this.pad[1]=255&s[18]|(255&s[19])<<8,this.pad[2]=255&s[20]|(255&s[21])<<8,this.pad[3]=255&s[22]|(255&s[23])<<8,this.pad[4]=255&s[24]|(255&s[25])<<8,this.pad[5]=255&s[26]|(255&s[27])<<8,this.pad[6]=255&s[28]|(255&s[29])<<8,this.pad[7]=255&s[30]|(255&s[31])<<8};function ft(s,a,c,t,i,l){var d=new it(l);return d.update(c,t,i),d.finish(s,a),0}function Et(s,a,c,t,i,l){var d=new Uint8Array(16);return ft(d,0,c,t,i,l),Fe(s,a,d,0)}function Ke(s,a,c,t,i){var l;if(c<32)return-1;for(pt(s,0,a,0,c,t,i),ft(s,16,s,32,c-32,s),l=0;l<16;l++)s[l]=0;return 0}function gt(s,a,c,t,i){var l,d=new Uint8Array(32);if(c<32||(Tt(d,0,32,t,i),Et(a,16,a,32,c-32,d)!==0))return-1;for(pt(s,0,a,0,c,t,i),l=0;l<32;l++)s[l]=0;return 0}function Ye(s,a){var c;for(c=0;c<16;c++)s[c]=0|a[c]}function Ce(s){var a,c,t=1;for(a=0;a<16;a++)c=s[a]+t+65535,t=Math.floor(c/65536),s[a]=c-65536*t;s[0]+=t-1+37*(t-1)}function _e(s,a,c){for(var t,i=~(c-1),l=0;l<16;l++)t=i&(s[l]^a[l]),s[l]^=t,a[l]^=t}function tt(s,a){var c,t,i,l=v(),d=v();for(c=0;c<16;c++)d[c]=a[c];for(Ce(d),Ce(d),Ce(d),t=0;t<2;t++){for(l[0]=d[0]-65517,c=1;c<15;c++)l[c]=d[c]-65535-(l[c-1]>>16&1),l[c-1]&=65535;l[15]=d[15]-32767-(l[14]>>16&1),i=l[15]>>16&1,l[14]&=65535,_e(d,l,1-i)}for(c=0;c<16;c++)s[2*c]=255&d[c],s[2*c+1]=d[c]>>8}function bt(s,a){var c=new Uint8Array(32),t=new Uint8Array(32);return tt(c,s),tt(t,a),Re(c,0,t,0)}function Je(s){var a=new Uint8Array(32);return tt(a,s),1&a[0]}function st(s,a){var c;for(c=0;c<16;c++)s[c]=a[2*c]+(a[2*c+1]<<8);s[15]&=32767}function Ae(s,a,c){for(var t=0;t<16;t++)s[t]=a[t]+c[t]}function ze(s,a,c){for(var t=0;t<16;t++)s[t]=a[t]-c[t]}function ae(s,a,c){var t,i,l=0,d=0,f=0,h=0,_=0,D=0,O=0,z=0,j=0,L=0,q=0,F=0,R=0,X=0,M=0,A=0,J=0,te=0,I=0,g=0,b=0,T=0,w=0,m=0,S=0,ee=0,se=0,Q=0,re=0,de=0,pe=0,B=c[0],Y=c[1],G=c[2],Z=c[3],H=c[4],oe=c[5],he=c[6],U=c[7],le=c[8],ye=c[9],me=c[10],we=c[11],Se=c[12],Oe=c[13],Pe=c[14],Ee=c[15];l+=(t=a[0])*B,d+=t*Y,f+=t*G,h+=t*Z,_+=t*H,D+=t*oe,O+=t*he,z+=t*U,j+=t*le,L+=t*ye,q+=t*me,F+=t*we,R+=t*Se,X+=t*Oe,M+=t*Pe,A+=t*Ee,d+=(t=a[1])*B,f+=t*Y,h+=t*G,_+=t*Z,D+=t*H,O+=t*oe,z+=t*he,j+=t*U,L+=t*le,q+=t*ye,F+=t*me,R+=t*we,X+=t*Se,M+=t*Oe,A+=t*Pe,J+=t*Ee,f+=(t=a[2])*B,h+=t*Y,_+=t*G,D+=t*Z,O+=t*H,z+=t*oe,j+=t*he,L+=t*U,q+=t*le,F+=t*ye,R+=t*me,X+=t*we,M+=t*Se,A+=t*Oe,J+=t*Pe,te+=t*Ee,h+=(t=a[3])*B,_+=t*Y,D+=t*G,O+=t*Z,z+=t*H,j+=t*oe,L+=t*he,q+=t*U,F+=t*le,R+=t*ye,X+=t*me,M+=t*we,A+=t*Se,J+=t*Oe,te+=t*Pe,I+=t*Ee,_+=(t=a[4])*B,D+=t*Y,O+=t*G,z+=t*Z,j+=t*H,L+=t*oe,q+=t*he,F+=t*U,R+=t*le,X+=t*ye,M+=t*me,A+=t*we,J+=t*Se,te+=t*Oe,I+=t*Pe,g+=t*Ee,D+=(t=a[5])*B,O+=t*Y,z+=t*G,j+=t*Z,L+=t*H,q+=t*oe,F+=t*he,R+=t*U,X+=t*le,M+=t*ye,A+=t*me,J+=t*we,te+=t*Se,I+=t*Oe,g+=t*Pe,b+=t*Ee,O+=(t=a[6])*B,z+=t*Y,j+=t*G,L+=t*Z,q+=t*H,F+=t*oe,R+=t*he,X+=t*U,M+=t*le,A+=t*ye,J+=t*me,te+=t*we,I+=t*Se,g+=t*Oe,b+=t*Pe,T+=t*Ee,z+=(t=a[7])*B,j+=t*Y,L+=t*G,q+=t*Z,F+=t*H,R+=t*oe,X+=t*he,M+=t*U,A+=t*le,J+=t*ye,te+=t*me,I+=t*we,g+=t*Se,b+=t*Oe,T+=t*Pe,w+=t*Ee,j+=(t=a[8])*B,L+=t*Y,q+=t*G,F+=t*Z,R+=t*H,X+=t*oe,M+=t*he,A+=t*U,J+=t*le,te+=t*ye,I+=t*me,g+=t*we,b+=t*Se,T+=t*Oe,w+=t*Pe,m+=t*Ee,L+=(t=a[9])*B,q+=t*Y,F+=t*G,R+=t*Z,X+=t*H,M+=t*oe,A+=t*he,J+=t*U,te+=t*le,I+=t*ye,g+=t*me,b+=t*we,T+=t*Se,w+=t*Oe,m+=t*Pe,S+=t*Ee,q+=(t=a[10])*B,F+=t*Y,R+=t*G,X+=t*Z,M+=t*H,A+=t*oe,J+=t*he,te+=t*U,I+=t*le,g+=t*ye,b+=t*me,T+=t*we,w+=t*Se,m+=t*Oe,S+=t*Pe,ee+=t*Ee,F+=(t=a[11])*B,R+=t*Y,X+=t*G,M+=t*Z,A+=t*H,J+=t*oe,te+=t*he,I+=t*U,g+=t*le,b+=t*ye,T+=t*me,w+=t*we,m+=t*Se,S+=t*Oe,ee+=t*Pe,se+=t*Ee,R+=(t=a[12])*B,X+=t*Y,M+=t*G,A+=t*Z,J+=t*H,te+=t*oe,I+=t*he,g+=t*U,b+=t*le,T+=t*ye,w+=t*me,m+=t*we,S+=t*Se,ee+=t*Oe,se+=t*Pe,Q+=t*Ee,X+=(t=a[13])*B,M+=t*Y,A+=t*G,J+=t*Z,te+=t*H,I+=t*oe,g+=t*he,b+=t*U,T+=t*le,w+=t*ye,m+=t*me,S+=t*we,ee+=t*Se,se+=t*Oe,Q+=t*Pe,re+=t*Ee,M+=(t=a[14])*B,A+=t*Y,J+=t*G,te+=t*Z,I+=t*H,g+=t*oe,b+=t*he,T+=t*U,w+=t*le,m+=t*ye,S+=t*me,ee+=t*we,se+=t*Se,Q+=t*Oe,re+=t*Pe,de+=t*Ee,A+=(t=a[15])*B,d+=38*(te+=t*G),f+=38*(I+=t*Z),h+=38*(g+=t*H),_+=38*(b+=t*oe),D+=38*(T+=t*he),O+=38*(w+=t*U),z+=38*(m+=t*le),j+=38*(S+=t*ye),L+=38*(ee+=t*me),q+=38*(se+=t*we),F+=38*(Q+=t*Se),R+=38*(re+=t*Oe),X+=38*(de+=t*Pe),M+=38*(pe+=t*Ee),l=(t=(l+=38*(J+=t*Y))+(i=1)+65535)-65536*(i=Math.floor(t/65536)),d=(t=d+i+65535)-65536*(i=Math.floor(t/65536)),f=(t=f+i+65535)-65536*(i=Math.floor(t/65536)),h=(t=h+i+65535)-65536*(i=Math.floor(t/65536)),_=(t=_+i+65535)-65536*(i=Math.floor(t/65536)),D=(t=D+i+65535)-65536*(i=Math.floor(t/65536)),O=(t=O+i+65535)-65536*(i=Math.floor(t/65536)),z=(t=z+i+65535)-65536*(i=Math.floor(t/65536)),j=(t=j+i+65535)-65536*(i=Math.floor(t/65536)),L=(t=L+i+65535)-65536*(i=Math.floor(t/65536)),q=(t=q+i+65535)-65536*(i=Math.floor(t/65536)),F=(t=F+i+65535)-65536*(i=Math.floor(t/65536)),R=(t=R+i+65535)-65536*(i=Math.floor(t/65536)),X=(t=X+i+65535)-65536*(i=Math.floor(t/65536)),M=(t=M+i+65535)-65536*(i=Math.floor(t/65536)),A=(t=A+i+65535)-65536*(i=Math.floor(t/65536)),l=(t=(l+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(t/65536)),d=(t=d+i+65535)-65536*(i=Math.floor(t/65536)),f=(t=f+i+65535)-65536*(i=Math.floor(t/65536)),h=(t=h+i+65535)-65536*(i=Math.floor(t/65536)),_=(t=_+i+65535)-65536*(i=Math.floor(t/65536)),D=(t=D+i+65535)-65536*(i=Math.floor(t/65536)),O=(t=O+i+65535)-65536*(i=Math.floor(t/65536)),z=(t=z+i+65535)-65536*(i=Math.floor(t/65536)),j=(t=j+i+65535)-65536*(i=Math.floor(t/65536)),L=(t=L+i+65535)-65536*(i=Math.floor(t/65536)),q=(t=q+i+65535)-65536*(i=Math.floor(t/65536)),F=(t=F+i+65535)-65536*(i=Math.floor(t/65536)),R=(t=R+i+65535)-65536*(i=Math.floor(t/65536)),X=(t=X+i+65535)-65536*(i=Math.floor(t/65536)),M=(t=M+i+65535)-65536*(i=Math.floor(t/65536)),A=(t=A+i+65535)-65536*(i=Math.floor(t/65536)),l+=i-1+37*(i-1),s[0]=l,s[1]=d,s[2]=f,s[3]=h,s[4]=_,s[5]=D,s[6]=O,s[7]=z,s[8]=j,s[9]=L,s[10]=q,s[11]=F,s[12]=R,s[13]=X,s[14]=M,s[15]=A}function Ne(s,a){ae(s,a,a)}function vt(s,a){var c,t=v();for(c=0;c<16;c++)t[c]=a[c];for(c=253;c>=0;c--)Ne(t,t),c!==2&&c!==4&&ae(t,t,a);for(c=0;c<16;c++)s[c]=t[c]}function Ot(s,a){var c,t=v();for(c=0;c<16;c++)t[c]=a[c];for(c=250;c>=0;c--)Ne(t,t),c!==1&&ae(t,t,a);for(c=0;c<16;c++)s[c]=t[c]}function ot(s,a,c){var t,i,l=new Uint8Array(32),d=new Float64Array(80),f=v(),h=v(),_=v(),D=v(),O=v(),z=v();for(i=0;i<31;i++)l[i]=a[i];for(l[31]=127&a[31]|64,l[0]&=248,st(d,c),i=0;i<16;i++)h[i]=d[i],D[i]=f[i]=_[i]=0;for(f[0]=D[0]=1,i=254;i>=0;--i)_e(f,h,t=l[i>>>3]>>>(7&i)&1),_e(_,D,t),Ae(O,f,_),ze(f,f,_),Ae(_,h,D),ze(h,h,D),Ne(D,O),Ne(z,f),ae(f,_,f),ae(_,h,O),Ae(O,f,_),ze(f,f,_),Ne(h,f),ze(_,D,z),ae(f,_,x),Ae(f,f,D),ae(_,_,f),ae(f,D,z),ae(D,h,d),Ne(h,O),_e(f,h,t),_e(_,D,t);for(i=0;i<16;i++)d[i+16]=f[i],d[i+32]=_[i],d[i+48]=h[i],d[i+64]=D[i];var j=d.subarray(32),L=d.subarray(16);return vt(j,j),ae(L,L,j),tt(s,L),0}function Ve(s,a){return ot(s,a,ce)}function be(s,a){return K(a,32),Ve(s,a)}function at(s,a,c){var t=new Uint8Array(32);return ot(t,c,a),Le(s,fe,t,Xe)}it.prototype.blocks=function(s,a,c){for(var t,i,l,d,f,h,_,D,O,z,j,L,q,F,R,X,M,A,J,te=this.fin?0:2048,I=this.h[0],g=this.h[1],b=this.h[2],T=this.h[3],w=this.h[4],m=this.h[5],S=this.h[6],ee=this.h[7],se=this.h[8],Q=this.h[9],re=this.r[0],de=this.r[1],pe=this.r[2],B=this.r[3],Y=this.r[4],G=this.r[5],Z=this.r[6],H=this.r[7],oe=this.r[8],he=this.r[9];c>=16;)z=O=0,z+=(I+=8191&(t=255&s[a+0]|(255&s[a+1])<<8))*re,z+=(g+=8191&(t>>>13|(i=255&s[a+2]|(255&s[a+3])<<8)<<3))*(5*he),z+=(b+=8191&(i>>>10|(l=255&s[a+4]|(255&s[a+5])<<8)<<6))*(5*oe),z+=(T+=8191&(l>>>7|(d=255&s[a+6]|(255&s[a+7])<<8)<<9))*(5*H),O=(z+=(w+=8191&(d>>>4|(f=255&s[a+8]|(255&s[a+9])<<8)<<12))*(5*Z))>>>13,z&=8191,z+=(m+=f>>>1&8191)*(5*G),z+=(S+=8191&(f>>>14|(h=255&s[a+10]|(255&s[a+11])<<8)<<2))*(5*Y),z+=(ee+=8191&(h>>>11|(_=255&s[a+12]|(255&s[a+13])<<8)<<5))*(5*B),z+=(se+=8191&(_>>>8|(D=255&s[a+14]|(255&s[a+15])<<8)<<8))*(5*pe),j=O+=(z+=(Q+=D>>>5|te)*(5*de))>>>13,j+=I*de,j+=g*re,j+=b*(5*he),j+=T*(5*oe),O=(j+=w*(5*H))>>>13,j&=8191,j+=m*(5*Z),j+=S*(5*G),j+=ee*(5*Y),j+=se*(5*B),O+=(j+=Q*(5*pe))>>>13,j&=8191,L=O,L+=I*pe,L+=g*de,L+=b*re,L+=T*(5*he),O=(L+=w*(5*oe))>>>13,L&=8191,L+=m*(5*H),L+=S*(5*Z),L+=ee*(5*G),L+=se*(5*Y),q=O+=(L+=Q*(5*B))>>>13,q+=I*B,q+=g*pe,q+=b*de,q+=T*re,O=(q+=w*(5*he))>>>13,q&=8191,q+=m*(5*oe),q+=S*(5*H),q+=ee*(5*Z),q+=se*(5*G),F=O+=(q+=Q*(5*Y))>>>13,F+=I*Y,F+=g*B,F+=b*pe,F+=T*de,O=(F+=w*re)>>>13,F&=8191,F+=m*(5*he),F+=S*(5*oe),F+=ee*(5*H),F+=se*(5*Z),R=O+=(F+=Q*(5*G))>>>13,R+=I*G,R+=g*Y,R+=b*B,R+=T*pe,O=(R+=w*de)>>>13,R&=8191,R+=m*re,R+=S*(5*he),R+=ee*(5*oe),R+=se*(5*H),X=O+=(R+=Q*(5*Z))>>>13,X+=I*Z,X+=g*G,X+=b*Y,X+=T*B,O=(X+=w*pe)>>>13,X&=8191,X+=m*de,X+=S*re,X+=ee*(5*he),X+=se*(5*oe),M=O+=(X+=Q*(5*H))>>>13,M+=I*H,M+=g*Z,M+=b*G,M+=T*Y,O=(M+=w*B)>>>13,M&=8191,M+=m*pe,M+=S*de,M+=ee*re,M+=se*(5*he),A=O+=(M+=Q*(5*oe))>>>13,A+=I*oe,A+=g*H,A+=b*Z,A+=T*G,O=(A+=w*Y)>>>13,A&=8191,A+=m*B,A+=S*pe,A+=ee*de,A+=se*re,J=O+=(A+=Q*(5*he))>>>13,J+=I*he,J+=g*oe,J+=b*H,J+=T*Z,O=(J+=w*G)>>>13,J&=8191,J+=m*Y,J+=S*B,J+=ee*pe,J+=se*de,I=z=8191&(O=(O=((O+=(J+=Q*re)>>>13)<<2)+O|0)+(z&=8191)|0),g=j+=O>>>=13,b=L&=8191,T=q&=8191,w=F&=8191,m=R&=8191,S=X&=8191,ee=M&=8191,se=A&=8191,Q=J&=8191,a+=16,c-=16;this.h[0]=I,this.h[1]=g,this.h[2]=b,this.h[3]=T,this.h[4]=w,this.h[5]=m,this.h[6]=S,this.h[7]=ee,this.h[8]=se,this.h[9]=Q},it.prototype.finish=function(s,a){var c,t,i,l,d=new Uint16Array(10);if(this.leftover){for(l=this.leftover,this.buffer[l++]=1;l<16;l++)this.buffer[l]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(c=this.h[1]>>>13,this.h[1]&=8191,l=2;l<10;l++)this.h[l]+=c,c=this.h[l]>>>13,this.h[l]&=8191;for(this.h[0]+=5*c,c=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=c,c=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=c,d[0]=this.h[0]+5,c=d[0]>>>13,d[0]&=8191,l=1;l<10;l++)d[l]=this.h[l]+c,c=d[l]>>>13,d[l]&=8191;for(d[9]-=8192,t=(1^c)-1,l=0;l<10;l++)d[l]&=t;for(t=~t,l=0;l<10;l++)this.h[l]=this.h[l]&t|d[l];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),i=this.h[0]+this.pad[0],this.h[0]=65535&i,l=1;l<8;l++)i=(this.h[l]+this.pad[l]|0)+(i>>>16)|0,this.h[l]=65535&i;s[a+0]=this.h[0]>>>0&255,s[a+1]=this.h[0]>>>8&255,s[a+2]=this.h[1]>>>0&255,s[a+3]=this.h[1]>>>8&255,s[a+4]=this.h[2]>>>0&255,s[a+5]=this.h[2]>>>8&255,s[a+6]=this.h[3]>>>0&255,s[a+7]=this.h[3]>>>8&255,s[a+8]=this.h[4]>>>0&255,s[a+9]=this.h[4]>>>8&255,s[a+10]=this.h[5]>>>0&255,s[a+11]=this.h[5]>>>8&255,s[a+12]=this.h[6]>>>0&255,s[a+13]=this.h[6]>>>8&255,s[a+14]=this.h[7]>>>0&255,s[a+15]=this.h[7]>>>8&255},it.prototype.update=function(s,a,c){var t,i;if(this.leftover){for((i=16-this.leftover)>c&&(i=c),t=0;t<i;t++)this.buffer[this.leftover+t]=s[a+t];if(c-=i,a+=i,this.leftover+=i,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(c>=16&&(i=c-c%16,this.blocks(s,a,i),a+=i,c-=i),c){for(t=0;t<c;t++)this.buffer[this.leftover+t]=s[a+t];this.leftover+=c}};var Pt=Ke,Nt=gt,xt=[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];function ct(s,a,c,t){for(var i,l,d,f,h,_,D,O,z,j,L,q,F,R,X,M,A,J,te,I,g,b,T,w,m,S,ee=new Int32Array(16),se=new Int32Array(16),Q=s[0],re=s[1],de=s[2],pe=s[3],B=s[4],Y=s[5],G=s[6],Z=s[7],H=a[0],oe=a[1],he=a[2],U=a[3],le=a[4],ye=a[5],me=a[6],we=a[7],Se=0;t>=128;){for(te=0;te<16;te++)I=8*te+Se,ee[te]=c[I+0]<<24|c[I+1]<<16|c[I+2]<<8|c[I+3],se[te]=c[I+4]<<24|c[I+5]<<16|c[I+6]<<8|c[I+7];for(te=0;te<80;te++)if(i=Q,l=re,d=de,f=pe,h=B,_=Y,D=G,z=H,j=oe,L=he,q=U,F=le,R=ye,X=me,T=65535&(b=we),w=b>>>16,m=65535&(g=Z),S=g>>>16,T+=65535&(b=(le>>>14|B<<18)^(le>>>18|B<<14)^(B>>>9|le<<23)),w+=b>>>16,m+=65535&(g=(B>>>14|le<<18)^(B>>>18|le<<14)^(le>>>9|B<<23)),S+=g>>>16,T+=65535&(b=le&ye^~le&me),w+=b>>>16,m+=65535&(g=B&Y^~B&G),S+=g>>>16,T+=65535&(b=xt[2*te+1]),w+=b>>>16,m+=65535&(g=xt[2*te]),S+=g>>>16,g=ee[te%16],w+=(b=se[te%16])>>>16,m+=65535&g,S+=g>>>16,m+=(w+=(T+=65535&b)>>>16)>>>16,T=65535&(b=J=65535&T|w<<16),w=b>>>16,m=65535&(g=A=65535&m|(S+=m>>>16)<<16),S=g>>>16,T+=65535&(b=(H>>>28|Q<<4)^(Q>>>2|H<<30)^(Q>>>7|H<<25)),w+=b>>>16,m+=65535&(g=(Q>>>28|H<<4)^(H>>>2|Q<<30)^(H>>>7|Q<<25)),S+=g>>>16,w+=(b=H&oe^H&he^oe&he)>>>16,m+=65535&(g=Q&re^Q&de^re&de),S+=g>>>16,O=65535&(m+=(w+=(T+=65535&b)>>>16)>>>16)|(S+=m>>>16)<<16,M=65535&T|w<<16,T=65535&(b=q),w=b>>>16,m=65535&(g=f),S=g>>>16,w+=(b=J)>>>16,m+=65535&(g=A),S+=g>>>16,re=i,de=l,pe=d,B=f=65535&(m+=(w+=(T+=65535&b)>>>16)>>>16)|(S+=m>>>16)<<16,Y=h,G=_,Z=D,Q=O,oe=z,he=j,U=L,le=q=65535&T|w<<16,ye=F,me=R,we=X,H=M,te%16==15)for(I=0;I<16;I++)g=ee[I],T=65535&(b=se[I]),w=b>>>16,m=65535&g,S=g>>>16,g=ee[(I+9)%16],T+=65535&(b=se[(I+9)%16]),w+=b>>>16,m+=65535&g,S+=g>>>16,A=ee[(I+1)%16],T+=65535&(b=((J=se[(I+1)%16])>>>1|A<<31)^(J>>>8|A<<24)^(J>>>7|A<<25)),w+=b>>>16,m+=65535&(g=(A>>>1|J<<31)^(A>>>8|J<<24)^A>>>7),S+=g>>>16,A=ee[(I+14)%16],w+=(b=((J=se[(I+14)%16])>>>19|A<<13)^(A>>>29|J<<3)^(J>>>6|A<<26))>>>16,m+=65535&(g=(A>>>19|J<<13)^(J>>>29|A<<3)^A>>>6),S+=g>>>16,S+=(m+=(w+=(T+=65535&b)>>>16)>>>16)>>>16,ee[I]=65535&m|S<<16,se[I]=65535&T|w<<16;T=65535&(b=H),w=b>>>16,m=65535&(g=Q),S=g>>>16,g=s[0],w+=(b=a[0])>>>16,m+=65535&g,S+=g>>>16,S+=(m+=(w+=(T+=65535&b)>>>16)>>>16)>>>16,s[0]=Q=65535&m|S<<16,a[0]=H=65535&T|w<<16,T=65535&(b=oe),w=b>>>16,m=65535&(g=re),S=g>>>16,g=s[1],w+=(b=a[1])>>>16,m+=65535&g,S+=g>>>16,S+=(m+=(w+=(T+=65535&b)>>>16)>>>16)>>>16,s[1]=re=65535&m|S<<16,a[1]=oe=65535&T|w<<16,T=65535&(b=he),w=b>>>16,m=65535&(g=de),S=g>>>16,g=s[2],w+=(b=a[2])>>>16,m+=65535&g,S+=g>>>16,S+=(m+=(w+=(T+=65535&b)>>>16)>>>16)>>>16,s[2]=de=65535&m|S<<16,a[2]=he=65535&T|w<<16,T=65535&(b=U),w=b>>>16,m=65535&(g=pe),S=g>>>16,g=s[3],w+=(b=a[3])>>>16,m+=65535&g,S+=g>>>16,S+=(m+=(w+=(T+=65535&b)>>>16)>>>16)>>>16,s[3]=pe=65535&m|S<<16,a[3]=U=65535&T|w<<16,T=65535&(b=le),w=b>>>16,m=65535&(g=B),S=g>>>16,g=s[4],w+=(b=a[4])>>>16,m+=65535&g,S+=g>>>16,S+=(m+=(w+=(T+=65535&b)>>>16)>>>16)>>>16,s[4]=B=65535&m|S<<16,a[4]=le=65535&T|w<<16,T=65535&(b=ye),w=b>>>16,m=65535&(g=Y),S=g>>>16,g=s[5],w+=(b=a[5])>>>16,m+=65535&g,S+=g>>>16,S+=(m+=(w+=(T+=65535&b)>>>16)>>>16)>>>16,s[5]=Y=65535&m|S<<16,a[5]=ye=65535&T|w<<16,T=65535&(b=me),w=b>>>16,m=65535&(g=G),S=g>>>16,g=s[6],w+=(b=a[6])>>>16,m+=65535&g,S+=g>>>16,S+=(m+=(w+=(T+=65535&b)>>>16)>>>16)>>>16,s[6]=G=65535&m|S<<16,a[6]=me=65535&T|w<<16,T=65535&(b=we),w=b>>>16,m=65535&(g=Z),S=g>>>16,g=s[7],w+=(b=a[7])>>>16,m+=65535&g,S+=g>>>16,S+=(m+=(w+=(T+=65535&b)>>>16)>>>16)>>>16,s[7]=Z=65535&m|S<<16,a[7]=we=65535&T|w<<16,Se+=128,t-=128}return t}function $e(s,a,c){var t,i=new Int32Array(8),l=new Int32Array(8),d=new Uint8Array(256),f=c;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,l[0]=4089235720,l[1]=2227873595,l[2]=4271175723,l[3]=1595750129,l[4]=2917565137,l[5]=725511199,l[6]=4215389547,l[7]=327033209,ct(i,l,a,c),c%=128,t=0;t<c;t++)d[t]=a[f-c+t];for(d[c]=128,d[(c=256-128*(c<112?1:0))-9]=0,Te(d,c-8,f/536870912|0,f<<3),ct(i,l,d,c),t=0;t<8;t++)Te(s,8*t,i[t],l[t]);return 0}function ht(s,a){var c=v(),t=v(),i=v(),l=v(),d=v(),f=v(),h=v(),_=v(),D=v();ze(c,s[1],s[0]),ze(D,a[1],a[0]),ae(c,c,D),Ae(t,s[0],s[1]),Ae(D,a[0],a[1]),ae(t,t,D),ae(i,s[3],a[3]),ae(i,i,P),ae(l,s[2],a[2]),Ae(l,l,l),ze(d,t,c),ze(f,l,i),Ae(h,l,i),Ae(_,t,c),ae(s[0],d,f),ae(s[1],_,h),ae(s[2],h,f),ae(s[3],d,_)}function Lt(s,a,c){var t;for(t=0;t<4;t++)_e(s[t],a[t],c)}function yt(s,a){var c=v(),t=v(),i=v();vt(i,a[2]),ae(c,a[0],i),ae(t,a[1],i),tt(s,t),s[31]^=Je(c)<<7}function mt(s,a,c){var t,i;for(Ye(s[0],ie),Ye(s[1],W),Ye(s[2],W),Ye(s[3],ie),i=255;i>=0;--i)Lt(s,a,t=c[i/8|0]>>(7&i)&1),ht(a,s),ht(s,s),Lt(s,a,t)}function nt(s,a){var c=[v(),v(),v(),v()];Ye(c[0],V),Ye(c[1],ve),Ye(c[2],W),ae(c[3],V,ve),mt(s,c,a)}function Be(s,a,c){var t,i=new Uint8Array(64),l=[v(),v(),v(),v()];for(c||K(a,32),$e(i,a,32),i[0]&=248,i[31]&=127,i[31]|=64,nt(l,i),yt(s,l),t=0;t<32;t++)a[t+32]=s[t];return 0}var ut=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function We(s,a){var c,t,i,l;for(t=63;t>=32;--t){for(c=0,i=t-32,l=t-12;i<l;++i)a[i]+=c-16*a[t]*ut[i-(t-32)],c=Math.floor((a[i]+128)/256),a[i]-=256*c;a[i]+=c,a[t]=0}for(c=0,i=0;i<32;i++)a[i]+=c-(a[31]>>4)*ut[i],c=a[i]>>8,a[i]&=255;for(i=0;i<32;i++)a[i]-=c*ut[i];for(t=0;t<32;t++)a[t+1]+=a[t]>>8,s[t]=255&a[t]}function wt(s){var a,c=new Float64Array(64);for(a=0;a<64;a++)c[a]=s[a];for(a=0;a<64;a++)s[a]=0;We(s,c)}function _t(s,a,c,t){var i,l,d=new Uint8Array(64),f=new Uint8Array(64),h=new Uint8Array(64),_=new Float64Array(64),D=[v(),v(),v(),v()];$e(d,t,32),d[0]&=248,d[31]&=127,d[31]|=64;var O=c+64;for(i=0;i<c;i++)s[64+i]=a[i];for(i=0;i<32;i++)s[32+i]=d[32+i];for($e(h,s.subarray(32),c+32),wt(h),nt(D,h),yt(s,D),i=32;i<64;i++)s[i]=t[i];for($e(f,s,c+64),wt(f),i=0;i<64;i++)_[i]=0;for(i=0;i<32;i++)_[i]=h[i];for(i=0;i<32;i++)for(l=0;l<32;l++)_[i+l]+=f[i]*d[l];return We(s.subarray(32),_),O}function lt(s,a,c,t){var i,l=new Uint8Array(32),d=new Uint8Array(64),f=[v(),v(),v(),v()],h=[v(),v(),v(),v()];if(c<64||function(_,D){var O=v(),z=v(),j=v(),L=v(),q=v(),F=v(),R=v();return Ye(_[2],W),st(_[1],D),Ne(j,_[1]),ae(L,j,C),ze(j,j,_[2]),Ae(L,_[2],L),Ne(q,L),Ne(F,q),ae(R,F,q),ae(O,R,j),ae(O,O,L),Ot(O,O),ae(O,O,j),ae(O,O,L),ae(O,O,L),ae(_[0],O,L),Ne(z,_[0]),ae(z,z,L),bt(z,j)&&ae(_[0],_[0],De),Ne(z,_[0]),ae(z,z,L),bt(z,j)?-1:(Je(_[0])===D[31]>>7&&ze(_[0],ie,_[0]),ae(_[3],_[0],_[1]),0)}(h,t))return-1;for(i=0;i<c;i++)s[i]=a[i];for(i=0;i<32;i++)s[i+32]=t[i];if($e(d,s,c),wt(d),mt(f,h,d),nt(h,a.subarray(32)),ht(f,h),yt(l,f),c-=64,Re(a,0,l,0)){for(i=0;i<c;i++)s[i]=0;return-1}for(i=0;i<c;i++)s[i]=a[i+64];return c}var Ze,rt=16,He=64,Qe=32,et=64;function At(s,a){if(s.length!==32)throw new Error("bad key size");if(a.length!==24)throw new Error("bad nonce size")}function je(){for(var s=0;s<arguments.length;s++)if(!(arguments[s]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function Ut(s){for(var a=0;a<s.length;a++)s[a]=0}y.lowlevel={crypto_core_hsalsa20:Le,crypto_stream_xor:pt,crypto_stream:Tt,crypto_stream_salsa20_xor:kt,crypto_stream_salsa20:Ct,crypto_onetimeauth:ft,crypto_onetimeauth_verify:Et,crypto_verify_16:Fe,crypto_verify_32:Re,crypto_secretbox:Ke,crypto_secretbox_open:gt,crypto_scalarmult:ot,crypto_scalarmult_base:Ve,crypto_box_beforenm:at,crypto_box_afternm:Pt,crypto_box:function(s,a,c,t,i,l){var d=new Uint8Array(32);return at(d,i,l),Pt(s,a,c,t,d)},crypto_box_open:function(s,a,c,t,i,l){var d=new Uint8Array(32);return at(d,i,l),Nt(s,a,c,t,d)},crypto_box_keypair:be,crypto_hash:$e,crypto_sign:_t,crypto_sign_keypair:Be,crypto_sign_open:lt,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:rt,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:He,crypto_sign_PUBLICKEYBYTES:Qe,crypto_sign_SECRETKEYBYTES:et,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:v,D:C,L:ut,pack25519:tt,unpack25519:st,M:ae,A:Ae,S:Ne,Z:ze,pow2523:Ot,add:ht,set25519:Ye,modL:We,scalarmult:mt,scalarbase:nt},y.randomBytes=function(s){var a=new Uint8Array(s);return K(a,s),a},y.secretbox=function(s,a,c){je(s,a,c),At(c,a);for(var t=new Uint8Array(32+s.length),i=new Uint8Array(t.length),l=0;l<s.length;l++)t[l+32]=s[l];return Ke(i,t,t.length,a,c),i.subarray(rt)},y.secretbox.open=function(s,a,c){je(s,a,c),At(c,a);for(var t=new Uint8Array(rt+s.length),i=new Uint8Array(t.length),l=0;l<s.length;l++)t[l+rt]=s[l];return t.length<32||gt(i,t,t.length,a,c)!==0?null:i.subarray(32)},y.secretbox.keyLength=32,y.secretbox.nonceLength=24,y.secretbox.overheadLength=rt,y.scalarMult=function(s,a){if(je(s,a),s.length!==32)throw new Error("bad n size");if(a.length!==32)throw new Error("bad p size");var c=new Uint8Array(32);return ot(c,s,a),c},y.scalarMult.base=function(s){if(je(s),s.length!==32)throw new Error("bad n size");var a=new Uint8Array(32);return Ve(a,s),a},y.scalarMult.scalarLength=32,y.scalarMult.groupElementLength=32,y.box=function(s,a,c,t){var i=y.box.before(c,t);return y.secretbox(s,a,i)},y.box.before=function(s,a){je(s,a),function(t,i){if(t.length!==32)throw new Error("bad public key size");if(i.length!==32)throw new Error("bad secret key size")}(s,a);var c=new Uint8Array(32);return at(c,s,a),c},y.box.after=y.secretbox,y.box.open=function(s,a,c,t){var i=y.box.before(c,t);return y.secretbox.open(s,a,i)},y.box.open.after=y.secretbox.open,y.box.keyPair=function(){var s=new Uint8Array(32),a=new Uint8Array(32);return be(s,a),{publicKey:s,secretKey:a}},y.box.keyPair.fromSecretKey=function(s){if(je(s),s.length!==32)throw new Error("bad secret key size");var a=new Uint8Array(32);return Ve(a,s),{publicKey:a,secretKey:new Uint8Array(s)}},y.box.publicKeyLength=32,y.box.secretKeyLength=32,y.box.sharedKeyLength=32,y.box.nonceLength=24,y.box.overheadLength=y.secretbox.overheadLength,y.sign=function(s,a){if(je(s,a),a.length!==et)throw new Error("bad secret key size");var c=new Uint8Array(He+s.length);return _t(c,s,s.length,a),c},y.sign.open=function(s,a){if(je(s,a),a.length!==Qe)throw new Error("bad public key size");var c=new Uint8Array(s.length),t=lt(c,s,s.length,a);if(t<0)return null;for(var i=new Uint8Array(t),l=0;l<i.length;l++)i[l]=c[l];return i},y.sign.detached=function(s,a){for(var c=y.sign(s,a),t=new Uint8Array(He),i=0;i<t.length;i++)t[i]=c[i];return t},y.sign.detached.verify=function(s,a,c){if(je(s,a,c),a.length!==He)throw new Error("bad signature size");if(c.length!==Qe)throw new Error("bad public key size");var t,i=new Uint8Array(He+s.length),l=new Uint8Array(He+s.length);for(t=0;t<He;t++)i[t]=a[t];for(t=0;t<s.length;t++)i[t+He]=s[t];return lt(l,i,i.length,c)>=0},y.sign.keyPair=function(){var s=new Uint8Array(Qe),a=new Uint8Array(et);return Be(s,a),{publicKey:s,secretKey:a}},y.sign.keyPair.fromSecretKey=function(s){if(je(s),s.length!==et)throw new Error("bad secret key size");for(var a=new Uint8Array(Qe),c=0;c<a.length;c++)a[c]=s[32+c];return{publicKey:a,secretKey:new Uint8Array(s)}},y.sign.keyPair.fromSeed=function(s){if(je(s),s.length!==32)throw new Error("bad seed size");for(var a=new Uint8Array(Qe),c=new Uint8Array(et),t=0;t<32;t++)c[t]=s[t];return Be(a,c,!0),{publicKey:a,secretKey:c}},y.sign.publicKeyLength=Qe,y.sign.secretKeyLength=et,y.sign.seedLength=32,y.sign.signatureLength=He,y.hash=function(s){je(s);var a=new Uint8Array(64);return $e(a,s,s.length),a},y.hash.hashLength=64,y.verify=function(s,a){return je(s,a),s.length!==0&&a.length!==0&&s.length===a.length&&Ie(s,0,a,0,s.length)===0},y.setPRNG=function(s){K=s},(Ze=typeof self<"u"?self.crypto||self.msCrypto:null)&&Ze.getRandomValues?y.setPRNG(function(s,a){var c,t=new Uint8Array(a);for(c=0;c<a;c+=65536)Ze.getRandomValues(t.subarray(c,c+Math.min(a-c,65536)));for(c=0;c<a;c++)s[c]=t[c];Ut(t)}):(Ze=ue(4))&&Ze.randomBytes&&y.setPRNG(function(s,a){var c,t=Ze.randomBytes(a);for(c=0;c<a;c++)s[c]=t[c];Ut(t)})})(xe.exports?xe.exports:self.nacl=self.nacl||{})},function(xe,ge,ue){xe.exports=ue(5).default},function(xe,ge){},function(xe,ge,ue){ue.r(ge),ue.d(ge,"default",function(){return Rt});class y{constructor(e,r){this.lastId=0,this.prefix=e,this.name=r}create(e){this.lastId++;var r=this.lastId,o=this.prefix+r,u=this.name+"["+r+"]",p=!1,k=function(){p||(e.apply(null,arguments),p=!0)};return this[r]=k,{number:r,id:o,name:u,callback:k}}remove(e){delete this[e.number]}}var v=new y("_pusher_script_","Pusher.ScriptReceivers"),K={VERSION:"8.4.0",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,userAuthentication:{endpoint:"/pusher/user-auth",transport:"ajax"},channelAuthorization:{endpoint:"/pusher/auth",transport:"ajax"},cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""},fe=new y("_pusher_dependencies","Pusher.DependenciesReceivers"),ce=new class{constructor(n){this.options=n,this.receivers=n.receivers||v,this.loading={}}load(n,e,r){var o=this;if(o.loading[n]&&o.loading[n].length>0)o.loading[n].push(r);else{o.loading[n]=[r];var u=U.createScriptRequest(o.getPath(n,e)),p=o.receivers.create(function(k){if(o.receivers.remove(p),o.loading[n]){var E=o.loading[n];delete o.loading[n];for(var N=function(ne){ne||u.cleanup()},$=0;$<E.length;$++)E[$](k,N)}});u.send(p)}}getRoot(n){var e=U.getDocument().location.protocol;return(n&&n.useTLS||e==="https:"?this.options.cdn_https:this.options.cdn_http).replace(/\/*$/,"")+"/"+this.options.version}getPath(n,e){return this.getRoot(e)+"/"+n+this.options.suffix+".js"}}({cdn_http:K.cdn_http,cdn_https:K.cdn_https,version:K.VERSION,suffix:K.dependency_suffix,receivers:fe});const ie={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}}};var W,x=function(n){const e=ie.urls[n];if(!e)return"";let r;return e.fullUrl?r=e.fullUrl:e.path&&(r=ie.baseUrl+e.path),r?`See: ${r}`:""};(function(n){n.UserAuthentication="user-authentication",n.ChannelAuthorization="channel-authorization"})(W||(W={}));class C extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class P extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class V extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class ve extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class De extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class Te extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class Ie extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class Fe extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class Re extends Error{constructor(e,r){super(r),this.status=e,Object.setPrototypeOf(this,new.target.prototype)}}var Me=function(n,e,r,o,u){const p=U.createXHR();for(var k in p.open("POST",r.endpoint,!0),p.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.headers)p.setRequestHeader(k,r.headers[k]);if(r.headersProvider!=null){let E=r.headersProvider();for(var k in E)p.setRequestHeader(k,E[k])}return p.onreadystatechange=function(){if(p.readyState===4)if(p.status===200){let E,N=!1;try{E=JSON.parse(p.responseText),N=!0}catch{u(new Re(200,`JSON returned from ${o.toString()} endpoint was invalid, yet status code was 200. Data was: ${p.responseText}`),null)}N&&u(null,E)}else{let E="";switch(o){case W.UserAuthentication:E=x("authenticationEndpoint");break;case W.ChannelAuthorization:E=`Clients must be authorized to join private or presence channels. ${x("authorizationEndpoint")}`}u(new Re(p.status,`Unable to retrieve auth string from ${o.toString()} endpoint - received status: ${p.status} from ${r.endpoint}. ${E}`),null)}},p.send(e),p},Le=String.fromCharCode,Xe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",kt=function(n){var e=n.charCodeAt(0);return e<128?n:e<2048?Le(192|e>>>6)+Le(128|63&e):Le(224|e>>>12&15)+Le(128|e>>>6&63)+Le(128|63&e)},Ct=function(n){return n.replace(/[^\x00-\x7F]/g,kt)},Tt=function(n){var e=[0,2,1][n.length%3],r=n.charCodeAt(0)<<16|(n.length>1?n.charCodeAt(1):0)<<8|(n.length>2?n.charCodeAt(2):0);return[Xe.charAt(r>>>18),Xe.charAt(r>>>12&63),e>=2?"=":Xe.charAt(r>>>6&63),e>=1?"=":Xe.charAt(63&r)].join("")},pt=window.btoa||function(n){return n.replace(/[\s\S]{1,3}/g,Tt)},it=class{constructor(n,e,r,o){this.clear=e,this.timer=n(()=>{this.timer&&(this.timer=o(this.timer))},r)}isRunning(){return this.timer!==null}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}};function ft(n){window.clearTimeout(n)}function Et(n){window.clearInterval(n)}class Ke extends it{constructor(e,r){super(setTimeout,ft,e,function(o){return r(),null})}}class gt extends it{constructor(e,r){super(setInterval,Et,e,function(o){return r(),o})}}var Ye={now:()=>Date.now?Date.now():new Date().valueOf(),defer:n=>new Ke(0,n),method(n,...e){var r=Array.prototype.slice.call(arguments,1);return function(o){return o[n].apply(o,r.concat(arguments))}}},Ce=Ye;function _e(n,...e){for(var r=0;r<e.length;r++){var o=e[r];for(var u in o)o[u]&&o[u].constructor&&o[u].constructor===Object?n[u]=_e(n[u]||{},o[u]):n[u]=o[u]}return n}function tt(){for(var n=["Pusher"],e=0;e<arguments.length;e++)typeof arguments[e]=="string"?n.push(arguments[e]):n.push(Ve(arguments[e]));return n.join(" : ")}function bt(n,e){var r=Array.prototype.indexOf;if(n===null)return-1;if(r&&n.indexOf===r)return n.indexOf(e);for(var o=0,u=n.length;o<u;o++)if(n[o]===e)return o;return-1}function Je(n,e){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e(n[r],r,n)}function st(n){var e=[];return Je(n,function(r,o){e.push(o)}),e}function Ae(n,e,r){for(var o=0;o<n.length;o++)e.call(r||window,n[o],o,n)}function ze(n,e){for(var r=[],o=0;o<n.length;o++)r.push(e(n[o],o,n,r));return r}function ae(n,e){e=e||function(u){return!!u};for(var r=[],o=0;o<n.length;o++)e(n[o],o,n,r)&&r.push(n[o]);return r}function Ne(n,e){var r={};return Je(n,function(o,u){(e&&e(o,u,n,r)||o)&&(r[u]=o)}),r}function vt(n,e){for(var r=0;r<n.length;r++)if(e(n[r],r,n))return!0;return!1}function Ot(n){return e=function(o){return typeof o=="object"&&(o=Ve(o)),encodeURIComponent((u=o.toString(),pt(Ct(u))));var u},r={},Je(n,function(o,u){r[u]=e(o)}),r;var e,r}function ot(n){var e,r,o=Ne(n,function(u){return u!==void 0});return ze((e=Ot(o),r=[],Je(e,function(u,p){r.push([p,u])}),r),Ce.method("join","=")).join("&")}function Ve(n){try{return JSON.stringify(n)}catch{return JSON.stringify((e=[],r=[],function u(p,k){var E,N,$;switch(typeof p){case"object":if(!p)return null;for(E=0;E<e.length;E+=1)if(e[E]===p)return{$ref:r[E]};if(e.push(p),r.push(k),Object.prototype.toString.apply(p)==="[object Array]")for($=[],E=0;E<p.length;E+=1)$[E]=u(p[E],k+"["+E+"]");else for(N in $={},p)Object.prototype.hasOwnProperty.call(p,N)&&($[N]=u(p[N],k+"["+JSON.stringify(N)+"]"));return $;case"number":case"string":case"boolean":return p}}(n,"$")))}var e,r}var be=new class{constructor(){this.globalLog=n=>{window.console&&window.console.log&&window.console.log(n)}}debug(...n){this.log(this.globalLog,n)}warn(...n){this.log(this.globalLogWarn,n)}error(...n){this.log(this.globalLogError,n)}globalLogWarn(n){window.console&&window.console.warn?window.console.warn(n):this.globalLog(n)}globalLogError(n){window.console&&window.console.error?window.console.error(n):this.globalLogWarn(n)}log(n,...e){var r=tt.apply(this,arguments);dt.log?dt.log(r):dt.logToConsole&&n.bind(this)(r)}},at=function(n,e,r,o,u){r.headers===void 0&&r.headersProvider==null||be.warn(`To send headers with the ${o.toString()} request, you must use AJAX, rather than JSONP.`);var p=n.nextAuthCallbackID.toString();n.nextAuthCallbackID++;var k=n.getDocument(),E=k.createElement("script");n.auth_callbacks[p]=function(ne){u(null,ne)};var N="Pusher.auth_callbacks['"+p+"']";E.src=r.endpoint+"?callback="+encodeURIComponent(N)+"&"+e;var $=k.getElementsByTagName("head")[0]||k.documentElement;$.insertBefore(E,$.firstChild)};class Pt{constructor(e){this.src=e}send(e){var r=this,o="Error loading "+r.src;r.script=document.createElement("script"),r.script.id=e.id,r.script.src=r.src,r.script.type="text/javascript",r.script.charset="UTF-8",r.script.addEventListener?(r.script.onerror=function(){e.callback(o)},r.script.onload=function(){e.callback(null)}):r.script.onreadystatechange=function(){r.script.readyState!=="loaded"&&r.script.readyState!=="complete"||e.callback(null)},r.script.async===void 0&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(r.errorScript=document.createElement("script"),r.errorScript.id=e.id+"_error",r.errorScript.text=e.name+"('"+o+"');",r.script.async=r.errorScript.async=!1):r.script.async=!0;var u=document.getElementsByTagName("head")[0];u.insertBefore(r.script,u.firstChild),r.errorScript&&u.insertBefore(r.errorScript,r.script.nextSibling)}cleanup(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null}}class Nt{constructor(e,r){this.url=e,this.data=r}send(e){if(!this.request){var r=ot(this.data),o=this.url+"/"+e.number+"?"+r;this.request=U.createScriptRequest(o),this.request.send(e)}}cleanup(){this.request&&this.request.cleanup()}}var xt={name:"jsonp",getAgent:function(n,e){return function(r,o){var u="http"+(e?"s":"")+"://"+(n.host||n.options.host)+n.options.path,p=U.createJSONPRequest(u,r),k=U.ScriptReceivers.create(function(E,N){v.remove(k),p.cleanup(),N&&N.host&&(n.host=N.host),o&&o(E,N)});p.send(k)}}};function ct(n,e,r){return n+(e.useTLS?"s":"")+"://"+(e.useTLS?e.hostTLS:e.hostNonTLS)+r}function $e(n,e){return"/app/"+n+"?protocol="+K.PROTOCOL+"&client=js&version="+K.VERSION+(e?"&"+e:"")}var ht={getInitial:function(n,e){return ct("ws",e,(e.httpPath||"")+$e(n,"flash=false"))}},Lt={getInitial:function(n,e){return ct("http",e,(e.httpPath||"/pusher")+$e(n))}},yt={getInitial:function(n,e){return ct("http",e,e.httpPath||"/pusher")},getPath:function(n,e){return $e(n)}};class mt{constructor(){this._callbacks={}}get(e){return this._callbacks[nt(e)]}add(e,r,o){var u=nt(e);this._callbacks[u]=this._callbacks[u]||[],this._callbacks[u].push({fn:r,context:o})}remove(e,r,o){if(e||r||o){var u=e?[nt(e)]:st(this._callbacks);r||o?this.removeCallback(u,r,o):this.removeAllCallbacks(u)}else this._callbacks={}}removeCallback(e,r,o){Ae(e,function(u){this._callbacks[u]=ae(this._callbacks[u]||[],function(p){return r&&r!==p.fn||o&&o!==p.context}),this._callbacks[u].length===0&&delete this._callbacks[u]},this)}removeAllCallbacks(e){Ae(e,function(r){delete this._callbacks[r]},this)}}function nt(n){return"_"+n}class Be{constructor(e){this.callbacks=new mt,this.global_callbacks=[],this.failThrough=e}bind(e,r,o){return this.callbacks.add(e,r,o),this}bind_global(e){return this.global_callbacks.push(e),this}unbind(e,r,o){return this.callbacks.remove(e,r,o),this}unbind_global(e){return e?(this.global_callbacks=ae(this.global_callbacks||[],r=>r!==e),this):(this.global_callbacks=[],this)}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(e,r,o){for(var u=0;u<this.global_callbacks.length;u++)this.global_callbacks[u](e,r);var p=this.callbacks.get(e),k=[];if(o?k.push(r,o):r&&k.push(r),p&&p.length>0)for(u=0;u<p.length;u++)p[u].fn.apply(p[u].context||window,k);else this.failThrough&&this.failThrough(e,r);return this}}class ut extends Be{constructor(e,r,o,u,p){super(),this.initialize=U.transportConnectionInitializer,this.hooks=e,this.name=r,this.priority=o,this.key=u,this.options=p,this.state="new",this.timeline=p.timeline,this.activityTimeout=p.activityTimeout,this.id=this.timeline.generateUniqueID()}handlesActivityChecks(){return!!this.hooks.handlesActivityChecks}supportsPing(){return!!this.hooks.supportsPing}connect(){if(this.socket||this.state!=="initialized")return!1;var e=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(e,this.options)}catch(r){return Ce.defer(()=>{this.onError(r),this.changeState("closed")}),!1}return this.bindListeners(),be.debug("Connecting",{transport:this.name,url:e}),this.changeState("connecting"),!0}close(){return!!this.socket&&(this.socket.close(),!0)}send(e){return this.state==="open"&&(Ce.defer(()=>{this.socket&&this.socket.send(e)}),!0)}ping(){this.state==="open"&&this.supportsPing()&&this.socket.ping()}onOpen(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0}onError(e){this.emit("error",{type:"WebSocketError",error:e}),this.timeline.error(this.buildTimelineMessage({error:e.toString()}))}onClose(e){e?this.changeState("closed",{code:e.code,reason:e.reason,wasClean:e.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(e){this.emit("message",e)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=e=>{this.onError(e)},this.socket.onclose=e=>{this.onClose(e)},this.socket.onmessage=e=>{this.onMessage(e)},this.supportsPing()&&(this.socket.onactivity=()=>{this.onActivity()})}unbindListeners(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))}changeState(e,r){this.state=e,this.timeline.info(this.buildTimelineMessage({state:e,params:r})),this.emit(e,r)}buildTimelineMessage(e){return _e({cid:this.id},e)}}class We{constructor(e){this.hooks=e}isSupported(e){return this.hooks.isSupported(e)}createConnection(e,r,o,u){return new ut(this.hooks,e,r,o,u)}}var wt=new We({urls:ht,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return!!U.getWebSocketAPI()},isSupported:function(){return!!U.getWebSocketAPI()},getSocket:function(n){return U.createWebSocket(n)}}),_t={urls:Lt,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},lt=_e({getSocket:function(n){return U.HTTPFactory.createStreamingSocket(n)}},_t),Ze=_e({getSocket:function(n){return U.HTTPFactory.createPollingSocket(n)}},_t),rt={isSupported:function(){return U.isXHRSupported()}},He={ws:wt,xhr_streaming:new We(_e({},lt,rt)),xhr_polling:new We(_e({},Ze,rt))},Qe=new We({file:"sockjs",urls:yt,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return window.SockJS!==void 0},getSocket:function(n,e){return new window.SockJS(n,null,{js_path:ce.getPath("sockjs",{useTLS:e.useTLS}),ignore_null_origin:e.ignoreNullOrigin})},beforeOpen:function(n,e){n.send(JSON.stringify({path:e}))}}),et={isSupported:function(n){return U.isXDRSupported(n.useTLS)}},At=new We(_e({},lt,et)),je=new We(_e({},Ze,et));He.xdr_streaming=At,He.xdr_polling=je,He.sockjs=Qe;var Ut=He,s=new class extends Be{constructor(){super();var n=this;window.addEventListener!==void 0&&(window.addEventListener("online",function(){n.emit("online")},!1),window.addEventListener("offline",function(){n.emit("offline")},!1))}isOnline(){return window.navigator.onLine===void 0||window.navigator.onLine}};class a{constructor(e,r,o){this.manager=e,this.transport=r,this.minPingDelay=o.minPingDelay,this.maxPingDelay=o.maxPingDelay,this.pingDelay=void 0}createConnection(e,r,o,u){u=_e({},u,{activityTimeout:this.pingDelay});var p=this.transport.createConnection(e,r,o,u),k=null,E=function(){p.unbind("open",E),p.bind("closed",N),k=Ce.now()},N=$=>{if(p.unbind("closed",N),$.code===1002||$.code===1003)this.manager.reportDeath();else if(!$.wasClean&&k){var ne=Ce.now()-k;ne<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(ne/2,this.minPingDelay))}};return p.bind("open",E),p}isSupported(e){return this.manager.isAlive()&&this.transport.isSupported(e)}}const c={decodeMessage:function(n){try{var e=JSON.parse(n.data),r=e.data;if(typeof r=="string")try{r=JSON.parse(e.data)}catch{}var o={event:e.event,channel:e.channel,data:r};return e.user_id&&(o.user_id=e.user_id),o}catch(u){throw{type:"MessageParseError",error:u,data:n.data}}},encodeMessage:function(n){return JSON.stringify(n)},processHandshake:function(n){var e=c.decodeMessage(n);if(e.event==="pusher:connection_established"){if(!e.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:e.data.socket_id,activityTimeout:1e3*e.data.activity_timeout}}if(e.event==="pusher:error")return{action:this.getCloseAction(e.data),error:this.getCloseError(e.data)};throw"Invalid handshake"},getCloseAction:function(n){return n.code<4e3?n.code>=1002&&n.code<=1004?"backoff":null:n.code===4e3?"tls_only":n.code<4100?"refused":n.code<4200?"backoff":n.code<4300?"retry":"refused"},getCloseError:function(n){return n.code!==1e3&&n.code!==1001?{type:"PusherError",data:{code:n.code,message:n.reason||n.message}}:null}};var t=c;class i extends Be{constructor(e,r){super(),this.id=e,this.transport=r,this.activityTimeout=r.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(e){return this.transport.send(e)}send_event(e,r,o){var u={event:e,data:r};return o&&(u.channel=o),be.debug("Event sent",u),this.send(t.encodeMessage(u))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var e={message:o=>{var u;try{u=t.decodeMessage(o)}catch(p){this.emit("error",{type:"MessageParseError",error:p,data:o.data})}if(u!==void 0){switch(be.debug("Event recd",u),u.event){case"pusher:error":this.emit("error",{type:"PusherError",data:u.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong")}this.emit("message",u)}},activity:()=>{this.emit("activity")},error:o=>{this.emit("error",o)},closed:o=>{r(),o&&o.code&&this.handleCloseEvent(o),this.transport=null,this.emit("closed")}},r=()=>{Je(e,(o,u)=>{this.transport.unbind(u,o)})};Je(e,(o,u)=>{this.transport.bind(u,o)})}handleCloseEvent(e){var r=t.getCloseAction(e),o=t.getCloseError(e);o&&this.emit("error",o),r&&this.emit(r,{action:r,error:o})}}class l{constructor(e,r){this.transport=e,this.callback=r,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=e=>{var r;this.unbindListeners();try{r=t.processHandshake(e)}catch(o){return this.finish("error",{error:o}),void this.transport.close()}r.action==="connected"?this.finish("connected",{connection:new i(r.id,this.transport),activityTimeout:r.activityTimeout}):(this.finish(r.action,{error:r.error}),this.transport.close())},this.onClosed=e=>{this.unbindListeners();var r=t.getCloseAction(e)||"backoff",o=t.getCloseError(e);this.finish(r,{error:o})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)}unbindListeners(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)}finish(e,r){this.callback(_e({transport:this.transport,action:e},r))}}class d{constructor(e,r){this.timeline=e,this.options=r||{}}send(e,r){this.timeline.isEmpty()||this.timeline.send(U.TimelineTransport.getAgent(this,e),r)}}class f extends Be{constructor(e,r){super(function(o,u){be.debug("No callbacks on "+e+" for "+o)}),this.name=e,this.pusher=r,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(e,r){return r(null,{auth:""})}trigger(e,r){if(e.indexOf("client-")!==0)throw new C("Event '"+e+"' does not start with 'client-'");if(!this.subscribed){var o=x("triggeringClientEvents");be.warn(`Client event triggered before channel 'subscription_succeeded' event . ${o}`)}return this.pusher.send_event(e,r,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(e){var r=e.event,o=e.data;r==="pusher_internal:subscription_succeeded"?this.handleSubscriptionSucceededEvent(e):r==="pusher_internal:subscription_count"?this.handleSubscriptionCountEvent(e):r.indexOf("pusher_internal:")!==0&&this.emit(r,o,{})}handleSubscriptionSucceededEvent(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",e.data)}handleSubscriptionCountEvent(e){e.data.subscription_count&&(this.subscriptionCount=e.data.subscription_count),this.emit("pusher:subscription_count",e.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(e,r)=>{e?(this.subscriptionPending=!1,be.error(e.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:e.message},e instanceof Re?{status:e.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:r.auth,channel_data:r.channel_data,channel:this.name})}))}unsubscribe(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})}cancelSubscription(){this.subscriptionCancelled=!0}reinstateSubscription(){this.subscriptionCancelled=!1}}class h extends f{authorize(e,r){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:e},r)}}class _{constructor(){this.reset()}get(e){return Object.prototype.hasOwnProperty.call(this.members,e)?{id:e,info:this.members[e]}:null}each(e){Je(this.members,(r,o)=>{e(this.get(o))})}setMyID(e){this.myID=e}onSubscription(e){this.members=e.presence.hash,this.count=e.presence.count,this.me=this.get(this.myID)}addMember(e){return this.get(e.user_id)===null&&this.count++,this.members[e.user_id]=e.user_info,this.get(e.user_id)}removeMember(e){var r=this.get(e.user_id);return r&&(delete this.members[e.user_id],this.count--),r}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}var D=function(n,e,r,o){return new(r||(r=Promise))(function(u,p){function k($){try{N(o.next($))}catch(ne){p(ne)}}function E($){try{N(o.throw($))}catch(ne){p(ne)}}function N($){var ne;$.done?u($.value):(ne=$.value,ne instanceof r?ne:new r(function(ke){ke(ne)})).then(k,E)}N((o=o.apply(n,e||[])).next())})};class O extends h{constructor(e,r){super(e,r),this.members=new _}authorize(e,r){super.authorize(e,(o,u)=>D(this,void 0,void 0,function*(){if(!o)if(u.channel_data!=null){var p=JSON.parse(u.channel_data);this.members.setMyID(p.user_id)}else{if(yield this.pusher.user.signinDonePromise,this.pusher.user.user_data==null){let k=x("authorizationEndpoint");return be.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${k}, or the user should be signed in.`),void r("Invalid auth response")}this.members.setMyID(this.pusher.user.user_data.id)}r(o,u)}))}handleEvent(e){var r=e.event;if(r.indexOf("pusher_internal:")===0)this.handleInternalEvent(e);else{var o=e.data,u={};e.user_id&&(u.user_id=e.user_id),this.emit(r,o,u)}}handleInternalEvent(e){var r=e.event,o=e.data;switch(r){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(e);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(e);break;case"pusher_internal:member_added":var u=this.members.addMember(o);this.emit("pusher:member_added",u);break;case"pusher_internal:member_removed":var p=this.members.removeMember(o);p&&this.emit("pusher:member_removed",p)}}handleSubscriptionSucceededEvent(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(e.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var z=ue(1),j=ue(0);class L extends h{constructor(e,r,o){super(e,r),this.key=null,this.nacl=o}authorize(e,r){super.authorize(e,(o,u)=>{if(o)return void r(o,u);let p=u.shared_secret;p?(this.key=Object(j.decode)(p),delete u.shared_secret,r(null,u)):r(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null)})}trigger(e,r){throw new Te("Client events are not currently supported for encrypted channels")}handleEvent(e){var r=e.event,o=e.data;r.indexOf("pusher_internal:")!==0&&r.indexOf("pusher:")!==0?this.handleEncryptedEvent(r,o):super.handleEvent(e)}handleEncryptedEvent(e,r){if(!this.key)return void be.debug("Received encrypted event before key has been retrieved from the authEndpoint");if(!r.ciphertext||!r.nonce)return void be.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+r);let o=Object(j.decode)(r.ciphertext);if(o.length<this.nacl.secretbox.overheadLength)return void be.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${o.length}`);let u=Object(j.decode)(r.nonce);if(u.length<this.nacl.secretbox.nonceLength)return void be.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${u.length}`);let p=this.nacl.secretbox.open(o,u,this.key);if(p===null)return be.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),void this.authorize(this.pusher.connection.socket_id,(k,E)=>{k?be.error(`Failed to make a request to the authEndpoint: ${E}. Unable to fetch new key, so dropping encrypted event`):(p=this.nacl.secretbox.open(o,u,this.key),p!==null?this.emit(e,this.getDataToEmit(p)):be.error("Failed to decrypt event with new key. Dropping encrypted event"))});this.emit(e,this.getDataToEmit(p))}getDataToEmit(e){let r=Object(z.decode)(e);try{return JSON.parse(r)}catch{return r}}}class q extends Be{constructor(e,r){super(),this.state="initialized",this.connection=null,this.key=e,this.options=r,this.timeline=this.options.timeline,this.usingTLS=this.options.useTLS,this.errorCallbacks=this.buildErrorCallbacks(),this.connectionCallbacks=this.buildConnectionCallbacks(this.errorCallbacks),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var o=U.getNetwork();o.bind("online",()=>{this.timeline.info({netinfo:"online"}),this.state!=="connecting"&&this.state!=="unavailable"||this.retryIn(0)}),o.bind("offline",()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()}),this.updateStrategy()}connect(){this.connection||this.runner||(this.strategy.isSupported()?(this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()):this.updateState("failed"))}send(e){return!!this.connection&&this.connection.send(e)}send_event(e,r,o){return!!this.connection&&this.connection.send_event(e,r,o)}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var e=(r,o)=>{r?this.runner=this.strategy.connect(0,e):o.action==="error"?(this.emit("error",{type:"HandshakeError",error:o.error}),this.timeline.error({handshakeError:o.error})):(this.abortConnecting(),this.handshakeCallbacks[o.action](o))};this.runner=this.strategy.connect(0,e)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection&&this.abandonConnection().close()}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(e){this.timeline.info({action:"retry",delay:e}),e>0&&this.emit("connecting_in",Math.round(e/1e3)),this.retryTimer=new Ke(e||0,()=>{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new Ke(this.options.unavailableTimeout,()=>{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new Ke(this.options.pongTimeout,()=>{this.timeline.error({pong_timed_out:this.options.pongTimeout}),this.retryIn(0)})}resetActivityCheck(){this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new Ke(this.activityTimeout,()=>{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(e){return _e({},e,{message:r=>{this.resetActivityCheck(),this.emit("message",r)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:r=>{this.emit("error",r)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(e){return _e({},e,{connected:r=>{this.activityTimeout=Math.min(this.options.activityTimeout,r.activityTimeout,r.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(r.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let e=r=>o=>{o.error&&this.emit("error",{type:"WebSocketError",error:o.error}),r(o)};return{tls_only:e(()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:e(()=>{this.disconnect()}),backoff:e(()=>{this.retryIn(1e3)}),retry:e(()=>{this.retryIn(0)})}}setConnection(e){for(var r in this.connection=e,this.connectionCallbacks)this.connection.bind(r,this.connectionCallbacks[r]);this.resetActivityCheck()}abandonConnection(){if(this.connection){for(var e in this.stopActivityCheck(),this.connectionCallbacks)this.connection.unbind(e,this.connectionCallbacks[e]);var r=this.connection;return this.connection=null,r}}updateState(e,r){var o=this.state;if(this.state=e,o!==e){var u=e;u==="connected"&&(u+=" with new socket ID "+r.socket_id),be.debug("State changed",o+" -> "+u),this.timeline.info({state:e,params:r}),this.emit("state_change",{previous:o,current:e}),this.emit(e,r)}}shouldRetry(){return this.state==="connecting"||this.state==="connected"}}class F{constructor(){this.channels={}}add(e,r){return this.channels[e]||(this.channels[e]=function(o,u){if(o.indexOf("private-encrypted-")===0){if(u.config.nacl)return R.createEncryptedChannel(o,u,u.config.nacl);let p="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",k=x("encryptedChannelSupport");throw new Te(`${p}. ${k}`)}if(o.indexOf("private-")===0)return R.createPrivateChannel(o,u);if(o.indexOf("presence-")===0)return R.createPresenceChannel(o,u);if(o.indexOf("#")===0)throw new P('Cannot create a channel with name "'+o+'".');return R.createChannel(o,u)}(e,r)),this.channels[e]}all(){return function(e){var r=[];return Je(e,function(o){r.push(o)}),r}(this.channels)}find(e){return this.channels[e]}remove(e){var r=this.channels[e];return delete this.channels[e],r}disconnect(){Je(this.channels,function(e){e.disconnect()})}}var R={createChannels:()=>new F,createConnectionManager:(n,e)=>new q(n,e),createChannel:(n,e)=>new f(n,e),createPrivateChannel:(n,e)=>new h(n,e),createPresenceChannel:(n,e)=>new O(n,e),createEncryptedChannel:(n,e,r)=>new L(n,e,r),createTimelineSender:(n,e)=>new d(n,e),createHandshake:(n,e)=>new l(n,e),createAssistantToTheTransportManager:(n,e,r)=>new a(n,e,r)};class X{constructor(e){this.options=e||{},this.livesLeft=this.options.lives||1/0}getAssistant(e){return R.createAssistantToTheTransportManager(this,e,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class M{constructor(e,r){this.strategies=e,this.loop=!!r.loop,this.failFast=!!r.failFast,this.timeout=r.timeout,this.timeoutLimit=r.timeoutLimit}isSupported(){return vt(this.strategies,Ce.method("isSupported"))}connect(e,r){var o=this.strategies,u=0,p=this.timeout,k=null,E=(N,$)=>{$?r(null,$):(u+=1,this.loop&&(u%=o.length),u<o.length?(p&&(p*=2,this.timeoutLimit&&(p=Math.min(p,this.timeoutLimit))),k=this.tryStrategy(o[u],e,{timeout:p,failFast:this.failFast},E)):r(!0))};return k=this.tryStrategy(o[u],e,{timeout:p,failFast:this.failFast},E),{abort:function(){k.abort()},forceMinPriority:function(N){e=N,k&&k.forceMinPriority(N)}}}tryStrategy(e,r,o,u){var p=null,k=null;return o.timeout>0&&(p=new Ke(o.timeout,function(){k.abort(),u(!0)})),k=e.connect(r,function(E,N){E&&p&&p.isRunning()&&!o.failFast||(p&&p.ensureAborted(),u(E,N))}),{abort:function(){p&&p.ensureAborted(),k.abort()},forceMinPriority:function(E){k.forceMinPriority(E)}}}}class A{constructor(e){this.strategies=e}isSupported(){return vt(this.strategies,Ce.method("isSupported"))}connect(e,r){return function(o,u,p){var k=ze(o,function(E,N,$,ne){return E.connect(u,p(N,ne))});return{abort:function(){Ae(k,J)},forceMinPriority:function(E){Ae(k,function(N){N.forceMinPriority(E)})}}}(this.strategies,e,function(o,u){return function(p,k){u[o].error=p,p?function(E){return function(N,$){for(var ne=0;ne<N.length;ne++)if(!$(N[ne],ne,N))return!1;return!0}(E,function(N){return!!N.error})}(u)&&r(!0):(Ae(u,function(E){E.forceMinPriority(k.transport.priority)}),r(null,k))}})}}function J(n){n.error||n.aborted||(n.abort(),n.aborted=!0)}class te{constructor(e,r,o){this.strategy=e,this.transports=r,this.ttl=o.ttl||18e5,this.usingTLS=o.useTLS,this.timeline=o.timeline}isSupported(){return this.strategy.isSupported()}connect(e,r){var o=this.usingTLS,u=function(ne){var ke=U.getLocalStorage();if(ke)try{var Ge=ke[I(ne)];if(Ge)return JSON.parse(Ge)}catch{g(ne)}return null}(o),p=u&&u.cacheSkipCount?u.cacheSkipCount:0,k=[this.strategy];if(u&&u.timestamp+this.ttl>=Ce.now()){var E=this.transports[u.transport];E&&(["ws","wss"].includes(u.transport)||p>3?(this.timeline.info({cached:!0,transport:u.transport,latency:u.latency}),k.push(new M([E],{timeout:2*u.latency+1e3,failFast:!0}))):p++)}var N=Ce.now(),$=k.pop().connect(e,function ne(ke,Ge){ke?(g(o),k.length>0?(N=Ce.now(),$=k.pop().connect(e,ne)):r(ke)):(function(It,jt,Mt,Dt){var St=U.getLocalStorage();if(St)try{St[I(It)]=Ve({timestamp:Ce.now(),transport:jt,latency:Mt,cacheSkipCount:Dt})}catch{}}(o,Ge.transport.name,Ce.now()-N,p),r(null,Ge))});return{abort:function(){$.abort()},forceMinPriority:function(ne){e=ne,$&&$.forceMinPriority(ne)}}}}function I(n){return"pusherTransport"+(n?"TLS":"NonTLS")}function g(n){var e=U.getLocalStorage();if(e)try{delete e[I(n)]}catch{}}class b{constructor(e,{delay:r}){this.strategy=e,this.options={delay:r}}isSupported(){return this.strategy.isSupported()}connect(e,r){var o,u=this.strategy,p=new Ke(this.options.delay,function(){o=u.connect(e,r)});return{abort:function(){p.ensureAborted(),o&&o.abort()},forceMinPriority:function(k){e=k,o&&o.forceMinPriority(k)}}}}class T{constructor(e,r,o){this.test=e,this.trueBranch=r,this.falseBranch=o}isSupported(){return(this.test()?this.trueBranch:this.falseBranch).isSupported()}connect(e,r){return(this.test()?this.trueBranch:this.falseBranch).connect(e,r)}}class w{constructor(e){this.strategy=e}isSupported(){return this.strategy.isSupported()}connect(e,r){var o=this.strategy.connect(e,function(u,p){p&&o.abort(),r(u,p)});return o}}function m(n){return function(){return n.isSupported()}}var S,ee=function(n,e,r){var o={};function u(Jt,pn,fn,gn,bn){var Kt=r(n,Jt,pn,fn,gn,bn);return o[Jt]=Kt,Kt}var p,k=Object.assign({},e,{hostNonTLS:n.wsHost+":"+n.wsPort,hostTLS:n.wsHost+":"+n.wssPort,httpPath:n.wsPath}),E=Object.assign({},k,{useTLS:!0}),N=Object.assign({},e,{hostNonTLS:n.httpHost+":"+n.httpPort,hostTLS:n.httpHost+":"+n.httpsPort,httpPath:n.httpPath}),$={loop:!0,timeout:15e3,timeoutLimit:6e4},ne=new X({minPingDelay:1e4,maxPingDelay:n.activityTimeout}),ke=new X({lives:2,minPingDelay:1e4,maxPingDelay:n.activityTimeout}),Ge=u("ws","ws",3,k,ne),It=u("wss","ws",3,E,ne),jt=u("sockjs","sockjs",1,N),Mt=u("xhr_streaming","xhr_streaming",1,N,ke),Dt=u("xdr_streaming","xdr_streaming",1,N,ke),St=u("xhr_polling","xhr_polling",1,N),Ht=u("xdr_polling","xdr_polling",1,N),Bt=new M([Ge],$),ln=new M([It],$),dn=new M([jt],$),qt=new M([new T(m(Mt),Mt,Dt)],$),Ft=new M([new T(m(St),St,Ht)],$),Xt=new M([new T(m(qt),new A([qt,new b(Ft,{delay:4e3})]),Ft)],$),zt=new T(m(Xt),Xt,dn);return p=e.useTLS?new A([Bt,new b(zt,{delay:2e3})]):new A([Bt,new b(ln,{delay:2e3}),new b(zt,{delay:5e3})]),new te(new w(new T(m(Ge),p,zt)),o,{ttl:18e5,timeline:e.timeline,useTLS:e.useTLS})},se={getRequest:function(n){var e=new window.XDomainRequest;return e.ontimeout=function(){n.emit("error",new V),n.close()},e.onerror=function(r){n.emit("error",r),n.close()},e.onprogress=function(){e.responseText&&e.responseText.length>0&&n.onChunk(200,e.responseText)},e.onload=function(){e.responseText&&e.responseText.length>0&&n.onChunk(200,e.responseText),n.emit("finished",200),n.close()},e},abortRequest:function(n){n.ontimeout=n.onerror=n.onprogress=n.onload=null,n.abort()}};class Q extends Be{constructor(e,r,o){super(),this.hooks=e,this.method=r,this.url=o}start(e){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},U.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(e)}close(){this.unloader&&(U.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(e,r){for(;;){var o=this.advanceBuffer(r);if(!o)break;this.emit("chunk",{status:e,data:o})}this.isBufferTooLong(r)&&this.emit("buffer_too_long")}advanceBuffer(e){var r=e.slice(this.position),o=r.indexOf(`
|
|
1
|
+
import{g as vn}from"./sentry-Cx_bjk1I.js";(function(){try{var qe=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},xe=new qe.Error().stack;xe&&(qe._sentryDebugIds=qe._sentryDebugIds||{},qe._sentryDebugIds[xe]="6fc09c3c-5100-40d3-9430-593cbd9d0860",qe._sentryDebugIdIdentifier="sentry-dbid-6fc09c3c-5100-40d3-9430-593cbd9d0860")}catch{}})();function yn(qe,xe){for(var ge=0;ge<xe.length;ge++){const ue=xe[ge];if(typeof ue!="string"&&!Array.isArray(ue)){for(const y in ue)if(y!=="default"&&!(y in qe)){const v=Object.getOwnPropertyDescriptor(ue,y);v&&Object.defineProperty(qe,y,v.get?v:{enumerable:!0,get:()=>ue[y]})}}}return Object.freeze(Object.defineProperty(qe,Symbol.toStringTag,{value:"Module"}))}var Yt,$t,Wt,Gt={exports:{}};function mn(){return Yt?Gt.exports:(Yt=1,qe=function(){return function(xe){var ge={};function ue(y){if(ge[y])return ge[y].exports;var v=ge[y]={i:y,l:!1,exports:{}};return xe[y].call(v.exports,v,v.exports,ue),v.l=!0,v.exports}return ue.m=xe,ue.c=ge,ue.d=function(y,v,K){ue.o(y,v)||Object.defineProperty(y,v,{enumerable:!0,get:K})},ue.r=function(y){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(y,"__esModule",{value:!0})},ue.t=function(y,v){if(1&v&&(y=ue(y)),8&v||4&v&&typeof y=="object"&&y&&y.__esModule)return y;var K=Object.create(null);if(ue.r(K),Object.defineProperty(K,"default",{enumerable:!0,value:y}),2&v&&typeof y!="string")for(var fe in y)ue.d(K,fe,(function(ce){return y[ce]}).bind(null,fe));return K},ue.n=function(y){var v=y&&y.__esModule?function(){return y.default}:function(){return y};return ue.d(v,"a",v),v},ue.o=function(y,v){return Object.prototype.hasOwnProperty.call(y,v)},ue.p="",ue(ue.s=3)}([function(xe,ge,ue){var y,v=this&&this.__extends||(y=function(x,C){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,V){P.__proto__=V}||function(P,V){for(var ve in V)V.hasOwnProperty(ve)&&(P[ve]=V[ve])},y(x,C)},function(x,C){function P(){this.constructor=x}y(x,C),x.prototype=C===null?Object.create(C):(P.prototype=C.prototype,new P)});Object.defineProperty(ge,"__esModule",{value:!0});var K=256,fe=function(){function x(C){C===void 0&&(C="="),this._paddingCharacter=C}return x.prototype.encodedLength=function(C){return this._paddingCharacter?(C+2)/3*4|0:(8*C+5)/6|0},x.prototype.encode=function(C){for(var P="",V=0;V<C.length-2;V+=3){var ve=C[V]<<16|C[V+1]<<8|C[V+2];P+=this._encodeByte(ve>>>18&63),P+=this._encodeByte(ve>>>12&63),P+=this._encodeByte(ve>>>6&63),P+=this._encodeByte(ve>>>0&63)}var De=C.length-V;return De>0&&(ve=C[V]<<16|(De===2?C[V+1]<<8:0),P+=this._encodeByte(ve>>>18&63),P+=this._encodeByte(ve>>>12&63),P+=De===2?this._encodeByte(ve>>>6&63):this._paddingCharacter||"",P+=this._paddingCharacter||""),P},x.prototype.maxDecodedLength=function(C){return this._paddingCharacter?C/4*3|0:(6*C+7)/8|0},x.prototype.decodedLength=function(C){return this.maxDecodedLength(C.length-this._getPaddingLength(C))},x.prototype.decode=function(C){if(C.length===0)return new Uint8Array(0);for(var P=this._getPaddingLength(C),V=C.length-P,ve=new Uint8Array(this.maxDecodedLength(V)),De=0,Te=0,Ie=0,Fe=0,Re=0,Me=0,Le=0;Te<V-4;Te+=4)Fe=this._decodeChar(C.charCodeAt(Te+0)),Re=this._decodeChar(C.charCodeAt(Te+1)),Me=this._decodeChar(C.charCodeAt(Te+2)),Le=this._decodeChar(C.charCodeAt(Te+3)),ve[De++]=Fe<<2|Re>>>4,ve[De++]=Re<<4|Me>>>2,ve[De++]=Me<<6|Le,Ie|=Fe&K,Ie|=Re&K,Ie|=Me&K,Ie|=Le&K;if(Te<V-1&&(Fe=this._decodeChar(C.charCodeAt(Te)),Re=this._decodeChar(C.charCodeAt(Te+1)),ve[De++]=Fe<<2|Re>>>4,Ie|=Fe&K,Ie|=Re&K),Te<V-2&&(Me=this._decodeChar(C.charCodeAt(Te+2)),ve[De++]=Re<<4|Me>>>2,Ie|=Me&K),Te<V-3&&(Le=this._decodeChar(C.charCodeAt(Te+3)),ve[De++]=Me<<6|Le,Ie|=Le&K),Ie!==0)throw new Error("Base64Coder: incorrect characters for decoding");return ve},x.prototype._encodeByte=function(C){var P=C;return P+=65,P+=25-C>>>8&6,P+=51-C>>>8&-75,P+=61-C>>>8&-15,P+=62-C>>>8&3,String.fromCharCode(P)},x.prototype._decodeChar=function(C){var P=K;return P+=(42-C&C-44)>>>8&-256+C-43+62,P+=(46-C&C-48)>>>8&-256+C-47+63,P+=(47-C&C-58)>>>8&-256+C-48+52,P+=(64-C&C-91)>>>8&-256+C-65+0,P+=(96-C&C-123)>>>8&-256+C-97+26},x.prototype._getPaddingLength=function(C){var P=0;if(this._paddingCharacter){for(var V=C.length-1;V>=0&&C[V]===this._paddingCharacter;V--)P++;if(C.length<4||P>2)throw new Error("Base64Coder: incorrect padding")}return P},x}();ge.Coder=fe;var ce=new fe;ge.encode=function(x){return ce.encode(x)},ge.decode=function(x){return ce.decode(x)};var ie=function(x){function C(){return x!==null&&x.apply(this,arguments)||this}return v(C,x),C.prototype._encodeByte=function(P){var V=P;return V+=65,V+=25-P>>>8&6,V+=51-P>>>8&-75,V+=61-P>>>8&-13,V+=62-P>>>8&49,String.fromCharCode(V)},C.prototype._decodeChar=function(P){var V=K;return V+=(44-P&P-46)>>>8&-256+P-45+62,V+=(94-P&P-96)>>>8&-256+P-95+63,V+=(47-P&P-58)>>>8&-256+P-48+52,V+=(64-P&P-91)>>>8&-256+P-65+0,V+=(96-P&P-123)>>>8&-256+P-97+26},C}(fe);ge.URLSafeCoder=ie;var W=new ie;ge.encodeURLSafe=function(x){return W.encode(x)},ge.decodeURLSafe=function(x){return W.decode(x)},ge.encodedLength=function(x){return ce.encodedLength(x)},ge.maxDecodedLength=function(x){return ce.maxDecodedLength(x)},ge.decodedLength=function(x){return ce.decodedLength(x)}},function(xe,ge,ue){Object.defineProperty(ge,"__esModule",{value:!0});var y="utf8: invalid string",v="utf8: invalid source encoding";function K(fe){for(var ce=0,ie=0;ie<fe.length;ie++){var W=fe.charCodeAt(ie);if(W<128)ce+=1;else if(W<2048)ce+=2;else if(W<55296)ce+=3;else{if(!(W<=57343))throw new Error(y);if(ie>=fe.length-1)throw new Error(y);ie++,ce+=4}}return ce}ge.encode=function(fe){for(var ce=new Uint8Array(K(fe)),ie=0,W=0;W<fe.length;W++){var x=fe.charCodeAt(W);x<128?ce[ie++]=x:x<2048?(ce[ie++]=192|x>>6,ce[ie++]=128|63&x):x<55296?(ce[ie++]=224|x>>12,ce[ie++]=128|x>>6&63,ce[ie++]=128|63&x):(W++,x=(1023&x)<<10,x|=1023&fe.charCodeAt(W),x+=65536,ce[ie++]=240|x>>18,ce[ie++]=128|x>>12&63,ce[ie++]=128|x>>6&63,ce[ie++]=128|63&x)}return ce},ge.encodedLength=K,ge.decode=function(fe){for(var ce=[],ie=0;ie<fe.length;ie++){var W=fe[ie];if(128&W){var x=void 0;if(W<224){if(ie>=fe.length)throw new Error(v);if((192&(C=fe[++ie]))!=128)throw new Error(v);W=(31&W)<<6|63&C,x=128}else if(W<240){if(ie>=fe.length-1)throw new Error(v);var C=fe[++ie],P=fe[++ie];if((192&C)!=128||(192&P)!=128)throw new Error(v);W=(15&W)<<12|(63&C)<<6|63&P,x=2048}else{if(!(W<248))throw new Error(v);if(ie>=fe.length-2)throw new Error(v);C=fe[++ie],P=fe[++ie];var V=fe[++ie];if((192&C)!=128||(192&P)!=128||(192&V)!=128)throw new Error(v);W=(15&W)<<18|(63&C)<<12|(63&P)<<6|63&V,x=65536}if(W<x||W>=55296&&W<=57343)throw new Error(v);if(W>=65536){if(W>1114111)throw new Error(v);W-=65536,ce.push(String.fromCharCode(55296|W>>10)),W=56320|1023&W}}ce.push(String.fromCharCode(W))}return ce.join("")}},function(xe,ge,ue){(function(y){var v=function(s){var a,c=new Float64Array(16);if(s)for(a=0;a<s.length;a++)c[a]=s[a];return c},K=function(){throw new Error("no PRNG")},fe=new Uint8Array(16),ce=new Uint8Array(32);ce[0]=9;var ie=v(),W=v([1]),x=v([56129,1]),C=v([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),P=v([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),V=v([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),ve=v([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),De=v([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function Te(s,a,c,t){s[a]=c>>24&255,s[a+1]=c>>16&255,s[a+2]=c>>8&255,s[a+3]=255&c,s[a+4]=t>>24&255,s[a+5]=t>>16&255,s[a+6]=t>>8&255,s[a+7]=255&t}function Ie(s,a,c,t,i){var l,d=0;for(l=0;l<i;l++)d|=s[a+l]^c[t+l];return(1&d-1>>>8)-1}function Fe(s,a,c,t){return Ie(s,a,c,t,16)}function Re(s,a,c,t){return Ie(s,a,c,t,32)}function Me(s,a,c,t){(function(i,l,d,f){for(var h,_=255&f[0]|(255&f[1])<<8|(255&f[2])<<16|(255&f[3])<<24,D=255&d[0]|(255&d[1])<<8|(255&d[2])<<16|(255&d[3])<<24,O=255&d[4]|(255&d[5])<<8|(255&d[6])<<16|(255&d[7])<<24,z=255&d[8]|(255&d[9])<<8|(255&d[10])<<16|(255&d[11])<<24,j=255&d[12]|(255&d[13])<<8|(255&d[14])<<16|(255&d[15])<<24,L=255&f[4]|(255&f[5])<<8|(255&f[6])<<16|(255&f[7])<<24,q=255&l[0]|(255&l[1])<<8|(255&l[2])<<16|(255&l[3])<<24,F=255&l[4]|(255&l[5])<<8|(255&l[6])<<16|(255&l[7])<<24,R=255&l[8]|(255&l[9])<<8|(255&l[10])<<16|(255&l[11])<<24,X=255&l[12]|(255&l[13])<<8|(255&l[14])<<16|(255&l[15])<<24,M=255&f[8]|(255&f[9])<<8|(255&f[10])<<16|(255&f[11])<<24,A=255&d[16]|(255&d[17])<<8|(255&d[18])<<16|(255&d[19])<<24,J=255&d[20]|(255&d[21])<<8|(255&d[22])<<16|(255&d[23])<<24,te=255&d[24]|(255&d[25])<<8|(255&d[26])<<16|(255&d[27])<<24,I=255&d[28]|(255&d[29])<<8|(255&d[30])<<16|(255&d[31])<<24,g=255&f[12]|(255&f[13])<<8|(255&f[14])<<16|(255&f[15])<<24,b=_,T=D,w=O,m=z,S=j,ee=L,se=q,Q=F,re=R,de=X,pe=M,B=A,Y=J,G=te,Z=I,H=g,oe=0;oe<20;oe+=2)b^=(h=(Y^=(h=(re^=(h=(S^=(h=b+Y|0)<<7|h>>>25)+b|0)<<9|h>>>23)+S|0)<<13|h>>>19)+re|0)<<18|h>>>14,ee^=(h=(T^=(h=(G^=(h=(de^=(h=ee+T|0)<<7|h>>>25)+ee|0)<<9|h>>>23)+de|0)<<13|h>>>19)+G|0)<<18|h>>>14,pe^=(h=(se^=(h=(w^=(h=(Z^=(h=pe+se|0)<<7|h>>>25)+pe|0)<<9|h>>>23)+Z|0)<<13|h>>>19)+w|0)<<18|h>>>14,H^=(h=(B^=(h=(Q^=(h=(m^=(h=H+B|0)<<7|h>>>25)+H|0)<<9|h>>>23)+m|0)<<13|h>>>19)+Q|0)<<18|h>>>14,b^=(h=(m^=(h=(w^=(h=(T^=(h=b+m|0)<<7|h>>>25)+b|0)<<9|h>>>23)+T|0)<<13|h>>>19)+w|0)<<18|h>>>14,ee^=(h=(S^=(h=(Q^=(h=(se^=(h=ee+S|0)<<7|h>>>25)+ee|0)<<9|h>>>23)+se|0)<<13|h>>>19)+Q|0)<<18|h>>>14,pe^=(h=(de^=(h=(re^=(h=(B^=(h=pe+de|0)<<7|h>>>25)+pe|0)<<9|h>>>23)+B|0)<<13|h>>>19)+re|0)<<18|h>>>14,H^=(h=(Z^=(h=(G^=(h=(Y^=(h=H+Z|0)<<7|h>>>25)+H|0)<<9|h>>>23)+Y|0)<<13|h>>>19)+G|0)<<18|h>>>14;b=b+_|0,T=T+D|0,w=w+O|0,m=m+z|0,S=S+j|0,ee=ee+L|0,se=se+q|0,Q=Q+F|0,re=re+R|0,de=de+X|0,pe=pe+M|0,B=B+A|0,Y=Y+J|0,G=G+te|0,Z=Z+I|0,H=H+g|0,i[0]=b>>>0&255,i[1]=b>>>8&255,i[2]=b>>>16&255,i[3]=b>>>24&255,i[4]=T>>>0&255,i[5]=T>>>8&255,i[6]=T>>>16&255,i[7]=T>>>24&255,i[8]=w>>>0&255,i[9]=w>>>8&255,i[10]=w>>>16&255,i[11]=w>>>24&255,i[12]=m>>>0&255,i[13]=m>>>8&255,i[14]=m>>>16&255,i[15]=m>>>24&255,i[16]=S>>>0&255,i[17]=S>>>8&255,i[18]=S>>>16&255,i[19]=S>>>24&255,i[20]=ee>>>0&255,i[21]=ee>>>8&255,i[22]=ee>>>16&255,i[23]=ee>>>24&255,i[24]=se>>>0&255,i[25]=se>>>8&255,i[26]=se>>>16&255,i[27]=se>>>24&255,i[28]=Q>>>0&255,i[29]=Q>>>8&255,i[30]=Q>>>16&255,i[31]=Q>>>24&255,i[32]=re>>>0&255,i[33]=re>>>8&255,i[34]=re>>>16&255,i[35]=re>>>24&255,i[36]=de>>>0&255,i[37]=de>>>8&255,i[38]=de>>>16&255,i[39]=de>>>24&255,i[40]=pe>>>0&255,i[41]=pe>>>8&255,i[42]=pe>>>16&255,i[43]=pe>>>24&255,i[44]=B>>>0&255,i[45]=B>>>8&255,i[46]=B>>>16&255,i[47]=B>>>24&255,i[48]=Y>>>0&255,i[49]=Y>>>8&255,i[50]=Y>>>16&255,i[51]=Y>>>24&255,i[52]=G>>>0&255,i[53]=G>>>8&255,i[54]=G>>>16&255,i[55]=G>>>24&255,i[56]=Z>>>0&255,i[57]=Z>>>8&255,i[58]=Z>>>16&255,i[59]=Z>>>24&255,i[60]=H>>>0&255,i[61]=H>>>8&255,i[62]=H>>>16&255,i[63]=H>>>24&255})(s,a,c,t)}function Le(s,a,c,t){(function(i,l,d,f){for(var h,_=255&f[0]|(255&f[1])<<8|(255&f[2])<<16|(255&f[3])<<24,D=255&d[0]|(255&d[1])<<8|(255&d[2])<<16|(255&d[3])<<24,O=255&d[4]|(255&d[5])<<8|(255&d[6])<<16|(255&d[7])<<24,z=255&d[8]|(255&d[9])<<8|(255&d[10])<<16|(255&d[11])<<24,j=255&d[12]|(255&d[13])<<8|(255&d[14])<<16|(255&d[15])<<24,L=255&f[4]|(255&f[5])<<8|(255&f[6])<<16|(255&f[7])<<24,q=255&l[0]|(255&l[1])<<8|(255&l[2])<<16|(255&l[3])<<24,F=255&l[4]|(255&l[5])<<8|(255&l[6])<<16|(255&l[7])<<24,R=255&l[8]|(255&l[9])<<8|(255&l[10])<<16|(255&l[11])<<24,X=255&l[12]|(255&l[13])<<8|(255&l[14])<<16|(255&l[15])<<24,M=255&f[8]|(255&f[9])<<8|(255&f[10])<<16|(255&f[11])<<24,A=255&d[16]|(255&d[17])<<8|(255&d[18])<<16|(255&d[19])<<24,J=255&d[20]|(255&d[21])<<8|(255&d[22])<<16|(255&d[23])<<24,te=255&d[24]|(255&d[25])<<8|(255&d[26])<<16|(255&d[27])<<24,I=255&d[28]|(255&d[29])<<8|(255&d[30])<<16|(255&d[31])<<24,g=255&f[12]|(255&f[13])<<8|(255&f[14])<<16|(255&f[15])<<24,b=0;b<20;b+=2)_^=(h=(J^=(h=(R^=(h=(j^=(h=_+J|0)<<7|h>>>25)+_|0)<<9|h>>>23)+j|0)<<13|h>>>19)+R|0)<<18|h>>>14,L^=(h=(D^=(h=(te^=(h=(X^=(h=L+D|0)<<7|h>>>25)+L|0)<<9|h>>>23)+X|0)<<13|h>>>19)+te|0)<<18|h>>>14,M^=(h=(q^=(h=(O^=(h=(I^=(h=M+q|0)<<7|h>>>25)+M|0)<<9|h>>>23)+I|0)<<13|h>>>19)+O|0)<<18|h>>>14,g^=(h=(A^=(h=(F^=(h=(z^=(h=g+A|0)<<7|h>>>25)+g|0)<<9|h>>>23)+z|0)<<13|h>>>19)+F|0)<<18|h>>>14,_^=(h=(z^=(h=(O^=(h=(D^=(h=_+z|0)<<7|h>>>25)+_|0)<<9|h>>>23)+D|0)<<13|h>>>19)+O|0)<<18|h>>>14,L^=(h=(j^=(h=(F^=(h=(q^=(h=L+j|0)<<7|h>>>25)+L|0)<<9|h>>>23)+q|0)<<13|h>>>19)+F|0)<<18|h>>>14,M^=(h=(X^=(h=(R^=(h=(A^=(h=M+X|0)<<7|h>>>25)+M|0)<<9|h>>>23)+A|0)<<13|h>>>19)+R|0)<<18|h>>>14,g^=(h=(I^=(h=(te^=(h=(J^=(h=g+I|0)<<7|h>>>25)+g|0)<<9|h>>>23)+J|0)<<13|h>>>19)+te|0)<<18|h>>>14;i[0]=_>>>0&255,i[1]=_>>>8&255,i[2]=_>>>16&255,i[3]=_>>>24&255,i[4]=L>>>0&255,i[5]=L>>>8&255,i[6]=L>>>16&255,i[7]=L>>>24&255,i[8]=M>>>0&255,i[9]=M>>>8&255,i[10]=M>>>16&255,i[11]=M>>>24&255,i[12]=g>>>0&255,i[13]=g>>>8&255,i[14]=g>>>16&255,i[15]=g>>>24&255,i[16]=q>>>0&255,i[17]=q>>>8&255,i[18]=q>>>16&255,i[19]=q>>>24&255,i[20]=F>>>0&255,i[21]=F>>>8&255,i[22]=F>>>16&255,i[23]=F>>>24&255,i[24]=R>>>0&255,i[25]=R>>>8&255,i[26]=R>>>16&255,i[27]=R>>>24&255,i[28]=X>>>0&255,i[29]=X>>>8&255,i[30]=X>>>16&255,i[31]=X>>>24&255})(s,a,c,t)}var Xe=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function kt(s,a,c,t,i,l,d){var f,h,_=new Uint8Array(16),D=new Uint8Array(64);for(h=0;h<16;h++)_[h]=0;for(h=0;h<8;h++)_[h]=l[h];for(;i>=64;){for(Me(D,_,d,Xe),h=0;h<64;h++)s[a+h]=c[t+h]^D[h];for(f=1,h=8;h<16;h++)f=f+(255&_[h])|0,_[h]=255&f,f>>>=8;i-=64,a+=64,t+=64}if(i>0)for(Me(D,_,d,Xe),h=0;h<i;h++)s[a+h]=c[t+h]^D[h];return 0}function Ct(s,a,c,t,i){var l,d,f=new Uint8Array(16),h=new Uint8Array(64);for(d=0;d<16;d++)f[d]=0;for(d=0;d<8;d++)f[d]=t[d];for(;c>=64;){for(Me(h,f,i,Xe),d=0;d<64;d++)s[a+d]=h[d];for(l=1,d=8;d<16;d++)l=l+(255&f[d])|0,f[d]=255&l,l>>>=8;c-=64,a+=64}if(c>0)for(Me(h,f,i,Xe),d=0;d<c;d++)s[a+d]=h[d];return 0}function Tt(s,a,c,t,i){var l=new Uint8Array(32);Le(l,t,i,Xe);for(var d=new Uint8Array(8),f=0;f<8;f++)d[f]=t[f+16];return Ct(s,a,c,d,l)}function pt(s,a,c,t,i,l,d){var f=new Uint8Array(32);Le(f,l,d,Xe);for(var h=new Uint8Array(8),_=0;_<8;_++)h[_]=l[_+16];return kt(s,a,c,t,i,h,f)}var it=function(s){var a,c,t,i,l,d,f,h;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,a=255&s[0]|(255&s[1])<<8,this.r[0]=8191&a,c=255&s[2]|(255&s[3])<<8,this.r[1]=8191&(a>>>13|c<<3),t=255&s[4]|(255&s[5])<<8,this.r[2]=7939&(c>>>10|t<<6),i=255&s[6]|(255&s[7])<<8,this.r[3]=8191&(t>>>7|i<<9),l=255&s[8]|(255&s[9])<<8,this.r[4]=255&(i>>>4|l<<12),this.r[5]=l>>>1&8190,d=255&s[10]|(255&s[11])<<8,this.r[6]=8191&(l>>>14|d<<2),f=255&s[12]|(255&s[13])<<8,this.r[7]=8065&(d>>>11|f<<5),h=255&s[14]|(255&s[15])<<8,this.r[8]=8191&(f>>>8|h<<8),this.r[9]=h>>>5&127,this.pad[0]=255&s[16]|(255&s[17])<<8,this.pad[1]=255&s[18]|(255&s[19])<<8,this.pad[2]=255&s[20]|(255&s[21])<<8,this.pad[3]=255&s[22]|(255&s[23])<<8,this.pad[4]=255&s[24]|(255&s[25])<<8,this.pad[5]=255&s[26]|(255&s[27])<<8,this.pad[6]=255&s[28]|(255&s[29])<<8,this.pad[7]=255&s[30]|(255&s[31])<<8};function ft(s,a,c,t,i,l){var d=new it(l);return d.update(c,t,i),d.finish(s,a),0}function Et(s,a,c,t,i,l){var d=new Uint8Array(16);return ft(d,0,c,t,i,l),Fe(s,a,d,0)}function Ke(s,a,c,t,i){var l;if(c<32)return-1;for(pt(s,0,a,0,c,t,i),ft(s,16,s,32,c-32,s),l=0;l<16;l++)s[l]=0;return 0}function gt(s,a,c,t,i){var l,d=new Uint8Array(32);if(c<32||(Tt(d,0,32,t,i),Et(a,16,a,32,c-32,d)!==0))return-1;for(pt(s,0,a,0,c,t,i),l=0;l<32;l++)s[l]=0;return 0}function Ye(s,a){var c;for(c=0;c<16;c++)s[c]=0|a[c]}function Ce(s){var a,c,t=1;for(a=0;a<16;a++)c=s[a]+t+65535,t=Math.floor(c/65536),s[a]=c-65536*t;s[0]+=t-1+37*(t-1)}function _e(s,a,c){for(var t,i=~(c-1),l=0;l<16;l++)t=i&(s[l]^a[l]),s[l]^=t,a[l]^=t}function tt(s,a){var c,t,i,l=v(),d=v();for(c=0;c<16;c++)d[c]=a[c];for(Ce(d),Ce(d),Ce(d),t=0;t<2;t++){for(l[0]=d[0]-65517,c=1;c<15;c++)l[c]=d[c]-65535-(l[c-1]>>16&1),l[c-1]&=65535;l[15]=d[15]-32767-(l[14]>>16&1),i=l[15]>>16&1,l[14]&=65535,_e(d,l,1-i)}for(c=0;c<16;c++)s[2*c]=255&d[c],s[2*c+1]=d[c]>>8}function bt(s,a){var c=new Uint8Array(32),t=new Uint8Array(32);return tt(c,s),tt(t,a),Re(c,0,t,0)}function Je(s){var a=new Uint8Array(32);return tt(a,s),1&a[0]}function st(s,a){var c;for(c=0;c<16;c++)s[c]=a[2*c]+(a[2*c+1]<<8);s[15]&=32767}function Ae(s,a,c){for(var t=0;t<16;t++)s[t]=a[t]+c[t]}function ze(s,a,c){for(var t=0;t<16;t++)s[t]=a[t]-c[t]}function ae(s,a,c){var t,i,l=0,d=0,f=0,h=0,_=0,D=0,O=0,z=0,j=0,L=0,q=0,F=0,R=0,X=0,M=0,A=0,J=0,te=0,I=0,g=0,b=0,T=0,w=0,m=0,S=0,ee=0,se=0,Q=0,re=0,de=0,pe=0,B=c[0],Y=c[1],G=c[2],Z=c[3],H=c[4],oe=c[5],he=c[6],U=c[7],le=c[8],ye=c[9],me=c[10],we=c[11],Se=c[12],Oe=c[13],Pe=c[14],Ee=c[15];l+=(t=a[0])*B,d+=t*Y,f+=t*G,h+=t*Z,_+=t*H,D+=t*oe,O+=t*he,z+=t*U,j+=t*le,L+=t*ye,q+=t*me,F+=t*we,R+=t*Se,X+=t*Oe,M+=t*Pe,A+=t*Ee,d+=(t=a[1])*B,f+=t*Y,h+=t*G,_+=t*Z,D+=t*H,O+=t*oe,z+=t*he,j+=t*U,L+=t*le,q+=t*ye,F+=t*me,R+=t*we,X+=t*Se,M+=t*Oe,A+=t*Pe,J+=t*Ee,f+=(t=a[2])*B,h+=t*Y,_+=t*G,D+=t*Z,O+=t*H,z+=t*oe,j+=t*he,L+=t*U,q+=t*le,F+=t*ye,R+=t*me,X+=t*we,M+=t*Se,A+=t*Oe,J+=t*Pe,te+=t*Ee,h+=(t=a[3])*B,_+=t*Y,D+=t*G,O+=t*Z,z+=t*H,j+=t*oe,L+=t*he,q+=t*U,F+=t*le,R+=t*ye,X+=t*me,M+=t*we,A+=t*Se,J+=t*Oe,te+=t*Pe,I+=t*Ee,_+=(t=a[4])*B,D+=t*Y,O+=t*G,z+=t*Z,j+=t*H,L+=t*oe,q+=t*he,F+=t*U,R+=t*le,X+=t*ye,M+=t*me,A+=t*we,J+=t*Se,te+=t*Oe,I+=t*Pe,g+=t*Ee,D+=(t=a[5])*B,O+=t*Y,z+=t*G,j+=t*Z,L+=t*H,q+=t*oe,F+=t*he,R+=t*U,X+=t*le,M+=t*ye,A+=t*me,J+=t*we,te+=t*Se,I+=t*Oe,g+=t*Pe,b+=t*Ee,O+=(t=a[6])*B,z+=t*Y,j+=t*G,L+=t*Z,q+=t*H,F+=t*oe,R+=t*he,X+=t*U,M+=t*le,A+=t*ye,J+=t*me,te+=t*we,I+=t*Se,g+=t*Oe,b+=t*Pe,T+=t*Ee,z+=(t=a[7])*B,j+=t*Y,L+=t*G,q+=t*Z,F+=t*H,R+=t*oe,X+=t*he,M+=t*U,A+=t*le,J+=t*ye,te+=t*me,I+=t*we,g+=t*Se,b+=t*Oe,T+=t*Pe,w+=t*Ee,j+=(t=a[8])*B,L+=t*Y,q+=t*G,F+=t*Z,R+=t*H,X+=t*oe,M+=t*he,A+=t*U,J+=t*le,te+=t*ye,I+=t*me,g+=t*we,b+=t*Se,T+=t*Oe,w+=t*Pe,m+=t*Ee,L+=(t=a[9])*B,q+=t*Y,F+=t*G,R+=t*Z,X+=t*H,M+=t*oe,A+=t*he,J+=t*U,te+=t*le,I+=t*ye,g+=t*me,b+=t*we,T+=t*Se,w+=t*Oe,m+=t*Pe,S+=t*Ee,q+=(t=a[10])*B,F+=t*Y,R+=t*G,X+=t*Z,M+=t*H,A+=t*oe,J+=t*he,te+=t*U,I+=t*le,g+=t*ye,b+=t*me,T+=t*we,w+=t*Se,m+=t*Oe,S+=t*Pe,ee+=t*Ee,F+=(t=a[11])*B,R+=t*Y,X+=t*G,M+=t*Z,A+=t*H,J+=t*oe,te+=t*he,I+=t*U,g+=t*le,b+=t*ye,T+=t*me,w+=t*we,m+=t*Se,S+=t*Oe,ee+=t*Pe,se+=t*Ee,R+=(t=a[12])*B,X+=t*Y,M+=t*G,A+=t*Z,J+=t*H,te+=t*oe,I+=t*he,g+=t*U,b+=t*le,T+=t*ye,w+=t*me,m+=t*we,S+=t*Se,ee+=t*Oe,se+=t*Pe,Q+=t*Ee,X+=(t=a[13])*B,M+=t*Y,A+=t*G,J+=t*Z,te+=t*H,I+=t*oe,g+=t*he,b+=t*U,T+=t*le,w+=t*ye,m+=t*me,S+=t*we,ee+=t*Se,se+=t*Oe,Q+=t*Pe,re+=t*Ee,M+=(t=a[14])*B,A+=t*Y,J+=t*G,te+=t*Z,I+=t*H,g+=t*oe,b+=t*he,T+=t*U,w+=t*le,m+=t*ye,S+=t*me,ee+=t*we,se+=t*Se,Q+=t*Oe,re+=t*Pe,de+=t*Ee,A+=(t=a[15])*B,d+=38*(te+=t*G),f+=38*(I+=t*Z),h+=38*(g+=t*H),_+=38*(b+=t*oe),D+=38*(T+=t*he),O+=38*(w+=t*U),z+=38*(m+=t*le),j+=38*(S+=t*ye),L+=38*(ee+=t*me),q+=38*(se+=t*we),F+=38*(Q+=t*Se),R+=38*(re+=t*Oe),X+=38*(de+=t*Pe),M+=38*(pe+=t*Ee),l=(t=(l+=38*(J+=t*Y))+(i=1)+65535)-65536*(i=Math.floor(t/65536)),d=(t=d+i+65535)-65536*(i=Math.floor(t/65536)),f=(t=f+i+65535)-65536*(i=Math.floor(t/65536)),h=(t=h+i+65535)-65536*(i=Math.floor(t/65536)),_=(t=_+i+65535)-65536*(i=Math.floor(t/65536)),D=(t=D+i+65535)-65536*(i=Math.floor(t/65536)),O=(t=O+i+65535)-65536*(i=Math.floor(t/65536)),z=(t=z+i+65535)-65536*(i=Math.floor(t/65536)),j=(t=j+i+65535)-65536*(i=Math.floor(t/65536)),L=(t=L+i+65535)-65536*(i=Math.floor(t/65536)),q=(t=q+i+65535)-65536*(i=Math.floor(t/65536)),F=(t=F+i+65535)-65536*(i=Math.floor(t/65536)),R=(t=R+i+65535)-65536*(i=Math.floor(t/65536)),X=(t=X+i+65535)-65536*(i=Math.floor(t/65536)),M=(t=M+i+65535)-65536*(i=Math.floor(t/65536)),A=(t=A+i+65535)-65536*(i=Math.floor(t/65536)),l=(t=(l+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(t/65536)),d=(t=d+i+65535)-65536*(i=Math.floor(t/65536)),f=(t=f+i+65535)-65536*(i=Math.floor(t/65536)),h=(t=h+i+65535)-65536*(i=Math.floor(t/65536)),_=(t=_+i+65535)-65536*(i=Math.floor(t/65536)),D=(t=D+i+65535)-65536*(i=Math.floor(t/65536)),O=(t=O+i+65535)-65536*(i=Math.floor(t/65536)),z=(t=z+i+65535)-65536*(i=Math.floor(t/65536)),j=(t=j+i+65535)-65536*(i=Math.floor(t/65536)),L=(t=L+i+65535)-65536*(i=Math.floor(t/65536)),q=(t=q+i+65535)-65536*(i=Math.floor(t/65536)),F=(t=F+i+65535)-65536*(i=Math.floor(t/65536)),R=(t=R+i+65535)-65536*(i=Math.floor(t/65536)),X=(t=X+i+65535)-65536*(i=Math.floor(t/65536)),M=(t=M+i+65535)-65536*(i=Math.floor(t/65536)),A=(t=A+i+65535)-65536*(i=Math.floor(t/65536)),l+=i-1+37*(i-1),s[0]=l,s[1]=d,s[2]=f,s[3]=h,s[4]=_,s[5]=D,s[6]=O,s[7]=z,s[8]=j,s[9]=L,s[10]=q,s[11]=F,s[12]=R,s[13]=X,s[14]=M,s[15]=A}function Ne(s,a){ae(s,a,a)}function vt(s,a){var c,t=v();for(c=0;c<16;c++)t[c]=a[c];for(c=253;c>=0;c--)Ne(t,t),c!==2&&c!==4&&ae(t,t,a);for(c=0;c<16;c++)s[c]=t[c]}function Ot(s,a){var c,t=v();for(c=0;c<16;c++)t[c]=a[c];for(c=250;c>=0;c--)Ne(t,t),c!==1&&ae(t,t,a);for(c=0;c<16;c++)s[c]=t[c]}function ot(s,a,c){var t,i,l=new Uint8Array(32),d=new Float64Array(80),f=v(),h=v(),_=v(),D=v(),O=v(),z=v();for(i=0;i<31;i++)l[i]=a[i];for(l[31]=127&a[31]|64,l[0]&=248,st(d,c),i=0;i<16;i++)h[i]=d[i],D[i]=f[i]=_[i]=0;for(f[0]=D[0]=1,i=254;i>=0;--i)_e(f,h,t=l[i>>>3]>>>(7&i)&1),_e(_,D,t),Ae(O,f,_),ze(f,f,_),Ae(_,h,D),ze(h,h,D),Ne(D,O),Ne(z,f),ae(f,_,f),ae(_,h,O),Ae(O,f,_),ze(f,f,_),Ne(h,f),ze(_,D,z),ae(f,_,x),Ae(f,f,D),ae(_,_,f),ae(f,D,z),ae(D,h,d),Ne(h,O),_e(f,h,t),_e(_,D,t);for(i=0;i<16;i++)d[i+16]=f[i],d[i+32]=_[i],d[i+48]=h[i],d[i+64]=D[i];var j=d.subarray(32),L=d.subarray(16);return vt(j,j),ae(L,L,j),tt(s,L),0}function Ve(s,a){return ot(s,a,ce)}function be(s,a){return K(a,32),Ve(s,a)}function at(s,a,c){var t=new Uint8Array(32);return ot(t,c,a),Le(s,fe,t,Xe)}it.prototype.blocks=function(s,a,c){for(var t,i,l,d,f,h,_,D,O,z,j,L,q,F,R,X,M,A,J,te=this.fin?0:2048,I=this.h[0],g=this.h[1],b=this.h[2],T=this.h[3],w=this.h[4],m=this.h[5],S=this.h[6],ee=this.h[7],se=this.h[8],Q=this.h[9],re=this.r[0],de=this.r[1],pe=this.r[2],B=this.r[3],Y=this.r[4],G=this.r[5],Z=this.r[6],H=this.r[7],oe=this.r[8],he=this.r[9];c>=16;)z=O=0,z+=(I+=8191&(t=255&s[a+0]|(255&s[a+1])<<8))*re,z+=(g+=8191&(t>>>13|(i=255&s[a+2]|(255&s[a+3])<<8)<<3))*(5*he),z+=(b+=8191&(i>>>10|(l=255&s[a+4]|(255&s[a+5])<<8)<<6))*(5*oe),z+=(T+=8191&(l>>>7|(d=255&s[a+6]|(255&s[a+7])<<8)<<9))*(5*H),O=(z+=(w+=8191&(d>>>4|(f=255&s[a+8]|(255&s[a+9])<<8)<<12))*(5*Z))>>>13,z&=8191,z+=(m+=f>>>1&8191)*(5*G),z+=(S+=8191&(f>>>14|(h=255&s[a+10]|(255&s[a+11])<<8)<<2))*(5*Y),z+=(ee+=8191&(h>>>11|(_=255&s[a+12]|(255&s[a+13])<<8)<<5))*(5*B),z+=(se+=8191&(_>>>8|(D=255&s[a+14]|(255&s[a+15])<<8)<<8))*(5*pe),j=O+=(z+=(Q+=D>>>5|te)*(5*de))>>>13,j+=I*de,j+=g*re,j+=b*(5*he),j+=T*(5*oe),O=(j+=w*(5*H))>>>13,j&=8191,j+=m*(5*Z),j+=S*(5*G),j+=ee*(5*Y),j+=se*(5*B),O+=(j+=Q*(5*pe))>>>13,j&=8191,L=O,L+=I*pe,L+=g*de,L+=b*re,L+=T*(5*he),O=(L+=w*(5*oe))>>>13,L&=8191,L+=m*(5*H),L+=S*(5*Z),L+=ee*(5*G),L+=se*(5*Y),q=O+=(L+=Q*(5*B))>>>13,q+=I*B,q+=g*pe,q+=b*de,q+=T*re,O=(q+=w*(5*he))>>>13,q&=8191,q+=m*(5*oe),q+=S*(5*H),q+=ee*(5*Z),q+=se*(5*G),F=O+=(q+=Q*(5*Y))>>>13,F+=I*Y,F+=g*B,F+=b*pe,F+=T*de,O=(F+=w*re)>>>13,F&=8191,F+=m*(5*he),F+=S*(5*oe),F+=ee*(5*H),F+=se*(5*Z),R=O+=(F+=Q*(5*G))>>>13,R+=I*G,R+=g*Y,R+=b*B,R+=T*pe,O=(R+=w*de)>>>13,R&=8191,R+=m*re,R+=S*(5*he),R+=ee*(5*oe),R+=se*(5*H),X=O+=(R+=Q*(5*Z))>>>13,X+=I*Z,X+=g*G,X+=b*Y,X+=T*B,O=(X+=w*pe)>>>13,X&=8191,X+=m*de,X+=S*re,X+=ee*(5*he),X+=se*(5*oe),M=O+=(X+=Q*(5*H))>>>13,M+=I*H,M+=g*Z,M+=b*G,M+=T*Y,O=(M+=w*B)>>>13,M&=8191,M+=m*pe,M+=S*de,M+=ee*re,M+=se*(5*he),A=O+=(M+=Q*(5*oe))>>>13,A+=I*oe,A+=g*H,A+=b*Z,A+=T*G,O=(A+=w*Y)>>>13,A&=8191,A+=m*B,A+=S*pe,A+=ee*de,A+=se*re,J=O+=(A+=Q*(5*he))>>>13,J+=I*he,J+=g*oe,J+=b*H,J+=T*Z,O=(J+=w*G)>>>13,J&=8191,J+=m*Y,J+=S*B,J+=ee*pe,J+=se*de,I=z=8191&(O=(O=((O+=(J+=Q*re)>>>13)<<2)+O|0)+(z&=8191)|0),g=j+=O>>>=13,b=L&=8191,T=q&=8191,w=F&=8191,m=R&=8191,S=X&=8191,ee=M&=8191,se=A&=8191,Q=J&=8191,a+=16,c-=16;this.h[0]=I,this.h[1]=g,this.h[2]=b,this.h[3]=T,this.h[4]=w,this.h[5]=m,this.h[6]=S,this.h[7]=ee,this.h[8]=se,this.h[9]=Q},it.prototype.finish=function(s,a){var c,t,i,l,d=new Uint16Array(10);if(this.leftover){for(l=this.leftover,this.buffer[l++]=1;l<16;l++)this.buffer[l]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(c=this.h[1]>>>13,this.h[1]&=8191,l=2;l<10;l++)this.h[l]+=c,c=this.h[l]>>>13,this.h[l]&=8191;for(this.h[0]+=5*c,c=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=c,c=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=c,d[0]=this.h[0]+5,c=d[0]>>>13,d[0]&=8191,l=1;l<10;l++)d[l]=this.h[l]+c,c=d[l]>>>13,d[l]&=8191;for(d[9]-=8192,t=(1^c)-1,l=0;l<10;l++)d[l]&=t;for(t=~t,l=0;l<10;l++)this.h[l]=this.h[l]&t|d[l];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),i=this.h[0]+this.pad[0],this.h[0]=65535&i,l=1;l<8;l++)i=(this.h[l]+this.pad[l]|0)+(i>>>16)|0,this.h[l]=65535&i;s[a+0]=this.h[0]>>>0&255,s[a+1]=this.h[0]>>>8&255,s[a+2]=this.h[1]>>>0&255,s[a+3]=this.h[1]>>>8&255,s[a+4]=this.h[2]>>>0&255,s[a+5]=this.h[2]>>>8&255,s[a+6]=this.h[3]>>>0&255,s[a+7]=this.h[3]>>>8&255,s[a+8]=this.h[4]>>>0&255,s[a+9]=this.h[4]>>>8&255,s[a+10]=this.h[5]>>>0&255,s[a+11]=this.h[5]>>>8&255,s[a+12]=this.h[6]>>>0&255,s[a+13]=this.h[6]>>>8&255,s[a+14]=this.h[7]>>>0&255,s[a+15]=this.h[7]>>>8&255},it.prototype.update=function(s,a,c){var t,i;if(this.leftover){for((i=16-this.leftover)>c&&(i=c),t=0;t<i;t++)this.buffer[this.leftover+t]=s[a+t];if(c-=i,a+=i,this.leftover+=i,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(c>=16&&(i=c-c%16,this.blocks(s,a,i),a+=i,c-=i),c){for(t=0;t<c;t++)this.buffer[this.leftover+t]=s[a+t];this.leftover+=c}};var Pt=Ke,Nt=gt,xt=[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];function ct(s,a,c,t){for(var i,l,d,f,h,_,D,O,z,j,L,q,F,R,X,M,A,J,te,I,g,b,T,w,m,S,ee=new Int32Array(16),se=new Int32Array(16),Q=s[0],re=s[1],de=s[2],pe=s[3],B=s[4],Y=s[5],G=s[6],Z=s[7],H=a[0],oe=a[1],he=a[2],U=a[3],le=a[4],ye=a[5],me=a[6],we=a[7],Se=0;t>=128;){for(te=0;te<16;te++)I=8*te+Se,ee[te]=c[I+0]<<24|c[I+1]<<16|c[I+2]<<8|c[I+3],se[te]=c[I+4]<<24|c[I+5]<<16|c[I+6]<<8|c[I+7];for(te=0;te<80;te++)if(i=Q,l=re,d=de,f=pe,h=B,_=Y,D=G,z=H,j=oe,L=he,q=U,F=le,R=ye,X=me,T=65535&(b=we),w=b>>>16,m=65535&(g=Z),S=g>>>16,T+=65535&(b=(le>>>14|B<<18)^(le>>>18|B<<14)^(B>>>9|le<<23)),w+=b>>>16,m+=65535&(g=(B>>>14|le<<18)^(B>>>18|le<<14)^(le>>>9|B<<23)),S+=g>>>16,T+=65535&(b=le&ye^~le&me),w+=b>>>16,m+=65535&(g=B&Y^~B&G),S+=g>>>16,T+=65535&(b=xt[2*te+1]),w+=b>>>16,m+=65535&(g=xt[2*te]),S+=g>>>16,g=ee[te%16],w+=(b=se[te%16])>>>16,m+=65535&g,S+=g>>>16,m+=(w+=(T+=65535&b)>>>16)>>>16,T=65535&(b=J=65535&T|w<<16),w=b>>>16,m=65535&(g=A=65535&m|(S+=m>>>16)<<16),S=g>>>16,T+=65535&(b=(H>>>28|Q<<4)^(Q>>>2|H<<30)^(Q>>>7|H<<25)),w+=b>>>16,m+=65535&(g=(Q>>>28|H<<4)^(H>>>2|Q<<30)^(H>>>7|Q<<25)),S+=g>>>16,w+=(b=H&oe^H&he^oe&he)>>>16,m+=65535&(g=Q&re^Q&de^re&de),S+=g>>>16,O=65535&(m+=(w+=(T+=65535&b)>>>16)>>>16)|(S+=m>>>16)<<16,M=65535&T|w<<16,T=65535&(b=q),w=b>>>16,m=65535&(g=f),S=g>>>16,w+=(b=J)>>>16,m+=65535&(g=A),S+=g>>>16,re=i,de=l,pe=d,B=f=65535&(m+=(w+=(T+=65535&b)>>>16)>>>16)|(S+=m>>>16)<<16,Y=h,G=_,Z=D,Q=O,oe=z,he=j,U=L,le=q=65535&T|w<<16,ye=F,me=R,we=X,H=M,te%16==15)for(I=0;I<16;I++)g=ee[I],T=65535&(b=se[I]),w=b>>>16,m=65535&g,S=g>>>16,g=ee[(I+9)%16],T+=65535&(b=se[(I+9)%16]),w+=b>>>16,m+=65535&g,S+=g>>>16,A=ee[(I+1)%16],T+=65535&(b=((J=se[(I+1)%16])>>>1|A<<31)^(J>>>8|A<<24)^(J>>>7|A<<25)),w+=b>>>16,m+=65535&(g=(A>>>1|J<<31)^(A>>>8|J<<24)^A>>>7),S+=g>>>16,A=ee[(I+14)%16],w+=(b=((J=se[(I+14)%16])>>>19|A<<13)^(A>>>29|J<<3)^(J>>>6|A<<26))>>>16,m+=65535&(g=(A>>>19|J<<13)^(J>>>29|A<<3)^A>>>6),S+=g>>>16,S+=(m+=(w+=(T+=65535&b)>>>16)>>>16)>>>16,ee[I]=65535&m|S<<16,se[I]=65535&T|w<<16;T=65535&(b=H),w=b>>>16,m=65535&(g=Q),S=g>>>16,g=s[0],w+=(b=a[0])>>>16,m+=65535&g,S+=g>>>16,S+=(m+=(w+=(T+=65535&b)>>>16)>>>16)>>>16,s[0]=Q=65535&m|S<<16,a[0]=H=65535&T|w<<16,T=65535&(b=oe),w=b>>>16,m=65535&(g=re),S=g>>>16,g=s[1],w+=(b=a[1])>>>16,m+=65535&g,S+=g>>>16,S+=(m+=(w+=(T+=65535&b)>>>16)>>>16)>>>16,s[1]=re=65535&m|S<<16,a[1]=oe=65535&T|w<<16,T=65535&(b=he),w=b>>>16,m=65535&(g=de),S=g>>>16,g=s[2],w+=(b=a[2])>>>16,m+=65535&g,S+=g>>>16,S+=(m+=(w+=(T+=65535&b)>>>16)>>>16)>>>16,s[2]=de=65535&m|S<<16,a[2]=he=65535&T|w<<16,T=65535&(b=U),w=b>>>16,m=65535&(g=pe),S=g>>>16,g=s[3],w+=(b=a[3])>>>16,m+=65535&g,S+=g>>>16,S+=(m+=(w+=(T+=65535&b)>>>16)>>>16)>>>16,s[3]=pe=65535&m|S<<16,a[3]=U=65535&T|w<<16,T=65535&(b=le),w=b>>>16,m=65535&(g=B),S=g>>>16,g=s[4],w+=(b=a[4])>>>16,m+=65535&g,S+=g>>>16,S+=(m+=(w+=(T+=65535&b)>>>16)>>>16)>>>16,s[4]=B=65535&m|S<<16,a[4]=le=65535&T|w<<16,T=65535&(b=ye),w=b>>>16,m=65535&(g=Y),S=g>>>16,g=s[5],w+=(b=a[5])>>>16,m+=65535&g,S+=g>>>16,S+=(m+=(w+=(T+=65535&b)>>>16)>>>16)>>>16,s[5]=Y=65535&m|S<<16,a[5]=ye=65535&T|w<<16,T=65535&(b=me),w=b>>>16,m=65535&(g=G),S=g>>>16,g=s[6],w+=(b=a[6])>>>16,m+=65535&g,S+=g>>>16,S+=(m+=(w+=(T+=65535&b)>>>16)>>>16)>>>16,s[6]=G=65535&m|S<<16,a[6]=me=65535&T|w<<16,T=65535&(b=we),w=b>>>16,m=65535&(g=Z),S=g>>>16,g=s[7],w+=(b=a[7])>>>16,m+=65535&g,S+=g>>>16,S+=(m+=(w+=(T+=65535&b)>>>16)>>>16)>>>16,s[7]=Z=65535&m|S<<16,a[7]=we=65535&T|w<<16,Se+=128,t-=128}return t}function $e(s,a,c){var t,i=new Int32Array(8),l=new Int32Array(8),d=new Uint8Array(256),f=c;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,l[0]=4089235720,l[1]=2227873595,l[2]=4271175723,l[3]=1595750129,l[4]=2917565137,l[5]=725511199,l[6]=4215389547,l[7]=327033209,ct(i,l,a,c),c%=128,t=0;t<c;t++)d[t]=a[f-c+t];for(d[c]=128,d[(c=256-128*(c<112?1:0))-9]=0,Te(d,c-8,f/536870912|0,f<<3),ct(i,l,d,c),t=0;t<8;t++)Te(s,8*t,i[t],l[t]);return 0}function ht(s,a){var c=v(),t=v(),i=v(),l=v(),d=v(),f=v(),h=v(),_=v(),D=v();ze(c,s[1],s[0]),ze(D,a[1],a[0]),ae(c,c,D),Ae(t,s[0],s[1]),Ae(D,a[0],a[1]),ae(t,t,D),ae(i,s[3],a[3]),ae(i,i,P),ae(l,s[2],a[2]),Ae(l,l,l),ze(d,t,c),ze(f,l,i),Ae(h,l,i),Ae(_,t,c),ae(s[0],d,f),ae(s[1],_,h),ae(s[2],h,f),ae(s[3],d,_)}function Lt(s,a,c){var t;for(t=0;t<4;t++)_e(s[t],a[t],c)}function yt(s,a){var c=v(),t=v(),i=v();vt(i,a[2]),ae(c,a[0],i),ae(t,a[1],i),tt(s,t),s[31]^=Je(c)<<7}function mt(s,a,c){var t,i;for(Ye(s[0],ie),Ye(s[1],W),Ye(s[2],W),Ye(s[3],ie),i=255;i>=0;--i)Lt(s,a,t=c[i/8|0]>>(7&i)&1),ht(a,s),ht(s,s),Lt(s,a,t)}function nt(s,a){var c=[v(),v(),v(),v()];Ye(c[0],V),Ye(c[1],ve),Ye(c[2],W),ae(c[3],V,ve),mt(s,c,a)}function Be(s,a,c){var t,i=new Uint8Array(64),l=[v(),v(),v(),v()];for(c||K(a,32),$e(i,a,32),i[0]&=248,i[31]&=127,i[31]|=64,nt(l,i),yt(s,l),t=0;t<32;t++)a[t+32]=s[t];return 0}var ut=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function We(s,a){var c,t,i,l;for(t=63;t>=32;--t){for(c=0,i=t-32,l=t-12;i<l;++i)a[i]+=c-16*a[t]*ut[i-(t-32)],c=Math.floor((a[i]+128)/256),a[i]-=256*c;a[i]+=c,a[t]=0}for(c=0,i=0;i<32;i++)a[i]+=c-(a[31]>>4)*ut[i],c=a[i]>>8,a[i]&=255;for(i=0;i<32;i++)a[i]-=c*ut[i];for(t=0;t<32;t++)a[t+1]+=a[t]>>8,s[t]=255&a[t]}function wt(s){var a,c=new Float64Array(64);for(a=0;a<64;a++)c[a]=s[a];for(a=0;a<64;a++)s[a]=0;We(s,c)}function _t(s,a,c,t){var i,l,d=new Uint8Array(64),f=new Uint8Array(64),h=new Uint8Array(64),_=new Float64Array(64),D=[v(),v(),v(),v()];$e(d,t,32),d[0]&=248,d[31]&=127,d[31]|=64;var O=c+64;for(i=0;i<c;i++)s[64+i]=a[i];for(i=0;i<32;i++)s[32+i]=d[32+i];for($e(h,s.subarray(32),c+32),wt(h),nt(D,h),yt(s,D),i=32;i<64;i++)s[i]=t[i];for($e(f,s,c+64),wt(f),i=0;i<64;i++)_[i]=0;for(i=0;i<32;i++)_[i]=h[i];for(i=0;i<32;i++)for(l=0;l<32;l++)_[i+l]+=f[i]*d[l];return We(s.subarray(32),_),O}function lt(s,a,c,t){var i,l=new Uint8Array(32),d=new Uint8Array(64),f=[v(),v(),v(),v()],h=[v(),v(),v(),v()];if(c<64||function(_,D){var O=v(),z=v(),j=v(),L=v(),q=v(),F=v(),R=v();return Ye(_[2],W),st(_[1],D),Ne(j,_[1]),ae(L,j,C),ze(j,j,_[2]),Ae(L,_[2],L),Ne(q,L),Ne(F,q),ae(R,F,q),ae(O,R,j),ae(O,O,L),Ot(O,O),ae(O,O,j),ae(O,O,L),ae(O,O,L),ae(_[0],O,L),Ne(z,_[0]),ae(z,z,L),bt(z,j)&&ae(_[0],_[0],De),Ne(z,_[0]),ae(z,z,L),bt(z,j)?-1:(Je(_[0])===D[31]>>7&&ze(_[0],ie,_[0]),ae(_[3],_[0],_[1]),0)}(h,t))return-1;for(i=0;i<c;i++)s[i]=a[i];for(i=0;i<32;i++)s[i+32]=t[i];if($e(d,s,c),wt(d),mt(f,h,d),nt(h,a.subarray(32)),ht(f,h),yt(l,f),c-=64,Re(a,0,l,0)){for(i=0;i<c;i++)s[i]=0;return-1}for(i=0;i<c;i++)s[i]=a[i+64];return c}var Ze,rt=16,He=64,Qe=32,et=64;function At(s,a){if(s.length!==32)throw new Error("bad key size");if(a.length!==24)throw new Error("bad nonce size")}function je(){for(var s=0;s<arguments.length;s++)if(!(arguments[s]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function Ut(s){for(var a=0;a<s.length;a++)s[a]=0}y.lowlevel={crypto_core_hsalsa20:Le,crypto_stream_xor:pt,crypto_stream:Tt,crypto_stream_salsa20_xor:kt,crypto_stream_salsa20:Ct,crypto_onetimeauth:ft,crypto_onetimeauth_verify:Et,crypto_verify_16:Fe,crypto_verify_32:Re,crypto_secretbox:Ke,crypto_secretbox_open:gt,crypto_scalarmult:ot,crypto_scalarmult_base:Ve,crypto_box_beforenm:at,crypto_box_afternm:Pt,crypto_box:function(s,a,c,t,i,l){var d=new Uint8Array(32);return at(d,i,l),Pt(s,a,c,t,d)},crypto_box_open:function(s,a,c,t,i,l){var d=new Uint8Array(32);return at(d,i,l),Nt(s,a,c,t,d)},crypto_box_keypair:be,crypto_hash:$e,crypto_sign:_t,crypto_sign_keypair:Be,crypto_sign_open:lt,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:rt,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:He,crypto_sign_PUBLICKEYBYTES:Qe,crypto_sign_SECRETKEYBYTES:et,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:v,D:C,L:ut,pack25519:tt,unpack25519:st,M:ae,A:Ae,S:Ne,Z:ze,pow2523:Ot,add:ht,set25519:Ye,modL:We,scalarmult:mt,scalarbase:nt},y.randomBytes=function(s){var a=new Uint8Array(s);return K(a,s),a},y.secretbox=function(s,a,c){je(s,a,c),At(c,a);for(var t=new Uint8Array(32+s.length),i=new Uint8Array(t.length),l=0;l<s.length;l++)t[l+32]=s[l];return Ke(i,t,t.length,a,c),i.subarray(rt)},y.secretbox.open=function(s,a,c){je(s,a,c),At(c,a);for(var t=new Uint8Array(rt+s.length),i=new Uint8Array(t.length),l=0;l<s.length;l++)t[l+rt]=s[l];return t.length<32||gt(i,t,t.length,a,c)!==0?null:i.subarray(32)},y.secretbox.keyLength=32,y.secretbox.nonceLength=24,y.secretbox.overheadLength=rt,y.scalarMult=function(s,a){if(je(s,a),s.length!==32)throw new Error("bad n size");if(a.length!==32)throw new Error("bad p size");var c=new Uint8Array(32);return ot(c,s,a),c},y.scalarMult.base=function(s){if(je(s),s.length!==32)throw new Error("bad n size");var a=new Uint8Array(32);return Ve(a,s),a},y.scalarMult.scalarLength=32,y.scalarMult.groupElementLength=32,y.box=function(s,a,c,t){var i=y.box.before(c,t);return y.secretbox(s,a,i)},y.box.before=function(s,a){je(s,a),function(t,i){if(t.length!==32)throw new Error("bad public key size");if(i.length!==32)throw new Error("bad secret key size")}(s,a);var c=new Uint8Array(32);return at(c,s,a),c},y.box.after=y.secretbox,y.box.open=function(s,a,c,t){var i=y.box.before(c,t);return y.secretbox.open(s,a,i)},y.box.open.after=y.secretbox.open,y.box.keyPair=function(){var s=new Uint8Array(32),a=new Uint8Array(32);return be(s,a),{publicKey:s,secretKey:a}},y.box.keyPair.fromSecretKey=function(s){if(je(s),s.length!==32)throw new Error("bad secret key size");var a=new Uint8Array(32);return Ve(a,s),{publicKey:a,secretKey:new Uint8Array(s)}},y.box.publicKeyLength=32,y.box.secretKeyLength=32,y.box.sharedKeyLength=32,y.box.nonceLength=24,y.box.overheadLength=y.secretbox.overheadLength,y.sign=function(s,a){if(je(s,a),a.length!==et)throw new Error("bad secret key size");var c=new Uint8Array(He+s.length);return _t(c,s,s.length,a),c},y.sign.open=function(s,a){if(je(s,a),a.length!==Qe)throw new Error("bad public key size");var c=new Uint8Array(s.length),t=lt(c,s,s.length,a);if(t<0)return null;for(var i=new Uint8Array(t),l=0;l<i.length;l++)i[l]=c[l];return i},y.sign.detached=function(s,a){for(var c=y.sign(s,a),t=new Uint8Array(He),i=0;i<t.length;i++)t[i]=c[i];return t},y.sign.detached.verify=function(s,a,c){if(je(s,a,c),a.length!==He)throw new Error("bad signature size");if(c.length!==Qe)throw new Error("bad public key size");var t,i=new Uint8Array(He+s.length),l=new Uint8Array(He+s.length);for(t=0;t<He;t++)i[t]=a[t];for(t=0;t<s.length;t++)i[t+He]=s[t];return lt(l,i,i.length,c)>=0},y.sign.keyPair=function(){var s=new Uint8Array(Qe),a=new Uint8Array(et);return Be(s,a),{publicKey:s,secretKey:a}},y.sign.keyPair.fromSecretKey=function(s){if(je(s),s.length!==et)throw new Error("bad secret key size");for(var a=new Uint8Array(Qe),c=0;c<a.length;c++)a[c]=s[32+c];return{publicKey:a,secretKey:new Uint8Array(s)}},y.sign.keyPair.fromSeed=function(s){if(je(s),s.length!==32)throw new Error("bad seed size");for(var a=new Uint8Array(Qe),c=new Uint8Array(et),t=0;t<32;t++)c[t]=s[t];return Be(a,c,!0),{publicKey:a,secretKey:c}},y.sign.publicKeyLength=Qe,y.sign.secretKeyLength=et,y.sign.seedLength=32,y.sign.signatureLength=He,y.hash=function(s){je(s);var a=new Uint8Array(64);return $e(a,s,s.length),a},y.hash.hashLength=64,y.verify=function(s,a){return je(s,a),s.length!==0&&a.length!==0&&s.length===a.length&&Ie(s,0,a,0,s.length)===0},y.setPRNG=function(s){K=s},(Ze=typeof self<"u"?self.crypto||self.msCrypto:null)&&Ze.getRandomValues?y.setPRNG(function(s,a){var c,t=new Uint8Array(a);for(c=0;c<a;c+=65536)Ze.getRandomValues(t.subarray(c,c+Math.min(a-c,65536)));for(c=0;c<a;c++)s[c]=t[c];Ut(t)}):(Ze=ue(4))&&Ze.randomBytes&&y.setPRNG(function(s,a){var c,t=Ze.randomBytes(a);for(c=0;c<a;c++)s[c]=t[c];Ut(t)})})(xe.exports?xe.exports:self.nacl=self.nacl||{})},function(xe,ge,ue){xe.exports=ue(5).default},function(xe,ge){},function(xe,ge,ue){ue.r(ge),ue.d(ge,"default",function(){return Rt});class y{constructor(e,r){this.lastId=0,this.prefix=e,this.name=r}create(e){this.lastId++;var r=this.lastId,o=this.prefix+r,u=this.name+"["+r+"]",p=!1,k=function(){p||(e.apply(null,arguments),p=!0)};return this[r]=k,{number:r,id:o,name:u,callback:k}}remove(e){delete this[e.number]}}var v=new y("_pusher_script_","Pusher.ScriptReceivers"),K={VERSION:"8.4.0",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,userAuthentication:{endpoint:"/pusher/user-auth",transport:"ajax"},channelAuthorization:{endpoint:"/pusher/auth",transport:"ajax"},cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""},fe=new y("_pusher_dependencies","Pusher.DependenciesReceivers"),ce=new class{constructor(n){this.options=n,this.receivers=n.receivers||v,this.loading={}}load(n,e,r){var o=this;if(o.loading[n]&&o.loading[n].length>0)o.loading[n].push(r);else{o.loading[n]=[r];var u=U.createScriptRequest(o.getPath(n,e)),p=o.receivers.create(function(k){if(o.receivers.remove(p),o.loading[n]){var E=o.loading[n];delete o.loading[n];for(var N=function(ne){ne||u.cleanup()},$=0;$<E.length;$++)E[$](k,N)}});u.send(p)}}getRoot(n){var e=U.getDocument().location.protocol;return(n&&n.useTLS||e==="https:"?this.options.cdn_https:this.options.cdn_http).replace(/\/*$/,"")+"/"+this.options.version}getPath(n,e){return this.getRoot(e)+"/"+n+this.options.suffix+".js"}}({cdn_http:K.cdn_http,cdn_https:K.cdn_https,version:K.VERSION,suffix:K.dependency_suffix,receivers:fe});const ie={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}}};var W,x=function(n){const e=ie.urls[n];if(!e)return"";let r;return e.fullUrl?r=e.fullUrl:e.path&&(r=ie.baseUrl+e.path),r?`See: ${r}`:""};(function(n){n.UserAuthentication="user-authentication",n.ChannelAuthorization="channel-authorization"})(W||(W={}));class C extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class P extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class V extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class ve extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class De extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class Te extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class Ie extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class Fe extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class Re extends Error{constructor(e,r){super(r),this.status=e,Object.setPrototypeOf(this,new.target.prototype)}}var Me=function(n,e,r,o,u){const p=U.createXHR();for(var k in p.open("POST",r.endpoint,!0),p.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.headers)p.setRequestHeader(k,r.headers[k]);if(r.headersProvider!=null){let E=r.headersProvider();for(var k in E)p.setRequestHeader(k,E[k])}return p.onreadystatechange=function(){if(p.readyState===4)if(p.status===200){let E,N=!1;try{E=JSON.parse(p.responseText),N=!0}catch{u(new Re(200,`JSON returned from ${o.toString()} endpoint was invalid, yet status code was 200. Data was: ${p.responseText}`),null)}N&&u(null,E)}else{let E="";switch(o){case W.UserAuthentication:E=x("authenticationEndpoint");break;case W.ChannelAuthorization:E=`Clients must be authorized to join private or presence channels. ${x("authorizationEndpoint")}`}u(new Re(p.status,`Unable to retrieve auth string from ${o.toString()} endpoint - received status: ${p.status} from ${r.endpoint}. ${E}`),null)}},p.send(e),p},Le=String.fromCharCode,Xe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",kt=function(n){var e=n.charCodeAt(0);return e<128?n:e<2048?Le(192|e>>>6)+Le(128|63&e):Le(224|e>>>12&15)+Le(128|e>>>6&63)+Le(128|63&e)},Ct=function(n){return n.replace(/[^\x00-\x7F]/g,kt)},Tt=function(n){var e=[0,2,1][n.length%3],r=n.charCodeAt(0)<<16|(n.length>1?n.charCodeAt(1):0)<<8|(n.length>2?n.charCodeAt(2):0);return[Xe.charAt(r>>>18),Xe.charAt(r>>>12&63),e>=2?"=":Xe.charAt(r>>>6&63),e>=1?"=":Xe.charAt(63&r)].join("")},pt=window.btoa||function(n){return n.replace(/[\s\S]{1,3}/g,Tt)},it=class{constructor(n,e,r,o){this.clear=e,this.timer=n(()=>{this.timer&&(this.timer=o(this.timer))},r)}isRunning(){return this.timer!==null}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}};function ft(n){window.clearTimeout(n)}function Et(n){window.clearInterval(n)}class Ke extends it{constructor(e,r){super(setTimeout,ft,e,function(o){return r(),null})}}class gt extends it{constructor(e,r){super(setInterval,Et,e,function(o){return r(),o})}}var Ye={now:()=>Date.now?Date.now():new Date().valueOf(),defer:n=>new Ke(0,n),method(n,...e){var r=Array.prototype.slice.call(arguments,1);return function(o){return o[n].apply(o,r.concat(arguments))}}},Ce=Ye;function _e(n,...e){for(var r=0;r<e.length;r++){var o=e[r];for(var u in o)o[u]&&o[u].constructor&&o[u].constructor===Object?n[u]=_e(n[u]||{},o[u]):n[u]=o[u]}return n}function tt(){for(var n=["Pusher"],e=0;e<arguments.length;e++)typeof arguments[e]=="string"?n.push(arguments[e]):n.push(Ve(arguments[e]));return n.join(" : ")}function bt(n,e){var r=Array.prototype.indexOf;if(n===null)return-1;if(r&&n.indexOf===r)return n.indexOf(e);for(var o=0,u=n.length;o<u;o++)if(n[o]===e)return o;return-1}function Je(n,e){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e(n[r],r,n)}function st(n){var e=[];return Je(n,function(r,o){e.push(o)}),e}function Ae(n,e,r){for(var o=0;o<n.length;o++)e.call(r||window,n[o],o,n)}function ze(n,e){for(var r=[],o=0;o<n.length;o++)r.push(e(n[o],o,n,r));return r}function ae(n,e){e=e||function(u){return!!u};for(var r=[],o=0;o<n.length;o++)e(n[o],o,n,r)&&r.push(n[o]);return r}function Ne(n,e){var r={};return Je(n,function(o,u){(e&&e(o,u,n,r)||o)&&(r[u]=o)}),r}function vt(n,e){for(var r=0;r<n.length;r++)if(e(n[r],r,n))return!0;return!1}function Ot(n){return e=function(o){return typeof o=="object"&&(o=Ve(o)),encodeURIComponent((u=o.toString(),pt(Ct(u))));var u},r={},Je(n,function(o,u){r[u]=e(o)}),r;var e,r}function ot(n){var e,r,o=Ne(n,function(u){return u!==void 0});return ze((e=Ot(o),r=[],Je(e,function(u,p){r.push([p,u])}),r),Ce.method("join","=")).join("&")}function Ve(n){try{return JSON.stringify(n)}catch{return JSON.stringify((e=[],r=[],function u(p,k){var E,N,$;switch(typeof p){case"object":if(!p)return null;for(E=0;E<e.length;E+=1)if(e[E]===p)return{$ref:r[E]};if(e.push(p),r.push(k),Object.prototype.toString.apply(p)==="[object Array]")for($=[],E=0;E<p.length;E+=1)$[E]=u(p[E],k+"["+E+"]");else for(N in $={},p)Object.prototype.hasOwnProperty.call(p,N)&&($[N]=u(p[N],k+"["+JSON.stringify(N)+"]"));return $;case"number":case"string":case"boolean":return p}}(n,"$")))}var e,r}var be=new class{constructor(){this.globalLog=n=>{window.console&&window.console.log&&window.console.log(n)}}debug(...n){this.log(this.globalLog,n)}warn(...n){this.log(this.globalLogWarn,n)}error(...n){this.log(this.globalLogError,n)}globalLogWarn(n){window.console&&window.console.warn?window.console.warn(n):this.globalLog(n)}globalLogError(n){window.console&&window.console.error?window.console.error(n):this.globalLogWarn(n)}log(n,...e){var r=tt.apply(this,arguments);dt.log?dt.log(r):dt.logToConsole&&n.bind(this)(r)}},at=function(n,e,r,o,u){r.headers===void 0&&r.headersProvider==null||be.warn(`To send headers with the ${o.toString()} request, you must use AJAX, rather than JSONP.`);var p=n.nextAuthCallbackID.toString();n.nextAuthCallbackID++;var k=n.getDocument(),E=k.createElement("script");n.auth_callbacks[p]=function(ne){u(null,ne)};var N="Pusher.auth_callbacks['"+p+"']";E.src=r.endpoint+"?callback="+encodeURIComponent(N)+"&"+e;var $=k.getElementsByTagName("head")[0]||k.documentElement;$.insertBefore(E,$.firstChild)};class Pt{constructor(e){this.src=e}send(e){var r=this,o="Error loading "+r.src;r.script=document.createElement("script"),r.script.id=e.id,r.script.src=r.src,r.script.type="text/javascript",r.script.charset="UTF-8",r.script.addEventListener?(r.script.onerror=function(){e.callback(o)},r.script.onload=function(){e.callback(null)}):r.script.onreadystatechange=function(){r.script.readyState!=="loaded"&&r.script.readyState!=="complete"||e.callback(null)},r.script.async===void 0&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(r.errorScript=document.createElement("script"),r.errorScript.id=e.id+"_error",r.errorScript.text=e.name+"('"+o+"');",r.script.async=r.errorScript.async=!1):r.script.async=!0;var u=document.getElementsByTagName("head")[0];u.insertBefore(r.script,u.firstChild),r.errorScript&&u.insertBefore(r.errorScript,r.script.nextSibling)}cleanup(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null}}class Nt{constructor(e,r){this.url=e,this.data=r}send(e){if(!this.request){var r=ot(this.data),o=this.url+"/"+e.number+"?"+r;this.request=U.createScriptRequest(o),this.request.send(e)}}cleanup(){this.request&&this.request.cleanup()}}var xt={name:"jsonp",getAgent:function(n,e){return function(r,o){var u="http"+(e?"s":"")+"://"+(n.host||n.options.host)+n.options.path,p=U.createJSONPRequest(u,r),k=U.ScriptReceivers.create(function(E,N){v.remove(k),p.cleanup(),N&&N.host&&(n.host=N.host),o&&o(E,N)});p.send(k)}}};function ct(n,e,r){return n+(e.useTLS?"s":"")+"://"+(e.useTLS?e.hostTLS:e.hostNonTLS)+r}function $e(n,e){return"/app/"+n+"?protocol="+K.PROTOCOL+"&client=js&version="+K.VERSION+(e?"&"+e:"")}var ht={getInitial:function(n,e){return ct("ws",e,(e.httpPath||"")+$e(n,"flash=false"))}},Lt={getInitial:function(n,e){return ct("http",e,(e.httpPath||"/pusher")+$e(n))}},yt={getInitial:function(n,e){return ct("http",e,e.httpPath||"/pusher")},getPath:function(n,e){return $e(n)}};class mt{constructor(){this._callbacks={}}get(e){return this._callbacks[nt(e)]}add(e,r,o){var u=nt(e);this._callbacks[u]=this._callbacks[u]||[],this._callbacks[u].push({fn:r,context:o})}remove(e,r,o){if(e||r||o){var u=e?[nt(e)]:st(this._callbacks);r||o?this.removeCallback(u,r,o):this.removeAllCallbacks(u)}else this._callbacks={}}removeCallback(e,r,o){Ae(e,function(u){this._callbacks[u]=ae(this._callbacks[u]||[],function(p){return r&&r!==p.fn||o&&o!==p.context}),this._callbacks[u].length===0&&delete this._callbacks[u]},this)}removeAllCallbacks(e){Ae(e,function(r){delete this._callbacks[r]},this)}}function nt(n){return"_"+n}class Be{constructor(e){this.callbacks=new mt,this.global_callbacks=[],this.failThrough=e}bind(e,r,o){return this.callbacks.add(e,r,o),this}bind_global(e){return this.global_callbacks.push(e),this}unbind(e,r,o){return this.callbacks.remove(e,r,o),this}unbind_global(e){return e?(this.global_callbacks=ae(this.global_callbacks||[],r=>r!==e),this):(this.global_callbacks=[],this)}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(e,r,o){for(var u=0;u<this.global_callbacks.length;u++)this.global_callbacks[u](e,r);var p=this.callbacks.get(e),k=[];if(o?k.push(r,o):r&&k.push(r),p&&p.length>0)for(u=0;u<p.length;u++)p[u].fn.apply(p[u].context||window,k);else this.failThrough&&this.failThrough(e,r);return this}}class ut extends Be{constructor(e,r,o,u,p){super(),this.initialize=U.transportConnectionInitializer,this.hooks=e,this.name=r,this.priority=o,this.key=u,this.options=p,this.state="new",this.timeline=p.timeline,this.activityTimeout=p.activityTimeout,this.id=this.timeline.generateUniqueID()}handlesActivityChecks(){return!!this.hooks.handlesActivityChecks}supportsPing(){return!!this.hooks.supportsPing}connect(){if(this.socket||this.state!=="initialized")return!1;var e=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(e,this.options)}catch(r){return Ce.defer(()=>{this.onError(r),this.changeState("closed")}),!1}return this.bindListeners(),be.debug("Connecting",{transport:this.name,url:e}),this.changeState("connecting"),!0}close(){return!!this.socket&&(this.socket.close(),!0)}send(e){return this.state==="open"&&(Ce.defer(()=>{this.socket&&this.socket.send(e)}),!0)}ping(){this.state==="open"&&this.supportsPing()&&this.socket.ping()}onOpen(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0}onError(e){this.emit("error",{type:"WebSocketError",error:e}),this.timeline.error(this.buildTimelineMessage({error:e.toString()}))}onClose(e){e?this.changeState("closed",{code:e.code,reason:e.reason,wasClean:e.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(e){this.emit("message",e)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=e=>{this.onError(e)},this.socket.onclose=e=>{this.onClose(e)},this.socket.onmessage=e=>{this.onMessage(e)},this.supportsPing()&&(this.socket.onactivity=()=>{this.onActivity()})}unbindListeners(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))}changeState(e,r){this.state=e,this.timeline.info(this.buildTimelineMessage({state:e,params:r})),this.emit(e,r)}buildTimelineMessage(e){return _e({cid:this.id},e)}}class We{constructor(e){this.hooks=e}isSupported(e){return this.hooks.isSupported(e)}createConnection(e,r,o,u){return new ut(this.hooks,e,r,o,u)}}var wt=new We({urls:ht,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return!!U.getWebSocketAPI()},isSupported:function(){return!!U.getWebSocketAPI()},getSocket:function(n){return U.createWebSocket(n)}}),_t={urls:Lt,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},lt=_e({getSocket:function(n){return U.HTTPFactory.createStreamingSocket(n)}},_t),Ze=_e({getSocket:function(n){return U.HTTPFactory.createPollingSocket(n)}},_t),rt={isSupported:function(){return U.isXHRSupported()}},He={ws:wt,xhr_streaming:new We(_e({},lt,rt)),xhr_polling:new We(_e({},Ze,rt))},Qe=new We({file:"sockjs",urls:yt,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return window.SockJS!==void 0},getSocket:function(n,e){return new window.SockJS(n,null,{js_path:ce.getPath("sockjs",{useTLS:e.useTLS}),ignore_null_origin:e.ignoreNullOrigin})},beforeOpen:function(n,e){n.send(JSON.stringify({path:e}))}}),et={isSupported:function(n){return U.isXDRSupported(n.useTLS)}},At=new We(_e({},lt,et)),je=new We(_e({},Ze,et));He.xdr_streaming=At,He.xdr_polling=je,He.sockjs=Qe;var Ut=He,s=new class extends Be{constructor(){super();var n=this;window.addEventListener!==void 0&&(window.addEventListener("online",function(){n.emit("online")},!1),window.addEventListener("offline",function(){n.emit("offline")},!1))}isOnline(){return window.navigator.onLine===void 0||window.navigator.onLine}};class a{constructor(e,r,o){this.manager=e,this.transport=r,this.minPingDelay=o.minPingDelay,this.maxPingDelay=o.maxPingDelay,this.pingDelay=void 0}createConnection(e,r,o,u){u=_e({},u,{activityTimeout:this.pingDelay});var p=this.transport.createConnection(e,r,o,u),k=null,E=function(){p.unbind("open",E),p.bind("closed",N),k=Ce.now()},N=$=>{if(p.unbind("closed",N),$.code===1002||$.code===1003)this.manager.reportDeath();else if(!$.wasClean&&k){var ne=Ce.now()-k;ne<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(ne/2,this.minPingDelay))}};return p.bind("open",E),p}isSupported(e){return this.manager.isAlive()&&this.transport.isSupported(e)}}const c={decodeMessage:function(n){try{var e=JSON.parse(n.data),r=e.data;if(typeof r=="string")try{r=JSON.parse(e.data)}catch{}var o={event:e.event,channel:e.channel,data:r};return e.user_id&&(o.user_id=e.user_id),o}catch(u){throw{type:"MessageParseError",error:u,data:n.data}}},encodeMessage:function(n){return JSON.stringify(n)},processHandshake:function(n){var e=c.decodeMessage(n);if(e.event==="pusher:connection_established"){if(!e.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:e.data.socket_id,activityTimeout:1e3*e.data.activity_timeout}}if(e.event==="pusher:error")return{action:this.getCloseAction(e.data),error:this.getCloseError(e.data)};throw"Invalid handshake"},getCloseAction:function(n){return n.code<4e3?n.code>=1002&&n.code<=1004?"backoff":null:n.code===4e3?"tls_only":n.code<4100?"refused":n.code<4200?"backoff":n.code<4300?"retry":"refused"},getCloseError:function(n){return n.code!==1e3&&n.code!==1001?{type:"PusherError",data:{code:n.code,message:n.reason||n.message}}:null}};var t=c;class i extends Be{constructor(e,r){super(),this.id=e,this.transport=r,this.activityTimeout=r.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(e){return this.transport.send(e)}send_event(e,r,o){var u={event:e,data:r};return o&&(u.channel=o),be.debug("Event sent",u),this.send(t.encodeMessage(u))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var e={message:o=>{var u;try{u=t.decodeMessage(o)}catch(p){this.emit("error",{type:"MessageParseError",error:p,data:o.data})}if(u!==void 0){switch(be.debug("Event recd",u),u.event){case"pusher:error":this.emit("error",{type:"PusherError",data:u.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong")}this.emit("message",u)}},activity:()=>{this.emit("activity")},error:o=>{this.emit("error",o)},closed:o=>{r(),o&&o.code&&this.handleCloseEvent(o),this.transport=null,this.emit("closed")}},r=()=>{Je(e,(o,u)=>{this.transport.unbind(u,o)})};Je(e,(o,u)=>{this.transport.bind(u,o)})}handleCloseEvent(e){var r=t.getCloseAction(e),o=t.getCloseError(e);o&&this.emit("error",o),r&&this.emit(r,{action:r,error:o})}}class l{constructor(e,r){this.transport=e,this.callback=r,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=e=>{var r;this.unbindListeners();try{r=t.processHandshake(e)}catch(o){return this.finish("error",{error:o}),void this.transport.close()}r.action==="connected"?this.finish("connected",{connection:new i(r.id,this.transport),activityTimeout:r.activityTimeout}):(this.finish(r.action,{error:r.error}),this.transport.close())},this.onClosed=e=>{this.unbindListeners();var r=t.getCloseAction(e)||"backoff",o=t.getCloseError(e);this.finish(r,{error:o})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)}unbindListeners(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)}finish(e,r){this.callback(_e({transport:this.transport,action:e},r))}}class d{constructor(e,r){this.timeline=e,this.options=r||{}}send(e,r){this.timeline.isEmpty()||this.timeline.send(U.TimelineTransport.getAgent(this,e),r)}}class f extends Be{constructor(e,r){super(function(o,u){be.debug("No callbacks on "+e+" for "+o)}),this.name=e,this.pusher=r,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(e,r){return r(null,{auth:""})}trigger(e,r){if(e.indexOf("client-")!==0)throw new C("Event '"+e+"' does not start with 'client-'");if(!this.subscribed){var o=x("triggeringClientEvents");be.warn(`Client event triggered before channel 'subscription_succeeded' event . ${o}`)}return this.pusher.send_event(e,r,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(e){var r=e.event,o=e.data;r==="pusher_internal:subscription_succeeded"?this.handleSubscriptionSucceededEvent(e):r==="pusher_internal:subscription_count"?this.handleSubscriptionCountEvent(e):r.indexOf("pusher_internal:")!==0&&this.emit(r,o,{})}handleSubscriptionSucceededEvent(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",e.data)}handleSubscriptionCountEvent(e){e.data.subscription_count&&(this.subscriptionCount=e.data.subscription_count),this.emit("pusher:subscription_count",e.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(e,r)=>{e?(this.subscriptionPending=!1,be.error(e.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:e.message},e instanceof Re?{status:e.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:r.auth,channel_data:r.channel_data,channel:this.name})}))}unsubscribe(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})}cancelSubscription(){this.subscriptionCancelled=!0}reinstateSubscription(){this.subscriptionCancelled=!1}}class h extends f{authorize(e,r){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:e},r)}}class _{constructor(){this.reset()}get(e){return Object.prototype.hasOwnProperty.call(this.members,e)?{id:e,info:this.members[e]}:null}each(e){Je(this.members,(r,o)=>{e(this.get(o))})}setMyID(e){this.myID=e}onSubscription(e){this.members=e.presence.hash,this.count=e.presence.count,this.me=this.get(this.myID)}addMember(e){return this.get(e.user_id)===null&&this.count++,this.members[e.user_id]=e.user_info,this.get(e.user_id)}removeMember(e){var r=this.get(e.user_id);return r&&(delete this.members[e.user_id],this.count--),r}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}var D=function(n,e,r,o){return new(r||(r=Promise))(function(u,p){function k($){try{N(o.next($))}catch(ne){p(ne)}}function E($){try{N(o.throw($))}catch(ne){p(ne)}}function N($){var ne;$.done?u($.value):(ne=$.value,ne instanceof r?ne:new r(function(ke){ke(ne)})).then(k,E)}N((o=o.apply(n,e||[])).next())})};class O extends h{constructor(e,r){super(e,r),this.members=new _}authorize(e,r){super.authorize(e,(o,u)=>D(this,void 0,void 0,function*(){if(!o)if(u.channel_data!=null){var p=JSON.parse(u.channel_data);this.members.setMyID(p.user_id)}else{if(yield this.pusher.user.signinDonePromise,this.pusher.user.user_data==null){let k=x("authorizationEndpoint");return be.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${k}, or the user should be signed in.`),void r("Invalid auth response")}this.members.setMyID(this.pusher.user.user_data.id)}r(o,u)}))}handleEvent(e){var r=e.event;if(r.indexOf("pusher_internal:")===0)this.handleInternalEvent(e);else{var o=e.data,u={};e.user_id&&(u.user_id=e.user_id),this.emit(r,o,u)}}handleInternalEvent(e){var r=e.event,o=e.data;switch(r){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(e);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(e);break;case"pusher_internal:member_added":var u=this.members.addMember(o);this.emit("pusher:member_added",u);break;case"pusher_internal:member_removed":var p=this.members.removeMember(o);p&&this.emit("pusher:member_removed",p)}}handleSubscriptionSucceededEvent(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(e.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var z=ue(1),j=ue(0);class L extends h{constructor(e,r,o){super(e,r),this.key=null,this.nacl=o}authorize(e,r){super.authorize(e,(o,u)=>{if(o)return void r(o,u);let p=u.shared_secret;p?(this.key=Object(j.decode)(p),delete u.shared_secret,r(null,u)):r(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null)})}trigger(e,r){throw new Te("Client events are not currently supported for encrypted channels")}handleEvent(e){var r=e.event,o=e.data;r.indexOf("pusher_internal:")!==0&&r.indexOf("pusher:")!==0?this.handleEncryptedEvent(r,o):super.handleEvent(e)}handleEncryptedEvent(e,r){if(!this.key)return void be.debug("Received encrypted event before key has been retrieved from the authEndpoint");if(!r.ciphertext||!r.nonce)return void be.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+r);let o=Object(j.decode)(r.ciphertext);if(o.length<this.nacl.secretbox.overheadLength)return void be.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${o.length}`);let u=Object(j.decode)(r.nonce);if(u.length<this.nacl.secretbox.nonceLength)return void be.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${u.length}`);let p=this.nacl.secretbox.open(o,u,this.key);if(p===null)return be.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),void this.authorize(this.pusher.connection.socket_id,(k,E)=>{k?be.error(`Failed to make a request to the authEndpoint: ${E}. Unable to fetch new key, so dropping encrypted event`):(p=this.nacl.secretbox.open(o,u,this.key),p!==null?this.emit(e,this.getDataToEmit(p)):be.error("Failed to decrypt event with new key. Dropping encrypted event"))});this.emit(e,this.getDataToEmit(p))}getDataToEmit(e){let r=Object(z.decode)(e);try{return JSON.parse(r)}catch{return r}}}class q extends Be{constructor(e,r){super(),this.state="initialized",this.connection=null,this.key=e,this.options=r,this.timeline=this.options.timeline,this.usingTLS=this.options.useTLS,this.errorCallbacks=this.buildErrorCallbacks(),this.connectionCallbacks=this.buildConnectionCallbacks(this.errorCallbacks),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var o=U.getNetwork();o.bind("online",()=>{this.timeline.info({netinfo:"online"}),this.state!=="connecting"&&this.state!=="unavailable"||this.retryIn(0)}),o.bind("offline",()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()}),this.updateStrategy()}connect(){this.connection||this.runner||(this.strategy.isSupported()?(this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()):this.updateState("failed"))}send(e){return!!this.connection&&this.connection.send(e)}send_event(e,r,o){return!!this.connection&&this.connection.send_event(e,r,o)}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var e=(r,o)=>{r?this.runner=this.strategy.connect(0,e):o.action==="error"?(this.emit("error",{type:"HandshakeError",error:o.error}),this.timeline.error({handshakeError:o.error})):(this.abortConnecting(),this.handshakeCallbacks[o.action](o))};this.runner=this.strategy.connect(0,e)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection&&this.abandonConnection().close()}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(e){this.timeline.info({action:"retry",delay:e}),e>0&&this.emit("connecting_in",Math.round(e/1e3)),this.retryTimer=new Ke(e||0,()=>{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new Ke(this.options.unavailableTimeout,()=>{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new Ke(this.options.pongTimeout,()=>{this.timeline.error({pong_timed_out:this.options.pongTimeout}),this.retryIn(0)})}resetActivityCheck(){this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new Ke(this.activityTimeout,()=>{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(e){return _e({},e,{message:r=>{this.resetActivityCheck(),this.emit("message",r)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:r=>{this.emit("error",r)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(e){return _e({},e,{connected:r=>{this.activityTimeout=Math.min(this.options.activityTimeout,r.activityTimeout,r.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(r.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let e=r=>o=>{o.error&&this.emit("error",{type:"WebSocketError",error:o.error}),r(o)};return{tls_only:e(()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:e(()=>{this.disconnect()}),backoff:e(()=>{this.retryIn(1e3)}),retry:e(()=>{this.retryIn(0)})}}setConnection(e){for(var r in this.connection=e,this.connectionCallbacks)this.connection.bind(r,this.connectionCallbacks[r]);this.resetActivityCheck()}abandonConnection(){if(this.connection){for(var e in this.stopActivityCheck(),this.connectionCallbacks)this.connection.unbind(e,this.connectionCallbacks[e]);var r=this.connection;return this.connection=null,r}}updateState(e,r){var o=this.state;if(this.state=e,o!==e){var u=e;u==="connected"&&(u+=" with new socket ID "+r.socket_id),be.debug("State changed",o+" -> "+u),this.timeline.info({state:e,params:r}),this.emit("state_change",{previous:o,current:e}),this.emit(e,r)}}shouldRetry(){return this.state==="connecting"||this.state==="connected"}}class F{constructor(){this.channels={}}add(e,r){return this.channels[e]||(this.channels[e]=function(o,u){if(o.indexOf("private-encrypted-")===0){if(u.config.nacl)return R.createEncryptedChannel(o,u,u.config.nacl);let p="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",k=x("encryptedChannelSupport");throw new Te(`${p}. ${k}`)}if(o.indexOf("private-")===0)return R.createPrivateChannel(o,u);if(o.indexOf("presence-")===0)return R.createPresenceChannel(o,u);if(o.indexOf("#")===0)throw new P('Cannot create a channel with name "'+o+'".');return R.createChannel(o,u)}(e,r)),this.channels[e]}all(){return function(e){var r=[];return Je(e,function(o){r.push(o)}),r}(this.channels)}find(e){return this.channels[e]}remove(e){var r=this.channels[e];return delete this.channels[e],r}disconnect(){Je(this.channels,function(e){e.disconnect()})}}var R={createChannels:()=>new F,createConnectionManager:(n,e)=>new q(n,e),createChannel:(n,e)=>new f(n,e),createPrivateChannel:(n,e)=>new h(n,e),createPresenceChannel:(n,e)=>new O(n,e),createEncryptedChannel:(n,e,r)=>new L(n,e,r),createTimelineSender:(n,e)=>new d(n,e),createHandshake:(n,e)=>new l(n,e),createAssistantToTheTransportManager:(n,e,r)=>new a(n,e,r)};class X{constructor(e){this.options=e||{},this.livesLeft=this.options.lives||1/0}getAssistant(e){return R.createAssistantToTheTransportManager(this,e,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class M{constructor(e,r){this.strategies=e,this.loop=!!r.loop,this.failFast=!!r.failFast,this.timeout=r.timeout,this.timeoutLimit=r.timeoutLimit}isSupported(){return vt(this.strategies,Ce.method("isSupported"))}connect(e,r){var o=this.strategies,u=0,p=this.timeout,k=null,E=(N,$)=>{$?r(null,$):(u+=1,this.loop&&(u%=o.length),u<o.length?(p&&(p*=2,this.timeoutLimit&&(p=Math.min(p,this.timeoutLimit))),k=this.tryStrategy(o[u],e,{timeout:p,failFast:this.failFast},E)):r(!0))};return k=this.tryStrategy(o[u],e,{timeout:p,failFast:this.failFast},E),{abort:function(){k.abort()},forceMinPriority:function(N){e=N,k&&k.forceMinPriority(N)}}}tryStrategy(e,r,o,u){var p=null,k=null;return o.timeout>0&&(p=new Ke(o.timeout,function(){k.abort(),u(!0)})),k=e.connect(r,function(E,N){E&&p&&p.isRunning()&&!o.failFast||(p&&p.ensureAborted(),u(E,N))}),{abort:function(){p&&p.ensureAborted(),k.abort()},forceMinPriority:function(E){k.forceMinPriority(E)}}}}class A{constructor(e){this.strategies=e}isSupported(){return vt(this.strategies,Ce.method("isSupported"))}connect(e,r){return function(o,u,p){var k=ze(o,function(E,N,$,ne){return E.connect(u,p(N,ne))});return{abort:function(){Ae(k,J)},forceMinPriority:function(E){Ae(k,function(N){N.forceMinPriority(E)})}}}(this.strategies,e,function(o,u){return function(p,k){u[o].error=p,p?function(E){return function(N,$){for(var ne=0;ne<N.length;ne++)if(!$(N[ne],ne,N))return!1;return!0}(E,function(N){return!!N.error})}(u)&&r(!0):(Ae(u,function(E){E.forceMinPriority(k.transport.priority)}),r(null,k))}})}}function J(n){n.error||n.aborted||(n.abort(),n.aborted=!0)}class te{constructor(e,r,o){this.strategy=e,this.transports=r,this.ttl=o.ttl||18e5,this.usingTLS=o.useTLS,this.timeline=o.timeline}isSupported(){return this.strategy.isSupported()}connect(e,r){var o=this.usingTLS,u=function(ne){var ke=U.getLocalStorage();if(ke)try{var Ge=ke[I(ne)];if(Ge)return JSON.parse(Ge)}catch{g(ne)}return null}(o),p=u&&u.cacheSkipCount?u.cacheSkipCount:0,k=[this.strategy];if(u&&u.timestamp+this.ttl>=Ce.now()){var E=this.transports[u.transport];E&&(["ws","wss"].includes(u.transport)||p>3?(this.timeline.info({cached:!0,transport:u.transport,latency:u.latency}),k.push(new M([E],{timeout:2*u.latency+1e3,failFast:!0}))):p++)}var N=Ce.now(),$=k.pop().connect(e,function ne(ke,Ge){ke?(g(o),k.length>0?(N=Ce.now(),$=k.pop().connect(e,ne)):r(ke)):(function(It,jt,Mt,Dt){var St=U.getLocalStorage();if(St)try{St[I(It)]=Ve({timestamp:Ce.now(),transport:jt,latency:Mt,cacheSkipCount:Dt})}catch{}}(o,Ge.transport.name,Ce.now()-N,p),r(null,Ge))});return{abort:function(){$.abort()},forceMinPriority:function(ne){e=ne,$&&$.forceMinPriority(ne)}}}}function I(n){return"pusherTransport"+(n?"TLS":"NonTLS")}function g(n){var e=U.getLocalStorage();if(e)try{delete e[I(n)]}catch{}}class b{constructor(e,{delay:r}){this.strategy=e,this.options={delay:r}}isSupported(){return this.strategy.isSupported()}connect(e,r){var o,u=this.strategy,p=new Ke(this.options.delay,function(){o=u.connect(e,r)});return{abort:function(){p.ensureAborted(),o&&o.abort()},forceMinPriority:function(k){e=k,o&&o.forceMinPriority(k)}}}}class T{constructor(e,r,o){this.test=e,this.trueBranch=r,this.falseBranch=o}isSupported(){return(this.test()?this.trueBranch:this.falseBranch).isSupported()}connect(e,r){return(this.test()?this.trueBranch:this.falseBranch).connect(e,r)}}class w{constructor(e){this.strategy=e}isSupported(){return this.strategy.isSupported()}connect(e,r){var o=this.strategy.connect(e,function(u,p){p&&o.abort(),r(u,p)});return o}}function m(n){return function(){return n.isSupported()}}var S,ee=function(n,e,r){var o={};function u(Jt,pn,fn,gn,bn){var Kt=r(n,Jt,pn,fn,gn,bn);return o[Jt]=Kt,Kt}var p,k=Object.assign({},e,{hostNonTLS:n.wsHost+":"+n.wsPort,hostTLS:n.wsHost+":"+n.wssPort,httpPath:n.wsPath}),E=Object.assign({},k,{useTLS:!0}),N=Object.assign({},e,{hostNonTLS:n.httpHost+":"+n.httpPort,hostTLS:n.httpHost+":"+n.httpsPort,httpPath:n.httpPath}),$={loop:!0,timeout:15e3,timeoutLimit:6e4},ne=new X({minPingDelay:1e4,maxPingDelay:n.activityTimeout}),ke=new X({lives:2,minPingDelay:1e4,maxPingDelay:n.activityTimeout}),Ge=u("ws","ws",3,k,ne),It=u("wss","ws",3,E,ne),jt=u("sockjs","sockjs",1,N),Mt=u("xhr_streaming","xhr_streaming",1,N,ke),Dt=u("xdr_streaming","xdr_streaming",1,N,ke),St=u("xhr_polling","xhr_polling",1,N),Ht=u("xdr_polling","xdr_polling",1,N),Bt=new M([Ge],$),ln=new M([It],$),dn=new M([jt],$),qt=new M([new T(m(Mt),Mt,Dt)],$),Ft=new M([new T(m(St),St,Ht)],$),Xt=new M([new T(m(qt),new A([qt,new b(Ft,{delay:4e3})]),Ft)],$),zt=new T(m(Xt),Xt,dn);return p=e.useTLS?new A([Bt,new b(zt,{delay:2e3})]):new A([Bt,new b(ln,{delay:2e3}),new b(zt,{delay:5e3})]),new te(new w(new T(m(Ge),p,zt)),o,{ttl:18e5,timeline:e.timeline,useTLS:e.useTLS})},se={getRequest:function(n){var e=new window.XDomainRequest;return e.ontimeout=function(){n.emit("error",new V),n.close()},e.onerror=function(r){n.emit("error",r),n.close()},e.onprogress=function(){e.responseText&&e.responseText.length>0&&n.onChunk(200,e.responseText)},e.onload=function(){e.responseText&&e.responseText.length>0&&n.onChunk(200,e.responseText),n.emit("finished",200),n.close()},e},abortRequest:function(n){n.ontimeout=n.onerror=n.onprogress=n.onload=null,n.abort()}};class Q extends Be{constructor(e,r,o){super(),this.hooks=e,this.method=r,this.url=o}start(e){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},U.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(e)}close(){this.unloader&&(U.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(e,r){for(;;){var o=this.advanceBuffer(r);if(!o)break;this.emit("chunk",{status:e,data:o})}this.isBufferTooLong(r)&&this.emit("buffer_too_long")}advanceBuffer(e){var r=e.slice(this.position),o=r.indexOf(`
|
|
2
2
|
`);return o!==-1?(this.position+=o+1,r.slice(0,o)):null}isBufferTooLong(e){return this.position===e.length&&e.length>262144}}(function(n){n[n.CONNECTING=0]="CONNECTING",n[n.OPEN=1]="OPEN",n[n.CLOSED=3]="CLOSED"})(S||(S={}));var re=S,de=1;function pe(n){var e=n.indexOf("?")===-1?"?":"&";return n+e+"t="+ +new Date+"&n="+de++}function B(n){return U.randomInt(n)}var Y,G=class{constructor(n,e){this.hooks=n,this.session=B(1e3)+"/"+function(r){for(var o=[],u=0;u<r;u++)o.push(B(32).toString(32));return o.join("")}(8),this.location=function(r){var o=/([^\?]*)\/*(\??.*)/.exec(r);return{base:o[1],queryString:o[2]}}(e),this.readyState=re.CONNECTING,this.openStream()}send(n){return this.sendRaw(JSON.stringify([n]))}ping(){this.hooks.sendHeartbeat(this)}close(n,e){this.onClose(n,e,!0)}sendRaw(n){if(this.readyState!==re.OPEN)return!1;try{return U.createSocketRequest("POST",pe((e=this.location,r=this.session,e.base+"/"+r+"/xhr_send"))).start(n),!0}catch{return!1}var e,r}reconnect(){this.closeStream(),this.openStream()}onClose(n,e,r){this.closeStream(),this.readyState=re.CLOSED,this.onclose&&this.onclose({code:n,reason:e,wasClean:r})}onChunk(n){var e;if(n.status===200)switch(this.readyState===re.OPEN&&this.onActivity(),n.data.slice(0,1)){case"o":e=JSON.parse(n.data.slice(1)||"{}"),this.onOpen(e);break;case"a":e=JSON.parse(n.data.slice(1)||"[]");for(var r=0;r<e.length;r++)this.onEvent(e[r]);break;case"m":e=JSON.parse(n.data.slice(1)||"null"),this.onEvent(e);break;case"h":this.hooks.onHeartbeat(this);break;case"c":e=JSON.parse(n.data.slice(1)||"[]"),this.onClose(e[0],e[1],!0)}}onOpen(n){var e,r,o;this.readyState===re.CONNECTING?(n&&n.hostname&&(this.location.base=(e=this.location.base,r=n.hostname,(o=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(e))[1]+r+o[3])),this.readyState=re.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(n){this.readyState===re.OPEN&&this.onmessage&&this.onmessage({data:n})}onActivity(){this.onactivity&&this.onactivity()}onError(n){this.onerror&&this.onerror(n)}openStream(){this.stream=U.createSocketRequest("POST",pe(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",n=>{this.onChunk(n)}),this.stream.bind("finished",n=>{this.hooks.onFinished(this,n)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(n){Ce.defer(()=>{this.onError(n),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}},Z={getReceiveURL:function(n,e){return n.base+"/"+e+"/xhr_streaming"+n.queryString},onHeartbeat:function(n){n.sendRaw("[]")},sendHeartbeat:function(n){n.sendRaw("[]")},onFinished:function(n,e){n.onClose(1006,"Connection interrupted ("+e+")",!1)}},H={getReceiveURL:function(n,e){return n.base+"/"+e+"/xhr"+n.queryString},onHeartbeat:function(){},sendHeartbeat:function(n){n.sendRaw("[]")},onFinished:function(n,e){e===200?n.reconnect():n.onClose(1006,"Connection interrupted ("+e+")",!1)}},oe={getRequest:function(n){var e=new(U.getXHRAPI());return e.onreadystatechange=e.onprogress=function(){switch(e.readyState){case 3:e.responseText&&e.responseText.length>0&&n.onChunk(e.status,e.responseText);break;case 4:e.responseText&&e.responseText.length>0&&n.onChunk(e.status,e.responseText),n.emit("finished",e.status),n.close()}},e},abortRequest:function(n){n.onreadystatechange=null,n.abort()}},he={createStreamingSocket(n){return this.createSocket(Z,n)},createPollingSocket(n){return this.createSocket(H,n)},createSocket:(n,e)=>new G(n,e),createXHR(n,e){return this.createRequest(oe,n,e)},createRequest:(n,e,r)=>new Q(n,e,r),createXDR:function(n,e){return this.createRequest(se,n,e)}},U={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:v,DependenciesReceivers:fe,getDefaultStrategy:ee,Transports:Ut,transportConnectionInitializer:function(){var n=this;n.timeline.info(n.buildTimelineMessage({transport:n.name+(n.options.useTLS?"s":"")})),n.hooks.isInitialized()?n.changeState("initialized"):n.hooks.file?(n.changeState("initializing"),ce.load(n.hooks.file,{useTLS:n.options.useTLS},function(e,r){n.hooks.isInitialized()?(n.changeState("initialized"),r(!0)):(e&&n.onError(e),n.onClose(),r(!1))})):n.onClose()},HTTPFactory:he,TimelineTransport:xt,getXHRAPI:()=>window.XMLHttpRequest,getWebSocketAPI:()=>window.WebSocket||window.MozWebSocket,setup(n){window.Pusher=n;var e=()=>{this.onDocumentBody(n.ready)};window.JSON?e():ce.load("json2",{},e)},getDocument:()=>document,getProtocol(){return this.getDocument().location.protocol},getAuthorizers:()=>({ajax:Me,jsonp:at}),onDocumentBody(n){document.body?n():setTimeout(()=>{this.onDocumentBody(n)},0)},createJSONPRequest:(n,e)=>new Nt(n,e),createScriptRequest:n=>new Pt(n),getLocalStorage(){try{return window.localStorage}catch{return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){return new(this.getXHRAPI())},createMicrosoftXHR:()=>new ActiveXObject("Microsoft.XMLHTTP"),getNetwork:()=>s,createWebSocket(n){return new(this.getWebSocketAPI())(n)},createSocketRequest(n,e){if(this.isXHRSupported())return this.HTTPFactory.createXHR(n,e);if(this.isXDRSupported(e.indexOf("https:")===0))return this.HTTPFactory.createXDR(n,e);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var n=this.getXHRAPI();return!!n&&new n().withCredentials!==void 0},isXDRSupported(n){var e=n?"https:":"http:",r=this.getProtocol();return!!window.XDomainRequest&&r===e},addUnloadListener(n){window.addEventListener!==void 0?window.addEventListener("unload",n,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",n)},removeUnloadListener(n){window.addEventListener!==void 0?window.removeEventListener("unload",n,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",n)},randomInt:n=>Math.floor((window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)*n)};(function(n){n[n.ERROR=3]="ERROR",n[n.INFO=6]="INFO",n[n.DEBUG=7]="DEBUG"})(Y||(Y={}));var le=Y;class ye{constructor(e,r,o){this.key=e,this.session=r,this.events=[],this.options=o||{},this.sent=0,this.uniqueID=0}log(e,r){e<=this.options.level&&(this.events.push(_e({},r,{timestamp:Ce.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(e){this.log(le.ERROR,e)}info(e){this.log(le.INFO,e)}debug(e){this.log(le.DEBUG,e)}isEmpty(){return this.events.length===0}send(e,r){var o=_e({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],e(o,(u,p)=>{u||this.sent++,r&&r(u,p)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class me{constructor(e,r,o,u){this.name=e,this.priority=r,this.transport=o,this.options=u||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(e,r){if(!this.isSupported())return we(new Fe,r);if(this.priority<e)return we(new ve,r);var o=!1,u=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),p=null,k=function(){u.unbind("initialized",k),u.connect()},E=function(){p=R.createHandshake(u,function(ke){o=!0,ne(),r(null,ke)})},N=function(ke){ne(),r(ke)},$=function(){var ke;ne(),ke=Ve(u),r(new De(ke))},ne=function(){u.unbind("initialized",k),u.unbind("open",E),u.unbind("error",N),u.unbind("closed",$)};return u.bind("initialized",k),u.bind("open",E),u.bind("error",N),u.bind("closed",$),u.initialize(),{abort:()=>{o||(ne(),p?p.close():u.close())},forceMinPriority:ke=>{o||this.priority<ke&&(p?p.close():u.close())}}}}function we(n,e){return Ce.defer(function(){e(n)}),{abort:function(){},forceMinPriority:function(){}}}const{Transports:Se}=U;var Oe=function(n,e,r,o,u,p){var k,E=Se[r];if(!E)throw new Ie(r);return n.enabledTransports&&bt(n.enabledTransports,e)===-1||n.disabledTransports&&bt(n.disabledTransports,e)!==-1?k=Pe:(u=Object.assign({ignoreNullOrigin:n.ignoreNullOrigin},u),k=new me(e,o,p?p.getAssistant(E):E,u)),k},Pe={isSupported:function(){return!1},connect:function(n,e){var r=Ce.defer(function(){e(new Fe)});return{abort:function(){r.ensureAborted()},forceMinPriority:function(){}}}};function Ee(n){if(n==null)throw"You must pass an options object";if(n.cluster==null)throw"Options object must provide a cluster";"disableStats"in n&&be.warn("The disableStats option is deprecated in favor of enableStats")}var Zt=n=>{if(U.getAuthorizers()[n.transport]===void 0)throw`'${n.transport}' is not a recognized auth transport`;return(e,r)=>{const o=((u,p)=>{var k="socket_id="+encodeURIComponent(u.socketId);for(var E in p.params)k+="&"+encodeURIComponent(E)+"="+encodeURIComponent(p.params[E]);if(p.paramsProvider!=null){let N=p.paramsProvider();for(var E in N)k+="&"+encodeURIComponent(E)+"="+encodeURIComponent(N[E])}return k})(e,n);U.getAuthorizers()[n.transport](U,o,n,W.UserAuthentication,r)}},Qt=n=>{if(U.getAuthorizers()[n.transport]===void 0)throw`'${n.transport}' is not a recognized auth transport`;return(e,r)=>{const o=((u,p)=>{var k="socket_id="+encodeURIComponent(u.socketId);for(var E in k+="&channel_name="+encodeURIComponent(u.channelName),p.params)k+="&"+encodeURIComponent(E)+"="+encodeURIComponent(p.params[E]);if(p.paramsProvider!=null){let N=p.paramsProvider();for(var E in N)k+="&"+encodeURIComponent(E)+"="+encodeURIComponent(N[E])}return k})(e,n);U.getAuthorizers()[n.transport](U,o,n,W.ChannelAuthorization,r)}};function en(n){return n.httpHost?n.httpHost:n.cluster?`sockjs-${n.cluster}.pusher.com`:K.httpHost}function tn(n){return n.wsHost?n.wsHost:`ws-${n.cluster}.pusher.com`}function nn(n){return U.getProtocol()==="https:"||n.forceTLS!==!1}function rn(n){return"enableStats"in n?n.enableStats:"disableStats"in n&&!n.disableStats}function sn(n){const e=Object.assign(Object.assign({},K.userAuthentication),n.userAuthentication);return"customHandler"in e&&e.customHandler!=null?e.customHandler:Zt(e)}function on(n,e){const r=function(o,u){let p;return"channelAuthorization"in o?p=Object.assign(Object.assign({},K.channelAuthorization),o.channelAuthorization):(p={transport:o.authTransport||K.authTransport,endpoint:o.authEndpoint||K.authEndpoint},"auth"in o&&("params"in o.auth&&(p.params=o.auth.params),"headers"in o.auth&&(p.headers=o.auth.headers)),"authorizer"in o&&(p.customHandler=((k,E,N)=>{const $={authTransport:E.transport,authEndpoint:E.endpoint,auth:{params:E.params,headers:E.headers}};return(ne,ke)=>{const Ge=k.channel(ne.channelName);N(Ge,$).authorize(ne.socketId,ke)}})(u,p,o.authorizer))),p}(n,e);return"customHandler"in r&&r.customHandler!=null?r.customHandler:Qt(r)}class an extends Be{constructor(e){super(function(r,o){be.debug(`No callbacks on watchlist events for ${r}`)}),this.pusher=e,this.bindWatchlistInternalEvent()}handleEvent(e){e.data.events.forEach(r=>{this.emit(r.name,r)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",e=>{e.event==="pusher_internal:watchlist_events"&&this.handleEvent(e)})}}var cn=function(){let n,e;return{promise:new Promise((r,o)=>{n=r,e=o}),resolve:n,reject:e}};class hn extends Be{constructor(e){super(function(r,o){be.debug("No callbacks on user for "+r)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(r,o)=>{if(r)return be.warn(`Error during signin: ${r}`),void this._cleanup();this.pusher.send_event("pusher:signin",{auth:o.auth,user_data:o.user_data})},this.pusher=e,this.pusher.connection.bind("state_change",({previous:r,current:o})=>{r!=="connected"&&o==="connected"&&this._signin(),r==="connected"&&o!=="connected"&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new an(e),this.pusher.connection.bind("message",r=>{r.event==="pusher:signin_success"&&this._onSigninSuccess(r.data),this.serverToUserChannel&&this.serverToUserChannel.name===r.channel&&this.serverToUserChannel.handleEvent(r)})}signin(){this.signin_requested||(this.signin_requested=!0,this._signin())}_signin(){this.signin_requested&&(this._newSigninPromiseIfNeeded(),this.pusher.connection.state==="connected"&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))}_onSigninSuccess(e){try{this.user_data=JSON.parse(e.user_data)}catch{return be.error(`Failed parsing user data after signin: ${e.user_data}`),void this._cleanup()}if(typeof this.user_data.id!="string"||this.user_data.id==="")return be.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),void this._cleanup();this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){this.serverToUserChannel=new f(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((e,r)=>{e.indexOf("pusher_internal:")!==0&&e.indexOf("pusher:")!==0&&this.emit(e,r)}),(e=>{e.subscriptionPending&&e.subscriptionCancelled?e.reinstateSubscription():e.subscriptionPending||this.pusher.connection.state!=="connected"||e.subscribe()})(this.serverToUserChannel)}_cleanup(){this.user_data=null,this.serverToUserChannel&&(this.serverToUserChannel.unbind_all(),this.serverToUserChannel.disconnect(),this.serverToUserChannel=null),this.signin_requested&&this._signinDoneResolve()}_newSigninPromiseIfNeeded(){if(!this.signin_requested||this.signinDonePromise&&!this.signinDonePromise.done)return;const{promise:e,resolve:r}=cn();e.done=!1;const o=()=>{e.done=!0};e.then(o).catch(o),this.signinDonePromise=e,this._signinDoneResolve=r}}class Ue{static ready(){Ue.isReady=!0;for(var e=0,r=Ue.instances.length;e<r;e++)Ue.instances[e].connect()}static getClientFeatures(){return st(Ne({ws:U.Transports.ws},function(e){return e.isSupported({})}))}constructor(e,r){(function(o){if(o==null)throw"You must pass your app key when you instantiate Pusher."})(e),Ee(r),this.key=e,this.config=function(o,u){let p={activityTimeout:o.activityTimeout||K.activityTimeout,cluster:o.cluster,httpPath:o.httpPath||K.httpPath,httpPort:o.httpPort||K.httpPort,httpsPort:o.httpsPort||K.httpsPort,pongTimeout:o.pongTimeout||K.pongTimeout,statsHost:o.statsHost||K.stats_host,unavailableTimeout:o.unavailableTimeout||K.unavailableTimeout,wsPath:o.wsPath||K.wsPath,wsPort:o.wsPort||K.wsPort,wssPort:o.wssPort||K.wssPort,enableStats:rn(o),httpHost:en(o),useTLS:nn(o),wsHost:tn(o),userAuthenticator:sn(o),channelAuthorizer:on(o,u)};return"disabledTransports"in o&&(p.disabledTransports=o.disabledTransports),"enabledTransports"in o&&(p.enabledTransports=o.enabledTransports),"ignoreNullOrigin"in o&&(p.ignoreNullOrigin=o.ignoreNullOrigin),"timelineParams"in o&&(p.timelineParams=o.timelineParams),"nacl"in o&&(p.nacl=o.nacl),p}(r,this),this.channels=R.createChannels(),this.global_emitter=new Be,this.sessionID=U.randomInt(1e9),this.timeline=new ye(this.key,this.sessionID,{cluster:this.config.cluster,features:Ue.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:le.INFO,version:K.VERSION}),this.config.enableStats&&(this.timelineSender=R.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+U.TimelineTransport.name})),this.connection=R.createConnectionManager(this.key,{getStrategy:o=>U.getDefaultStrategy(this.config,o,Oe),timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:!!this.config.useTLS}),this.connection.bind("connected",()=>{this.subscribeAll(),this.timelineSender&&this.timelineSender.send(this.connection.isUsingTLS())}),this.connection.bind("message",o=>{var u=o.event.indexOf("pusher_internal:")===0;if(o.channel){var p=this.channel(o.channel);p&&p.handleEvent(o)}u||this.global_emitter.emit(o.event,o.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",o=>{be.warn(o)}),Ue.instances.push(this),this.timeline.info({instances:Ue.instances.length}),this.user=new hn(this),Ue.isReady&&this.connect()}channel(e){return this.channels.find(e)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var e=this.connection.isUsingTLS(),r=this.timelineSender;this.timelineSenderTimer=new gt(6e4,function(){r.send(e)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(e,r,o){return this.global_emitter.bind(e,r,o),this}unbind(e,r,o){return this.global_emitter.unbind(e,r,o),this}bind_global(e){return this.global_emitter.bind_global(e),this}unbind_global(e){return this.global_emitter.unbind_global(e),this}unbind_all(e){return this.global_emitter.unbind_all(),this}subscribeAll(){var e;for(e in this.channels.channels)this.channels.channels.hasOwnProperty(e)&&this.subscribe(e)}subscribe(e){var r=this.channels.add(e,this);return r.subscriptionPending&&r.subscriptionCancelled?r.reinstateSubscription():r.subscriptionPending||this.connection.state!=="connected"||r.subscribe(),r}unsubscribe(e){var r=this.channels.find(e);r&&r.subscriptionPending?r.cancelSubscription():(r=this.channels.remove(e))&&r.subscribed&&r.unsubscribe()}send_event(e,r,o){return this.connection.send_event(e,r,o)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}Ue.instances=[],Ue.isReady=!1,Ue.logToConsole=!1,Ue.Runtime=U,Ue.ScriptReceivers=U.ScriptReceivers,Ue.DependenciesReceivers=U.DependenciesReceivers,Ue.auth_callbacks=U.auth_callbacks;var dt=Ue;U.setup(Ue);var un=ue(2);class Rt extends dt{constructor(e,r){dt.logToConsole=Rt.logToConsole,dt.log=Rt.log,Ee(r),r.nacl=un,super(e,r)}}}])},Gt.exports=qe());var qe}var Vt=Wt?$t:(Wt=1,$t=mn());const _n=yn({__proto__:null,default:vn(Vt)},[Vt]);export{_n as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./sentry-
|
|
1
|
+
import"./sentry-Cx_bjk1I.js";import{r as u}from"./index-ChczZgz4.js";import{r as c}from"./url-DTcdHmle.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new o.Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="3afeb3dd-5bf4-4490-b608-6666ce26ed62",o._sentryDebugIdIdentifier="sentry-dbid-3afeb3dd-5bf4-4490-b608-6666ce26ed62")}catch{}})();var d,p={exports:{}};function y(){return d||(d=1,function(o){var e=u(),f=c(),r=o.exports;for(var n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);function i(t){if(typeof t=="string"&&(t=f.parse(t)),t.protocol||(t.protocol="https:"),t.protocol!=="https:")throw new Error('Protocol "'+t.protocol+'" not supported. Expected "https:"');return t}r.request=function(t,s){return t=i(t),e.request.call(this,t,s)},r.get=function(t,s){return t=i(t),e.get.call(this,t,s)}}(p)),p.exports}export{y as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as i}from"./sentry-
|
|
1
|
+
import{g as i}from"./sentry-Cx_bjk1I.js";import{r as a}from"./index-B7d7MSWD.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="63071319-eacd-4eee-a227-cdff659934c0",e._sentryDebugIdIdentifier="sentry-dbid-63071319-eacd-4eee-a227-cdff659934c0")}catch{}})();function s(e,t){for(var o=0;o<t.length;o++){const r=t[o];if(typeof r!="string"&&!Array.isArray(r)){for(const n in r)if(n!=="default"&&!(n in e)){const f=Object.getOwnPropertyDescriptor(r,n);f&&Object.defineProperty(e,n,f.get?f:{enumerable:!0,get:()=>r[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var d=a();const u=s({__proto__:null,default:i(d)},[d]);export{u as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as l,p as C}from"./sentry-D49LOZ1j.js";import{L as T}from"./zeni-epic-state-CZMuxCUG.js";import{q as N,n as q}from"./utils-RiJ_hKSI.js";import{r as U}from"./url-DR56GGlL.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},f=new a.Error().stack;f&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[f]="e12b2bfd-2e9e-4580-b3d9-429dfdb0259b",a._sentryDebugIdIdentifier="sentry-dbid-e12b2bfd-2e9e-4580-b3d9-429dfdb0259b")}catch{}})();var E,A={},R={exports:{}},S={};function I(){return E||(E=1,function(a){var f;function m(){if(f!==void 0)return f;if(l.XMLHttpRequest){f=new l.XMLHttpRequest;try{f.open("GET",l.XDomainRequest?"/":"https://example.com")}catch{f=null}}else f=null;return f}function h(c){var r=m();if(!r)return!1;try{return r.responseType=c,r.responseType===c}catch{}return!1}function p(c){return typeof c=="function"}a.fetch=p(l.fetch)&&p(l.ReadableStream),a.writableStream=p(l.WritableStream),a.abortController=p(l.AbortController),a.arraybuffer=a.fetch||h("arraybuffer"),a.msstream=!a.fetch&&h("ms-stream"),a.mozchunkedarraybuffer=!a.fetch&&h("moz-chunked-arraybuffer"),a.overrideMimeType=a.fetch||!!m()&&p(m().overrideMimeType),f=null}(S)),S}var x,k,w,O,H,M,P,v={};function L(){if(x)return v;x=1;var a=I(),f=N(),m=q(),h=v.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},p=v.IncomingMessage=function(c,r,s,e){var t=this;if(m.Readable.call(t),t._mode=s,t.headers={},t.rawHeaders=[],t.trailers={},t.rawTrailers=[],t.on("end",function(){C.nextTick(function(){t.emit("close")})}),s==="fetch"){let y=function(){u.read().then(function(n){t._destroyed||(e(n.done),n.done?t.push(null):(t.push(T.from(n.value)),y()))}).catch(function(n){e(!0),t._destroyed||t.emit("error",n)})};if(t._fetchResponse=r,t.url=r.url,t.statusCode=r.status,t.statusMessage=r.statusText,r.headers.forEach(function(n,i){t.headers[i.toLowerCase()]=n,t.rawHeaders.push(i,n)}),a.writableStream){var o=new WritableStream({write:function(n){return e(!1),new Promise(function(i,b){t._destroyed?b():t.push(T.from(n))?i():t._resumeFetch=i})},close:function(){e(!0),t._destroyed||t.push(null)},abort:function(n){e(!0),t._destroyed||t.emit("error",n)}});try{return void r.body.pipeTo(o).catch(function(n){e(!0),t._destroyed||t.emit("error",n)})}catch{}}var u=r.body.getReader();y()}else if(t._xhr=c,t._pos=0,t.url=c.responseURL,t.statusCode=c.status,t.statusMessage=c.statusText,c.getAllResponseHeaders().split(/\r?\n/).forEach(function(y){var n=y.match(/^([^:]+):\s*(.*)/);if(n){var i=n[1].toLowerCase();i==="set-cookie"?(t.headers[i]===void 0&&(t.headers[i]=[]),t.headers[i].push(n[2])):t.headers[i]!==void 0?t.headers[i]+=", "+n[2]:t.headers[i]=n[2],t.rawHeaders.push(n[1],n[2])}}),t._charset="x-user-defined",!a.overrideMimeType){var d=t.rawHeaders["mime-type"];if(d){var _=d.match(/;\s*charset=([^;])(;|$)/);_&&(t._charset=_[1].toLowerCase())}t._charset||(t._charset="utf-8")}};return f(p,m.Readable),p.prototype._read=function(){var c=this._resumeFetch;c&&(this._resumeFetch=null,c())},p.prototype._onXHRProgress=function(c){var r=this,s=r._xhr,e=null;switch(r._mode){case"text":if((e=s.responseText).length>r._pos){var t=e.substr(r._pos);if(r._charset==="x-user-defined"){for(var o=T.alloc(t.length),u=0;u<t.length;u++)o[u]=255&t.charCodeAt(u);r.push(o)}else r.push(t,r._charset);r._pos=e.length}break;case"arraybuffer":if(s.readyState!==h.DONE||!s.response)break;e=s.response,r.push(T.from(new Uint8Array(e)));break;case"moz-chunked-arraybuffer":if(e=s.response,s.readyState!==h.LOADING||!e)break;r.push(T.from(new Uint8Array(e)));break;case"ms-stream":if(e=s.response,s.readyState!==h.LOADING)break;var d=new l.MSStreamReader;d.onprogress=function(){d.result.byteLength>r._pos&&(r.push(T.from(new Uint8Array(d.result.slice(r._pos)))),r._pos=d.result.byteLength)},d.onload=function(){c(!0),r.push(null)},d.readAsArrayBuffer(e)}r._xhr.readyState===h.DONE&&r._mode!=="ms-stream"&&(c(!0),r.push(null))},v}function F(){if(k)return R.exports;k=1;var a=I(),f=N(),m=L(),h=q(),p=m.IncomingMessage,c=m.readyStates,r=R.exports=function(e){var t,o=this;h.Writable.call(o),o._opts=e,o._body=[],o._headers={},e.auth&&o.setHeader("Authorization","Basic "+T.from(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(d){o.setHeader(d,e.headers[d])});var u=!0;if(e.mode==="disable-fetch"||"requestTimeout"in e&&!a.abortController)u=!1,t=!0;else if(e.mode==="prefer-streaming")t=!1;else if(e.mode==="allow-wrong-content-type")t=!a.overrideMimeType;else{if(e.mode&&e.mode!=="default"&&e.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");t=!0}o._mode=function(d,_){return a.fetch&&_?"fetch":a.mozchunkedarraybuffer?"moz-chunked-arraybuffer":a.msstream?"ms-stream":a.arraybuffer&&d?"arraybuffer":"text"}(t,u),o._fetchTimer=null,o._socketTimeout=null,o._socketTimer=null,o.on("finish",function(){o._onFinish()})};f(r,h.Writable),r.prototype.setHeader=function(e,t){var o=e.toLowerCase();s.indexOf(o)===-1&&(this._headers[o]={name:e,value:t})},r.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},r.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},r.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts;"timeout"in t&&t.timeout!==0&&e.setTimeout(t.timeout);var o=e._headers,u=null;t.method!=="GET"&&t.method!=="HEAD"&&(u=new Blob(e._body,{type:(o["content-type"]||{}).value||""}));var d=[];if(Object.keys(o).forEach(function(i){var b=o[i].name,g=o[i].value;Array.isArray(g)?g.forEach(function(D){d.push([b,D])}):d.push([b,g])}),e._mode==="fetch"){var _=null;if(a.abortController){var y=new AbortController;_=y.signal,e._fetchAbortController=y,"requestTimeout"in t&&t.requestTimeout!==0&&(e._fetchTimer=l.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},t.requestTimeout))}l.fetch(e._opts.url,{method:e._opts.method,headers:d,body:u||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:_}).then(function(i){e._fetchResponse=i,e._resetTimers(!1),e._connect()},function(i){e._resetTimers(!0),e._destroyed||e.emit("error",i)})}else{var n=e._xhr=new l.XMLHttpRequest;try{n.open(e._opts.method,e._opts.url,!0)}catch(i){return void C.nextTick(function(){e.emit("error",i)})}"responseType"in n&&(n.responseType=e._mode),"withCredentials"in n&&(n.withCredentials=!!t.withCredentials),e._mode==="text"&&"overrideMimeType"in n&&n.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(n.timeout=t.requestTimeout,n.ontimeout=function(){e.emit("requestTimeout")}),d.forEach(function(i){n.setRequestHeader(i[0],i[1])}),e._response=null,n.onreadystatechange=function(){switch(n.readyState){case c.LOADING:case c.DONE:e._onXHRProgress()}},e._mode==="moz-chunked-arraybuffer"&&(n.onprogress=function(){e._onXHRProgress()}),n.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{n.send(u)}catch(i){return void C.nextTick(function(){e.emit("error",i)})}}}},r.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),function(t){try{var o=t.status;return o!==null&&o!==0}catch{return!1}}(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))},r.prototype._connect=function(){var e=this;e._destroyed||(e._response=new p(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},r.prototype._write=function(e,t,o){this._body.push(e),o()},r.prototype._resetTimers=function(e){var t=this;l.clearTimeout(t._socketTimer),t._socketTimer=null,e?(l.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=l.setTimeout(function(){t.emit("timeout")},t._socketTimeout))},r.prototype.abort=r.prototype.destroy=function(e){var t=this;t._destroyed=!0,t._resetTimers(!0),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort(),e&&t.emit("error",e)},r.prototype.end=function(e,t,o){typeof e=="function"&&(o=e,e=void 0),h.Writable.prototype.end.call(this,e,t,o)},r.prototype.setTimeout=function(e,t){var o=this;t&&o.once("timeout",t),o._socketTimeout=e,o._resetTimers(!1)},r.prototype.flushHeaders=function(){},r.prototype.setNoDelay=function(){},r.prototype.setSocketKeepAlive=function(){};var s=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"];return R.exports}function K(){return P||(P=1,function(a){var f=F(),m=L(),h=function(){if(O)return w;O=1,w=function(){for(var e={},t=0;t<arguments.length;t++){var o=arguments[t];for(var u in o)s.call(o,u)&&(e[u]=o[u])}return e};var s=Object.prototype.hasOwnProperty;return w}(),p=M?H:(M=1,H={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}),c=U(),r=a;r.request=function(s,e){s=typeof s=="string"?c.parse(s):h(s);var t=l.location.protocol.search(/^https?:$/)===-1?"http:":"",o=s.protocol||t,u=s.hostname||s.host,d=s.port,_=s.path||"/";u&&u.indexOf(":")!==-1&&(u="["+u+"]"),s.url=(u?o+"//"+u:"")+(d?":"+d:"")+_,s.method=(s.method||"GET").toUpperCase(),s.headers=s.headers||{};var y=new f(s);return e&&y.on("response",e),y},r.get=function(s,e){var t=r.request(s,e);return t.end(),t},r.ClientRequest=f,r.IncomingMessage=m.IncomingMessage,r.Agent=function(){},r.Agent.defaultMaxSockets=4,r.globalAgent=new r.Agent,r.STATUS_CODES=p,r.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}(A)),A}export{K as r};
|
|
1
|
+
import{e as l,p as C}from"./sentry-Cx_bjk1I.js";import{L as T}from"./zeni-epic-state-deE-VpAu.js";import{q as N,n as q}from"./utils-B5-1mb3v.js";import{r as U}from"./url-DTcdHmle.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},f=new a.Error().stack;f&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[f]="e12b2bfd-2e9e-4580-b3d9-429dfdb0259b",a._sentryDebugIdIdentifier="sentry-dbid-e12b2bfd-2e9e-4580-b3d9-429dfdb0259b")}catch{}})();var E,A={},R={exports:{}},S={};function I(){return E||(E=1,function(a){var f;function m(){if(f!==void 0)return f;if(l.XMLHttpRequest){f=new l.XMLHttpRequest;try{f.open("GET",l.XDomainRequest?"/":"https://example.com")}catch{f=null}}else f=null;return f}function h(c){var r=m();if(!r)return!1;try{return r.responseType=c,r.responseType===c}catch{}return!1}function p(c){return typeof c=="function"}a.fetch=p(l.fetch)&&p(l.ReadableStream),a.writableStream=p(l.WritableStream),a.abortController=p(l.AbortController),a.arraybuffer=a.fetch||h("arraybuffer"),a.msstream=!a.fetch&&h("ms-stream"),a.mozchunkedarraybuffer=!a.fetch&&h("moz-chunked-arraybuffer"),a.overrideMimeType=a.fetch||!!m()&&p(m().overrideMimeType),f=null}(S)),S}var x,k,w,O,H,M,P,v={};function L(){if(x)return v;x=1;var a=I(),f=N(),m=q(),h=v.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},p=v.IncomingMessage=function(c,r,s,e){var t=this;if(m.Readable.call(t),t._mode=s,t.headers={},t.rawHeaders=[],t.trailers={},t.rawTrailers=[],t.on("end",function(){C.nextTick(function(){t.emit("close")})}),s==="fetch"){let y=function(){u.read().then(function(n){t._destroyed||(e(n.done),n.done?t.push(null):(t.push(T.from(n.value)),y()))}).catch(function(n){e(!0),t._destroyed||t.emit("error",n)})};if(t._fetchResponse=r,t.url=r.url,t.statusCode=r.status,t.statusMessage=r.statusText,r.headers.forEach(function(n,i){t.headers[i.toLowerCase()]=n,t.rawHeaders.push(i,n)}),a.writableStream){var o=new WritableStream({write:function(n){return e(!1),new Promise(function(i,b){t._destroyed?b():t.push(T.from(n))?i():t._resumeFetch=i})},close:function(){e(!0),t._destroyed||t.push(null)},abort:function(n){e(!0),t._destroyed||t.emit("error",n)}});try{return void r.body.pipeTo(o).catch(function(n){e(!0),t._destroyed||t.emit("error",n)})}catch{}}var u=r.body.getReader();y()}else if(t._xhr=c,t._pos=0,t.url=c.responseURL,t.statusCode=c.status,t.statusMessage=c.statusText,c.getAllResponseHeaders().split(/\r?\n/).forEach(function(y){var n=y.match(/^([^:]+):\s*(.*)/);if(n){var i=n[1].toLowerCase();i==="set-cookie"?(t.headers[i]===void 0&&(t.headers[i]=[]),t.headers[i].push(n[2])):t.headers[i]!==void 0?t.headers[i]+=", "+n[2]:t.headers[i]=n[2],t.rawHeaders.push(n[1],n[2])}}),t._charset="x-user-defined",!a.overrideMimeType){var d=t.rawHeaders["mime-type"];if(d){var _=d.match(/;\s*charset=([^;])(;|$)/);_&&(t._charset=_[1].toLowerCase())}t._charset||(t._charset="utf-8")}};return f(p,m.Readable),p.prototype._read=function(){var c=this._resumeFetch;c&&(this._resumeFetch=null,c())},p.prototype._onXHRProgress=function(c){var r=this,s=r._xhr,e=null;switch(r._mode){case"text":if((e=s.responseText).length>r._pos){var t=e.substr(r._pos);if(r._charset==="x-user-defined"){for(var o=T.alloc(t.length),u=0;u<t.length;u++)o[u]=255&t.charCodeAt(u);r.push(o)}else r.push(t,r._charset);r._pos=e.length}break;case"arraybuffer":if(s.readyState!==h.DONE||!s.response)break;e=s.response,r.push(T.from(new Uint8Array(e)));break;case"moz-chunked-arraybuffer":if(e=s.response,s.readyState!==h.LOADING||!e)break;r.push(T.from(new Uint8Array(e)));break;case"ms-stream":if(e=s.response,s.readyState!==h.LOADING)break;var d=new l.MSStreamReader;d.onprogress=function(){d.result.byteLength>r._pos&&(r.push(T.from(new Uint8Array(d.result.slice(r._pos)))),r._pos=d.result.byteLength)},d.onload=function(){c(!0),r.push(null)},d.readAsArrayBuffer(e)}r._xhr.readyState===h.DONE&&r._mode!=="ms-stream"&&(c(!0),r.push(null))},v}function F(){if(k)return R.exports;k=1;var a=I(),f=N(),m=L(),h=q(),p=m.IncomingMessage,c=m.readyStates,r=R.exports=function(e){var t,o=this;h.Writable.call(o),o._opts=e,o._body=[],o._headers={},e.auth&&o.setHeader("Authorization","Basic "+T.from(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(d){o.setHeader(d,e.headers[d])});var u=!0;if(e.mode==="disable-fetch"||"requestTimeout"in e&&!a.abortController)u=!1,t=!0;else if(e.mode==="prefer-streaming")t=!1;else if(e.mode==="allow-wrong-content-type")t=!a.overrideMimeType;else{if(e.mode&&e.mode!=="default"&&e.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");t=!0}o._mode=function(d,_){return a.fetch&&_?"fetch":a.mozchunkedarraybuffer?"moz-chunked-arraybuffer":a.msstream?"ms-stream":a.arraybuffer&&d?"arraybuffer":"text"}(t,u),o._fetchTimer=null,o._socketTimeout=null,o._socketTimer=null,o.on("finish",function(){o._onFinish()})};f(r,h.Writable),r.prototype.setHeader=function(e,t){var o=e.toLowerCase();s.indexOf(o)===-1&&(this._headers[o]={name:e,value:t})},r.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},r.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},r.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts;"timeout"in t&&t.timeout!==0&&e.setTimeout(t.timeout);var o=e._headers,u=null;t.method!=="GET"&&t.method!=="HEAD"&&(u=new Blob(e._body,{type:(o["content-type"]||{}).value||""}));var d=[];if(Object.keys(o).forEach(function(i){var b=o[i].name,g=o[i].value;Array.isArray(g)?g.forEach(function(D){d.push([b,D])}):d.push([b,g])}),e._mode==="fetch"){var _=null;if(a.abortController){var y=new AbortController;_=y.signal,e._fetchAbortController=y,"requestTimeout"in t&&t.requestTimeout!==0&&(e._fetchTimer=l.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},t.requestTimeout))}l.fetch(e._opts.url,{method:e._opts.method,headers:d,body:u||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:_}).then(function(i){e._fetchResponse=i,e._resetTimers(!1),e._connect()},function(i){e._resetTimers(!0),e._destroyed||e.emit("error",i)})}else{var n=e._xhr=new l.XMLHttpRequest;try{n.open(e._opts.method,e._opts.url,!0)}catch(i){return void C.nextTick(function(){e.emit("error",i)})}"responseType"in n&&(n.responseType=e._mode),"withCredentials"in n&&(n.withCredentials=!!t.withCredentials),e._mode==="text"&&"overrideMimeType"in n&&n.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(n.timeout=t.requestTimeout,n.ontimeout=function(){e.emit("requestTimeout")}),d.forEach(function(i){n.setRequestHeader(i[0],i[1])}),e._response=null,n.onreadystatechange=function(){switch(n.readyState){case c.LOADING:case c.DONE:e._onXHRProgress()}},e._mode==="moz-chunked-arraybuffer"&&(n.onprogress=function(){e._onXHRProgress()}),n.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{n.send(u)}catch(i){return void C.nextTick(function(){e.emit("error",i)})}}}},r.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),function(t){try{var o=t.status;return o!==null&&o!==0}catch{return!1}}(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))},r.prototype._connect=function(){var e=this;e._destroyed||(e._response=new p(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},r.prototype._write=function(e,t,o){this._body.push(e),o()},r.prototype._resetTimers=function(e){var t=this;l.clearTimeout(t._socketTimer),t._socketTimer=null,e?(l.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=l.setTimeout(function(){t.emit("timeout")},t._socketTimeout))},r.prototype.abort=r.prototype.destroy=function(e){var t=this;t._destroyed=!0,t._resetTimers(!0),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort(),e&&t.emit("error",e)},r.prototype.end=function(e,t,o){typeof e=="function"&&(o=e,e=void 0),h.Writable.prototype.end.call(this,e,t,o)},r.prototype.setTimeout=function(e,t){var o=this;t&&o.once("timeout",t),o._socketTimeout=e,o._resetTimers(!1)},r.prototype.flushHeaders=function(){},r.prototype.setNoDelay=function(){},r.prototype.setSocketKeepAlive=function(){};var s=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"];return R.exports}function K(){return P||(P=1,function(a){var f=F(),m=L(),h=function(){if(O)return w;O=1,w=function(){for(var e={},t=0;t<arguments.length;t++){var o=arguments[t];for(var u in o)s.call(o,u)&&(e[u]=o[u])}return e};var s=Object.prototype.hasOwnProperty;return w}(),p=M?H:(M=1,H={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}),c=U(),r=a;r.request=function(s,e){s=typeof s=="string"?c.parse(s):h(s);var t=l.location.protocol.search(/^https?:$/)===-1?"http:":"",o=s.protocol||t,u=s.hostname||s.host,d=s.port,_=s.path||"/";u&&u.indexOf(":")!==-1&&(u="["+u+"]"),s.url=(u?o+"//"+u:"")+(d?":"+d:"")+_,s.method=(s.method||"GET").toUpperCase(),s.headers=s.headers||{};var y=new f(s);return e&&y.on("response",e),y},r.get=function(s,e){var t=r.request(s,e);return t.end(),t},r.ClientRequest=f,r.IncomingMessage=m.IncomingMessage,r.Agent=function(){},r.Agent.defaultMaxSockets=4,r.globalAgent=new r.Agent,r.STATUS_CODES=p,r.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}(A)),A}export{K as r};
|