mario-core 2.0.32-release → 2.0.33-release

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/dist/Dashboard-BIhv8car.js +1 -0
  2. package/dist/Dashboard-BY5BVLIW.mjs +206 -0
  3. package/dist/Dashboard-BYXh-LYm.mjs +206 -0
  4. package/dist/Dashboard-Bp0ko4Nx.js +1 -0
  5. package/dist/Dashboard-BxX4EZkL.mjs +206 -0
  6. package/dist/Dashboard-CLvLdCvD.mjs +206 -0
  7. package/dist/Dashboard-CjDPZlwI.js +1 -0
  8. package/dist/Dashboard-D4yeROnn.mjs +206 -0
  9. package/dist/Dashboard-D6igZd4M.js +1 -0
  10. package/dist/Dashboard-D7X8bg8t.mjs +206 -0
  11. package/dist/Dashboard-DRaSlZLc.js +1 -0
  12. package/dist/Dashboard-DbI4E9od.js +1 -0
  13. package/dist/EmailTemplateDetail-B-Kab5TK.mjs +443 -0
  14. package/dist/EmailTemplateDetail-BJGaN7uh.js +1 -0
  15. package/dist/EmailTemplateDetail-BOqn4rkr.mjs +417 -0
  16. package/dist/EmailTemplateDetail-BlhCa_EF.mjs +443 -0
  17. package/dist/EmailTemplateDetail-CW0ymDWF.mjs +443 -0
  18. package/dist/EmailTemplateDetail-CZKvX-_q.js +1 -0
  19. package/dist/EmailTemplateDetail-D4EupjNO.js +1 -0
  20. package/dist/EmailTemplateDetail-DDbJbMWn.js +1 -0
  21. package/dist/EmailTemplateDetail-DP04M6QH.js +1 -0
  22. package/dist/EmailTemplateDetail-DSeAyn-F.mjs +443 -0
  23. package/dist/EmailTemplateDetail-J5R0X631.mjs +443 -0
  24. package/dist/EmailTemplateDetail-c2RcFzG5.js +1 -0
  25. package/dist/EmailTemplateList-BAVOo58z.js +1 -0
  26. package/dist/EmailTemplateList-BMCpm7sf.js +1 -0
  27. package/dist/EmailTemplateList-BQCcXdif.mjs +170 -0
  28. package/dist/EmailTemplateList-BVB1lsW7.mjs +170 -0
  29. package/dist/EmailTemplateList-BVfQCPzA.js +1 -0
  30. package/dist/EmailTemplateList-C-aj1Pl0.mjs +170 -0
  31. package/dist/EmailTemplateList-C5c2T4_M.mjs +170 -0
  32. package/dist/EmailTemplateList-D3G-A7Jo.js +1 -0
  33. package/dist/EmailTemplateList-DPQTaV4-.js +1 -0
  34. package/dist/EmailTemplateList-JRLV6pZW.mjs +170 -0
  35. package/dist/EmailTemplateList-ZTs0DmjS.js +1 -0
  36. package/dist/EmailTemplateList-gwkheOgx.mjs +168 -0
  37. package/dist/GalleryList-BU1m_MP_.js +1 -0
  38. package/dist/GalleryList-BftIdfu8.js +1 -0
  39. package/dist/GalleryList-Bl4FojYJ.mjs +329 -0
  40. package/dist/GalleryList-ByJ1_7Qx.mjs +329 -0
  41. package/dist/GalleryList-CVzc1xGW.js +1 -0
  42. package/dist/GalleryList-D5E7p3kE.mjs +329 -0
  43. package/dist/GalleryList-D5ZydfSV.js +1 -0
  44. package/dist/GalleryList-DHblERzG.js +1 -0
  45. package/dist/GalleryList-DXnU-Aou.mjs +329 -0
  46. package/dist/GalleryList-DpM906eg.mjs +329 -0
  47. package/dist/GalleryList-ZJ_mdpVZ.js +1 -0
  48. package/dist/GalleryList-oJNXivHy.mjs +329 -0
  49. package/dist/Login-A2cXwovI.mjs +1380 -0
  50. package/dist/Login-B69XhtIm.mjs +1380 -0
  51. package/dist/Login-BLyikyni.mjs +1380 -0
  52. package/dist/Login-Bwr0h4GC.js +1 -0
  53. package/dist/Login-C12Whvdx.js +1 -0
  54. package/dist/Login-CIcbHD7-.mjs +1380 -0
  55. package/dist/Login-D7gUoYyV.js +1 -0
  56. package/dist/Login-DEMe7ra6.js +1 -0
  57. package/dist/Login-Dcwb-HaZ.js +1 -0
  58. package/dist/Login-Rwbmk--s.js +1 -0
  59. package/dist/Login-h3o1lUKK.mjs +1380 -0
  60. package/dist/Login-xn2j4Jqq.mjs +1380 -0
  61. package/dist/NotificationList--DZcYUS5.js +2 -0
  62. package/dist/NotificationList-D26jJ6Wc.mjs +3969 -0
  63. package/dist/NotificationList-DZ1epO3L.mjs +3969 -0
  64. package/dist/NotificationList-D_lGCmIS.js +2 -0
  65. package/dist/NotificationList-Da-pWu35.js +2 -0
  66. package/dist/NotificationList-Dogczlgr.mjs +3969 -0
  67. package/dist/NotificationList-Dv0JIP69.js +2 -0
  68. package/dist/NotificationList-DygQSzwE.mjs +3969 -0
  69. package/dist/NotificationList-Ku1m25fI.mjs +3969 -0
  70. package/dist/NotificationList-Ml4QiyAE.mjs +3969 -0
  71. package/dist/NotificationList-_AHdv4bs.js +2 -0
  72. package/dist/NotificationList-rKx7xooX.js +2 -0
  73. package/dist/SkillList-BUDiP8Ba.mjs +386 -0
  74. package/dist/SkillList-Btum0zIE.js +1 -0
  75. package/dist/SkillList-C-dw1122.js +1 -0
  76. package/dist/SkillList-C0ZfIxCl.js +1 -0
  77. package/dist/SkillList-CZTd0oz_.mjs +386 -0
  78. package/dist/SkillList-DPU-l8aA.js +1 -0
  79. package/dist/SkillList-DTxT0Hbn.js +1 -0
  80. package/dist/SkillList-DVXAACsz.mjs +386 -0
  81. package/dist/SkillList-DX530KHp.mjs +386 -0
  82. package/dist/SkillList-DahOq8Os.mjs +386 -0
  83. package/dist/SkillList-DivkFIrP.mjs +386 -0
  84. package/dist/SkillList-yosFFVsc.js +1 -0
  85. package/dist/TeacherSelector-5UVov2Wf.mjs +30 -0
  86. package/dist/TeacherSelector-Bi582rEx.mjs +30 -0
  87. package/dist/TeacherSelector-BmmfQxU8.js +1 -0
  88. package/dist/TeacherSelector-BngXAzRe.mjs +30 -0
  89. package/dist/TeacherSelector-C7-XuXfb.mjs +30 -0
  90. package/dist/TeacherSelector-C9Z5JX-P.js +1 -0
  91. package/dist/TeacherSelector-CZ1DrLUk.js +1 -0
  92. package/dist/TeacherSelector-CbJ1kPyV.js +1 -0
  93. package/dist/TeacherSelector-CkGdl96R.js +1 -0
  94. package/dist/TeacherSelector-CxDiVyno.mjs +30 -0
  95. package/dist/TeacherSelector-DomtJIQi.js +1 -0
  96. package/dist/TeacherSelector-mjBcHGJF.mjs +30 -0
  97. package/dist/TheContent-B42qwDUV.mjs +38 -0
  98. package/dist/TheContent-BW03X6oT.mjs +38 -0
  99. package/dist/TheContent-CayaQR9C.js +1 -0
  100. package/dist/TheContent-CiU0FBTA.mjs +38 -0
  101. package/dist/TheContent-D5Qx4QXe.js +1 -0
  102. package/dist/TheContent-DHWnB8WX.js +1 -0
  103. package/dist/TheContent-DPy5BFuN.js +1 -0
  104. package/dist/TheContent-Dl7_h11H.mjs +38 -0
  105. package/dist/TheContent-DxN9-GIu.mjs +38 -0
  106. package/dist/TheContent-H-Hg7kIq.js +1 -0
  107. package/dist/TheContent-aEfXKW_H.mjs +38 -0
  108. package/dist/TheContent-xUKaH5bl.js +1 -0
  109. package/dist/UserContainer-3dOz3yZF.js +5 -0
  110. package/dist/UserContainer-B-abn6--.js +5 -0
  111. package/dist/UserContainer-BIl8c0yJ.js +5 -0
  112. package/dist/UserContainer-BjYrV0kt.mjs +2783 -0
  113. package/dist/UserContainer-BoJ73Ko9.js +5 -0
  114. package/dist/UserContainer-CFnSfW2A.js +5 -0
  115. package/dist/UserContainer-CGlDCED1.mjs +2771 -0
  116. package/dist/UserContainer-CqTUtCe6.mjs +2770 -0
  117. package/dist/UserContainer-CtYpysOo.mjs +2771 -0
  118. package/dist/UserContainer-Cu6koTiw.mjs +2771 -0
  119. package/dist/UserContainer-Dz991Fto.mjs +2770 -0
  120. package/dist/UserContainer-d3ywqdWh.js +5 -0
  121. package/dist/UserDetail-BCLssfN6.mjs +902 -0
  122. package/dist/UserDetail-BRCOabYu.mjs +902 -0
  123. package/dist/UserDetail-BsWWKLof.js +1 -0
  124. package/dist/UserDetail-CkMU6eej.js +1 -0
  125. package/dist/UserDetail-Cl6y6AtA.js +1 -0
  126. package/dist/UserDetail-CqBaMe5l.mjs +902 -0
  127. package/dist/UserDetail-D36q7Em-.mjs +902 -0
  128. package/dist/UserDetail-DFjYZZOc.js +1 -0
  129. package/dist/UserDetail-DIGlXdot.mjs +914 -0
  130. package/dist/UserDetail-DizNdqsR.mjs +902 -0
  131. package/dist/UserDetail-DwNEJ0kC.js +1 -0
  132. package/dist/UserDetail-Wn1wTs2Z.js +1 -0
  133. package/dist/UserList-4XLAsuI5.mjs +1205 -0
  134. package/dist/UserList-B9_Ok-O-.js +5 -0
  135. package/dist/UserList-BAirPxDM.js +7 -0
  136. package/dist/UserList-BFRsUwHp.js +5 -0
  137. package/dist/UserList-BgtFj_YA.mjs +1171 -0
  138. package/dist/UserList-BjEBqEMi.mjs +1205 -0
  139. package/dist/UserList-C6MCzl4Q.js +7 -0
  140. package/dist/UserList-CLDgmfZl.mjs +1171 -0
  141. package/dist/UserList-CRqA2Kvb.js +7 -0
  142. package/dist/UserList-D-5W9tzb.mjs +1205 -0
  143. package/dist/UserList-D63-z7TV.mjs +1205 -0
  144. package/dist/UserList-DX_DRp8l.js +7 -0
  145. package/dist/constants-1VW88-cg.mjs +320 -0
  146. package/dist/constants-B09dcc2W.js +1 -0
  147. package/dist/constants-BSg1aI4R.js +1 -0
  148. package/dist/constants-BXFDJA-1.js +1 -0
  149. package/dist/constants-BdoFiMvT.mjs +320 -0
  150. package/dist/constants-BrOUFw2c.js +1 -0
  151. package/dist/constants-ClfPwBI0.mjs +320 -0
  152. package/dist/constants-D3RqPPqz.mjs +320 -0
  153. package/dist/constants-D5ZWXomx.js +1 -0
  154. package/dist/constants-DiRwIQ5M.mjs +320 -0
  155. package/dist/constants-bWeajrBe.js +1 -0
  156. package/dist/constants-dgRR32rI.mjs +320 -0
  157. package/dist/containers/EmailTemplate/hooks/useEmailTemplateDetail.d.ts +1 -0
  158. package/dist/containers/User/constants/types.d.ts +1 -0
  159. package/dist/containers/User/hooks/useExportUsersCsv.d.ts +1 -0
  160. package/dist/index-B3Kqv7dj.mjs +17787 -0
  161. package/dist/index-BTWI5jDz.js +15 -0
  162. package/dist/index-C1gw45bw.mjs +17792 -0
  163. package/dist/index-CFAFmJ4F.mjs +17782 -0
  164. package/dist/index-D6pNkzlV.mjs +17787 -0
  165. package/dist/index-DDw_4X4u.js +15 -0
  166. package/dist/index-DVZt7HdB.js +15 -0
  167. package/dist/index-Di2zNE1O.mjs +17792 -0
  168. package/dist/index-DzHydV61.js +15 -0
  169. package/dist/index-Ihdym4EQ.js +15 -0
  170. package/dist/index-UpEZLqQV.js +15 -0
  171. package/dist/index-cuQPyXoT.mjs +17772 -0
  172. package/dist/index.js +1 -1
  173. package/dist/index.modern.js +1 -1
  174. package/dist/mailCategoryService-BbqIjbpT.mjs +11 -0
  175. package/dist/mailCategoryService-C1sorb9h.js +1 -0
  176. package/dist/mailCategoryService-CZ9m51K4.js +1 -0
  177. package/dist/mailCategoryService-C_Lq0Uks.mjs +11 -0
  178. package/dist/mailCategoryService-DcwLjTWD.mjs +11 -0
  179. package/dist/mailCategoryService-DexSxwen.js +1 -0
  180. package/dist/mailCategoryService-DrZXrEp2.js +1 -0
  181. package/dist/mailCategoryService-DyLMoDxP.mjs +11 -0
  182. package/dist/mailCategoryService-LumZqQLL.mjs +11 -0
  183. package/dist/mailCategoryService-MyMGdKSl.mjs +11 -0
  184. package/dist/mailCategoryService-Pl31B1JT.js +1 -0
  185. package/dist/mailCategoryService-lvLdr9b4.js +1 -0
  186. package/dist/mario-core.css +1 -1
  187. package/package.json +1 -1
@@ -0,0 +1,3969 @@
1
+ import { jsx as vt, jsxs as Jt } from "react/jsx-runtime";
2
+ import { Input as Mn, Row as _i, Col as Bn, Table as bi, UncontrolledTooltip as mi, Button as wi } from "reactstrap";
3
+ import { G as Si, X as Ci, i as bn, B as Ti, b as Dn, al as Ai, c as vn, J as Hn, a9 as Pi, P as Ei, Q as Oi, am as ki } from "./index-B3Kqv7dj.mjs";
4
+ import { memo as Li, useState as zn, useCallback as yn, useEffect as qn } from "react";
5
+ import { useDispatch as Ni, useSelector as Pe } from "react-redux";
6
+ import { useParams as Ri } from "react-router-dom";
7
+ import { useTranslation as Ii } from "react-i18next";
8
+ function ji(yt) {
9
+ return Si({ attr: { viewBox: "0 0 256 256", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M103.77,185.94C103.38,187.49,93.63,224,40,224a8,8,0,0,1-8-8c0-53.63,36.51-63.38,38.06-63.77a8,8,0,0,1,3.88,15.53c-.9.25-22.42,6.54-25.56,39.86C81.7,204.48,88,183,88.26,182a8,8,0,0,1,15.51,4Zm93-67.4L192,123.31v58.33A15.91,15.91,0,0,1,187.32,193L153,227.3A15.91,15.91,0,0,1,141.7,232a16.11,16.11,0,0,1-5.1-.83,15.94,15.94,0,0,1-10.78-12.92l-5.37-38.49L76.24,135.55l-38.47-5.37A16,16,0,0,1,28.7,103L63,68.68A15.91,15.91,0,0,1,74.36,64h58.33l4.77-4.77c26.68-26.67,58.83-27.82,71.41-27.07a16,16,0,0,1,15,15C224.6,59.71,223.45,91.86,196.78,118.54ZM40,114.34l37.15,5.18L116.69,80H74.36ZM91.32,128,128,164.68l57.45-57.45a76.46,76.46,0,0,0,22.42-59.16,76.65,76.65,0,0,0-59.11,22.47ZM176,139.31l-39.53,39.53L141.67,216,176,181.64Z" } }] })(yt);
10
+ }
11
+ const Ui = [
12
+ { value: !0, label: "Read" },
13
+ { value: !1, label: "Unread" }
14
+ ], Mi = ({ value: yt, onChange: Yt }) => /* @__PURE__ */ vt(
15
+ Ci,
16
+ {
17
+ defaultValue: yt,
18
+ options: Ui,
19
+ onChange: Yt,
20
+ styles: {
21
+ menu: (nt) => ({ ...nt, zIndex: 10 }),
22
+ control: (nt, dt) => ({
23
+ ...nt,
24
+ borderRadius: "24px",
25
+ borderColor: (dt.isFocused, "#e5e7eb"),
26
+ boxShadow: "none",
27
+ minHeight: "42px",
28
+ "&:hover": {
29
+ borderColor: "#e5e7eb"
30
+ }
31
+ }),
32
+ valueContainer: (nt) => ({
33
+ ...nt,
34
+ padding: "0 16px"
35
+ }),
36
+ indicatorSeparator: () => ({
37
+ display: "none"
38
+ }),
39
+ dropdownIndicator: (nt) => ({
40
+ ...nt,
41
+ padding: "0 12px 0 0",
42
+ color: "#9ca3af"
43
+ })
44
+ }
45
+ }
46
+ ), Bi = Li(Mi);
47
+ function Di(yt) {
48
+ return yt && yt.__esModule && Object.prototype.hasOwnProperty.call(yt, "default") ? yt.default : yt;
49
+ }
50
+ var gn = { exports: {} };
51
+ var Fn;
52
+ function Hi() {
53
+ return Fn || (Fn = 1, (function(yt, Yt) {
54
+ (function(nt, dt) {
55
+ yt.exports = dt();
56
+ })(window, function() {
57
+ return (
58
+ /******/
59
+ (function(Pt) {
60
+ var nt = {};
61
+ function dt(S) {
62
+ if (nt[S])
63
+ return nt[S].exports;
64
+ var y = nt[S] = {
65
+ /******/
66
+ i: S,
67
+ /******/
68
+ l: !1,
69
+ /******/
70
+ exports: {}
71
+ /******/
72
+ };
73
+ return Pt[S].call(y.exports, y, y.exports, dt), y.l = !0, y.exports;
74
+ }
75
+ return dt.m = Pt, dt.c = nt, dt.d = function(S, y, At) {
76
+ dt.o(S, y) || Object.defineProperty(S, y, { enumerable: !0, get: At });
77
+ }, dt.r = function(S) {
78
+ typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(S, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(S, "__esModule", { value: !0 });
79
+ }, dt.t = function(S, y) {
80
+ if (y & 1 && (S = dt(S)), y & 8 || y & 4 && typeof S == "object" && S && S.__esModule) return S;
81
+ var At = /* @__PURE__ */ Object.create(null);
82
+ if (dt.r(At), Object.defineProperty(At, "default", { enumerable: !0, value: S }), y & 2 && typeof S != "string") for (var it in S) dt.d(At, it, (function(Dt) {
83
+ return S[Dt];
84
+ }).bind(null, it));
85
+ return At;
86
+ }, dt.n = function(S) {
87
+ var y = S && S.__esModule ? (
88
+ /******/
89
+ function() {
90
+ return S.default;
91
+ }
92
+ ) : (
93
+ /******/
94
+ function() {
95
+ return S;
96
+ }
97
+ );
98
+ return dt.d(y, "a", y), y;
99
+ }, dt.o = function(S, y) {
100
+ return Object.prototype.hasOwnProperty.call(S, y);
101
+ }, dt.p = "", dt(dt.s = 3);
102
+ })([
103
+ /* 0 */
104
+ /***/
105
+ (function(Pt, nt, dt) {
106
+ var S = this && this.__extends || /* @__PURE__ */ (function() {
107
+ var H = function(T, P) {
108
+ return H = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(Z, D) {
109
+ Z.__proto__ = D;
110
+ } || function(Z, D) {
111
+ for (var Ct in D) D.hasOwnProperty(Ct) && (Z[Ct] = D[Ct]);
112
+ }, H(T, P);
113
+ };
114
+ return function(T, P) {
115
+ H(T, P);
116
+ function Z() {
117
+ this.constructor = T;
118
+ }
119
+ T.prototype = P === null ? Object.create(P) : (Z.prototype = P.prototype, new Z());
120
+ };
121
+ })();
122
+ Object.defineProperty(nt, "__esModule", { value: !0 });
123
+ var y = 256, At = (
124
+ /** @class */
125
+ (function() {
126
+ function H(T) {
127
+ T === void 0 && (T = "="), this._paddingCharacter = T;
128
+ }
129
+ return H.prototype.encodedLength = function(T) {
130
+ return this._paddingCharacter ? (T + 2) / 3 * 4 | 0 : (T * 8 + 5) / 6 | 0;
131
+ }, H.prototype.encode = function(T) {
132
+ for (var P = "", Z = 0; Z < T.length - 2; Z += 3) {
133
+ var D = T[Z] << 16 | T[Z + 1] << 8 | T[Z + 2];
134
+ P += this._encodeByte(D >>> 18 & 63), P += this._encodeByte(D >>> 12 & 63), P += this._encodeByte(D >>> 6 & 63), P += this._encodeByte(D >>> 0 & 63);
135
+ }
136
+ var Ct = T.length - Z;
137
+ if (Ct > 0) {
138
+ var D = T[Z] << 16 | (Ct === 2 ? T[Z + 1] << 8 : 0);
139
+ P += this._encodeByte(D >>> 18 & 63), P += this._encodeByte(D >>> 12 & 63), Ct === 2 ? P += this._encodeByte(D >>> 6 & 63) : P += this._paddingCharacter || "", P += this._paddingCharacter || "";
140
+ }
141
+ return P;
142
+ }, H.prototype.maxDecodedLength = function(T) {
143
+ return this._paddingCharacter ? T / 4 * 3 | 0 : (T * 6 + 7) / 8 | 0;
144
+ }, H.prototype.decodedLength = function(T) {
145
+ return this.maxDecodedLength(T.length - this._getPaddingLength(T));
146
+ }, H.prototype.decode = function(T) {
147
+ if (T.length === 0)
148
+ return new Uint8Array(0);
149
+ for (var P = this._getPaddingLength(T), Z = T.length - P, D = new Uint8Array(this.maxDecodedLength(Z)), Ct = 0, at = 0, qt = 0, Xt = 0, Ht = 0, Mt = 0, jt = 0; at < Z - 4; at += 4)
150
+ Xt = this._decodeChar(T.charCodeAt(at + 0)), Ht = this._decodeChar(T.charCodeAt(at + 1)), Mt = this._decodeChar(T.charCodeAt(at + 2)), jt = this._decodeChar(T.charCodeAt(at + 3)), D[Ct++] = Xt << 2 | Ht >>> 4, D[Ct++] = Ht << 4 | Mt >>> 2, D[Ct++] = Mt << 6 | jt, qt |= Xt & y, qt |= Ht & y, qt |= Mt & y, qt |= jt & y;
151
+ if (at < Z - 1 && (Xt = this._decodeChar(T.charCodeAt(at)), Ht = this._decodeChar(T.charCodeAt(at + 1)), D[Ct++] = Xt << 2 | Ht >>> 4, qt |= Xt & y, qt |= Ht & y), at < Z - 2 && (Mt = this._decodeChar(T.charCodeAt(at + 2)), D[Ct++] = Ht << 4 | Mt >>> 2, qt |= Mt & y), at < Z - 3 && (jt = this._decodeChar(T.charCodeAt(at + 3)), D[Ct++] = Mt << 6 | jt, qt |= jt & y), qt !== 0)
152
+ throw new Error("Base64Coder: incorrect characters for decoding");
153
+ return D;
154
+ }, H.prototype._encodeByte = function(T) {
155
+ var P = T;
156
+ return P += 65, P += 25 - T >>> 8 & 6, P += 51 - T >>> 8 & -75, P += 61 - T >>> 8 & -15, P += 62 - T >>> 8 & 3, String.fromCharCode(P);
157
+ }, H.prototype._decodeChar = function(T) {
158
+ var P = y;
159
+ return P += (42 - T & T - 44) >>> 8 & -y + T - 43 + 62, P += (46 - T & T - 48) >>> 8 & -y + T - 47 + 63, P += (47 - T & T - 58) >>> 8 & -y + T - 48 + 52, P += (64 - T & T - 91) >>> 8 & -y + T - 65 + 0, P += (96 - T & T - 123) >>> 8 & -y + T - 97 + 26, P;
160
+ }, H.prototype._getPaddingLength = function(T) {
161
+ var P = 0;
162
+ if (this._paddingCharacter) {
163
+ for (var Z = T.length - 1; Z >= 0 && T[Z] === this._paddingCharacter; Z--)
164
+ P++;
165
+ if (T.length < 4 || P > 2)
166
+ throw new Error("Base64Coder: incorrect padding");
167
+ }
168
+ return P;
169
+ }, H;
170
+ })()
171
+ );
172
+ nt.Coder = At;
173
+ var it = new At();
174
+ function Dt(H) {
175
+ return it.encode(H);
176
+ }
177
+ nt.encode = Dt;
178
+ function I(H) {
179
+ return it.decode(H);
180
+ }
181
+ nt.decode = I;
182
+ var ct = (
183
+ /** @class */
184
+ (function(H) {
185
+ S(T, H);
186
+ function T() {
187
+ return H !== null && H.apply(this, arguments) || this;
188
+ }
189
+ return T.prototype._encodeByte = function(P) {
190
+ var Z = P;
191
+ return Z += 65, Z += 25 - P >>> 8 & 6, Z += 51 - P >>> 8 & -75, Z += 61 - P >>> 8 & -13, Z += 62 - P >>> 8 & 49, String.fromCharCode(Z);
192
+ }, T.prototype._decodeChar = function(P) {
193
+ var Z = y;
194
+ return Z += (44 - P & P - 46) >>> 8 & -y + P - 45 + 62, Z += (94 - P & P - 96) >>> 8 & -y + P - 95 + 63, Z += (47 - P & P - 58) >>> 8 & -y + P - 48 + 52, Z += (64 - P & P - 91) >>> 8 & -y + P - 65 + 0, Z += (96 - P & P - 123) >>> 8 & -y + P - 97 + 26, Z;
195
+ }, T;
196
+ })(At)
197
+ );
198
+ nt.URLSafeCoder = ct;
199
+ var Q = new ct();
200
+ function $(H) {
201
+ return Q.encode(H);
202
+ }
203
+ nt.encodeURLSafe = $;
204
+ function bt(H) {
205
+ return Q.decode(H);
206
+ }
207
+ nt.decodeURLSafe = bt, nt.encodedLength = function(H) {
208
+ return it.encodedLength(H);
209
+ }, nt.maxDecodedLength = function(H) {
210
+ return it.maxDecodedLength(H);
211
+ }, nt.decodedLength = function(H) {
212
+ return it.decodedLength(H);
213
+ };
214
+ }),
215
+ /* 1 */
216
+ /***/
217
+ (function(Pt, nt, dt) {
218
+ Object.defineProperty(nt, "__esModule", { value: !0 });
219
+ var S = "utf8: invalid string", y = "utf8: invalid source encoding";
220
+ function At(I) {
221
+ for (var ct = new Uint8Array(it(I)), Q = 0, $ = 0; $ < I.length; $++) {
222
+ var bt = I.charCodeAt($);
223
+ bt < 128 ? ct[Q++] = bt : bt < 2048 ? (ct[Q++] = 192 | bt >> 6, ct[Q++] = 128 | bt & 63) : bt < 55296 ? (ct[Q++] = 224 | bt >> 12, ct[Q++] = 128 | bt >> 6 & 63, ct[Q++] = 128 | bt & 63) : ($++, bt = (bt & 1023) << 10, bt |= I.charCodeAt($) & 1023, bt += 65536, ct[Q++] = 240 | bt >> 18, ct[Q++] = 128 | bt >> 12 & 63, ct[Q++] = 128 | bt >> 6 & 63, ct[Q++] = 128 | bt & 63);
224
+ }
225
+ return ct;
226
+ }
227
+ nt.encode = At;
228
+ function it(I) {
229
+ for (var ct = 0, Q = 0; Q < I.length; Q++) {
230
+ var $ = I.charCodeAt(Q);
231
+ if ($ < 128)
232
+ ct += 1;
233
+ else if ($ < 2048)
234
+ ct += 2;
235
+ else if ($ < 55296)
236
+ ct += 3;
237
+ else if ($ <= 57343) {
238
+ if (Q >= I.length - 1)
239
+ throw new Error(S);
240
+ Q++, ct += 4;
241
+ } else
242
+ throw new Error(S);
243
+ }
244
+ return ct;
245
+ }
246
+ nt.encodedLength = it;
247
+ function Dt(I) {
248
+ for (var ct = [], Q = 0; Q < I.length; Q++) {
249
+ var $ = I[Q];
250
+ if ($ & 128) {
251
+ var bt = void 0;
252
+ if ($ < 224) {
253
+ if (Q >= I.length)
254
+ throw new Error(y);
255
+ var H = I[++Q];
256
+ if ((H & 192) !== 128)
257
+ throw new Error(y);
258
+ $ = ($ & 31) << 6 | H & 63, bt = 128;
259
+ } else if ($ < 240) {
260
+ if (Q >= I.length - 1)
261
+ throw new Error(y);
262
+ var H = I[++Q], T = I[++Q];
263
+ if ((H & 192) !== 128 || (T & 192) !== 128)
264
+ throw new Error(y);
265
+ $ = ($ & 15) << 12 | (H & 63) << 6 | T & 63, bt = 2048;
266
+ } else if ($ < 248) {
267
+ if (Q >= I.length - 2)
268
+ throw new Error(y);
269
+ var H = I[++Q], T = I[++Q], P = I[++Q];
270
+ if ((H & 192) !== 128 || (T & 192) !== 128 || (P & 192) !== 128)
271
+ throw new Error(y);
272
+ $ = ($ & 15) << 18 | (H & 63) << 12 | (T & 63) << 6 | P & 63, bt = 65536;
273
+ } else
274
+ throw new Error(y);
275
+ if ($ < bt || $ >= 55296 && $ <= 57343)
276
+ throw new Error(y);
277
+ if ($ >= 65536) {
278
+ if ($ > 1114111)
279
+ throw new Error(y);
280
+ $ -= 65536, ct.push(String.fromCharCode(55296 | $ >> 10)), $ = 56320 | $ & 1023;
281
+ }
282
+ }
283
+ ct.push(String.fromCharCode($));
284
+ }
285
+ return ct.join("");
286
+ }
287
+ nt.decode = Dt;
288
+ }),
289
+ /* 2 */
290
+ /***/
291
+ (function(Pt, nt, dt) {
292
+ (function(S) {
293
+ var y = function(o) {
294
+ var f, a = new Float64Array(16);
295
+ if (o) for (f = 0; f < o.length; f++) a[f] = o[f];
296
+ return a;
297
+ }, At = function() {
298
+ throw new Error("no PRNG");
299
+ }, it = new Uint8Array(16), Dt = new Uint8Array(32);
300
+ Dt[0] = 9;
301
+ var I = y(), ct = y([1]), Q = y([56129, 1]), $ = y([30883, 4953, 19914, 30187, 55467, 16705, 2637, 112, 59544, 30585, 16505, 36039, 65139, 11119, 27886, 20995]), bt = y([61785, 9906, 39828, 60374, 45398, 33411, 5274, 224, 53552, 61171, 33010, 6542, 64743, 22239, 55772, 9222]), H = y([54554, 36645, 11616, 51542, 42930, 38181, 51040, 26924, 56412, 64982, 57905, 49316, 21502, 52590, 14035, 8553]), T = y([26200, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214]), P = y([41136, 18958, 6951, 50414, 58488, 44335, 6150, 12099, 55207, 15867, 153, 11085, 57099, 20417, 9344, 11139]);
302
+ function Z(o, f, a, r) {
303
+ o[f] = a >> 24 & 255, o[f + 1] = a >> 16 & 255, o[f + 2] = a >> 8 & 255, o[f + 3] = a & 255, o[f + 4] = r >> 24 & 255, o[f + 5] = r >> 16 & 255, o[f + 6] = r >> 8 & 255, o[f + 7] = r & 255;
304
+ }
305
+ function D(o, f, a, r, c) {
306
+ var l, d = 0;
307
+ for (l = 0; l < c; l++) d |= o[f + l] ^ a[r + l];
308
+ return (1 & d - 1 >>> 8) - 1;
309
+ }
310
+ function Ct(o, f, a, r) {
311
+ return D(o, f, a, r, 16);
312
+ }
313
+ function at(o, f, a, r) {
314
+ return D(o, f, a, r, 32);
315
+ }
316
+ function qt(o, f, a, r) {
317
+ for (var c = r[0] & 255 | (r[1] & 255) << 8 | (r[2] & 255) << 16 | (r[3] & 255) << 24, l = a[0] & 255 | (a[1] & 255) << 8 | (a[2] & 255) << 16 | (a[3] & 255) << 24, d = a[4] & 255 | (a[5] & 255) << 8 | (a[6] & 255) << 16 | (a[7] & 255) << 24, _ = a[8] & 255 | (a[9] & 255) << 8 | (a[10] & 255) << 16 | (a[11] & 255) << 24, C = a[12] & 255 | (a[13] & 255) << 8 | (a[14] & 255) << 16 | (a[15] & 255) << 24, M = r[4] & 255 | (r[5] & 255) << 8 | (r[6] & 255) << 16 | (r[7] & 255) << 24, O = f[0] & 255 | (f[1] & 255) << 8 | (f[2] & 255) << 16 | (f[3] & 255) << 24, gt = f[4] & 255 | (f[5] & 255) << 8 | (f[6] & 255) << 16 | (f[7] & 255) << 24, N = f[8] & 255 | (f[9] & 255) << 8 | (f[10] & 255) << 16 | (f[11] & 255) << 24, J = f[12] & 255 | (f[13] & 255) << 8 | (f[14] & 255) << 16 | (f[15] & 255) << 24, X = r[8] & 255 | (r[9] & 255) << 8 | (r[10] & 255) << 16 | (r[11] & 255) << 24, V = a[16] & 255 | (a[17] & 255) << 8 | (a[18] & 255) << 16 | (a[19] & 255) << 24, F = a[20] & 255 | (a[21] & 255) << 8 | (a[22] & 255) << 16 | (a[23] & 255) << 24, W = a[24] & 255 | (a[25] & 255) << 8 | (a[26] & 255) << 16 | (a[27] & 255) << 24, K = a[28] & 255 | (a[29] & 255) << 8 | (a[30] & 255) << 16 | (a[31] & 255) << 24, G = r[12] & 255 | (r[13] & 255) << 8 | (r[14] & 255) << 16 | (r[15] & 255) << 24, R = c, B = l, k = d, j = _, U = C, E = M, p = O, x = gt, m = N, g = J, b = X, w = V, z = F, tt = W, rt = K, et = G, h, ft = 0; ft < 20; ft += 2)
318
+ h = R + z | 0, U ^= h << 7 | h >>> 25, h = U + R | 0, m ^= h << 9 | h >>> 23, h = m + U | 0, z ^= h << 13 | h >>> 19, h = z + m | 0, R ^= h << 18 | h >>> 14, h = E + B | 0, g ^= h << 7 | h >>> 25, h = g + E | 0, tt ^= h << 9 | h >>> 23, h = tt + g | 0, B ^= h << 13 | h >>> 19, h = B + tt | 0, E ^= h << 18 | h >>> 14, h = b + p | 0, rt ^= h << 7 | h >>> 25, h = rt + b | 0, k ^= h << 9 | h >>> 23, h = k + rt | 0, p ^= h << 13 | h >>> 19, h = p + k | 0, b ^= h << 18 | h >>> 14, h = et + w | 0, j ^= h << 7 | h >>> 25, h = j + et | 0, x ^= h << 9 | h >>> 23, h = x + j | 0, w ^= h << 13 | h >>> 19, h = w + x | 0, et ^= h << 18 | h >>> 14, h = R + j | 0, B ^= h << 7 | h >>> 25, h = B + R | 0, k ^= h << 9 | h >>> 23, h = k + B | 0, j ^= h << 13 | h >>> 19, h = j + k | 0, R ^= h << 18 | h >>> 14, h = E + U | 0, p ^= h << 7 | h >>> 25, h = p + E | 0, x ^= h << 9 | h >>> 23, h = x + p | 0, U ^= h << 13 | h >>> 19, h = U + x | 0, E ^= h << 18 | h >>> 14, h = b + g | 0, w ^= h << 7 | h >>> 25, h = w + b | 0, m ^= h << 9 | h >>> 23, h = m + w | 0, g ^= h << 13 | h >>> 19, h = g + m | 0, b ^= h << 18 | h >>> 14, h = et + rt | 0, z ^= h << 7 | h >>> 25, h = z + et | 0, tt ^= h << 9 | h >>> 23, h = tt + z | 0, rt ^= h << 13 | h >>> 19, h = rt + tt | 0, et ^= h << 18 | h >>> 14;
319
+ R = R + c | 0, B = B + l | 0, k = k + d | 0, j = j + _ | 0, U = U + C | 0, E = E + M | 0, p = p + O | 0, x = x + gt | 0, m = m + N | 0, g = g + J | 0, b = b + X | 0, w = w + V | 0, z = z + F | 0, tt = tt + W | 0, rt = rt + K | 0, et = et + G | 0, o[0] = R >>> 0 & 255, o[1] = R >>> 8 & 255, o[2] = R >>> 16 & 255, o[3] = R >>> 24 & 255, o[4] = B >>> 0 & 255, o[5] = B >>> 8 & 255, o[6] = B >>> 16 & 255, o[7] = B >>> 24 & 255, o[8] = k >>> 0 & 255, o[9] = k >>> 8 & 255, o[10] = k >>> 16 & 255, o[11] = k >>> 24 & 255, o[12] = j >>> 0 & 255, o[13] = j >>> 8 & 255, o[14] = j >>> 16 & 255, o[15] = j >>> 24 & 255, o[16] = U >>> 0 & 255, o[17] = U >>> 8 & 255, o[18] = U >>> 16 & 255, o[19] = U >>> 24 & 255, o[20] = E >>> 0 & 255, o[21] = E >>> 8 & 255, o[22] = E >>> 16 & 255, o[23] = E >>> 24 & 255, o[24] = p >>> 0 & 255, o[25] = p >>> 8 & 255, o[26] = p >>> 16 & 255, o[27] = p >>> 24 & 255, o[28] = x >>> 0 & 255, o[29] = x >>> 8 & 255, o[30] = x >>> 16 & 255, o[31] = x >>> 24 & 255, o[32] = m >>> 0 & 255, o[33] = m >>> 8 & 255, o[34] = m >>> 16 & 255, o[35] = m >>> 24 & 255, o[36] = g >>> 0 & 255, o[37] = g >>> 8 & 255, o[38] = g >>> 16 & 255, o[39] = g >>> 24 & 255, o[40] = b >>> 0 & 255, o[41] = b >>> 8 & 255, o[42] = b >>> 16 & 255, o[43] = b >>> 24 & 255, o[44] = w >>> 0 & 255, o[45] = w >>> 8 & 255, o[46] = w >>> 16 & 255, o[47] = w >>> 24 & 255, o[48] = z >>> 0 & 255, o[49] = z >>> 8 & 255, o[50] = z >>> 16 & 255, o[51] = z >>> 24 & 255, o[52] = tt >>> 0 & 255, o[53] = tt >>> 8 & 255, o[54] = tt >>> 16 & 255, o[55] = tt >>> 24 & 255, o[56] = rt >>> 0 & 255, o[57] = rt >>> 8 & 255, o[58] = rt >>> 16 & 255, o[59] = rt >>> 24 & 255, o[60] = et >>> 0 & 255, o[61] = et >>> 8 & 255, o[62] = et >>> 16 & 255, o[63] = et >>> 24 & 255;
320
+ }
321
+ function Xt(o, f, a, r) {
322
+ for (var c = r[0] & 255 | (r[1] & 255) << 8 | (r[2] & 255) << 16 | (r[3] & 255) << 24, l = a[0] & 255 | (a[1] & 255) << 8 | (a[2] & 255) << 16 | (a[3] & 255) << 24, d = a[4] & 255 | (a[5] & 255) << 8 | (a[6] & 255) << 16 | (a[7] & 255) << 24, _ = a[8] & 255 | (a[9] & 255) << 8 | (a[10] & 255) << 16 | (a[11] & 255) << 24, C = a[12] & 255 | (a[13] & 255) << 8 | (a[14] & 255) << 16 | (a[15] & 255) << 24, M = r[4] & 255 | (r[5] & 255) << 8 | (r[6] & 255) << 16 | (r[7] & 255) << 24, O = f[0] & 255 | (f[1] & 255) << 8 | (f[2] & 255) << 16 | (f[3] & 255) << 24, gt = f[4] & 255 | (f[5] & 255) << 8 | (f[6] & 255) << 16 | (f[7] & 255) << 24, N = f[8] & 255 | (f[9] & 255) << 8 | (f[10] & 255) << 16 | (f[11] & 255) << 24, J = f[12] & 255 | (f[13] & 255) << 8 | (f[14] & 255) << 16 | (f[15] & 255) << 24, X = r[8] & 255 | (r[9] & 255) << 8 | (r[10] & 255) << 16 | (r[11] & 255) << 24, V = a[16] & 255 | (a[17] & 255) << 8 | (a[18] & 255) << 16 | (a[19] & 255) << 24, F = a[20] & 255 | (a[21] & 255) << 8 | (a[22] & 255) << 16 | (a[23] & 255) << 24, W = a[24] & 255 | (a[25] & 255) << 8 | (a[26] & 255) << 16 | (a[27] & 255) << 24, K = a[28] & 255 | (a[29] & 255) << 8 | (a[30] & 255) << 16 | (a[31] & 255) << 24, G = r[12] & 255 | (r[13] & 255) << 8 | (r[14] & 255) << 16 | (r[15] & 255) << 24, R = c, B = l, k = d, j = _, U = C, E = M, p = O, x = gt, m = N, g = J, b = X, w = V, z = F, tt = W, rt = K, et = G, h, ft = 0; ft < 20; ft += 2)
323
+ h = R + z | 0, U ^= h << 7 | h >>> 25, h = U + R | 0, m ^= h << 9 | h >>> 23, h = m + U | 0, z ^= h << 13 | h >>> 19, h = z + m | 0, R ^= h << 18 | h >>> 14, h = E + B | 0, g ^= h << 7 | h >>> 25, h = g + E | 0, tt ^= h << 9 | h >>> 23, h = tt + g | 0, B ^= h << 13 | h >>> 19, h = B + tt | 0, E ^= h << 18 | h >>> 14, h = b + p | 0, rt ^= h << 7 | h >>> 25, h = rt + b | 0, k ^= h << 9 | h >>> 23, h = k + rt | 0, p ^= h << 13 | h >>> 19, h = p + k | 0, b ^= h << 18 | h >>> 14, h = et + w | 0, j ^= h << 7 | h >>> 25, h = j + et | 0, x ^= h << 9 | h >>> 23, h = x + j | 0, w ^= h << 13 | h >>> 19, h = w + x | 0, et ^= h << 18 | h >>> 14, h = R + j | 0, B ^= h << 7 | h >>> 25, h = B + R | 0, k ^= h << 9 | h >>> 23, h = k + B | 0, j ^= h << 13 | h >>> 19, h = j + k | 0, R ^= h << 18 | h >>> 14, h = E + U | 0, p ^= h << 7 | h >>> 25, h = p + E | 0, x ^= h << 9 | h >>> 23, h = x + p | 0, U ^= h << 13 | h >>> 19, h = U + x | 0, E ^= h << 18 | h >>> 14, h = b + g | 0, w ^= h << 7 | h >>> 25, h = w + b | 0, m ^= h << 9 | h >>> 23, h = m + w | 0, g ^= h << 13 | h >>> 19, h = g + m | 0, b ^= h << 18 | h >>> 14, h = et + rt | 0, z ^= h << 7 | h >>> 25, h = z + et | 0, tt ^= h << 9 | h >>> 23, h = tt + z | 0, rt ^= h << 13 | h >>> 19, h = rt + tt | 0, et ^= h << 18 | h >>> 14;
324
+ o[0] = R >>> 0 & 255, o[1] = R >>> 8 & 255, o[2] = R >>> 16 & 255, o[3] = R >>> 24 & 255, o[4] = E >>> 0 & 255, o[5] = E >>> 8 & 255, o[6] = E >>> 16 & 255, o[7] = E >>> 24 & 255, o[8] = b >>> 0 & 255, o[9] = b >>> 8 & 255, o[10] = b >>> 16 & 255, o[11] = b >>> 24 & 255, o[12] = et >>> 0 & 255, o[13] = et >>> 8 & 255, o[14] = et >>> 16 & 255, o[15] = et >>> 24 & 255, o[16] = p >>> 0 & 255, o[17] = p >>> 8 & 255, o[18] = p >>> 16 & 255, o[19] = p >>> 24 & 255, o[20] = x >>> 0 & 255, o[21] = x >>> 8 & 255, o[22] = x >>> 16 & 255, o[23] = x >>> 24 & 255, o[24] = m >>> 0 & 255, o[25] = m >>> 8 & 255, o[26] = m >>> 16 & 255, o[27] = m >>> 24 & 255, o[28] = g >>> 0 & 255, o[29] = g >>> 8 & 255, o[30] = g >>> 16 & 255, o[31] = g >>> 24 & 255;
325
+ }
326
+ function Ht(o, f, a, r) {
327
+ qt(o, f, a, r);
328
+ }
329
+ function Mt(o, f, a, r) {
330
+ Xt(o, f, a, r);
331
+ }
332
+ var jt = new Uint8Array([101, 120, 112, 97, 110, 100, 32, 51, 50, 45, 98, 121, 116, 101, 32, 107]);
333
+ function $e(o, f, a, r, c, l, d) {
334
+ var _ = new Uint8Array(16), C = new Uint8Array(64), M, O;
335
+ for (O = 0; O < 16; O++) _[O] = 0;
336
+ for (O = 0; O < 8; O++) _[O] = l[O];
337
+ for (; c >= 64; ) {
338
+ for (Ht(C, _, d, jt), O = 0; O < 64; O++) o[f + O] = a[r + O] ^ C[O];
339
+ for (M = 1, O = 8; O < 16; O++)
340
+ M = M + (_[O] & 255) | 0, _[O] = M & 255, M >>>= 8;
341
+ c -= 64, f += 64, r += 64;
342
+ }
343
+ if (c > 0)
344
+ for (Ht(C, _, d, jt), O = 0; O < c; O++) o[f + O] = a[r + O] ^ C[O];
345
+ return 0;
346
+ }
347
+ function Je(o, f, a, r, c) {
348
+ var l = new Uint8Array(16), d = new Uint8Array(64), _, C;
349
+ for (C = 0; C < 16; C++) l[C] = 0;
350
+ for (C = 0; C < 8; C++) l[C] = r[C];
351
+ for (; a >= 64; ) {
352
+ for (Ht(d, l, c, jt), C = 0; C < 64; C++) o[f + C] = d[C];
353
+ for (_ = 1, C = 8; C < 16; C++)
354
+ _ = _ + (l[C] & 255) | 0, l[C] = _ & 255, _ >>>= 8;
355
+ a -= 64, f += 64;
356
+ }
357
+ if (a > 0)
358
+ for (Ht(d, l, c, jt), C = 0; C < a; C++) o[f + C] = d[C];
359
+ return 0;
360
+ }
361
+ function Xe(o, f, a, r, c) {
362
+ var l = new Uint8Array(32);
363
+ Mt(l, r, c, jt);
364
+ for (var d = new Uint8Array(8), _ = 0; _ < 8; _++) d[_] = r[_ + 16];
365
+ return Je(o, f, a, d, l);
366
+ }
367
+ function ee(o, f, a, r, c, l, d) {
368
+ var _ = new Uint8Array(32);
369
+ Mt(_, l, d, jt);
370
+ for (var C = new Uint8Array(8), M = 0; M < 8; M++) C[M] = l[M + 16];
371
+ return $e(o, f, a, r, c, C, _);
372
+ }
373
+ var ne = function(o) {
374
+ 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;
375
+ var f, a, r, c, l, d, _, C;
376
+ f = o[0] & 255 | (o[1] & 255) << 8, this.r[0] = f & 8191, a = o[2] & 255 | (o[3] & 255) << 8, this.r[1] = (f >>> 13 | a << 3) & 8191, r = o[4] & 255 | (o[5] & 255) << 8, this.r[2] = (a >>> 10 | r << 6) & 7939, c = o[6] & 255 | (o[7] & 255) << 8, this.r[3] = (r >>> 7 | c << 9) & 8191, l = o[8] & 255 | (o[9] & 255) << 8, this.r[4] = (c >>> 4 | l << 12) & 255, this.r[5] = l >>> 1 & 8190, d = o[10] & 255 | (o[11] & 255) << 8, this.r[6] = (l >>> 14 | d << 2) & 8191, _ = o[12] & 255 | (o[13] & 255) << 8, this.r[7] = (d >>> 11 | _ << 5) & 8065, C = o[14] & 255 | (o[15] & 255) << 8, this.r[8] = (_ >>> 8 | C << 8) & 8191, this.r[9] = C >>> 5 & 127, this.pad[0] = o[16] & 255 | (o[17] & 255) << 8, this.pad[1] = o[18] & 255 | (o[19] & 255) << 8, this.pad[2] = o[20] & 255 | (o[21] & 255) << 8, this.pad[3] = o[22] & 255 | (o[23] & 255) << 8, this.pad[4] = o[24] & 255 | (o[25] & 255) << 8, this.pad[5] = o[26] & 255 | (o[27] & 255) << 8, this.pad[6] = o[28] & 255 | (o[29] & 255) << 8, this.pad[7] = o[30] & 255 | (o[31] & 255) << 8;
377
+ };
378
+ ne.prototype.blocks = function(o, f, a) {
379
+ for (var r = this.fin ? 0 : 2048, c, l, d, _, C, M, O, gt, N, J, X, V, F, W, K, G, R, B, k, j = this.h[0], U = this.h[1], E = this.h[2], p = this.h[3], x = this.h[4], m = this.h[5], g = this.h[6], b = this.h[7], w = this.h[8], z = this.h[9], tt = this.r[0], rt = this.r[1], et = this.r[2], h = this.r[3], ft = this.r[4], ht = this.r[5], _t = this.r[6], ot = this.r[7], pt = this.r[8], xt = this.r[9]; a >= 16; )
380
+ c = o[f + 0] & 255 | (o[f + 1] & 255) << 8, j += c & 8191, l = o[f + 2] & 255 | (o[f + 3] & 255) << 8, U += (c >>> 13 | l << 3) & 8191, d = o[f + 4] & 255 | (o[f + 5] & 255) << 8, E += (l >>> 10 | d << 6) & 8191, _ = o[f + 6] & 255 | (o[f + 7] & 255) << 8, p += (d >>> 7 | _ << 9) & 8191, C = o[f + 8] & 255 | (o[f + 9] & 255) << 8, x += (_ >>> 4 | C << 12) & 8191, m += C >>> 1 & 8191, M = o[f + 10] & 255 | (o[f + 11] & 255) << 8, g += (C >>> 14 | M << 2) & 8191, O = o[f + 12] & 255 | (o[f + 13] & 255) << 8, b += (M >>> 11 | O << 5) & 8191, gt = o[f + 14] & 255 | (o[f + 15] & 255) << 8, w += (O >>> 8 | gt << 8) & 8191, z += gt >>> 5 | r, N = 0, J = N, J += j * tt, J += U * (5 * xt), J += E * (5 * pt), J += p * (5 * ot), J += x * (5 * _t), N = J >>> 13, J &= 8191, J += m * (5 * ht), J += g * (5 * ft), J += b * (5 * h), J += w * (5 * et), J += z * (5 * rt), N += J >>> 13, J &= 8191, X = N, X += j * rt, X += U * tt, X += E * (5 * xt), X += p * (5 * pt), X += x * (5 * ot), N = X >>> 13, X &= 8191, X += m * (5 * _t), X += g * (5 * ht), X += b * (5 * ft), X += w * (5 * h), X += z * (5 * et), N += X >>> 13, X &= 8191, V = N, V += j * et, V += U * rt, V += E * tt, V += p * (5 * xt), V += x * (5 * pt), N = V >>> 13, V &= 8191, V += m * (5 * ot), V += g * (5 * _t), V += b * (5 * ht), V += w * (5 * ft), V += z * (5 * h), N += V >>> 13, V &= 8191, F = N, F += j * h, F += U * et, F += E * rt, F += p * tt, F += x * (5 * xt), N = F >>> 13, F &= 8191, F += m * (5 * pt), F += g * (5 * ot), F += b * (5 * _t), F += w * (5 * ht), F += z * (5 * ft), N += F >>> 13, F &= 8191, W = N, W += j * ft, W += U * h, W += E * et, W += p * rt, W += x * tt, N = W >>> 13, W &= 8191, W += m * (5 * xt), W += g * (5 * pt), W += b * (5 * ot), W += w * (5 * _t), W += z * (5 * ht), N += W >>> 13, W &= 8191, K = N, K += j * ht, K += U * ft, K += E * h, K += p * et, K += x * rt, N = K >>> 13, K &= 8191, K += m * tt, K += g * (5 * xt), K += b * (5 * pt), K += w * (5 * ot), K += z * (5 * _t), N += K >>> 13, K &= 8191, G = N, G += j * _t, G += U * ht, G += E * ft, G += p * h, G += x * et, N = G >>> 13, G &= 8191, G += m * rt, G += g * tt, G += b * (5 * xt), G += w * (5 * pt), G += z * (5 * ot), N += G >>> 13, G &= 8191, R = N, R += j * ot, R += U * _t, R += E * ht, R += p * ft, R += x * h, N = R >>> 13, R &= 8191, R += m * et, R += g * rt, R += b * tt, R += w * (5 * xt), R += z * (5 * pt), N += R >>> 13, R &= 8191, B = N, B += j * pt, B += U * ot, B += E * _t, B += p * ht, B += x * ft, N = B >>> 13, B &= 8191, B += m * h, B += g * et, B += b * rt, B += w * tt, B += z * (5 * xt), N += B >>> 13, B &= 8191, k = N, k += j * xt, k += U * pt, k += E * ot, k += p * _t, k += x * ht, N = k >>> 13, k &= 8191, k += m * ft, k += g * h, k += b * et, k += w * rt, k += z * tt, N += k >>> 13, k &= 8191, N = (N << 2) + N | 0, N = N + J | 0, J = N & 8191, N = N >>> 13, X += N, j = J, U = X, E = V, p = F, x = W, m = K, g = G, b = R, w = B, z = k, f += 16, a -= 16;
381
+ this.h[0] = j, this.h[1] = U, this.h[2] = E, this.h[3] = p, this.h[4] = x, this.h[5] = m, this.h[6] = g, this.h[7] = b, this.h[8] = w, this.h[9] = z;
382
+ }, ne.prototype.finish = function(o, f) {
383
+ var a = new Uint16Array(10), r, c, l, d;
384
+ if (this.leftover) {
385
+ for (d = this.leftover, this.buffer[d++] = 1; d < 16; d++) this.buffer[d] = 0;
386
+ this.fin = 1, this.blocks(this.buffer, 0, 16);
387
+ }
388
+ for (r = this.h[1] >>> 13, this.h[1] &= 8191, d = 2; d < 10; d++)
389
+ this.h[d] += r, r = this.h[d] >>> 13, this.h[d] &= 8191;
390
+ for (this.h[0] += r * 5, r = this.h[0] >>> 13, this.h[0] &= 8191, this.h[1] += r, r = this.h[1] >>> 13, this.h[1] &= 8191, this.h[2] += r, a[0] = this.h[0] + 5, r = a[0] >>> 13, a[0] &= 8191, d = 1; d < 10; d++)
391
+ a[d] = this.h[d] + r, r = a[d] >>> 13, a[d] &= 8191;
392
+ for (a[9] -= 8192, c = (r ^ 1) - 1, d = 0; d < 10; d++) a[d] &= c;
393
+ for (c = ~c, d = 0; d < 10; d++) this.h[d] = this.h[d] & c | a[d];
394
+ for (this.h[0] = (this.h[0] | this.h[1] << 13) & 65535, this.h[1] = (this.h[1] >>> 3 | this.h[2] << 10) & 65535, this.h[2] = (this.h[2] >>> 6 | this.h[3] << 7) & 65535, this.h[3] = (this.h[3] >>> 9 | this.h[4] << 4) & 65535, this.h[4] = (this.h[4] >>> 12 | this.h[5] << 1 | this.h[6] << 14) & 65535, this.h[5] = (this.h[6] >>> 2 | this.h[7] << 11) & 65535, this.h[6] = (this.h[7] >>> 5 | this.h[8] << 8) & 65535, this.h[7] = (this.h[8] >>> 8 | this.h[9] << 5) & 65535, l = this.h[0] + this.pad[0], this.h[0] = l & 65535, d = 1; d < 8; d++)
395
+ l = (this.h[d] + this.pad[d] | 0) + (l >>> 16) | 0, this.h[d] = l & 65535;
396
+ o[f + 0] = this.h[0] >>> 0 & 255, o[f + 1] = this.h[0] >>> 8 & 255, o[f + 2] = this.h[1] >>> 0 & 255, o[f + 3] = this.h[1] >>> 8 & 255, o[f + 4] = this.h[2] >>> 0 & 255, o[f + 5] = this.h[2] >>> 8 & 255, o[f + 6] = this.h[3] >>> 0 & 255, o[f + 7] = this.h[3] >>> 8 & 255, o[f + 8] = this.h[4] >>> 0 & 255, o[f + 9] = this.h[4] >>> 8 & 255, o[f + 10] = this.h[5] >>> 0 & 255, o[f + 11] = this.h[5] >>> 8 & 255, o[f + 12] = this.h[6] >>> 0 & 255, o[f + 13] = this.h[6] >>> 8 & 255, o[f + 14] = this.h[7] >>> 0 & 255, o[f + 15] = this.h[7] >>> 8 & 255;
397
+ }, ne.prototype.update = function(o, f, a) {
398
+ var r, c;
399
+ if (this.leftover) {
400
+ for (c = 16 - this.leftover, c > a && (c = a), r = 0; r < c; r++)
401
+ this.buffer[this.leftover + r] = o[f + r];
402
+ if (a -= c, f += c, this.leftover += c, this.leftover < 16)
403
+ return;
404
+ this.blocks(this.buffer, 0, 16), this.leftover = 0;
405
+ }
406
+ if (a >= 16 && (c = a - a % 16, this.blocks(o, f, c), f += c, a -= c), a) {
407
+ for (r = 0; r < a; r++)
408
+ this.buffer[this.leftover + r] = o[f + r];
409
+ this.leftover += a;
410
+ }
411
+ };
412
+ function Ee(o, f, a, r, c, l) {
413
+ var d = new ne(l);
414
+ return d.update(a, r, c), d.finish(o, f), 0;
415
+ }
416
+ function We(o, f, a, r, c, l) {
417
+ var d = new Uint8Array(16);
418
+ return Ee(d, 0, a, r, c, l), Ct(o, f, d, 0);
419
+ }
420
+ function Oe(o, f, a, r, c) {
421
+ var l;
422
+ if (a < 32) return -1;
423
+ for (ee(o, 0, f, 0, a, r, c), Ee(o, 16, o, 32, a - 32, o), l = 0; l < 16; l++) o[l] = 0;
424
+ return 0;
425
+ }
426
+ function ke(o, f, a, r, c) {
427
+ var l, d = new Uint8Array(32);
428
+ if (a < 32 || (Xe(d, 0, 32, r, c), We(f, 16, f, 32, a - 32, d) !== 0)) return -1;
429
+ for (ee(o, 0, f, 0, a, r, c), l = 0; l < 32; l++) o[l] = 0;
430
+ return 0;
431
+ }
432
+ function Wt(o, f) {
433
+ var a;
434
+ for (a = 0; a < 16; a++) o[a] = f[a] | 0;
435
+ }
436
+ function ge(o) {
437
+ var f, a, r = 1;
438
+ for (f = 0; f < 16; f++)
439
+ a = o[f] + r + 65535, r = Math.floor(a / 65536), o[f] = a - r * 65536;
440
+ o[0] += r - 1 + 37 * (r - 1);
441
+ }
442
+ function re(o, f, a) {
443
+ for (var r, c = ~(a - 1), l = 0; l < 16; l++)
444
+ r = c & (o[l] ^ f[l]), o[l] ^= r, f[l] ^= r;
445
+ }
446
+ function ae(o, f) {
447
+ var a, r, c, l = y(), d = y();
448
+ for (a = 0; a < 16; a++) d[a] = f[a];
449
+ for (ge(d), ge(d), ge(d), r = 0; r < 2; r++) {
450
+ for (l[0] = d[0] - 65517, a = 1; a < 15; a++)
451
+ l[a] = d[a] - 65535 - (l[a - 1] >> 16 & 1), l[a - 1] &= 65535;
452
+ l[15] = d[15] - 32767 - (l[14] >> 16 & 1), c = l[15] >> 16 & 1, l[14] &= 65535, re(d, l, 1 - c);
453
+ }
454
+ for (a = 0; a < 16; a++)
455
+ o[2 * a] = d[a] & 255, o[2 * a + 1] = d[a] >> 8;
456
+ }
457
+ function Ge(o, f) {
458
+ var a = new Uint8Array(32), r = new Uint8Array(32);
459
+ return ae(a, o), ae(r, f), at(a, 0, r, 0);
460
+ }
461
+ function Zt(o) {
462
+ var f = new Uint8Array(32);
463
+ return ae(f, o), f[0] & 1;
464
+ }
465
+ function Le(o, f) {
466
+ var a;
467
+ for (a = 0; a < 16; a++) o[a] = f[2 * a] + (f[2 * a + 1] << 8);
468
+ o[15] &= 32767;
469
+ }
470
+ function Ft(o, f, a) {
471
+ for (var r = 0; r < 16; r++) o[r] = f[r] + a[r];
472
+ }
473
+ function St(o, f, a) {
474
+ for (var r = 0; r < 16; r++) o[r] = f[r] - a[r];
475
+ }
476
+ function Y(o, f, a) {
477
+ var r, c, l = 0, d = 0, _ = 0, C = 0, M = 0, O = 0, gt = 0, N = 0, J = 0, X = 0, V = 0, F = 0, W = 0, K = 0, G = 0, R = 0, B = 0, k = 0, j = 0, U = 0, E = 0, p = 0, x = 0, m = 0, g = 0, b = 0, w = 0, z = 0, tt = 0, rt = 0, et = 0, h = a[0], ft = a[1], ht = a[2], _t = a[3], ot = a[4], pt = a[5], xt = a[6], Lt = a[7], mt = a[8], Et = a[9], Ot = a[10], kt = a[11], Nt = a[12], Tt = a[13], Ut = a[14], It = a[15];
478
+ r = f[0], l += r * h, d += r * ft, _ += r * ht, C += r * _t, M += r * ot, O += r * pt, gt += r * xt, N += r * Lt, J += r * mt, X += r * Et, V += r * Ot, F += r * kt, W += r * Nt, K += r * Tt, G += r * Ut, R += r * It, r = f[1], d += r * h, _ += r * ft, C += r * ht, M += r * _t, O += r * ot, gt += r * pt, N += r * xt, J += r * Lt, X += r * mt, V += r * Et, F += r * Ot, W += r * kt, K += r * Nt, G += r * Tt, R += r * Ut, B += r * It, r = f[2], _ += r * h, C += r * ft, M += r * ht, O += r * _t, gt += r * ot, N += r * pt, J += r * xt, X += r * Lt, V += r * mt, F += r * Et, W += r * Ot, K += r * kt, G += r * Nt, R += r * Tt, B += r * Ut, k += r * It, r = f[3], C += r * h, M += r * ft, O += r * ht, gt += r * _t, N += r * ot, J += r * pt, X += r * xt, V += r * Lt, F += r * mt, W += r * Et, K += r * Ot, G += r * kt, R += r * Nt, B += r * Tt, k += r * Ut, j += r * It, r = f[4], M += r * h, O += r * ft, gt += r * ht, N += r * _t, J += r * ot, X += r * pt, V += r * xt, F += r * Lt, W += r * mt, K += r * Et, G += r * Ot, R += r * kt, B += r * Nt, k += r * Tt, j += r * Ut, U += r * It, r = f[5], O += r * h, gt += r * ft, N += r * ht, J += r * _t, X += r * ot, V += r * pt, F += r * xt, W += r * Lt, K += r * mt, G += r * Et, R += r * Ot, B += r * kt, k += r * Nt, j += r * Tt, U += r * Ut, E += r * It, r = f[6], gt += r * h, N += r * ft, J += r * ht, X += r * _t, V += r * ot, F += r * pt, W += r * xt, K += r * Lt, G += r * mt, R += r * Et, B += r * Ot, k += r * kt, j += r * Nt, U += r * Tt, E += r * Ut, p += r * It, r = f[7], N += r * h, J += r * ft, X += r * ht, V += r * _t, F += r * ot, W += r * pt, K += r * xt, G += r * Lt, R += r * mt, B += r * Et, k += r * Ot, j += r * kt, U += r * Nt, E += r * Tt, p += r * Ut, x += r * It, r = f[8], J += r * h, X += r * ft, V += r * ht, F += r * _t, W += r * ot, K += r * pt, G += r * xt, R += r * Lt, B += r * mt, k += r * Et, j += r * Ot, U += r * kt, E += r * Nt, p += r * Tt, x += r * Ut, m += r * It, r = f[9], X += r * h, V += r * ft, F += r * ht, W += r * _t, K += r * ot, G += r * pt, R += r * xt, B += r * Lt, k += r * mt, j += r * Et, U += r * Ot, E += r * kt, p += r * Nt, x += r * Tt, m += r * Ut, g += r * It, r = f[10], V += r * h, F += r * ft, W += r * ht, K += r * _t, G += r * ot, R += r * pt, B += r * xt, k += r * Lt, j += r * mt, U += r * Et, E += r * Ot, p += r * kt, x += r * Nt, m += r * Tt, g += r * Ut, b += r * It, r = f[11], F += r * h, W += r * ft, K += r * ht, G += r * _t, R += r * ot, B += r * pt, k += r * xt, j += r * Lt, U += r * mt, E += r * Et, p += r * Ot, x += r * kt, m += r * Nt, g += r * Tt, b += r * Ut, w += r * It, r = f[12], W += r * h, K += r * ft, G += r * ht, R += r * _t, B += r * ot, k += r * pt, j += r * xt, U += r * Lt, E += r * mt, p += r * Et, x += r * Ot, m += r * kt, g += r * Nt, b += r * Tt, w += r * Ut, z += r * It, r = f[13], K += r * h, G += r * ft, R += r * ht, B += r * _t, k += r * ot, j += r * pt, U += r * xt, E += r * Lt, p += r * mt, x += r * Et, m += r * Ot, g += r * kt, b += r * Nt, w += r * Tt, z += r * Ut, tt += r * It, r = f[14], G += r * h, R += r * ft, B += r * ht, k += r * _t, j += r * ot, U += r * pt, E += r * xt, p += r * Lt, x += r * mt, m += r * Et, g += r * Ot, b += r * kt, w += r * Nt, z += r * Tt, tt += r * Ut, rt += r * It, r = f[15], R += r * h, B += r * ft, k += r * ht, j += r * _t, U += r * ot, E += r * pt, p += r * xt, x += r * Lt, m += r * mt, g += r * Et, b += r * Ot, w += r * kt, z += r * Nt, tt += r * Tt, rt += r * Ut, et += r * It, l += 38 * B, d += 38 * k, _ += 38 * j, C += 38 * U, M += 38 * E, O += 38 * p, gt += 38 * x, N += 38 * m, J += 38 * g, X += 38 * b, V += 38 * w, F += 38 * z, W += 38 * tt, K += 38 * rt, G += 38 * et, c = 1, r = l + c + 65535, c = Math.floor(r / 65536), l = r - c * 65536, r = d + c + 65535, c = Math.floor(r / 65536), d = r - c * 65536, r = _ + c + 65535, c = Math.floor(r / 65536), _ = r - c * 65536, r = C + c + 65535, c = Math.floor(r / 65536), C = r - c * 65536, r = M + c + 65535, c = Math.floor(r / 65536), M = r - c * 65536, r = O + c + 65535, c = Math.floor(r / 65536), O = r - c * 65536, r = gt + c + 65535, c = Math.floor(r / 65536), gt = r - c * 65536, r = N + c + 65535, c = Math.floor(r / 65536), N = r - c * 65536, r = J + c + 65535, c = Math.floor(r / 65536), J = r - c * 65536, r = X + c + 65535, c = Math.floor(r / 65536), X = r - c * 65536, r = V + c + 65535, c = Math.floor(r / 65536), V = r - c * 65536, r = F + c + 65535, c = Math.floor(r / 65536), F = r - c * 65536, r = W + c + 65535, c = Math.floor(r / 65536), W = r - c * 65536, r = K + c + 65535, c = Math.floor(r / 65536), K = r - c * 65536, r = G + c + 65535, c = Math.floor(r / 65536), G = r - c * 65536, r = R + c + 65535, c = Math.floor(r / 65536), R = r - c * 65536, l += c - 1 + 37 * (c - 1), c = 1, r = l + c + 65535, c = Math.floor(r / 65536), l = r - c * 65536, r = d + c + 65535, c = Math.floor(r / 65536), d = r - c * 65536, r = _ + c + 65535, c = Math.floor(r / 65536), _ = r - c * 65536, r = C + c + 65535, c = Math.floor(r / 65536), C = r - c * 65536, r = M + c + 65535, c = Math.floor(r / 65536), M = r - c * 65536, r = O + c + 65535, c = Math.floor(r / 65536), O = r - c * 65536, r = gt + c + 65535, c = Math.floor(r / 65536), gt = r - c * 65536, r = N + c + 65535, c = Math.floor(r / 65536), N = r - c * 65536, r = J + c + 65535, c = Math.floor(r / 65536), J = r - c * 65536, r = X + c + 65535, c = Math.floor(r / 65536), X = r - c * 65536, r = V + c + 65535, c = Math.floor(r / 65536), V = r - c * 65536, r = F + c + 65535, c = Math.floor(r / 65536), F = r - c * 65536, r = W + c + 65535, c = Math.floor(r / 65536), W = r - c * 65536, r = K + c + 65535, c = Math.floor(r / 65536), K = r - c * 65536, r = G + c + 65535, c = Math.floor(r / 65536), G = r - c * 65536, r = R + c + 65535, c = Math.floor(r / 65536), R = r - c * 65536, l += c - 1 + 37 * (c - 1), o[0] = l, o[1] = d, o[2] = _, o[3] = C, o[4] = M, o[5] = O, o[6] = gt, o[7] = N, o[8] = J, o[9] = X, o[10] = V, o[11] = F, o[12] = W, o[13] = K, o[14] = G, o[15] = R;
479
+ }
480
+ function zt(o, f) {
481
+ Y(o, f, f);
482
+ }
483
+ function Ne(o, f) {
484
+ var a = y(), r;
485
+ for (r = 0; r < 16; r++) a[r] = f[r];
486
+ for (r = 253; r >= 0; r--)
487
+ zt(a, a), r !== 2 && r !== 4 && Y(a, a, f);
488
+ for (r = 0; r < 16; r++) o[r] = a[r];
489
+ }
490
+ function $t(o, f) {
491
+ var a = y(), r;
492
+ for (r = 0; r < 16; r++) a[r] = f[r];
493
+ for (r = 250; r >= 0; r--)
494
+ zt(a, a), r !== 1 && Y(a, a, f);
495
+ for (r = 0; r < 16; r++) o[r] = a[r];
496
+ }
497
+ function he(o, f, a) {
498
+ var r = new Uint8Array(32), c = new Float64Array(80), l, d, _ = y(), C = y(), M = y(), O = y(), gt = y(), N = y();
499
+ for (d = 0; d < 31; d++) r[d] = f[d];
500
+ for (r[31] = f[31] & 127 | 64, r[0] &= 248, Le(c, a), d = 0; d < 16; d++)
501
+ C[d] = c[d], O[d] = _[d] = M[d] = 0;
502
+ for (_[0] = O[0] = 1, d = 254; d >= 0; --d)
503
+ l = r[d >>> 3] >>> (d & 7) & 1, re(_, C, l), re(M, O, l), Ft(gt, _, M), St(_, _, M), Ft(M, C, O), St(C, C, O), zt(O, gt), zt(N, _), Y(_, M, _), Y(M, C, gt), Ft(gt, _, M), St(_, _, M), zt(C, _), St(M, O, N), Y(_, M, Q), Ft(_, _, O), Y(M, M, _), Y(_, O, N), Y(O, C, c), zt(C, gt), re(_, C, l), re(M, O, l);
504
+ for (d = 0; d < 16; d++)
505
+ c[d + 16] = _[d], c[d + 32] = M[d], c[d + 48] = C[d], c[d + 64] = O[d];
506
+ var J = c.subarray(32), X = c.subarray(16);
507
+ return Ne(J, J), Y(X, X, J), ae(o, X), 0;
508
+ }
509
+ function _e(o, f) {
510
+ return he(o, f, Dt);
511
+ }
512
+ function fe(o, f) {
513
+ return At(f, 32), _e(o, f);
514
+ }
515
+ function le(o, f, a) {
516
+ var r = new Uint8Array(32);
517
+ return he(r, a, f), Mt(o, it, r, jt);
518
+ }
519
+ var Ke = Oe, Ze = ke;
520
+ function Ve(o, f, a, r, c, l) {
521
+ var d = new Uint8Array(32);
522
+ return le(d, c, l), Ke(o, f, a, r, d);
523
+ }
524
+ function an(o, f, a, r, c, l) {
525
+ var d = new Uint8Array(32);
526
+ return le(d, c, l), Ze(o, f, a, r, d);
527
+ }
528
+ var Re = [
529
+ 1116352408,
530
+ 3609767458,
531
+ 1899447441,
532
+ 602891725,
533
+ 3049323471,
534
+ 3964484399,
535
+ 3921009573,
536
+ 2173295548,
537
+ 961987163,
538
+ 4081628472,
539
+ 1508970993,
540
+ 3053834265,
541
+ 2453635748,
542
+ 2937671579,
543
+ 2870763221,
544
+ 3664609560,
545
+ 3624381080,
546
+ 2734883394,
547
+ 310598401,
548
+ 1164996542,
549
+ 607225278,
550
+ 1323610764,
551
+ 1426881987,
552
+ 3590304994,
553
+ 1925078388,
554
+ 4068182383,
555
+ 2162078206,
556
+ 991336113,
557
+ 2614888103,
558
+ 633803317,
559
+ 3248222580,
560
+ 3479774868,
561
+ 3835390401,
562
+ 2666613458,
563
+ 4022224774,
564
+ 944711139,
565
+ 264347078,
566
+ 2341262773,
567
+ 604807628,
568
+ 2007800933,
569
+ 770255983,
570
+ 1495990901,
571
+ 1249150122,
572
+ 1856431235,
573
+ 1555081692,
574
+ 3175218132,
575
+ 1996064986,
576
+ 2198950837,
577
+ 2554220882,
578
+ 3999719339,
579
+ 2821834349,
580
+ 766784016,
581
+ 2952996808,
582
+ 2566594879,
583
+ 3210313671,
584
+ 3203337956,
585
+ 3336571891,
586
+ 1034457026,
587
+ 3584528711,
588
+ 2466948901,
589
+ 113926993,
590
+ 3758326383,
591
+ 338241895,
592
+ 168717936,
593
+ 666307205,
594
+ 1188179964,
595
+ 773529912,
596
+ 1546045734,
597
+ 1294757372,
598
+ 1522805485,
599
+ 1396182291,
600
+ 2643833823,
601
+ 1695183700,
602
+ 2343527390,
603
+ 1986661051,
604
+ 1014477480,
605
+ 2177026350,
606
+ 1206759142,
607
+ 2456956037,
608
+ 344077627,
609
+ 2730485921,
610
+ 1290863460,
611
+ 2820302411,
612
+ 3158454273,
613
+ 3259730800,
614
+ 3505952657,
615
+ 3345764771,
616
+ 106217008,
617
+ 3516065817,
618
+ 3606008344,
619
+ 3600352804,
620
+ 1432725776,
621
+ 4094571909,
622
+ 1467031594,
623
+ 275423344,
624
+ 851169720,
625
+ 430227734,
626
+ 3100823752,
627
+ 506948616,
628
+ 1363258195,
629
+ 659060556,
630
+ 3750685593,
631
+ 883997877,
632
+ 3785050280,
633
+ 958139571,
634
+ 3318307427,
635
+ 1322822218,
636
+ 3812723403,
637
+ 1537002063,
638
+ 2003034995,
639
+ 1747873779,
640
+ 3602036899,
641
+ 1955562222,
642
+ 1575990012,
643
+ 2024104815,
644
+ 1125592928,
645
+ 2227730452,
646
+ 2716904306,
647
+ 2361852424,
648
+ 442776044,
649
+ 2428436474,
650
+ 593698344,
651
+ 2756734187,
652
+ 3733110249,
653
+ 3204031479,
654
+ 2999351573,
655
+ 3329325298,
656
+ 3815920427,
657
+ 3391569614,
658
+ 3928383900,
659
+ 3515267271,
660
+ 566280711,
661
+ 3940187606,
662
+ 3454069534,
663
+ 4118630271,
664
+ 4000239992,
665
+ 116418474,
666
+ 1914138554,
667
+ 174292421,
668
+ 2731055270,
669
+ 289380356,
670
+ 3203993006,
671
+ 460393269,
672
+ 320620315,
673
+ 685471733,
674
+ 587496836,
675
+ 852142971,
676
+ 1086792851,
677
+ 1017036298,
678
+ 365543100,
679
+ 1126000580,
680
+ 2618297676,
681
+ 1288033470,
682
+ 3409855158,
683
+ 1501505948,
684
+ 4234509866,
685
+ 1607167915,
686
+ 987167468,
687
+ 1816402316,
688
+ 1246189591
689
+ ];
690
+ function Qe(o, f, a, r) {
691
+ for (var c = new Int32Array(16), l = new Int32Array(16), d, _, C, M, O, gt, N, J, X, V, F, W, K, G, R, B, k, j, U, E, p, x, m, g, b, w, z = o[0], tt = o[1], rt = o[2], et = o[3], h = o[4], ft = o[5], ht = o[6], _t = o[7], ot = f[0], pt = f[1], xt = f[2], Lt = f[3], mt = f[4], Et = f[5], Ot = f[6], kt = f[7], Nt = 0; r >= 128; ) {
692
+ for (U = 0; U < 16; U++)
693
+ E = 8 * U + Nt, c[U] = a[E + 0] << 24 | a[E + 1] << 16 | a[E + 2] << 8 | a[E + 3], l[U] = a[E + 4] << 24 | a[E + 5] << 16 | a[E + 6] << 8 | a[E + 7];
694
+ for (U = 0; U < 80; U++)
695
+ if (d = z, _ = tt, C = rt, M = et, O = h, gt = ft, N = ht, J = _t, X = ot, V = pt, F = xt, W = Lt, K = mt, G = Et, R = Ot, B = kt, p = _t, x = kt, m = x & 65535, g = x >>> 16, b = p & 65535, w = p >>> 16, p = (h >>> 14 | mt << 18) ^ (h >>> 18 | mt << 14) ^ (mt >>> 9 | h << 23), x = (mt >>> 14 | h << 18) ^ (mt >>> 18 | h << 14) ^ (h >>> 9 | mt << 23), m += x & 65535, g += x >>> 16, b += p & 65535, w += p >>> 16, p = h & ft ^ ~h & ht, x = mt & Et ^ ~mt & Ot, m += x & 65535, g += x >>> 16, b += p & 65535, w += p >>> 16, p = Re[U * 2], x = Re[U * 2 + 1], m += x & 65535, g += x >>> 16, b += p & 65535, w += p >>> 16, p = c[U % 16], x = l[U % 16], m += x & 65535, g += x >>> 16, b += p & 65535, w += p >>> 16, g += m >>> 16, b += g >>> 16, w += b >>> 16, k = b & 65535 | w << 16, j = m & 65535 | g << 16, p = k, x = j, m = x & 65535, g = x >>> 16, b = p & 65535, w = p >>> 16, p = (z >>> 28 | ot << 4) ^ (ot >>> 2 | z << 30) ^ (ot >>> 7 | z << 25), x = (ot >>> 28 | z << 4) ^ (z >>> 2 | ot << 30) ^ (z >>> 7 | ot << 25), m += x & 65535, g += x >>> 16, b += p & 65535, w += p >>> 16, p = z & tt ^ z & rt ^ tt & rt, x = ot & pt ^ ot & xt ^ pt & xt, m += x & 65535, g += x >>> 16, b += p & 65535, w += p >>> 16, g += m >>> 16, b += g >>> 16, w += b >>> 16, J = b & 65535 | w << 16, B = m & 65535 | g << 16, p = M, x = W, m = x & 65535, g = x >>> 16, b = p & 65535, w = p >>> 16, p = k, x = j, m += x & 65535, g += x >>> 16, b += p & 65535, w += p >>> 16, g += m >>> 16, b += g >>> 16, w += b >>> 16, M = b & 65535 | w << 16, W = m & 65535 | g << 16, tt = d, rt = _, et = C, h = M, ft = O, ht = gt, _t = N, z = J, pt = X, xt = V, Lt = F, mt = W, Et = K, Ot = G, kt = R, ot = B, U % 16 === 15)
696
+ for (E = 0; E < 16; E++)
697
+ p = c[E], x = l[E], m = x & 65535, g = x >>> 16, b = p & 65535, w = p >>> 16, p = c[(E + 9) % 16], x = l[(E + 9) % 16], m += x & 65535, g += x >>> 16, b += p & 65535, w += p >>> 16, k = c[(E + 1) % 16], j = l[(E + 1) % 16], p = (k >>> 1 | j << 31) ^ (k >>> 8 | j << 24) ^ k >>> 7, x = (j >>> 1 | k << 31) ^ (j >>> 8 | k << 24) ^ (j >>> 7 | k << 25), m += x & 65535, g += x >>> 16, b += p & 65535, w += p >>> 16, k = c[(E + 14) % 16], j = l[(E + 14) % 16], p = (k >>> 19 | j << 13) ^ (j >>> 29 | k << 3) ^ k >>> 6, x = (j >>> 19 | k << 13) ^ (k >>> 29 | j << 3) ^ (j >>> 6 | k << 26), m += x & 65535, g += x >>> 16, b += p & 65535, w += p >>> 16, g += m >>> 16, b += g >>> 16, w += b >>> 16, c[E] = b & 65535 | w << 16, l[E] = m & 65535 | g << 16;
698
+ p = z, x = ot, m = x & 65535, g = x >>> 16, b = p & 65535, w = p >>> 16, p = o[0], x = f[0], m += x & 65535, g += x >>> 16, b += p & 65535, w += p >>> 16, g += m >>> 16, b += g >>> 16, w += b >>> 16, o[0] = z = b & 65535 | w << 16, f[0] = ot = m & 65535 | g << 16, p = tt, x = pt, m = x & 65535, g = x >>> 16, b = p & 65535, w = p >>> 16, p = o[1], x = f[1], m += x & 65535, g += x >>> 16, b += p & 65535, w += p >>> 16, g += m >>> 16, b += g >>> 16, w += b >>> 16, o[1] = tt = b & 65535 | w << 16, f[1] = pt = m & 65535 | g << 16, p = rt, x = xt, m = x & 65535, g = x >>> 16, b = p & 65535, w = p >>> 16, p = o[2], x = f[2], m += x & 65535, g += x >>> 16, b += p & 65535, w += p >>> 16, g += m >>> 16, b += g >>> 16, w += b >>> 16, o[2] = rt = b & 65535 | w << 16, f[2] = xt = m & 65535 | g << 16, p = et, x = Lt, m = x & 65535, g = x >>> 16, b = p & 65535, w = p >>> 16, p = o[3], x = f[3], m += x & 65535, g += x >>> 16, b += p & 65535, w += p >>> 16, g += m >>> 16, b += g >>> 16, w += b >>> 16, o[3] = et = b & 65535 | w << 16, f[3] = Lt = m & 65535 | g << 16, p = h, x = mt, m = x & 65535, g = x >>> 16, b = p & 65535, w = p >>> 16, p = o[4], x = f[4], m += x & 65535, g += x >>> 16, b += p & 65535, w += p >>> 16, g += m >>> 16, b += g >>> 16, w += b >>> 16, o[4] = h = b & 65535 | w << 16, f[4] = mt = m & 65535 | g << 16, p = ft, x = Et, m = x & 65535, g = x >>> 16, b = p & 65535, w = p >>> 16, p = o[5], x = f[5], m += x & 65535, g += x >>> 16, b += p & 65535, w += p >>> 16, g += m >>> 16, b += g >>> 16, w += b >>> 16, o[5] = ft = b & 65535 | w << 16, f[5] = Et = m & 65535 | g << 16, p = ht, x = Ot, m = x & 65535, g = x >>> 16, b = p & 65535, w = p >>> 16, p = o[6], x = f[6], m += x & 65535, g += x >>> 16, b += p & 65535, w += p >>> 16, g += m >>> 16, b += g >>> 16, w += b >>> 16, o[6] = ht = b & 65535 | w << 16, f[6] = Ot = m & 65535 | g << 16, p = _t, x = kt, m = x & 65535, g = x >>> 16, b = p & 65535, w = p >>> 16, p = o[7], x = f[7], m += x & 65535, g += x >>> 16, b += p & 65535, w += p >>> 16, g += m >>> 16, b += g >>> 16, w += b >>> 16, o[7] = _t = b & 65535 | w << 16, f[7] = kt = m & 65535 | g << 16, Nt += 128, r -= 128;
699
+ }
700
+ return r;
701
+ }
702
+ function ie(o, f, a) {
703
+ var r = new Int32Array(8), c = new Int32Array(8), l = new Uint8Array(256), d, _ = a;
704
+ for (r[0] = 1779033703, r[1] = 3144134277, r[2] = 1013904242, r[3] = 2773480762, r[4] = 1359893119, r[5] = 2600822924, r[6] = 528734635, r[7] = 1541459225, c[0] = 4089235720, c[1] = 2227873595, c[2] = 4271175723, c[3] = 1595750129, c[4] = 2917565137, c[5] = 725511199, c[6] = 4215389547, c[7] = 327033209, Qe(r, c, f, a), a %= 128, d = 0; d < a; d++) l[d] = f[_ - a + d];
705
+ for (l[a] = 128, a = 256 - 128 * (a < 112 ? 1 : 0), l[a - 9] = 0, Z(l, a - 8, _ / 536870912 | 0, _ << 3), Qe(r, c, l, a), d = 0; d < 8; d++) Z(o, 8 * d, r[d], c[d]);
706
+ return 0;
707
+ }
708
+ function be(o, f) {
709
+ var a = y(), r = y(), c = y(), l = y(), d = y(), _ = y(), C = y(), M = y(), O = y();
710
+ St(a, o[1], o[0]), St(O, f[1], f[0]), Y(a, a, O), Ft(r, o[0], o[1]), Ft(O, f[0], f[1]), Y(r, r, O), Y(c, o[3], f[3]), Y(c, c, bt), Y(l, o[2], f[2]), Ft(l, l, l), St(d, r, a), St(_, l, c), Ft(C, l, c), Ft(M, r, a), Y(o[0], d, _), Y(o[1], M, C), Y(o[2], C, _), Y(o[3], d, M);
711
+ }
712
+ function tn(o, f, a) {
713
+ var r;
714
+ for (r = 0; r < 4; r++)
715
+ re(o[r], f[r], a);
716
+ }
717
+ function ce(o, f) {
718
+ var a = y(), r = y(), c = y();
719
+ Ne(c, f[2]), Y(a, f[0], c), Y(r, f[1], c), ae(o, r), o[31] ^= Zt(a) << 7;
720
+ }
721
+ function Ie(o, f, a) {
722
+ var r, c;
723
+ for (Wt(o[0], I), Wt(o[1], ct), Wt(o[2], ct), Wt(o[3], I), c = 255; c >= 0; --c)
724
+ r = a[c / 8 | 0] >> (c & 7) & 1, tn(o, f, r), be(f, o), be(o, o), tn(o, f, r);
725
+ }
726
+ function wt(o, f) {
727
+ var a = [y(), y(), y(), y()];
728
+ Wt(a[0], H), Wt(a[1], T), Wt(a[2], ct), Y(a[3], H, T), Ie(o, a, f);
729
+ }
730
+ function je(o, f, a) {
731
+ var r = new Uint8Array(64), c = [y(), y(), y(), y()], l;
732
+ for (a || At(f, 32), ie(r, f, 32), r[0] &= 248, r[31] &= 127, r[31] |= 64, wt(c, r), ce(o, c), l = 0; l < 32; l++) f[l + 32] = o[l];
733
+ return 0;
734
+ }
735
+ var me = 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]);
736
+ function Ue(o, f) {
737
+ var a, r, c, l;
738
+ for (r = 63; r >= 32; --r) {
739
+ for (a = 0, c = r - 32, l = r - 12; c < l; ++c)
740
+ f[c] += a - 16 * f[r] * me[c - (r - 32)], a = Math.floor((f[c] + 128) / 256), f[c] -= a * 256;
741
+ f[c] += a, f[r] = 0;
742
+ }
743
+ for (a = 0, c = 0; c < 32; c++)
744
+ f[c] += a - (f[31] >> 4) * me[c], a = f[c] >> 8, f[c] &= 255;
745
+ for (c = 0; c < 32; c++) f[c] -= a * me[c];
746
+ for (r = 0; r < 32; r++)
747
+ f[r + 1] += f[r] >> 8, o[r] = f[r] & 255;
748
+ }
749
+ function Me(o) {
750
+ var f = new Float64Array(64), a;
751
+ for (a = 0; a < 64; a++) f[a] = o[a];
752
+ for (a = 0; a < 64; a++) o[a] = 0;
753
+ Ue(o, f);
754
+ }
755
+ function en(o, f, a, r) {
756
+ var c = new Uint8Array(64), l = new Uint8Array(64), d = new Uint8Array(64), _, C, M = new Float64Array(64), O = [y(), y(), y(), y()];
757
+ ie(c, r, 32), c[0] &= 248, c[31] &= 127, c[31] |= 64;
758
+ var gt = a + 64;
759
+ for (_ = 0; _ < a; _++) o[64 + _] = f[_];
760
+ for (_ = 0; _ < 32; _++) o[32 + _] = c[32 + _];
761
+ for (ie(d, o.subarray(32), a + 32), Me(d), wt(O, d), ce(o, O), _ = 32; _ < 64; _++) o[_] = r[_];
762
+ for (ie(l, o, a + 64), Me(l), _ = 0; _ < 64; _++) M[_] = 0;
763
+ for (_ = 0; _ < 32; _++) M[_] = d[_];
764
+ for (_ = 0; _ < 32; _++)
765
+ for (C = 0; C < 32; C++)
766
+ M[_ + C] += l[_] * c[C];
767
+ return Ue(o.subarray(32), M), gt;
768
+ }
769
+ function fn(o, f) {
770
+ var a = y(), r = y(), c = y(), l = y(), d = y(), _ = y(), C = y();
771
+ return Wt(o[2], ct), Le(o[1], f), zt(c, o[1]), Y(l, c, $), St(c, c, o[2]), Ft(l, o[2], l), zt(d, l), zt(_, d), Y(C, _, d), Y(a, C, c), Y(a, a, l), $t(a, a), Y(a, a, c), Y(a, a, l), Y(a, a, l), Y(o[0], a, l), zt(r, o[0]), Y(r, r, l), Ge(r, c) && Y(o[0], o[0], P), zt(r, o[0]), Y(r, r, l), Ge(r, c) ? -1 : (Zt(o[0]) === f[31] >> 7 && St(o[0], I, o[0]), Y(o[3], o[0], o[1]), 0);
772
+ }
773
+ function Be(o, f, a, r) {
774
+ var c, l = new Uint8Array(32), d = new Uint8Array(64), _ = [y(), y(), y(), y()], C = [y(), y(), y(), y()];
775
+ if (a < 64 || fn(C, r)) return -1;
776
+ for (c = 0; c < a; c++) o[c] = f[c];
777
+ for (c = 0; c < 32; c++) o[c + 32] = r[c];
778
+ if (ie(d, o, a), Me(d), Ie(_, C, d), wt(C, f.subarray(32)), be(_, C), ce(l, _), a -= 64, at(f, 0, l, 0)) {
779
+ for (c = 0; c < a; c++) o[c] = 0;
780
+ return -1;
781
+ }
782
+ for (c = 0; c < a; c++) o[c] = f[c + 64];
783
+ return a;
784
+ }
785
+ var De = 32, we = 24, oe = 32, Vt = 16, de = 32, Se = 32, pe = 32, xe = 32, He = 32, Ce = we, cn = oe, Gt = Vt, Kt = 64, se = 32, ue = 64, ze = 32, Qt = 64;
786
+ S.lowlevel = {
787
+ crypto_core_hsalsa20: Mt,
788
+ crypto_stream_xor: ee,
789
+ crypto_stream: Xe,
790
+ crypto_stream_salsa20_xor: $e,
791
+ crypto_stream_salsa20: Je,
792
+ crypto_onetimeauth: Ee,
793
+ crypto_onetimeauth_verify: We,
794
+ crypto_verify_16: Ct,
795
+ crypto_verify_32: at,
796
+ crypto_secretbox: Oe,
797
+ crypto_secretbox_open: ke,
798
+ crypto_scalarmult: he,
799
+ crypto_scalarmult_base: _e,
800
+ crypto_box_beforenm: le,
801
+ crypto_box_afternm: Ke,
802
+ crypto_box: Ve,
803
+ crypto_box_open: an,
804
+ crypto_box_keypair: fe,
805
+ crypto_hash: ie,
806
+ crypto_sign: en,
807
+ crypto_sign_keypair: je,
808
+ crypto_sign_open: Be,
809
+ crypto_secretbox_KEYBYTES: De,
810
+ crypto_secretbox_NONCEBYTES: we,
811
+ crypto_secretbox_ZEROBYTES: oe,
812
+ crypto_secretbox_BOXZEROBYTES: Vt,
813
+ crypto_scalarmult_BYTES: de,
814
+ crypto_scalarmult_SCALARBYTES: Se,
815
+ crypto_box_PUBLICKEYBYTES: pe,
816
+ crypto_box_SECRETKEYBYTES: xe,
817
+ crypto_box_BEFORENMBYTES: He,
818
+ crypto_box_NONCEBYTES: Ce,
819
+ crypto_box_ZEROBYTES: cn,
820
+ crypto_box_BOXZEROBYTES: Gt,
821
+ crypto_sign_BYTES: Kt,
822
+ crypto_sign_PUBLICKEYBYTES: se,
823
+ crypto_sign_SECRETKEYBYTES: ue,
824
+ crypto_sign_SEEDBYTES: ze,
825
+ crypto_hash_BYTES: Qt,
826
+ gf: y,
827
+ D: $,
828
+ L: me,
829
+ pack25519: ae,
830
+ unpack25519: Le,
831
+ M: Y,
832
+ A: Ft,
833
+ S: zt,
834
+ Z: St,
835
+ pow2523: $t,
836
+ add: be,
837
+ set25519: Wt,
838
+ modL: Ue,
839
+ scalarmult: Ie,
840
+ scalarbase: wt
841
+ };
842
+ function nn(o, f) {
843
+ if (o.length !== De) throw new Error("bad key size");
844
+ if (f.length !== we) throw new Error("bad nonce size");
845
+ }
846
+ function rn(o, f) {
847
+ if (o.length !== pe) throw new Error("bad public key size");
848
+ if (f.length !== xe) throw new Error("bad secret key size");
849
+ }
850
+ function Bt() {
851
+ for (var o = 0; o < arguments.length; o++)
852
+ if (!(arguments[o] instanceof Uint8Array))
853
+ throw new TypeError("unexpected type, use Uint8Array");
854
+ }
855
+ function qe(o) {
856
+ for (var f = 0; f < o.length; f++) o[f] = 0;
857
+ }
858
+ S.randomBytes = function(o) {
859
+ var f = new Uint8Array(o);
860
+ return At(f, o), f;
861
+ }, S.secretbox = function(o, f, a) {
862
+ Bt(o, f, a), nn(a, f);
863
+ for (var r = new Uint8Array(oe + o.length), c = new Uint8Array(r.length), l = 0; l < o.length; l++) r[l + oe] = o[l];
864
+ return Oe(c, r, r.length, f, a), c.subarray(Vt);
865
+ }, S.secretbox.open = function(o, f, a) {
866
+ Bt(o, f, a), nn(a, f);
867
+ for (var r = new Uint8Array(Vt + o.length), c = new Uint8Array(r.length), l = 0; l < o.length; l++) r[l + Vt] = o[l];
868
+ return r.length < 32 || ke(c, r, r.length, f, a) !== 0 ? null : c.subarray(oe);
869
+ }, S.secretbox.keyLength = De, S.secretbox.nonceLength = we, S.secretbox.overheadLength = Vt, S.scalarMult = function(o, f) {
870
+ if (Bt(o, f), o.length !== Se) throw new Error("bad n size");
871
+ if (f.length !== de) throw new Error("bad p size");
872
+ var a = new Uint8Array(de);
873
+ return he(a, o, f), a;
874
+ }, S.scalarMult.base = function(o) {
875
+ if (Bt(o), o.length !== Se) throw new Error("bad n size");
876
+ var f = new Uint8Array(de);
877
+ return _e(f, o), f;
878
+ }, S.scalarMult.scalarLength = Se, S.scalarMult.groupElementLength = de, S.box = function(o, f, a, r) {
879
+ var c = S.box.before(a, r);
880
+ return S.secretbox(o, f, c);
881
+ }, S.box.before = function(o, f) {
882
+ Bt(o, f), rn(o, f);
883
+ var a = new Uint8Array(He);
884
+ return le(a, o, f), a;
885
+ }, S.box.after = S.secretbox, S.box.open = function(o, f, a, r) {
886
+ var c = S.box.before(a, r);
887
+ return S.secretbox.open(o, f, c);
888
+ }, S.box.open.after = S.secretbox.open, S.box.keyPair = function() {
889
+ var o = new Uint8Array(pe), f = new Uint8Array(xe);
890
+ return fe(o, f), { publicKey: o, secretKey: f };
891
+ }, S.box.keyPair.fromSecretKey = function(o) {
892
+ if (Bt(o), o.length !== xe)
893
+ throw new Error("bad secret key size");
894
+ var f = new Uint8Array(pe);
895
+ return _e(f, o), { publicKey: f, secretKey: new Uint8Array(o) };
896
+ }, S.box.publicKeyLength = pe, S.box.secretKeyLength = xe, S.box.sharedKeyLength = He, S.box.nonceLength = Ce, S.box.overheadLength = S.secretbox.overheadLength, S.sign = function(o, f) {
897
+ if (Bt(o, f), f.length !== ue)
898
+ throw new Error("bad secret key size");
899
+ var a = new Uint8Array(Kt + o.length);
900
+ return en(a, o, o.length, f), a;
901
+ }, S.sign.open = function(o, f) {
902
+ if (Bt(o, f), f.length !== se)
903
+ throw new Error("bad public key size");
904
+ var a = new Uint8Array(o.length), r = Be(a, o, o.length, f);
905
+ if (r < 0) return null;
906
+ for (var c = new Uint8Array(r), l = 0; l < c.length; l++) c[l] = a[l];
907
+ return c;
908
+ }, S.sign.detached = function(o, f) {
909
+ for (var a = S.sign(o, f), r = new Uint8Array(Kt), c = 0; c < r.length; c++) r[c] = a[c];
910
+ return r;
911
+ }, S.sign.detached.verify = function(o, f, a) {
912
+ if (Bt(o, f, a), f.length !== Kt)
913
+ throw new Error("bad signature size");
914
+ if (a.length !== se)
915
+ throw new Error("bad public key size");
916
+ var r = new Uint8Array(Kt + o.length), c = new Uint8Array(Kt + o.length), l;
917
+ for (l = 0; l < Kt; l++) r[l] = f[l];
918
+ for (l = 0; l < o.length; l++) r[l + Kt] = o[l];
919
+ return Be(c, r, r.length, a) >= 0;
920
+ }, S.sign.keyPair = function() {
921
+ var o = new Uint8Array(se), f = new Uint8Array(ue);
922
+ return je(o, f), { publicKey: o, secretKey: f };
923
+ }, S.sign.keyPair.fromSecretKey = function(o) {
924
+ if (Bt(o), o.length !== ue)
925
+ throw new Error("bad secret key size");
926
+ for (var f = new Uint8Array(se), a = 0; a < f.length; a++) f[a] = o[32 + a];
927
+ return { publicKey: f, secretKey: new Uint8Array(o) };
928
+ }, S.sign.keyPair.fromSeed = function(o) {
929
+ if (Bt(o), o.length !== ze)
930
+ throw new Error("bad seed size");
931
+ for (var f = new Uint8Array(se), a = new Uint8Array(ue), r = 0; r < 32; r++) a[r] = o[r];
932
+ return je(f, a, !0), { publicKey: f, secretKey: a };
933
+ }, S.sign.publicKeyLength = se, S.sign.secretKeyLength = ue, S.sign.seedLength = ze, S.sign.signatureLength = Kt, S.hash = function(o) {
934
+ Bt(o);
935
+ var f = new Uint8Array(Qt);
936
+ return ie(f, o, o.length), f;
937
+ }, S.hash.hashLength = Qt, S.verify = function(o, f) {
938
+ return Bt(o, f), o.length === 0 || f.length === 0 || o.length !== f.length ? !1 : D(o, 0, f, 0, o.length) === 0;
939
+ }, S.setPRNG = function(o) {
940
+ At = o;
941
+ }, (function() {
942
+ var o = typeof self < "u" ? self.crypto || self.msCrypto : null;
943
+ if (o && o.getRandomValues) {
944
+ var f = 65536;
945
+ S.setPRNG(function(a, r) {
946
+ var c, l = new Uint8Array(r);
947
+ for (c = 0; c < r; c += f)
948
+ o.getRandomValues(l.subarray(c, c + Math.min(r - c, f)));
949
+ for (c = 0; c < r; c++) a[c] = l[c];
950
+ qe(l);
951
+ });
952
+ } else
953
+ o = dt(4), o && o.randomBytes && S.setPRNG(function(a, r) {
954
+ var c, l = o.randomBytes(r);
955
+ for (c = 0; c < r; c++) a[c] = l[c];
956
+ qe(l);
957
+ });
958
+ })();
959
+ })(Pt.exports ? Pt.exports : self.nacl = self.nacl || {});
960
+ }),
961
+ /* 3 */
962
+ /***/
963
+ (function(Pt, nt, dt) {
964
+ Pt.exports = dt(5).default;
965
+ }),
966
+ /* 4 */
967
+ /***/
968
+ (function(Pt, nt) {
969
+ }),
970
+ /* 5 */
971
+ /***/
972
+ (function(Pt, nt, dt) {
973
+ dt.r(nt);
974
+ var S = (function() {
975
+ function e(t, n) {
976
+ this.lastId = 0, this.prefix = t, this.name = n;
977
+ }
978
+ return e.prototype.create = function(t) {
979
+ this.lastId++;
980
+ var n = this.lastId, i = this.prefix + n, s = this.name + "[" + n + "]", u = !1, v = function() {
981
+ u || (t.apply(null, arguments), u = !0);
982
+ };
983
+ return this[n] = v, { number: n, id: i, name: s, callback: v };
984
+ }, e.prototype.remove = function(t) {
985
+ delete this[t.number];
986
+ }, e;
987
+ })(), y = new S("_pusher_script_", "Pusher.ScriptReceivers"), At = {
988
+ VERSION: "7.6.0",
989
+ PROTOCOL: 7,
990
+ wsPort: 80,
991
+ wssPort: 443,
992
+ wsPath: "",
993
+ httpHost: "sockjs.pusher.com",
994
+ httpPort: 80,
995
+ httpsPort: 443,
996
+ httpPath: "/pusher",
997
+ stats_host: "stats.pusher.com",
998
+ authEndpoint: "/pusher/auth",
999
+ authTransport: "ajax",
1000
+ activityTimeout: 12e4,
1001
+ pongTimeout: 3e4,
1002
+ unavailableTimeout: 1e4,
1003
+ cluster: "mt1",
1004
+ userAuthentication: {
1005
+ endpoint: "/pusher/user-auth",
1006
+ transport: "ajax"
1007
+ },
1008
+ channelAuthorization: {
1009
+ endpoint: "/pusher/auth",
1010
+ transport: "ajax"
1011
+ },
1012
+ cdn_http: "http://js.pusher.com",
1013
+ cdn_https: "https://js.pusher.com",
1014
+ dependency_suffix: ""
1015
+ }, it = At, Dt = (function() {
1016
+ function e(t) {
1017
+ this.options = t, this.receivers = t.receivers || y, this.loading = {};
1018
+ }
1019
+ return e.prototype.load = function(t, n, i) {
1020
+ var s = this;
1021
+ if (s.loading[t] && s.loading[t].length > 0)
1022
+ s.loading[t].push(i);
1023
+ else {
1024
+ s.loading[t] = [i];
1025
+ var u = st.createScriptRequest(s.getPath(t, n)), v = s.receivers.create(function(A) {
1026
+ if (s.receivers.remove(v), s.loading[t]) {
1027
+ var q = s.loading[t];
1028
+ delete s.loading[t];
1029
+ for (var L = function(Rt) {
1030
+ Rt || u.cleanup();
1031
+ }, lt = 0; lt < q.length; lt++)
1032
+ q[lt](A, L);
1033
+ }
1034
+ });
1035
+ u.send(v);
1036
+ }
1037
+ }, e.prototype.getRoot = function(t) {
1038
+ var n, i = st.getDocument().location.protocol;
1039
+ return t && t.useTLS || i === "https:" ? n = this.options.cdn_https : n = this.options.cdn_http, n.replace(/\/*$/, "") + "/" + this.options.version;
1040
+ }, e.prototype.getPath = function(t, n) {
1041
+ return this.getRoot(n) + "/" + t + this.options.suffix + ".js";
1042
+ }, e;
1043
+ })(), I = Dt, ct = new S("_pusher_dependencies", "Pusher.DependenciesReceivers"), Q = new I({
1044
+ cdn_http: it.cdn_http,
1045
+ cdn_https: it.cdn_https,
1046
+ version: it.VERSION,
1047
+ suffix: it.dependency_suffix,
1048
+ receivers: ct
1049
+ }), $ = {
1050
+ baseUrl: "https://pusher.com",
1051
+ urls: {
1052
+ authenticationEndpoint: {
1053
+ path: "/docs/channels/server_api/authenticating_users"
1054
+ },
1055
+ authorizationEndpoint: {
1056
+ path: "/docs/channels/server_api/authorizing-users/"
1057
+ },
1058
+ javascriptQuickStart: {
1059
+ path: "/docs/javascript_quick_start"
1060
+ },
1061
+ triggeringClientEvents: {
1062
+ path: "/docs/client_api_guide/client_events#trigger-events"
1063
+ },
1064
+ encryptedChannelSupport: {
1065
+ fullUrl: "https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"
1066
+ }
1067
+ }
1068
+ }, bt = function(e) {
1069
+ var t = "See:", n = $.urls[e];
1070
+ if (!n)
1071
+ return "";
1072
+ var i;
1073
+ return n.fullUrl ? i = n.fullUrl : n.path && (i = $.baseUrl + n.path), i ? t + " " + i : "";
1074
+ }, H = { buildLogSuffix: bt }, T;
1075
+ (function(e) {
1076
+ e.UserAuthentication = "user-authentication", e.ChannelAuthorization = "channel-authorization";
1077
+ })(T || (T = {}));
1078
+ var P = /* @__PURE__ */ (function() {
1079
+ var e = function(t, n) {
1080
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, s) {
1081
+ i.__proto__ = s;
1082
+ } || function(i, s) {
1083
+ for (var u in s) s.hasOwnProperty(u) && (i[u] = s[u]);
1084
+ }, e(t, n);
1085
+ };
1086
+ return function(t, n) {
1087
+ e(t, n);
1088
+ function i() {
1089
+ this.constructor = t;
1090
+ }
1091
+ t.prototype = n === null ? Object.create(n) : (i.prototype = n.prototype, new i());
1092
+ };
1093
+ })(), Z = (function(e) {
1094
+ P(t, e);
1095
+ function t(n) {
1096
+ var i = this.constructor, s = e.call(this, n) || this;
1097
+ return Object.setPrototypeOf(s, i.prototype), s;
1098
+ }
1099
+ return t;
1100
+ })(Error), D = (function(e) {
1101
+ P(t, e);
1102
+ function t(n) {
1103
+ var i = this.constructor, s = e.call(this, n) || this;
1104
+ return Object.setPrototypeOf(s, i.prototype), s;
1105
+ }
1106
+ return t;
1107
+ })(Error), Ct = (function(e) {
1108
+ P(t, e);
1109
+ function t(n) {
1110
+ var i = this.constructor, s = e.call(this, n) || this;
1111
+ return Object.setPrototypeOf(s, i.prototype), s;
1112
+ }
1113
+ return t;
1114
+ })(Error), at = (function(e) {
1115
+ P(t, e);
1116
+ function t(n) {
1117
+ var i = this.constructor, s = e.call(this, n) || this;
1118
+ return Object.setPrototypeOf(s, i.prototype), s;
1119
+ }
1120
+ return t;
1121
+ })(Error), qt = (function(e) {
1122
+ P(t, e);
1123
+ function t(n) {
1124
+ var i = this.constructor, s = e.call(this, n) || this;
1125
+ return Object.setPrototypeOf(s, i.prototype), s;
1126
+ }
1127
+ return t;
1128
+ })(Error), Xt = (function(e) {
1129
+ P(t, e);
1130
+ function t(n) {
1131
+ var i = this.constructor, s = e.call(this, n) || this;
1132
+ return Object.setPrototypeOf(s, i.prototype), s;
1133
+ }
1134
+ return t;
1135
+ })(Error), Ht = (function(e) {
1136
+ P(t, e);
1137
+ function t(n) {
1138
+ var i = this.constructor, s = e.call(this, n) || this;
1139
+ return Object.setPrototypeOf(s, i.prototype), s;
1140
+ }
1141
+ return t;
1142
+ })(Error), Mt = (function(e) {
1143
+ P(t, e);
1144
+ function t(n) {
1145
+ var i = this.constructor, s = e.call(this, n) || this;
1146
+ return Object.setPrototypeOf(s, i.prototype), s;
1147
+ }
1148
+ return t;
1149
+ })(Error), jt = (function(e) {
1150
+ P(t, e);
1151
+ function t(n, i) {
1152
+ var s = this.constructor, u = e.call(this, i) || this;
1153
+ return u.status = n, Object.setPrototypeOf(u, s.prototype), u;
1154
+ }
1155
+ return t;
1156
+ })(Error), $e = function(e, t, n, i, s) {
1157
+ var u = st.createXHR();
1158
+ u.open("POST", n.endpoint, !0), u.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
1159
+ for (var v in n.headers)
1160
+ u.setRequestHeader(v, n.headers[v]);
1161
+ if (n.headersProvider != null) {
1162
+ var A = n.headersProvider();
1163
+ for (var v in A)
1164
+ u.setRequestHeader(v, A[v]);
1165
+ }
1166
+ return u.onreadystatechange = function() {
1167
+ if (u.readyState === 4)
1168
+ if (u.status === 200) {
1169
+ var q = void 0, L = !1;
1170
+ try {
1171
+ q = JSON.parse(u.responseText), L = !0;
1172
+ } catch {
1173
+ s(new jt(200, "JSON returned from " + i.toString() + " endpoint was invalid, yet status code was 200. Data was: " + u.responseText), null);
1174
+ }
1175
+ L && s(null, q);
1176
+ } else {
1177
+ var lt = "";
1178
+ switch (i) {
1179
+ case T.UserAuthentication:
1180
+ lt = H.buildLogSuffix("authenticationEndpoint");
1181
+ break;
1182
+ case T.ChannelAuthorization:
1183
+ lt = "Clients must be authorized to join private or presence channels. " + H.buildLogSuffix("authorizationEndpoint");
1184
+ break;
1185
+ }
1186
+ s(new jt(u.status, "Unable to retrieve auth string from " + i.toString() + " endpoint - " + ("received status: " + u.status + " from " + n.endpoint + ". " + lt)), null);
1187
+ }
1188
+ }, u.send(t), u;
1189
+ }, Je = $e;
1190
+ function Xe(e) {
1191
+ return ke(We(e));
1192
+ }
1193
+ var ee = String.fromCharCode, ne = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Ee = function(e) {
1194
+ var t = e.charCodeAt(0);
1195
+ return t < 128 ? e : t < 2048 ? ee(192 | t >>> 6) + ee(128 | t & 63) : ee(224 | t >>> 12 & 15) + ee(128 | t >>> 6 & 63) + ee(128 | t & 63);
1196
+ }, We = function(e) {
1197
+ return e.replace(/[^\x00-\x7F]/g, Ee);
1198
+ }, Oe = function(e) {
1199
+ var t = [0, 2, 1][e.length % 3], n = e.charCodeAt(0) << 16 | (e.length > 1 ? e.charCodeAt(1) : 0) << 8 | (e.length > 2 ? e.charCodeAt(2) : 0), i = [
1200
+ ne.charAt(n >>> 18),
1201
+ ne.charAt(n >>> 12 & 63),
1202
+ t >= 2 ? "=" : ne.charAt(n >>> 6 & 63),
1203
+ t >= 1 ? "=" : ne.charAt(n & 63)
1204
+ ];
1205
+ return i.join("");
1206
+ }, ke = window.btoa || function(e) {
1207
+ return e.replace(/[\s\S]{1,3}/g, Oe);
1208
+ }, Wt = (function() {
1209
+ function e(t, n, i, s) {
1210
+ var u = this;
1211
+ this.clear = n, this.timer = t(function() {
1212
+ u.timer && (u.timer = s(u.timer));
1213
+ }, i);
1214
+ }
1215
+ return e.prototype.isRunning = function() {
1216
+ return this.timer !== null;
1217
+ }, e.prototype.ensureAborted = function() {
1218
+ this.timer && (this.clear(this.timer), this.timer = null);
1219
+ }, e;
1220
+ })(), ge = Wt, re = /* @__PURE__ */ (function() {
1221
+ var e = function(t, n) {
1222
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, s) {
1223
+ i.__proto__ = s;
1224
+ } || function(i, s) {
1225
+ for (var u in s) s.hasOwnProperty(u) && (i[u] = s[u]);
1226
+ }, e(t, n);
1227
+ };
1228
+ return function(t, n) {
1229
+ e(t, n);
1230
+ function i() {
1231
+ this.constructor = t;
1232
+ }
1233
+ t.prototype = n === null ? Object.create(n) : (i.prototype = n.prototype, new i());
1234
+ };
1235
+ })();
1236
+ function ae(e) {
1237
+ window.clearTimeout(e);
1238
+ }
1239
+ function Ge(e) {
1240
+ window.clearInterval(e);
1241
+ }
1242
+ var Zt = (function(e) {
1243
+ re(t, e);
1244
+ function t(n, i) {
1245
+ return e.call(this, setTimeout, ae, n, function(s) {
1246
+ return i(), null;
1247
+ }) || this;
1248
+ }
1249
+ return t;
1250
+ })(ge), Le = (function(e) {
1251
+ re(t, e);
1252
+ function t(n, i) {
1253
+ return e.call(this, setInterval, Ge, n, function(s) {
1254
+ return i(), s;
1255
+ }) || this;
1256
+ }
1257
+ return t;
1258
+ })(ge), Ft = {
1259
+ now: function() {
1260
+ return Date.now ? Date.now() : (/* @__PURE__ */ new Date()).valueOf();
1261
+ },
1262
+ defer: function(e) {
1263
+ return new Zt(0, e);
1264
+ },
1265
+ method: function(e) {
1266
+ var t = Array.prototype.slice.call(arguments, 1);
1267
+ return function(n) {
1268
+ return n[e].apply(n, t.concat(arguments));
1269
+ };
1270
+ }
1271
+ }, St = Ft;
1272
+ function Y(e) {
1273
+ for (var t = [], n = 1; n < arguments.length; n++)
1274
+ t[n - 1] = arguments[n];
1275
+ for (var i = 0; i < t.length; i++) {
1276
+ var s = t[i];
1277
+ for (var u in s)
1278
+ s[u] && s[u].constructor && s[u].constructor === Object ? e[u] = Y(e[u] || {}, s[u]) : e[u] = s[u];
1279
+ }
1280
+ return e;
1281
+ }
1282
+ function zt() {
1283
+ for (var e = ["Pusher"], t = 0; t < arguments.length; t++)
1284
+ typeof arguments[t] == "string" ? e.push(arguments[t]) : e.push(ce(arguments[t]));
1285
+ return e.join(" : ");
1286
+ }
1287
+ function Ne(e, t) {
1288
+ var n = Array.prototype.indexOf;
1289
+ if (e === null)
1290
+ return -1;
1291
+ if (n && e.indexOf === n)
1292
+ return e.indexOf(t);
1293
+ for (var i = 0, s = e.length; i < s; i++)
1294
+ if (e[i] === t)
1295
+ return i;
1296
+ return -1;
1297
+ }
1298
+ function $t(e, t) {
1299
+ for (var n in e)
1300
+ Object.prototype.hasOwnProperty.call(e, n) && t(e[n], n, e);
1301
+ }
1302
+ function he(e) {
1303
+ var t = [];
1304
+ return $t(e, function(n, i) {
1305
+ t.push(i);
1306
+ }), t;
1307
+ }
1308
+ function _e(e) {
1309
+ var t = [];
1310
+ return $t(e, function(n) {
1311
+ t.push(n);
1312
+ }), t;
1313
+ }
1314
+ function fe(e, t, n) {
1315
+ for (var i = 0; i < e.length; i++)
1316
+ t.call(n || window, e[i], i, e);
1317
+ }
1318
+ function le(e, t) {
1319
+ for (var n = [], i = 0; i < e.length; i++)
1320
+ n.push(t(e[i], i, e, n));
1321
+ return n;
1322
+ }
1323
+ function Ke(e, t) {
1324
+ var n = {};
1325
+ return $t(e, function(i, s) {
1326
+ n[s] = t(i);
1327
+ }), n;
1328
+ }
1329
+ function Ze(e, t) {
1330
+ t = t || function(s) {
1331
+ return !!s;
1332
+ };
1333
+ for (var n = [], i = 0; i < e.length; i++)
1334
+ t(e[i], i, e, n) && n.push(e[i]);
1335
+ return n;
1336
+ }
1337
+ function Ve(e, t) {
1338
+ var n = {};
1339
+ return $t(e, function(i, s) {
1340
+ (t && t(i, s, e, n) || i) && (n[s] = i);
1341
+ }), n;
1342
+ }
1343
+ function an(e) {
1344
+ var t = [];
1345
+ return $t(e, function(n, i) {
1346
+ t.push([i, n]);
1347
+ }), t;
1348
+ }
1349
+ function Re(e, t) {
1350
+ for (var n = 0; n < e.length; n++)
1351
+ if (t(e[n], n, e))
1352
+ return !0;
1353
+ return !1;
1354
+ }
1355
+ function Qe(e, t) {
1356
+ for (var n = 0; n < e.length; n++)
1357
+ if (!t(e[n], n, e))
1358
+ return !1;
1359
+ return !0;
1360
+ }
1361
+ function ie(e) {
1362
+ return Ke(e, function(t) {
1363
+ return typeof t == "object" && (t = ce(t)), encodeURIComponent(Xe(t.toString()));
1364
+ });
1365
+ }
1366
+ function be(e) {
1367
+ var t = Ve(e, function(i) {
1368
+ return i !== void 0;
1369
+ }), n = le(an(ie(t)), St.method("join", "=")).join("&");
1370
+ return n;
1371
+ }
1372
+ function tn(e) {
1373
+ var t = [], n = [];
1374
+ return (function i(s, u) {
1375
+ var v, A, q;
1376
+ switch (typeof s) {
1377
+ case "object":
1378
+ if (!s)
1379
+ return null;
1380
+ for (v = 0; v < t.length; v += 1)
1381
+ if (t[v] === s)
1382
+ return { $ref: n[v] };
1383
+ if (t.push(s), n.push(u), Object.prototype.toString.apply(s) === "[object Array]")
1384
+ for (q = [], v = 0; v < s.length; v += 1)
1385
+ q[v] = i(s[v], u + "[" + v + "]");
1386
+ else {
1387
+ q = {};
1388
+ for (A in s)
1389
+ Object.prototype.hasOwnProperty.call(s, A) && (q[A] = i(s[A], u + "[" + JSON.stringify(A) + "]"));
1390
+ }
1391
+ return q;
1392
+ case "number":
1393
+ case "string":
1394
+ case "boolean":
1395
+ return s;
1396
+ }
1397
+ })(e, "$");
1398
+ }
1399
+ function ce(e) {
1400
+ try {
1401
+ return JSON.stringify(e);
1402
+ } catch {
1403
+ return JSON.stringify(tn(e));
1404
+ }
1405
+ }
1406
+ var Ie = (function() {
1407
+ function e() {
1408
+ this.globalLog = function(t) {
1409
+ window.console && window.console.log && window.console.log(t);
1410
+ };
1411
+ }
1412
+ return e.prototype.debug = function() {
1413
+ for (var t = [], n = 0; n < arguments.length; n++)
1414
+ t[n] = arguments[n];
1415
+ this.log(this.globalLog, t);
1416
+ }, e.prototype.warn = function() {
1417
+ for (var t = [], n = 0; n < arguments.length; n++)
1418
+ t[n] = arguments[n];
1419
+ this.log(this.globalLogWarn, t);
1420
+ }, e.prototype.error = function() {
1421
+ for (var t = [], n = 0; n < arguments.length; n++)
1422
+ t[n] = arguments[n];
1423
+ this.log(this.globalLogError, t);
1424
+ }, e.prototype.globalLogWarn = function(t) {
1425
+ window.console && window.console.warn ? window.console.warn(t) : this.globalLog(t);
1426
+ }, e.prototype.globalLogError = function(t) {
1427
+ window.console && window.console.error ? window.console.error(t) : this.globalLogWarn(t);
1428
+ }, e.prototype.log = function(t) {
1429
+ var n = zt.apply(this, arguments);
1430
+ if (Ae.log)
1431
+ Ae.log(n);
1432
+ else if (Ae.logToConsole) {
1433
+ var i = t.bind(this);
1434
+ i(n);
1435
+ }
1436
+ }, e;
1437
+ })(), wt = new Ie(), je = function(e, t, n, i, s) {
1438
+ (n.headers !== void 0 || n.headersProvider != null) && wt.warn("To send headers with the " + i.toString() + " request, you must use AJAX, rather than JSONP.");
1439
+ var u = e.nextAuthCallbackID.toString();
1440
+ e.nextAuthCallbackID++;
1441
+ var v = e.getDocument(), A = v.createElement("script");
1442
+ e.auth_callbacks[u] = function(lt) {
1443
+ s(null, lt);
1444
+ };
1445
+ var q = "Pusher.auth_callbacks['" + u + "']";
1446
+ A.src = n.endpoint + "?callback=" + encodeURIComponent(q) + "&" + t;
1447
+ var L = v.getElementsByTagName("head")[0] || v.documentElement;
1448
+ L.insertBefore(A, L.firstChild);
1449
+ }, me = je, Ue = (function() {
1450
+ function e(t) {
1451
+ this.src = t;
1452
+ }
1453
+ return e.prototype.send = function(t) {
1454
+ var n = this, i = "Error loading " + n.src;
1455
+ n.script = document.createElement("script"), n.script.id = t.id, n.script.src = n.src, n.script.type = "text/javascript", n.script.charset = "UTF-8", n.script.addEventListener ? (n.script.onerror = function() {
1456
+ t.callback(i);
1457
+ }, n.script.onload = function() {
1458
+ t.callback(null);
1459
+ }) : n.script.onreadystatechange = function() {
1460
+ (n.script.readyState === "loaded" || n.script.readyState === "complete") && t.callback(null);
1461
+ }, n.script.async === void 0 && document.attachEvent && /opera/i.test(navigator.userAgent) ? (n.errorScript = document.createElement("script"), n.errorScript.id = t.id + "_error", n.errorScript.text = t.name + "('" + i + "');", n.script.async = n.errorScript.async = !1) : n.script.async = !0;
1462
+ var s = document.getElementsByTagName("head")[0];
1463
+ s.insertBefore(n.script, s.firstChild), n.errorScript && s.insertBefore(n.errorScript, n.script.nextSibling);
1464
+ }, e.prototype.cleanup = function() {
1465
+ 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;
1466
+ }, e;
1467
+ })(), Me = Ue, en = (function() {
1468
+ function e(t, n) {
1469
+ this.url = t, this.data = n;
1470
+ }
1471
+ return e.prototype.send = function(t) {
1472
+ if (!this.request) {
1473
+ var n = be(this.data), i = this.url + "/" + t.number + "?" + n;
1474
+ this.request = st.createScriptRequest(i), this.request.send(t);
1475
+ }
1476
+ }, e.prototype.cleanup = function() {
1477
+ this.request && this.request.cleanup();
1478
+ }, e;
1479
+ })(), fn = en, Be = function(e, t) {
1480
+ return function(n, i) {
1481
+ var s = "http" + (t ? "s" : "") + "://", u = s + (e.host || e.options.host) + e.options.path, v = st.createJSONPRequest(u, n), A = st.ScriptReceivers.create(function(q, L) {
1482
+ y.remove(A), v.cleanup(), L && L.host && (e.host = L.host), i && i(q, L);
1483
+ });
1484
+ v.send(A);
1485
+ };
1486
+ }, De = {
1487
+ name: "jsonp",
1488
+ getAgent: Be
1489
+ }, we = De;
1490
+ function oe(e, t, n) {
1491
+ var i = e + (t.useTLS ? "s" : ""), s = t.useTLS ? t.hostTLS : t.hostNonTLS;
1492
+ return i + "://" + s + n;
1493
+ }
1494
+ function Vt(e, t) {
1495
+ var n = "/app/" + e, i = "?protocol=" + it.PROTOCOL + "&client=js&version=" + it.VERSION + (t ? "&" + t : "");
1496
+ return n + i;
1497
+ }
1498
+ var de = {
1499
+ getInitial: function(e, t) {
1500
+ var n = (t.httpPath || "") + Vt(e, "flash=false");
1501
+ return oe("ws", t, n);
1502
+ }
1503
+ }, Se = {
1504
+ getInitial: function(e, t) {
1505
+ var n = (t.httpPath || "/pusher") + Vt(e);
1506
+ return oe("http", t, n);
1507
+ }
1508
+ }, pe = {
1509
+ getInitial: function(e, t) {
1510
+ return oe("http", t, t.httpPath || "/pusher");
1511
+ },
1512
+ getPath: function(e, t) {
1513
+ return Vt(e);
1514
+ }
1515
+ }, xe = (function() {
1516
+ function e() {
1517
+ this._callbacks = {};
1518
+ }
1519
+ return e.prototype.get = function(t) {
1520
+ return this._callbacks[Ce(t)];
1521
+ }, e.prototype.add = function(t, n, i) {
1522
+ var s = Ce(t);
1523
+ this._callbacks[s] = this._callbacks[s] || [], this._callbacks[s].push({
1524
+ fn: n,
1525
+ context: i
1526
+ });
1527
+ }, e.prototype.remove = function(t, n, i) {
1528
+ if (!t && !n && !i) {
1529
+ this._callbacks = {};
1530
+ return;
1531
+ }
1532
+ var s = t ? [Ce(t)] : he(this._callbacks);
1533
+ n || i ? this.removeCallback(s, n, i) : this.removeAllCallbacks(s);
1534
+ }, e.prototype.removeCallback = function(t, n, i) {
1535
+ fe(t, function(s) {
1536
+ this._callbacks[s] = Ze(this._callbacks[s] || [], function(u) {
1537
+ return n && n !== u.fn || i && i !== u.context;
1538
+ }), this._callbacks[s].length === 0 && delete this._callbacks[s];
1539
+ }, this);
1540
+ }, e.prototype.removeAllCallbacks = function(t) {
1541
+ fe(t, function(n) {
1542
+ delete this._callbacks[n];
1543
+ }, this);
1544
+ }, e;
1545
+ })(), He = xe;
1546
+ function Ce(e) {
1547
+ return "_" + e;
1548
+ }
1549
+ var cn = (function() {
1550
+ function e(t) {
1551
+ this.callbacks = new He(), this.global_callbacks = [], this.failThrough = t;
1552
+ }
1553
+ return e.prototype.bind = function(t, n, i) {
1554
+ return this.callbacks.add(t, n, i), this;
1555
+ }, e.prototype.bind_global = function(t) {
1556
+ return this.global_callbacks.push(t), this;
1557
+ }, e.prototype.unbind = function(t, n, i) {
1558
+ return this.callbacks.remove(t, n, i), this;
1559
+ }, e.prototype.unbind_global = function(t) {
1560
+ return t ? (this.global_callbacks = Ze(this.global_callbacks || [], function(n) {
1561
+ return n !== t;
1562
+ }), this) : (this.global_callbacks = [], this);
1563
+ }, e.prototype.unbind_all = function() {
1564
+ return this.unbind(), this.unbind_global(), this;
1565
+ }, e.prototype.emit = function(t, n, i) {
1566
+ for (var s = 0; s < this.global_callbacks.length; s++)
1567
+ this.global_callbacks[s](t, n);
1568
+ var u = this.callbacks.get(t), v = [];
1569
+ if (i ? v.push(n, i) : n && v.push(n), u && u.length > 0)
1570
+ for (var s = 0; s < u.length; s++)
1571
+ u[s].fn.apply(u[s].context || window, v);
1572
+ else this.failThrough && this.failThrough(t, n);
1573
+ return this;
1574
+ }, e;
1575
+ })(), Gt = cn, Kt = /* @__PURE__ */ (function() {
1576
+ var e = function(t, n) {
1577
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, s) {
1578
+ i.__proto__ = s;
1579
+ } || function(i, s) {
1580
+ for (var u in s) s.hasOwnProperty(u) && (i[u] = s[u]);
1581
+ }, e(t, n);
1582
+ };
1583
+ return function(t, n) {
1584
+ e(t, n);
1585
+ function i() {
1586
+ this.constructor = t;
1587
+ }
1588
+ t.prototype = n === null ? Object.create(n) : (i.prototype = n.prototype, new i());
1589
+ };
1590
+ })(), se = (function(e) {
1591
+ Kt(t, e);
1592
+ function t(n, i, s, u, v) {
1593
+ var A = e.call(this) || this;
1594
+ return A.initialize = st.transportConnectionInitializer, A.hooks = n, A.name = i, A.priority = s, A.key = u, A.options = v, A.state = "new", A.timeline = v.timeline, A.activityTimeout = v.activityTimeout, A.id = A.timeline.generateUniqueID(), A;
1595
+ }
1596
+ return t.prototype.handlesActivityChecks = function() {
1597
+ return !!this.hooks.handlesActivityChecks;
1598
+ }, t.prototype.supportsPing = function() {
1599
+ return !!this.hooks.supportsPing;
1600
+ }, t.prototype.connect = function() {
1601
+ var n = this;
1602
+ if (this.socket || this.state !== "initialized")
1603
+ return !1;
1604
+ var i = this.hooks.urls.getInitial(this.key, this.options);
1605
+ try {
1606
+ this.socket = this.hooks.getSocket(i, this.options);
1607
+ } catch (s) {
1608
+ return St.defer(function() {
1609
+ n.onError(s), n.changeState("closed");
1610
+ }), !1;
1611
+ }
1612
+ return this.bindListeners(), wt.debug("Connecting", { transport: this.name, url: i }), this.changeState("connecting"), !0;
1613
+ }, t.prototype.close = function() {
1614
+ return this.socket ? (this.socket.close(), !0) : !1;
1615
+ }, t.prototype.send = function(n) {
1616
+ var i = this;
1617
+ return this.state === "open" ? (St.defer(function() {
1618
+ i.socket && i.socket.send(n);
1619
+ }), !0) : !1;
1620
+ }, t.prototype.ping = function() {
1621
+ this.state === "open" && this.supportsPing() && this.socket.ping();
1622
+ }, t.prototype.onOpen = function() {
1623
+ this.hooks.beforeOpen && this.hooks.beforeOpen(this.socket, this.hooks.urls.getPath(this.key, this.options)), this.changeState("open"), this.socket.onopen = void 0;
1624
+ }, t.prototype.onError = function(n) {
1625
+ this.emit("error", { type: "WebSocketError", error: n }), this.timeline.error(this.buildTimelineMessage({ error: n.toString() }));
1626
+ }, t.prototype.onClose = function(n) {
1627
+ n ? this.changeState("closed", {
1628
+ code: n.code,
1629
+ reason: n.reason,
1630
+ wasClean: n.wasClean
1631
+ }) : this.changeState("closed"), this.unbindListeners(), this.socket = void 0;
1632
+ }, t.prototype.onMessage = function(n) {
1633
+ this.emit("message", n);
1634
+ }, t.prototype.onActivity = function() {
1635
+ this.emit("activity");
1636
+ }, t.prototype.bindListeners = function() {
1637
+ var n = this;
1638
+ this.socket.onopen = function() {
1639
+ n.onOpen();
1640
+ }, this.socket.onerror = function(i) {
1641
+ n.onError(i);
1642
+ }, this.socket.onclose = function(i) {
1643
+ n.onClose(i);
1644
+ }, this.socket.onmessage = function(i) {
1645
+ n.onMessage(i);
1646
+ }, this.supportsPing() && (this.socket.onactivity = function() {
1647
+ n.onActivity();
1648
+ });
1649
+ }, t.prototype.unbindListeners = function() {
1650
+ 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));
1651
+ }, t.prototype.changeState = function(n, i) {
1652
+ this.state = n, this.timeline.info(this.buildTimelineMessage({
1653
+ state: n,
1654
+ params: i
1655
+ })), this.emit(n, i);
1656
+ }, t.prototype.buildTimelineMessage = function(n) {
1657
+ return Y({ cid: this.id }, n);
1658
+ }, t;
1659
+ })(Gt), ue = se, ze = (function() {
1660
+ function e(t) {
1661
+ this.hooks = t;
1662
+ }
1663
+ return e.prototype.isSupported = function(t) {
1664
+ return this.hooks.isSupported(t);
1665
+ }, e.prototype.createConnection = function(t, n, i, s) {
1666
+ return new ue(this.hooks, t, n, i, s);
1667
+ }, e;
1668
+ })(), Qt = ze, nn = new Qt({
1669
+ urls: de,
1670
+ handlesActivityChecks: !1,
1671
+ supportsPing: !1,
1672
+ isInitialized: function() {
1673
+ return !!st.getWebSocketAPI();
1674
+ },
1675
+ isSupported: function() {
1676
+ return !!st.getWebSocketAPI();
1677
+ },
1678
+ getSocket: function(e) {
1679
+ return st.createWebSocket(e);
1680
+ }
1681
+ }), rn = {
1682
+ urls: Se,
1683
+ handlesActivityChecks: !1,
1684
+ supportsPing: !0,
1685
+ isInitialized: function() {
1686
+ return !0;
1687
+ }
1688
+ }, Bt = Y({
1689
+ getSocket: function(e) {
1690
+ return st.HTTPFactory.createStreamingSocket(e);
1691
+ }
1692
+ }, rn), qe = Y({
1693
+ getSocket: function(e) {
1694
+ return st.HTTPFactory.createPollingSocket(e);
1695
+ }
1696
+ }, rn), o = {
1697
+ isSupported: function() {
1698
+ return st.isXHRSupported();
1699
+ }
1700
+ }, f = new Qt(Y({}, Bt, o)), a = new Qt(Y({}, qe, o)), r = {
1701
+ ws: nn,
1702
+ xhr_streaming: f,
1703
+ xhr_polling: a
1704
+ }, c = r, l = new Qt({
1705
+ file: "sockjs",
1706
+ urls: pe,
1707
+ handlesActivityChecks: !0,
1708
+ supportsPing: !1,
1709
+ isSupported: function() {
1710
+ return !0;
1711
+ },
1712
+ isInitialized: function() {
1713
+ return window.SockJS !== void 0;
1714
+ },
1715
+ getSocket: function(e, t) {
1716
+ return new window.SockJS(e, null, {
1717
+ js_path: Q.getPath("sockjs", {
1718
+ useTLS: t.useTLS
1719
+ }),
1720
+ ignore_null_origin: t.ignoreNullOrigin
1721
+ });
1722
+ },
1723
+ beforeOpen: function(e, t) {
1724
+ e.send(JSON.stringify({
1725
+ path: t
1726
+ }));
1727
+ }
1728
+ }), d = {
1729
+ isSupported: function(e) {
1730
+ var t = st.isXDRSupported(e.useTLS);
1731
+ return t;
1732
+ }
1733
+ }, _ = new Qt(Y({}, Bt, d)), C = new Qt(Y({}, qe, d));
1734
+ c.xdr_streaming = _, c.xdr_polling = C, c.sockjs = l;
1735
+ var M = c, O = /* @__PURE__ */ (function() {
1736
+ var e = function(t, n) {
1737
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, s) {
1738
+ i.__proto__ = s;
1739
+ } || function(i, s) {
1740
+ for (var u in s) s.hasOwnProperty(u) && (i[u] = s[u]);
1741
+ }, e(t, n);
1742
+ };
1743
+ return function(t, n) {
1744
+ e(t, n);
1745
+ function i() {
1746
+ this.constructor = t;
1747
+ }
1748
+ t.prototype = n === null ? Object.create(n) : (i.prototype = n.prototype, new i());
1749
+ };
1750
+ })(), gt = (function(e) {
1751
+ O(t, e);
1752
+ function t() {
1753
+ var n = e.call(this) || this, i = n;
1754
+ return window.addEventListener !== void 0 && (window.addEventListener("online", function() {
1755
+ i.emit("online");
1756
+ }, !1), window.addEventListener("offline", function() {
1757
+ i.emit("offline");
1758
+ }, !1)), n;
1759
+ }
1760
+ return t.prototype.isOnline = function() {
1761
+ return window.navigator.onLine === void 0 ? !0 : window.navigator.onLine;
1762
+ }, t;
1763
+ })(Gt), N = new gt(), J = (function() {
1764
+ function e(t, n, i) {
1765
+ this.manager = t, this.transport = n, this.minPingDelay = i.minPingDelay, this.maxPingDelay = i.maxPingDelay, this.pingDelay = void 0;
1766
+ }
1767
+ return e.prototype.createConnection = function(t, n, i, s) {
1768
+ var u = this;
1769
+ s = Y({}, s, {
1770
+ activityTimeout: this.pingDelay
1771
+ });
1772
+ var v = this.transport.createConnection(t, n, i, s), A = null, q = function() {
1773
+ v.unbind("open", q), v.bind("closed", L), A = St.now();
1774
+ }, L = function(lt) {
1775
+ if (v.unbind("closed", L), lt.code === 1002 || lt.code === 1003)
1776
+ u.manager.reportDeath();
1777
+ else if (!lt.wasClean && A) {
1778
+ var Rt = St.now() - A;
1779
+ Rt < 2 * u.maxPingDelay && (u.manager.reportDeath(), u.pingDelay = Math.max(Rt / 2, u.minPingDelay));
1780
+ }
1781
+ };
1782
+ return v.bind("open", q), v;
1783
+ }, e.prototype.isSupported = function(t) {
1784
+ return this.manager.isAlive() && this.transport.isSupported(t);
1785
+ }, e;
1786
+ })(), X = J, V = {
1787
+ decodeMessage: function(e) {
1788
+ try {
1789
+ var t = JSON.parse(e.data), n = t.data;
1790
+ if (typeof n == "string")
1791
+ try {
1792
+ n = JSON.parse(t.data);
1793
+ } catch {
1794
+ }
1795
+ var i = {
1796
+ event: t.event,
1797
+ channel: t.channel,
1798
+ data: n
1799
+ };
1800
+ return t.user_id && (i.user_id = t.user_id), i;
1801
+ } catch (s) {
1802
+ throw { type: "MessageParseError", error: s, data: e.data };
1803
+ }
1804
+ },
1805
+ encodeMessage: function(e) {
1806
+ return JSON.stringify(e);
1807
+ },
1808
+ processHandshake: function(e) {
1809
+ var t = V.decodeMessage(e);
1810
+ if (t.event === "pusher:connection_established") {
1811
+ if (!t.data.activity_timeout)
1812
+ throw "No activity timeout specified in handshake";
1813
+ return {
1814
+ action: "connected",
1815
+ id: t.data.socket_id,
1816
+ activityTimeout: t.data.activity_timeout * 1e3
1817
+ };
1818
+ } else {
1819
+ if (t.event === "pusher:error")
1820
+ return {
1821
+ action: this.getCloseAction(t.data),
1822
+ error: this.getCloseError(t.data)
1823
+ };
1824
+ throw "Invalid handshake";
1825
+ }
1826
+ },
1827
+ getCloseAction: function(e) {
1828
+ return e.code < 4e3 ? e.code >= 1002 && e.code <= 1004 ? "backoff" : null : e.code === 4e3 ? "tls_only" : e.code < 4100 ? "refused" : e.code < 4200 ? "backoff" : e.code < 4300 ? "retry" : "refused";
1829
+ },
1830
+ getCloseError: function(e) {
1831
+ return e.code !== 1e3 && e.code !== 1001 ? {
1832
+ type: "PusherError",
1833
+ data: {
1834
+ code: e.code,
1835
+ message: e.reason || e.message
1836
+ }
1837
+ } : null;
1838
+ }
1839
+ }, F = V, W = /* @__PURE__ */ (function() {
1840
+ var e = function(t, n) {
1841
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, s) {
1842
+ i.__proto__ = s;
1843
+ } || function(i, s) {
1844
+ for (var u in s) s.hasOwnProperty(u) && (i[u] = s[u]);
1845
+ }, e(t, n);
1846
+ };
1847
+ return function(t, n) {
1848
+ e(t, n);
1849
+ function i() {
1850
+ this.constructor = t;
1851
+ }
1852
+ t.prototype = n === null ? Object.create(n) : (i.prototype = n.prototype, new i());
1853
+ };
1854
+ })(), K = (function(e) {
1855
+ W(t, e);
1856
+ function t(n, i) {
1857
+ var s = e.call(this) || this;
1858
+ return s.id = n, s.transport = i, s.activityTimeout = i.activityTimeout, s.bindListeners(), s;
1859
+ }
1860
+ return t.prototype.handlesActivityChecks = function() {
1861
+ return this.transport.handlesActivityChecks();
1862
+ }, t.prototype.send = function(n) {
1863
+ return this.transport.send(n);
1864
+ }, t.prototype.send_event = function(n, i, s) {
1865
+ var u = { event: n, data: i };
1866
+ return s && (u.channel = s), wt.debug("Event sent", u), this.send(F.encodeMessage(u));
1867
+ }, t.prototype.ping = function() {
1868
+ this.transport.supportsPing() ? this.transport.ping() : this.send_event("pusher:ping", {});
1869
+ }, t.prototype.close = function() {
1870
+ this.transport.close();
1871
+ }, t.prototype.bindListeners = function() {
1872
+ var n = this, i = {
1873
+ message: function(u) {
1874
+ var v;
1875
+ try {
1876
+ v = F.decodeMessage(u);
1877
+ } catch (A) {
1878
+ n.emit("error", {
1879
+ type: "MessageParseError",
1880
+ error: A,
1881
+ data: u.data
1882
+ });
1883
+ }
1884
+ if (v !== void 0) {
1885
+ switch (wt.debug("Event recd", v), v.event) {
1886
+ case "pusher:error":
1887
+ n.emit("error", {
1888
+ type: "PusherError",
1889
+ data: v.data
1890
+ });
1891
+ break;
1892
+ case "pusher:ping":
1893
+ n.emit("ping");
1894
+ break;
1895
+ case "pusher:pong":
1896
+ n.emit("pong");
1897
+ break;
1898
+ }
1899
+ n.emit("message", v);
1900
+ }
1901
+ },
1902
+ activity: function() {
1903
+ n.emit("activity");
1904
+ },
1905
+ error: function(u) {
1906
+ n.emit("error", u);
1907
+ },
1908
+ closed: function(u) {
1909
+ s(), u && u.code && n.handleCloseEvent(u), n.transport = null, n.emit("closed");
1910
+ }
1911
+ }, s = function() {
1912
+ $t(i, function(u, v) {
1913
+ n.transport.unbind(v, u);
1914
+ });
1915
+ };
1916
+ $t(i, function(u, v) {
1917
+ n.transport.bind(v, u);
1918
+ });
1919
+ }, t.prototype.handleCloseEvent = function(n) {
1920
+ var i = F.getCloseAction(n), s = F.getCloseError(n);
1921
+ s && this.emit("error", s), i && this.emit(i, { action: i, error: s });
1922
+ }, t;
1923
+ })(Gt), G = K, R = (function() {
1924
+ function e(t, n) {
1925
+ this.transport = t, this.callback = n, this.bindListeners();
1926
+ }
1927
+ return e.prototype.close = function() {
1928
+ this.unbindListeners(), this.transport.close();
1929
+ }, e.prototype.bindListeners = function() {
1930
+ var t = this;
1931
+ this.onMessage = function(n) {
1932
+ t.unbindListeners();
1933
+ var i;
1934
+ try {
1935
+ i = F.processHandshake(n);
1936
+ } catch (s) {
1937
+ t.finish("error", { error: s }), t.transport.close();
1938
+ return;
1939
+ }
1940
+ i.action === "connected" ? t.finish("connected", {
1941
+ connection: new G(i.id, t.transport),
1942
+ activityTimeout: i.activityTimeout
1943
+ }) : (t.finish(i.action, { error: i.error }), t.transport.close());
1944
+ }, this.onClosed = function(n) {
1945
+ t.unbindListeners();
1946
+ var i = F.getCloseAction(n) || "backoff", s = F.getCloseError(n);
1947
+ t.finish(i, { error: s });
1948
+ }, this.transport.bind("message", this.onMessage), this.transport.bind("closed", this.onClosed);
1949
+ }, e.prototype.unbindListeners = function() {
1950
+ this.transport.unbind("message", this.onMessage), this.transport.unbind("closed", this.onClosed);
1951
+ }, e.prototype.finish = function(t, n) {
1952
+ this.callback(Y({ transport: this.transport, action: t }, n));
1953
+ }, e;
1954
+ })(), B = R, k = (function() {
1955
+ function e(t, n) {
1956
+ this.timeline = t, this.options = n || {};
1957
+ }
1958
+ return e.prototype.send = function(t, n) {
1959
+ this.timeline.isEmpty() || this.timeline.send(st.TimelineTransport.getAgent(this, t), n);
1960
+ }, e;
1961
+ })(), j = k, U = /* @__PURE__ */ (function() {
1962
+ var e = function(t, n) {
1963
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, s) {
1964
+ i.__proto__ = s;
1965
+ } || function(i, s) {
1966
+ for (var u in s) s.hasOwnProperty(u) && (i[u] = s[u]);
1967
+ }, e(t, n);
1968
+ };
1969
+ return function(t, n) {
1970
+ e(t, n);
1971
+ function i() {
1972
+ this.constructor = t;
1973
+ }
1974
+ t.prototype = n === null ? Object.create(n) : (i.prototype = n.prototype, new i());
1975
+ };
1976
+ })(), E = (function(e) {
1977
+ U(t, e);
1978
+ function t(n, i) {
1979
+ var s = e.call(this, function(u, v) {
1980
+ wt.debug("No callbacks on " + n + " for " + u);
1981
+ }) || this;
1982
+ return s.name = n, s.pusher = i, s.subscribed = !1, s.subscriptionPending = !1, s.subscriptionCancelled = !1, s;
1983
+ }
1984
+ return t.prototype.authorize = function(n, i) {
1985
+ return i(null, { auth: "" });
1986
+ }, t.prototype.trigger = function(n, i) {
1987
+ if (n.indexOf("client-") !== 0)
1988
+ throw new Z("Event '" + n + "' does not start with 'client-'");
1989
+ if (!this.subscribed) {
1990
+ var s = H.buildLogSuffix("triggeringClientEvents");
1991
+ wt.warn("Client event triggered before channel 'subscription_succeeded' event . " + s);
1992
+ }
1993
+ return this.pusher.send_event(n, i, this.name);
1994
+ }, t.prototype.disconnect = function() {
1995
+ this.subscribed = !1, this.subscriptionPending = !1;
1996
+ }, t.prototype.handleEvent = function(n) {
1997
+ var i = n.event, s = n.data;
1998
+ if (i === "pusher_internal:subscription_succeeded")
1999
+ this.handleSubscriptionSucceededEvent(n);
2000
+ else if (i === "pusher_internal:subscription_count")
2001
+ this.handleSubscriptionCountEvent(n);
2002
+ else if (i.indexOf("pusher_internal:") !== 0) {
2003
+ var u = {};
2004
+ this.emit(i, s, u);
2005
+ }
2006
+ }, t.prototype.handleSubscriptionSucceededEvent = function(n) {
2007
+ this.subscriptionPending = !1, this.subscribed = !0, this.subscriptionCancelled ? this.pusher.unsubscribe(this.name) : this.emit("pusher:subscription_succeeded", n.data);
2008
+ }, t.prototype.handleSubscriptionCountEvent = function(n) {
2009
+ n.data.subscription_count && (this.subscriptionCount = n.data.subscription_count), this.emit("pusher:subscription_count", n.data);
2010
+ }, t.prototype.subscribe = function() {
2011
+ var n = this;
2012
+ this.subscribed || (this.subscriptionPending = !0, this.subscriptionCancelled = !1, this.authorize(this.pusher.connection.socket_id, function(i, s) {
2013
+ i ? (n.subscriptionPending = !1, wt.error(i.toString()), n.emit("pusher:subscription_error", Object.assign({}, {
2014
+ type: "AuthError",
2015
+ error: i.message
2016
+ }, i instanceof jt ? { status: i.status } : {}))) : n.pusher.send_event("pusher:subscribe", {
2017
+ auth: s.auth,
2018
+ channel_data: s.channel_data,
2019
+ channel: n.name
2020
+ });
2021
+ }));
2022
+ }, t.prototype.unsubscribe = function() {
2023
+ this.subscribed = !1, this.pusher.send_event("pusher:unsubscribe", {
2024
+ channel: this.name
2025
+ });
2026
+ }, t.prototype.cancelSubscription = function() {
2027
+ this.subscriptionCancelled = !0;
2028
+ }, t.prototype.reinstateSubscription = function() {
2029
+ this.subscriptionCancelled = !1;
2030
+ }, t;
2031
+ })(Gt), p = E, x = /* @__PURE__ */ (function() {
2032
+ var e = function(t, n) {
2033
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, s) {
2034
+ i.__proto__ = s;
2035
+ } || function(i, s) {
2036
+ for (var u in s) s.hasOwnProperty(u) && (i[u] = s[u]);
2037
+ }, e(t, n);
2038
+ };
2039
+ return function(t, n) {
2040
+ e(t, n);
2041
+ function i() {
2042
+ this.constructor = t;
2043
+ }
2044
+ t.prototype = n === null ? Object.create(n) : (i.prototype = n.prototype, new i());
2045
+ };
2046
+ })(), m = (function(e) {
2047
+ x(t, e);
2048
+ function t() {
2049
+ return e !== null && e.apply(this, arguments) || this;
2050
+ }
2051
+ return t.prototype.authorize = function(n, i) {
2052
+ return this.pusher.config.channelAuthorizer({
2053
+ channelName: this.name,
2054
+ socketId: n
2055
+ }, i);
2056
+ }, t;
2057
+ })(p), g = m, b = (function() {
2058
+ function e() {
2059
+ this.reset();
2060
+ }
2061
+ return e.prototype.get = function(t) {
2062
+ return Object.prototype.hasOwnProperty.call(this.members, t) ? {
2063
+ id: t,
2064
+ info: this.members[t]
2065
+ } : null;
2066
+ }, e.prototype.each = function(t) {
2067
+ var n = this;
2068
+ $t(this.members, function(i, s) {
2069
+ t(n.get(s));
2070
+ });
2071
+ }, e.prototype.setMyID = function(t) {
2072
+ this.myID = t;
2073
+ }, e.prototype.onSubscription = function(t) {
2074
+ this.members = t.presence.hash, this.count = t.presence.count, this.me = this.get(this.myID);
2075
+ }, e.prototype.addMember = function(t) {
2076
+ return this.get(t.user_id) === null && this.count++, this.members[t.user_id] = t.user_info, this.get(t.user_id);
2077
+ }, e.prototype.removeMember = function(t) {
2078
+ var n = this.get(t.user_id);
2079
+ return n && (delete this.members[t.user_id], this.count--), n;
2080
+ }, e.prototype.reset = function() {
2081
+ this.members = {}, this.count = 0, this.myID = null, this.me = null;
2082
+ }, e;
2083
+ })(), w = b, z = /* @__PURE__ */ (function() {
2084
+ var e = function(t, n) {
2085
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, s) {
2086
+ i.__proto__ = s;
2087
+ } || function(i, s) {
2088
+ for (var u in s) s.hasOwnProperty(u) && (i[u] = s[u]);
2089
+ }, e(t, n);
2090
+ };
2091
+ return function(t, n) {
2092
+ e(t, n);
2093
+ function i() {
2094
+ this.constructor = t;
2095
+ }
2096
+ t.prototype = n === null ? Object.create(n) : (i.prototype = n.prototype, new i());
2097
+ };
2098
+ })(), tt = function(e, t, n, i) {
2099
+ function s(u) {
2100
+ return u instanceof n ? u : new n(function(v) {
2101
+ v(u);
2102
+ });
2103
+ }
2104
+ return new (n || (n = Promise))(function(u, v) {
2105
+ function A(lt) {
2106
+ try {
2107
+ L(i.next(lt));
2108
+ } catch (Rt) {
2109
+ v(Rt);
2110
+ }
2111
+ }
2112
+ function q(lt) {
2113
+ try {
2114
+ L(i.throw(lt));
2115
+ } catch (Rt) {
2116
+ v(Rt);
2117
+ }
2118
+ }
2119
+ function L(lt) {
2120
+ lt.done ? u(lt.value) : s(lt.value).then(A, q);
2121
+ }
2122
+ L((i = i.apply(e, t || [])).next());
2123
+ });
2124
+ }, rt = function(e, t) {
2125
+ var n = { label: 0, sent: function() {
2126
+ if (u[0] & 1) throw u[1];
2127
+ return u[1];
2128
+ }, trys: [], ops: [] }, i, s, u, v;
2129
+ return v = { next: A(0), throw: A(1), return: A(2) }, typeof Symbol == "function" && (v[Symbol.iterator] = function() {
2130
+ return this;
2131
+ }), v;
2132
+ function A(L) {
2133
+ return function(lt) {
2134
+ return q([L, lt]);
2135
+ };
2136
+ }
2137
+ function q(L) {
2138
+ if (i) throw new TypeError("Generator is already executing.");
2139
+ for (; n; ) try {
2140
+ if (i = 1, s && (u = L[0] & 2 ? s.return : L[0] ? s.throw || ((u = s.return) && u.call(s), 0) : s.next) && !(u = u.call(s, L[1])).done) return u;
2141
+ switch (s = 0, u && (L = [L[0] & 2, u.value]), L[0]) {
2142
+ case 0:
2143
+ case 1:
2144
+ u = L;
2145
+ break;
2146
+ case 4:
2147
+ return n.label++, { value: L[1], done: !1 };
2148
+ case 5:
2149
+ n.label++, s = L[1], L = [0];
2150
+ continue;
2151
+ case 7:
2152
+ L = n.ops.pop(), n.trys.pop();
2153
+ continue;
2154
+ default:
2155
+ if (u = n.trys, !(u = u.length > 0 && u[u.length - 1]) && (L[0] === 6 || L[0] === 2)) {
2156
+ n = 0;
2157
+ continue;
2158
+ }
2159
+ if (L[0] === 3 && (!u || L[1] > u[0] && L[1] < u[3])) {
2160
+ n.label = L[1];
2161
+ break;
2162
+ }
2163
+ if (L[0] === 6 && n.label < u[1]) {
2164
+ n.label = u[1], u = L;
2165
+ break;
2166
+ }
2167
+ if (u && n.label < u[2]) {
2168
+ n.label = u[2], n.ops.push(L);
2169
+ break;
2170
+ }
2171
+ u[2] && n.ops.pop(), n.trys.pop();
2172
+ continue;
2173
+ }
2174
+ L = t.call(e, n);
2175
+ } catch (lt) {
2176
+ L = [6, lt], s = 0;
2177
+ } finally {
2178
+ i = u = 0;
2179
+ }
2180
+ if (L[0] & 5) throw L[1];
2181
+ return { value: L[0] ? L[1] : void 0, done: !0 };
2182
+ }
2183
+ }, et = (function(e) {
2184
+ z(t, e);
2185
+ function t(n, i) {
2186
+ var s = e.call(this, n, i) || this;
2187
+ return s.members = new w(), s;
2188
+ }
2189
+ return t.prototype.authorize = function(n, i) {
2190
+ var s = this;
2191
+ e.prototype.authorize.call(this, n, function(u, v) {
2192
+ return tt(s, void 0, void 0, function() {
2193
+ var A, q;
2194
+ return rt(this, function(L) {
2195
+ switch (L.label) {
2196
+ case 0:
2197
+ return u ? [3, 3] : (v = v, v.channel_data == null ? [3, 1] : (A = JSON.parse(v.channel_data), this.members.setMyID(A.user_id), [3, 3]));
2198
+ case 1:
2199
+ return [4, this.pusher.user.signinDonePromise];
2200
+ case 2:
2201
+ if (L.sent(), this.pusher.user.user_data != null)
2202
+ this.members.setMyID(this.pusher.user.user_data.id);
2203
+ else
2204
+ return q = H.buildLogSuffix("authorizationEndpoint"), wt.error("Invalid auth response for channel '" + this.name + "', " + ("expected 'channel_data' field. " + q + ", ") + "or the user should be signed in."), i("Invalid auth response"), [2];
2205
+ L.label = 3;
2206
+ case 3:
2207
+ return i(u, v), [2];
2208
+ }
2209
+ });
2210
+ });
2211
+ });
2212
+ }, t.prototype.handleEvent = function(n) {
2213
+ var i = n.event;
2214
+ if (i.indexOf("pusher_internal:") === 0)
2215
+ this.handleInternalEvent(n);
2216
+ else {
2217
+ var s = n.data, u = {};
2218
+ n.user_id && (u.user_id = n.user_id), this.emit(i, s, u);
2219
+ }
2220
+ }, t.prototype.handleInternalEvent = function(n) {
2221
+ var i = n.event, s = n.data;
2222
+ switch (i) {
2223
+ case "pusher_internal:subscription_succeeded":
2224
+ this.handleSubscriptionSucceededEvent(n);
2225
+ break;
2226
+ case "pusher_internal:subscription_count":
2227
+ this.handleSubscriptionCountEvent(n);
2228
+ break;
2229
+ case "pusher_internal:member_added":
2230
+ var u = this.members.addMember(s);
2231
+ this.emit("pusher:member_added", u);
2232
+ break;
2233
+ case "pusher_internal:member_removed":
2234
+ var v = this.members.removeMember(s);
2235
+ v && this.emit("pusher:member_removed", v);
2236
+ break;
2237
+ }
2238
+ }, t.prototype.handleSubscriptionSucceededEvent = function(n) {
2239
+ this.subscriptionPending = !1, this.subscribed = !0, this.subscriptionCancelled ? this.pusher.unsubscribe(this.name) : (this.members.onSubscription(n.data), this.emit("pusher:subscription_succeeded", this.members));
2240
+ }, t.prototype.disconnect = function() {
2241
+ this.members.reset(), e.prototype.disconnect.call(this);
2242
+ }, t;
2243
+ })(g), h = et, ft = dt(1), ht = dt(0), _t = /* @__PURE__ */ (function() {
2244
+ var e = function(t, n) {
2245
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, s) {
2246
+ i.__proto__ = s;
2247
+ } || function(i, s) {
2248
+ for (var u in s) s.hasOwnProperty(u) && (i[u] = s[u]);
2249
+ }, e(t, n);
2250
+ };
2251
+ return function(t, n) {
2252
+ e(t, n);
2253
+ function i() {
2254
+ this.constructor = t;
2255
+ }
2256
+ t.prototype = n === null ? Object.create(n) : (i.prototype = n.prototype, new i());
2257
+ };
2258
+ })(), ot = (function(e) {
2259
+ _t(t, e);
2260
+ function t(n, i, s) {
2261
+ var u = e.call(this, n, i) || this;
2262
+ return u.key = null, u.nacl = s, u;
2263
+ }
2264
+ return t.prototype.authorize = function(n, i) {
2265
+ var s = this;
2266
+ e.prototype.authorize.call(this, n, function(u, v) {
2267
+ if (u) {
2268
+ i(u, v);
2269
+ return;
2270
+ }
2271
+ var A = v.shared_secret;
2272
+ if (!A) {
2273
+ i(new Error("No shared_secret key in auth payload for encrypted channel: " + s.name), null);
2274
+ return;
2275
+ }
2276
+ s.key = Object(ht.decode)(A), delete v.shared_secret, i(null, v);
2277
+ });
2278
+ }, t.prototype.trigger = function(n, i) {
2279
+ throw new Xt("Client events are not currently supported for encrypted channels");
2280
+ }, t.prototype.handleEvent = function(n) {
2281
+ var i = n.event, s = n.data;
2282
+ if (i.indexOf("pusher_internal:") === 0 || i.indexOf("pusher:") === 0) {
2283
+ e.prototype.handleEvent.call(this, n);
2284
+ return;
2285
+ }
2286
+ this.handleEncryptedEvent(i, s);
2287
+ }, t.prototype.handleEncryptedEvent = function(n, i) {
2288
+ var s = this;
2289
+ if (!this.key) {
2290
+ wt.debug("Received encrypted event before key has been retrieved from the authEndpoint");
2291
+ return;
2292
+ }
2293
+ if (!i.ciphertext || !i.nonce) {
2294
+ wt.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: " + i);
2295
+ return;
2296
+ }
2297
+ var u = Object(ht.decode)(i.ciphertext);
2298
+ if (u.length < this.nacl.secretbox.overheadLength) {
2299
+ wt.error("Expected encrypted event ciphertext length to be " + this.nacl.secretbox.overheadLength + ", got: " + u.length);
2300
+ return;
2301
+ }
2302
+ var v = Object(ht.decode)(i.nonce);
2303
+ if (v.length < this.nacl.secretbox.nonceLength) {
2304
+ wt.error("Expected encrypted event nonce length to be " + this.nacl.secretbox.nonceLength + ", got: " + v.length);
2305
+ return;
2306
+ }
2307
+ var A = this.nacl.secretbox.open(u, v, this.key);
2308
+ if (A === null) {
2309
+ wt.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."), this.authorize(this.pusher.connection.socket_id, function(q, L) {
2310
+ if (q) {
2311
+ wt.error("Failed to make a request to the authEndpoint: " + L + ". Unable to fetch new key, so dropping encrypted event");
2312
+ return;
2313
+ }
2314
+ if (A = s.nacl.secretbox.open(u, v, s.key), A === null) {
2315
+ wt.error("Failed to decrypt event with new key. Dropping encrypted event");
2316
+ return;
2317
+ }
2318
+ s.emit(n, s.getDataToEmit(A));
2319
+ });
2320
+ return;
2321
+ }
2322
+ this.emit(n, this.getDataToEmit(A));
2323
+ }, t.prototype.getDataToEmit = function(n) {
2324
+ var i = Object(ft.decode)(n);
2325
+ try {
2326
+ return JSON.parse(i);
2327
+ } catch {
2328
+ return i;
2329
+ }
2330
+ }, t;
2331
+ })(g), pt = ot, xt = /* @__PURE__ */ (function() {
2332
+ var e = function(t, n) {
2333
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, s) {
2334
+ i.__proto__ = s;
2335
+ } || function(i, s) {
2336
+ for (var u in s) s.hasOwnProperty(u) && (i[u] = s[u]);
2337
+ }, e(t, n);
2338
+ };
2339
+ return function(t, n) {
2340
+ e(t, n);
2341
+ function i() {
2342
+ this.constructor = t;
2343
+ }
2344
+ t.prototype = n === null ? Object.create(n) : (i.prototype = n.prototype, new i());
2345
+ };
2346
+ })(), Lt = (function(e) {
2347
+ xt(t, e);
2348
+ function t(n, i) {
2349
+ var s = e.call(this) || this;
2350
+ s.state = "initialized", s.connection = null, s.key = n, s.options = i, s.timeline = s.options.timeline, s.usingTLS = s.options.useTLS, s.errorCallbacks = s.buildErrorCallbacks(), s.connectionCallbacks = s.buildConnectionCallbacks(s.errorCallbacks), s.handshakeCallbacks = s.buildHandshakeCallbacks(s.errorCallbacks);
2351
+ var u = st.getNetwork();
2352
+ return u.bind("online", function() {
2353
+ s.timeline.info({ netinfo: "online" }), (s.state === "connecting" || s.state === "unavailable") && s.retryIn(0);
2354
+ }), u.bind("offline", function() {
2355
+ s.timeline.info({ netinfo: "offline" }), s.connection && s.sendActivityCheck();
2356
+ }), s.updateStrategy(), s;
2357
+ }
2358
+ return t.prototype.connect = function() {
2359
+ if (!(this.connection || this.runner)) {
2360
+ if (!this.strategy.isSupported()) {
2361
+ this.updateState("failed");
2362
+ return;
2363
+ }
2364
+ this.updateState("connecting"), this.startConnecting(), this.setUnavailableTimer();
2365
+ }
2366
+ }, t.prototype.send = function(n) {
2367
+ return this.connection ? this.connection.send(n) : !1;
2368
+ }, t.prototype.send_event = function(n, i, s) {
2369
+ return this.connection ? this.connection.send_event(n, i, s) : !1;
2370
+ }, t.prototype.disconnect = function() {
2371
+ this.disconnectInternally(), this.updateState("disconnected");
2372
+ }, t.prototype.isUsingTLS = function() {
2373
+ return this.usingTLS;
2374
+ }, t.prototype.startConnecting = function() {
2375
+ var n = this, i = function(s, u) {
2376
+ s ? n.runner = n.strategy.connect(0, i) : u.action === "error" ? (n.emit("error", {
2377
+ type: "HandshakeError",
2378
+ error: u.error
2379
+ }), n.timeline.error({ handshakeError: u.error })) : (n.abortConnecting(), n.handshakeCallbacks[u.action](u));
2380
+ };
2381
+ this.runner = this.strategy.connect(0, i);
2382
+ }, t.prototype.abortConnecting = function() {
2383
+ this.runner && (this.runner.abort(), this.runner = null);
2384
+ }, t.prototype.disconnectInternally = function() {
2385
+ if (this.abortConnecting(), this.clearRetryTimer(), this.clearUnavailableTimer(), this.connection) {
2386
+ var n = this.abandonConnection();
2387
+ n.close();
2388
+ }
2389
+ }, t.prototype.updateStrategy = function() {
2390
+ this.strategy = this.options.getStrategy({
2391
+ key: this.key,
2392
+ timeline: this.timeline,
2393
+ useTLS: this.usingTLS
2394
+ });
2395
+ }, t.prototype.retryIn = function(n) {
2396
+ var i = this;
2397
+ this.timeline.info({ action: "retry", delay: n }), n > 0 && this.emit("connecting_in", Math.round(n / 1e3)), this.retryTimer = new Zt(n || 0, function() {
2398
+ i.disconnectInternally(), i.connect();
2399
+ });
2400
+ }, t.prototype.clearRetryTimer = function() {
2401
+ this.retryTimer && (this.retryTimer.ensureAborted(), this.retryTimer = null);
2402
+ }, t.prototype.setUnavailableTimer = function() {
2403
+ var n = this;
2404
+ this.unavailableTimer = new Zt(this.options.unavailableTimeout, function() {
2405
+ n.updateState("unavailable");
2406
+ });
2407
+ }, t.prototype.clearUnavailableTimer = function() {
2408
+ this.unavailableTimer && this.unavailableTimer.ensureAborted();
2409
+ }, t.prototype.sendActivityCheck = function() {
2410
+ var n = this;
2411
+ this.stopActivityCheck(), this.connection.ping(), this.activityTimer = new Zt(this.options.pongTimeout, function() {
2412
+ n.timeline.error({ pong_timed_out: n.options.pongTimeout }), n.retryIn(0);
2413
+ });
2414
+ }, t.prototype.resetActivityCheck = function() {
2415
+ var n = this;
2416
+ this.stopActivityCheck(), this.connection && !this.connection.handlesActivityChecks() && (this.activityTimer = new Zt(this.activityTimeout, function() {
2417
+ n.sendActivityCheck();
2418
+ }));
2419
+ }, t.prototype.stopActivityCheck = function() {
2420
+ this.activityTimer && this.activityTimer.ensureAborted();
2421
+ }, t.prototype.buildConnectionCallbacks = function(n) {
2422
+ var i = this;
2423
+ return Y({}, n, {
2424
+ message: function(s) {
2425
+ i.resetActivityCheck(), i.emit("message", s);
2426
+ },
2427
+ ping: function() {
2428
+ i.send_event("pusher:pong", {});
2429
+ },
2430
+ activity: function() {
2431
+ i.resetActivityCheck();
2432
+ },
2433
+ error: function(s) {
2434
+ i.emit("error", s);
2435
+ },
2436
+ closed: function() {
2437
+ i.abandonConnection(), i.shouldRetry() && i.retryIn(1e3);
2438
+ }
2439
+ });
2440
+ }, t.prototype.buildHandshakeCallbacks = function(n) {
2441
+ var i = this;
2442
+ return Y({}, n, {
2443
+ connected: function(s) {
2444
+ i.activityTimeout = Math.min(i.options.activityTimeout, s.activityTimeout, s.connection.activityTimeout || 1 / 0), i.clearUnavailableTimer(), i.setConnection(s.connection), i.socket_id = i.connection.id, i.updateState("connected", { socket_id: i.socket_id });
2445
+ }
2446
+ });
2447
+ }, t.prototype.buildErrorCallbacks = function() {
2448
+ var n = this, i = function(s) {
2449
+ return function(u) {
2450
+ u.error && n.emit("error", { type: "WebSocketError", error: u.error }), s(u);
2451
+ };
2452
+ };
2453
+ return {
2454
+ tls_only: i(function() {
2455
+ n.usingTLS = !0, n.updateStrategy(), n.retryIn(0);
2456
+ }),
2457
+ refused: i(function() {
2458
+ n.disconnect();
2459
+ }),
2460
+ backoff: i(function() {
2461
+ n.retryIn(1e3);
2462
+ }),
2463
+ retry: i(function() {
2464
+ n.retryIn(0);
2465
+ })
2466
+ };
2467
+ }, t.prototype.setConnection = function(n) {
2468
+ this.connection = n;
2469
+ for (var i in this.connectionCallbacks)
2470
+ this.connection.bind(i, this.connectionCallbacks[i]);
2471
+ this.resetActivityCheck();
2472
+ }, t.prototype.abandonConnection = function() {
2473
+ if (this.connection) {
2474
+ this.stopActivityCheck();
2475
+ for (var n in this.connectionCallbacks)
2476
+ this.connection.unbind(n, this.connectionCallbacks[n]);
2477
+ var i = this.connection;
2478
+ return this.connection = null, i;
2479
+ }
2480
+ }, t.prototype.updateState = function(n, i) {
2481
+ var s = this.state;
2482
+ if (this.state = n, s !== n) {
2483
+ var u = n;
2484
+ u === "connected" && (u += " with new socket ID " + i.socket_id), wt.debug("State changed", s + " -> " + u), this.timeline.info({ state: n, params: i }), this.emit("state_change", { previous: s, current: n }), this.emit(n, i);
2485
+ }
2486
+ }, t.prototype.shouldRetry = function() {
2487
+ return this.state === "connecting" || this.state === "connected";
2488
+ }, t;
2489
+ })(Gt), mt = Lt, Et = (function() {
2490
+ function e() {
2491
+ this.channels = {};
2492
+ }
2493
+ return e.prototype.add = function(t, n) {
2494
+ return this.channels[t] || (this.channels[t] = kt(t, n)), this.channels[t];
2495
+ }, e.prototype.all = function() {
2496
+ return _e(this.channels);
2497
+ }, e.prototype.find = function(t) {
2498
+ return this.channels[t];
2499
+ }, e.prototype.remove = function(t) {
2500
+ var n = this.channels[t];
2501
+ return delete this.channels[t], n;
2502
+ }, e.prototype.disconnect = function() {
2503
+ $t(this.channels, function(t) {
2504
+ t.disconnect();
2505
+ });
2506
+ }, e;
2507
+ })(), Ot = Et;
2508
+ function kt(e, t) {
2509
+ if (e.indexOf("private-encrypted-") === 0) {
2510
+ if (t.config.nacl)
2511
+ return Tt.createEncryptedChannel(e, t, t.config.nacl);
2512
+ var n = "Tried to subscribe to a private-encrypted- channel but no nacl implementation available", i = H.buildLogSuffix("encryptedChannelSupport");
2513
+ throw new Xt(n + ". " + i);
2514
+ } else {
2515
+ if (e.indexOf("private-") === 0)
2516
+ return Tt.createPrivateChannel(e, t);
2517
+ if (e.indexOf("presence-") === 0)
2518
+ return Tt.createPresenceChannel(e, t);
2519
+ if (e.indexOf("#") === 0)
2520
+ throw new D('Cannot create a channel with name "' + e + '".');
2521
+ return Tt.createChannel(e, t);
2522
+ }
2523
+ }
2524
+ var Nt = {
2525
+ createChannels: function() {
2526
+ return new Ot();
2527
+ },
2528
+ createConnectionManager: function(e, t) {
2529
+ return new mt(e, t);
2530
+ },
2531
+ createChannel: function(e, t) {
2532
+ return new p(e, t);
2533
+ },
2534
+ createPrivateChannel: function(e, t) {
2535
+ return new g(e, t);
2536
+ },
2537
+ createPresenceChannel: function(e, t) {
2538
+ return new h(e, t);
2539
+ },
2540
+ createEncryptedChannel: function(e, t, n) {
2541
+ return new pt(e, t, n);
2542
+ },
2543
+ createTimelineSender: function(e, t) {
2544
+ return new j(e, t);
2545
+ },
2546
+ createHandshake: function(e, t) {
2547
+ return new B(e, t);
2548
+ },
2549
+ createAssistantToTheTransportManager: function(e, t, n) {
2550
+ return new X(e, t, n);
2551
+ }
2552
+ }, Tt = Nt, Ut = (function() {
2553
+ function e(t) {
2554
+ this.options = t || {}, this.livesLeft = this.options.lives || 1 / 0;
2555
+ }
2556
+ return e.prototype.getAssistant = function(t) {
2557
+ return Tt.createAssistantToTheTransportManager(this, t, {
2558
+ minPingDelay: this.options.minPingDelay,
2559
+ maxPingDelay: this.options.maxPingDelay
2560
+ });
2561
+ }, e.prototype.isAlive = function() {
2562
+ return this.livesLeft > 0;
2563
+ }, e.prototype.reportDeath = function() {
2564
+ this.livesLeft -= 1;
2565
+ }, e;
2566
+ })(), It = Ut, Jn = (function() {
2567
+ function e(t, n) {
2568
+ this.strategies = t, this.loop = !!n.loop, this.failFast = !!n.failFast, this.timeout = n.timeout, this.timeoutLimit = n.timeoutLimit;
2569
+ }
2570
+ return e.prototype.isSupported = function() {
2571
+ return Re(this.strategies, St.method("isSupported"));
2572
+ }, e.prototype.connect = function(t, n) {
2573
+ var i = this, s = this.strategies, u = 0, v = this.timeout, A = null, q = function(L, lt) {
2574
+ lt ? n(null, lt) : (u = u + 1, i.loop && (u = u % s.length), u < s.length ? (v && (v = v * 2, i.timeoutLimit && (v = Math.min(v, i.timeoutLimit))), A = i.tryStrategy(s[u], t, { timeout: v, failFast: i.failFast }, q)) : n(!0));
2575
+ };
2576
+ return A = this.tryStrategy(s[u], t, { timeout: v, failFast: this.failFast }, q), {
2577
+ abort: function() {
2578
+ A.abort();
2579
+ },
2580
+ forceMinPriority: function(L) {
2581
+ t = L, A && A.forceMinPriority(L);
2582
+ }
2583
+ };
2584
+ }, e.prototype.tryStrategy = function(t, n, i, s) {
2585
+ var u = null, v = null;
2586
+ return i.timeout > 0 && (u = new Zt(i.timeout, function() {
2587
+ v.abort(), s(!0);
2588
+ })), v = t.connect(n, function(A, q) {
2589
+ A && u && u.isRunning() && !i.failFast || (u && u.ensureAborted(), s(A, q));
2590
+ }), {
2591
+ abort: function() {
2592
+ u && u.ensureAborted(), v.abort();
2593
+ },
2594
+ forceMinPriority: function(A) {
2595
+ v.forceMinPriority(A);
2596
+ }
2597
+ };
2598
+ }, e;
2599
+ })(), ve = Jn, Xn = (function() {
2600
+ function e(t) {
2601
+ this.strategies = t;
2602
+ }
2603
+ return e.prototype.isSupported = function() {
2604
+ return Re(this.strategies, St.method("isSupported"));
2605
+ }, e.prototype.connect = function(t, n) {
2606
+ return Wn(this.strategies, t, function(i, s) {
2607
+ return function(u, v) {
2608
+ if (s[i].error = u, u) {
2609
+ Gn(s) && n(!0);
2610
+ return;
2611
+ }
2612
+ fe(s, function(A) {
2613
+ A.forceMinPriority(v.transport.priority);
2614
+ }), n(null, v);
2615
+ };
2616
+ });
2617
+ }, e;
2618
+ })(), un = Xn;
2619
+ function Wn(e, t, n) {
2620
+ var i = le(e, function(s, u, v, A) {
2621
+ return s.connect(t, n(u, A));
2622
+ });
2623
+ return {
2624
+ abort: function() {
2625
+ fe(i, Kn);
2626
+ },
2627
+ forceMinPriority: function(s) {
2628
+ fe(i, function(u) {
2629
+ u.forceMinPriority(s);
2630
+ });
2631
+ }
2632
+ };
2633
+ }
2634
+ function Gn(e) {
2635
+ return Qe(e, function(t) {
2636
+ return !!t.error;
2637
+ });
2638
+ }
2639
+ function Kn(e) {
2640
+ !e.error && !e.aborted && (e.abort(), e.aborted = !0);
2641
+ }
2642
+ var Zn = (function() {
2643
+ function e(t, n, i) {
2644
+ this.strategy = t, this.transports = n, this.ttl = i.ttl || 1800 * 1e3, this.usingTLS = i.useTLS, this.timeline = i.timeline;
2645
+ }
2646
+ return e.prototype.isSupported = function() {
2647
+ return this.strategy.isSupported();
2648
+ }, e.prototype.connect = function(t, n) {
2649
+ var i = this.usingTLS, s = Qn(i), u = [this.strategy];
2650
+ if (s && s.timestamp + this.ttl >= St.now()) {
2651
+ var v = this.transports[s.transport];
2652
+ v && (this.timeline.info({
2653
+ cached: !0,
2654
+ transport: s.transport,
2655
+ latency: s.latency
2656
+ }), u.push(new ve([v], {
2657
+ timeout: s.latency * 2 + 1e3,
2658
+ failFast: !0
2659
+ })));
2660
+ }
2661
+ var A = St.now(), q = u.pop().connect(t, function L(lt, Rt) {
2662
+ lt ? (wn(i), u.length > 0 ? (A = St.now(), q = u.pop().connect(t, L)) : n(lt)) : (tr(i, Rt.transport.name, St.now() - A), n(null, Rt));
2663
+ });
2664
+ return {
2665
+ abort: function() {
2666
+ q.abort();
2667
+ },
2668
+ forceMinPriority: function(L) {
2669
+ t = L, q && q.forceMinPriority(L);
2670
+ }
2671
+ };
2672
+ }, e;
2673
+ })(), Vn = Zn;
2674
+ function hn(e) {
2675
+ return "pusherTransport" + (e ? "TLS" : "NonTLS");
2676
+ }
2677
+ function Qn(e) {
2678
+ var t = st.getLocalStorage();
2679
+ if (t)
2680
+ try {
2681
+ var n = t[hn(e)];
2682
+ if (n)
2683
+ return JSON.parse(n);
2684
+ } catch {
2685
+ wn(e);
2686
+ }
2687
+ return null;
2688
+ }
2689
+ function tr(e, t, n) {
2690
+ var i = st.getLocalStorage();
2691
+ if (i)
2692
+ try {
2693
+ i[hn(e)] = ce({
2694
+ timestamp: St.now(),
2695
+ transport: t,
2696
+ latency: n
2697
+ });
2698
+ } catch {
2699
+ }
2700
+ }
2701
+ function wn(e) {
2702
+ var t = st.getLocalStorage();
2703
+ if (t)
2704
+ try {
2705
+ delete t[hn(e)];
2706
+ } catch {
2707
+ }
2708
+ }
2709
+ var er = (function() {
2710
+ function e(t, n) {
2711
+ var i = n.delay;
2712
+ this.strategy = t, this.options = { delay: i };
2713
+ }
2714
+ return e.prototype.isSupported = function() {
2715
+ return this.strategy.isSupported();
2716
+ }, e.prototype.connect = function(t, n) {
2717
+ var i = this.strategy, s, u = new Zt(this.options.delay, function() {
2718
+ s = i.connect(t, n);
2719
+ });
2720
+ return {
2721
+ abort: function() {
2722
+ u.ensureAborted(), s && s.abort();
2723
+ },
2724
+ forceMinPriority: function(v) {
2725
+ t = v, s && s.forceMinPriority(v);
2726
+ }
2727
+ };
2728
+ }, e;
2729
+ })(), on = er, nr = (function() {
2730
+ function e(t, n, i) {
2731
+ this.test = t, this.trueBranch = n, this.falseBranch = i;
2732
+ }
2733
+ return e.prototype.isSupported = function() {
2734
+ var t = this.test() ? this.trueBranch : this.falseBranch;
2735
+ return t.isSupported();
2736
+ }, e.prototype.connect = function(t, n) {
2737
+ var i = this.test() ? this.trueBranch : this.falseBranch;
2738
+ return i.connect(t, n);
2739
+ }, e;
2740
+ })(), Fe = nr, rr = (function() {
2741
+ function e(t) {
2742
+ this.strategy = t;
2743
+ }
2744
+ return e.prototype.isSupported = function() {
2745
+ return this.strategy.isSupported();
2746
+ }, e.prototype.connect = function(t, n) {
2747
+ var i = this.strategy.connect(t, function(s, u) {
2748
+ u && i.abort(), n(s, u);
2749
+ });
2750
+ return i;
2751
+ }, e;
2752
+ })(), ir = rr;
2753
+ function Ye(e) {
2754
+ return function() {
2755
+ return e.isSupported();
2756
+ };
2757
+ }
2758
+ var or = function(e, t, n) {
2759
+ var i = {};
2760
+ function s(jn, xi, vi, yi, gi) {
2761
+ var Un = n(e, jn, xi, vi, yi, gi);
2762
+ return i[jn] = Un, Un;
2763
+ }
2764
+ var u = Object.assign({}, t, {
2765
+ hostNonTLS: e.wsHost + ":" + e.wsPort,
2766
+ hostTLS: e.wsHost + ":" + e.wssPort,
2767
+ httpPath: e.wsPath
2768
+ }), v = Object.assign({}, u, {
2769
+ useTLS: !0
2770
+ }), A = Object.assign({}, t, {
2771
+ hostNonTLS: e.httpHost + ":" + e.httpPort,
2772
+ hostTLS: e.httpHost + ":" + e.httpsPort,
2773
+ httpPath: e.httpPath
2774
+ }), q = {
2775
+ loop: !0,
2776
+ timeout: 15e3,
2777
+ timeoutLimit: 6e4
2778
+ }, L = new It({
2779
+ lives: 2,
2780
+ minPingDelay: 1e4,
2781
+ maxPingDelay: e.activityTimeout
2782
+ }), lt = new It({
2783
+ lives: 2,
2784
+ minPingDelay: 1e4,
2785
+ maxPingDelay: e.activityTimeout
2786
+ }), Rt = s("ws", "ws", 3, u, L), te = s("wss", "ws", 3, v, L), ui = s("sockjs", "sockjs", 1, A), On = s("xhr_streaming", "xhr_streaming", 1, A, lt), hi = s("xdr_streaming", "xdr_streaming", 1, A, lt), kn = s("xhr_polling", "xhr_polling", 1, A), li = s("xdr_polling", "xdr_polling", 1, A), Ln = new ve([Rt], q), di = new ve([te], q), pi = new ve([ui], q), Nn = new ve([
2787
+ new Fe(Ye(On), On, hi)
2788
+ ], q), Rn = new ve([
2789
+ new Fe(Ye(kn), kn, li)
2790
+ ], q), In = new ve([
2791
+ new Fe(Ye(Nn), new un([
2792
+ Nn,
2793
+ new on(Rn, { delay: 4e3 })
2794
+ ]), Rn)
2795
+ ], q), pn = new Fe(Ye(In), In, pi), xn;
2796
+ return t.useTLS ? xn = new un([
2797
+ Ln,
2798
+ new on(pn, { delay: 2e3 })
2799
+ ]) : xn = new un([
2800
+ Ln,
2801
+ new on(di, { delay: 2e3 }),
2802
+ new on(pn, { delay: 5e3 })
2803
+ ]), new Vn(new ir(new Fe(Ye(Rt), xn, pn)), i, {
2804
+ ttl: 18e5,
2805
+ timeline: t.timeline,
2806
+ useTLS: t.useTLS
2807
+ });
2808
+ }, sr = or, ar = (function() {
2809
+ var e = this;
2810
+ e.timeline.info(e.buildTimelineMessage({
2811
+ transport: e.name + (e.options.useTLS ? "s" : "")
2812
+ })), e.hooks.isInitialized() ? e.changeState("initialized") : e.hooks.file ? (e.changeState("initializing"), Q.load(e.hooks.file, { useTLS: e.options.useTLS }, function(t, n) {
2813
+ e.hooks.isInitialized() ? (e.changeState("initialized"), n(!0)) : (t && e.onError(t), e.onClose(), n(!1));
2814
+ })) : e.onClose();
2815
+ }), fr = {
2816
+ getRequest: function(e) {
2817
+ var t = new window.XDomainRequest();
2818
+ return t.ontimeout = function() {
2819
+ e.emit("error", new Ct()), e.close();
2820
+ }, t.onerror = function(n) {
2821
+ e.emit("error", n), e.close();
2822
+ }, t.onprogress = function() {
2823
+ t.responseText && t.responseText.length > 0 && e.onChunk(200, t.responseText);
2824
+ }, t.onload = function() {
2825
+ t.responseText && t.responseText.length > 0 && e.onChunk(200, t.responseText), e.emit("finished", 200), e.close();
2826
+ }, t;
2827
+ },
2828
+ abortRequest: function(e) {
2829
+ e.ontimeout = e.onerror = e.onprogress = e.onload = null, e.abort();
2830
+ }
2831
+ }, cr = fr, ur = /* @__PURE__ */ (function() {
2832
+ var e = function(t, n) {
2833
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, s) {
2834
+ i.__proto__ = s;
2835
+ } || function(i, s) {
2836
+ for (var u in s) s.hasOwnProperty(u) && (i[u] = s[u]);
2837
+ }, e(t, n);
2838
+ };
2839
+ return function(t, n) {
2840
+ e(t, n);
2841
+ function i() {
2842
+ this.constructor = t;
2843
+ }
2844
+ t.prototype = n === null ? Object.create(n) : (i.prototype = n.prototype, new i());
2845
+ };
2846
+ })(), hr = 256 * 1024, lr = (function(e) {
2847
+ ur(t, e);
2848
+ function t(n, i, s) {
2849
+ var u = e.call(this) || this;
2850
+ return u.hooks = n, u.method = i, u.url = s, u;
2851
+ }
2852
+ return t.prototype.start = function(n) {
2853
+ var i = this;
2854
+ this.position = 0, this.xhr = this.hooks.getRequest(this), this.unloader = function() {
2855
+ i.close();
2856
+ }, st.addUnloadListener(this.unloader), this.xhr.open(this.method, this.url, !0), this.xhr.setRequestHeader && this.xhr.setRequestHeader("Content-Type", "application/json"), this.xhr.send(n);
2857
+ }, t.prototype.close = function() {
2858
+ this.unloader && (st.removeUnloadListener(this.unloader), this.unloader = null), this.xhr && (this.hooks.abortRequest(this.xhr), this.xhr = null);
2859
+ }, t.prototype.onChunk = function(n, i) {
2860
+ for (; ; ) {
2861
+ var s = this.advanceBuffer(i);
2862
+ if (s)
2863
+ this.emit("chunk", { status: n, data: s });
2864
+ else
2865
+ break;
2866
+ }
2867
+ this.isBufferTooLong(i) && this.emit("buffer_too_long");
2868
+ }, t.prototype.advanceBuffer = function(n) {
2869
+ var i = n.slice(this.position), s = i.indexOf(`
2870
+ `);
2871
+ return s !== -1 ? (this.position += s + 1, i.slice(0, s)) : null;
2872
+ }, t.prototype.isBufferTooLong = function(n) {
2873
+ return this.position === n.length && n.length > hr;
2874
+ }, t;
2875
+ })(Gt), dr = lr, ln;
2876
+ (function(e) {
2877
+ e[e.CONNECTING = 0] = "CONNECTING", e[e.OPEN = 1] = "OPEN", e[e.CLOSED = 3] = "CLOSED";
2878
+ })(ln || (ln = {}));
2879
+ var ye = ln, pr = 1, xr = (function() {
2880
+ function e(t, n) {
2881
+ this.hooks = t, this.session = Cn(1e3) + "/" + _r(8), this.location = vr(n), this.readyState = ye.CONNECTING, this.openStream();
2882
+ }
2883
+ return e.prototype.send = function(t) {
2884
+ return this.sendRaw(JSON.stringify([t]));
2885
+ }, e.prototype.ping = function() {
2886
+ this.hooks.sendHeartbeat(this);
2887
+ }, e.prototype.close = function(t, n) {
2888
+ this.onClose(t, n, !0);
2889
+ }, e.prototype.sendRaw = function(t) {
2890
+ if (this.readyState === ye.OPEN)
2891
+ try {
2892
+ return st.createSocketRequest("POST", Sn(yr(this.location, this.session))).start(t), !0;
2893
+ } catch {
2894
+ return !1;
2895
+ }
2896
+ else
2897
+ return !1;
2898
+ }, e.prototype.reconnect = function() {
2899
+ this.closeStream(), this.openStream();
2900
+ }, e.prototype.onClose = function(t, n, i) {
2901
+ this.closeStream(), this.readyState = ye.CLOSED, this.onclose && this.onclose({
2902
+ code: t,
2903
+ reason: n,
2904
+ wasClean: i
2905
+ });
2906
+ }, e.prototype.onChunk = function(t) {
2907
+ if (t.status === 200) {
2908
+ this.readyState === ye.OPEN && this.onActivity();
2909
+ var n, i = t.data.slice(0, 1);
2910
+ switch (i) {
2911
+ case "o":
2912
+ n = JSON.parse(t.data.slice(1) || "{}"), this.onOpen(n);
2913
+ break;
2914
+ case "a":
2915
+ n = JSON.parse(t.data.slice(1) || "[]");
2916
+ for (var s = 0; s < n.length; s++)
2917
+ this.onEvent(n[s]);
2918
+ break;
2919
+ case "m":
2920
+ n = JSON.parse(t.data.slice(1) || "null"), this.onEvent(n);
2921
+ break;
2922
+ case "h":
2923
+ this.hooks.onHeartbeat(this);
2924
+ break;
2925
+ case "c":
2926
+ n = JSON.parse(t.data.slice(1) || "[]"), this.onClose(n[0], n[1], !0);
2927
+ break;
2928
+ }
2929
+ }
2930
+ }, e.prototype.onOpen = function(t) {
2931
+ this.readyState === ye.CONNECTING ? (t && t.hostname && (this.location.base = gr(this.location.base, t.hostname)), this.readyState = ye.OPEN, this.onopen && this.onopen()) : this.onClose(1006, "Server lost session", !0);
2932
+ }, e.prototype.onEvent = function(t) {
2933
+ this.readyState === ye.OPEN && this.onmessage && this.onmessage({ data: t });
2934
+ }, e.prototype.onActivity = function() {
2935
+ this.onactivity && this.onactivity();
2936
+ }, e.prototype.onError = function(t) {
2937
+ this.onerror && this.onerror(t);
2938
+ }, e.prototype.openStream = function() {
2939
+ var t = this;
2940
+ this.stream = st.createSocketRequest("POST", Sn(this.hooks.getReceiveURL(this.location, this.session))), this.stream.bind("chunk", function(n) {
2941
+ t.onChunk(n);
2942
+ }), this.stream.bind("finished", function(n) {
2943
+ t.hooks.onFinished(t, n);
2944
+ }), this.stream.bind("buffer_too_long", function() {
2945
+ t.reconnect();
2946
+ });
2947
+ try {
2948
+ this.stream.start();
2949
+ } catch (n) {
2950
+ St.defer(function() {
2951
+ t.onError(n), t.onClose(1006, "Could not start streaming", !1);
2952
+ });
2953
+ }
2954
+ }, e.prototype.closeStream = function() {
2955
+ this.stream && (this.stream.unbind_all(), this.stream.close(), this.stream = null);
2956
+ }, e;
2957
+ })();
2958
+ function vr(e) {
2959
+ var t = /([^\?]*)\/*(\??.*)/.exec(e);
2960
+ return {
2961
+ base: t[1],
2962
+ queryString: t[2]
2963
+ };
2964
+ }
2965
+ function yr(e, t) {
2966
+ return e.base + "/" + t + "/xhr_send";
2967
+ }
2968
+ function Sn(e) {
2969
+ var t = e.indexOf("?") === -1 ? "?" : "&";
2970
+ return e + t + "t=" + +/* @__PURE__ */ new Date() + "&n=" + pr++;
2971
+ }
2972
+ function gr(e, t) {
2973
+ var n = /(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(e);
2974
+ return n[1] + t + n[3];
2975
+ }
2976
+ function Cn(e) {
2977
+ return st.randomInt(e);
2978
+ }
2979
+ function _r(e) {
2980
+ for (var t = [], n = 0; n < e; n++)
2981
+ t.push(Cn(32).toString(32));
2982
+ return t.join("");
2983
+ }
2984
+ var br = xr, mr = {
2985
+ getReceiveURL: function(e, t) {
2986
+ return e.base + "/" + t + "/xhr_streaming" + e.queryString;
2987
+ },
2988
+ onHeartbeat: function(e) {
2989
+ e.sendRaw("[]");
2990
+ },
2991
+ sendHeartbeat: function(e) {
2992
+ e.sendRaw("[]");
2993
+ },
2994
+ onFinished: function(e, t) {
2995
+ e.onClose(1006, "Connection interrupted (" + t + ")", !1);
2996
+ }
2997
+ }, wr = mr, Sr = {
2998
+ getReceiveURL: function(e, t) {
2999
+ return e.base + "/" + t + "/xhr" + e.queryString;
3000
+ },
3001
+ onHeartbeat: function() {
3002
+ },
3003
+ sendHeartbeat: function(e) {
3004
+ e.sendRaw("[]");
3005
+ },
3006
+ onFinished: function(e, t) {
3007
+ t === 200 ? e.reconnect() : e.onClose(1006, "Connection interrupted (" + t + ")", !1);
3008
+ }
3009
+ }, Cr = Sr, Tr = {
3010
+ getRequest: function(e) {
3011
+ var t = st.getXHRAPI(), n = new t();
3012
+ return n.onreadystatechange = n.onprogress = function() {
3013
+ switch (n.readyState) {
3014
+ case 3:
3015
+ n.responseText && n.responseText.length > 0 && e.onChunk(n.status, n.responseText);
3016
+ break;
3017
+ case 4:
3018
+ n.responseText && n.responseText.length > 0 && e.onChunk(n.status, n.responseText), e.emit("finished", n.status), e.close();
3019
+ break;
3020
+ }
3021
+ }, n;
3022
+ },
3023
+ abortRequest: function(e) {
3024
+ e.onreadystatechange = null, e.abort();
3025
+ }
3026
+ }, Ar = Tr, Pr = {
3027
+ createStreamingSocket: function(e) {
3028
+ return this.createSocket(wr, e);
3029
+ },
3030
+ createPollingSocket: function(e) {
3031
+ return this.createSocket(Cr, e);
3032
+ },
3033
+ createSocket: function(e, t) {
3034
+ return new br(e, t);
3035
+ },
3036
+ createXHR: function(e, t) {
3037
+ return this.createRequest(Ar, e, t);
3038
+ },
3039
+ createRequest: function(e, t, n) {
3040
+ return new dr(e, t, n);
3041
+ }
3042
+ }, Tn = Pr;
3043
+ Tn.createXDR = function(e, t) {
3044
+ return this.createRequest(cr, e, t);
3045
+ };
3046
+ var Er = Tn, Or = {
3047
+ nextAuthCallbackID: 1,
3048
+ auth_callbacks: {},
3049
+ ScriptReceivers: y,
3050
+ DependenciesReceivers: ct,
3051
+ getDefaultStrategy: sr,
3052
+ Transports: M,
3053
+ transportConnectionInitializer: ar,
3054
+ HTTPFactory: Er,
3055
+ TimelineTransport: we,
3056
+ getXHRAPI: function() {
3057
+ return window.XMLHttpRequest;
3058
+ },
3059
+ getWebSocketAPI: function() {
3060
+ return window.WebSocket || window.MozWebSocket;
3061
+ },
3062
+ setup: function(e) {
3063
+ var t = this;
3064
+ window.Pusher = e;
3065
+ var n = function() {
3066
+ t.onDocumentBody(e.ready);
3067
+ };
3068
+ window.JSON ? n() : Q.load("json2", {}, n);
3069
+ },
3070
+ getDocument: function() {
3071
+ return document;
3072
+ },
3073
+ getProtocol: function() {
3074
+ return this.getDocument().location.protocol;
3075
+ },
3076
+ getAuthorizers: function() {
3077
+ return { ajax: Je, jsonp: me };
3078
+ },
3079
+ onDocumentBody: function(e) {
3080
+ var t = this;
3081
+ document.body ? e() : setTimeout(function() {
3082
+ t.onDocumentBody(e);
3083
+ }, 0);
3084
+ },
3085
+ createJSONPRequest: function(e, t) {
3086
+ return new fn(e, t);
3087
+ },
3088
+ createScriptRequest: function(e) {
3089
+ return new Me(e);
3090
+ },
3091
+ getLocalStorage: function() {
3092
+ try {
3093
+ return window.localStorage;
3094
+ } catch {
3095
+ return;
3096
+ }
3097
+ },
3098
+ createXHR: function() {
3099
+ return this.getXHRAPI() ? this.createXMLHttpRequest() : this.createMicrosoftXHR();
3100
+ },
3101
+ createXMLHttpRequest: function() {
3102
+ var e = this.getXHRAPI();
3103
+ return new e();
3104
+ },
3105
+ createMicrosoftXHR: function() {
3106
+ return new ActiveXObject("Microsoft.XMLHTTP");
3107
+ },
3108
+ getNetwork: function() {
3109
+ return N;
3110
+ },
3111
+ createWebSocket: function(e) {
3112
+ var t = this.getWebSocketAPI();
3113
+ return new t(e);
3114
+ },
3115
+ createSocketRequest: function(e, t) {
3116
+ if (this.isXHRSupported())
3117
+ return this.HTTPFactory.createXHR(e, t);
3118
+ if (this.isXDRSupported(t.indexOf("https:") === 0))
3119
+ return this.HTTPFactory.createXDR(e, t);
3120
+ throw "Cross-origin HTTP requests are not supported";
3121
+ },
3122
+ isXHRSupported: function() {
3123
+ var e = this.getXHRAPI();
3124
+ return !!e && new e().withCredentials !== void 0;
3125
+ },
3126
+ isXDRSupported: function(e) {
3127
+ var t = e ? "https:" : "http:", n = this.getProtocol();
3128
+ return !!window.XDomainRequest && n === t;
3129
+ },
3130
+ addUnloadListener: function(e) {
3131
+ window.addEventListener !== void 0 ? window.addEventListener("unload", e, !1) : window.attachEvent !== void 0 && window.attachEvent("onunload", e);
3132
+ },
3133
+ removeUnloadListener: function(e) {
3134
+ window.addEventListener !== void 0 ? window.removeEventListener("unload", e, !1) : window.detachEvent !== void 0 && window.detachEvent("onunload", e);
3135
+ },
3136
+ randomInt: function(e) {
3137
+ var t = function() {
3138
+ var n = window.crypto || window.msCrypto, i = n.getRandomValues(new Uint32Array(1))[0];
3139
+ return i / Math.pow(2, 32);
3140
+ };
3141
+ return Math.floor(t() * e);
3142
+ }
3143
+ }, st = Or, dn;
3144
+ (function(e) {
3145
+ e[e.ERROR = 3] = "ERROR", e[e.INFO = 6] = "INFO", e[e.DEBUG = 7] = "DEBUG";
3146
+ })(dn || (dn = {}));
3147
+ var sn = dn, kr = (function() {
3148
+ function e(t, n, i) {
3149
+ this.key = t, this.session = n, this.events = [], this.options = i || {}, this.sent = 0, this.uniqueID = 0;
3150
+ }
3151
+ return e.prototype.log = function(t, n) {
3152
+ t <= this.options.level && (this.events.push(Y({}, n, { timestamp: St.now() })), this.options.limit && this.events.length > this.options.limit && this.events.shift());
3153
+ }, e.prototype.error = function(t) {
3154
+ this.log(sn.ERROR, t);
3155
+ }, e.prototype.info = function(t) {
3156
+ this.log(sn.INFO, t);
3157
+ }, e.prototype.debug = function(t) {
3158
+ this.log(sn.DEBUG, t);
3159
+ }, e.prototype.isEmpty = function() {
3160
+ return this.events.length === 0;
3161
+ }, e.prototype.send = function(t, n) {
3162
+ var i = this, s = Y({
3163
+ session: this.session,
3164
+ bundle: this.sent + 1,
3165
+ key: this.key,
3166
+ lib: "js",
3167
+ version: this.options.version,
3168
+ cluster: this.options.cluster,
3169
+ features: this.options.features,
3170
+ timeline: this.events
3171
+ }, this.options.params);
3172
+ return this.events = [], t(s, function(u, v) {
3173
+ u || i.sent++, n && n(u, v);
3174
+ }), !0;
3175
+ }, e.prototype.generateUniqueID = function() {
3176
+ return this.uniqueID++, this.uniqueID;
3177
+ }, e;
3178
+ })(), Lr = kr, Nr = (function() {
3179
+ function e(t, n, i, s) {
3180
+ this.name = t, this.priority = n, this.transport = i, this.options = s || {};
3181
+ }
3182
+ return e.prototype.isSupported = function() {
3183
+ return this.transport.isSupported({
3184
+ useTLS: this.options.useTLS
3185
+ });
3186
+ }, e.prototype.connect = function(t, n) {
3187
+ var i = this;
3188
+ if (this.isSupported()) {
3189
+ if (this.priority < t)
3190
+ return An(new at(), n);
3191
+ } else return An(new Mt(), n);
3192
+ var s = !1, u = this.transport.createConnection(this.name, this.priority, this.options.key, this.options), v = null, A = function() {
3193
+ u.unbind("initialized", A), u.connect();
3194
+ }, q = function() {
3195
+ v = Tt.createHandshake(u, function(te) {
3196
+ s = !0, Rt(), n(null, te);
3197
+ });
3198
+ }, L = function(te) {
3199
+ Rt(), n(te);
3200
+ }, lt = function() {
3201
+ Rt();
3202
+ var te;
3203
+ te = ce(u), n(new qt(te));
3204
+ }, Rt = function() {
3205
+ u.unbind("initialized", A), u.unbind("open", q), u.unbind("error", L), u.unbind("closed", lt);
3206
+ };
3207
+ return u.bind("initialized", A), u.bind("open", q), u.bind("error", L), u.bind("closed", lt), u.initialize(), {
3208
+ abort: function() {
3209
+ s || (Rt(), v ? v.close() : u.close());
3210
+ },
3211
+ forceMinPriority: function(te) {
3212
+ s || i.priority < te && (v ? v.close() : u.close());
3213
+ }
3214
+ };
3215
+ }, e;
3216
+ })(), Rr = Nr;
3217
+ function An(e, t) {
3218
+ return St.defer(function() {
3219
+ t(e);
3220
+ }), {
3221
+ abort: function() {
3222
+ },
3223
+ forceMinPriority: function() {
3224
+ }
3225
+ };
3226
+ }
3227
+ var Ir = st.Transports, jr = function(e, t, n, i, s, u) {
3228
+ var v = Ir[n];
3229
+ if (!v)
3230
+ throw new Ht(n);
3231
+ var A = (!e.enabledTransports || Ne(e.enabledTransports, t) !== -1) && (!e.disabledTransports || Ne(e.disabledTransports, t) === -1), q;
3232
+ return A ? (s = Object.assign({ ignoreNullOrigin: e.ignoreNullOrigin }, s), q = new Rr(t, i, u ? u.getAssistant(v) : v, s)) : q = Ur, q;
3233
+ }, Ur = {
3234
+ isSupported: function() {
3235
+ return !1;
3236
+ },
3237
+ connect: function(e, t) {
3238
+ var n = St.defer(function() {
3239
+ t(new Mt());
3240
+ });
3241
+ return {
3242
+ abort: function() {
3243
+ n.ensureAborted();
3244
+ },
3245
+ forceMinPriority: function() {
3246
+ }
3247
+ };
3248
+ }
3249
+ }, Mr = function(e, t) {
3250
+ var n = "socket_id=" + encodeURIComponent(e.socketId);
3251
+ for (var i in t.params)
3252
+ n += "&" + encodeURIComponent(i) + "=" + encodeURIComponent(t.params[i]);
3253
+ if (t.paramsProvider != null) {
3254
+ var s = t.paramsProvider();
3255
+ for (var i in s)
3256
+ n += "&" + encodeURIComponent(i) + "=" + encodeURIComponent(s[i]);
3257
+ }
3258
+ return n;
3259
+ }, Br = function(e) {
3260
+ if (typeof st.getAuthorizers()[e.transport] > "u")
3261
+ throw "'" + e.transport + "' is not a recognized auth transport";
3262
+ return function(t, n) {
3263
+ var i = Mr(t, e);
3264
+ st.getAuthorizers()[e.transport](st, i, e, T.UserAuthentication, n);
3265
+ };
3266
+ }, Dr = Br, Hr = function(e, t) {
3267
+ var n = "socket_id=" + encodeURIComponent(e.socketId);
3268
+ n += "&channel_name=" + encodeURIComponent(e.channelName);
3269
+ for (var i in t.params)
3270
+ n += "&" + encodeURIComponent(i) + "=" + encodeURIComponent(t.params[i]);
3271
+ if (t.paramsProvider != null) {
3272
+ var s = t.paramsProvider();
3273
+ for (var i in s)
3274
+ n += "&" + encodeURIComponent(i) + "=" + encodeURIComponent(s[i]);
3275
+ }
3276
+ return n;
3277
+ }, zr = function(e) {
3278
+ if (typeof st.getAuthorizers()[e.transport] > "u")
3279
+ throw "'" + e.transport + "' is not a recognized auth transport";
3280
+ return function(t, n) {
3281
+ var i = Hr(t, e);
3282
+ st.getAuthorizers()[e.transport](st, i, e, T.ChannelAuthorization, n);
3283
+ };
3284
+ }, qr = zr, Fr = function(e, t, n) {
3285
+ var i = {
3286
+ authTransport: t.transport,
3287
+ authEndpoint: t.endpoint,
3288
+ auth: {
3289
+ params: t.params,
3290
+ headers: t.headers
3291
+ }
3292
+ };
3293
+ return function(s, u) {
3294
+ var v = e.channel(s.channelName), A = n(v, i);
3295
+ A.authorize(s.socketId, u);
3296
+ };
3297
+ }, Te = function() {
3298
+ return Te = Object.assign || function(e) {
3299
+ for (var t, n = 1, i = arguments.length; n < i; n++) {
3300
+ t = arguments[n];
3301
+ for (var s in t) Object.prototype.hasOwnProperty.call(t, s) && (e[s] = t[s]);
3302
+ }
3303
+ return e;
3304
+ }, Te.apply(this, arguments);
3305
+ };
3306
+ function Yr(e, t) {
3307
+ var n = {
3308
+ activityTimeout: e.activityTimeout || it.activityTimeout,
3309
+ cluster: e.cluster || it.cluster,
3310
+ httpPath: e.httpPath || it.httpPath,
3311
+ httpPort: e.httpPort || it.httpPort,
3312
+ httpsPort: e.httpsPort || it.httpsPort,
3313
+ pongTimeout: e.pongTimeout || it.pongTimeout,
3314
+ statsHost: e.statsHost || it.stats_host,
3315
+ unavailableTimeout: e.unavailableTimeout || it.unavailableTimeout,
3316
+ wsPath: e.wsPath || it.wsPath,
3317
+ wsPort: e.wsPort || it.wsPort,
3318
+ wssPort: e.wssPort || it.wssPort,
3319
+ enableStats: Wr(e),
3320
+ httpHost: $r(e),
3321
+ useTLS: Xr(e),
3322
+ wsHost: Jr(e),
3323
+ userAuthenticator: Gr(e),
3324
+ channelAuthorizer: Zr(e, t)
3325
+ };
3326
+ return "disabledTransports" in e && (n.disabledTransports = e.disabledTransports), "enabledTransports" in e && (n.enabledTransports = e.enabledTransports), "ignoreNullOrigin" in e && (n.ignoreNullOrigin = e.ignoreNullOrigin), "timelineParams" in e && (n.timelineParams = e.timelineParams), "nacl" in e && (n.nacl = e.nacl), n;
3327
+ }
3328
+ function $r(e) {
3329
+ return e.httpHost ? e.httpHost : e.cluster ? "sockjs-" + e.cluster + ".pusher.com" : it.httpHost;
3330
+ }
3331
+ function Jr(e) {
3332
+ return e.wsHost ? e.wsHost : e.cluster ? Pn(e.cluster) : Pn(it.cluster);
3333
+ }
3334
+ function Pn(e) {
3335
+ return "ws-" + e + ".pusher.com";
3336
+ }
3337
+ function Xr(e) {
3338
+ return st.getProtocol() === "https:" ? !0 : e.forceTLS !== !1;
3339
+ }
3340
+ function Wr(e) {
3341
+ return "enableStats" in e ? e.enableStats : "disableStats" in e ? !e.disableStats : !1;
3342
+ }
3343
+ function Gr(e) {
3344
+ var t = Te(Te({}, it.userAuthentication), e.userAuthentication);
3345
+ return "customHandler" in t && t.customHandler != null ? t.customHandler : Dr(t);
3346
+ }
3347
+ function Kr(e, t) {
3348
+ var n;
3349
+ return "channelAuthorization" in e ? n = Te(Te({}, it.channelAuthorization), e.channelAuthorization) : (n = {
3350
+ transport: e.authTransport || it.authTransport,
3351
+ endpoint: e.authEndpoint || it.authEndpoint
3352
+ }, "auth" in e && ("params" in e.auth && (n.params = e.auth.params), "headers" in e.auth && (n.headers = e.auth.headers)), "authorizer" in e && (n.customHandler = Fr(t, n, e.authorizer))), n;
3353
+ }
3354
+ function Zr(e, t) {
3355
+ var n = Kr(e, t);
3356
+ return "customHandler" in n && n.customHandler != null ? n.customHandler : qr(n);
3357
+ }
3358
+ var Vr = /* @__PURE__ */ (function() {
3359
+ var e = function(t, n) {
3360
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, s) {
3361
+ i.__proto__ = s;
3362
+ } || function(i, s) {
3363
+ for (var u in s) s.hasOwnProperty(u) && (i[u] = s[u]);
3364
+ }, e(t, n);
3365
+ };
3366
+ return function(t, n) {
3367
+ e(t, n);
3368
+ function i() {
3369
+ this.constructor = t;
3370
+ }
3371
+ t.prototype = n === null ? Object.create(n) : (i.prototype = n.prototype, new i());
3372
+ };
3373
+ })(), Qr = (function(e) {
3374
+ Vr(t, e);
3375
+ function t(n) {
3376
+ var i = e.call(this, function(s, u) {
3377
+ wt.debug("No callbacks on watchlist events for " + s);
3378
+ }) || this;
3379
+ return i.pusher = n, i.bindWatchlistInternalEvent(), i;
3380
+ }
3381
+ return t.prototype.handleEvent = function(n) {
3382
+ var i = this;
3383
+ n.data.events.forEach(function(s) {
3384
+ i.emit(s.name, s);
3385
+ });
3386
+ }, t.prototype.bindWatchlistInternalEvent = function() {
3387
+ var n = this;
3388
+ this.pusher.connection.bind("message", function(i) {
3389
+ var s = i.event;
3390
+ s === "pusher_internal:watchlist_events" && n.handleEvent(i);
3391
+ });
3392
+ }, t;
3393
+ })(Gt), ti = Qr;
3394
+ function ei() {
3395
+ var e, t, n = new Promise(function(i, s) {
3396
+ e = i, t = s;
3397
+ });
3398
+ return { promise: n, resolve: e, reject: t };
3399
+ }
3400
+ var ni = ei, ri = /* @__PURE__ */ (function() {
3401
+ var e = function(t, n) {
3402
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, s) {
3403
+ i.__proto__ = s;
3404
+ } || function(i, s) {
3405
+ for (var u in s) s.hasOwnProperty(u) && (i[u] = s[u]);
3406
+ }, e(t, n);
3407
+ };
3408
+ return function(t, n) {
3409
+ e(t, n);
3410
+ function i() {
3411
+ this.constructor = t;
3412
+ }
3413
+ t.prototype = n === null ? Object.create(n) : (i.prototype = n.prototype, new i());
3414
+ };
3415
+ })(), ii = (function(e) {
3416
+ ri(t, e);
3417
+ function t(n) {
3418
+ var i = e.call(this, function(s, u) {
3419
+ wt.debug("No callbacks on user for " + s);
3420
+ }) || this;
3421
+ return i.signin_requested = !1, i.user_data = null, i.serverToUserChannel = null, i.signinDonePromise = null, i._signinDoneResolve = null, i._onAuthorize = function(s, u) {
3422
+ if (s) {
3423
+ wt.warn("Error during signin: " + s), i._cleanup();
3424
+ return;
3425
+ }
3426
+ i.pusher.send_event("pusher:signin", {
3427
+ auth: u.auth,
3428
+ user_data: u.user_data
3429
+ });
3430
+ }, i.pusher = n, i.pusher.connection.bind("state_change", function(s) {
3431
+ var u = s.previous, v = s.current;
3432
+ u !== "connected" && v === "connected" && i._signin(), u === "connected" && v !== "connected" && (i._cleanup(), i._newSigninPromiseIfNeeded());
3433
+ }), i.watchlist = new ti(n), i.pusher.connection.bind("message", function(s) {
3434
+ var u = s.event;
3435
+ u === "pusher:signin_success" && i._onSigninSuccess(s.data), i.serverToUserChannel && i.serverToUserChannel.name === s.channel && i.serverToUserChannel.handleEvent(s);
3436
+ }), i;
3437
+ }
3438
+ return t.prototype.signin = function() {
3439
+ this.signin_requested || (this.signin_requested = !0, this._signin());
3440
+ }, t.prototype._signin = function() {
3441
+ this.signin_requested && (this._newSigninPromiseIfNeeded(), this.pusher.connection.state === "connected" && this.pusher.config.userAuthenticator({
3442
+ socketId: this.pusher.connection.socket_id
3443
+ }, this._onAuthorize));
3444
+ }, t.prototype._onSigninSuccess = function(n) {
3445
+ try {
3446
+ this.user_data = JSON.parse(n.user_data);
3447
+ } catch {
3448
+ wt.error("Failed parsing user data after signin: " + n.user_data), this._cleanup();
3449
+ return;
3450
+ }
3451
+ if (typeof this.user_data.id != "string" || this.user_data.id === "") {
3452
+ wt.error("user_data doesn't contain an id. user_data: " + this.user_data), this._cleanup();
3453
+ return;
3454
+ }
3455
+ this._signinDoneResolve(), this._subscribeChannels();
3456
+ }, t.prototype._subscribeChannels = function() {
3457
+ var n = this, i = function(s) {
3458
+ s.subscriptionPending && s.subscriptionCancelled ? s.reinstateSubscription() : !s.subscriptionPending && n.pusher.connection.state === "connected" && s.subscribe();
3459
+ };
3460
+ this.serverToUserChannel = new p("#server-to-user-" + this.user_data.id, this.pusher), this.serverToUserChannel.bind_global(function(s, u) {
3461
+ s.indexOf("pusher_internal:") === 0 || s.indexOf("pusher:") === 0 || n.emit(s, u);
3462
+ }), i(this.serverToUserChannel);
3463
+ }, t.prototype._cleanup = function() {
3464
+ this.user_data = null, this.serverToUserChannel && (this.serverToUserChannel.unbind_all(), this.serverToUserChannel.disconnect(), this.serverToUserChannel = null), this.signin_requested && this._signinDoneResolve();
3465
+ }, t.prototype._newSigninPromiseIfNeeded = function() {
3466
+ if (this.signin_requested && !(this.signinDonePromise && !this.signinDonePromise.done)) {
3467
+ var n = ni(), i = n.promise, s = n.resolve;
3468
+ i.done = !1;
3469
+ var u = function() {
3470
+ i.done = !0;
3471
+ };
3472
+ i.then(u).catch(u), this.signinDonePromise = i, this._signinDoneResolve = s;
3473
+ }
3474
+ }, t;
3475
+ })(Gt), oi = ii, En = (function() {
3476
+ function e(t, n) {
3477
+ var i = this;
3478
+ if (si(t), n = n || {}, !n.cluster && !(n.wsHost || n.httpHost)) {
3479
+ var s = H.buildLogSuffix("javascriptQuickStart");
3480
+ wt.warn("You should always specify a cluster when connecting. " + s);
3481
+ }
3482
+ "disableStats" in n && wt.warn("The disableStats option is deprecated in favor of enableStats"), this.key = t, this.config = Yr(n, this), this.channels = Tt.createChannels(), this.global_emitter = new Gt(), this.sessionID = st.randomInt(1e9), this.timeline = new Lr(this.key, this.sessionID, {
3483
+ cluster: this.config.cluster,
3484
+ features: e.getClientFeatures(),
3485
+ params: this.config.timelineParams || {},
3486
+ limit: 50,
3487
+ level: sn.INFO,
3488
+ version: it.VERSION
3489
+ }), this.config.enableStats && (this.timelineSender = Tt.createTimelineSender(this.timeline, {
3490
+ host: this.config.statsHost,
3491
+ path: "/timeline/v2/" + st.TimelineTransport.name
3492
+ }));
3493
+ var u = function(v) {
3494
+ return st.getDefaultStrategy(i.config, v, jr);
3495
+ };
3496
+ this.connection = Tt.createConnectionManager(this.key, {
3497
+ getStrategy: u,
3498
+ timeline: this.timeline,
3499
+ activityTimeout: this.config.activityTimeout,
3500
+ pongTimeout: this.config.pongTimeout,
3501
+ unavailableTimeout: this.config.unavailableTimeout,
3502
+ useTLS: !!this.config.useTLS
3503
+ }), this.connection.bind("connected", function() {
3504
+ i.subscribeAll(), i.timelineSender && i.timelineSender.send(i.connection.isUsingTLS());
3505
+ }), this.connection.bind("message", function(v) {
3506
+ var A = v.event, q = A.indexOf("pusher_internal:") === 0;
3507
+ if (v.channel) {
3508
+ var L = i.channel(v.channel);
3509
+ L && L.handleEvent(v);
3510
+ }
3511
+ q || i.global_emitter.emit(v.event, v.data);
3512
+ }), this.connection.bind("connecting", function() {
3513
+ i.channels.disconnect();
3514
+ }), this.connection.bind("disconnected", function() {
3515
+ i.channels.disconnect();
3516
+ }), this.connection.bind("error", function(v) {
3517
+ wt.warn(v);
3518
+ }), e.instances.push(this), this.timeline.info({ instances: e.instances.length }), this.user = new oi(this), e.isReady && this.connect();
3519
+ }
3520
+ return e.ready = function() {
3521
+ e.isReady = !0;
3522
+ for (var t = 0, n = e.instances.length; t < n; t++)
3523
+ e.instances[t].connect();
3524
+ }, e.getClientFeatures = function() {
3525
+ return he(Ve({ ws: st.Transports.ws }, function(t) {
3526
+ return t.isSupported({});
3527
+ }));
3528
+ }, e.prototype.channel = function(t) {
3529
+ return this.channels.find(t);
3530
+ }, e.prototype.allChannels = function() {
3531
+ return this.channels.all();
3532
+ }, e.prototype.connect = function() {
3533
+ if (this.connection.connect(), this.timelineSender && !this.timelineSenderTimer) {
3534
+ var t = this.connection.isUsingTLS(), n = this.timelineSender;
3535
+ this.timelineSenderTimer = new Le(6e4, function() {
3536
+ n.send(t);
3537
+ });
3538
+ }
3539
+ }, e.prototype.disconnect = function() {
3540
+ this.connection.disconnect(), this.timelineSenderTimer && (this.timelineSenderTimer.ensureAborted(), this.timelineSenderTimer = null);
3541
+ }, e.prototype.bind = function(t, n, i) {
3542
+ return this.global_emitter.bind(t, n, i), this;
3543
+ }, e.prototype.unbind = function(t, n, i) {
3544
+ return this.global_emitter.unbind(t, n, i), this;
3545
+ }, e.prototype.bind_global = function(t) {
3546
+ return this.global_emitter.bind_global(t), this;
3547
+ }, e.prototype.unbind_global = function(t) {
3548
+ return this.global_emitter.unbind_global(t), this;
3549
+ }, e.prototype.unbind_all = function(t) {
3550
+ return this.global_emitter.unbind_all(), this;
3551
+ }, e.prototype.subscribeAll = function() {
3552
+ var t;
3553
+ for (t in this.channels.channels)
3554
+ this.channels.channels.hasOwnProperty(t) && this.subscribe(t);
3555
+ }, e.prototype.subscribe = function(t) {
3556
+ var n = this.channels.add(t, this);
3557
+ return n.subscriptionPending && n.subscriptionCancelled ? n.reinstateSubscription() : !n.subscriptionPending && this.connection.state === "connected" && n.subscribe(), n;
3558
+ }, e.prototype.unsubscribe = function(t) {
3559
+ var n = this.channels.find(t);
3560
+ n && n.subscriptionPending ? n.cancelSubscription() : (n = this.channels.remove(t), n && n.subscribed && n.unsubscribe());
3561
+ }, e.prototype.send_event = function(t, n, i) {
3562
+ return this.connection.send_event(t, n, i);
3563
+ }, e.prototype.shouldUseTLS = function() {
3564
+ return this.config.useTLS;
3565
+ }, e.prototype.signin = function() {
3566
+ this.user.signin();
3567
+ }, e.instances = [], e.isReady = !1, e.logToConsole = !1, e.Runtime = st, e.ScriptReceivers = st.ScriptReceivers, e.DependenciesReceivers = st.DependenciesReceivers, e.auth_callbacks = st.auth_callbacks, e;
3568
+ })(), Ae = En;
3569
+ function si(e) {
3570
+ if (e == null)
3571
+ throw "You must pass your app key when you instantiate Pusher.";
3572
+ }
3573
+ st.setup(En);
3574
+ var ai = dt(2), fi = /* @__PURE__ */ (function() {
3575
+ var e = function(t, n) {
3576
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, s) {
3577
+ i.__proto__ = s;
3578
+ } || function(i, s) {
3579
+ for (var u in s) s.hasOwnProperty(u) && (i[u] = s[u]);
3580
+ }, e(t, n);
3581
+ };
3582
+ return function(t, n) {
3583
+ e(t, n);
3584
+ function i() {
3585
+ this.constructor = t;
3586
+ }
3587
+ t.prototype = n === null ? Object.create(n) : (i.prototype = n.prototype, new i());
3588
+ };
3589
+ })(), ci = (function(e) {
3590
+ fi(t, e);
3591
+ function t(n, i) {
3592
+ var s = this;
3593
+ return Ae.logToConsole = t.logToConsole, Ae.log = t.log, i = i || {}, i.nacl = ai, s = e.call(this, n, i) || this, s;
3594
+ }
3595
+ return t;
3596
+ })(Ae);
3597
+ nt.default = ci;
3598
+ })
3599
+ /******/
3600
+ ])
3601
+ );
3602
+ });
3603
+ })(gn)), gn.exports;
3604
+ }
3605
+ var _n, Yn;
3606
+ function zi() {
3607
+ return Yn || (Yn = 1, _n = Hi()), _n;
3608
+ }
3609
+ var qi = zi();
3610
+ const Fi = /* @__PURE__ */ Di(qi), mn = `${Ti}/api/notification`, Yi = (yt) => bn.get(mn, { params: { ...yt } }), $i = (yt) => bn.put(`${mn}/${yt}`), Ji = () => bn.put(`${mn}/updateAllStatus`), Xi = {
3611
+ currentPage: 1,
3612
+ pageSize: 30,
3613
+ searchString: "",
3614
+ isRead: !1
3615
+ }, Wi = "Notification list", $n = "NOTIFICATION_CHANNEL", Gi = "NEW_NOTIFICATION", Ki = () => {
3616
+ const yt = Ni(), { roles: Yt } = Ri(), Pt = Pe((D) => D.common.user), nt = Pt?.id, dt = Pt?.studentId, S = Pe(
3617
+ (D) => D.notification.notificationList
3618
+ ), y = Pe((D) => D.common.user.pusherKey), At = Pe(
3619
+ (D) => D.common.user.pusherCluster
3620
+ ), it = Pe(
3621
+ (D) => D.notification.totalItems
3622
+ ), Dt = Pe(
3623
+ (D) => D.notification.unReadNotification
3624
+ ), [I, ct] = zn(Xi), [Q, $] = zn(!1), bt = (D) => ct({
3625
+ ...I,
3626
+ ...D
3627
+ }), H = (D) => {
3628
+ const { source: Ct, extraData: at } = D;
3629
+ switch (Ct) {
3630
+ case "AssessmentAssignment":
3631
+ window.open(`/player/diagnosticsurvey/${Number(at)}`);
3632
+ break;
3633
+ case "NewConferenceCreated":
3634
+ window.open(
3635
+ `/start-conference/${JSON.parse(at)?.[0]}/${JSON.parse(at)?.[1]}/conferenceRubric`
3636
+ );
3637
+ break;
3638
+ case "Class Reflection":
3639
+ window.open(
3640
+ `/start-reflection/${at?.replace(/[\[\]]/g, "")?.split(",")?.[1]}`
3641
+ );
3642
+ break;
3643
+ case "Class Reflection Completed":
3644
+ window.open(
3645
+ `/result-reflection/${at?.replace(/[\[\]]/g, "")?.split(",")?.[1]}`
3646
+ );
3647
+ break;
3648
+ case "External Reflection Completed":
3649
+ window.open(
3650
+ `/result-reflection/${JSON.parse(at)?.[0]}/external`
3651
+ );
3652
+ break;
3653
+ case "NewSessionCreated":
3654
+ window.open(
3655
+ `/start-question/${JSON.parse(at)?.[0]}/${JSON.parse(at)?.[1]}`
3656
+ );
3657
+ break;
3658
+ case "NewSessionComplete":
3659
+ window.open(
3660
+ `/start-question/${JSON.parse(at)?.[0]}/${JSON.parse(at)?.[1]}`
3661
+ );
3662
+ break;
3663
+ case "ActionPointReminder":
3664
+ window.open(
3665
+ "/action-point/to-do"
3666
+ );
3667
+ break;
3668
+ case "SendNotiPLP":
3669
+ window.open(
3670
+ "/personal-learning-plan"
3671
+ );
3672
+ break;
3673
+ case "SendNotiGOAL":
3674
+ window.open(
3675
+ `/my-goals/${JSON.parse(at)}`
3676
+ );
3677
+ break;
3678
+ case "CertificateApproved":
3679
+ window.open("/dashboard/certification/2");
3680
+ break;
3681
+ case "RequestCheckIn":
3682
+ window.open(
3683
+ `/start-question/${JSON.parse(at)?.[0]}/${JSON.parse(at)?.[1]}`
3684
+ );
3685
+ case "NewSurveyCreated":
3686
+ dt && window.open(
3687
+ `/start-survey/${JSON.parse(at)?.[0]}/${dt}`
3688
+ );
3689
+ break;
3690
+ case "StudentCompletedSurvey":
3691
+ window.open(
3692
+ `/start-survey/${JSON.parse(at)?.[0]}/${JSON.parse(at)?.[1]}`
3693
+ );
3694
+ break;
3695
+ }
3696
+ }, T = yn(async () => {
3697
+ yt(Dn(!0));
3698
+ try {
3699
+ const D = await Yi({ ...I, roles: Yt?.trim() ? [Yt] : Pt?.roles }), { items: Ct, totalItems: at } = D.data;
3700
+ yt(
3701
+ Ai({
3702
+ notificationList: Ct,
3703
+ totalItems: at
3704
+ })
3705
+ );
3706
+ } catch (D) {
3707
+ yt(
3708
+ vn({
3709
+ type: "danger",
3710
+ message: D.response?.data?.title || D.message
3711
+ })
3712
+ );
3713
+ }
3714
+ yt(Dn(!1));
3715
+ }, [I]);
3716
+ qn(() => {
3717
+ document.title = Wi;
3718
+ }, []), qn(() => {
3719
+ T();
3720
+ const D = new Fi(y, { cluster: At });
3721
+ return D.subscribe(`${$n}-${nt}`).bind(Gi, T), () => D.unsubscribe(`${$n}-${nt}`);
3722
+ }, [I, nt]);
3723
+ const P = yn(
3724
+ (D, Ct) => {
3725
+ try {
3726
+ yt(
3727
+ Hn({
3728
+ isOpen: !0,
3729
+ type: "warning",
3730
+ message: `Do you want to mark this notification ${Ct ? "read" : "unread"}?`,
3731
+ onConfirm: async () => {
3732
+ await $i(D), T();
3733
+ }
3734
+ })
3735
+ );
3736
+ } catch (at) {
3737
+ yt(
3738
+ vn({
3739
+ type: "danger",
3740
+ message: at.response?.data?.title || at.message
3741
+ })
3742
+ );
3743
+ }
3744
+ },
3745
+ [S, Dt]
3746
+ ), Z = yn(async () => {
3747
+ try {
3748
+ if (S.length === 0) throw new Error("There are no unread messages");
3749
+ yt(
3750
+ Hn({
3751
+ isOpen: !0,
3752
+ type: "warning",
3753
+ message: "Do you want to mark all notification ?",
3754
+ onConfirm: async () => {
3755
+ $(!0), await Ji(), T(), $(!1);
3756
+ }
3757
+ })
3758
+ );
3759
+ } catch (D) {
3760
+ yt(
3761
+ vn({
3762
+ type: "danger",
3763
+ message: D.response?.data?.title || D.message
3764
+ })
3765
+ );
3766
+ }
3767
+ }, [S]);
3768
+ return {
3769
+ notificationList: S,
3770
+ totalItems: it,
3771
+ unReadNotification: Dt,
3772
+ filters: I,
3773
+ changeFilters: bt,
3774
+ updateNotification: P,
3775
+ viewNotification: H,
3776
+ updateAll: Z,
3777
+ toggleUpdateAllStatus: Q
3778
+ };
3779
+ }, Zi = "_container_1bf04_1", Vi = "_header_1bf04_7", Qi = "_markAllBtn_1bf04_14", to = "_markAllText_1bf04_21", eo = "_markAllCheckbox_1bf04_27", no = "_filterContainer_1bf04_35", ro = "_filterLabel_1bf04_40", io = "_tableWrapper_1bf04_52", oo = "_tableHead_1bf04_60", so = "_thText_1bf04_69", ao = "_td_1bf04_73", fo = "_rowText_1bf04_77", co = "_rowTime_1bf04_82", uo = "_checkboxInput_1bf04_87", ho = "_actionBtn_1bf04_95", lo = "_iconContainer_1bf04_104", po = "_iconGreen_1bf04_114", xo = "_iconOrange_1bf04_118", vo = "_iconRed_1bf04_122", yo = "_iconYellow_1bf04_126", go = "_flagIcon_1bf04_140", _o = "_flagIconRed_1bf04_145", bo = "_flagIconYellow_1bf04_149", mo = "_tooltipContainer_1bf04_153", wo = "_tooltipText_1bf04_157", So = "_whiteTooltip_1bf04_163", Co = "_redText_1bf04_173", ut = {
3780
+ container: Zi,
3781
+ header: Vi,
3782
+ markAllBtn: Qi,
3783
+ markAllText: to,
3784
+ markAllCheckbox: eo,
3785
+ filterContainer: no,
3786
+ filterLabel: ro,
3787
+ tableWrapper: io,
3788
+ tableHead: oo,
3789
+ thText: so,
3790
+ td: ao,
3791
+ rowText: fo,
3792
+ rowTime: co,
3793
+ checkboxInput: uo,
3794
+ actionBtn: ho,
3795
+ iconContainer: lo,
3796
+ iconGreen: po,
3797
+ iconOrange: xo,
3798
+ iconRed: vo,
3799
+ iconYellow: yo,
3800
+ "explain-icon": "_explain-icon_1bf04_134",
3801
+ flagIcon: go,
3802
+ flagIconRed: _o,
3803
+ flagIconYellow: bo,
3804
+ tooltipContainer: mo,
3805
+ tooltipText: wo,
3806
+ whiteTooltip: So,
3807
+ redText: Co
3808
+ }, To = "Notifications", Ao = "/images/info-icon.png", Po = (yt) => {
3809
+ const Yt = (yt.text || "").toLowerCase(), Pt = yt.informaions?.[0]?.toLowerCase();
3810
+ return Yt.includes("red flag") || Pt?.includes("red") ? /* @__PURE__ */ vt("div", { className: `${ut.iconContainer} ${ut.iconRed}`, children: /* @__PURE__ */ vt(
3811
+ "img",
3812
+ {
3813
+ src: "/images/flag-icon.svg",
3814
+ alt: "Red flag",
3815
+ className: `${ut.flagIcon} ${ut.flagIconRed}`
3816
+ }
3817
+ ) }) : Yt.includes("yellow flag") || Pt?.includes("yellow") ? /* @__PURE__ */ vt("div", { className: `${ut.iconContainer} ${ut.iconYellow}`, children: /* @__PURE__ */ vt(
3818
+ "img",
3819
+ {
3820
+ src: "/images/flag-icon.svg",
3821
+ alt: "Yellow flag",
3822
+ className: `${ut.flagIcon} ${ut.flagIconYellow}`
3823
+ }
3824
+ ) }) : Yt.includes("completed a check-in") || Yt.includes("completed a survey") || yt.source === "NewSessionComplete" || yt.source === "Class Reflection Completed" || yt.source === "External Reflection Completed" ? /* @__PURE__ */ vt("div", { className: `${ut.iconContainer} ${ut.iconGreen}`, children: /* @__PURE__ */ vt(ki, { color: "white", size: 18 }) }) : /* @__PURE__ */ vt("div", { className: `${ut.iconContainer} ${ut.iconOrange}`, children: /* @__PURE__ */ vt(ji, { color: "white", size: 18 }) });
3825
+ }, jo = () => {
3826
+ const {
3827
+ notificationList: yt,
3828
+ totalItems: Yt,
3829
+ filters: Pt,
3830
+ changeFilters: nt,
3831
+ updateNotification: dt,
3832
+ viewNotification: S,
3833
+ updateAll: y,
3834
+ toggleUpdateAllStatus: At
3835
+ } = Ki(), { t: it } = Ii(), Dt = (I, ct, Q) => {
3836
+ if (typeof I != "string") return null;
3837
+ const $ = I.indexOf(" "), bt = $ !== -1 ? I.substring(0, $) : I, H = $ !== -1 ? I.substring($ + 1) : "";
3838
+ return /* @__PURE__ */ Jt("div", { className: ct !== Q - 1 ? "mb-1" : "", children: [
3839
+ /* @__PURE__ */ vt("span", { className: `fw-bold ${ut.redText}`, children: bt }),
3840
+ " ",
3841
+ H
3842
+ ] }, ct);
3843
+ };
3844
+ return /* @__PURE__ */ Jt("div", { className: `animated fadeIn ${ut.container}`, children: [
3845
+ /* @__PURE__ */ Jt("div", { className: "d-flex justify-content-between align-items-center mb-4", children: [
3846
+ /* @__PURE__ */ vt("h4", { className: ut.header, children: To }),
3847
+ /* @__PURE__ */ Jt("div", { className: "d-flex align-items-center", children: [
3848
+ Pt.isRead === !1 && /* @__PURE__ */ Jt(
3849
+ "div",
3850
+ {
3851
+ className: `d-flex align-items-center px-4 me-3 cursor-pointer ${ut.markAllBtn}`,
3852
+ onClick: () => y(),
3853
+ children: [
3854
+ /* @__PURE__ */ vt("span", { className: `me-3 ${ut.markAllText}`, children: "Mark all as read" }),
3855
+ /* @__PURE__ */ vt(
3856
+ Mn,
3857
+ {
3858
+ checked: At,
3859
+ type: "checkbox",
3860
+ className: `m-0 position-relative cursor-pointer ${ut.markAllCheckbox}`,
3861
+ onChange: () => y(),
3862
+ onClick: (I) => I.stopPropagation()
3863
+ }
3864
+ )
3865
+ ]
3866
+ }
3867
+ ),
3868
+ /* @__PURE__ */ Jt("div", { className: ut.filterContainer, children: [
3869
+ /* @__PURE__ */ vt("span", { className: ut.filterLabel, children: "Filter" }),
3870
+ /* @__PURE__ */ vt(
3871
+ Bi,
3872
+ {
3873
+ value: Pt.isRead,
3874
+ onChange: (I) => nt({ isRead: I.value })
3875
+ }
3876
+ )
3877
+ ] })
3878
+ ] })
3879
+ ] }),
3880
+ /* @__PURE__ */ Jt(_i, { className: "mb-2", children: [
3881
+ /* @__PURE__ */ vt(Bn, { md: 12, children: yt && yt.length > 0 ? /* @__PURE__ */ vt("div", { className: ut.tableWrapper, children: /* @__PURE__ */ Jt(bi, { borderless: !0, hover: !0, style: { margin: 0 }, children: [
3882
+ /* @__PURE__ */ vt("thead", { className: ut.tableHead, children: /* @__PURE__ */ Jt("tr", { children: [
3883
+ /* @__PURE__ */ vt("th", { className: `align-middle ${ut.th} ${ut.thText}`, children: "Text" }),
3884
+ /* @__PURE__ */ vt("th", { className: `align-middle ${ut.th}`, children: "Time" }),
3885
+ /* @__PURE__ */ vt("th", { className: `text-center align-middle ${ut.th}`, children: "Is read" }),
3886
+ /* @__PURE__ */ vt("th", { className: `text-center align-middle ${ut.th}`, children: "Go to session" })
3887
+ ] }) }),
3888
+ /* @__PURE__ */ vt("tbody", { children: yt.map((I, ct) => /* @__PURE__ */ Jt("tr", { style: { borderBottom: ct === yt.length - 1 ? "none" : "1px solid #f3f4f6" }, children: [
3889
+ /* @__PURE__ */ vt("td", { className: `align-middle ${ut.td}`, children: /* @__PURE__ */ Jt("div", { className: "d-flex align-items-center", children: [
3890
+ Po(I),
3891
+ /* @__PURE__ */ Jt("span", { className: `ms-3 ${ut.rowText}`, children: [
3892
+ I.text,
3893
+ I.text?.toLowerCase().includes("flag") && /* @__PURE__ */ vt(
3894
+ "img",
3895
+ {
3896
+ id: `info-icon-${I.id}`,
3897
+ src: Ao,
3898
+ alt: "",
3899
+ className: `ms-2 ${ut["explain-icon"]}`
3900
+ }
3901
+ )
3902
+ ] }),
3903
+ I.text?.toLowerCase().includes("flag") && /* @__PURE__ */ vt(
3904
+ mi,
3905
+ {
3906
+ placement: "bottom",
3907
+ target: `info-icon-${I.id}`,
3908
+ innerClassName: ut.whiteTooltip,
3909
+ offset: [0, 10],
3910
+ children: /* @__PURE__ */ vt("div", { className: `text-left p-1 ${ut.tooltipContainer}`, children: /* @__PURE__ */ vt("div", { className: ut.tooltipText, children: I.informaions && I.informaions.length > 0 ? I.informaions.map((Q, $) => Dt(Q, $, I.informaions.length)) : "View session details to see metrics" }) })
3911
+ }
3912
+ )
3913
+ ] }) }),
3914
+ /* @__PURE__ */ vt("td", { className: `align-middle ${ut.td} ${ut.rowTime}`, children: Pi(I.time, "yyyy-MM-DD HH:mm") }),
3915
+ /* @__PURE__ */ vt("td", { className: `text-center align-middle ${ut.td}`, children: /* @__PURE__ */ vt(
3916
+ Mn,
3917
+ {
3918
+ type: "checkbox",
3919
+ className: `position-relative m-0 shadow-none ${ut.checkboxInput}`,
3920
+ checked: I.isRead,
3921
+ onChange: () => dt(
3922
+ I.id,
3923
+ !I.isRead
3924
+ )
3925
+ }
3926
+ ) }),
3927
+ /* @__PURE__ */ vt("td", { className: `text-center align-middle ${ut.td}`, children: [
3928
+ "AssessmentAssignment",
3929
+ "NewConferenceCreated",
3930
+ "NewSessionCreated",
3931
+ "CertificateApproved",
3932
+ "Class Reflection",
3933
+ "NewSessionComplete",
3934
+ "ActionPointReminder",
3935
+ "SendNotiPLP",
3936
+ "SendNotiGOAL",
3937
+ "Class Reflection Completed",
3938
+ "External Reflection Completed",
3939
+ "RequestCheckIn",
3940
+ "NewSurveyCreated",
3941
+ "StudentCompletedSurvey"
3942
+ ].includes(I.source) && /* @__PURE__ */ vt(
3943
+ wi,
3944
+ {
3945
+ outline: !0,
3946
+ color: "secondary",
3947
+ size: "sm",
3948
+ className: ut.actionBtn,
3949
+ onClick: () => S(I),
3950
+ children: "Go"
3951
+ }
3952
+ ) })
3953
+ ] }, I.id)) })
3954
+ ] }) }) : /* @__PURE__ */ vt(Ei, { label: it("notification") }) }),
3955
+ /* @__PURE__ */ vt(Bn, { md: 12, className: "mt-4", children: /* @__PURE__ */ vt(
3956
+ Oi,
3957
+ {
3958
+ filters: Pt,
3959
+ totalRecordCount: Yt,
3960
+ changePageSize: (I) => nt({ pageSize: I }),
3961
+ changePage: (I) => nt({ currentPage: I })
3962
+ }
3963
+ ) })
3964
+ ] })
3965
+ ] });
3966
+ };
3967
+ export {
3968
+ jo as default
3969
+ };