dishub-analytics.dashboard 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +670 -649
- package/dist/index.umd.js +14 -14
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
function
|
|
1
|
+
import qt, { forwardRef as rs, createElement as Ot, useState as te, useCallback as Te, useRef as He, useEffect as ye } from "react";
|
|
2
|
+
function $t(i) {
|
|
3
3
|
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
|
|
4
4
|
}
|
|
5
5
|
var st = { exports: {} }, Pe = {};
|
|
@@ -12,10 +12,10 @@ var st = { exports: {} }, Pe = {};
|
|
|
12
12
|
* This source code is licensed under the MIT license found in the
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
|
-
var
|
|
15
|
+
var Mt;
|
|
16
16
|
function ns() {
|
|
17
|
-
if (
|
|
18
|
-
|
|
17
|
+
if (Mt) return Pe;
|
|
18
|
+
Mt = 1;
|
|
19
19
|
var i = Symbol.for("react.transitional.element"), d = Symbol.for("react.fragment");
|
|
20
20
|
function c(o, l, h) {
|
|
21
21
|
var u = null;
|
|
@@ -44,9 +44,9 @@ var Ae = {};
|
|
|
44
44
|
* This source code is licensed under the MIT license found in the
|
|
45
45
|
* LICENSE file in the root directory of this source tree.
|
|
46
46
|
*/
|
|
47
|
-
var
|
|
47
|
+
var zt;
|
|
48
48
|
function ss() {
|
|
49
|
-
return
|
|
49
|
+
return zt || (zt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
50
50
|
function i(g) {
|
|
51
51
|
if (g == null) return null;
|
|
52
52
|
if (typeof g == "function")
|
|
@@ -55,11 +55,11 @@ function ss() {
|
|
|
55
55
|
switch (g) {
|
|
56
56
|
case m:
|
|
57
57
|
return "Fragment";
|
|
58
|
-
case
|
|
58
|
+
case k:
|
|
59
59
|
return "Profiler";
|
|
60
60
|
case b:
|
|
61
61
|
return "StrictMode";
|
|
62
|
-
case
|
|
62
|
+
case L:
|
|
63
63
|
return "Suspense";
|
|
64
64
|
case j:
|
|
65
65
|
return "SuspenseList";
|
|
@@ -70,11 +70,11 @@ function ss() {
|
|
|
70
70
|
switch (typeof g.tag == "number" && console.error(
|
|
71
71
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
72
72
|
), g.$$typeof) {
|
|
73
|
-
case
|
|
73
|
+
case v:
|
|
74
74
|
return "Portal";
|
|
75
75
|
case D:
|
|
76
76
|
return g.displayName || "Context";
|
|
77
|
-
case
|
|
77
|
+
case R:
|
|
78
78
|
return (g._context.displayName || "Context") + ".Consumer";
|
|
79
79
|
case U:
|
|
80
80
|
var A = g.render;
|
|
@@ -122,7 +122,7 @@ function ss() {
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
function l() {
|
|
125
|
-
var g =
|
|
125
|
+
var g = O.A;
|
|
126
126
|
return g === null ? null : g.getOwner();
|
|
127
127
|
}
|
|
128
128
|
function h() {
|
|
@@ -147,23 +147,23 @@ function ss() {
|
|
|
147
147
|
configurable: !0
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function y() {
|
|
151
151
|
var g = i(this.type);
|
|
152
152
|
return ge[g] || (ge[g] = !0, console.error(
|
|
153
153
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
154
154
|
)), g = this.props.ref, g !== void 0 ? g : null;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function z(g, A, F, W, J, Z) {
|
|
157
157
|
var X = F.ref;
|
|
158
158
|
return g = {
|
|
159
|
-
$$typeof:
|
|
159
|
+
$$typeof: N,
|
|
160
160
|
type: g,
|
|
161
161
|
key: A,
|
|
162
162
|
props: F,
|
|
163
163
|
_owner: W
|
|
164
164
|
}, (X !== void 0 ? X : null) !== null ? Object.defineProperty(g, "ref", {
|
|
165
165
|
enumerable: !1,
|
|
166
|
-
get:
|
|
166
|
+
get: y
|
|
167
167
|
}) : Object.defineProperty(g, "ref", { enumerable: !1, value: null }), g._store = {}, Object.defineProperty(g._store, "validated", {
|
|
168
168
|
configurable: !1,
|
|
169
169
|
enumerable: !1,
|
|
@@ -186,19 +186,19 @@ function ss() {
|
|
|
186
186
|
value: Z
|
|
187
187
|
}), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function _(g, A, F, W, J, Z) {
|
|
190
190
|
var X = A.children;
|
|
191
191
|
if (X !== void 0)
|
|
192
192
|
if (W)
|
|
193
193
|
if (he(X)) {
|
|
194
194
|
for (W = 0; W < X.length; W++)
|
|
195
|
-
|
|
195
|
+
T(X[W]);
|
|
196
196
|
Object.freeze && Object.freeze(X);
|
|
197
197
|
} else
|
|
198
198
|
console.error(
|
|
199
199
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
200
200
|
);
|
|
201
|
-
else
|
|
201
|
+
else T(X);
|
|
202
202
|
if (re.call(A, "key")) {
|
|
203
203
|
X = i(g);
|
|
204
204
|
var oe = Object.keys(A).filter(function(Ie) {
|
|
@@ -225,7 +225,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
225
225
|
return X && x(
|
|
226
226
|
F,
|
|
227
227
|
typeof g == "function" ? g.displayName || g.name || "Unknown" : g
|
|
228
|
-
),
|
|
228
|
+
), z(
|
|
229
229
|
g,
|
|
230
230
|
X,
|
|
231
231
|
F,
|
|
@@ -234,27 +234,27 @@ React keys must be passed directly to JSX without using spread:
|
|
|
234
234
|
Z
|
|
235
235
|
);
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function T(g) {
|
|
238
238
|
p(g) ? g._store && (g._store.validated = 1) : typeof g == "object" && g !== null && g.$$typeof === q && (g._payload.status === "fulfilled" ? p(g._payload.value) && g._payload.value._store && (g._payload.value._store.validated = 1) : g._store && (g._store.validated = 1));
|
|
239
239
|
}
|
|
240
240
|
function p(g) {
|
|
241
|
-
return typeof g == "object" && g !== null && g.$$typeof ===
|
|
241
|
+
return typeof g == "object" && g !== null && g.$$typeof === N;
|
|
242
242
|
}
|
|
243
|
-
var
|
|
243
|
+
var S = qt, N = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), R = Symbol.for("react.consumer"), D = Symbol.for("react.context"), U = Symbol.for("react.forward_ref"), L = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), V = Symbol.for("react.activity"), Q = Symbol.for("react.client.reference"), O = S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, re = Object.prototype.hasOwnProperty, he = Array.isArray, ue = console.createTask ? console.createTask : function() {
|
|
244
244
|
return null;
|
|
245
245
|
};
|
|
246
|
-
|
|
246
|
+
S = {
|
|
247
247
|
react_stack_bottom_frame: function(g) {
|
|
248
248
|
return g();
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
|
-
var ae, ge = {}, pe =
|
|
252
|
-
|
|
251
|
+
var ae, ge = {}, pe = S.react_stack_bottom_frame.bind(
|
|
252
|
+
S,
|
|
253
253
|
h
|
|
254
254
|
)(), se = ue(o(h)), xe = {};
|
|
255
255
|
Ae.Fragment = m, Ae.jsx = function(g, A, F) {
|
|
256
|
-
var W = 1e4 >
|
|
257
|
-
return
|
|
256
|
+
var W = 1e4 > O.recentlyCreatedOwnerStacks++;
|
|
257
|
+
return _(
|
|
258
258
|
g,
|
|
259
259
|
A,
|
|
260
260
|
F,
|
|
@@ -263,8 +263,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
263
263
|
W ? ue(o(g)) : se
|
|
264
264
|
);
|
|
265
265
|
}, Ae.jsxs = function(g, A, F) {
|
|
266
|
-
var W = 1e4 >
|
|
267
|
-
return
|
|
266
|
+
var W = 1e4 > O.recentlyCreatedOwnerStacks++;
|
|
267
|
+
return _(
|
|
268
268
|
g,
|
|
269
269
|
A,
|
|
270
270
|
F,
|
|
@@ -308,23 +308,23 @@ const as = (i) => i.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase().trim(),
|
|
|
308
308
|
strokeWidth: h = 2,
|
|
309
309
|
absoluteStrokeWidth: u,
|
|
310
310
|
className: x = "",
|
|
311
|
-
children:
|
|
312
|
-
...
|
|
313
|
-
},
|
|
311
|
+
children: y,
|
|
312
|
+
...z
|
|
313
|
+
}, _) => Ot(
|
|
314
314
|
"svg",
|
|
315
315
|
{
|
|
316
|
-
ref:
|
|
316
|
+
ref: _,
|
|
317
317
|
...is,
|
|
318
318
|
width: l,
|
|
319
319
|
height: l,
|
|
320
320
|
stroke: o,
|
|
321
321
|
strokeWidth: u ? Number(h) * 24 / Number(l) : h,
|
|
322
322
|
className: ["lucide", `lucide-${as(i)}`, x].join(" "),
|
|
323
|
-
...
|
|
323
|
+
...z
|
|
324
324
|
},
|
|
325
325
|
[
|
|
326
|
-
...d.map(([
|
|
327
|
-
...Array.isArray(
|
|
326
|
+
...d.map(([T, p]) => Ot(T, p)),
|
|
327
|
+
...Array.isArray(y) ? y : [y]
|
|
328
328
|
]
|
|
329
329
|
)
|
|
330
330
|
);
|
|
@@ -392,7 +392,7 @@ const cs = Y("Bot", [
|
|
|
392
392
|
* This source code is licensed under the ISC license.
|
|
393
393
|
* See the LICENSE file in the root directory of this source tree.
|
|
394
394
|
*/
|
|
395
|
-
const
|
|
395
|
+
const Dt = Y("Calendar", [
|
|
396
396
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
397
397
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
398
398
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
@@ -422,7 +422,7 @@ const hs = Y("ChevronRight", [
|
|
|
422
422
|
* This source code is licensed under the ISC license.
|
|
423
423
|
* See the LICENSE file in the root directory of this source tree.
|
|
424
424
|
*/
|
|
425
|
-
const
|
|
425
|
+
const Ft = Y("Compass", [
|
|
426
426
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
427
427
|
["polygon", { points: "16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76", key: "m9r19z" }]
|
|
428
428
|
]);
|
|
@@ -483,7 +483,7 @@ const fs = Y("Laptop", [
|
|
|
483
483
|
* This source code is licensed under the ISC license.
|
|
484
484
|
* See the LICENSE file in the root directory of this source tree.
|
|
485
485
|
*/
|
|
486
|
-
const
|
|
486
|
+
const Gt = Y("Loader2", [
|
|
487
487
|
["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]
|
|
488
488
|
]);
|
|
489
489
|
/**
|
|
@@ -503,7 +503,7 @@ const ms = Y("LogOut", [
|
|
|
503
503
|
* This source code is licensed under the ISC license.
|
|
504
504
|
* See the LICENSE file in the root directory of this source tree.
|
|
505
505
|
*/
|
|
506
|
-
const
|
|
506
|
+
const Vt = Y("Monitor", [
|
|
507
507
|
["rect", { width: "20", height: "14", x: "2", y: "3", rx: "2", key: "48i651" }],
|
|
508
508
|
["line", { x1: "8", x2: "16", y1: "21", y2: "21", key: "1svkeh" }],
|
|
509
509
|
["line", { x1: "12", x2: "12", y1: "17", y2: "21", key: "vw1qmm" }]
|
|
@@ -514,7 +514,7 @@ const Gt = Y("Monitor", [
|
|
|
514
514
|
* This source code is licensed under the ISC license.
|
|
515
515
|
* See the LICENSE file in the root directory of this source tree.
|
|
516
516
|
*/
|
|
517
|
-
const
|
|
517
|
+
const lt = Y("MousePointer2", [
|
|
518
518
|
["path", { d: "m4 4 7.07 17 2.51-7.39L21 11.07z", key: "1vqm48" }]
|
|
519
519
|
]);
|
|
520
520
|
/**
|
|
@@ -539,7 +539,7 @@ const gs = Y("ShieldCheck", [
|
|
|
539
539
|
* This source code is licensed under the ISC license.
|
|
540
540
|
* See the LICENSE file in the root directory of this source tree.
|
|
541
541
|
*/
|
|
542
|
-
const
|
|
542
|
+
const Ut = Y("TrendingDown", [
|
|
543
543
|
["polyline", { points: "22 17 13.5 8.5 8.5 13.5 2 7", key: "1r2t7k" }],
|
|
544
544
|
["polyline", { points: "16 17 22 17 22 11", key: "11uiuu" }]
|
|
545
545
|
]);
|
|
@@ -603,9 +603,9 @@ var Wt = { exports: {} };
|
|
|
603
603
|
}, l.t = function(h, u) {
|
|
604
604
|
if (u & 1 && (h = l(h)), u & 8 || u & 4 && typeof h == "object" && h && h.__esModule) return h;
|
|
605
605
|
var x = /* @__PURE__ */ Object.create(null);
|
|
606
|
-
if (l.r(x), Object.defineProperty(x, "default", { enumerable: !0, value: h }), u & 2 && typeof h != "string") for (var
|
|
607
|
-
return h[
|
|
608
|
-
}).bind(null,
|
|
606
|
+
if (l.r(x), Object.defineProperty(x, "default", { enumerable: !0, value: h }), u & 2 && typeof h != "string") for (var y in h) l.d(x, y, (function(z) {
|
|
607
|
+
return h[z];
|
|
608
|
+
}).bind(null, y));
|
|
609
609
|
return x;
|
|
610
610
|
}, l.n = function(h) {
|
|
611
611
|
var u = h && h.__esModule ? (
|
|
@@ -628,112 +628,112 @@ var Wt = { exports: {} };
|
|
|
628
628
|
/***/
|
|
629
629
|
function(c, o, l) {
|
|
630
630
|
var h = this && this.__extends || /* @__PURE__ */ function() {
|
|
631
|
-
var
|
|
632
|
-
return
|
|
633
|
-
|
|
634
|
-
} || function(
|
|
635
|
-
for (var D in
|
|
636
|
-
},
|
|
631
|
+
var v = function(m, b) {
|
|
632
|
+
return v = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(k, R) {
|
|
633
|
+
k.__proto__ = R;
|
|
634
|
+
} || function(k, R) {
|
|
635
|
+
for (var D in R) R.hasOwnProperty(D) && (k[D] = R[D]);
|
|
636
|
+
}, v(m, b);
|
|
637
637
|
};
|
|
638
638
|
return function(m, b) {
|
|
639
|
-
|
|
640
|
-
function
|
|
639
|
+
v(m, b);
|
|
640
|
+
function k() {
|
|
641
641
|
this.constructor = m;
|
|
642
642
|
}
|
|
643
|
-
m.prototype = b === null ? Object.create(b) : (
|
|
643
|
+
m.prototype = b === null ? Object.create(b) : (k.prototype = b.prototype, new k());
|
|
644
644
|
};
|
|
645
645
|
}();
|
|
646
646
|
Object.defineProperty(o, "__esModule", { value: !0 });
|
|
647
647
|
var u = 256, x = (
|
|
648
648
|
/** @class */
|
|
649
649
|
function() {
|
|
650
|
-
function
|
|
650
|
+
function v(m) {
|
|
651
651
|
m === void 0 && (m = "="), this._paddingCharacter = m;
|
|
652
652
|
}
|
|
653
|
-
return
|
|
653
|
+
return v.prototype.encodedLength = function(m) {
|
|
654
654
|
return this._paddingCharacter ? (m + 2) / 3 * 4 | 0 : (m * 8 + 5) / 6 | 0;
|
|
655
|
-
},
|
|
656
|
-
for (var b = "",
|
|
657
|
-
var
|
|
658
|
-
b += this._encodeByte(
|
|
655
|
+
}, v.prototype.encode = function(m) {
|
|
656
|
+
for (var b = "", k = 0; k < m.length - 2; k += 3) {
|
|
657
|
+
var R = m[k] << 16 | m[k + 1] << 8 | m[k + 2];
|
|
658
|
+
b += this._encodeByte(R >>> 3 * 6 & 63), b += this._encodeByte(R >>> 2 * 6 & 63), b += this._encodeByte(R >>> 1 * 6 & 63), b += this._encodeByte(R >>> 0 * 6 & 63);
|
|
659
659
|
}
|
|
660
|
-
var D = m.length -
|
|
660
|
+
var D = m.length - k;
|
|
661
661
|
if (D > 0) {
|
|
662
|
-
var
|
|
663
|
-
b += this._encodeByte(
|
|
662
|
+
var R = m[k] << 16 | (D === 2 ? m[k + 1] << 8 : 0);
|
|
663
|
+
b += this._encodeByte(R >>> 3 * 6 & 63), b += this._encodeByte(R >>> 2 * 6 & 63), D === 2 ? b += this._encodeByte(R >>> 1 * 6 & 63) : b += this._paddingCharacter || "", b += this._paddingCharacter || "";
|
|
664
664
|
}
|
|
665
665
|
return b;
|
|
666
|
-
},
|
|
666
|
+
}, v.prototype.maxDecodedLength = function(m) {
|
|
667
667
|
return this._paddingCharacter ? m / 4 * 3 | 0 : (m * 6 + 7) / 8 | 0;
|
|
668
|
-
},
|
|
668
|
+
}, v.prototype.decodedLength = function(m) {
|
|
669
669
|
return this.maxDecodedLength(m.length - this._getPaddingLength(m));
|
|
670
|
-
},
|
|
670
|
+
}, v.prototype.decode = function(m) {
|
|
671
671
|
if (m.length === 0)
|
|
672
672
|
return new Uint8Array(0);
|
|
673
|
-
for (var b = this._getPaddingLength(m),
|
|
674
|
-
j = this._decodeChar(m.charCodeAt(U + 0)), P = this._decodeChar(m.charCodeAt(U + 1)), q = this._decodeChar(m.charCodeAt(U + 2)), V = this._decodeChar(m.charCodeAt(U + 3)),
|
|
675
|
-
if (U <
|
|
673
|
+
for (var b = this._getPaddingLength(m), k = m.length - b, R = new Uint8Array(this.maxDecodedLength(k)), D = 0, U = 0, L = 0, j = 0, P = 0, q = 0, V = 0; U < k - 4; U += 4)
|
|
674
|
+
j = this._decodeChar(m.charCodeAt(U + 0)), P = this._decodeChar(m.charCodeAt(U + 1)), q = this._decodeChar(m.charCodeAt(U + 2)), V = this._decodeChar(m.charCodeAt(U + 3)), R[D++] = j << 2 | P >>> 4, R[D++] = P << 4 | q >>> 2, R[D++] = q << 6 | V, L |= j & u, L |= P & u, L |= q & u, L |= V & u;
|
|
675
|
+
if (U < k - 1 && (j = this._decodeChar(m.charCodeAt(U)), P = this._decodeChar(m.charCodeAt(U + 1)), R[D++] = j << 2 | P >>> 4, L |= j & u, L |= P & u), U < k - 2 && (q = this._decodeChar(m.charCodeAt(U + 2)), R[D++] = P << 4 | q >>> 2, L |= q & u), U < k - 3 && (V = this._decodeChar(m.charCodeAt(U + 3)), R[D++] = q << 6 | V, L |= V & u), L !== 0)
|
|
676
676
|
throw new Error("Base64Coder: incorrect characters for decoding");
|
|
677
|
-
return
|
|
678
|
-
},
|
|
677
|
+
return R;
|
|
678
|
+
}, v.prototype._encodeByte = function(m) {
|
|
679
679
|
var b = m;
|
|
680
680
|
return b += 65, b += 25 - m >>> 8 & 6, b += 51 - m >>> 8 & -75, b += 61 - m >>> 8 & -15, b += 62 - m >>> 8 & 3, String.fromCharCode(b);
|
|
681
|
-
},
|
|
681
|
+
}, v.prototype._decodeChar = function(m) {
|
|
682
682
|
var b = u;
|
|
683
683
|
return b += (42 - m & m - 44) >>> 8 & -u + m - 43 + 62, b += (46 - m & m - 48) >>> 8 & -u + m - 47 + 63, b += (47 - m & m - 58) >>> 8 & -u + m - 48 + 52, b += (64 - m & m - 91) >>> 8 & -u + m - 65 + 0, b += (96 - m & m - 123) >>> 8 & -u + m - 97 + 26, b;
|
|
684
|
-
},
|
|
684
|
+
}, v.prototype._getPaddingLength = function(m) {
|
|
685
685
|
var b = 0;
|
|
686
686
|
if (this._paddingCharacter) {
|
|
687
|
-
for (var
|
|
687
|
+
for (var k = m.length - 1; k >= 0 && m[k] === this._paddingCharacter; k--)
|
|
688
688
|
b++;
|
|
689
689
|
if (m.length < 4 || b > 2)
|
|
690
690
|
throw new Error("Base64Coder: incorrect padding");
|
|
691
691
|
}
|
|
692
692
|
return b;
|
|
693
|
-
},
|
|
693
|
+
}, v;
|
|
694
694
|
}()
|
|
695
695
|
);
|
|
696
696
|
o.Coder = x;
|
|
697
|
-
var
|
|
698
|
-
function
|
|
699
|
-
return
|
|
697
|
+
var y = new x();
|
|
698
|
+
function z(v) {
|
|
699
|
+
return y.encode(v);
|
|
700
700
|
}
|
|
701
|
-
o.encode =
|
|
702
|
-
function
|
|
703
|
-
return
|
|
701
|
+
o.encode = z;
|
|
702
|
+
function _(v) {
|
|
703
|
+
return y.decode(v);
|
|
704
704
|
}
|
|
705
|
-
o.decode =
|
|
706
|
-
var
|
|
705
|
+
o.decode = _;
|
|
706
|
+
var T = (
|
|
707
707
|
/** @class */
|
|
708
|
-
function(
|
|
709
|
-
h(m,
|
|
708
|
+
function(v) {
|
|
709
|
+
h(m, v);
|
|
710
710
|
function m() {
|
|
711
|
-
return
|
|
711
|
+
return v !== null && v.apply(this, arguments) || this;
|
|
712
712
|
}
|
|
713
713
|
return m.prototype._encodeByte = function(b) {
|
|
714
|
-
var
|
|
715
|
-
return
|
|
714
|
+
var k = b;
|
|
715
|
+
return k += 65, k += 25 - b >>> 8 & 6, k += 51 - b >>> 8 & -75, k += 61 - b >>> 8 & -13, k += 62 - b >>> 8 & 49, String.fromCharCode(k);
|
|
716
716
|
}, m.prototype._decodeChar = function(b) {
|
|
717
|
-
var
|
|
718
|
-
return
|
|
717
|
+
var k = u;
|
|
718
|
+
return k += (44 - b & b - 46) >>> 8 & -u + b - 45 + 62, k += (94 - b & b - 96) >>> 8 & -u + b - 95 + 63, k += (47 - b & b - 58) >>> 8 & -u + b - 48 + 52, k += (64 - b & b - 91) >>> 8 & -u + b - 65 + 0, k += (96 - b & b - 123) >>> 8 & -u + b - 97 + 26, k;
|
|
719
719
|
}, m;
|
|
720
720
|
}(x)
|
|
721
721
|
);
|
|
722
|
-
o.URLSafeCoder =
|
|
723
|
-
var p = new
|
|
724
|
-
function
|
|
725
|
-
return p.encode(
|
|
722
|
+
o.URLSafeCoder = T;
|
|
723
|
+
var p = new T();
|
|
724
|
+
function S(v) {
|
|
725
|
+
return p.encode(v);
|
|
726
726
|
}
|
|
727
|
-
o.encodeURLSafe =
|
|
728
|
-
function
|
|
729
|
-
return p.decode(
|
|
727
|
+
o.encodeURLSafe = S;
|
|
728
|
+
function N(v) {
|
|
729
|
+
return p.decode(v);
|
|
730
730
|
}
|
|
731
|
-
o.decodeURLSafe =
|
|
732
|
-
return
|
|
733
|
-
}, o.maxDecodedLength = function(
|
|
734
|
-
return
|
|
735
|
-
}, o.decodedLength = function(
|
|
736
|
-
return
|
|
731
|
+
o.decodeURLSafe = N, o.encodedLength = function(v) {
|
|
732
|
+
return y.encodedLength(v);
|
|
733
|
+
}, o.maxDecodedLength = function(v) {
|
|
734
|
+
return y.maxDecodedLength(v);
|
|
735
|
+
}, o.decodedLength = function(v) {
|
|
736
|
+
return y.decodedLength(v);
|
|
737
737
|
};
|
|
738
738
|
},
|
|
739
739
|
/* 1 */
|
|
@@ -741,74 +741,74 @@ var Wt = { exports: {} };
|
|
|
741
741
|
function(c, o, l) {
|
|
742
742
|
Object.defineProperty(o, "__esModule", { value: !0 });
|
|
743
743
|
var h = "utf8: invalid string", u = "utf8: invalid source encoding";
|
|
744
|
-
function x(
|
|
745
|
-
for (var
|
|
746
|
-
var
|
|
747
|
-
|
|
744
|
+
function x(_) {
|
|
745
|
+
for (var T = new Uint8Array(y(_)), p = 0, S = 0; S < _.length; S++) {
|
|
746
|
+
var N = _.charCodeAt(S);
|
|
747
|
+
N < 128 ? T[p++] = N : N < 2048 ? (T[p++] = 192 | N >> 6, T[p++] = 128 | N & 63) : N < 55296 ? (T[p++] = 224 | N >> 12, T[p++] = 128 | N >> 6 & 63, T[p++] = 128 | N & 63) : (S++, N = (N & 1023) << 10, N |= _.charCodeAt(S) & 1023, N += 65536, T[p++] = 240 | N >> 18, T[p++] = 128 | N >> 12 & 63, T[p++] = 128 | N >> 6 & 63, T[p++] = 128 | N & 63);
|
|
748
748
|
}
|
|
749
|
-
return
|
|
749
|
+
return T;
|
|
750
750
|
}
|
|
751
751
|
o.encode = x;
|
|
752
|
-
function
|
|
753
|
-
for (var
|
|
754
|
-
var
|
|
755
|
-
if (
|
|
756
|
-
|
|
757
|
-
else if (
|
|
758
|
-
|
|
759
|
-
else if (
|
|
760
|
-
|
|
761
|
-
else if (
|
|
762
|
-
if (p >=
|
|
752
|
+
function y(_) {
|
|
753
|
+
for (var T = 0, p = 0; p < _.length; p++) {
|
|
754
|
+
var S = _.charCodeAt(p);
|
|
755
|
+
if (S < 128)
|
|
756
|
+
T += 1;
|
|
757
|
+
else if (S < 2048)
|
|
758
|
+
T += 2;
|
|
759
|
+
else if (S < 55296)
|
|
760
|
+
T += 3;
|
|
761
|
+
else if (S <= 57343) {
|
|
762
|
+
if (p >= _.length - 1)
|
|
763
763
|
throw new Error(h);
|
|
764
|
-
p++,
|
|
764
|
+
p++, T += 4;
|
|
765
765
|
} else
|
|
766
766
|
throw new Error(h);
|
|
767
767
|
}
|
|
768
|
-
return
|
|
768
|
+
return T;
|
|
769
769
|
}
|
|
770
|
-
o.encodedLength =
|
|
771
|
-
function
|
|
772
|
-
for (var
|
|
773
|
-
var
|
|
774
|
-
if (
|
|
775
|
-
var
|
|
776
|
-
if (
|
|
777
|
-
if (p >=
|
|
770
|
+
o.encodedLength = y;
|
|
771
|
+
function z(_) {
|
|
772
|
+
for (var T = [], p = 0; p < _.length; p++) {
|
|
773
|
+
var S = _[p];
|
|
774
|
+
if (S & 128) {
|
|
775
|
+
var N = void 0;
|
|
776
|
+
if (S < 224) {
|
|
777
|
+
if (p >= _.length)
|
|
778
778
|
throw new Error(u);
|
|
779
|
-
var
|
|
780
|
-
if ((
|
|
779
|
+
var v = _[++p];
|
|
780
|
+
if ((v & 192) !== 128)
|
|
781
781
|
throw new Error(u);
|
|
782
|
-
|
|
783
|
-
} else if (
|
|
784
|
-
if (p >=
|
|
782
|
+
S = (S & 31) << 6 | v & 63, N = 128;
|
|
783
|
+
} else if (S < 240) {
|
|
784
|
+
if (p >= _.length - 1)
|
|
785
785
|
throw new Error(u);
|
|
786
|
-
var
|
|
787
|
-
if ((
|
|
786
|
+
var v = _[++p], m = _[++p];
|
|
787
|
+
if ((v & 192) !== 128 || (m & 192) !== 128)
|
|
788
788
|
throw new Error(u);
|
|
789
|
-
|
|
790
|
-
} else if (
|
|
791
|
-
if (p >=
|
|
789
|
+
S = (S & 15) << 12 | (v & 63) << 6 | m & 63, N = 2048;
|
|
790
|
+
} else if (S < 248) {
|
|
791
|
+
if (p >= _.length - 2)
|
|
792
792
|
throw new Error(u);
|
|
793
|
-
var
|
|
794
|
-
if ((
|
|
793
|
+
var v = _[++p], m = _[++p], b = _[++p];
|
|
794
|
+
if ((v & 192) !== 128 || (m & 192) !== 128 || (b & 192) !== 128)
|
|
795
795
|
throw new Error(u);
|
|
796
|
-
|
|
796
|
+
S = (S & 15) << 18 | (v & 63) << 12 | (m & 63) << 6 | b & 63, N = 65536;
|
|
797
797
|
} else
|
|
798
798
|
throw new Error(u);
|
|
799
|
-
if (
|
|
799
|
+
if (S < N || S >= 55296 && S <= 57343)
|
|
800
800
|
throw new Error(u);
|
|
801
|
-
if (
|
|
802
|
-
if (
|
|
801
|
+
if (S >= 65536) {
|
|
802
|
+
if (S > 1114111)
|
|
803
803
|
throw new Error(u);
|
|
804
|
-
|
|
804
|
+
S -= 65536, T.push(String.fromCharCode(55296 | S >> 10)), S = 56320 | S & 1023;
|
|
805
805
|
}
|
|
806
806
|
}
|
|
807
|
-
|
|
807
|
+
T.push(String.fromCharCode(S));
|
|
808
808
|
}
|
|
809
|
-
return
|
|
809
|
+
return T.join("");
|
|
810
810
|
}
|
|
811
|
-
o.decode =
|
|
811
|
+
o.decode = z;
|
|
812
812
|
},
|
|
813
813
|
/* 2 */
|
|
814
814
|
/***/
|
|
@@ -825,10 +825,10 @@ var Wt = { exports: {} };
|
|
|
825
825
|
}
|
|
826
826
|
create(e) {
|
|
827
827
|
this.lastId++;
|
|
828
|
-
var t = this.lastId, s = this.prefix + t, a = this.name + "[" + t + "]", f = !1,
|
|
828
|
+
var t = this.lastId, s = this.prefix + t, a = this.name + "[" + t + "]", f = !1, w = function() {
|
|
829
829
|
f || (e.apply(null, arguments), f = !0);
|
|
830
830
|
};
|
|
831
|
-
return this[t] =
|
|
831
|
+
return this[t] = w, { number: t, id: s, name: a, callback: w };
|
|
832
832
|
}
|
|
833
833
|
remove(e) {
|
|
834
834
|
delete this[e.number];
|
|
@@ -861,8 +861,8 @@ var Wt = { exports: {} };
|
|
|
861
861
|
cdn_http: "http://js.pusher.com",
|
|
862
862
|
cdn_https: "https://js.pusher.com",
|
|
863
863
|
dependency_suffix: ""
|
|
864
|
-
},
|
|
865
|
-
class
|
|
864
|
+
}, y = x;
|
|
865
|
+
class z {
|
|
866
866
|
constructor(e) {
|
|
867
867
|
this.options = e, this.receivers = e.receivers || u, this.loading = {};
|
|
868
868
|
}
|
|
@@ -872,33 +872,33 @@ var Wt = { exports: {} };
|
|
|
872
872
|
a.loading[e].push(s);
|
|
873
873
|
else {
|
|
874
874
|
a.loading[e] = [s];
|
|
875
|
-
var f =
|
|
876
|
-
if (a.receivers.remove(
|
|
875
|
+
var f = I.createScriptRequest(a.getPath(e, t)), w = a.receivers.create(function(C) {
|
|
876
|
+
if (a.receivers.remove(w), a.loading[e]) {
|
|
877
877
|
var E = a.loading[e];
|
|
878
878
|
delete a.loading[e];
|
|
879
879
|
for (var H = function(K) {
|
|
880
880
|
K || f.cleanup();
|
|
881
881
|
}, B = 0; B < E.length; B++)
|
|
882
|
-
E[B](
|
|
882
|
+
E[B](C, H);
|
|
883
883
|
}
|
|
884
884
|
});
|
|
885
|
-
f.send(
|
|
885
|
+
f.send(w);
|
|
886
886
|
}
|
|
887
887
|
}
|
|
888
888
|
getRoot(e) {
|
|
889
|
-
var t, s =
|
|
889
|
+
var t, s = I.getDocument().location.protocol;
|
|
890
890
|
return e && e.useTLS || s === "https:" ? t = this.options.cdn_https : t = this.options.cdn_http, t.replace(/\/*$/, "") + "/" + this.options.version;
|
|
891
891
|
}
|
|
892
892
|
getPath(e, t) {
|
|
893
893
|
return this.getRoot(t) + "/" + e + this.options.suffix + ".js";
|
|
894
894
|
}
|
|
895
895
|
}
|
|
896
|
-
var
|
|
897
|
-
cdn_http:
|
|
898
|
-
cdn_https:
|
|
899
|
-
version:
|
|
900
|
-
suffix:
|
|
901
|
-
receivers:
|
|
896
|
+
var _ = new h("_pusher_dependencies", "Pusher.DependenciesReceivers"), T = new z({
|
|
897
|
+
cdn_http: y.cdn_http,
|
|
898
|
+
cdn_https: y.cdn_https,
|
|
899
|
+
version: y.VERSION,
|
|
900
|
+
suffix: y.dependency_suffix,
|
|
901
|
+
receivers: _
|
|
902
902
|
});
|
|
903
903
|
const p = {
|
|
904
904
|
baseUrl: "https://pusher.com",
|
|
@@ -920,16 +920,16 @@ var Wt = { exports: {} };
|
|
|
920
920
|
}
|
|
921
921
|
}
|
|
922
922
|
};
|
|
923
|
-
var
|
|
923
|
+
var N = { buildLogSuffix: function(r) {
|
|
924
924
|
const e = "See:", t = p.urls[r];
|
|
925
925
|
if (!t)
|
|
926
926
|
return "";
|
|
927
927
|
let s;
|
|
928
928
|
return t.fullUrl ? s = t.fullUrl : t.path && (s = p.baseUrl + t.path), s ? `${e} ${s}` : "";
|
|
929
|
-
} },
|
|
929
|
+
} }, v;
|
|
930
930
|
(function(r) {
|
|
931
931
|
r.UserAuthentication = "user-authentication", r.ChannelAuthorization = "channel-authorization";
|
|
932
|
-
})(
|
|
932
|
+
})(v || (v = {}));
|
|
933
933
|
class m extends Error {
|
|
934
934
|
constructor(e) {
|
|
935
935
|
super(e), Object.setPrototypeOf(this, new.target.prototype);
|
|
@@ -940,12 +940,12 @@ var Wt = { exports: {} };
|
|
|
940
940
|
super(e), Object.setPrototypeOf(this, new.target.prototype);
|
|
941
941
|
}
|
|
942
942
|
}
|
|
943
|
-
class
|
|
943
|
+
class k extends Error {
|
|
944
944
|
constructor(e) {
|
|
945
945
|
super(e), Object.setPrototypeOf(this, new.target.prototype);
|
|
946
946
|
}
|
|
947
947
|
}
|
|
948
|
-
class
|
|
948
|
+
class R extends Error {
|
|
949
949
|
constructor(e) {
|
|
950
950
|
super(e), Object.setPrototypeOf(this, new.target.prototype);
|
|
951
951
|
}
|
|
@@ -960,7 +960,7 @@ var Wt = { exports: {} };
|
|
|
960
960
|
super(e), Object.setPrototypeOf(this, new.target.prototype);
|
|
961
961
|
}
|
|
962
962
|
}
|
|
963
|
-
class
|
|
963
|
+
class L extends Error {
|
|
964
964
|
constructor(e) {
|
|
965
965
|
super(e), Object.setPrototypeOf(this, new.target.prototype);
|
|
966
966
|
}
|
|
@@ -976,45 +976,45 @@ var Wt = { exports: {} };
|
|
|
976
976
|
}
|
|
977
977
|
}
|
|
978
978
|
var V = function(r, e, t, s, a) {
|
|
979
|
-
const f =
|
|
979
|
+
const f = I.createXHR();
|
|
980
980
|
f.open("POST", t.endpoint, !0), f.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
|
|
981
|
-
for (var
|
|
982
|
-
f.setRequestHeader(
|
|
981
|
+
for (var w in t.headers)
|
|
982
|
+
f.setRequestHeader(w, t.headers[w]);
|
|
983
983
|
if (t.headersProvider != null) {
|
|
984
|
-
let
|
|
985
|
-
for (var
|
|
986
|
-
f.setRequestHeader(
|
|
984
|
+
let C = t.headersProvider();
|
|
985
|
+
for (var w in C)
|
|
986
|
+
f.setRequestHeader(w, C[w]);
|
|
987
987
|
}
|
|
988
988
|
return f.onreadystatechange = function() {
|
|
989
989
|
if (f.readyState === 4)
|
|
990
990
|
if (f.status === 200) {
|
|
991
|
-
let
|
|
991
|
+
let C, E = !1;
|
|
992
992
|
try {
|
|
993
|
-
|
|
993
|
+
C = JSON.parse(f.responseText), E = !0;
|
|
994
994
|
} catch {
|
|
995
995
|
a(new P(200, `JSON returned from ${s.toString()} endpoint was invalid, yet status code was 200. Data was: ${f.responseText}`), null);
|
|
996
996
|
}
|
|
997
|
-
E && a(null,
|
|
997
|
+
E && a(null, C);
|
|
998
998
|
} else {
|
|
999
|
-
let
|
|
999
|
+
let C = "";
|
|
1000
1000
|
switch (s) {
|
|
1001
|
-
case
|
|
1002
|
-
|
|
1001
|
+
case v.UserAuthentication:
|
|
1002
|
+
C = N.buildLogSuffix("authenticationEndpoint");
|
|
1003
1003
|
break;
|
|
1004
|
-
case
|
|
1005
|
-
|
|
1004
|
+
case v.ChannelAuthorization:
|
|
1005
|
+
C = `Clients must be authorized to join private or presence channels. ${N.buildLogSuffix("authorizationEndpoint")}`;
|
|
1006
1006
|
break;
|
|
1007
1007
|
}
|
|
1008
|
-
a(new P(f.status, `Unable to retrieve auth string from ${s.toString()} endpoint - received status: ${f.status} from ${t.endpoint}. ${
|
|
1008
|
+
a(new P(f.status, `Unable to retrieve auth string from ${s.toString()} endpoint - received status: ${f.status} from ${t.endpoint}. ${C}`), null);
|
|
1009
1009
|
}
|
|
1010
1010
|
}, f.send(e), f;
|
|
1011
1011
|
};
|
|
1012
1012
|
function Q(r) {
|
|
1013
1013
|
return ge(ue(r));
|
|
1014
1014
|
}
|
|
1015
|
-
var
|
|
1015
|
+
var O = String.fromCharCode, re = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", he = function(r) {
|
|
1016
1016
|
var e = r.charCodeAt(0);
|
|
1017
|
-
return e < 128 ? r : e < 2048 ?
|
|
1017
|
+
return e < 128 ? r : e < 2048 ? O(192 | e >>> 6) + O(128 | e & 63) : O(224 | e >>> 12 & 15) + O(128 | e >>> 6 & 63) + O(128 | e & 63);
|
|
1018
1018
|
}, ue = function(r) {
|
|
1019
1019
|
return r.replace(/[^\x00-\x7F]/g, he);
|
|
1020
1020
|
}, ae = function(r) {
|
|
@@ -1120,7 +1120,7 @@ var Wt = { exports: {} };
|
|
|
1120
1120
|
for (var s = 0; s < r.length; s++)
|
|
1121
1121
|
e.call(t || window, r[s], s, r);
|
|
1122
1122
|
}
|
|
1123
|
-
function
|
|
1123
|
+
function ht(r, e) {
|
|
1124
1124
|
for (var t = [], s = 0; s < r.length; s++)
|
|
1125
1125
|
t.push(e(r[s], s, r, t));
|
|
1126
1126
|
return t;
|
|
@@ -1131,7 +1131,7 @@ var Wt = { exports: {} };
|
|
|
1131
1131
|
t[a] = e(s);
|
|
1132
1132
|
}), t;
|
|
1133
1133
|
}
|
|
1134
|
-
function
|
|
1134
|
+
function ut(r, e) {
|
|
1135
1135
|
e = e || function(a) {
|
|
1136
1136
|
return !!a;
|
|
1137
1137
|
};
|
|
@@ -1139,7 +1139,7 @@ var Wt = { exports: {} };
|
|
|
1139
1139
|
e(r[s], s, r, t) && t.push(r[s]);
|
|
1140
1140
|
return t;
|
|
1141
1141
|
}
|
|
1142
|
-
function
|
|
1142
|
+
function pt(r, e) {
|
|
1143
1143
|
var t = {};
|
|
1144
1144
|
return ne(r, function(s, a) {
|
|
1145
1145
|
(e && e(s, a, r, t) || s) && (t[a] = s);
|
|
@@ -1151,7 +1151,7 @@ var Wt = { exports: {} };
|
|
|
1151
1151
|
e.push([s, t]);
|
|
1152
1152
|
}), e;
|
|
1153
1153
|
}
|
|
1154
|
-
function
|
|
1154
|
+
function ft(r, e) {
|
|
1155
1155
|
for (var t = 0; t < r.length; t++)
|
|
1156
1156
|
if (e(r[t], t, r))
|
|
1157
1157
|
return !0;
|
|
@@ -1169,29 +1169,29 @@ var Wt = { exports: {} };
|
|
|
1169
1169
|
});
|
|
1170
1170
|
}
|
|
1171
1171
|
function or(r) {
|
|
1172
|
-
var e =
|
|
1172
|
+
var e = pt(r, function(s) {
|
|
1173
1173
|
return s !== void 0;
|
|
1174
|
-
}), t =
|
|
1174
|
+
}), t = ht(sr(ar(e)), J.method("join", "=")).join("&");
|
|
1175
1175
|
return t;
|
|
1176
1176
|
}
|
|
1177
1177
|
function lr(r) {
|
|
1178
1178
|
var e = [], t = [];
|
|
1179
1179
|
return function s(a, f) {
|
|
1180
|
-
var
|
|
1180
|
+
var w, C, E;
|
|
1181
1181
|
switch (typeof a) {
|
|
1182
1182
|
case "object":
|
|
1183
1183
|
if (!a)
|
|
1184
1184
|
return null;
|
|
1185
|
-
for (
|
|
1186
|
-
if (e[
|
|
1187
|
-
return { $ref: t[
|
|
1185
|
+
for (w = 0; w < e.length; w += 1)
|
|
1186
|
+
if (e[w] === a)
|
|
1187
|
+
return { $ref: t[w] };
|
|
1188
1188
|
if (e.push(a), t.push(f), Object.prototype.toString.apply(a) === "[object Array]")
|
|
1189
|
-
for (E = [],
|
|
1190
|
-
E[
|
|
1189
|
+
for (E = [], w = 0; w < a.length; w += 1)
|
|
1190
|
+
E[w] = s(a[w], f + "[" + w + "]");
|
|
1191
1191
|
else {
|
|
1192
1192
|
E = {};
|
|
1193
|
-
for (
|
|
1194
|
-
Object.prototype.hasOwnProperty.call(a,
|
|
1193
|
+
for (C in a)
|
|
1194
|
+
Object.prototype.hasOwnProperty.call(a, C) && (E[C] = s(a[C], f + "[" + JSON.stringify(C) + "]"));
|
|
1195
1195
|
}
|
|
1196
1196
|
return E;
|
|
1197
1197
|
case "number":
|
|
@@ -1238,14 +1238,14 @@ var Wt = { exports: {} };
|
|
|
1238
1238
|
(t.headers !== void 0 || t.headersProvider != null) && G.warn(`To send headers with the ${s.toString()} request, you must use AJAX, rather than JSONP.`);
|
|
1239
1239
|
var f = r.nextAuthCallbackID.toString();
|
|
1240
1240
|
r.nextAuthCallbackID++;
|
|
1241
|
-
var
|
|
1241
|
+
var w = r.getDocument(), C = w.createElement("script");
|
|
1242
1242
|
r.auth_callbacks[f] = function(B) {
|
|
1243
1243
|
a(null, B);
|
|
1244
1244
|
};
|
|
1245
1245
|
var E = "Pusher.auth_callbacks['" + f + "']";
|
|
1246
|
-
|
|
1247
|
-
var H =
|
|
1248
|
-
H.insertBefore(
|
|
1246
|
+
C.src = t.endpoint + "?callback=" + encodeURIComponent(E) + "&" + e;
|
|
1247
|
+
var H = w.getElementsByTagName("head")[0] || w.documentElement;
|
|
1248
|
+
H.insertBefore(C, H.firstChild);
|
|
1249
1249
|
}, hr = dr;
|
|
1250
1250
|
class ur {
|
|
1251
1251
|
constructor(e) {
|
|
@@ -1274,7 +1274,7 @@ var Wt = { exports: {} };
|
|
|
1274
1274
|
send(e) {
|
|
1275
1275
|
if (!this.request) {
|
|
1276
1276
|
var t = or(this.data), s = this.url + "/" + e.number + "?" + t;
|
|
1277
|
-
this.request =
|
|
1277
|
+
this.request = I.createScriptRequest(s), this.request.send(e);
|
|
1278
1278
|
}
|
|
1279
1279
|
}
|
|
1280
1280
|
cleanup() {
|
|
@@ -1283,10 +1283,10 @@ var Wt = { exports: {} };
|
|
|
1283
1283
|
}
|
|
1284
1284
|
var fr = function(r, e) {
|
|
1285
1285
|
return function(t, s) {
|
|
1286
|
-
var a = "http" + (e ? "s" : "") + "://", f = a + (r.host || r.options.host) + r.options.path,
|
|
1287
|
-
u.remove(
|
|
1286
|
+
var a = "http" + (e ? "s" : "") + "://", f = a + (r.host || r.options.host) + r.options.path, w = I.createJSONPRequest(f, t), C = I.ScriptReceivers.create(function(E, H) {
|
|
1287
|
+
u.remove(C), w.cleanup(), H && H.host && (r.host = H.host), s && s(E, H);
|
|
1288
1288
|
});
|
|
1289
|
-
|
|
1289
|
+
w.send(C);
|
|
1290
1290
|
};
|
|
1291
1291
|
}, mr = {
|
|
1292
1292
|
name: "jsonp",
|
|
@@ -1297,7 +1297,7 @@ var Wt = { exports: {} };
|
|
|
1297
1297
|
return s + "://" + a + t;
|
|
1298
1298
|
}
|
|
1299
1299
|
function Fe(r, e) {
|
|
1300
|
-
var t = "/app/" + r, s = "?protocol=" +
|
|
1300
|
+
var t = "/app/" + r, s = "?protocol=" + y.PROTOCOL + "&client=js&version=" + y.VERSION + (e ? "&" + e : "");
|
|
1301
1301
|
return t + s;
|
|
1302
1302
|
}
|
|
1303
1303
|
var xr = {
|
|
@@ -1342,7 +1342,7 @@ var Wt = { exports: {} };
|
|
|
1342
1342
|
}
|
|
1343
1343
|
removeCallback(e, t, s) {
|
|
1344
1344
|
Ne(e, function(a) {
|
|
1345
|
-
this._callbacks[a] =
|
|
1345
|
+
this._callbacks[a] = ut(this._callbacks[a] || [], function(f) {
|
|
1346
1346
|
return t && t !== f.fn || s && s !== f.context;
|
|
1347
1347
|
}), this._callbacks[a].length === 0 && delete this._callbacks[a];
|
|
1348
1348
|
}, this);
|
|
@@ -1370,7 +1370,7 @@ var Wt = { exports: {} };
|
|
|
1370
1370
|
return this.callbacks.remove(e, t, s), this;
|
|
1371
1371
|
}
|
|
1372
1372
|
unbind_global(e) {
|
|
1373
|
-
return e ? (this.global_callbacks =
|
|
1373
|
+
return e ? (this.global_callbacks = ut(this.global_callbacks || [], (t) => t !== e), this) : (this.global_callbacks = [], this);
|
|
1374
1374
|
}
|
|
1375
1375
|
unbind_all() {
|
|
1376
1376
|
return this.unbind(), this.unbind_global(), this;
|
|
@@ -1378,17 +1378,17 @@ var Wt = { exports: {} };
|
|
|
1378
1378
|
emit(e, t, s) {
|
|
1379
1379
|
for (var a = 0; a < this.global_callbacks.length; a++)
|
|
1380
1380
|
this.global_callbacks[a](e, t);
|
|
1381
|
-
var f = this.callbacks.get(e),
|
|
1382
|
-
if (s ?
|
|
1381
|
+
var f = this.callbacks.get(e), w = [];
|
|
1382
|
+
if (s ? w.push(t, s) : t && w.push(t), f && f.length > 0)
|
|
1383
1383
|
for (var a = 0; a < f.length; a++)
|
|
1384
|
-
f[a].fn.apply(f[a].context || window,
|
|
1384
|
+
f[a].fn.apply(f[a].context || window, w);
|
|
1385
1385
|
else this.failThrough && this.failThrough(e, t);
|
|
1386
1386
|
return this;
|
|
1387
1387
|
}
|
|
1388
1388
|
}
|
|
1389
1389
|
class yr extends le {
|
|
1390
1390
|
constructor(e, t, s, a, f) {
|
|
1391
|
-
super(), this.initialize =
|
|
1391
|
+
super(), this.initialize = I.transportConnectionInitializer, this.hooks = e, this.name = t, this.priority = s, this.key = a, this.options = f, this.state = "new", this.timeline = f.timeline, this.activityTimeout = f.activityTimeout, this.id = this.timeline.generateUniqueID();
|
|
1392
1392
|
}
|
|
1393
1393
|
handlesActivityChecks() {
|
|
1394
1394
|
return !!this.hooks.handlesActivityChecks;
|
|
@@ -1465,7 +1465,7 @@ var Wt = { exports: {} };
|
|
|
1465
1465
|
return Z({ cid: this.id }, e);
|
|
1466
1466
|
}
|
|
1467
1467
|
}
|
|
1468
|
-
class
|
|
1468
|
+
class je {
|
|
1469
1469
|
constructor(e) {
|
|
1470
1470
|
this.hooks = e;
|
|
1471
1471
|
}
|
|
@@ -1476,43 +1476,43 @@ var Wt = { exports: {} };
|
|
|
1476
1476
|
return new yr(this.hooks, e, t, s, a);
|
|
1477
1477
|
}
|
|
1478
1478
|
}
|
|
1479
|
-
var jr = new
|
|
1479
|
+
var jr = new je({
|
|
1480
1480
|
urls: xr,
|
|
1481
1481
|
handlesActivityChecks: !1,
|
|
1482
1482
|
supportsPing: !1,
|
|
1483
1483
|
isInitialized: function() {
|
|
1484
|
-
return !!
|
|
1484
|
+
return !!I.getWebSocketAPI();
|
|
1485
1485
|
},
|
|
1486
1486
|
isSupported: function() {
|
|
1487
|
-
return !!
|
|
1487
|
+
return !!I.getWebSocketAPI();
|
|
1488
1488
|
},
|
|
1489
1489
|
getSocket: function(r) {
|
|
1490
|
-
return
|
|
1490
|
+
return I.createWebSocket(r);
|
|
1491
1491
|
}
|
|
1492
|
-
}),
|
|
1492
|
+
}), mt = {
|
|
1493
1493
|
urls: br,
|
|
1494
1494
|
handlesActivityChecks: !1,
|
|
1495
1495
|
supportsPing: !0,
|
|
1496
1496
|
isInitialized: function() {
|
|
1497
1497
|
return !0;
|
|
1498
1498
|
}
|
|
1499
|
-
},
|
|
1499
|
+
}, gt = Z({
|
|
1500
1500
|
getSocket: function(r) {
|
|
1501
|
-
return
|
|
1501
|
+
return I.HTTPFactory.createStreamingSocket(r);
|
|
1502
1502
|
}
|
|
1503
|
-
},
|
|
1503
|
+
}, mt), xt = Z({
|
|
1504
1504
|
getSocket: function(r) {
|
|
1505
|
-
return
|
|
1505
|
+
return I.HTTPFactory.createPollingSocket(r);
|
|
1506
1506
|
}
|
|
1507
|
-
},
|
|
1507
|
+
}, mt), bt = {
|
|
1508
1508
|
isSupported: function() {
|
|
1509
|
-
return
|
|
1509
|
+
return I.isXHRSupported();
|
|
1510
1510
|
}
|
|
1511
|
-
}, _r = new
|
|
1511
|
+
}, _r = new je(Z({}, gt, bt)), kr = new je(Z({}, xt, bt)), Nr = {
|
|
1512
1512
|
ws: jr,
|
|
1513
1513
|
xhr_streaming: _r,
|
|
1514
1514
|
xhr_polling: kr
|
|
1515
|
-
}, Me = Nr, Sr = new
|
|
1515
|
+
}, Me = Nr, Sr = new je({
|
|
1516
1516
|
file: "sockjs",
|
|
1517
1517
|
urls: vr,
|
|
1518
1518
|
handlesActivityChecks: !0,
|
|
@@ -1525,7 +1525,7 @@ var Wt = { exports: {} };
|
|
|
1525
1525
|
},
|
|
1526
1526
|
getSocket: function(r, e) {
|
|
1527
1527
|
return new window.SockJS(r, null, {
|
|
1528
|
-
js_path:
|
|
1528
|
+
js_path: T.getPath("sockjs", {
|
|
1529
1529
|
useTLS: e.useTLS
|
|
1530
1530
|
}),
|
|
1531
1531
|
ignore_null_origin: e.ignoreNullOrigin
|
|
@@ -1536,12 +1536,12 @@ var Wt = { exports: {} };
|
|
|
1536
1536
|
path: e
|
|
1537
1537
|
}));
|
|
1538
1538
|
}
|
|
1539
|
-
}),
|
|
1539
|
+
}), vt = {
|
|
1540
1540
|
isSupported: function(r) {
|
|
1541
|
-
var e =
|
|
1541
|
+
var e = I.isXDRSupported(r.useTLS);
|
|
1542
1542
|
return e;
|
|
1543
1543
|
}
|
|
1544
|
-
}, Cr = new
|
|
1544
|
+
}, Cr = new je(Z({}, gt, vt)), Tr = new je(Z({}, xt, vt));
|
|
1545
1545
|
Me.xdr_streaming = Cr, Me.xdr_polling = Tr, Me.sockjs = Sr;
|
|
1546
1546
|
var Pr = Me;
|
|
1547
1547
|
class Ar extends le {
|
|
@@ -1567,23 +1567,23 @@ var Wt = { exports: {} };
|
|
|
1567
1567
|
a = Z({}, a, {
|
|
1568
1568
|
activityTimeout: this.pingDelay
|
|
1569
1569
|
});
|
|
1570
|
-
var f = this.transport.createConnection(e, t, s, a),
|
|
1571
|
-
f.unbind("open",
|
|
1570
|
+
var f = this.transport.createConnection(e, t, s, a), w = null, C = function() {
|
|
1571
|
+
f.unbind("open", C), f.bind("closed", E), w = J.now();
|
|
1572
1572
|
}, E = (H) => {
|
|
1573
1573
|
if (f.unbind("closed", E), H.code === 1002 || H.code === 1003)
|
|
1574
1574
|
this.manager.reportDeath();
|
|
1575
|
-
else if (!H.wasClean &&
|
|
1576
|
-
var B = J.now() -
|
|
1575
|
+
else if (!H.wasClean && w) {
|
|
1576
|
+
var B = J.now() - w;
|
|
1577
1577
|
B < 2 * this.maxPingDelay && (this.manager.reportDeath(), this.pingDelay = Math.max(B / 2, this.minPingDelay));
|
|
1578
1578
|
}
|
|
1579
1579
|
};
|
|
1580
|
-
return f.bind("open",
|
|
1580
|
+
return f.bind("open", C), f;
|
|
1581
1581
|
}
|
|
1582
1582
|
isSupported(e) {
|
|
1583
1583
|
return this.manager.isAlive() && this.transport.isSupported(e);
|
|
1584
1584
|
}
|
|
1585
1585
|
}
|
|
1586
|
-
const
|
|
1586
|
+
const wt = {
|
|
1587
1587
|
decodeMessage: function(r) {
|
|
1588
1588
|
try {
|
|
1589
1589
|
var e = JSON.parse(r.data), t = e.data;
|
|
@@ -1606,7 +1606,7 @@ var Wt = { exports: {} };
|
|
|
1606
1606
|
return JSON.stringify(r);
|
|
1607
1607
|
},
|
|
1608
1608
|
processHandshake: function(r) {
|
|
1609
|
-
var e =
|
|
1609
|
+
var e = wt.decodeMessage(r);
|
|
1610
1610
|
if (e.event === "pusher:connection_established") {
|
|
1611
1611
|
if (!e.data.activity_timeout)
|
|
1612
1612
|
throw "No activity timeout specified in handshake";
|
|
@@ -1637,7 +1637,7 @@ var Wt = { exports: {} };
|
|
|
1637
1637
|
} : null;
|
|
1638
1638
|
}
|
|
1639
1639
|
};
|
|
1640
|
-
var be =
|
|
1640
|
+
var be = wt;
|
|
1641
1641
|
class Lr extends le {
|
|
1642
1642
|
constructor(e, t) {
|
|
1643
1643
|
super(), this.id = e, this.transport = t, this.activityTimeout = t.activityTimeout, this.bindListeners();
|
|
@@ -1751,7 +1751,7 @@ var Wt = { exports: {} };
|
|
|
1751
1751
|
this.timeline = e, this.options = t || {};
|
|
1752
1752
|
}
|
|
1753
1753
|
send(e, t) {
|
|
1754
|
-
this.timeline.isEmpty() || this.timeline.send(
|
|
1754
|
+
this.timeline.isEmpty() || this.timeline.send(I.TimelineTransport.getAgent(this, e), t);
|
|
1755
1755
|
}
|
|
1756
1756
|
}
|
|
1757
1757
|
class Ve extends le {
|
|
@@ -1767,7 +1767,7 @@ var Wt = { exports: {} };
|
|
|
1767
1767
|
if (e.indexOf("client-") !== 0)
|
|
1768
1768
|
throw new m("Event '" + e + "' does not start with 'client-'");
|
|
1769
1769
|
if (!this.subscribed) {
|
|
1770
|
-
var s =
|
|
1770
|
+
var s = N.buildLogSuffix("triggeringClientEvents");
|
|
1771
1771
|
G.warn(`Client event triggered before channel 'subscription_succeeded' event . ${s}`);
|
|
1772
1772
|
}
|
|
1773
1773
|
return this.pusher.send_event(e, t, this.name);
|
|
@@ -1858,27 +1858,27 @@ var Wt = { exports: {} };
|
|
|
1858
1858
|
}
|
|
1859
1859
|
var zr = function(r, e, t, s) {
|
|
1860
1860
|
function a(f) {
|
|
1861
|
-
return f instanceof t ? f : new t(function(
|
|
1862
|
-
|
|
1861
|
+
return f instanceof t ? f : new t(function(w) {
|
|
1862
|
+
w(f);
|
|
1863
1863
|
});
|
|
1864
1864
|
}
|
|
1865
|
-
return new (t || (t = Promise))(function(f,
|
|
1866
|
-
function
|
|
1865
|
+
return new (t || (t = Promise))(function(f, w) {
|
|
1866
|
+
function C(B) {
|
|
1867
1867
|
try {
|
|
1868
1868
|
H(s.next(B));
|
|
1869
1869
|
} catch (K) {
|
|
1870
|
-
|
|
1870
|
+
w(K);
|
|
1871
1871
|
}
|
|
1872
1872
|
}
|
|
1873
1873
|
function E(B) {
|
|
1874
1874
|
try {
|
|
1875
1875
|
H(s.throw(B));
|
|
1876
1876
|
} catch (K) {
|
|
1877
|
-
|
|
1877
|
+
w(K);
|
|
1878
1878
|
}
|
|
1879
1879
|
}
|
|
1880
1880
|
function H(B) {
|
|
1881
|
-
B.done ? f(B.value) : a(B.value).then(
|
|
1881
|
+
B.done ? f(B.value) : a(B.value).then(C, E);
|
|
1882
1882
|
}
|
|
1883
1883
|
H((s = s.apply(r, e || [])).next());
|
|
1884
1884
|
});
|
|
@@ -1896,8 +1896,8 @@ var Wt = { exports: {} };
|
|
|
1896
1896
|
} else if (yield this.pusher.user.signinDonePromise, this.pusher.user.user_data != null)
|
|
1897
1897
|
this.members.setMyID(this.pusher.user.user_data.id);
|
|
1898
1898
|
else {
|
|
1899
|
-
let
|
|
1900
|
-
G.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${
|
|
1899
|
+
let w = N.buildLogSuffix("authorizationEndpoint");
|
|
1900
|
+
G.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${w}, or the user should be signed in.`), t("Invalid auth response");
|
|
1901
1901
|
return;
|
|
1902
1902
|
}
|
|
1903
1903
|
t(s, a);
|
|
@@ -1989,9 +1989,9 @@ var Wt = { exports: {} };
|
|
|
1989
1989
|
}
|
|
1990
1990
|
let f = this.nacl.secretbox.open(s, a, this.key);
|
|
1991
1991
|
if (f === null) {
|
|
1992
|
-
G.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, (
|
|
1993
|
-
if (
|
|
1994
|
-
G.error(`Failed to make a request to the authEndpoint: ${
|
|
1992
|
+
G.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, (w, C) => {
|
|
1993
|
+
if (w) {
|
|
1994
|
+
G.error(`Failed to make a request to the authEndpoint: ${C}. Unable to fetch new key, so dropping encrypted event`);
|
|
1995
1995
|
return;
|
|
1996
1996
|
}
|
|
1997
1997
|
if (f = this.nacl.secretbox.open(s, a, this.key), f === null) {
|
|
@@ -2016,7 +2016,7 @@ var Wt = { exports: {} };
|
|
|
2016
2016
|
class Br extends le {
|
|
2017
2017
|
constructor(e, t) {
|
|
2018
2018
|
super(), this.state = "initialized", this.connection = null, this.key = e, this.options = t, this.timeline = this.options.timeline, this.usingTLS = this.options.useTLS, this.errorCallbacks = this.buildErrorCallbacks(), this.connectionCallbacks = this.buildConnectionCallbacks(this.errorCallbacks), this.handshakeCallbacks = this.buildHandshakeCallbacks(this.errorCallbacks);
|
|
2019
|
-
var s =
|
|
2019
|
+
var s = I.getNetwork();
|
|
2020
2020
|
s.bind("online", () => {
|
|
2021
2021
|
this.timeline.info({ netinfo: "online" }), (this.state === "connecting" || this.state === "unavailable") && this.retryIn(0);
|
|
2022
2022
|
}), s.bind("offline", () => {
|
|
@@ -2196,7 +2196,7 @@ var Wt = { exports: {} };
|
|
|
2196
2196
|
if (r.indexOf("private-encrypted-") === 0) {
|
|
2197
2197
|
if (e.config.nacl)
|
|
2198
2198
|
return ce.createEncryptedChannel(r, e, e.config.nacl);
|
|
2199
|
-
let t = "Tried to subscribe to a private-encrypted- channel but no nacl implementation available", s =
|
|
2199
|
+
let t = "Tried to subscribe to a private-encrypted- channel but no nacl implementation available", s = N.buildLogSuffix("encryptedChannelSupport");
|
|
2200
2200
|
throw new U(`${t}. ${s}`);
|
|
2201
2201
|
} else {
|
|
2202
2202
|
if (r.indexOf("private-") === 0)
|
|
@@ -2237,7 +2237,7 @@ var Wt = { exports: {} };
|
|
|
2237
2237
|
return new Rr(r, e, t);
|
|
2238
2238
|
}
|
|
2239
2239
|
}, ce = Fr;
|
|
2240
|
-
class
|
|
2240
|
+
class yt {
|
|
2241
2241
|
constructor(e) {
|
|
2242
2242
|
this.options = e || {}, this.livesLeft = this.options.lives || 1 / 0;
|
|
2243
2243
|
}
|
|
@@ -2259,33 +2259,33 @@ var Wt = { exports: {} };
|
|
|
2259
2259
|
this.strategies = e, this.loop = !!t.loop, this.failFast = !!t.failFast, this.timeout = t.timeout, this.timeoutLimit = t.timeoutLimit;
|
|
2260
2260
|
}
|
|
2261
2261
|
isSupported() {
|
|
2262
|
-
return
|
|
2262
|
+
return ft(this.strategies, J.method("isSupported"));
|
|
2263
2263
|
}
|
|
2264
2264
|
connect(e, t) {
|
|
2265
|
-
var s = this.strategies, a = 0, f = this.timeout,
|
|
2266
|
-
H ? t(null, H) : (a = a + 1, this.loop && (a = a % s.length), a < s.length ? (f && (f = f * 2, this.timeoutLimit && (f = Math.min(f, this.timeoutLimit))),
|
|
2265
|
+
var s = this.strategies, a = 0, f = this.timeout, w = null, C = (E, H) => {
|
|
2266
|
+
H ? t(null, H) : (a = a + 1, this.loop && (a = a % s.length), a < s.length ? (f && (f = f * 2, this.timeoutLimit && (f = Math.min(f, this.timeoutLimit))), w = this.tryStrategy(s[a], e, { timeout: f, failFast: this.failFast }, C)) : t(!0));
|
|
2267
2267
|
};
|
|
2268
|
-
return
|
|
2268
|
+
return w = this.tryStrategy(s[a], e, { timeout: f, failFast: this.failFast }, C), {
|
|
2269
2269
|
abort: function() {
|
|
2270
|
-
|
|
2270
|
+
w.abort();
|
|
2271
2271
|
},
|
|
2272
2272
|
forceMinPriority: function(E) {
|
|
2273
|
-
e = E,
|
|
2273
|
+
e = E, w && w.forceMinPriority(E);
|
|
2274
2274
|
}
|
|
2275
2275
|
};
|
|
2276
2276
|
}
|
|
2277
2277
|
tryStrategy(e, t, s, a) {
|
|
2278
|
-
var f = null,
|
|
2278
|
+
var f = null, w = null;
|
|
2279
2279
|
return s.timeout > 0 && (f = new A(s.timeout, function() {
|
|
2280
|
-
|
|
2281
|
-
})),
|
|
2282
|
-
|
|
2280
|
+
w.abort(), a(!0);
|
|
2281
|
+
})), w = e.connect(t, function(C, E) {
|
|
2282
|
+
C && f && f.isRunning() && !s.failFast || (f && f.ensureAborted(), a(C, E));
|
|
2283
2283
|
}), {
|
|
2284
2284
|
abort: function() {
|
|
2285
|
-
f && f.ensureAborted(),
|
|
2285
|
+
f && f.ensureAborted(), w.abort();
|
|
2286
2286
|
},
|
|
2287
|
-
forceMinPriority: function(
|
|
2288
|
-
|
|
2287
|
+
forceMinPriority: function(C) {
|
|
2288
|
+
w.forceMinPriority(C);
|
|
2289
2289
|
}
|
|
2290
2290
|
};
|
|
2291
2291
|
}
|
|
@@ -2295,25 +2295,25 @@ var Wt = { exports: {} };
|
|
|
2295
2295
|
this.strategies = e;
|
|
2296
2296
|
}
|
|
2297
2297
|
isSupported() {
|
|
2298
|
-
return
|
|
2298
|
+
return ft(this.strategies, J.method("isSupported"));
|
|
2299
2299
|
}
|
|
2300
2300
|
connect(e, t) {
|
|
2301
2301
|
return Gr(this.strategies, e, function(s, a) {
|
|
2302
|
-
return function(f,
|
|
2302
|
+
return function(f, w) {
|
|
2303
2303
|
if (a[s].error = f, f) {
|
|
2304
2304
|
Vr(a) && t(!0);
|
|
2305
2305
|
return;
|
|
2306
2306
|
}
|
|
2307
|
-
Ne(a, function(
|
|
2308
|
-
|
|
2309
|
-
}), t(null,
|
|
2307
|
+
Ne(a, function(C) {
|
|
2308
|
+
C.forceMinPriority(w.transport.priority);
|
|
2309
|
+
}), t(null, w);
|
|
2310
2310
|
};
|
|
2311
2311
|
});
|
|
2312
2312
|
}
|
|
2313
2313
|
}
|
|
2314
2314
|
function Gr(r, e, t) {
|
|
2315
|
-
var s =
|
|
2316
|
-
return a.connect(e, t(f,
|
|
2315
|
+
var s = ht(r, function(a, f, w, C) {
|
|
2316
|
+
return a.connect(e, t(f, C));
|
|
2317
2317
|
});
|
|
2318
2318
|
return {
|
|
2319
2319
|
abort: function() {
|
|
@@ -2342,20 +2342,20 @@ var Wt = { exports: {} };
|
|
|
2342
2342
|
return this.strategy.isSupported();
|
|
2343
2343
|
}
|
|
2344
2344
|
connect(e, t) {
|
|
2345
|
-
var s = this.usingTLS, a = Xr(s), f = a && a.cacheSkipCount ? a.cacheSkipCount : 0,
|
|
2345
|
+
var s = this.usingTLS, a = Xr(s), f = a && a.cacheSkipCount ? a.cacheSkipCount : 0, w = [this.strategy];
|
|
2346
2346
|
if (a && a.timestamp + this.ttl >= J.now()) {
|
|
2347
|
-
var
|
|
2348
|
-
|
|
2347
|
+
var C = this.transports[a.transport];
|
|
2348
|
+
C && (["ws", "wss"].includes(a.transport) || f > 3 ? (this.timeline.info({
|
|
2349
2349
|
cached: !0,
|
|
2350
2350
|
transport: a.transport,
|
|
2351
2351
|
latency: a.latency
|
|
2352
|
-
}),
|
|
2352
|
+
}), w.push(new ve([C], {
|
|
2353
2353
|
timeout: a.latency * 2 + 1e3,
|
|
2354
2354
|
failFast: !0
|
|
2355
2355
|
}))) : f++);
|
|
2356
2356
|
}
|
|
2357
|
-
var E = J.now(), H =
|
|
2358
|
-
K ? (
|
|
2357
|
+
var E = J.now(), H = w.pop().connect(e, function B(K, Ue) {
|
|
2358
|
+
K ? (jt(s), w.length > 0 ? (E = J.now(), H = w.pop().connect(e, B)) : t(K)) : (Yr(s, Ue.transport.name, J.now() - E, f), t(null, Ue));
|
|
2359
2359
|
});
|
|
2360
2360
|
return {
|
|
2361
2361
|
abort: function() {
|
|
@@ -2371,19 +2371,19 @@ var Wt = { exports: {} };
|
|
|
2371
2371
|
return "pusherTransport" + (r ? "TLS" : "NonTLS");
|
|
2372
2372
|
}
|
|
2373
2373
|
function Xr(r) {
|
|
2374
|
-
var e =
|
|
2374
|
+
var e = I.getLocalStorage();
|
|
2375
2375
|
if (e)
|
|
2376
2376
|
try {
|
|
2377
2377
|
var t = e[Ye(r)];
|
|
2378
2378
|
if (t)
|
|
2379
2379
|
return JSON.parse(t);
|
|
2380
2380
|
} catch {
|
|
2381
|
-
|
|
2381
|
+
jt(r);
|
|
2382
2382
|
}
|
|
2383
2383
|
return null;
|
|
2384
2384
|
}
|
|
2385
2385
|
function Yr(r, e, t, s) {
|
|
2386
|
-
var a =
|
|
2386
|
+
var a = I.getLocalStorage();
|
|
2387
2387
|
if (a)
|
|
2388
2388
|
try {
|
|
2389
2389
|
a[Ye(r)] = Oe({
|
|
@@ -2395,8 +2395,8 @@ var Wt = { exports: {} };
|
|
|
2395
2395
|
} catch {
|
|
2396
2396
|
}
|
|
2397
2397
|
}
|
|
2398
|
-
function
|
|
2399
|
-
var e =
|
|
2398
|
+
function jt(r) {
|
|
2399
|
+
var e = I.getLocalStorage();
|
|
2400
2400
|
if (e)
|
|
2401
2401
|
try {
|
|
2402
2402
|
delete e[Ye(r)];
|
|
@@ -2418,8 +2418,8 @@ var Wt = { exports: {} };
|
|
|
2418
2418
|
abort: function() {
|
|
2419
2419
|
f.ensureAborted(), a && a.abort();
|
|
2420
2420
|
},
|
|
2421
|
-
forceMinPriority: function(
|
|
2422
|
-
e =
|
|
2421
|
+
forceMinPriority: function(w) {
|
|
2422
|
+
e = w, a && a.forceMinPriority(w);
|
|
2423
2423
|
}
|
|
2424
2424
|
};
|
|
2425
2425
|
}
|
|
@@ -2458,17 +2458,17 @@ var Wt = { exports: {} };
|
|
|
2458
2458
|
}
|
|
2459
2459
|
var Zr = function(r, e, t) {
|
|
2460
2460
|
var s = {};
|
|
2461
|
-
function a(
|
|
2462
|
-
var
|
|
2463
|
-
return s[
|
|
2461
|
+
function a(Lt, Zn, Qn, es, ts) {
|
|
2462
|
+
var It = t(r, Lt, Zn, Qn, es, ts);
|
|
2463
|
+
return s[Lt] = It, It;
|
|
2464
2464
|
}
|
|
2465
2465
|
var f = Object.assign({}, e, {
|
|
2466
2466
|
hostNonTLS: r.wsHost + ":" + r.wsPort,
|
|
2467
2467
|
hostTLS: r.wsHost + ":" + r.wssPort,
|
|
2468
2468
|
httpPath: r.wsPath
|
|
2469
|
-
}),
|
|
2469
|
+
}), w = Object.assign({}, f, {
|
|
2470
2470
|
useTLS: !0
|
|
2471
|
-
}),
|
|
2471
|
+
}), C = Object.assign({}, e, {
|
|
2472
2472
|
hostNonTLS: r.httpHost + ":" + r.httpPort,
|
|
2473
2473
|
hostTLS: r.httpHost + ":" + r.httpsPort,
|
|
2474
2474
|
httpPath: r.httpPath
|
|
@@ -2476,28 +2476,28 @@ var Wt = { exports: {} };
|
|
|
2476
2476
|
loop: !0,
|
|
2477
2477
|
timeout: 15e3,
|
|
2478
2478
|
timeoutLimit: 6e4
|
|
2479
|
-
}, H = new
|
|
2479
|
+
}, H = new yt({
|
|
2480
2480
|
minPingDelay: 1e4,
|
|
2481
2481
|
maxPingDelay: r.activityTimeout
|
|
2482
|
-
}), B = new
|
|
2482
|
+
}), B = new yt({
|
|
2483
2483
|
lives: 2,
|
|
2484
2484
|
minPingDelay: 1e4,
|
|
2485
2485
|
maxPingDelay: r.activityTimeout
|
|
2486
|
-
}), K = a("ws", "ws", 3, f, H), Ue = a("wss", "ws", 3,
|
|
2487
|
-
new Se(Ce(
|
|
2488
|
-
], E), At = new ve([
|
|
2489
|
-
new Se(Ce(Ct), Ct, Xn)
|
|
2486
|
+
}), K = a("ws", "ws", 3, f, H), Ue = a("wss", "ws", 3, w, H), Wn = a("sockjs", "sockjs", 1, C), Ct = a("xhr_streaming", "xhr_streaming", 1, C, B), Jn = a("xdr_streaming", "xdr_streaming", 1, C, B), Tt = a("xhr_polling", "xhr_polling", 1, C), Xn = a("xdr_polling", "xdr_polling", 1, C), Pt = new ve([K], E), Yn = new ve([Ue], E), Kn = new ve([Wn], E), At = new ve([
|
|
2487
|
+
new Se(Ce(Ct), Ct, Jn)
|
|
2490
2488
|
], E), Et = new ve([
|
|
2491
|
-
new Se(Ce(
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2489
|
+
new Se(Ce(Tt), Tt, Xn)
|
|
2490
|
+
], E), Rt = new ve([
|
|
2491
|
+
new Se(Ce(At), new Xe([
|
|
2492
|
+
At,
|
|
2493
|
+
new ze(Et, { delay: 4e3 })
|
|
2494
|
+
]), Et)
|
|
2495
|
+
], E), et = new Se(Ce(Rt), Rt, Kn), tt;
|
|
2496
2496
|
return e.useTLS ? tt = new Xe([
|
|
2497
|
-
|
|
2497
|
+
Pt,
|
|
2498
2498
|
new ze(et, { delay: 2e3 })
|
|
2499
2499
|
]) : tt = new Xe([
|
|
2500
|
-
|
|
2500
|
+
Pt,
|
|
2501
2501
|
new ze(Yn, { delay: 2e3 }),
|
|
2502
2502
|
new ze(et, { delay: 5e3 })
|
|
2503
2503
|
]), new Jr(new Kr(new Se(Ce(K), tt, et)), s, {
|
|
@@ -2509,14 +2509,14 @@ var Wt = { exports: {} };
|
|
|
2509
2509
|
var r = this;
|
|
2510
2510
|
r.timeline.info(r.buildTimelineMessage({
|
|
2511
2511
|
transport: r.name + (r.options.useTLS ? "s" : "")
|
|
2512
|
-
})), r.hooks.isInitialized() ? r.changeState("initialized") : r.hooks.file ? (r.changeState("initializing"),
|
|
2512
|
+
})), r.hooks.isInitialized() ? r.changeState("initialized") : r.hooks.file ? (r.changeState("initializing"), T.load(r.hooks.file, { useTLS: r.options.useTLS }, function(e, t) {
|
|
2513
2513
|
r.hooks.isInitialized() ? (r.changeState("initialized"), t(!0)) : (e && r.onError(e), r.onClose(), t(!1));
|
|
2514
2514
|
})) : r.onClose();
|
|
2515
2515
|
}, tn = {
|
|
2516
2516
|
getRequest: function(r) {
|
|
2517
2517
|
var e = new window.XDomainRequest();
|
|
2518
2518
|
return e.ontimeout = function() {
|
|
2519
|
-
r.emit("error", new
|
|
2519
|
+
r.emit("error", new k()), r.close();
|
|
2520
2520
|
}, e.onerror = function(t) {
|
|
2521
2521
|
r.emit("error", t), r.close();
|
|
2522
2522
|
}, e.onprogress = function() {
|
|
@@ -2537,10 +2537,10 @@ var Wt = { exports: {} };
|
|
|
2537
2537
|
start(e) {
|
|
2538
2538
|
this.position = 0, this.xhr = this.hooks.getRequest(this), this.unloader = () => {
|
|
2539
2539
|
this.close();
|
|
2540
|
-
},
|
|
2540
|
+
}, I.addUnloadListener(this.unloader), this.xhr.open(this.method, this.url, !0), this.xhr.setRequestHeader && this.xhr.setRequestHeader("Content-Type", "application/json"), this.xhr.send(e);
|
|
2541
2541
|
}
|
|
2542
2542
|
close() {
|
|
2543
|
-
this.unloader && (
|
|
2543
|
+
this.unloader && (I.removeUnloadListener(this.unloader), this.unloader = null), this.xhr && (this.hooks.abortRequest(this.xhr), this.xhr = null);
|
|
2544
2544
|
}
|
|
2545
2545
|
onChunk(e, t) {
|
|
2546
2546
|
for (; ; ) {
|
|
@@ -2568,7 +2568,7 @@ var Wt = { exports: {} };
|
|
|
2568
2568
|
var we = Ke, an = 1;
|
|
2569
2569
|
class on {
|
|
2570
2570
|
constructor(e, t) {
|
|
2571
|
-
this.hooks = e, this.session =
|
|
2571
|
+
this.hooks = e, this.session = kt(1e3) + "/" + hn(8), this.location = ln(t), this.readyState = we.CONNECTING, this.openStream();
|
|
2572
2572
|
}
|
|
2573
2573
|
send(e) {
|
|
2574
2574
|
return this.sendRaw(JSON.stringify([e]));
|
|
@@ -2582,7 +2582,7 @@ var Wt = { exports: {} };
|
|
|
2582
2582
|
sendRaw(e) {
|
|
2583
2583
|
if (this.readyState === we.OPEN)
|
|
2584
2584
|
try {
|
|
2585
|
-
return
|
|
2585
|
+
return I.createSocketRequest("POST", _t(cn(this.location, this.session))).start(e), !0;
|
|
2586
2586
|
} catch {
|
|
2587
2587
|
return !1;
|
|
2588
2588
|
}
|
|
@@ -2637,7 +2637,7 @@ var Wt = { exports: {} };
|
|
|
2637
2637
|
this.onerror && this.onerror(e);
|
|
2638
2638
|
}
|
|
2639
2639
|
openStream() {
|
|
2640
|
-
this.stream =
|
|
2640
|
+
this.stream = I.createSocketRequest("POST", _t(this.hooks.getReceiveURL(this.location, this.session))), this.stream.bind("chunk", (e) => {
|
|
2641
2641
|
this.onChunk(e);
|
|
2642
2642
|
}), this.stream.bind("finished", (e) => {
|
|
2643
2643
|
this.hooks.onFinished(this, e);
|
|
@@ -2666,7 +2666,7 @@ var Wt = { exports: {} };
|
|
|
2666
2666
|
function cn(r, e) {
|
|
2667
2667
|
return r.base + "/" + e + "/xhr_send";
|
|
2668
2668
|
}
|
|
2669
|
-
function
|
|
2669
|
+
function _t(r) {
|
|
2670
2670
|
var e = r.indexOf("?") === -1 ? "?" : "&";
|
|
2671
2671
|
return r + e + "t=" + +/* @__PURE__ */ new Date() + "&n=" + an++;
|
|
2672
2672
|
}
|
|
@@ -2674,12 +2674,12 @@ var Wt = { exports: {} };
|
|
|
2674
2674
|
var t = /(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(r);
|
|
2675
2675
|
return t[1] + e + t[3];
|
|
2676
2676
|
}
|
|
2677
|
-
function
|
|
2678
|
-
return
|
|
2677
|
+
function kt(r) {
|
|
2678
|
+
return I.randomInt(r);
|
|
2679
2679
|
}
|
|
2680
2680
|
function hn(r) {
|
|
2681
2681
|
for (var e = [], t = 0; t < r; t++)
|
|
2682
|
-
e.push(
|
|
2682
|
+
e.push(kt(32).toString(32));
|
|
2683
2683
|
return e.join("");
|
|
2684
2684
|
}
|
|
2685
2685
|
var un = on, pn = {
|
|
@@ -2709,7 +2709,7 @@ var Wt = { exports: {} };
|
|
|
2709
2709
|
}
|
|
2710
2710
|
}, gn = mn, xn = {
|
|
2711
2711
|
getRequest: function(r) {
|
|
2712
|
-
var e =
|
|
2712
|
+
var e = I.getXHRAPI(), t = new e();
|
|
2713
2713
|
return t.onreadystatechange = t.onprogress = function() {
|
|
2714
2714
|
switch (t.readyState) {
|
|
2715
2715
|
case 3:
|
|
@@ -2740,15 +2740,15 @@ var Wt = { exports: {} };
|
|
|
2740
2740
|
createRequest(r, e, t) {
|
|
2741
2741
|
return new sn(r, e, t);
|
|
2742
2742
|
}
|
|
2743
|
-
},
|
|
2744
|
-
|
|
2743
|
+
}, Nt = vn;
|
|
2744
|
+
Nt.createXDR = function(r, e) {
|
|
2745
2745
|
return this.createRequest(rn, r, e);
|
|
2746
2746
|
};
|
|
2747
|
-
var wn =
|
|
2747
|
+
var wn = Nt, yn = {
|
|
2748
2748
|
nextAuthCallbackID: 1,
|
|
2749
2749
|
auth_callbacks: {},
|
|
2750
2750
|
ScriptReceivers: u,
|
|
2751
|
-
DependenciesReceivers:
|
|
2751
|
+
DependenciesReceivers: _,
|
|
2752
2752
|
getDefaultStrategy: Qr,
|
|
2753
2753
|
Transports: Pr,
|
|
2754
2754
|
transportConnectionInitializer: en,
|
|
@@ -2765,7 +2765,7 @@ var Wt = { exports: {} };
|
|
|
2765
2765
|
var e = () => {
|
|
2766
2766
|
this.onDocumentBody(r.ready);
|
|
2767
2767
|
};
|
|
2768
|
-
window.JSON ? e() :
|
|
2768
|
+
window.JSON ? e() : T.load("json2", {}, e);
|
|
2769
2769
|
},
|
|
2770
2770
|
getDocument() {
|
|
2771
2771
|
return document;
|
|
@@ -2837,7 +2837,7 @@ var Wt = { exports: {} };
|
|
|
2837
2837
|
return (window.crypto || window.msCrypto).getRandomValues(new Uint32Array(1))[0] / Math.pow(2, 32);
|
|
2838
2838
|
}() * r);
|
|
2839
2839
|
}
|
|
2840
|
-
},
|
|
2840
|
+
}, I = yn, Ze;
|
|
2841
2841
|
(function(r) {
|
|
2842
2842
|
r[r.ERROR = 3] = "ERROR", r[r.INFO = 6] = "INFO", r[r.DEBUG = 7] = "DEBUG";
|
|
2843
2843
|
})(Ze || (Ze = {}));
|
|
@@ -2892,11 +2892,11 @@ var Wt = { exports: {} };
|
|
|
2892
2892
|
connect(e, t) {
|
|
2893
2893
|
if (this.isSupported()) {
|
|
2894
2894
|
if (this.priority < e)
|
|
2895
|
-
return
|
|
2896
|
-
} else return
|
|
2897
|
-
var s = !1, a = this.transport.createConnection(this.name, this.priority, this.options.key, this.options), f = null,
|
|
2898
|
-
a.unbind("initialized",
|
|
2899
|
-
},
|
|
2895
|
+
return St(new R(), t);
|
|
2896
|
+
} else return St(new j(), t);
|
|
2897
|
+
var s = !1, a = this.transport.createConnection(this.name, this.priority, this.options.key, this.options), f = null, w = function() {
|
|
2898
|
+
a.unbind("initialized", w), a.connect();
|
|
2899
|
+
}, C = function() {
|
|
2900
2900
|
f = ce.createHandshake(a, function(K) {
|
|
2901
2901
|
s = !0, B(), t(null, K);
|
|
2902
2902
|
});
|
|
@@ -2907,9 +2907,9 @@ var Wt = { exports: {} };
|
|
|
2907
2907
|
var K;
|
|
2908
2908
|
K = Oe(a), t(new D(K));
|
|
2909
2909
|
}, B = function() {
|
|
2910
|
-
a.unbind("initialized",
|
|
2910
|
+
a.unbind("initialized", w), a.unbind("open", C), a.unbind("error", E), a.unbind("closed", H);
|
|
2911
2911
|
};
|
|
2912
|
-
return a.bind("initialized",
|
|
2912
|
+
return a.bind("initialized", w), a.bind("open", C), a.bind("error", E), a.bind("closed", H), a.initialize(), {
|
|
2913
2913
|
abort: () => {
|
|
2914
2914
|
s || (B(), f ? f.close() : a.close());
|
|
2915
2915
|
},
|
|
@@ -2919,7 +2919,7 @@ var Wt = { exports: {} };
|
|
|
2919
2919
|
};
|
|
2920
2920
|
}
|
|
2921
2921
|
}
|
|
2922
|
-
function
|
|
2922
|
+
function St(r, e) {
|
|
2923
2923
|
return J.defer(function() {
|
|
2924
2924
|
e(r);
|
|
2925
2925
|
}), {
|
|
@@ -2929,13 +2929,13 @@ var Wt = { exports: {} };
|
|
|
2929
2929
|
}
|
|
2930
2930
|
};
|
|
2931
2931
|
}
|
|
2932
|
-
const { Transports: kn } =
|
|
2932
|
+
const { Transports: kn } = I;
|
|
2933
2933
|
var Nn = function(r, e, t, s, a, f) {
|
|
2934
|
-
var
|
|
2935
|
-
if (!
|
|
2936
|
-
throw new
|
|
2937
|
-
var
|
|
2938
|
-
return
|
|
2934
|
+
var w = kn[t];
|
|
2935
|
+
if (!w)
|
|
2936
|
+
throw new L(t);
|
|
2937
|
+
var C = (!r.enabledTransports || oe(r.enabledTransports, e) !== -1) && (!r.disabledTransports || oe(r.disabledTransports, e) === -1), E;
|
|
2938
|
+
return C ? (a = Object.assign({ ignoreNullOrigin: r.ignoreNullOrigin }, a), E = new _n(e, s, f ? f.getAssistant(w) : w, a)) : E = Sn, E;
|
|
2939
2939
|
}, Sn = {
|
|
2940
2940
|
isSupported: function() {
|
|
2941
2941
|
return !1;
|
|
@@ -2972,11 +2972,11 @@ var Wt = { exports: {} };
|
|
|
2972
2972
|
return t;
|
|
2973
2973
|
};
|
|
2974
2974
|
var Pn = (r) => {
|
|
2975
|
-
if (typeof
|
|
2975
|
+
if (typeof I.getAuthorizers()[r.transport] > "u")
|
|
2976
2976
|
throw `'${r.transport}' is not a recognized auth transport`;
|
|
2977
2977
|
return (e, t) => {
|
|
2978
2978
|
const s = Tn(e, r);
|
|
2979
|
-
|
|
2979
|
+
I.getAuthorizers()[r.transport](I, s, r, v.UserAuthentication, t);
|
|
2980
2980
|
};
|
|
2981
2981
|
};
|
|
2982
2982
|
const An = (r, e) => {
|
|
@@ -2992,11 +2992,11 @@ var Wt = { exports: {} };
|
|
|
2992
2992
|
return t;
|
|
2993
2993
|
};
|
|
2994
2994
|
var En = (r) => {
|
|
2995
|
-
if (typeof
|
|
2995
|
+
if (typeof I.getAuthorizers()[r.transport] > "u")
|
|
2996
2996
|
throw `'${r.transport}' is not a recognized auth transport`;
|
|
2997
2997
|
return (e, t) => {
|
|
2998
2998
|
const s = An(e, r);
|
|
2999
|
-
|
|
2999
|
+
I.getAuthorizers()[r.transport](I, s, r, v.ChannelAuthorization, t);
|
|
3000
3000
|
};
|
|
3001
3001
|
};
|
|
3002
3002
|
const Rn = (r, e, t) => {
|
|
@@ -3009,23 +3009,23 @@ var Wt = { exports: {} };
|
|
|
3009
3009
|
}
|
|
3010
3010
|
};
|
|
3011
3011
|
return (a, f) => {
|
|
3012
|
-
const
|
|
3013
|
-
t(
|
|
3012
|
+
const w = r.channel(a.channelName);
|
|
3013
|
+
t(w, s).authorize(a.socketId, f);
|
|
3014
3014
|
};
|
|
3015
3015
|
};
|
|
3016
3016
|
function Ln(r, e) {
|
|
3017
3017
|
let t = {
|
|
3018
|
-
activityTimeout: r.activityTimeout ||
|
|
3018
|
+
activityTimeout: r.activityTimeout || y.activityTimeout,
|
|
3019
3019
|
cluster: r.cluster,
|
|
3020
|
-
httpPath: r.httpPath ||
|
|
3021
|
-
httpPort: r.httpPort ||
|
|
3022
|
-
httpsPort: r.httpsPort ||
|
|
3023
|
-
pongTimeout: r.pongTimeout ||
|
|
3024
|
-
statsHost: r.statsHost ||
|
|
3025
|
-
unavailableTimeout: r.unavailableTimeout ||
|
|
3026
|
-
wsPath: r.wsPath ||
|
|
3027
|
-
wsPort: r.wsPort ||
|
|
3028
|
-
wssPort: r.wssPort ||
|
|
3020
|
+
httpPath: r.httpPath || y.httpPath,
|
|
3021
|
+
httpPort: r.httpPort || y.httpPort,
|
|
3022
|
+
httpsPort: r.httpsPort || y.httpsPort,
|
|
3023
|
+
pongTimeout: r.pongTimeout || y.pongTimeout,
|
|
3024
|
+
statsHost: r.statsHost || y.stats_host,
|
|
3025
|
+
unavailableTimeout: r.unavailableTimeout || y.unavailableTimeout,
|
|
3026
|
+
wsPath: r.wsPath || y.wsPath,
|
|
3027
|
+
wsPort: r.wsPort || y.wsPort,
|
|
3028
|
+
wssPort: r.wssPort || y.wssPort,
|
|
3029
3029
|
enableStats: Dn(r),
|
|
3030
3030
|
httpHost: In(r),
|
|
3031
3031
|
useTLS: zn(r),
|
|
@@ -3036,7 +3036,7 @@ var Wt = { exports: {} };
|
|
|
3036
3036
|
return "disabledTransports" in r && (t.disabledTransports = r.disabledTransports), "enabledTransports" in r && (t.enabledTransports = r.enabledTransports), "ignoreNullOrigin" in r && (t.ignoreNullOrigin = r.ignoreNullOrigin), "timelineParams" in r && (t.timelineParams = r.timelineParams), "nacl" in r && (t.nacl = r.nacl), t;
|
|
3037
3037
|
}
|
|
3038
3038
|
function In(r) {
|
|
3039
|
-
return r.httpHost ? r.httpHost : r.cluster ? `sockjs-${r.cluster}.pusher.com` :
|
|
3039
|
+
return r.httpHost ? r.httpHost : r.cluster ? `sockjs-${r.cluster}.pusher.com` : y.httpHost;
|
|
3040
3040
|
}
|
|
3041
3041
|
function On(r) {
|
|
3042
3042
|
return r.wsHost ? r.wsHost : Mn(r.cluster);
|
|
@@ -3045,20 +3045,20 @@ var Wt = { exports: {} };
|
|
|
3045
3045
|
return `ws-${r}.pusher.com`;
|
|
3046
3046
|
}
|
|
3047
3047
|
function zn(r) {
|
|
3048
|
-
return
|
|
3048
|
+
return I.getProtocol() === "https:" ? !0 : r.forceTLS !== !1;
|
|
3049
3049
|
}
|
|
3050
3050
|
function Dn(r) {
|
|
3051
3051
|
return "enableStats" in r ? r.enableStats : "disableStats" in r ? !r.disableStats : !1;
|
|
3052
3052
|
}
|
|
3053
3053
|
function Un(r) {
|
|
3054
|
-
const e = Object.assign(Object.assign({},
|
|
3054
|
+
const e = Object.assign(Object.assign({}, y.userAuthentication), r.userAuthentication);
|
|
3055
3055
|
return "customHandler" in e && e.customHandler != null ? e.customHandler : Pn(e);
|
|
3056
3056
|
}
|
|
3057
3057
|
function Hn(r, e) {
|
|
3058
3058
|
let t;
|
|
3059
|
-
return "channelAuthorization" in r ? t = Object.assign(Object.assign({},
|
|
3060
|
-
transport: r.authTransport ||
|
|
3061
|
-
endpoint: r.authEndpoint ||
|
|
3059
|
+
return "channelAuthorization" in r ? t = Object.assign(Object.assign({}, y.channelAuthorization), r.channelAuthorization) : (t = {
|
|
3060
|
+
transport: r.authTransport || y.authTransport,
|
|
3061
|
+
endpoint: r.authEndpoint || y.authEndpoint
|
|
3062
3062
|
}, "auth" in r && ("params" in r.auth && (t.params = r.auth.params), "headers" in r.auth && (t.headers = r.auth.headers)), "authorizer" in r && (t.customHandler = Rn(e, t, r.authorizer))), t;
|
|
3063
3063
|
}
|
|
3064
3064
|
function Bn(r, e) {
|
|
@@ -3160,23 +3160,23 @@ var Wt = { exports: {} };
|
|
|
3160
3160
|
ee.instances[e].connect();
|
|
3161
3161
|
}
|
|
3162
3162
|
static getClientFeatures() {
|
|
3163
|
-
return Ie(
|
|
3163
|
+
return Ie(pt({ ws: I.Transports.ws }, function(e) {
|
|
3164
3164
|
return e.isSupported({});
|
|
3165
3165
|
}));
|
|
3166
3166
|
}
|
|
3167
3167
|
constructor(e, t) {
|
|
3168
|
-
Vn(e), Cn(t), this.key = e, this.config = Ln(t, this), this.channels = ce.createChannels(), this.global_emitter = new le(), this.sessionID =
|
|
3168
|
+
Vn(e), Cn(t), this.key = e, this.config = Ln(t, this), this.channels = ce.createChannels(), this.global_emitter = new le(), this.sessionID = I.randomInt(1e9), this.timeline = new jn(this.key, this.sessionID, {
|
|
3169
3169
|
cluster: this.config.cluster,
|
|
3170
3170
|
features: ee.getClientFeatures(),
|
|
3171
3171
|
params: this.config.timelineParams || {},
|
|
3172
3172
|
limit: 50,
|
|
3173
3173
|
level: De.INFO,
|
|
3174
|
-
version:
|
|
3174
|
+
version: y.VERSION
|
|
3175
3175
|
}), this.config.enableStats && (this.timelineSender = ce.createTimelineSender(this.timeline, {
|
|
3176
3176
|
host: this.config.statsHost,
|
|
3177
|
-
path: "/timeline/v2/" +
|
|
3177
|
+
path: "/timeline/v2/" + I.TimelineTransport.name
|
|
3178
3178
|
}));
|
|
3179
|
-
var s = (a) =>
|
|
3179
|
+
var s = (a) => I.getDefaultStrategy(this.config, a, Nn);
|
|
3180
3180
|
this.connection = ce.createConnectionManager(this.key, {
|
|
3181
3181
|
getStrategy: s,
|
|
3182
3182
|
timeline: this.timeline,
|
|
@@ -3187,12 +3187,12 @@ var Wt = { exports: {} };
|
|
|
3187
3187
|
}), this.connection.bind("connected", () => {
|
|
3188
3188
|
this.subscribeAll(), this.timelineSender && this.timelineSender.send(this.connection.isUsingTLS());
|
|
3189
3189
|
}), this.connection.bind("message", (a) => {
|
|
3190
|
-
var f = a.event,
|
|
3190
|
+
var f = a.event, w = f.indexOf("pusher_internal:") === 0;
|
|
3191
3191
|
if (a.channel) {
|
|
3192
|
-
var
|
|
3193
|
-
|
|
3192
|
+
var C = this.channel(a.channel);
|
|
3193
|
+
C && C.handleEvent(a);
|
|
3194
3194
|
}
|
|
3195
|
-
|
|
3195
|
+
w || this.global_emitter.emit(a.event, a.data);
|
|
3196
3196
|
}), this.connection.bind("connecting", () => {
|
|
3197
3197
|
this.channels.disconnect();
|
|
3198
3198
|
}), this.connection.bind("disconnected", () => {
|
|
@@ -3256,13 +3256,13 @@ var Wt = { exports: {} };
|
|
|
3256
3256
|
this.user.signin();
|
|
3257
3257
|
}
|
|
3258
3258
|
}
|
|
3259
|
-
ee.instances = [], ee.isReady = !1, ee.logToConsole = !1, ee.Runtime =
|
|
3259
|
+
ee.instances = [], ee.isReady = !1, ee.logToConsole = !1, ee.Runtime = I, ee.ScriptReceivers = I.ScriptReceivers, ee.DependenciesReceivers = I.DependenciesReceivers, ee.auth_callbacks = I.auth_callbacks;
|
|
3260
3260
|
var Qe = o.default = ee;
|
|
3261
3261
|
function Vn(r) {
|
|
3262
3262
|
if (r == null)
|
|
3263
3263
|
throw "You must pass your app key when you instantiate Pusher.";
|
|
3264
3264
|
}
|
|
3265
|
-
|
|
3265
|
+
I.setup(ee);
|
|
3266
3266
|
}
|
|
3267
3267
|
/******/
|
|
3268
3268
|
])
|
|
@@ -3270,14 +3270,14 @@ var Wt = { exports: {} };
|
|
|
3270
3270
|
});
|
|
3271
3271
|
})(Wt);
|
|
3272
3272
|
var bs = Wt.exports;
|
|
3273
|
-
const vs = /* @__PURE__ */
|
|
3273
|
+
const vs = /* @__PURE__ */ $t(bs);
|
|
3274
3274
|
function ws(i, d, c, o, l) {
|
|
3275
|
-
const [h, u] = te(null), [x,
|
|
3275
|
+
const [h, u] = te(null), [x, y] = te(null), [z, _] = te([]), [T, p] = te(!0), [S, N] = te(null), v = Te(async () => {
|
|
3276
3276
|
try {
|
|
3277
3277
|
p(!0);
|
|
3278
|
-
const
|
|
3278
|
+
const L = c !== "all" ? `&segment=${c}` : "", j = `&trafficType=${o}`;
|
|
3279
3279
|
let P = `${i.endpoint}/stats?`;
|
|
3280
|
-
d === "custom" && (l != null && l.start) && (l != null && l.end) ? P += `startDate=${l.start}&endDate=${l.end}${
|
|
3280
|
+
d === "custom" && (l != null && l.start) && (l != null && l.end) ? P += `startDate=${l.start}&endDate=${l.end}${L}${j}` : P += `timeframe=${d}${L}${j}`;
|
|
3281
3281
|
const q = await fetch(P, {
|
|
3282
3282
|
headers: {
|
|
3283
3283
|
"x-tenant-key": i.apiKey,
|
|
@@ -3287,24 +3287,24 @@ function ws(i, d, c, o, l) {
|
|
|
3287
3287
|
});
|
|
3288
3288
|
if (q.ok) {
|
|
3289
3289
|
const V = await q.json();
|
|
3290
|
-
u(V),
|
|
3290
|
+
u(V), N(null);
|
|
3291
3291
|
} else
|
|
3292
3292
|
throw new Error("Failed to fetch stats");
|
|
3293
|
-
} catch (
|
|
3294
|
-
|
|
3293
|
+
} catch (L) {
|
|
3294
|
+
N(L.message);
|
|
3295
3295
|
} finally {
|
|
3296
3296
|
p(!1);
|
|
3297
3297
|
}
|
|
3298
3298
|
}, [i.endpoint, i.apiKey, i.adminSecret, d, c, o, l]), m = Te(async () => {
|
|
3299
3299
|
try {
|
|
3300
|
-
const
|
|
3300
|
+
const L = c !== "all" ? `&segment=${c}` : "", j = `&trafficType=${o}`;
|
|
3301
3301
|
let P = l == null ? void 0 : l.start, q = l == null ? void 0 : l.end;
|
|
3302
3302
|
if (!P || !q) {
|
|
3303
|
-
const Q = /* @__PURE__ */ new Date(),
|
|
3304
|
-
d === "7d" ?
|
|
3303
|
+
const Q = /* @__PURE__ */ new Date(), O = /* @__PURE__ */ new Date();
|
|
3304
|
+
d === "7d" ? O.setDate(Q.getDate() - 7) : d === "30d" ? O.setDate(Q.getDate() - 30) : O.setHours(Q.getHours() - 24), P = O.toISOString().split("T")[0], q = Q.toISOString().split("T")[0];
|
|
3305
3305
|
}
|
|
3306
3306
|
const V = await fetch(
|
|
3307
|
-
`${i.endpoint}/funnel?startDate=${P}&endDate=${q}${
|
|
3307
|
+
`${i.endpoint}/funnel?startDate=${P}&endDate=${q}${L}${j}`,
|
|
3308
3308
|
{
|
|
3309
3309
|
headers: {
|
|
3310
3310
|
"x-tenant-key": i.apiKey,
|
|
@@ -3315,14 +3315,14 @@ function ws(i, d, c, o, l) {
|
|
|
3315
3315
|
);
|
|
3316
3316
|
if (V.ok) {
|
|
3317
3317
|
const Q = await V.json();
|
|
3318
|
-
|
|
3318
|
+
y(Q);
|
|
3319
3319
|
}
|
|
3320
|
-
} catch (
|
|
3321
|
-
console.error("[Dashboard] funnel fetch error:",
|
|
3320
|
+
} catch (L) {
|
|
3321
|
+
console.error("[Dashboard] funnel fetch error:", L);
|
|
3322
3322
|
}
|
|
3323
3323
|
}, [i.endpoint, i.apiKey, i.adminSecret, d, c, o, l]), b = Te(async () => {
|
|
3324
3324
|
try {
|
|
3325
|
-
const
|
|
3325
|
+
const L = await fetch(
|
|
3326
3326
|
`${i.endpoint}/heatmap/pages`,
|
|
3327
3327
|
{
|
|
3328
3328
|
headers: {
|
|
@@ -3332,39 +3332,39 @@ function ws(i, d, c, o, l) {
|
|
|
3332
3332
|
}
|
|
3333
3333
|
}
|
|
3334
3334
|
);
|
|
3335
|
-
if (
|
|
3336
|
-
const j = await
|
|
3337
|
-
|
|
3335
|
+
if (L.ok) {
|
|
3336
|
+
const j = await L.json();
|
|
3337
|
+
_(j);
|
|
3338
3338
|
}
|
|
3339
|
-
} catch (
|
|
3340
|
-
console.error("[Dashboard] heatmap pages fetch error:",
|
|
3339
|
+
} catch (L) {
|
|
3340
|
+
console.error("[Dashboard] heatmap pages fetch error:", L);
|
|
3341
3341
|
}
|
|
3342
|
-
}, [i.endpoint, i.apiKey, i.adminSecret]),
|
|
3343
|
-
|
|
3344
|
-
}, [
|
|
3345
|
-
|
|
3346
|
-
const
|
|
3347
|
-
j > 2e3 ? (D(),
|
|
3348
|
-
D(),
|
|
3342
|
+
}, [i.endpoint, i.apiKey, i.adminSecret]), k = He(0), R = He(null), D = Te(() => {
|
|
3343
|
+
v(), m(), b();
|
|
3344
|
+
}, [v, m, b]), U = Te(() => {
|
|
3345
|
+
R.current && clearTimeout(R.current);
|
|
3346
|
+
const L = Date.now(), j = L - k.current;
|
|
3347
|
+
j > 2e3 ? (D(), k.current = L) : R.current = setTimeout(() => {
|
|
3348
|
+
D(), k.current = Date.now();
|
|
3349
3349
|
}, 2e3 - j);
|
|
3350
3350
|
}, [D]);
|
|
3351
|
-
return
|
|
3352
|
-
if (
|
|
3353
|
-
const
|
|
3351
|
+
return ye(() => {
|
|
3352
|
+
if (v(), m(), b(), i.realtimeEnabled) {
|
|
3353
|
+
const L = new vs(i.soketiKey || "infrabricks_key", {
|
|
3354
3354
|
wsHost: i.soketiHost || "127.0.0.1",
|
|
3355
3355
|
wsPort: i.soketiPort || 443,
|
|
3356
3356
|
forceTLS: i.soketiUseTLS !== !1,
|
|
3357
3357
|
enabledTransports: ["ws", "wss"],
|
|
3358
3358
|
cluster: "mt1"
|
|
3359
|
-
}), j = `analytics-${i.apiKey}`, P =
|
|
3359
|
+
}), j = `analytics-${i.apiKey}`, P = L.subscribe(j);
|
|
3360
3360
|
return P.bind("new-session", U), P.bind("new-pageview", U), P.bind("new-event", U), P.bind("heartbeat", U), P.bind("session-offline", U), () => {
|
|
3361
|
-
|
|
3361
|
+
L.unsubscribe(j), L.disconnect();
|
|
3362
3362
|
};
|
|
3363
3363
|
}
|
|
3364
|
-
}, [
|
|
3365
|
-
const
|
|
3366
|
-
return () => clearInterval(
|
|
3367
|
-
}, [D, i.refreshInterval]), { stats: h, funnel: x, heatmapPages:
|
|
3364
|
+
}, [v, m, U, i.realtimeEnabled, i.soketiHost, i.soketiKey, i.soketiPort, i.soketiUseTLS, i.apiKey]), ye(() => {
|
|
3365
|
+
const L = setInterval(D, i.refreshInterval || 6e4);
|
|
3366
|
+
return () => clearInterval(L);
|
|
3367
|
+
}, [D, i.refreshInterval]), { stats: h, funnel: x, heatmapPages: z, loading: T, error: S, refresh: v };
|
|
3368
3368
|
}
|
|
3369
3369
|
function Jt(i) {
|
|
3370
3370
|
var d, c, o = "";
|
|
@@ -3379,19 +3379,19 @@ function ys() {
|
|
|
3379
3379
|
for (var i, d, c = 0, o = "", l = arguments.length; c < l; c++) (i = arguments[c]) && (d = Jt(i)) && (o && (o += " "), o += d);
|
|
3380
3380
|
return o;
|
|
3381
3381
|
}
|
|
3382
|
-
const
|
|
3382
|
+
const ct = "-", js = (i) => {
|
|
3383
3383
|
const d = ks(i), {
|
|
3384
3384
|
conflictingClassGroups: c,
|
|
3385
3385
|
conflictingClassGroupModifiers: o
|
|
3386
3386
|
} = i;
|
|
3387
3387
|
return {
|
|
3388
3388
|
getClassGroupId: (u) => {
|
|
3389
|
-
const x = u.split(
|
|
3389
|
+
const x = u.split(ct);
|
|
3390
3390
|
return x[0] === "" && x.length !== 1 && x.shift(), Xt(x, d) || _s(u);
|
|
3391
3391
|
},
|
|
3392
3392
|
getConflictingClassGroupIds: (u, x) => {
|
|
3393
|
-
const
|
|
3394
|
-
return x && o[u] ? [...
|
|
3393
|
+
const y = c[u] || [];
|
|
3394
|
+
return x && o[u] ? [...y, ...o[u]] : y;
|
|
3395
3395
|
}
|
|
3396
3396
|
};
|
|
3397
3397
|
}, Xt = (i, d) => {
|
|
@@ -3403,13 +3403,13 @@ const lt = "-", js = (i) => {
|
|
|
3403
3403
|
return l;
|
|
3404
3404
|
if (d.validators.length === 0)
|
|
3405
3405
|
return;
|
|
3406
|
-
const h = i.join(
|
|
3406
|
+
const h = i.join(ct);
|
|
3407
3407
|
return (u = d.validators.find(({
|
|
3408
3408
|
validator: x
|
|
3409
3409
|
}) => x(h))) == null ? void 0 : u.classGroupId;
|
|
3410
|
-
},
|
|
3411
|
-
if (
|
|
3412
|
-
const d =
|
|
3410
|
+
}, Ht = /^\[(.+)\]$/, _s = (i) => {
|
|
3411
|
+
if (Ht.test(i)) {
|
|
3412
|
+
const d = Ht.exec(i)[1], c = d == null ? void 0 : d.substring(0, d.indexOf(":"));
|
|
3413
3413
|
if (c)
|
|
3414
3414
|
return "arbitrary.." + c;
|
|
3415
3415
|
}
|
|
@@ -3427,7 +3427,7 @@ const lt = "-", js = (i) => {
|
|
|
3427
3427
|
}, at = (i, d, c, o) => {
|
|
3428
3428
|
i.forEach((l) => {
|
|
3429
3429
|
if (typeof l == "string") {
|
|
3430
|
-
const h = l === "" ? d :
|
|
3430
|
+
const h = l === "" ? d : Bt(d, l);
|
|
3431
3431
|
h.classGroupId = c;
|
|
3432
3432
|
return;
|
|
3433
3433
|
}
|
|
@@ -3443,12 +3443,12 @@ const lt = "-", js = (i) => {
|
|
|
3443
3443
|
return;
|
|
3444
3444
|
}
|
|
3445
3445
|
Object.entries(l).forEach(([h, u]) => {
|
|
3446
|
-
at(u,
|
|
3446
|
+
at(u, Bt(d, h), c, o);
|
|
3447
3447
|
});
|
|
3448
3448
|
});
|
|
3449
|
-
},
|
|
3449
|
+
}, Bt = (i, d) => {
|
|
3450
3450
|
let c = i;
|
|
3451
|
-
return d.split(
|
|
3451
|
+
return d.split(ct).forEach((o) => {
|
|
3452
3452
|
c.nextPart.has(o) || c.nextPart.set(o, {
|
|
3453
3453
|
nextPart: /* @__PURE__ */ new Map(),
|
|
3454
3454
|
validators: []
|
|
@@ -3486,28 +3486,28 @@ const lt = "-", js = (i) => {
|
|
|
3486
3486
|
separator: d,
|
|
3487
3487
|
experimentalParseClassName: c
|
|
3488
3488
|
} = i, o = d.length === 1, l = d[0], h = d.length, u = (x) => {
|
|
3489
|
-
const
|
|
3490
|
-
let
|
|
3489
|
+
const y = [];
|
|
3490
|
+
let z = 0, _ = 0, T;
|
|
3491
3491
|
for (let m = 0; m < x.length; m++) {
|
|
3492
3492
|
let b = x[m];
|
|
3493
|
-
if (
|
|
3493
|
+
if (z === 0) {
|
|
3494
3494
|
if (b === l && (o || x.slice(m, m + h) === d)) {
|
|
3495
|
-
|
|
3495
|
+
y.push(x.slice(_, m)), _ = m + h;
|
|
3496
3496
|
continue;
|
|
3497
3497
|
}
|
|
3498
3498
|
if (b === "/") {
|
|
3499
|
-
|
|
3499
|
+
T = m;
|
|
3500
3500
|
continue;
|
|
3501
3501
|
}
|
|
3502
3502
|
}
|
|
3503
|
-
b === "[" ?
|
|
3503
|
+
b === "[" ? z++ : b === "]" && z--;
|
|
3504
3504
|
}
|
|
3505
|
-
const p =
|
|
3505
|
+
const p = y.length === 0 ? x : x.substring(_), S = p.startsWith(Yt), N = S ? p.substring(1) : p, v = T && T > _ ? T - _ : void 0;
|
|
3506
3506
|
return {
|
|
3507
|
-
modifiers:
|
|
3508
|
-
hasImportantModifier:
|
|
3509
|
-
baseClassName:
|
|
3510
|
-
maybePostfixModifierPosition:
|
|
3507
|
+
modifiers: y,
|
|
3508
|
+
hasImportantModifier: S,
|
|
3509
|
+
baseClassName: N,
|
|
3510
|
+
maybePostfixModifierPosition: v
|
|
3511
3511
|
};
|
|
3512
3512
|
};
|
|
3513
3513
|
return c ? (x) => c({
|
|
@@ -3533,35 +3533,35 @@ const lt = "-", js = (i) => {
|
|
|
3533
3533
|
getConflictingClassGroupIds: l
|
|
3534
3534
|
} = d, h = [], u = i.trim().split(Es);
|
|
3535
3535
|
let x = "";
|
|
3536
|
-
for (let
|
|
3537
|
-
const
|
|
3538
|
-
modifiers:
|
|
3539
|
-
hasImportantModifier:
|
|
3536
|
+
for (let y = u.length - 1; y >= 0; y -= 1) {
|
|
3537
|
+
const z = u[y], {
|
|
3538
|
+
modifiers: _,
|
|
3539
|
+
hasImportantModifier: T,
|
|
3540
3540
|
baseClassName: p,
|
|
3541
|
-
maybePostfixModifierPosition:
|
|
3542
|
-
} = c(
|
|
3543
|
-
let
|
|
3544
|
-
if (!
|
|
3545
|
-
if (!
|
|
3546
|
-
x =
|
|
3541
|
+
maybePostfixModifierPosition: S
|
|
3542
|
+
} = c(z);
|
|
3543
|
+
let N = !!S, v = o(N ? p.substring(0, S) : p);
|
|
3544
|
+
if (!v) {
|
|
3545
|
+
if (!N) {
|
|
3546
|
+
x = z + (x.length > 0 ? " " + x : x);
|
|
3547
3547
|
continue;
|
|
3548
3548
|
}
|
|
3549
|
-
if (
|
|
3550
|
-
x =
|
|
3549
|
+
if (v = o(p), !v) {
|
|
3550
|
+
x = z + (x.length > 0 ? " " + x : x);
|
|
3551
3551
|
continue;
|
|
3552
3552
|
}
|
|
3553
|
-
|
|
3553
|
+
N = !1;
|
|
3554
3554
|
}
|
|
3555
|
-
const m = Ps(
|
|
3556
|
-
if (h.includes(
|
|
3555
|
+
const m = Ps(_).join(":"), b = T ? m + Yt : m, k = b + v;
|
|
3556
|
+
if (h.includes(k))
|
|
3557
3557
|
continue;
|
|
3558
|
-
h.push(
|
|
3559
|
-
const
|
|
3560
|
-
for (let D = 0; D <
|
|
3561
|
-
const U =
|
|
3558
|
+
h.push(k);
|
|
3559
|
+
const R = l(v, N);
|
|
3560
|
+
for (let D = 0; D < R.length; ++D) {
|
|
3561
|
+
const U = R[D];
|
|
3562
3562
|
h.push(b + U);
|
|
3563
3563
|
}
|
|
3564
|
-
x =
|
|
3564
|
+
x = z + (x.length > 0 ? " " + x : x);
|
|
3565
3565
|
}
|
|
3566
3566
|
return x;
|
|
3567
3567
|
};
|
|
@@ -3581,16 +3581,16 @@ const Kt = (i) => {
|
|
|
3581
3581
|
};
|
|
3582
3582
|
function Is(i, ...d) {
|
|
3583
3583
|
let c, o, l, h = u;
|
|
3584
|
-
function u(
|
|
3585
|
-
const
|
|
3586
|
-
return c = As(
|
|
3584
|
+
function u(y) {
|
|
3585
|
+
const z = d.reduce((_, T) => T(_), i());
|
|
3586
|
+
return c = As(z), o = c.cache.get, l = c.cache.set, h = x, x(y);
|
|
3587
3587
|
}
|
|
3588
|
-
function x(
|
|
3589
|
-
const
|
|
3590
|
-
if (
|
|
3591
|
-
return
|
|
3592
|
-
const
|
|
3593
|
-
return l(
|
|
3588
|
+
function x(y) {
|
|
3589
|
+
const z = o(y);
|
|
3590
|
+
if (z)
|
|
3591
|
+
return z;
|
|
3592
|
+
const _ = Rs(y, c);
|
|
3593
|
+
return l(y, _), _;
|
|
3594
3594
|
}
|
|
3595
3595
|
return function() {
|
|
3596
3596
|
return h(Ls.apply(null, arguments));
|
|
@@ -3599,7 +3599,7 @@ function Is(i, ...d) {
|
|
|
3599
3599
|
const $ = (i) => {
|
|
3600
3600
|
const d = (c) => c[i] || [];
|
|
3601
3601
|
return d.isThemeGetter = !0, d;
|
|
3602
|
-
}, Zt = /^\[(?:([a-z-]+):)?(.+)\]$/i, Os = /^\d+\/\d+$/, Ms = /* @__PURE__ */ new Set(["px", "full", "screen"]), zs = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ds = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Us = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Hs = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Bs = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, de = (i) =>
|
|
3602
|
+
}, Zt = /^\[(?:([a-z-]+):)?(.+)\]$/i, Os = /^\d+\/\d+$/, Ms = /* @__PURE__ */ new Set(["px", "full", "screen"]), zs = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ds = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Us = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Hs = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Bs = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, de = (i) => _e(i) || Ms.has(i) || Os.test(i), fe = (i) => ke(i, "length", Xs), _e = (i) => !!i && !Number.isNaN(Number(i)), rt = (i) => ke(i, "number", _e), Ee = (i) => !!i && Number.isInteger(Number(i)), qs = (i) => i.endsWith("%") && _e(i.slice(0, -1)), M = (i) => Zt.test(i), me = (i) => zs.test(i), $s = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Fs = (i) => ke(i, $s, Qt), Gs = (i) => ke(i, "position", Qt), Vs = /* @__PURE__ */ new Set(["image", "url"]), Ws = (i) => ke(i, Vs, Ks), Js = (i) => ke(i, "", Ys), Re = () => !0, ke = (i, d, c) => {
|
|
3603
3603
|
const o = Zt.exec(i);
|
|
3604
3604
|
return o ? o[1] ? typeof d == "string" ? o[1] === d : d.has(o[1]) : c(o[2]) : !1;
|
|
3605
3605
|
}, Xs = (i) => (
|
|
@@ -3608,36 +3608,36 @@ const $ = (i) => {
|
|
|
3608
3608
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
3609
3609
|
Ds.test(i) && !Us.test(i)
|
|
3610
3610
|
), Qt = () => !1, Ys = (i) => Hs.test(i), Ks = (i) => Bs.test(i), Zs = () => {
|
|
3611
|
-
const i = $("colors"), d = $("spacing"), c = $("blur"), o = $("brightness"), l = $("borderColor"), h = $("borderRadius"), u = $("borderSpacing"), x = $("borderWidth"),
|
|
3611
|
+
const i = $("colors"), d = $("spacing"), c = $("blur"), o = $("brightness"), l = $("borderColor"), h = $("borderRadius"), u = $("borderSpacing"), x = $("borderWidth"), y = $("contrast"), z = $("grayscale"), _ = $("hueRotate"), T = $("invert"), p = $("gap"), S = $("gradientColorStops"), N = $("gradientColorStopPositions"), v = $("inset"), m = $("margin"), b = $("opacity"), k = $("padding"), R = $("saturate"), D = $("scale"), U = $("sepia"), L = $("skew"), j = $("space"), P = $("translate"), q = () => ["auto", "contain", "none"], V = () => ["auto", "hidden", "clip", "visible", "scroll"], Q = () => ["auto", M, d], O = () => [M, d], re = () => ["", de, fe], he = () => ["auto", _e, M], ue = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], ae = () => ["solid", "dashed", "dotted", "double", "none"], ge = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], pe = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], se = () => ["", "0", M], xe = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], g = () => [_e, M];
|
|
3612
3612
|
return {
|
|
3613
3613
|
cacheSize: 500,
|
|
3614
3614
|
separator: ":",
|
|
3615
3615
|
theme: {
|
|
3616
3616
|
colors: [Re],
|
|
3617
3617
|
spacing: [de, fe],
|
|
3618
|
-
blur: ["none", "", me,
|
|
3618
|
+
blur: ["none", "", me, M],
|
|
3619
3619
|
brightness: g(),
|
|
3620
3620
|
borderColor: [i],
|
|
3621
|
-
borderRadius: ["none", "", "full", me,
|
|
3622
|
-
borderSpacing:
|
|
3621
|
+
borderRadius: ["none", "", "full", me, M],
|
|
3622
|
+
borderSpacing: O(),
|
|
3623
3623
|
borderWidth: re(),
|
|
3624
3624
|
contrast: g(),
|
|
3625
3625
|
grayscale: se(),
|
|
3626
3626
|
hueRotate: g(),
|
|
3627
3627
|
invert: se(),
|
|
3628
|
-
gap:
|
|
3628
|
+
gap: O(),
|
|
3629
3629
|
gradientColorStops: [i],
|
|
3630
3630
|
gradientColorStopPositions: [qs, fe],
|
|
3631
3631
|
inset: Q(),
|
|
3632
3632
|
margin: Q(),
|
|
3633
3633
|
opacity: g(),
|
|
3634
|
-
padding:
|
|
3634
|
+
padding: O(),
|
|
3635
3635
|
saturate: g(),
|
|
3636
3636
|
scale: g(),
|
|
3637
3637
|
sepia: se(),
|
|
3638
3638
|
skew: g(),
|
|
3639
|
-
space:
|
|
3640
|
-
translate:
|
|
3639
|
+
space: O(),
|
|
3640
|
+
translate: O()
|
|
3641
3641
|
},
|
|
3642
3642
|
classGroups: {
|
|
3643
3643
|
// Layout
|
|
@@ -3646,7 +3646,7 @@ const $ = (i) => {
|
|
|
3646
3646
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
3647
3647
|
*/
|
|
3648
3648
|
aspect: [{
|
|
3649
|
-
aspect: ["auto", "square", "video",
|
|
3649
|
+
aspect: ["auto", "square", "video", M]
|
|
3650
3650
|
}],
|
|
3651
3651
|
/**
|
|
3652
3652
|
* Container
|
|
@@ -3731,7 +3731,7 @@ const $ = (i) => {
|
|
|
3731
3731
|
* @see https://tailwindcss.com/docs/object-position
|
|
3732
3732
|
*/
|
|
3733
3733
|
"object-position": [{
|
|
3734
|
-
object: [...ue(),
|
|
3734
|
+
object: [...ue(), M]
|
|
3735
3735
|
}],
|
|
3736
3736
|
/**
|
|
3737
3737
|
* Overflow
|
|
@@ -3785,63 +3785,63 @@ const $ = (i) => {
|
|
|
3785
3785
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
3786
3786
|
*/
|
|
3787
3787
|
inset: [{
|
|
3788
|
-
inset: [
|
|
3788
|
+
inset: [v]
|
|
3789
3789
|
}],
|
|
3790
3790
|
/**
|
|
3791
3791
|
* Right / Left
|
|
3792
3792
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
3793
3793
|
*/
|
|
3794
3794
|
"inset-x": [{
|
|
3795
|
-
"inset-x": [
|
|
3795
|
+
"inset-x": [v]
|
|
3796
3796
|
}],
|
|
3797
3797
|
/**
|
|
3798
3798
|
* Top / Bottom
|
|
3799
3799
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
3800
3800
|
*/
|
|
3801
3801
|
"inset-y": [{
|
|
3802
|
-
"inset-y": [
|
|
3802
|
+
"inset-y": [v]
|
|
3803
3803
|
}],
|
|
3804
3804
|
/**
|
|
3805
3805
|
* Start
|
|
3806
3806
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
3807
3807
|
*/
|
|
3808
3808
|
start: [{
|
|
3809
|
-
start: [
|
|
3809
|
+
start: [v]
|
|
3810
3810
|
}],
|
|
3811
3811
|
/**
|
|
3812
3812
|
* End
|
|
3813
3813
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
3814
3814
|
*/
|
|
3815
3815
|
end: [{
|
|
3816
|
-
end: [
|
|
3816
|
+
end: [v]
|
|
3817
3817
|
}],
|
|
3818
3818
|
/**
|
|
3819
3819
|
* Top
|
|
3820
3820
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
3821
3821
|
*/
|
|
3822
3822
|
top: [{
|
|
3823
|
-
top: [
|
|
3823
|
+
top: [v]
|
|
3824
3824
|
}],
|
|
3825
3825
|
/**
|
|
3826
3826
|
* Right
|
|
3827
3827
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
3828
3828
|
*/
|
|
3829
3829
|
right: [{
|
|
3830
|
-
right: [
|
|
3830
|
+
right: [v]
|
|
3831
3831
|
}],
|
|
3832
3832
|
/**
|
|
3833
3833
|
* Bottom
|
|
3834
3834
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
3835
3835
|
*/
|
|
3836
3836
|
bottom: [{
|
|
3837
|
-
bottom: [
|
|
3837
|
+
bottom: [v]
|
|
3838
3838
|
}],
|
|
3839
3839
|
/**
|
|
3840
3840
|
* Left
|
|
3841
3841
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
3842
3842
|
*/
|
|
3843
3843
|
left: [{
|
|
3844
|
-
left: [
|
|
3844
|
+
left: [v]
|
|
3845
3845
|
}],
|
|
3846
3846
|
/**
|
|
3847
3847
|
* Visibility
|
|
@@ -3853,7 +3853,7 @@ const $ = (i) => {
|
|
|
3853
3853
|
* @see https://tailwindcss.com/docs/z-index
|
|
3854
3854
|
*/
|
|
3855
3855
|
z: [{
|
|
3856
|
-
z: ["auto", Ee,
|
|
3856
|
+
z: ["auto", Ee, M]
|
|
3857
3857
|
}],
|
|
3858
3858
|
// Flexbox and Grid
|
|
3859
3859
|
/**
|
|
@@ -3882,7 +3882,7 @@ const $ = (i) => {
|
|
|
3882
3882
|
* @see https://tailwindcss.com/docs/flex
|
|
3883
3883
|
*/
|
|
3884
3884
|
flex: [{
|
|
3885
|
-
flex: ["1", "auto", "initial", "none",
|
|
3885
|
+
flex: ["1", "auto", "initial", "none", M]
|
|
3886
3886
|
}],
|
|
3887
3887
|
/**
|
|
3888
3888
|
* Flex Grow
|
|
@@ -3903,7 +3903,7 @@ const $ = (i) => {
|
|
|
3903
3903
|
* @see https://tailwindcss.com/docs/order
|
|
3904
3904
|
*/
|
|
3905
3905
|
order: [{
|
|
3906
|
-
order: ["first", "last", "none", Ee,
|
|
3906
|
+
order: ["first", "last", "none", Ee, M]
|
|
3907
3907
|
}],
|
|
3908
3908
|
/**
|
|
3909
3909
|
* Grid Template Columns
|
|
@@ -3918,8 +3918,8 @@ const $ = (i) => {
|
|
|
3918
3918
|
*/
|
|
3919
3919
|
"col-start-end": [{
|
|
3920
3920
|
col: ["auto", {
|
|
3921
|
-
span: ["full", Ee,
|
|
3922
|
-
},
|
|
3921
|
+
span: ["full", Ee, M]
|
|
3922
|
+
}, M]
|
|
3923
3923
|
}],
|
|
3924
3924
|
/**
|
|
3925
3925
|
* Grid Column Start
|
|
@@ -3948,8 +3948,8 @@ const $ = (i) => {
|
|
|
3948
3948
|
*/
|
|
3949
3949
|
"row-start-end": [{
|
|
3950
3950
|
row: ["auto", {
|
|
3951
|
-
span: [Ee,
|
|
3952
|
-
},
|
|
3951
|
+
span: [Ee, M]
|
|
3952
|
+
}, M]
|
|
3953
3953
|
}],
|
|
3954
3954
|
/**
|
|
3955
3955
|
* Grid Row Start
|
|
@@ -3977,14 +3977,14 @@ const $ = (i) => {
|
|
|
3977
3977
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
3978
3978
|
*/
|
|
3979
3979
|
"auto-cols": [{
|
|
3980
|
-
"auto-cols": ["auto", "min", "max", "fr",
|
|
3980
|
+
"auto-cols": ["auto", "min", "max", "fr", M]
|
|
3981
3981
|
}],
|
|
3982
3982
|
/**
|
|
3983
3983
|
* Grid Auto Rows
|
|
3984
3984
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
3985
3985
|
*/
|
|
3986
3986
|
"auto-rows": [{
|
|
3987
|
-
"auto-rows": ["auto", "min", "max", "fr",
|
|
3987
|
+
"auto-rows": ["auto", "min", "max", "fr", M]
|
|
3988
3988
|
}],
|
|
3989
3989
|
/**
|
|
3990
3990
|
* Gap
|
|
@@ -4076,63 +4076,63 @@ const $ = (i) => {
|
|
|
4076
4076
|
* @see https://tailwindcss.com/docs/padding
|
|
4077
4077
|
*/
|
|
4078
4078
|
p: [{
|
|
4079
|
-
p: [
|
|
4079
|
+
p: [k]
|
|
4080
4080
|
}],
|
|
4081
4081
|
/**
|
|
4082
4082
|
* Padding X
|
|
4083
4083
|
* @see https://tailwindcss.com/docs/padding
|
|
4084
4084
|
*/
|
|
4085
4085
|
px: [{
|
|
4086
|
-
px: [
|
|
4086
|
+
px: [k]
|
|
4087
4087
|
}],
|
|
4088
4088
|
/**
|
|
4089
4089
|
* Padding Y
|
|
4090
4090
|
* @see https://tailwindcss.com/docs/padding
|
|
4091
4091
|
*/
|
|
4092
4092
|
py: [{
|
|
4093
|
-
py: [
|
|
4093
|
+
py: [k]
|
|
4094
4094
|
}],
|
|
4095
4095
|
/**
|
|
4096
4096
|
* Padding Start
|
|
4097
4097
|
* @see https://tailwindcss.com/docs/padding
|
|
4098
4098
|
*/
|
|
4099
4099
|
ps: [{
|
|
4100
|
-
ps: [
|
|
4100
|
+
ps: [k]
|
|
4101
4101
|
}],
|
|
4102
4102
|
/**
|
|
4103
4103
|
* Padding End
|
|
4104
4104
|
* @see https://tailwindcss.com/docs/padding
|
|
4105
4105
|
*/
|
|
4106
4106
|
pe: [{
|
|
4107
|
-
pe: [
|
|
4107
|
+
pe: [k]
|
|
4108
4108
|
}],
|
|
4109
4109
|
/**
|
|
4110
4110
|
* Padding Top
|
|
4111
4111
|
* @see https://tailwindcss.com/docs/padding
|
|
4112
4112
|
*/
|
|
4113
4113
|
pt: [{
|
|
4114
|
-
pt: [
|
|
4114
|
+
pt: [k]
|
|
4115
4115
|
}],
|
|
4116
4116
|
/**
|
|
4117
4117
|
* Padding Right
|
|
4118
4118
|
* @see https://tailwindcss.com/docs/padding
|
|
4119
4119
|
*/
|
|
4120
4120
|
pr: [{
|
|
4121
|
-
pr: [
|
|
4121
|
+
pr: [k]
|
|
4122
4122
|
}],
|
|
4123
4123
|
/**
|
|
4124
4124
|
* Padding Bottom
|
|
4125
4125
|
* @see https://tailwindcss.com/docs/padding
|
|
4126
4126
|
*/
|
|
4127
4127
|
pb: [{
|
|
4128
|
-
pb: [
|
|
4128
|
+
pb: [k]
|
|
4129
4129
|
}],
|
|
4130
4130
|
/**
|
|
4131
4131
|
* Padding Left
|
|
4132
4132
|
* @see https://tailwindcss.com/docs/padding
|
|
4133
4133
|
*/
|
|
4134
4134
|
pl: [{
|
|
4135
|
-
pl: [
|
|
4135
|
+
pl: [k]
|
|
4136
4136
|
}],
|
|
4137
4137
|
/**
|
|
4138
4138
|
* Margin
|
|
@@ -4227,21 +4227,21 @@ const $ = (i) => {
|
|
|
4227
4227
|
* @see https://tailwindcss.com/docs/width
|
|
4228
4228
|
*/
|
|
4229
4229
|
w: [{
|
|
4230
|
-
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw",
|
|
4230
|
+
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", M, d]
|
|
4231
4231
|
}],
|
|
4232
4232
|
/**
|
|
4233
4233
|
* Min-Width
|
|
4234
4234
|
* @see https://tailwindcss.com/docs/min-width
|
|
4235
4235
|
*/
|
|
4236
4236
|
"min-w": [{
|
|
4237
|
-
"min-w": [
|
|
4237
|
+
"min-w": [M, d, "min", "max", "fit"]
|
|
4238
4238
|
}],
|
|
4239
4239
|
/**
|
|
4240
4240
|
* Max-Width
|
|
4241
4241
|
* @see https://tailwindcss.com/docs/max-width
|
|
4242
4242
|
*/
|
|
4243
4243
|
"max-w": [{
|
|
4244
|
-
"max-w": [
|
|
4244
|
+
"max-w": [M, d, "none", "full", "min", "max", "fit", "prose", {
|
|
4245
4245
|
screen: [me]
|
|
4246
4246
|
}, me]
|
|
4247
4247
|
}],
|
|
@@ -4250,28 +4250,28 @@ const $ = (i) => {
|
|
|
4250
4250
|
* @see https://tailwindcss.com/docs/height
|
|
4251
4251
|
*/
|
|
4252
4252
|
h: [{
|
|
4253
|
-
h: [
|
|
4253
|
+
h: [M, d, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
4254
4254
|
}],
|
|
4255
4255
|
/**
|
|
4256
4256
|
* Min-Height
|
|
4257
4257
|
* @see https://tailwindcss.com/docs/min-height
|
|
4258
4258
|
*/
|
|
4259
4259
|
"min-h": [{
|
|
4260
|
-
"min-h": [
|
|
4260
|
+
"min-h": [M, d, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
4261
4261
|
}],
|
|
4262
4262
|
/**
|
|
4263
4263
|
* Max-Height
|
|
4264
4264
|
* @see https://tailwindcss.com/docs/max-height
|
|
4265
4265
|
*/
|
|
4266
4266
|
"max-h": [{
|
|
4267
|
-
"max-h": [
|
|
4267
|
+
"max-h": [M, d, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
4268
4268
|
}],
|
|
4269
4269
|
/**
|
|
4270
4270
|
* Size
|
|
4271
4271
|
* @see https://tailwindcss.com/docs/size
|
|
4272
4272
|
*/
|
|
4273
4273
|
size: [{
|
|
4274
|
-
size: [
|
|
4274
|
+
size: [M, d, "auto", "min", "max", "fit"]
|
|
4275
4275
|
}],
|
|
4276
4276
|
// Typography
|
|
4277
4277
|
/**
|
|
@@ -4340,35 +4340,35 @@ const $ = (i) => {
|
|
|
4340
4340
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
4341
4341
|
*/
|
|
4342
4342
|
tracking: [{
|
|
4343
|
-
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest",
|
|
4343
|
+
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", M]
|
|
4344
4344
|
}],
|
|
4345
4345
|
/**
|
|
4346
4346
|
* Line Clamp
|
|
4347
4347
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
4348
4348
|
*/
|
|
4349
4349
|
"line-clamp": [{
|
|
4350
|
-
"line-clamp": ["none",
|
|
4350
|
+
"line-clamp": ["none", _e, rt]
|
|
4351
4351
|
}],
|
|
4352
4352
|
/**
|
|
4353
4353
|
* Line Height
|
|
4354
4354
|
* @see https://tailwindcss.com/docs/line-height
|
|
4355
4355
|
*/
|
|
4356
4356
|
leading: [{
|
|
4357
|
-
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", de,
|
|
4357
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", de, M]
|
|
4358
4358
|
}],
|
|
4359
4359
|
/**
|
|
4360
4360
|
* List Style Image
|
|
4361
4361
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
4362
4362
|
*/
|
|
4363
4363
|
"list-image": [{
|
|
4364
|
-
"list-image": ["none",
|
|
4364
|
+
"list-image": ["none", M]
|
|
4365
4365
|
}],
|
|
4366
4366
|
/**
|
|
4367
4367
|
* List Style Type
|
|
4368
4368
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
4369
4369
|
*/
|
|
4370
4370
|
"list-style-type": [{
|
|
4371
|
-
list: ["none", "disc", "decimal",
|
|
4371
|
+
list: ["none", "disc", "decimal", M]
|
|
4372
4372
|
}],
|
|
4373
4373
|
/**
|
|
4374
4374
|
* List Style Position
|
|
@@ -4437,7 +4437,7 @@ const $ = (i) => {
|
|
|
4437
4437
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
4438
4438
|
*/
|
|
4439
4439
|
"underline-offset": [{
|
|
4440
|
-
"underline-offset": ["auto", de,
|
|
4440
|
+
"underline-offset": ["auto", de, M]
|
|
4441
4441
|
}],
|
|
4442
4442
|
/**
|
|
4443
4443
|
* Text Decoration Color
|
|
@@ -4468,14 +4468,14 @@ const $ = (i) => {
|
|
|
4468
4468
|
* @see https://tailwindcss.com/docs/text-indent
|
|
4469
4469
|
*/
|
|
4470
4470
|
indent: [{
|
|
4471
|
-
indent:
|
|
4471
|
+
indent: O()
|
|
4472
4472
|
}],
|
|
4473
4473
|
/**
|
|
4474
4474
|
* Vertical Alignment
|
|
4475
4475
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
4476
4476
|
*/
|
|
4477
4477
|
"vertical-align": [{
|
|
4478
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
4478
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", M]
|
|
4479
4479
|
}],
|
|
4480
4480
|
/**
|
|
4481
4481
|
* Whitespace
|
|
@@ -4503,7 +4503,7 @@ const $ = (i) => {
|
|
|
4503
4503
|
* @see https://tailwindcss.com/docs/content
|
|
4504
4504
|
*/
|
|
4505
4505
|
content: [{
|
|
4506
|
-
content: ["none",
|
|
4506
|
+
content: ["none", M]
|
|
4507
4507
|
}],
|
|
4508
4508
|
// Backgrounds
|
|
4509
4509
|
/**
|
|
@@ -4579,42 +4579,42 @@ const $ = (i) => {
|
|
|
4579
4579
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
4580
4580
|
*/
|
|
4581
4581
|
"gradient-from-pos": [{
|
|
4582
|
-
from: [
|
|
4582
|
+
from: [N]
|
|
4583
4583
|
}],
|
|
4584
4584
|
/**
|
|
4585
4585
|
* Gradient Color Stops Via Position
|
|
4586
4586
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
4587
4587
|
*/
|
|
4588
4588
|
"gradient-via-pos": [{
|
|
4589
|
-
via: [
|
|
4589
|
+
via: [N]
|
|
4590
4590
|
}],
|
|
4591
4591
|
/**
|
|
4592
4592
|
* Gradient Color Stops To Position
|
|
4593
4593
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
4594
4594
|
*/
|
|
4595
4595
|
"gradient-to-pos": [{
|
|
4596
|
-
to: [
|
|
4596
|
+
to: [N]
|
|
4597
4597
|
}],
|
|
4598
4598
|
/**
|
|
4599
4599
|
* Gradient Color Stops From
|
|
4600
4600
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
4601
4601
|
*/
|
|
4602
4602
|
"gradient-from": [{
|
|
4603
|
-
from: [
|
|
4603
|
+
from: [S]
|
|
4604
4604
|
}],
|
|
4605
4605
|
/**
|
|
4606
4606
|
* Gradient Color Stops Via
|
|
4607
4607
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
4608
4608
|
*/
|
|
4609
4609
|
"gradient-via": [{
|
|
4610
|
-
via: [
|
|
4610
|
+
via: [S]
|
|
4611
4611
|
}],
|
|
4612
4612
|
/**
|
|
4613
4613
|
* Gradient Color Stops To
|
|
4614
4614
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
4615
4615
|
*/
|
|
4616
4616
|
"gradient-to": [{
|
|
4617
|
-
to: [
|
|
4617
|
+
to: [S]
|
|
4618
4618
|
}],
|
|
4619
4619
|
// Borders
|
|
4620
4620
|
/**
|
|
@@ -4919,7 +4919,7 @@ const $ = (i) => {
|
|
|
4919
4919
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
4920
4920
|
*/
|
|
4921
4921
|
"outline-offset": [{
|
|
4922
|
-
"outline-offset": [de,
|
|
4922
|
+
"outline-offset": [de, M]
|
|
4923
4923
|
}],
|
|
4924
4924
|
/**
|
|
4925
4925
|
* Outline Width
|
|
@@ -5039,42 +5039,42 @@ const $ = (i) => {
|
|
|
5039
5039
|
* @see https://tailwindcss.com/docs/contrast
|
|
5040
5040
|
*/
|
|
5041
5041
|
contrast: [{
|
|
5042
|
-
contrast: [
|
|
5042
|
+
contrast: [y]
|
|
5043
5043
|
}],
|
|
5044
5044
|
/**
|
|
5045
5045
|
* Drop Shadow
|
|
5046
5046
|
* @see https://tailwindcss.com/docs/drop-shadow
|
|
5047
5047
|
*/
|
|
5048
5048
|
"drop-shadow": [{
|
|
5049
|
-
"drop-shadow": ["", "none", me,
|
|
5049
|
+
"drop-shadow": ["", "none", me, M]
|
|
5050
5050
|
}],
|
|
5051
5051
|
/**
|
|
5052
5052
|
* Grayscale
|
|
5053
5053
|
* @see https://tailwindcss.com/docs/grayscale
|
|
5054
5054
|
*/
|
|
5055
5055
|
grayscale: [{
|
|
5056
|
-
grayscale: [
|
|
5056
|
+
grayscale: [z]
|
|
5057
5057
|
}],
|
|
5058
5058
|
/**
|
|
5059
5059
|
* Hue Rotate
|
|
5060
5060
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
5061
5061
|
*/
|
|
5062
5062
|
"hue-rotate": [{
|
|
5063
|
-
"hue-rotate": [
|
|
5063
|
+
"hue-rotate": [_]
|
|
5064
5064
|
}],
|
|
5065
5065
|
/**
|
|
5066
5066
|
* Invert
|
|
5067
5067
|
* @see https://tailwindcss.com/docs/invert
|
|
5068
5068
|
*/
|
|
5069
5069
|
invert: [{
|
|
5070
|
-
invert: [
|
|
5070
|
+
invert: [T]
|
|
5071
5071
|
}],
|
|
5072
5072
|
/**
|
|
5073
5073
|
* Saturate
|
|
5074
5074
|
* @see https://tailwindcss.com/docs/saturate
|
|
5075
5075
|
*/
|
|
5076
5076
|
saturate: [{
|
|
5077
|
-
saturate: [
|
|
5077
|
+
saturate: [R]
|
|
5078
5078
|
}],
|
|
5079
5079
|
/**
|
|
5080
5080
|
* Sepia
|
|
@@ -5110,28 +5110,28 @@ const $ = (i) => {
|
|
|
5110
5110
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
5111
5111
|
*/
|
|
5112
5112
|
"backdrop-contrast": [{
|
|
5113
|
-
"backdrop-contrast": [
|
|
5113
|
+
"backdrop-contrast": [y]
|
|
5114
5114
|
}],
|
|
5115
5115
|
/**
|
|
5116
5116
|
* Backdrop Grayscale
|
|
5117
5117
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
5118
5118
|
*/
|
|
5119
5119
|
"backdrop-grayscale": [{
|
|
5120
|
-
"backdrop-grayscale": [
|
|
5120
|
+
"backdrop-grayscale": [z]
|
|
5121
5121
|
}],
|
|
5122
5122
|
/**
|
|
5123
5123
|
* Backdrop Hue Rotate
|
|
5124
5124
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
5125
5125
|
*/
|
|
5126
5126
|
"backdrop-hue-rotate": [{
|
|
5127
|
-
"backdrop-hue-rotate": [
|
|
5127
|
+
"backdrop-hue-rotate": [_]
|
|
5128
5128
|
}],
|
|
5129
5129
|
/**
|
|
5130
5130
|
* Backdrop Invert
|
|
5131
5131
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
5132
5132
|
*/
|
|
5133
5133
|
"backdrop-invert": [{
|
|
5134
|
-
"backdrop-invert": [
|
|
5134
|
+
"backdrop-invert": [T]
|
|
5135
5135
|
}],
|
|
5136
5136
|
/**
|
|
5137
5137
|
* Backdrop Opacity
|
|
@@ -5145,7 +5145,7 @@ const $ = (i) => {
|
|
|
5145
5145
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
5146
5146
|
*/
|
|
5147
5147
|
"backdrop-saturate": [{
|
|
5148
|
-
"backdrop-saturate": [
|
|
5148
|
+
"backdrop-saturate": [R]
|
|
5149
5149
|
}],
|
|
5150
5150
|
/**
|
|
5151
5151
|
* Backdrop Sepia
|
|
@@ -5203,7 +5203,7 @@ const $ = (i) => {
|
|
|
5203
5203
|
* @see https://tailwindcss.com/docs/transition-property
|
|
5204
5204
|
*/
|
|
5205
5205
|
transition: [{
|
|
5206
|
-
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform",
|
|
5206
|
+
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", M]
|
|
5207
5207
|
}],
|
|
5208
5208
|
/**
|
|
5209
5209
|
* Transition Duration
|
|
@@ -5217,7 +5217,7 @@ const $ = (i) => {
|
|
|
5217
5217
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
5218
5218
|
*/
|
|
5219
5219
|
ease: [{
|
|
5220
|
-
ease: ["linear", "in", "out", "in-out",
|
|
5220
|
+
ease: ["linear", "in", "out", "in-out", M]
|
|
5221
5221
|
}],
|
|
5222
5222
|
/**
|
|
5223
5223
|
* Transition Delay
|
|
@@ -5231,7 +5231,7 @@ const $ = (i) => {
|
|
|
5231
5231
|
* @see https://tailwindcss.com/docs/animation
|
|
5232
5232
|
*/
|
|
5233
5233
|
animate: [{
|
|
5234
|
-
animate: ["none", "spin", "ping", "pulse", "bounce",
|
|
5234
|
+
animate: ["none", "spin", "ping", "pulse", "bounce", M]
|
|
5235
5235
|
}],
|
|
5236
5236
|
// Transforms
|
|
5237
5237
|
/**
|
|
@@ -5267,7 +5267,7 @@ const $ = (i) => {
|
|
|
5267
5267
|
* @see https://tailwindcss.com/docs/rotate
|
|
5268
5268
|
*/
|
|
5269
5269
|
rotate: [{
|
|
5270
|
-
rotate: [Ee,
|
|
5270
|
+
rotate: [Ee, M]
|
|
5271
5271
|
}],
|
|
5272
5272
|
/**
|
|
5273
5273
|
* Translate X
|
|
@@ -5288,21 +5288,21 @@ const $ = (i) => {
|
|
|
5288
5288
|
* @see https://tailwindcss.com/docs/skew
|
|
5289
5289
|
*/
|
|
5290
5290
|
"skew-x": [{
|
|
5291
|
-
"skew-x": [
|
|
5291
|
+
"skew-x": [L]
|
|
5292
5292
|
}],
|
|
5293
5293
|
/**
|
|
5294
5294
|
* Skew Y
|
|
5295
5295
|
* @see https://tailwindcss.com/docs/skew
|
|
5296
5296
|
*/
|
|
5297
5297
|
"skew-y": [{
|
|
5298
|
-
"skew-y": [
|
|
5298
|
+
"skew-y": [L]
|
|
5299
5299
|
}],
|
|
5300
5300
|
/**
|
|
5301
5301
|
* Transform Origin
|
|
5302
5302
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
5303
5303
|
*/
|
|
5304
5304
|
"transform-origin": [{
|
|
5305
|
-
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left",
|
|
5305
|
+
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", M]
|
|
5306
5306
|
}],
|
|
5307
5307
|
// Interactivity
|
|
5308
5308
|
/**
|
|
@@ -5324,7 +5324,7 @@ const $ = (i) => {
|
|
|
5324
5324
|
* @see https://tailwindcss.com/docs/cursor
|
|
5325
5325
|
*/
|
|
5326
5326
|
cursor: [{
|
|
5327
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
5327
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", M]
|
|
5328
5328
|
}],
|
|
5329
5329
|
/**
|
|
5330
5330
|
* Caret Color
|
|
@@ -5359,126 +5359,126 @@ const $ = (i) => {
|
|
|
5359
5359
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5360
5360
|
*/
|
|
5361
5361
|
"scroll-m": [{
|
|
5362
|
-
"scroll-m":
|
|
5362
|
+
"scroll-m": O()
|
|
5363
5363
|
}],
|
|
5364
5364
|
/**
|
|
5365
5365
|
* Scroll Margin X
|
|
5366
5366
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5367
5367
|
*/
|
|
5368
5368
|
"scroll-mx": [{
|
|
5369
|
-
"scroll-mx":
|
|
5369
|
+
"scroll-mx": O()
|
|
5370
5370
|
}],
|
|
5371
5371
|
/**
|
|
5372
5372
|
* Scroll Margin Y
|
|
5373
5373
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5374
5374
|
*/
|
|
5375
5375
|
"scroll-my": [{
|
|
5376
|
-
"scroll-my":
|
|
5376
|
+
"scroll-my": O()
|
|
5377
5377
|
}],
|
|
5378
5378
|
/**
|
|
5379
5379
|
* Scroll Margin Start
|
|
5380
5380
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5381
5381
|
*/
|
|
5382
5382
|
"scroll-ms": [{
|
|
5383
|
-
"scroll-ms":
|
|
5383
|
+
"scroll-ms": O()
|
|
5384
5384
|
}],
|
|
5385
5385
|
/**
|
|
5386
5386
|
* Scroll Margin End
|
|
5387
5387
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5388
5388
|
*/
|
|
5389
5389
|
"scroll-me": [{
|
|
5390
|
-
"scroll-me":
|
|
5390
|
+
"scroll-me": O()
|
|
5391
5391
|
}],
|
|
5392
5392
|
/**
|
|
5393
5393
|
* Scroll Margin Top
|
|
5394
5394
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5395
5395
|
*/
|
|
5396
5396
|
"scroll-mt": [{
|
|
5397
|
-
"scroll-mt":
|
|
5397
|
+
"scroll-mt": O()
|
|
5398
5398
|
}],
|
|
5399
5399
|
/**
|
|
5400
5400
|
* Scroll Margin Right
|
|
5401
5401
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5402
5402
|
*/
|
|
5403
5403
|
"scroll-mr": [{
|
|
5404
|
-
"scroll-mr":
|
|
5404
|
+
"scroll-mr": O()
|
|
5405
5405
|
}],
|
|
5406
5406
|
/**
|
|
5407
5407
|
* Scroll Margin Bottom
|
|
5408
5408
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5409
5409
|
*/
|
|
5410
5410
|
"scroll-mb": [{
|
|
5411
|
-
"scroll-mb":
|
|
5411
|
+
"scroll-mb": O()
|
|
5412
5412
|
}],
|
|
5413
5413
|
/**
|
|
5414
5414
|
* Scroll Margin Left
|
|
5415
5415
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5416
5416
|
*/
|
|
5417
5417
|
"scroll-ml": [{
|
|
5418
|
-
"scroll-ml":
|
|
5418
|
+
"scroll-ml": O()
|
|
5419
5419
|
}],
|
|
5420
5420
|
/**
|
|
5421
5421
|
* Scroll Padding
|
|
5422
5422
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5423
5423
|
*/
|
|
5424
5424
|
"scroll-p": [{
|
|
5425
|
-
"scroll-p":
|
|
5425
|
+
"scroll-p": O()
|
|
5426
5426
|
}],
|
|
5427
5427
|
/**
|
|
5428
5428
|
* Scroll Padding X
|
|
5429
5429
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5430
5430
|
*/
|
|
5431
5431
|
"scroll-px": [{
|
|
5432
|
-
"scroll-px":
|
|
5432
|
+
"scroll-px": O()
|
|
5433
5433
|
}],
|
|
5434
5434
|
/**
|
|
5435
5435
|
* Scroll Padding Y
|
|
5436
5436
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5437
5437
|
*/
|
|
5438
5438
|
"scroll-py": [{
|
|
5439
|
-
"scroll-py":
|
|
5439
|
+
"scroll-py": O()
|
|
5440
5440
|
}],
|
|
5441
5441
|
/**
|
|
5442
5442
|
* Scroll Padding Start
|
|
5443
5443
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5444
5444
|
*/
|
|
5445
5445
|
"scroll-ps": [{
|
|
5446
|
-
"scroll-ps":
|
|
5446
|
+
"scroll-ps": O()
|
|
5447
5447
|
}],
|
|
5448
5448
|
/**
|
|
5449
5449
|
* Scroll Padding End
|
|
5450
5450
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5451
5451
|
*/
|
|
5452
5452
|
"scroll-pe": [{
|
|
5453
|
-
"scroll-pe":
|
|
5453
|
+
"scroll-pe": O()
|
|
5454
5454
|
}],
|
|
5455
5455
|
/**
|
|
5456
5456
|
* Scroll Padding Top
|
|
5457
5457
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5458
5458
|
*/
|
|
5459
5459
|
"scroll-pt": [{
|
|
5460
|
-
"scroll-pt":
|
|
5460
|
+
"scroll-pt": O()
|
|
5461
5461
|
}],
|
|
5462
5462
|
/**
|
|
5463
5463
|
* Scroll Padding Right
|
|
5464
5464
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5465
5465
|
*/
|
|
5466
5466
|
"scroll-pr": [{
|
|
5467
|
-
"scroll-pr":
|
|
5467
|
+
"scroll-pr": O()
|
|
5468
5468
|
}],
|
|
5469
5469
|
/**
|
|
5470
5470
|
* Scroll Padding Bottom
|
|
5471
5471
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5472
5472
|
*/
|
|
5473
5473
|
"scroll-pb": [{
|
|
5474
|
-
"scroll-pb":
|
|
5474
|
+
"scroll-pb": O()
|
|
5475
5475
|
}],
|
|
5476
5476
|
/**
|
|
5477
5477
|
* Scroll Padding Left
|
|
5478
5478
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5479
5479
|
*/
|
|
5480
5480
|
"scroll-pl": [{
|
|
5481
|
-
"scroll-pl":
|
|
5481
|
+
"scroll-pl": O()
|
|
5482
5482
|
}],
|
|
5483
5483
|
/**
|
|
5484
5484
|
* Scroll Snap Align
|
|
@@ -5546,7 +5546,7 @@ const $ = (i) => {
|
|
|
5546
5546
|
* @see https://tailwindcss.com/docs/will-change
|
|
5547
5547
|
*/
|
|
5548
5548
|
"will-change": [{
|
|
5549
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
5549
|
+
"will-change": ["auto", "scroll", "contents", "transform", M]
|
|
5550
5550
|
}],
|
|
5551
5551
|
// SVG
|
|
5552
5552
|
/**
|
|
@@ -5898,7 +5898,7 @@ const $ = (i) => {
|
|
|
5898
5898
|
England: "🏴",
|
|
5899
5899
|
Scotland: "🏴",
|
|
5900
5900
|
Wales: "🏴"
|
|
5901
|
-
},
|
|
5901
|
+
}, dt = (i, d) => !i && !d ? "🌐" : d && d.length === 2 ? d.toUpperCase().split("").map(
|
|
5902
5902
|
(c) => String.fromCodePoint(c.charCodeAt(0) + 127397)
|
|
5903
5903
|
).join("") : i && ei[i] || "🌐", gi = (i) => new Intl.NumberFormat().format(i), er = (i) => {
|
|
5904
5904
|
const d = /* @__PURE__ */ new Date(), c = new Date(i), o = Math.floor((d.getTime() - c.getTime()) / 1e3);
|
|
@@ -5964,7 +5964,7 @@ function ri({ stats: i }) {
|
|
|
5964
5964
|
] })
|
|
5965
5965
|
] }),
|
|
5966
5966
|
/* @__PURE__ */ n.jsx("div", { className: "flex items-end gap-1.5 h-32", children: d.map((u, x) => {
|
|
5967
|
-
const
|
|
5967
|
+
const y = u / o * 100, z = c[x] || [];
|
|
5968
5968
|
return /* @__PURE__ */ n.jsx(
|
|
5969
5969
|
"div",
|
|
5970
5970
|
{
|
|
@@ -5972,7 +5972,7 @@ function ri({ stats: i }) {
|
|
|
5972
5972
|
"flex-1 transition-all duration-500 rounded-t-lg relative group",
|
|
5973
5973
|
x === d.length - 1 ? "bg-blue-500 shadow-[0_0_15px_rgba(59,130,246,0.5)]" : "bg-blue-500/20 hover:bg-blue-500/40"
|
|
5974
5974
|
),
|
|
5975
|
-
style: { height: `${Math.max(
|
|
5975
|
+
style: { height: `${Math.max(y, 4)}%` },
|
|
5976
5976
|
children: /* @__PURE__ */ n.jsxs("div", { className: "absolute bottom-full left-1/2 -translate-x-1/2 mb-3 bg-slate-800 text-white text-[10px] py-2 px-3 rounded-lg opacity-0 group-hover:opacity-100 whitespace-nowrap pointer-events-none z-10 border border-white/10 shadow-2xl backdrop-blur-md transition-opacity min-w-[120px]", children: [
|
|
5977
5977
|
/* @__PURE__ */ n.jsxs("div", { className: "font-bold mb-1", children: [
|
|
5978
5978
|
u,
|
|
@@ -5980,19 +5980,19 @@ function ri({ stats: i }) {
|
|
|
5980
5980
|
d.length - 1 - x,
|
|
5981
5981
|
"m ago"
|
|
5982
5982
|
] }),
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
/* @__PURE__ */ n.jsx("span", { className: "text-sm", children:
|
|
5986
|
-
/* @__PURE__ */ n.jsx("span", { className: "text-slate-300 truncate max-w-[80px]", children:
|
|
5983
|
+
z.length > 0 && /* @__PURE__ */ n.jsxs("div", { className: "space-y-0.5 border-t border-white/10 pt-1.5 mt-1", children: [
|
|
5984
|
+
z.slice(0, 3).map((_, T) => /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-1.5", children: [
|
|
5985
|
+
/* @__PURE__ */ n.jsx("span", { className: "text-sm", children: dt(_.country, _.countryCode) }),
|
|
5986
|
+
/* @__PURE__ */ n.jsx("span", { className: "text-slate-300 truncate max-w-[80px]", children: _.city || _.country }),
|
|
5987
5987
|
/* @__PURE__ */ n.jsxs("span", { className: "text-slate-500 ml-auto", children: [
|
|
5988
5988
|
"(",
|
|
5989
|
-
|
|
5989
|
+
_.count,
|
|
5990
5990
|
")"
|
|
5991
5991
|
] })
|
|
5992
|
-
] },
|
|
5993
|
-
|
|
5992
|
+
] }, T)),
|
|
5993
|
+
z.length > 3 && /* @__PURE__ */ n.jsxs("div", { className: "text-slate-500 text-[9px]", children: [
|
|
5994
5994
|
"+",
|
|
5995
|
-
|
|
5995
|
+
z.length - 3,
|
|
5996
5996
|
" more"
|
|
5997
5997
|
] })
|
|
5998
5998
|
] })
|
|
@@ -6048,7 +6048,7 @@ function si({ geo: i, cities: d }) {
|
|
|
6048
6048
|
/* @__PURE__ */ n.jsx("p", { className: "text-xs font-bold text-slate-500 uppercase tracking-widest mb-4", children: "Countries" }),
|
|
6049
6049
|
/* @__PURE__ */ n.jsx("div", { className: "space-y-3", children: i.map((c, o) => c.country !== "Unknown" && o < 5 && /* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-between p-3 rounded-xl bg-white/5 border border-transparent", children: [
|
|
6050
6050
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-4", children: [
|
|
6051
|
-
/* @__PURE__ */ n.jsx("span", { className: "text-lg", children:
|
|
6051
|
+
/* @__PURE__ */ n.jsx("span", { className: "text-lg", children: dt(c.country, c.countryCode) }),
|
|
6052
6052
|
/* @__PURE__ */ n.jsx("span", { className: "text-slate-300 font-medium text-sm", children: c.country })
|
|
6053
6053
|
] }),
|
|
6054
6054
|
/* @__PURE__ */ n.jsx("span", { className: "text-white font-bold text-sm", children: c.count })
|
|
@@ -6109,14 +6109,14 @@ function ai({ session: i }) {
|
|
|
6109
6109
|
/* @__PURE__ */ n.jsx("h3", { className: "text-xs font-bold text-slate-400 uppercase tracking-widest mb-4", children: "Navigation Journey" }),
|
|
6110
6110
|
/* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-2 md:grid-cols-4 gap-4 mb-8", children: [
|
|
6111
6111
|
/* @__PURE__ */ n.jsxs("div", { className: "bg-white/5 border border-white/5 rounded-2xl p-4 flex items-center gap-3", children: [
|
|
6112
|
-
/* @__PURE__ */ n.jsx("div", { className: "w-8 h-8 rounded-lg bg-blue-500/10 flex items-center justify-center text-blue-400", children: /* @__PURE__ */ n.jsx(
|
|
6112
|
+
/* @__PURE__ */ n.jsx("div", { className: "w-8 h-8 rounded-lg bg-blue-500/10 flex items-center justify-center text-blue-400", children: /* @__PURE__ */ n.jsx(Ft, { className: "w-4 h-4" }) }),
|
|
6113
6113
|
/* @__PURE__ */ n.jsxs("div", { children: [
|
|
6114
6114
|
/* @__PURE__ */ n.jsx("p", { className: "text-[10px] text-slate-500 uppercase font-bold tracking-tight", children: "Browser" }),
|
|
6115
6115
|
/* @__PURE__ */ n.jsx("p", { className: "text-white text-xs font-medium", children: i.browser || "Unknown" })
|
|
6116
6116
|
] })
|
|
6117
6117
|
] }),
|
|
6118
6118
|
/* @__PURE__ */ n.jsxs("div", { className: "bg-white/5 border border-white/5 rounded-2xl p-4 flex items-center gap-3", children: [
|
|
6119
|
-
/* @__PURE__ */ n.jsx("div", { className: "w-8 h-8 rounded-lg bg-purple-500/10 flex items-center justify-center text-purple-400", children: /* @__PURE__ */ n.jsx(
|
|
6119
|
+
/* @__PURE__ */ n.jsx("div", { className: "w-8 h-8 rounded-lg bg-purple-500/10 flex items-center justify-center text-purple-400", children: /* @__PURE__ */ n.jsx(Vt, { className: "w-4 h-4" }) }),
|
|
6120
6120
|
/* @__PURE__ */ n.jsxs("div", { children: [
|
|
6121
6121
|
/* @__PURE__ */ n.jsx("p", { className: "text-[10px] text-slate-500 uppercase font-bold tracking-tight", children: "OS & Screen" }),
|
|
6122
6122
|
/* @__PURE__ */ n.jsxs("p", { className: "text-white text-xs font-medium", children: [
|
|
@@ -6147,7 +6147,7 @@ function ai({ session: i }) {
|
|
|
6147
6147
|
return /* @__PURE__ */ n.jsxs("div", { className: "relative pl-10 pb-8 last:pb-4 group", children: [
|
|
6148
6148
|
/* @__PURE__ */ n.jsx("div", { className: `absolute left-0 top-0.5 w-6 h-6 rounded-full border-2 border-slate-900 z-10 flex items-center justify-center transition-transform group-hover:scale-110
|
|
6149
6149
|
${o.type === "page_view" ? "bg-blue-500 shadow-[0_0_10px_rgba(59,130,246,0.5)]" : "bg-yellow-500 shadow-[0_0_10px_rgba(234,179,8,0.3)]"}
|
|
6150
|
-
`, children: o.type === "page_view" ? /* @__PURE__ */ n.jsx(
|
|
6150
|
+
`, children: o.type === "page_view" ? /* @__PURE__ */ n.jsx(lt, { className: "w-3 h-3 text-white" }) : /* @__PURE__ */ n.jsx(Be, { className: "w-3 h-3 text-slate-900" }) }),
|
|
6151
6151
|
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
6152
6152
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
6153
6153
|
/* @__PURE__ */ n.jsx("span", { className: `text-sm font-bold tracking-tight ${o.type === "page_view" ? "text-white" : "text-yellow-500"}`, children: o.type === "page_view" ? o.path : ((h = o.name) == null ? void 0 : h.replace(/_/g, " ")) || "Interaction" }),
|
|
@@ -6192,7 +6192,7 @@ function ai({ session: i }) {
|
|
|
6192
6192
|
}
|
|
6193
6193
|
function oi({ sessions: i }) {
|
|
6194
6194
|
const [d, c] = te(null), [, o] = te(0);
|
|
6195
|
-
return
|
|
6195
|
+
return ye(() => {
|
|
6196
6196
|
const l = setInterval(() => o((h) => h + 1), 3e4);
|
|
6197
6197
|
return () => clearInterval(l);
|
|
6198
6198
|
}, []), /* @__PURE__ */ n.jsxs("div", { className: "bg-slate-900/50 border border-white/5 rounded-3xl p-8 backdrop-blur-xl", children: [
|
|
@@ -6216,9 +6216,9 @@ function oi({ sessions: i }) {
|
|
|
6216
6216
|
/* @__PURE__ */ n.jsx("th", { className: "pb-4 text-xs font-bold text-slate-500 uppercase tracking-widest px-2 text-right", children: "Last Activity" })
|
|
6217
6217
|
] }) }),
|
|
6218
6218
|
/* @__PURE__ */ n.jsx("tbody", { className: "divide-y divide-white/5", children: i.slice(0, 7).map((l) => {
|
|
6219
|
-
var
|
|
6219
|
+
var y;
|
|
6220
6220
|
const h = new Date(l.lastActive || l.createdAt).getTime(), u = l.isOnline && Date.now() - h < 3e4, x = d === l.id;
|
|
6221
|
-
return /* @__PURE__ */ n.jsxs(
|
|
6221
|
+
return /* @__PURE__ */ n.jsxs(qt.Fragment, { children: [
|
|
6222
6222
|
/* @__PURE__ */ n.jsxs(
|
|
6223
6223
|
"tr",
|
|
6224
6224
|
{
|
|
@@ -6241,7 +6241,7 @@ function oi({ sessions: i }) {
|
|
|
6241
6241
|
/* @__PURE__ */ n.jsx("span", { className: "text-slate-500 text-[10px] font-mono", children: l.ip || "0.0.0.0" })
|
|
6242
6242
|
] }) }),
|
|
6243
6243
|
/* @__PURE__ */ n.jsx("td", { className: "py-4", children: /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
6244
|
-
/* @__PURE__ */ n.jsx("span", { className: "text-lg", children:
|
|
6244
|
+
/* @__PURE__ */ n.jsx("span", { className: "text-lg", children: dt(l.country || "Unknown", l.countryCode) }),
|
|
6245
6245
|
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col", children: [
|
|
6246
6246
|
/* @__PURE__ */ n.jsx("span", { className: "text-white text-xs", children: l.country || "Unknown" }),
|
|
6247
6247
|
/* @__PURE__ */ n.jsx("span", { className: "text-slate-500 text-[10px]", children: l.city })
|
|
@@ -6253,7 +6253,7 @@ function oi({ sessions: i }) {
|
|
|
6253
6253
|
] }) }),
|
|
6254
6254
|
/* @__PURE__ */ n.jsx("td", { className: "py-4", children: /* @__PURE__ */ n.jsx("span", { className: ie(
|
|
6255
6255
|
"text-[10px] uppercase font-bold px-2 py-0.5 rounded border",
|
|
6256
|
-
(
|
|
6256
|
+
(y = l.utmSource) != null && y.includes("google") ? "text-green-400 border-green-500/20 bg-green-500/10" : "text-slate-400 border-slate-500/20 bg-slate-500/10"
|
|
6257
6257
|
), children: l.utmSource || "Direct" }) }),
|
|
6258
6258
|
/* @__PURE__ */ n.jsx("td", { className: "py-4", children: /* @__PURE__ */ n.jsx("span", { className: "text-slate-300 text-xs font-mono truncate max-w-[150px] block", title: l.exitPage, children: l.exitPage }) }),
|
|
6259
6259
|
/* @__PURE__ */ n.jsx("td", { className: "py-4", children: l.device === "bot" ? /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-1.5 text-orange-400 bg-orange-500/10 px-2 py-1 rounded border border-orange-500/20 w-fit", children: [
|
|
@@ -6284,7 +6284,7 @@ function li({ funnel: i }) {
|
|
|
6284
6284
|
return /* @__PURE__ */ n.jsxs("div", { className: "bg-slate-900/50 border border-white/5 rounded-3xl p-8 backdrop-blur-xl", children: [
|
|
6285
6285
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-between mb-8", children: [
|
|
6286
6286
|
/* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsxs("h2", { className: "text-xl font-bold text-white flex items-center gap-2", children: [
|
|
6287
|
-
/* @__PURE__ */ n.jsx(
|
|
6287
|
+
/* @__PURE__ */ n.jsx(Ut, { className: "w-5 h-5 text-brand-gold" }),
|
|
6288
6288
|
"Conversion Funnel"
|
|
6289
6289
|
] }) }),
|
|
6290
6290
|
/* @__PURE__ */ n.jsxs("div", { className: "text-right", children: [
|
|
@@ -6314,7 +6314,7 @@ function li({ funnel: i }) {
|
|
|
6314
6314
|
}
|
|
6315
6315
|
) }),
|
|
6316
6316
|
h && u > 0 && /* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-center text-[10px] text-red-400 py-1", children: [
|
|
6317
|
-
/* @__PURE__ */ n.jsx(
|
|
6317
|
+
/* @__PURE__ */ n.jsx(Ut, { className: "w-3 h-3 mr-1" }),
|
|
6318
6318
|
u.toLocaleString(),
|
|
6319
6319
|
" dropped (",
|
|
6320
6320
|
100 - h.rate,
|
|
@@ -6386,66 +6386,87 @@ var tr = { exports: {} };
|
|
|
6386
6386
|
};
|
|
6387
6387
|
})(tr);
|
|
6388
6388
|
var ci = tr.exports;
|
|
6389
|
-
const di = /* @__PURE__ */
|
|
6389
|
+
const di = /* @__PURE__ */ $t(ci);
|
|
6390
6390
|
function hi({ path: i, config: d }) {
|
|
6391
|
-
var
|
|
6392
|
-
const c = He(null), o = He(null), [l, h] = te(!0), [u, x] = te(null), [
|
|
6393
|
-
return
|
|
6391
|
+
var p;
|
|
6392
|
+
const c = He(null), o = He(null), [l, h] = te(!0), [u, x] = te(null), [y, z] = te([]), [_, T] = te(2e3);
|
|
6393
|
+
return ye(() => {
|
|
6394
6394
|
if (!i) return;
|
|
6395
6395
|
(async () => {
|
|
6396
6396
|
h(!0), x(null);
|
|
6397
6397
|
try {
|
|
6398
|
-
const
|
|
6398
|
+
const N = await fetch(`${d.endpoint}/heatmap?path=${encodeURIComponent(i)}`, {
|
|
6399
6399
|
headers: {
|
|
6400
6400
|
"x-tenant-key": d.apiKey,
|
|
6401
6401
|
"x-tenant-secret": d.adminSecret
|
|
6402
6402
|
}
|
|
6403
6403
|
});
|
|
6404
|
-
if (!
|
|
6405
|
-
const
|
|
6406
|
-
|
|
6407
|
-
} catch (
|
|
6408
|
-
x(
|
|
6404
|
+
if (!N.ok) throw new Error("Failed to fetch heatmap data");
|
|
6405
|
+
const v = await N.json();
|
|
6406
|
+
z(v);
|
|
6407
|
+
} catch (N) {
|
|
6408
|
+
x(N.message);
|
|
6409
6409
|
} finally {
|
|
6410
6410
|
h(!1);
|
|
6411
6411
|
}
|
|
6412
6412
|
})();
|
|
6413
|
-
}, [i, d]),
|
|
6414
|
-
|
|
6415
|
-
|
|
6416
|
-
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
|
|
6413
|
+
}, [i, d]), ye(() => {
|
|
6414
|
+
const S = setInterval(() => {
|
|
6415
|
+
var v;
|
|
6416
|
+
const N = document.querySelector('iframe[title="Heatmap Preview"]');
|
|
6417
|
+
if (N && N.contentWindow)
|
|
6418
|
+
try {
|
|
6419
|
+
const m = ((v = N.contentDocument) == null ? void 0 : v.documentElement.scrollHeight) || 2e3;
|
|
6420
|
+
m !== _ && T(m);
|
|
6421
|
+
} catch {
|
|
6422
|
+
T(2500);
|
|
6423
|
+
}
|
|
6424
|
+
}, 1e3);
|
|
6425
|
+
return () => clearInterval(S);
|
|
6426
|
+
}, [_]), ye(() => {
|
|
6427
|
+
var k;
|
|
6428
|
+
if (!c.current || y.length === 0 || l) return;
|
|
6429
|
+
const S = c.current, N = S.getContext("2d");
|
|
6430
|
+
if (!N) return;
|
|
6431
|
+
N.clearRect(0, 0, S.width, S.height);
|
|
6432
|
+
const v = di(S), m = ((k = o.current) == null ? void 0 : k.offsetWidth) || window.innerWidth, b = y.map((R) => [m / 2 + R.x, R.y, 0.8]);
|
|
6433
|
+
v.data(b), v.radius(20, 15), v.draw();
|
|
6434
|
+
}, [y, l, _]), /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
6425
6435
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
6426
6436
|
/* @__PURE__ */ n.jsxs("div", { children: [
|
|
6427
|
-
/* @__PURE__ */ n.
|
|
6437
|
+
/* @__PURE__ */ n.jsxs("h2", { className: "text-xl font-bold text-white flex items-center gap-2", children: [
|
|
6438
|
+
/* @__PURE__ */ n.jsx(lt, { className: "w-5 h-5 text-red-500" }),
|
|
6439
|
+
"Page Interaction Heatmap"
|
|
6440
|
+
] }),
|
|
6428
6441
|
/* @__PURE__ */ n.jsxs("p", { className: "text-slate-500 text-sm", children: [
|
|
6429
|
-
"
|
|
6442
|
+
"Real-time precision mapping for: ",
|
|
6430
6443
|
i
|
|
6431
6444
|
] })
|
|
6432
6445
|
] }),
|
|
6433
|
-
/* @__PURE__ */ n.jsxs("div", { className: "bg-slate-800 rounded-
|
|
6434
|
-
/* @__PURE__ */ n.
|
|
6435
|
-
|
|
6446
|
+
/* @__PURE__ */ n.jsxs("div", { className: "bg-slate-800 rounded-2xl px-6 py-3 border border-white/5 flex items-center gap-4", children: [
|
|
6447
|
+
/* @__PURE__ */ n.jsxs("div", { className: "text-right border-r border-white/10 pr-4", children: [
|
|
6448
|
+
/* @__PURE__ */ n.jsx("span", { className: "text-white font-bold block leading-none", children: y.length }),
|
|
6449
|
+
/* @__PURE__ */ n.jsx("span", { className: "text-slate-500 text-[10px] uppercase font-bold tracking-wider", children: "Dots" })
|
|
6450
|
+
] }),
|
|
6451
|
+
/* @__PURE__ */ n.jsxs("div", { className: "flex gap-1", children: [
|
|
6452
|
+
/* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-500" }),
|
|
6453
|
+
/* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-green-500" }),
|
|
6454
|
+
/* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-red-500" })
|
|
6455
|
+
] })
|
|
6436
6456
|
] })
|
|
6437
6457
|
] }),
|
|
6438
6458
|
/* @__PURE__ */ n.jsxs(
|
|
6439
6459
|
"div",
|
|
6440
6460
|
{
|
|
6441
6461
|
ref: o,
|
|
6442
|
-
className: "relative bg-slate-900 rounded-
|
|
6462
|
+
className: "relative bg-slate-900 rounded-[2.5rem] border border-white/5 overflow-hidden min-h-[700px] shadow-2xl",
|
|
6463
|
+
style: { height: `${_}px` },
|
|
6443
6464
|
children: [
|
|
6444
6465
|
d.siteUrl ? /* @__PURE__ */ n.jsx(
|
|
6445
6466
|
"iframe",
|
|
6446
6467
|
{
|
|
6447
6468
|
src: `${d.siteUrl}${i}`,
|
|
6448
|
-
className: "absolute inset-0 w-full h-full border-none opacity-
|
|
6469
|
+
className: "absolute inset-0 w-full h-full border-none opacity-40 pointer-events-none grayscale hover:grayscale-0 transition-all duration-700",
|
|
6449
6470
|
title: "Heatmap Preview"
|
|
6450
6471
|
}
|
|
6451
6472
|
) : /* @__PURE__ */ n.jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-slate-900", children: /* @__PURE__ */ n.jsx("p", { className: "text-slate-500 text-sm", children: "Preview not available (siteUrl not configured)" }) }),
|
|
@@ -6453,17 +6474,17 @@ function hi({ path: i, config: d }) {
|
|
|
6453
6474
|
"canvas",
|
|
6454
6475
|
{
|
|
6455
6476
|
ref: c,
|
|
6456
|
-
width: ((
|
|
6457
|
-
height:
|
|
6477
|
+
width: ((p = o.current) == null ? void 0 : p.offsetWidth) || 1200,
|
|
6478
|
+
height: _,
|
|
6458
6479
|
className: "absolute inset-0 pointer-events-none z-10"
|
|
6459
6480
|
}
|
|
6460
6481
|
),
|
|
6461
|
-
l && /* @__PURE__ */ n.jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-slate-950/50 backdrop-blur-sm z-20", children: /* @__PURE__ */ n.jsx(
|
|
6482
|
+
l && /* @__PURE__ */ n.jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-slate-950/50 backdrop-blur-sm z-20", children: /* @__PURE__ */ n.jsx(Gt, { className: "w-8 h-8 text-red-500 animate-spin" }) }),
|
|
6462
6483
|
u && /* @__PURE__ */ n.jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-slate-950/50 backdrop-blur-sm z-20", children: /* @__PURE__ */ n.jsxs("div", { className: "bg-red-500/10 border border-red-500/20 p-6 rounded-2xl flex flex-col items-center gap-3", children: [
|
|
6463
6484
|
/* @__PURE__ */ n.jsx(os, { className: "w-8 h-8 text-red-500" }),
|
|
6464
6485
|
/* @__PURE__ */ n.jsx("p", { className: "text-white font-medium", children: u })
|
|
6465
6486
|
] }) }),
|
|
6466
|
-
!l &&
|
|
6487
|
+
!l && y.length === 0 && /* @__PURE__ */ n.jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-slate-950/50 backdrop-blur-sm z-20", children: /* @__PURE__ */ n.jsx("div", { className: "bg-slate-900 border border-white/5 p-8 rounded-3xl text-center", children: /* @__PURE__ */ n.jsx("p", { className: "text-slate-400", children: "No interaction data found for this page yet." }) }) })
|
|
6467
6488
|
]
|
|
6468
6489
|
}
|
|
6469
6490
|
)
|
|
@@ -6503,12 +6524,12 @@ function ui({ events: i }) {
|
|
|
6503
6524
|
/* @__PURE__ */ n.jsx("span", { className: "text-white text-sm font-medium", children: ((h = d.user) == null ? void 0 : h.name) || "Anonymous User" }),
|
|
6504
6525
|
((u = d.user) == null ? void 0 : u.email) && /* @__PURE__ */ n.jsx("span", { className: "text-slate-500 text-xs", children: d.user.email })
|
|
6505
6526
|
] }) }),
|
|
6506
|
-
/* @__PURE__ */ n.jsx("td", { className: "py-4 text-right", children: d.metadata && Object.keys(d.metadata).length > 0 && /* @__PURE__ */ n.jsx("div", { className: "flex flex-wrap justify-end gap-1.5 max-w-md ml-auto", children: Object.entries(d.metadata).slice(0, 3).map(([x,
|
|
6527
|
+
/* @__PURE__ */ n.jsx("td", { className: "py-4 text-right", children: d.metadata && Object.keys(d.metadata).length > 0 && /* @__PURE__ */ n.jsx("div", { className: "flex flex-wrap justify-end gap-1.5 max-w-md ml-auto", children: Object.entries(d.metadata).slice(0, 3).map(([x, y]) => /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-1.5 bg-white/5 px-2 py-1 rounded border border-white/5", children: [
|
|
6507
6528
|
/* @__PURE__ */ n.jsxs("span", { className: "text-[10px] text-slate-500 font-bold uppercase", children: [
|
|
6508
6529
|
x,
|
|
6509
6530
|
":"
|
|
6510
6531
|
] }),
|
|
6511
|
-
/* @__PURE__ */ n.jsx("span", { className: "text-[10px] text-slate-300 font-mono", children: typeof
|
|
6532
|
+
/* @__PURE__ */ n.jsx("span", { className: "text-[10px] text-slate-300 font-mono", children: typeof y == "string" && y.length > 20 ? y.substring(0, 20) + "..." : String(y) })
|
|
6512
6533
|
] }, x)) }) })
|
|
6513
6534
|
] }, d.id);
|
|
6514
6535
|
}) })
|
|
@@ -6516,18 +6537,18 @@ function ui({ events: i }) {
|
|
|
6516
6537
|
] });
|
|
6517
6538
|
}
|
|
6518
6539
|
function xi({ config: i, className: d }) {
|
|
6519
|
-
var b,
|
|
6520
|
-
const [c, o] = te("24h"), [l, h] = te("front"), [u, x] = te("users"), [
|
|
6540
|
+
var b, k, R, D, U, L;
|
|
6541
|
+
const [c, o] = te("24h"), [l, h] = te("front"), [u, x] = te("users"), [y, z] = te({ start: "", end: "" }), [_, T] = te(null), { stats: p, funnel: S, heatmapPages: N, loading: v, error: m } = ws(
|
|
6521
6542
|
i,
|
|
6522
6543
|
c,
|
|
6523
6544
|
l,
|
|
6524
6545
|
u,
|
|
6525
|
-
c === "custom" ?
|
|
6546
|
+
c === "custom" ? y : void 0
|
|
6526
6547
|
);
|
|
6527
|
-
return
|
|
6528
|
-
!
|
|
6529
|
-
}, [
|
|
6530
|
-
/* @__PURE__ */ n.jsx(
|
|
6548
|
+
return ye(() => {
|
|
6549
|
+
!_ && N.length > 0 && T(N[0].path);
|
|
6550
|
+
}, [N, _]), !p && v ? /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col items-center justify-center min-h-[400px]", children: [
|
|
6551
|
+
/* @__PURE__ */ n.jsx(Gt, { className: "w-10 h-10 animate-spin text-blue-500 mb-4" }),
|
|
6531
6552
|
/* @__PURE__ */ n.jsx("p", { className: "text-slate-400", children: "Loading your analytics data..." })
|
|
6532
6553
|
] }) : m ? /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col items-center justify-center min-h-[400px] p-8 bg-red-500/10 rounded-3xl border border-red-500/20", children: [
|
|
6533
6554
|
/* @__PURE__ */ n.jsx("p", { className: "text-red-400 font-bold mb-2", children: "Error loading analytics" }),
|
|
@@ -6578,15 +6599,15 @@ function xi({ config: i, className: d }) {
|
|
|
6578
6599
|
] })
|
|
6579
6600
|
] }),
|
|
6580
6601
|
c === "custom" && /* @__PURE__ */ n.jsxs("div", { className: "bg-slate-900/50 border border-white/5 rounded-2xl p-6 flex flex-col sm:flex-row items-center gap-4", children: [
|
|
6581
|
-
/* @__PURE__ */ n.jsx(
|
|
6602
|
+
/* @__PURE__ */ n.jsx(Dt, { className: "w-5 h-5 text-blue-400" }),
|
|
6582
6603
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
6583
6604
|
/* @__PURE__ */ n.jsx("label", { className: "text-slate-400 text-sm", children: "From:" }),
|
|
6584
6605
|
/* @__PURE__ */ n.jsx(
|
|
6585
6606
|
"input",
|
|
6586
6607
|
{
|
|
6587
6608
|
type: "date",
|
|
6588
|
-
value:
|
|
6589
|
-
onChange: (j) =>
|
|
6609
|
+
value: y.start,
|
|
6610
|
+
onChange: (j) => z((P) => ({ ...P, start: j.target.value })),
|
|
6590
6611
|
className: "bg-slate-800 border border-white/10 rounded-lg px-3 py-2 text-white text-sm focus:outline-none focus:border-blue-500"
|
|
6591
6612
|
}
|
|
6592
6613
|
)
|
|
@@ -6598,8 +6619,8 @@ function xi({ config: i, className: d }) {
|
|
|
6598
6619
|
"input",
|
|
6599
6620
|
{
|
|
6600
6621
|
type: "date",
|
|
6601
|
-
value:
|
|
6602
|
-
onChange: (j) =>
|
|
6622
|
+
value: y.end,
|
|
6623
|
+
onChange: (j) => z((P) => ({ ...P, end: j.target.value })),
|
|
6603
6624
|
className: "bg-slate-800 border border-white/10 rounded-lg px-3 py-2 text-white text-sm focus:outline-none focus:border-blue-500"
|
|
6604
6625
|
}
|
|
6605
6626
|
)
|
|
@@ -6620,8 +6641,8 @@ function xi({ config: i, className: d }) {
|
|
|
6620
6641
|
Le,
|
|
6621
6642
|
{
|
|
6622
6643
|
label: "Total Sessions",
|
|
6623
|
-
value: ((
|
|
6624
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
6644
|
+
value: ((k = p == null ? void 0 : p.summary) == null ? void 0 : k.sessions) || 0,
|
|
6645
|
+
icon: /* @__PURE__ */ n.jsx(lt, { className: "w-5 h-5" }),
|
|
6625
6646
|
color: "purple"
|
|
6626
6647
|
}
|
|
6627
6648
|
),
|
|
@@ -6629,7 +6650,7 @@ function xi({ config: i, className: d }) {
|
|
|
6629
6650
|
Le,
|
|
6630
6651
|
{
|
|
6631
6652
|
label: "Unique Visitors",
|
|
6632
|
-
value: ((
|
|
6653
|
+
value: ((R = p == null ? void 0 : p.summary) == null ? void 0 : R.uniqueVisitors) || 0,
|
|
6633
6654
|
icon: /* @__PURE__ */ n.jsx(it, { className: "w-5 h-5" }),
|
|
6634
6655
|
color: "blue"
|
|
6635
6656
|
}
|
|
@@ -6648,7 +6669,7 @@ function xi({ config: i, className: d }) {
|
|
|
6648
6669
|
{
|
|
6649
6670
|
label: "Bounce Rate",
|
|
6650
6671
|
value: `${((U = p == null ? void 0 : p.summary) == null ? void 0 : U.bounceRate) || 0}%`,
|
|
6651
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
6672
|
+
icon: /* @__PURE__ */ n.jsx(Dt, { className: "w-5 h-5" }),
|
|
6652
6673
|
color: "red"
|
|
6653
6674
|
}
|
|
6654
6675
|
)
|
|
@@ -6656,7 +6677,7 @@ function xi({ config: i, className: d }) {
|
|
|
6656
6677
|
/* @__PURE__ */ n.jsxs("div", { className: "space-y-8", children: [
|
|
6657
6678
|
/* @__PURE__ */ n.jsx(ri, { stats: p }),
|
|
6658
6679
|
/* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-2 gap-8", children: [
|
|
6659
|
-
/* @__PURE__ */ n.jsx(ni, { pages: (p == null ? void 0 : p.topPages) || [], totalViews: ((
|
|
6680
|
+
/* @__PURE__ */ n.jsx(ni, { pages: (p == null ? void 0 : p.topPages) || [], totalViews: ((L = p == null ? void 0 : p.summary) == null ? void 0 : L.pageViews) || 1 }),
|
|
6660
6681
|
/* @__PURE__ */ n.jsx(si, { geo: (p == null ? void 0 : p.geo) || [], cities: (p == null ? void 0 : p.cities) || [] })
|
|
6661
6682
|
] }),
|
|
6662
6683
|
/* @__PURE__ */ n.jsx(ii, { sources: (p == null ? void 0 : p.sources) || [], referrers: (p == null ? void 0 : p.referrers) || [] }),
|
|
@@ -6670,16 +6691,16 @@ function xi({ config: i, className: d }) {
|
|
|
6670
6691
|
] }),
|
|
6671
6692
|
/* @__PURE__ */ n.jsx("div", { className: "space-y-4", children: ["Desktop", "Mobile", "Tablet"].map((j) => {
|
|
6672
6693
|
var q, V, Q;
|
|
6673
|
-
const P = ((V = (q = p == null ? void 0 : p.devices) == null ? void 0 : q.find((
|
|
6694
|
+
const P = ((V = (q = p == null ? void 0 : p.devices) == null ? void 0 : q.find((O) => {
|
|
6674
6695
|
var re;
|
|
6675
|
-
return ((re =
|
|
6696
|
+
return ((re = O.device) == null ? void 0 : re.toLowerCase()) === j.toLowerCase();
|
|
6676
6697
|
})) == null ? void 0 : V.count) || 0;
|
|
6677
6698
|
return /* @__PURE__ */ n.jsx(nt, { label: j, count: P, total: ((Q = p == null ? void 0 : p.summary) == null ? void 0 : Q.sessions) || 0 }, j);
|
|
6678
6699
|
}) })
|
|
6679
6700
|
] }),
|
|
6680
6701
|
/* @__PURE__ */ n.jsxs("div", { className: "bg-slate-900/50 border border-white/5 rounded-3xl p-8 backdrop-blur-xl", children: [
|
|
6681
6702
|
/* @__PURE__ */ n.jsxs("h2", { className: "text-xl font-bold text-white mb-8 flex items-center gap-2", children: [
|
|
6682
|
-
/* @__PURE__ */ n.jsx(
|
|
6703
|
+
/* @__PURE__ */ n.jsx(Ft, { className: "w-5 h-5 text-purple-400" }),
|
|
6683
6704
|
"Browser Breakdown"
|
|
6684
6705
|
] }),
|
|
6685
6706
|
/* @__PURE__ */ n.jsxs("div", { className: "space-y-4", children: [
|
|
@@ -6692,7 +6713,7 @@ function xi({ config: i, className: d }) {
|
|
|
6692
6713
|
] }),
|
|
6693
6714
|
/* @__PURE__ */ n.jsxs("div", { className: "bg-slate-900/50 border border-white/5 rounded-3xl p-8 backdrop-blur-xl", children: [
|
|
6694
6715
|
/* @__PURE__ */ n.jsxs("h2", { className: "text-xl font-bold text-white mb-8 flex items-center gap-2", children: [
|
|
6695
|
-
/* @__PURE__ */ n.jsx(
|
|
6716
|
+
/* @__PURE__ */ n.jsx(Vt, { className: "w-5 h-5 text-green-400" }),
|
|
6696
6717
|
"OS Breakdown"
|
|
6697
6718
|
] }),
|
|
6698
6719
|
/* @__PURE__ */ n.jsxs("div", { className: "space-y-4", children: [
|
|
@@ -6729,20 +6750,20 @@ function xi({ config: i, className: d }) {
|
|
|
6729
6750
|
(!(p != null && p.isps) || p.isps.length === 0) && /* @__PURE__ */ n.jsx("p", { className: "text-slate-500 text-sm italic col-span-full", children: "No ISP data yet" })
|
|
6730
6751
|
] })
|
|
6731
6752
|
] }),
|
|
6732
|
-
|
|
6753
|
+
S && /* @__PURE__ */ n.jsx(li, { funnel: S }),
|
|
6733
6754
|
/* @__PURE__ */ n.jsxs("div", { className: "bg-slate-900/50 border border-white/5 rounded-3xl p-8 backdrop-blur-xl", children: [
|
|
6734
6755
|
/* @__PURE__ */ n.jsxs("h2", { className: "text-xl font-bold text-white mb-8 flex items-center gap-2", children: [
|
|
6735
6756
|
/* @__PURE__ */ n.jsx(Be, { className: "w-5 h-5 text-red-500" }),
|
|
6736
6757
|
"Interaction Heatmaps"
|
|
6737
6758
|
] }),
|
|
6738
|
-
|
|
6739
|
-
/* @__PURE__ */ n.jsx("div", { className: "flex flex-wrap gap-2", children:
|
|
6759
|
+
N.length > 0 ? /* @__PURE__ */ n.jsxs("div", { className: "space-y-6", children: [
|
|
6760
|
+
/* @__PURE__ */ n.jsx("div", { className: "flex flex-wrap gap-2", children: N.map((j) => /* @__PURE__ */ n.jsxs(
|
|
6740
6761
|
"button",
|
|
6741
6762
|
{
|
|
6742
|
-
onClick: () =>
|
|
6763
|
+
onClick: () => T(j.path),
|
|
6743
6764
|
className: ie(
|
|
6744
6765
|
"px-4 py-2 rounded-xl text-sm font-medium transition-all border",
|
|
6745
|
-
|
|
6766
|
+
_ === j.path ? "bg-red-500 text-white border-red-500 shadow-lg shadow-red-500/20" : "bg-white/5 text-slate-400 border-white/5 hover:bg-white/10"
|
|
6746
6767
|
),
|
|
6747
6768
|
children: [
|
|
6748
6769
|
j.path,
|
|
@@ -6755,10 +6776,10 @@ function xi({ config: i, className: d }) {
|
|
|
6755
6776
|
},
|
|
6756
6777
|
j.path
|
|
6757
6778
|
)) }),
|
|
6758
|
-
|
|
6779
|
+
_ && /* @__PURE__ */ n.jsx(
|
|
6759
6780
|
hi,
|
|
6760
6781
|
{
|
|
6761
|
-
path:
|
|
6782
|
+
path: _,
|
|
6762
6783
|
config: i
|
|
6763
6784
|
}
|
|
6764
6785
|
)
|
|
@@ -6804,6 +6825,6 @@ export {
|
|
|
6804
6825
|
gi as formatNumber,
|
|
6805
6826
|
er as formatRelativeTime,
|
|
6806
6827
|
ti as formatVisitorDate,
|
|
6807
|
-
|
|
6828
|
+
dt as getFlag,
|
|
6808
6829
|
ws as useAnalyticsData
|
|
6809
6830
|
};
|