@connorpham/live-chat-widget 13.0.0 → 14.0.0
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/cellcast-bot-widget.es.js +1032 -1034
- package/dist/cellcast-bot-widget.umd.js +11 -11
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var lD = (u, D, f) =>
|
|
4
|
-
import
|
|
1
|
+
var i0 = Object.defineProperty;
|
|
2
|
+
var o0 = (u, D, f) => D in u ? i0(u, D, { enumerable: !0, configurable: !0, writable: !0, value: f }) : u[D] = f;
|
|
3
|
+
var lD = (u, D, f) => o0(u, typeof D != "symbol" ? D + "" : D, f);
|
|
4
|
+
import af, { createContext as zu, useRef as pu, useEffect as X, useContext as Ku, useState as U, useCallback as qu, useMemo as d0 } from "react";
|
|
5
5
|
var dD = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
6
|
-
function
|
|
6
|
+
function sf(u) {
|
|
7
7
|
return u && u.__esModule && Object.prototype.hasOwnProperty.call(u, "default") ? u.default : u;
|
|
8
8
|
}
|
|
9
|
-
var
|
|
9
|
+
var WD = { exports: {} }, eD = {};
|
|
10
10
|
/*
|
|
11
11
|
object-assign
|
|
12
12
|
(c) Sindre Sorhus
|
|
13
13
|
@license MIT
|
|
14
14
|
*/
|
|
15
|
-
var PD,
|
|
16
|
-
function
|
|
17
|
-
if (
|
|
18
|
-
|
|
15
|
+
var PD, Nf;
|
|
16
|
+
function Jf() {
|
|
17
|
+
if (Nf) return PD;
|
|
18
|
+
Nf = 1;
|
|
19
19
|
var u = Object.getOwnPropertySymbols, D = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable;
|
|
20
20
|
function e(n) {
|
|
21
21
|
if (n == null)
|
|
@@ -66,11 +66,11 @@ function Xf() {
|
|
|
66
66
|
* This source code is licensed under the MIT license found in the
|
|
67
67
|
* LICENSE file in the root directory of this source tree.
|
|
68
68
|
*/
|
|
69
|
-
var
|
|
70
|
-
function
|
|
71
|
-
if (
|
|
72
|
-
|
|
73
|
-
var u =
|
|
69
|
+
var Of;
|
|
70
|
+
function C0() {
|
|
71
|
+
if (Of) return eD;
|
|
72
|
+
Of = 1, Jf();
|
|
73
|
+
var u = af, D = 60103;
|
|
74
74
|
if (eD.Fragment = 60107, typeof Symbol == "function" && Symbol.for) {
|
|
75
75
|
var f = Symbol.for;
|
|
76
76
|
D = f("react.element"), eD.Fragment = f("react.fragment");
|
|
@@ -85,9 +85,9 @@ function c0() {
|
|
|
85
85
|
}
|
|
86
86
|
return eD.jsx = r, eD.jsxs = r, eD;
|
|
87
87
|
}
|
|
88
|
-
var ID = {},
|
|
89
|
-
function
|
|
90
|
-
return
|
|
88
|
+
var ID = {}, Rf;
|
|
89
|
+
function c0() {
|
|
90
|
+
return Rf || (Rf = 1, function(u) {
|
|
91
91
|
var D = {};
|
|
92
92
|
/** @license React v17.0.2
|
|
93
93
|
* react-jsx-runtime.development.js
|
|
@@ -98,7 +98,7 @@ function l0() {
|
|
|
98
98
|
* LICENSE file in the root directory of this source tree.
|
|
99
99
|
*/
|
|
100
100
|
D.NODE_ENV !== "production" && function() {
|
|
101
|
-
var f =
|
|
101
|
+
var f = af, e = Jf(), t = 60103, n = 60106;
|
|
102
102
|
u.Fragment = 60107;
|
|
103
103
|
var r = 60108, s = 60114, F = 60109, o = 60110, d = 60112, c = 60113, l = 60120, j = 60115, m = 60116, C = 60121, v = 60122, S = 60117, g = 60129, L = 60131;
|
|
104
104
|
if (typeof Symbol == "function" && Symbol.for) {
|
|
@@ -336,8 +336,8 @@ function l0() {
|
|
|
336
336
|
} finally {
|
|
337
337
|
au = !1, lu.current = G, nu(), Error.prepareStackTrace = Q;
|
|
338
338
|
}
|
|
339
|
-
var fD = i ? i.displayName || i.name : "",
|
|
340
|
-
return typeof i == "function" && Cu.set(i,
|
|
339
|
+
var fD = i ? i.displayName || i.name : "", Tf = fD ? gu(fD) : "";
|
|
340
|
+
return typeof i == "function" && Cu.set(i, Tf), Tf;
|
|
341
341
|
}
|
|
342
342
|
function O(i, p, w) {
|
|
343
343
|
return Lu(i, !1);
|
|
@@ -385,7 +385,7 @@ function l0() {
|
|
|
385
385
|
} else
|
|
386
386
|
mu.setExtraStackFrame(null);
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function Y1(i, p, w, $, Q) {
|
|
389
389
|
{
|
|
390
390
|
var G = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
391
391
|
for (var K in i)
|
|
@@ -404,13 +404,13 @@ function l0() {
|
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
var
|
|
407
|
+
var _f = z.ReactCurrentOwner, TD = Object.prototype.hasOwnProperty, K1 = {
|
|
408
408
|
key: !0,
|
|
409
409
|
ref: !0,
|
|
410
410
|
__self: !0,
|
|
411
411
|
__source: !0
|
|
412
|
-
},
|
|
413
|
-
function
|
|
412
|
+
}, yf, vf;
|
|
413
|
+
function J1(i) {
|
|
414
414
|
if (TD.call(i, "ref")) {
|
|
415
415
|
var p = Object.getOwnPropertyDescriptor(i, "ref").get;
|
|
416
416
|
if (p && p.isReactWarning)
|
|
@@ -418,7 +418,7 @@ function l0() {
|
|
|
418
418
|
}
|
|
419
419
|
return i.ref !== void 0;
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function G1(i) {
|
|
422
422
|
if (TD.call(i, "key")) {
|
|
423
423
|
var p = Object.getOwnPropertyDescriptor(i, "key").get;
|
|
424
424
|
if (p && p.isReactWarning)
|
|
@@ -426,13 +426,13 @@ function l0() {
|
|
|
426
426
|
}
|
|
427
427
|
return i.key !== void 0;
|
|
428
428
|
}
|
|
429
|
-
function
|
|
430
|
-
typeof i.ref == "string" &&
|
|
429
|
+
function X1(i, p) {
|
|
430
|
+
typeof i.ref == "string" && _f.current;
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function Z1(i, p) {
|
|
433
433
|
{
|
|
434
434
|
var w = function() {
|
|
435
|
-
|
|
435
|
+
yf || (yf = !0, A("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", p));
|
|
436
436
|
};
|
|
437
437
|
w.isReactWarning = !0, Object.defineProperty(i, "key", {
|
|
438
438
|
get: w,
|
|
@@ -440,10 +440,10 @@ function l0() {
|
|
|
440
440
|
});
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function Q1(i, p) {
|
|
444
444
|
{
|
|
445
445
|
var w = function() {
|
|
446
|
-
|
|
446
|
+
vf || (vf = !0, A("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", p));
|
|
447
447
|
};
|
|
448
448
|
w.isReactWarning = !0, Object.defineProperty(i, "ref", {
|
|
449
449
|
get: w,
|
|
@@ -451,7 +451,7 @@ function l0() {
|
|
|
451
451
|
});
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
|
-
var
|
|
454
|
+
var u0 = function(i, p, w, $, Q, G, K) {
|
|
455
455
|
var H = {
|
|
456
456
|
// This tag allows us to uniquely identify this as a React Element
|
|
457
457
|
$$typeof: t,
|
|
@@ -480,12 +480,12 @@ function l0() {
|
|
|
480
480
|
value: Q
|
|
481
481
|
}), Object.freeze && (Object.freeze(H.props), Object.freeze(H)), H;
|
|
482
482
|
};
|
|
483
|
-
function
|
|
483
|
+
function D0(i, p, w, $, Q) {
|
|
484
484
|
{
|
|
485
485
|
var G, K = {}, H = null, bu = null;
|
|
486
|
-
w !== void 0 && (H = "" + w),
|
|
486
|
+
w !== void 0 && (H = "" + w), G1(p) && (H = "" + p.key), J1(p) && (bu = p.ref, X1(p, Q));
|
|
487
487
|
for (G in p)
|
|
488
|
-
TD.call(p, G) && !
|
|
488
|
+
TD.call(p, G) && !K1.hasOwnProperty(G) && (K[G] = p[G]);
|
|
489
489
|
if (i && i.defaultProps) {
|
|
490
490
|
var ru = i.defaultProps;
|
|
491
491
|
for (G in ru)
|
|
@@ -493,25 +493,25 @@ function l0() {
|
|
|
493
493
|
}
|
|
494
494
|
if (H || bu) {
|
|
495
495
|
var Fu = typeof i == "function" ? i.displayName || i.name || "Unknown" : i;
|
|
496
|
-
H &&
|
|
496
|
+
H && Z1(K, Fu), bu && Q1(K, Fu);
|
|
497
497
|
}
|
|
498
|
-
return
|
|
498
|
+
return u0(i, H, bu, Q, $, _f.current, K);
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
|
-
var ND = z.ReactCurrentOwner,
|
|
501
|
+
var ND = z.ReactCurrentOwner, wf = z.ReactDebugCurrentFrame;
|
|
502
502
|
function DD(i) {
|
|
503
503
|
if (i) {
|
|
504
504
|
var p = i._owner, w = su(i.type, i._source, p ? p.type : null);
|
|
505
|
-
|
|
505
|
+
wf.setExtraStackFrame(w);
|
|
506
506
|
} else
|
|
507
|
-
|
|
507
|
+
wf.setExtraStackFrame(null);
|
|
508
508
|
}
|
|
509
509
|
var OD;
|
|
510
510
|
OD = !1;
|
|
511
511
|
function RD(i) {
|
|
512
512
|
return typeof i == "object" && i !== null && i.$$typeof === t;
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function Af() {
|
|
515
515
|
{
|
|
516
516
|
if (ND.current) {
|
|
517
517
|
var i = E(ND.current.type);
|
|
@@ -523,13 +523,13 @@ Check the render method of \`` + i + "`.";
|
|
|
523
523
|
return "";
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function f0(i) {
|
|
527
527
|
return "";
|
|
528
528
|
}
|
|
529
|
-
var
|
|
530
|
-
function
|
|
529
|
+
var xf = {};
|
|
530
|
+
function e0(i) {
|
|
531
531
|
{
|
|
532
|
-
var p =
|
|
532
|
+
var p = Af();
|
|
533
533
|
if (!p) {
|
|
534
534
|
var w = typeof i == "string" ? i : i.displayName || i.name;
|
|
535
535
|
w && (p = `
|
|
@@ -539,27 +539,27 @@ Check the top-level render call using <` + w + ">.");
|
|
|
539
539
|
return p;
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function kf(i, p) {
|
|
543
543
|
{
|
|
544
544
|
if (!i._store || i._store.validated || i.key != null)
|
|
545
545
|
return;
|
|
546
546
|
i._store.validated = !0;
|
|
547
|
-
var w =
|
|
548
|
-
if (
|
|
547
|
+
var w = e0(p);
|
|
548
|
+
if (xf[w])
|
|
549
549
|
return;
|
|
550
|
-
|
|
550
|
+
xf[w] = !0;
|
|
551
551
|
var $ = "";
|
|
552
552
|
i && i._owner && i._owner !== ND.current && ($ = " It was passed a child from " + E(i._owner.type) + "."), DD(i), A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', w, $), DD(null);
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
|
-
function
|
|
555
|
+
function jf(i, p) {
|
|
556
556
|
{
|
|
557
557
|
if (typeof i != "object")
|
|
558
558
|
return;
|
|
559
559
|
if (Array.isArray(i))
|
|
560
560
|
for (var w = 0; w < i.length; w++) {
|
|
561
561
|
var $ = i[w];
|
|
562
|
-
RD($) &&
|
|
562
|
+
RD($) && kf($, p);
|
|
563
563
|
}
|
|
564
564
|
else if (RD(i))
|
|
565
565
|
i._store && (i._store.validated = !0);
|
|
@@ -567,11 +567,11 @@ Check the top-level render call using <` + w + ">.");
|
|
|
567
567
|
var Q = N(i);
|
|
568
568
|
if (typeof Q == "function" && Q !== i.entries)
|
|
569
569
|
for (var G = Q.call(i), K; !(K = G.next()).done; )
|
|
570
|
-
RD(K.value) &&
|
|
570
|
+
RD(K.value) && kf(K.value, p);
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
function
|
|
574
|
+
function t0(i) {
|
|
575
575
|
{
|
|
576
576
|
var p = i.type;
|
|
577
577
|
if (p == null || typeof p == "string")
|
|
@@ -587,7 +587,7 @@ Check the top-level render call using <` + w + ">.");
|
|
|
587
587
|
return;
|
|
588
588
|
if (w) {
|
|
589
589
|
var $ = E(p);
|
|
590
|
-
|
|
590
|
+
Y1(w, i.props, "prop", $, i);
|
|
591
591
|
} else if (p.PropTypes !== void 0 && !OD) {
|
|
592
592
|
OD = !0;
|
|
593
593
|
var Q = E(p);
|
|
@@ -596,7 +596,7 @@ Check the top-level render call using <` + w + ">.");
|
|
|
596
596
|
typeof p.getDefaultProps == "function" && !p.getDefaultProps.isReactClassApproved && A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
|
-
function
|
|
599
|
+
function n0(i) {
|
|
600
600
|
{
|
|
601
601
|
for (var p = Object.keys(i.props), w = 0; w < p.length; w++) {
|
|
602
602
|
var $ = p[w];
|
|
@@ -608,18 +608,18 @@ Check the top-level render call using <` + w + ">.");
|
|
|
608
608
|
i.ref !== null && (DD(i), A("Invalid attribute `ref` supplied to `React.Fragment`."), DD(null));
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
|
-
function
|
|
611
|
+
function Sf(i, p, w, $, Q, G) {
|
|
612
612
|
{
|
|
613
613
|
var K = J(i);
|
|
614
614
|
if (!K) {
|
|
615
615
|
var H = "";
|
|
616
616
|
(i === void 0 || typeof i == "object" && i !== null && Object.keys(i).length === 0) && (H += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
617
|
-
var bu =
|
|
618
|
-
bu ? H += bu : H +=
|
|
617
|
+
var bu = f0();
|
|
618
|
+
bu ? H += bu : H += Af();
|
|
619
619
|
var ru;
|
|
620
620
|
i === null ? ru = "null" : Array.isArray(i) ? ru = "array" : i !== void 0 && i.$$typeof === t ? (ru = "<" + (E(i.type) || "Unknown") + " />", H = " Did you accidentally export a JSX literal instead of a component?") : ru = typeof i, A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ru, H);
|
|
621
621
|
}
|
|
622
|
-
var Fu =
|
|
622
|
+
var Fu = D0(i, p, w, Q, G);
|
|
623
623
|
if (Fu == null)
|
|
624
624
|
return Fu;
|
|
625
625
|
if (K) {
|
|
@@ -628,31 +628,31 @@ Check the top-level render call using <` + w + ">.");
|
|
|
628
628
|
if ($)
|
|
629
629
|
if (Array.isArray($u)) {
|
|
630
630
|
for (var fD = 0; fD < $u.length; fD++)
|
|
631
|
-
|
|
631
|
+
jf($u[fD], i);
|
|
632
632
|
Object.freeze && Object.freeze($u);
|
|
633
633
|
} else
|
|
634
634
|
A("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
635
635
|
else
|
|
636
|
-
|
|
636
|
+
jf($u, i);
|
|
637
637
|
}
|
|
638
|
-
return i === u.Fragment ?
|
|
638
|
+
return i === u.Fragment ? n0(Fu) : t0(Fu), Fu;
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
|
-
function
|
|
642
|
-
return
|
|
641
|
+
function r0(i, p, w) {
|
|
642
|
+
return Sf(i, p, w, !0);
|
|
643
643
|
}
|
|
644
|
-
function
|
|
645
|
-
return
|
|
644
|
+
function a0(i, p, w) {
|
|
645
|
+
return Sf(i, p, w, !1);
|
|
646
646
|
}
|
|
647
|
-
var
|
|
648
|
-
u.jsx =
|
|
647
|
+
var s0 = a0, F0 = r0;
|
|
648
|
+
u.jsx = s0, u.jsxs = F0;
|
|
649
649
|
}();
|
|
650
650
|
}(ID)), ID;
|
|
651
651
|
}
|
|
652
|
-
var
|
|
653
|
-
|
|
654
|
-
var a =
|
|
655
|
-
const
|
|
652
|
+
var l0 = {};
|
|
653
|
+
l0.NODE_ENV === "production" ? WD.exports = C0() : WD.exports = c0();
|
|
654
|
+
var a = WD.exports;
|
|
655
|
+
const Gf = zu(void 0), Xf = ({
|
|
656
656
|
children: u,
|
|
657
657
|
channelName: D
|
|
658
658
|
}) => {
|
|
@@ -677,7 +677,7 @@ const Zf = zu(void 0), Qf = ({
|
|
|
677
677
|
f.current.postMessage(r);
|
|
678
678
|
};
|
|
679
679
|
return /* @__PURE__ */ a.jsx(
|
|
680
|
-
|
|
680
|
+
Gf.Provider,
|
|
681
681
|
{
|
|
682
682
|
value: {
|
|
683
683
|
subscribe: t,
|
|
@@ -686,50 +686,50 @@ const Zf = zu(void 0), Qf = ({
|
|
|
686
686
|
children: u
|
|
687
687
|
}
|
|
688
688
|
);
|
|
689
|
-
},
|
|
690
|
-
const u = Ku(
|
|
689
|
+
}, E0 = () => {
|
|
690
|
+
const u = Ku(Gf);
|
|
691
691
|
if (!u)
|
|
692
692
|
throw new Error(
|
|
693
693
|
"useBroadcastChannel must be used within a BroadcastChannelProvider"
|
|
694
694
|
);
|
|
695
695
|
return u;
|
|
696
|
-
},
|
|
697
|
-
const { subscribe: D } =
|
|
696
|
+
}, h0 = (...u) => {
|
|
697
|
+
const { subscribe: D } = E0();
|
|
698
698
|
X(() => {
|
|
699
699
|
D(...u);
|
|
700
700
|
}, [D, ...u]);
|
|
701
701
|
};
|
|
702
|
-
var
|
|
703
|
-
const
|
|
702
|
+
var HD = /* @__PURE__ */ ((u) => (u.message = "message", u.delivery = "delivery", u.read = "read", u.typing = "typing", u.follow = "follow", u.echo = "echo", u.unknown = "", u))(HD || {}), Du = /* @__PURE__ */ ((u) => (u.sent = "sent", u.received = "received", u))(Du || {}), Zf = /* @__PURE__ */ ((u) => (u.text = "text", u.location = "location", u))(Zf || {}), Au = /* @__PURE__ */ ((u) => (u.text = "text", u.quick_reply = "quick_reply", u.postback = "postback", u.location = "location", u.file = "file", u.notify = "notify", u))(Au || {}), YD = /* @__PURE__ */ ((u) => (u.text = "text", u.buttons = "buttons", u.quick_replies = "quick_replies", u.file = "file", u.list = "list", u.carousel = "carousel", u))(YD || {}), iD = /* @__PURE__ */ ((u) => (u[u.sent = 0] = "sent", u[u.sending = 1] = "sending", u[u.uploading = 2] = "uploading", u))(iD || {}), tD = /* @__PURE__ */ ((u) => (u[u.disconnected = 0] = "disconnected", u[u.wantToConnect = 1] = "wantToConnect", u[u.tryingToConnect = 2] = "tryingToConnect", u[u.connected = 3] = "connected", u))(tD || {}), aD = {};
|
|
703
|
+
const Qf = {
|
|
704
704
|
apiUrl: aD.REACT_APP_WIDGET_API_URL || "http://localhost:4000",
|
|
705
705
|
channel: aD.REACT_APP_WIDGET_CHANNEL || "console-channel",
|
|
706
706
|
language: "en",
|
|
707
707
|
maxUploadSize: aD.UPLOAD_MAX_SIZE_IN_BYTES ?? "" ? Number(aD.UPLOAD_MAX_SIZE_IN_BYTES) : 20 * 1024 * 1024,
|
|
708
708
|
// 20 MB in bytes
|
|
709
709
|
ownerId: aD.REACT_APP_WIDGET_OWNER_ID || "68342cec1e3cef0065f1b563"
|
|
710
|
-
},
|
|
710
|
+
}, u1 = zu(Qf), D1 = ({ children: u, ...D }) => {
|
|
711
711
|
const f = pu({
|
|
712
|
-
...
|
|
712
|
+
...Qf,
|
|
713
713
|
...D
|
|
714
714
|
});
|
|
715
|
-
return /* @__PURE__ */ a.jsx(
|
|
715
|
+
return /* @__PURE__ */ a.jsx(u1.Provider, { value: f.current, children: u });
|
|
716
716
|
}, Uu = () => {
|
|
717
|
-
const u = Ku(
|
|
717
|
+
const u = Ku(u1);
|
|
718
718
|
if (!u)
|
|
719
719
|
throw new Error("useConfig must be used within a ConfigProvider");
|
|
720
720
|
return u;
|
|
721
|
-
},
|
|
721
|
+
}, b0 = {
|
|
722
722
|
get_started: "Start Chat",
|
|
723
723
|
first_name: "First Name",
|
|
724
724
|
last_name: "Last Name",
|
|
725
725
|
phone: "Phone Number",
|
|
726
726
|
email: "Email Address"
|
|
727
|
-
},
|
|
727
|
+
}, p0 = {
|
|
728
728
|
greeting: "Welcome !",
|
|
729
729
|
placeholder: "Write something...",
|
|
730
730
|
connection_lost: "Connection Lost",
|
|
731
731
|
back: "Back"
|
|
732
|
-
},
|
|
732
|
+
}, B0 = {
|
|
733
733
|
get_started: "Start Chat",
|
|
734
734
|
file_message: {
|
|
735
735
|
browser_audio_unsupport: "Browser does not support the audio element.",
|
|
@@ -738,22 +738,22 @@ const D1 = {
|
|
|
738
738
|
unsupported_file_type: "This file type is not supported.",
|
|
739
739
|
unsupported_file_size: "This file size is not supported."
|
|
740
740
|
}
|
|
741
|
+
}, g0 = {
|
|
742
|
+
user_subscription: b0,
|
|
743
|
+
settings: p0,
|
|
744
|
+
messages: B0
|
|
741
745
|
}, m0 = {
|
|
742
|
-
user_subscription: p0,
|
|
743
|
-
settings: B0,
|
|
744
|
-
messages: g0
|
|
745
|
-
}, _0 = {
|
|
746
746
|
get_started: "Commencer",
|
|
747
747
|
first_name: "Prénom",
|
|
748
748
|
last_name: "Nom",
|
|
749
749
|
phone: "Numéro de Téléphone",
|
|
750
750
|
email: "Adresse Email"
|
|
751
|
-
},
|
|
751
|
+
}, _0 = {
|
|
752
752
|
greeting: "Bienvenue !",
|
|
753
753
|
placeholder: "Écrivez quelque chose...",
|
|
754
754
|
connection_lost: "Connexion perdue",
|
|
755
755
|
back: "Retour"
|
|
756
|
-
},
|
|
756
|
+
}, y0 = {
|
|
757
757
|
get_started: "Démarrer",
|
|
758
758
|
file_message: {
|
|
759
759
|
browser_audio_unsupport: "Le navigateur ne prend pas en charge l'élément audio.",
|
|
@@ -762,55 +762,55 @@ const D1 = {
|
|
|
762
762
|
unsupported_file_type: "Ce type de fichier n'est pas pris en charge.",
|
|
763
763
|
unsupported_file_size: "Cette taille de fichier n'est pas prise en charge."
|
|
764
764
|
}
|
|
765
|
-
},
|
|
766
|
-
user_subscription:
|
|
767
|
-
settings:
|
|
768
|
-
messages:
|
|
769
|
-
},
|
|
765
|
+
}, v0 = {
|
|
766
|
+
user_subscription: m0,
|
|
767
|
+
settings: _0,
|
|
768
|
+
messages: y0
|
|
769
|
+
}, Pf = { en: g0, fr: v0 }, f1 = zu(
|
|
770
770
|
void 0
|
|
771
|
-
),
|
|
771
|
+
), e1 = ({
|
|
772
772
|
children: u
|
|
773
773
|
}) => {
|
|
774
|
-
const f = Uu().language, e = (r) => r in
|
|
774
|
+
const f = Uu().language, e = (r) => r in Pf, [t, n] = U(
|
|
775
775
|
e(f) ? f : "en"
|
|
776
776
|
);
|
|
777
777
|
return /* @__PURE__ */ a.jsx(
|
|
778
|
-
|
|
778
|
+
f1.Provider,
|
|
779
779
|
{
|
|
780
|
-
value: { translations:
|
|
780
|
+
value: { translations: Pf, language: t, setLanguage: n },
|
|
781
781
|
children: u
|
|
782
782
|
}
|
|
783
783
|
);
|
|
784
|
-
},
|
|
785
|
-
const u = Ku(
|
|
784
|
+
}, w0 = () => {
|
|
785
|
+
const u = Ku(f1);
|
|
786
786
|
if (!u)
|
|
787
787
|
throw new Error(
|
|
788
788
|
"useTranslationContext must be used within a TranslationProvider"
|
|
789
789
|
);
|
|
790
790
|
return u;
|
|
791
|
-
},
|
|
791
|
+
}, A0 = (u, D) => D.split(".").reduce((f, e) => {
|
|
792
792
|
if (typeof f == "object" && f !== null)
|
|
793
793
|
return f[e];
|
|
794
794
|
}, u), Ou = () => {
|
|
795
|
-
const { translations: u, language: D } =
|
|
795
|
+
const { translations: u, language: D } = w0();
|
|
796
796
|
return { t: qu(
|
|
797
|
-
(e, t = {}) => (
|
|
797
|
+
(e, t = {}) => (A0(u[D], e) || e).replace(
|
|
798
798
|
/{(\w+)}/g,
|
|
799
799
|
(r, s) => t[s] || `{${s}}`
|
|
800
800
|
),
|
|
801
801
|
[D, u]
|
|
802
802
|
) };
|
|
803
803
|
};
|
|
804
|
-
function
|
|
804
|
+
function x0(u, D) {
|
|
805
805
|
if (typeof D > "u")
|
|
806
806
|
throw new Error("Value cannot be undefined");
|
|
807
807
|
return sessionStorage.setItem(u, JSON.stringify(D)), !0;
|
|
808
808
|
}
|
|
809
|
-
function
|
|
809
|
+
function k0(u) {
|
|
810
810
|
const D = sessionStorage.getItem(u);
|
|
811
811
|
return D === null ? null : JSON.parse(D);
|
|
812
812
|
}
|
|
813
|
-
const
|
|
813
|
+
const If = { setItem: x0, getItem: k0 }, Tu = /* @__PURE__ */ Object.create(null);
|
|
814
814
|
Tu.open = "0";
|
|
815
815
|
Tu.close = "1";
|
|
816
816
|
Tu.ping = "2";
|
|
@@ -822,59 +822,59 @@ const pD = /* @__PURE__ */ Object.create(null);
|
|
|
822
822
|
Object.keys(Tu).forEach((u) => {
|
|
823
823
|
pD[Tu[u]] = u;
|
|
824
824
|
});
|
|
825
|
-
const
|
|
825
|
+
const KD = { type: "error", data: "parser error" }, t1 = typeof Blob == "function" || typeof Blob < "u" && Object.prototype.toString.call(Blob) === "[object BlobConstructor]", n1 = typeof ArrayBuffer == "function", r1 = (u) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(u) : u && u.buffer instanceof ArrayBuffer, Ff = ({ type: u, data: D }, f, e) => t1 && D instanceof Blob ? f ? e(D) : Lf(D, e) : n1 && (D instanceof ArrayBuffer || r1(D)) ? f ? e(D) : Lf(new Blob([D]), e) : e(Tu[u] + (D || "")), Lf = (u, D) => {
|
|
826
826
|
const f = new FileReader();
|
|
827
827
|
return f.onload = function() {
|
|
828
828
|
const e = f.result.split(",")[1];
|
|
829
829
|
D("b" + (e || ""));
|
|
830
830
|
}, f.readAsDataURL(u);
|
|
831
831
|
};
|
|
832
|
-
function
|
|
832
|
+
function $f(u) {
|
|
833
833
|
return u instanceof Uint8Array ? u : u instanceof ArrayBuffer ? new Uint8Array(u) : new Uint8Array(u.buffer, u.byteOffset, u.byteLength);
|
|
834
834
|
}
|
|
835
835
|
let LD;
|
|
836
|
-
function
|
|
837
|
-
if (
|
|
838
|
-
return u.data.arrayBuffer().then(
|
|
839
|
-
if (
|
|
840
|
-
return D(
|
|
841
|
-
|
|
836
|
+
function j0(u, D) {
|
|
837
|
+
if (t1 && u.data instanceof Blob)
|
|
838
|
+
return u.data.arrayBuffer().then($f).then(D);
|
|
839
|
+
if (n1 && (u.data instanceof ArrayBuffer || r1(u.data)))
|
|
840
|
+
return D($f(u.data));
|
|
841
|
+
Ff(u, !1, (f) => {
|
|
842
842
|
LD || (LD = new TextEncoder()), D(LD.encode(f));
|
|
843
843
|
});
|
|
844
844
|
}
|
|
845
|
-
const
|
|
846
|
-
for (let u = 0; u <
|
|
847
|
-
FD[
|
|
848
|
-
const
|
|
845
|
+
const Mf = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", FD = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
|
|
846
|
+
for (let u = 0; u < Mf.length; u++)
|
|
847
|
+
FD[Mf.charCodeAt(u)] = u;
|
|
848
|
+
const S0 = (u) => {
|
|
849
849
|
let D = u.length * 0.75, f = u.length, e, t = 0, n, r, s, F;
|
|
850
850
|
u[u.length - 1] === "=" && (D--, u[u.length - 2] === "=" && D--);
|
|
851
851
|
const o = new ArrayBuffer(D), d = new Uint8Array(o);
|
|
852
852
|
for (e = 0; e < f; e += 4)
|
|
853
853
|
n = FD[u.charCodeAt(e)], r = FD[u.charCodeAt(e + 1)], s = FD[u.charCodeAt(e + 2)], F = FD[u.charCodeAt(e + 3)], d[t++] = n << 2 | r >> 4, d[t++] = (r & 15) << 4 | s >> 2, d[t++] = (s & 3) << 6 | F & 63;
|
|
854
854
|
return o;
|
|
855
|
-
},
|
|
855
|
+
}, T0 = typeof ArrayBuffer == "function", of = (u, D) => {
|
|
856
856
|
if (typeof u != "string")
|
|
857
857
|
return {
|
|
858
858
|
type: "message",
|
|
859
|
-
data:
|
|
859
|
+
data: a1(u, D)
|
|
860
860
|
};
|
|
861
861
|
const f = u.charAt(0);
|
|
862
862
|
return f === "b" ? {
|
|
863
863
|
type: "message",
|
|
864
|
-
data:
|
|
864
|
+
data: N0(u.substring(1), D)
|
|
865
865
|
} : pD[f] ? u.length > 1 ? {
|
|
866
866
|
type: pD[f],
|
|
867
867
|
data: u.substring(1)
|
|
868
868
|
} : {
|
|
869
869
|
type: pD[f]
|
|
870
|
-
} :
|
|
871
|
-
},
|
|
872
|
-
if (
|
|
873
|
-
const f =
|
|
874
|
-
return
|
|
870
|
+
} : KD;
|
|
871
|
+
}, N0 = (u, D) => {
|
|
872
|
+
if (T0) {
|
|
873
|
+
const f = S0(u);
|
|
874
|
+
return a1(f, D);
|
|
875
875
|
} else
|
|
876
876
|
return { base64: !0, data: u };
|
|
877
|
-
},
|
|
877
|
+
}, a1 = (u, D) => {
|
|
878
878
|
switch (D) {
|
|
879
879
|
case "blob":
|
|
880
880
|
return u instanceof Blob ? u : new Blob([u]);
|
|
@@ -882,27 +882,27 @@ const T0 = (u) => {
|
|
|
882
882
|
default:
|
|
883
883
|
return u instanceof ArrayBuffer ? u : u.buffer;
|
|
884
884
|
}
|
|
885
|
-
},
|
|
885
|
+
}, s1 = "", O0 = (u, D) => {
|
|
886
886
|
const f = u.length, e = new Array(f);
|
|
887
887
|
let t = 0;
|
|
888
888
|
u.forEach((n, r) => {
|
|
889
|
-
|
|
890
|
-
e[r] = s, ++t === f && D(e.join(
|
|
889
|
+
Ff(n, !1, (s) => {
|
|
890
|
+
e[r] = s, ++t === f && D(e.join(s1));
|
|
891
891
|
});
|
|
892
892
|
});
|
|
893
|
-
},
|
|
894
|
-
const f = u.split(
|
|
893
|
+
}, R0 = (u, D) => {
|
|
894
|
+
const f = u.split(s1), e = [];
|
|
895
895
|
for (let t = 0; t < f.length; t++) {
|
|
896
|
-
const n =
|
|
896
|
+
const n = of(f[t], D);
|
|
897
897
|
if (e.push(n), n.type === "error")
|
|
898
898
|
break;
|
|
899
899
|
}
|
|
900
900
|
return e;
|
|
901
901
|
};
|
|
902
|
-
function
|
|
902
|
+
function P0() {
|
|
903
903
|
return new TransformStream({
|
|
904
904
|
transform(u, D) {
|
|
905
|
-
|
|
905
|
+
j0(u, (f) => {
|
|
906
906
|
const e = f.length;
|
|
907
907
|
let t;
|
|
908
908
|
if (e < 126)
|
|
@@ -934,7 +934,7 @@ function hD(u, D) {
|
|
|
934
934
|
f[t] = u[0][e++], e === u[0].length && (u.shift(), e = 0);
|
|
935
935
|
return u.length && e < u[0].length && (u[0] = u[0].slice(e)), f;
|
|
936
936
|
}
|
|
937
|
-
function
|
|
937
|
+
function I0(u, D) {
|
|
938
938
|
$D || ($D = new TextDecoder());
|
|
939
939
|
const f = [];
|
|
940
940
|
let e = 0, t = -1, n = !1;
|
|
@@ -956,7 +956,7 @@ function L0(u, D) {
|
|
|
956
956
|
break;
|
|
957
957
|
const F = hD(f, 8), o = new DataView(F.buffer, F.byteOffset, F.length), d = o.getUint32(0);
|
|
958
958
|
if (d > Math.pow(2, 21) - 1) {
|
|
959
|
-
s.enqueue(
|
|
959
|
+
s.enqueue(KD);
|
|
960
960
|
break;
|
|
961
961
|
}
|
|
962
962
|
t = d * Math.pow(2, 32) + o.getUint32(4), e = 3;
|
|
@@ -964,21 +964,21 @@ function L0(u, D) {
|
|
|
964
964
|
if (ED(f) < t)
|
|
965
965
|
break;
|
|
966
966
|
const F = hD(f, t);
|
|
967
|
-
s.enqueue(
|
|
967
|
+
s.enqueue(of(n ? F : $D.decode(F), D)), e = 0;
|
|
968
968
|
}
|
|
969
969
|
if (t === 0 || t > u) {
|
|
970
|
-
s.enqueue(
|
|
970
|
+
s.enqueue(KD);
|
|
971
971
|
break;
|
|
972
972
|
}
|
|
973
973
|
}
|
|
974
974
|
}
|
|
975
975
|
});
|
|
976
976
|
}
|
|
977
|
-
const
|
|
977
|
+
const F1 = 4;
|
|
978
978
|
function iu(u) {
|
|
979
|
-
if (u) return
|
|
979
|
+
if (u) return L0(u);
|
|
980
980
|
}
|
|
981
|
-
function
|
|
981
|
+
function L0(u) {
|
|
982
982
|
for (var D in iu.prototype)
|
|
983
983
|
u[D] = iu.prototype[D];
|
|
984
984
|
return u;
|
|
@@ -1024,34 +1024,34 @@ iu.prototype.listeners = function(u) {
|
|
|
1024
1024
|
iu.prototype.hasListeners = function(u) {
|
|
1025
1025
|
return !!this.listeners(u).length;
|
|
1026
1026
|
};
|
|
1027
|
-
const AD = typeof Promise == "function" && typeof Promise.resolve == "function" ? (D) => Promise.resolve().then(D) : (D, f) => f(D, 0), vu = typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")(),
|
|
1028
|
-
function
|
|
1027
|
+
const AD = typeof Promise == "function" && typeof Promise.resolve == "function" ? (D) => Promise.resolve().then(D) : (D, f) => f(D, 0), vu = typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")(), $0 = "arraybuffer";
|
|
1028
|
+
function i1(u, ...D) {
|
|
1029
1029
|
return D.reduce((f, e) => (u.hasOwnProperty(e) && (f[e] = u[e]), f), {});
|
|
1030
1030
|
}
|
|
1031
|
-
const
|
|
1031
|
+
const M0 = vu.setTimeout, q0 = vu.clearTimeout;
|
|
1032
1032
|
function xD(u, D) {
|
|
1033
|
-
D.useNativeTimers ? (u.setTimeoutFn =
|
|
1033
|
+
D.useNativeTimers ? (u.setTimeoutFn = M0.bind(vu), u.clearTimeoutFn = q0.bind(vu)) : (u.setTimeoutFn = vu.setTimeout.bind(vu), u.clearTimeoutFn = vu.clearTimeout.bind(vu));
|
|
1034
1034
|
}
|
|
1035
|
-
const
|
|
1036
|
-
function
|
|
1037
|
-
return typeof u == "string" ?
|
|
1035
|
+
const z0 = 1.33;
|
|
1036
|
+
function U0(u) {
|
|
1037
|
+
return typeof u == "string" ? V0(u) : Math.ceil((u.byteLength || u.size) * z0);
|
|
1038
1038
|
}
|
|
1039
|
-
function
|
|
1039
|
+
function V0(u) {
|
|
1040
1040
|
let D = 0, f = 0;
|
|
1041
1041
|
for (let e = 0, t = u.length; e < t; e++)
|
|
1042
1042
|
D = u.charCodeAt(e), D < 128 ? f += 1 : D < 2048 ? f += 2 : D < 55296 || D >= 57344 ? f += 3 : (e++, f += 4);
|
|
1043
1043
|
return f;
|
|
1044
1044
|
}
|
|
1045
|
-
function
|
|
1045
|
+
function o1() {
|
|
1046
1046
|
return Date.now().toString(36).substring(3) + Math.random().toString(36).substring(2, 5);
|
|
1047
1047
|
}
|
|
1048
|
-
function
|
|
1048
|
+
function W0(u) {
|
|
1049
1049
|
let D = "";
|
|
1050
1050
|
for (let f in u)
|
|
1051
1051
|
u.hasOwnProperty(f) && (D.length && (D += "&"), D += encodeURIComponent(f) + "=" + encodeURIComponent(u[f]));
|
|
1052
1052
|
return D;
|
|
1053
1053
|
}
|
|
1054
|
-
function
|
|
1054
|
+
function H0(u) {
|
|
1055
1055
|
let D = {}, f = u.split("&");
|
|
1056
1056
|
for (let e = 0, t = f.length; e < t; e++) {
|
|
1057
1057
|
let n = f[e].split("=");
|
|
@@ -1059,12 +1059,12 @@ function Y0(u) {
|
|
|
1059
1059
|
}
|
|
1060
1060
|
return D;
|
|
1061
1061
|
}
|
|
1062
|
-
class
|
|
1062
|
+
class Y0 extends Error {
|
|
1063
1063
|
constructor(D, f, e) {
|
|
1064
1064
|
super(D), this.description = f, this.context = e, this.type = "TransportError";
|
|
1065
1065
|
}
|
|
1066
1066
|
}
|
|
1067
|
-
class
|
|
1067
|
+
class df extends iu {
|
|
1068
1068
|
/**
|
|
1069
1069
|
* Transport abstract constructor.
|
|
1070
1070
|
*
|
|
@@ -1084,7 +1084,7 @@ class Cf extends iu {
|
|
|
1084
1084
|
* @protected
|
|
1085
1085
|
*/
|
|
1086
1086
|
onError(D, f, e) {
|
|
1087
|
-
return super.emitReserved("error", new
|
|
1087
|
+
return super.emitReserved("error", new Y0(D, f, e)), this;
|
|
1088
1088
|
}
|
|
1089
1089
|
/**
|
|
1090
1090
|
* Opens the transport.
|
|
@@ -1121,7 +1121,7 @@ class Cf extends iu {
|
|
|
1121
1121
|
* @protected
|
|
1122
1122
|
*/
|
|
1123
1123
|
onData(D) {
|
|
1124
|
-
const f =
|
|
1124
|
+
const f = of(D, this.socket.binaryType);
|
|
1125
1125
|
this.onPacket(f);
|
|
1126
1126
|
}
|
|
1127
1127
|
/**
|
|
@@ -1158,11 +1158,11 @@ class Cf extends iu {
|
|
|
1158
1158
|
return this.opts.port && (this.opts.secure && +(this.opts.port !== 443) || !this.opts.secure && Number(this.opts.port) !== 80) ? ":" + this.opts.port : "";
|
|
1159
1159
|
}
|
|
1160
1160
|
_query(D) {
|
|
1161
|
-
const f =
|
|
1161
|
+
const f = W0(D);
|
|
1162
1162
|
return f.length ? "?" + f : "";
|
|
1163
1163
|
}
|
|
1164
1164
|
}
|
|
1165
|
-
class
|
|
1165
|
+
class K0 extends df {
|
|
1166
1166
|
constructor() {
|
|
1167
1167
|
super(...arguments), this._polling = !1;
|
|
1168
1168
|
}
|
|
@@ -1218,7 +1218,7 @@ class J0 extends Cf {
|
|
|
1218
1218
|
return this.onClose({ description: "transport closed by the server" }), !1;
|
|
1219
1219
|
this.onPacket(e);
|
|
1220
1220
|
};
|
|
1221
|
-
|
|
1221
|
+
R0(D, this.socket.binaryType).forEach(f), this.readyState !== "closed" && (this._polling = !1, this.emitReserved("pollComplete"), this.readyState === "open" && this._poll());
|
|
1222
1222
|
}
|
|
1223
1223
|
/**
|
|
1224
1224
|
* For polling, send a close packet.
|
|
@@ -1238,7 +1238,7 @@ class J0 extends Cf {
|
|
|
1238
1238
|
* @protected
|
|
1239
1239
|
*/
|
|
1240
1240
|
write(D) {
|
|
1241
|
-
this.writable = !1,
|
|
1241
|
+
this.writable = !1, O0(D, (f) => {
|
|
1242
1242
|
this.doWrite(f, () => {
|
|
1243
1243
|
this.writable = !0, this.emitReserved("drain");
|
|
1244
1244
|
});
|
|
@@ -1251,18 +1251,18 @@ class J0 extends Cf {
|
|
|
1251
1251
|
*/
|
|
1252
1252
|
uri() {
|
|
1253
1253
|
const D = this.opts.secure ? "https" : "http", f = this.query || {};
|
|
1254
|
-
return this.opts.timestampRequests !== !1 && (f[this.opts.timestampParam] =
|
|
1254
|
+
return this.opts.timestampRequests !== !1 && (f[this.opts.timestampParam] = o1()), !this.supportsBinary && !f.sid && (f.b64 = 1), this.createUri(D, f);
|
|
1255
1255
|
}
|
|
1256
1256
|
}
|
|
1257
|
-
let
|
|
1257
|
+
let d1 = !1;
|
|
1258
1258
|
try {
|
|
1259
|
-
|
|
1259
|
+
d1 = typeof XMLHttpRequest < "u" && "withCredentials" in new XMLHttpRequest();
|
|
1260
1260
|
} catch {
|
|
1261
1261
|
}
|
|
1262
|
-
const
|
|
1263
|
-
function
|
|
1262
|
+
const J0 = d1;
|
|
1263
|
+
function G0() {
|
|
1264
1264
|
}
|
|
1265
|
-
class
|
|
1265
|
+
class X0 extends K0 {
|
|
1266
1266
|
/**
|
|
1267
1267
|
* XHR Polling constructor.
|
|
1268
1268
|
*
|
|
@@ -1321,7 +1321,7 @@ class ju extends iu {
|
|
|
1321
1321
|
*/
|
|
1322
1322
|
_create() {
|
|
1323
1323
|
var D;
|
|
1324
|
-
const f =
|
|
1324
|
+
const f = i1(this._opts, "agent", "pfx", "key", "passphrase", "cert", "ca", "ciphers", "rejectUnauthorized", "autoUnref");
|
|
1325
1325
|
f.xdomain = !!this._opts.xd;
|
|
1326
1326
|
const e = this._xhr = this.createRequest(f);
|
|
1327
1327
|
try {
|
|
@@ -1375,7 +1375,7 @@ class ju extends iu {
|
|
|
1375
1375
|
*/
|
|
1376
1376
|
_cleanup(D) {
|
|
1377
1377
|
if (!(typeof this._xhr > "u" || this._xhr === null)) {
|
|
1378
|
-
if (this._xhr.onreadystatechange =
|
|
1378
|
+
if (this._xhr.onreadystatechange = G0, D)
|
|
1379
1379
|
try {
|
|
1380
1380
|
this._xhr.abort();
|
|
1381
1381
|
} catch {
|
|
@@ -1405,36 +1405,36 @@ ju.requestsCount = 0;
|
|
|
1405
1405
|
ju.requests = {};
|
|
1406
1406
|
if (typeof document < "u") {
|
|
1407
1407
|
if (typeof attachEvent == "function")
|
|
1408
|
-
attachEvent("onunload",
|
|
1408
|
+
attachEvent("onunload", qf);
|
|
1409
1409
|
else if (typeof addEventListener == "function") {
|
|
1410
1410
|
const u = "onpagehide" in vu ? "pagehide" : "unload";
|
|
1411
|
-
addEventListener(u,
|
|
1411
|
+
addEventListener(u, qf, !1);
|
|
1412
1412
|
}
|
|
1413
1413
|
}
|
|
1414
|
-
function
|
|
1414
|
+
function qf() {
|
|
1415
1415
|
for (let u in ju.requests)
|
|
1416
1416
|
ju.requests.hasOwnProperty(u) && ju.requests[u].abort();
|
|
1417
1417
|
}
|
|
1418
|
-
const
|
|
1419
|
-
const u =
|
|
1418
|
+
const Z0 = function() {
|
|
1419
|
+
const u = C1({
|
|
1420
1420
|
xdomain: !1
|
|
1421
1421
|
});
|
|
1422
1422
|
return u && u.responseType !== null;
|
|
1423
1423
|
}();
|
|
1424
|
-
class
|
|
1424
|
+
class Q0 extends X0 {
|
|
1425
1425
|
constructor(D) {
|
|
1426
1426
|
super(D);
|
|
1427
1427
|
const f = D && D.forceBase64;
|
|
1428
|
-
this.supportsBinary =
|
|
1428
|
+
this.supportsBinary = Z0 && !f;
|
|
1429
1429
|
}
|
|
1430
1430
|
request(D = {}) {
|
|
1431
|
-
return Object.assign(D, { xd: this.xd }, this.opts), new ju(
|
|
1431
|
+
return Object.assign(D, { xd: this.xd }, this.opts), new ju(C1, this.uri(), D);
|
|
1432
1432
|
}
|
|
1433
1433
|
}
|
|
1434
|
-
function
|
|
1434
|
+
function C1(u) {
|
|
1435
1435
|
const D = u.xdomain;
|
|
1436
1436
|
try {
|
|
1437
|
-
if (typeof XMLHttpRequest < "u" && (!D ||
|
|
1437
|
+
if (typeof XMLHttpRequest < "u" && (!D || J0))
|
|
1438
1438
|
return new XMLHttpRequest();
|
|
1439
1439
|
} catch {
|
|
1440
1440
|
}
|
|
@@ -1444,13 +1444,13 @@ function l1(u) {
|
|
|
1444
1444
|
} catch {
|
|
1445
1445
|
}
|
|
1446
1446
|
}
|
|
1447
|
-
const
|
|
1448
|
-
class
|
|
1447
|
+
const c1 = typeof navigator < "u" && typeof navigator.product == "string" && navigator.product.toLowerCase() === "reactnative";
|
|
1448
|
+
class ue extends df {
|
|
1449
1449
|
get name() {
|
|
1450
1450
|
return "websocket";
|
|
1451
1451
|
}
|
|
1452
1452
|
doOpen() {
|
|
1453
|
-
const D = this.uri(), f = this.opts.protocols, e =
|
|
1453
|
+
const D = this.uri(), f = this.opts.protocols, e = c1 ? {} : i1(this.opts, "agent", "perMessageDeflate", "pfx", "key", "passphrase", "cert", "ca", "ciphers", "rejectUnauthorized", "localAddress", "protocolVersion", "origin", "maxPayload", "family", "checkServerIdentity");
|
|
1454
1454
|
this.opts.extraHeaders && (e.headers = this.opts.extraHeaders);
|
|
1455
1455
|
try {
|
|
1456
1456
|
this.ws = this.createSocket(D, f, e);
|
|
@@ -1476,7 +1476,7 @@ class De extends Cf {
|
|
|
1476
1476
|
this.writable = !1;
|
|
1477
1477
|
for (let f = 0; f < D.length; f++) {
|
|
1478
1478
|
const e = D[f], t = f === D.length - 1;
|
|
1479
|
-
|
|
1479
|
+
Ff(e, this.supportsBinary, (n) => {
|
|
1480
1480
|
try {
|
|
1481
1481
|
this.doWrite(e, n);
|
|
1482
1482
|
} catch {
|
|
@@ -1498,19 +1498,19 @@ class De extends Cf {
|
|
|
1498
1498
|
*/
|
|
1499
1499
|
uri() {
|
|
1500
1500
|
const D = this.opts.secure ? "wss" : "ws", f = this.query || {};
|
|
1501
|
-
return this.opts.timestampRequests && (f[this.opts.timestampParam] =
|
|
1501
|
+
return this.opts.timestampRequests && (f[this.opts.timestampParam] = o1()), this.supportsBinary || (f.b64 = 1), this.createUri(D, f);
|
|
1502
1502
|
}
|
|
1503
1503
|
}
|
|
1504
1504
|
const MD = vu.WebSocket || vu.MozWebSocket;
|
|
1505
|
-
class
|
|
1505
|
+
class De extends ue {
|
|
1506
1506
|
createSocket(D, f, e) {
|
|
1507
|
-
return
|
|
1507
|
+
return c1 ? new MD(D, f, e) : f ? new MD(D, f) : new MD(D);
|
|
1508
1508
|
}
|
|
1509
1509
|
doWrite(D, f) {
|
|
1510
1510
|
this.ws.send(f);
|
|
1511
1511
|
}
|
|
1512
1512
|
}
|
|
1513
|
-
class
|
|
1513
|
+
class fe extends df {
|
|
1514
1514
|
get name() {
|
|
1515
1515
|
return "webtransport";
|
|
1516
1516
|
}
|
|
@@ -1526,7 +1526,7 @@ class ee extends Cf {
|
|
|
1526
1526
|
this.onError("webtransport error", D);
|
|
1527
1527
|
}), this._transport.ready.then(() => {
|
|
1528
1528
|
this._transport.createBidirectionalStream().then((D) => {
|
|
1529
|
-
const f =
|
|
1529
|
+
const f = I0(Number.MAX_SAFE_INTEGER, this.socket.binaryType), e = D.readable.pipeThrough(f).getReader(), t = P0();
|
|
1530
1530
|
t.readable.pipeTo(D.writable), this._writer = t.writable.getWriter();
|
|
1531
1531
|
const n = () => {
|
|
1532
1532
|
e.read().then(({ done: s, value: F }) => {
|
|
@@ -1556,11 +1556,11 @@ class ee extends Cf {
|
|
|
1556
1556
|
(D = this._transport) === null || D === void 0 || D.close();
|
|
1557
1557
|
}
|
|
1558
1558
|
}
|
|
1559
|
-
const
|
|
1560
|
-
websocket:
|
|
1561
|
-
webtransport:
|
|
1562
|
-
polling:
|
|
1563
|
-
},
|
|
1559
|
+
const ee = {
|
|
1560
|
+
websocket: De,
|
|
1561
|
+
webtransport: fe,
|
|
1562
|
+
polling: Q0
|
|
1563
|
+
}, te = /^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/, ne = [
|
|
1564
1564
|
"source",
|
|
1565
1565
|
"protocol",
|
|
1566
1566
|
"authority",
|
|
@@ -1576,28 +1576,28 @@ const te = {
|
|
|
1576
1576
|
"query",
|
|
1577
1577
|
"anchor"
|
|
1578
1578
|
];
|
|
1579
|
-
function
|
|
1579
|
+
function JD(u) {
|
|
1580
1580
|
if (u.length > 8e3)
|
|
1581
1581
|
throw "URI too long";
|
|
1582
1582
|
const D = u, f = u.indexOf("["), e = u.indexOf("]");
|
|
1583
1583
|
f != -1 && e != -1 && (u = u.substring(0, f) + u.substring(f, e).replace(/:/g, ";") + u.substring(e, u.length));
|
|
1584
|
-
let t =
|
|
1584
|
+
let t = te.exec(u || ""), n = {}, r = 14;
|
|
1585
1585
|
for (; r--; )
|
|
1586
|
-
n[
|
|
1587
|
-
return f != -1 && e != -1 && (n.source = D, n.host = n.host.substring(1, n.host.length - 1).replace(/;/g, ":"), n.authority = n.authority.replace("[", "").replace("]", "").replace(/;/g, ":"), n.ipv6uri = !0), n.pathNames =
|
|
1586
|
+
n[ne[r]] = t[r] || "";
|
|
1587
|
+
return f != -1 && e != -1 && (n.source = D, n.host = n.host.substring(1, n.host.length - 1).replace(/;/g, ":"), n.authority = n.authority.replace("[", "").replace("]", "").replace(/;/g, ":"), n.ipv6uri = !0), n.pathNames = re(n, n.path), n.queryKey = ae(n, n.query), n;
|
|
1588
1588
|
}
|
|
1589
|
-
function
|
|
1589
|
+
function re(u, D) {
|
|
1590
1590
|
const f = /\/{2,9}/g, e = D.replace(f, "/").split("/");
|
|
1591
1591
|
return (D.slice(0, 1) == "/" || D.length === 0) && e.splice(0, 1), D.slice(-1) == "/" && e.splice(e.length - 1, 1), e;
|
|
1592
1592
|
}
|
|
1593
|
-
function
|
|
1593
|
+
function ae(u, D) {
|
|
1594
1594
|
const f = {};
|
|
1595
1595
|
return D.replace(/(?:^|&)([^&=]*)=?([^&]*)/g, function(e, t, n) {
|
|
1596
1596
|
t && (f[t] = n);
|
|
1597
1597
|
}), f;
|
|
1598
1598
|
}
|
|
1599
|
-
const
|
|
1600
|
-
|
|
1599
|
+
const GD = typeof addEventListener == "function" && typeof removeEventListener == "function", BD = [];
|
|
1600
|
+
GD && addEventListener("offline", () => {
|
|
1601
1601
|
BD.forEach((u) => u());
|
|
1602
1602
|
}, !1);
|
|
1603
1603
|
class Hu extends iu {
|
|
@@ -1608,10 +1608,10 @@ class Hu extends iu {
|
|
|
1608
1608
|
* @param {Object} opts - options
|
|
1609
1609
|
*/
|
|
1610
1610
|
constructor(D, f) {
|
|
1611
|
-
if (super(), this.binaryType =
|
|
1612
|
-
const e =
|
|
1611
|
+
if (super(), this.binaryType = $0, this.writeBuffer = [], this._prevBufferLen = 0, this._pingInterval = -1, this._pingTimeout = -1, this._maxPayload = -1, this._pingTimeoutTime = 1 / 0, D && typeof D == "object" && (f = D, D = null), D) {
|
|
1612
|
+
const e = JD(D);
|
|
1613
1613
|
f.hostname = e.host, f.secure = e.protocol === "https" || e.protocol === "wss", f.port = e.port, e.query && (f.query = e.query);
|
|
1614
|
-
} else f.host && (f.hostname =
|
|
1614
|
+
} else f.host && (f.hostname = JD(f.host).host);
|
|
1615
1615
|
xD(this, f), this.secure = f.secure != null ? f.secure : typeof location < "u" && location.protocol === "https:", f.hostname && !f.port && (f.port = this.secure ? "443" : "80"), this.hostname = f.hostname || (typeof location < "u" ? location.hostname : "localhost"), this.port = f.port || (typeof location < "u" && location.port ? location.port : this.secure ? "443" : "80"), this.transports = [], this._transportsByName = {}, f.transports.forEach((e) => {
|
|
1616
1616
|
const t = e.prototype.name;
|
|
1617
1617
|
this.transports.push(t), this._transportsByName[t] = e;
|
|
@@ -1629,7 +1629,7 @@ class Hu extends iu {
|
|
|
1629
1629
|
},
|
|
1630
1630
|
transportOptions: {},
|
|
1631
1631
|
closeOnBeforeunload: !1
|
|
1632
|
-
}, f), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query =
|
|
1632
|
+
}, f), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query = H0(this.opts.query)), GD && (this.opts.closeOnBeforeunload && (this._beforeunloadEventListener = () => {
|
|
1633
1633
|
this.transport && (this.transport.removeAllListeners(), this.transport.close());
|
|
1634
1634
|
}, addEventListener("beforeunload", this._beforeunloadEventListener, !1)), this.hostname !== "localhost" && (this._offlineEventListener = () => {
|
|
1635
1635
|
this._onClose("transport close", {
|
|
@@ -1646,7 +1646,7 @@ class Hu extends iu {
|
|
|
1646
1646
|
*/
|
|
1647
1647
|
createTransport(D) {
|
|
1648
1648
|
const f = Object.assign({}, this.opts.query);
|
|
1649
|
-
f.EIO =
|
|
1649
|
+
f.EIO = F1, f.transport = D, this.id && (f.sid = this.id);
|
|
1650
1650
|
const e = Object.assign({}, this.opts, {
|
|
1651
1651
|
query: f,
|
|
1652
1652
|
socket: this,
|
|
@@ -1764,7 +1764,7 @@ class Hu extends iu {
|
|
|
1764
1764
|
let f = 1;
|
|
1765
1765
|
for (let e = 0; e < this.writeBuffer.length; e++) {
|
|
1766
1766
|
const t = this.writeBuffer[e].data;
|
|
1767
|
-
if (t && (f +=
|
|
1767
|
+
if (t && (f += U0(t)), e > 0 && f > this._maxPayload)
|
|
1768
1768
|
return this.writeBuffer.slice(0, e);
|
|
1769
1769
|
f += 2;
|
|
1770
1770
|
}
|
|
@@ -1862,7 +1862,7 @@ class Hu extends iu {
|
|
|
1862
1862
|
*/
|
|
1863
1863
|
_onClose(D, f) {
|
|
1864
1864
|
if (this.readyState === "opening" || this.readyState === "open" || this.readyState === "closing") {
|
|
1865
|
-
if (this.clearTimeoutFn(this._pingTimeoutTimer), this.transport.removeAllListeners("close"), this.transport.close(), this.transport.removeAllListeners(),
|
|
1865
|
+
if (this.clearTimeoutFn(this._pingTimeoutTimer), this.transport.removeAllListeners("close"), this.transport.close(), this.transport.removeAllListeners(), GD && (this._beforeunloadEventListener && removeEventListener("beforeunload", this._beforeunloadEventListener, !1), this._offlineEventListener)) {
|
|
1866
1866
|
const e = BD.indexOf(this._offlineEventListener);
|
|
1867
1867
|
e !== -1 && BD.splice(e, 1);
|
|
1868
1868
|
}
|
|
@@ -1870,8 +1870,8 @@ class Hu extends iu {
|
|
|
1870
1870
|
}
|
|
1871
1871
|
}
|
|
1872
1872
|
}
|
|
1873
|
-
Hu.protocol =
|
|
1874
|
-
class
|
|
1873
|
+
Hu.protocol = F1;
|
|
1874
|
+
class se extends Hu {
|
|
1875
1875
|
constructor() {
|
|
1876
1876
|
super(...arguments), this._upgrades = [];
|
|
1877
1877
|
}
|
|
@@ -1943,21 +1943,21 @@ class Fe extends Hu {
|
|
|
1943
1943
|
return f;
|
|
1944
1944
|
}
|
|
1945
1945
|
}
|
|
1946
|
-
let
|
|
1946
|
+
let Fe = class extends se {
|
|
1947
1947
|
constructor(D, f = {}) {
|
|
1948
1948
|
const e = typeof D == "object" ? D : f;
|
|
1949
|
-
(!e.transports || e.transports && typeof e.transports[0] == "string") && (e.transports = (e.transports || ["polling", "websocket", "webtransport"]).map((t) =>
|
|
1949
|
+
(!e.transports || e.transports && typeof e.transports[0] == "string") && (e.transports = (e.transports || ["polling", "websocket", "webtransport"]).map((t) => ee[t]).filter((t) => !!t)), super(D, e);
|
|
1950
1950
|
}
|
|
1951
1951
|
};
|
|
1952
|
-
function
|
|
1952
|
+
function ie(u, D = "", f) {
|
|
1953
1953
|
let e = u;
|
|
1954
|
-
f = f || typeof location < "u" && location, u == null && (u = f.protocol + "//" + f.host), typeof u == "string" && (u.charAt(0) === "/" && (u.charAt(1) === "/" ? u = f.protocol + u : u = f.host + u), /^(https?|wss?):\/\//.test(u) || (typeof f < "u" ? u = f.protocol + "//" + u : u = "https://" + u), e =
|
|
1954
|
+
f = f || typeof location < "u" && location, u == null && (u = f.protocol + "//" + f.host), typeof u == "string" && (u.charAt(0) === "/" && (u.charAt(1) === "/" ? u = f.protocol + u : u = f.host + u), /^(https?|wss?):\/\//.test(u) || (typeof f < "u" ? u = f.protocol + "//" + u : u = "https://" + u), e = JD(u)), e.port || (/^(http|ws)$/.test(e.protocol) ? e.port = "80" : /^(http|ws)s$/.test(e.protocol) && (e.port = "443")), e.path = e.path || "/";
|
|
1955
1955
|
const n = e.host.indexOf(":") !== -1 ? "[" + e.host + "]" : e.host;
|
|
1956
1956
|
return e.id = e.protocol + "://" + n + ":" + e.port + D, e.href = e.protocol + "://" + n + (f && f.port === e.port ? "" : ":" + e.port), e;
|
|
1957
1957
|
}
|
|
1958
|
-
const
|
|
1959
|
-
function
|
|
1960
|
-
return
|
|
1958
|
+
const oe = typeof ArrayBuffer == "function", de = (u) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(u) : u.buffer instanceof ArrayBuffer, l1 = Object.prototype.toString, Ce = typeof Blob == "function" || typeof Blob < "u" && l1.call(Blob) === "[object BlobConstructor]", ce = typeof File == "function" || typeof File < "u" && l1.call(File) === "[object FileConstructor]";
|
|
1959
|
+
function Cf(u) {
|
|
1960
|
+
return oe && (u instanceof ArrayBuffer || de(u)) || Ce && u instanceof Blob || ce && u instanceof File;
|
|
1961
1961
|
}
|
|
1962
1962
|
function gD(u, D) {
|
|
1963
1963
|
if (!u || typeof u != "object")
|
|
@@ -1968,7 +1968,7 @@ function gD(u, D) {
|
|
|
1968
1968
|
return !0;
|
|
1969
1969
|
return !1;
|
|
1970
1970
|
}
|
|
1971
|
-
if (
|
|
1971
|
+
if (Cf(u))
|
|
1972
1972
|
return !0;
|
|
1973
1973
|
if (u.toJSON && typeof u.toJSON == "function" && arguments.length === 1)
|
|
1974
1974
|
return gD(u.toJSON(), !0);
|
|
@@ -1977,33 +1977,33 @@ function gD(u, D) {
|
|
|
1977
1977
|
return !0;
|
|
1978
1978
|
return !1;
|
|
1979
1979
|
}
|
|
1980
|
-
function
|
|
1980
|
+
function le(u) {
|
|
1981
1981
|
const D = [], f = u.data, e = u;
|
|
1982
|
-
return e.data =
|
|
1982
|
+
return e.data = XD(f, D), e.attachments = D.length, { packet: e, buffers: D };
|
|
1983
1983
|
}
|
|
1984
|
-
function
|
|
1984
|
+
function XD(u, D) {
|
|
1985
1985
|
if (!u)
|
|
1986
1986
|
return u;
|
|
1987
|
-
if (
|
|
1987
|
+
if (Cf(u)) {
|
|
1988
1988
|
const f = { _placeholder: !0, num: D.length };
|
|
1989
1989
|
return D.push(u), f;
|
|
1990
1990
|
} else if (Array.isArray(u)) {
|
|
1991
1991
|
const f = new Array(u.length);
|
|
1992
1992
|
for (let e = 0; e < u.length; e++)
|
|
1993
|
-
f[e] =
|
|
1993
|
+
f[e] = XD(u[e], D);
|
|
1994
1994
|
return f;
|
|
1995
1995
|
} else if (typeof u == "object" && !(u instanceof Date)) {
|
|
1996
1996
|
const f = {};
|
|
1997
1997
|
for (const e in u)
|
|
1998
|
-
Object.prototype.hasOwnProperty.call(u, e) && (f[e] =
|
|
1998
|
+
Object.prototype.hasOwnProperty.call(u, e) && (f[e] = XD(u[e], D));
|
|
1999
1999
|
return f;
|
|
2000
2000
|
}
|
|
2001
2001
|
return u;
|
|
2002
2002
|
}
|
|
2003
|
-
function
|
|
2004
|
-
return u.data =
|
|
2003
|
+
function Ee(u, D) {
|
|
2004
|
+
return u.data = ZD(u.data, D), delete u.attachments, u;
|
|
2005
2005
|
}
|
|
2006
|
-
function
|
|
2006
|
+
function ZD(u, D) {
|
|
2007
2007
|
if (!u)
|
|
2008
2008
|
return u;
|
|
2009
2009
|
if (u && u._placeholder === !0) {
|
|
@@ -2012,13 +2012,13 @@ function QD(u, D) {
|
|
|
2012
2012
|
throw new Error("illegal attachments");
|
|
2013
2013
|
} else if (Array.isArray(u))
|
|
2014
2014
|
for (let f = 0; f < u.length; f++)
|
|
2015
|
-
u[f] =
|
|
2015
|
+
u[f] = ZD(u[f], D);
|
|
2016
2016
|
else if (typeof u == "object")
|
|
2017
2017
|
for (const f in u)
|
|
2018
|
-
Object.prototype.hasOwnProperty.call(u, f) && (u[f] =
|
|
2018
|
+
Object.prototype.hasOwnProperty.call(u, f) && (u[f] = ZD(u[f], D));
|
|
2019
2019
|
return u;
|
|
2020
2020
|
}
|
|
2021
|
-
const
|
|
2021
|
+
const he = [
|
|
2022
2022
|
"connect",
|
|
2023
2023
|
"connect_error",
|
|
2024
2024
|
"disconnect",
|
|
@@ -2026,12 +2026,12 @@ const be = [
|
|
|
2026
2026
|
"newListener",
|
|
2027
2027
|
"removeListener"
|
|
2028
2028
|
// used by the Node.js EventEmitter
|
|
2029
|
-
],
|
|
2029
|
+
], be = 5;
|
|
2030
2030
|
var Y;
|
|
2031
2031
|
(function(u) {
|
|
2032
2032
|
u[u.CONNECT = 0] = "CONNECT", u[u.DISCONNECT = 1] = "DISCONNECT", u[u.EVENT = 2] = "EVENT", u[u.ACK = 3] = "ACK", u[u.CONNECT_ERROR = 4] = "CONNECT_ERROR", u[u.BINARY_EVENT = 5] = "BINARY_EVENT", u[u.BINARY_ACK = 6] = "BINARY_ACK";
|
|
2033
2033
|
})(Y || (Y = {}));
|
|
2034
|
-
class
|
|
2034
|
+
class pe {
|
|
2035
2035
|
/**
|
|
2036
2036
|
* Encoder constructor
|
|
2037
2037
|
*
|
|
@@ -2067,14 +2067,14 @@ class Be {
|
|
|
2067
2067
|
* a list of buffers.
|
|
2068
2068
|
*/
|
|
2069
2069
|
encodeAsBinary(D) {
|
|
2070
|
-
const f =
|
|
2070
|
+
const f = le(D), e = this.encodeAsString(f.packet), t = f.buffers;
|
|
2071
2071
|
return t.unshift(e), t;
|
|
2072
2072
|
}
|
|
2073
2073
|
}
|
|
2074
|
-
function
|
|
2074
|
+
function zf(u) {
|
|
2075
2075
|
return Object.prototype.toString.call(u) === "[object Object]";
|
|
2076
2076
|
}
|
|
2077
|
-
class
|
|
2077
|
+
class cf extends iu {
|
|
2078
2078
|
/**
|
|
2079
2079
|
* Decoder constructor
|
|
2080
2080
|
*
|
|
@@ -2095,8 +2095,8 @@ class lf extends iu {
|
|
|
2095
2095
|
throw new Error("got plaintext data when reconstructing a packet");
|
|
2096
2096
|
f = this.decodeString(D);
|
|
2097
2097
|
const e = f.type === Y.BINARY_EVENT;
|
|
2098
|
-
e || f.type === Y.BINARY_ACK ? (f.type = e ? Y.EVENT : Y.ACK, this.reconstructor = new
|
|
2099
|
-
} else if (
|
|
2098
|
+
e || f.type === Y.BINARY_ACK ? (f.type = e ? Y.EVENT : Y.ACK, this.reconstructor = new Be(f), f.attachments === 0 && super.emitReserved("decoded", f)) : super.emitReserved("decoded", f);
|
|
2099
|
+
} else if (Cf(D) || D.base64)
|
|
2100
2100
|
if (this.reconstructor)
|
|
2101
2101
|
f = this.reconstructor.takeBinaryData(D), f && (this.reconstructor = null, super.emitReserved("decoded", f));
|
|
2102
2102
|
else
|
|
@@ -2149,7 +2149,7 @@ class lf extends iu {
|
|
|
2149
2149
|
}
|
|
2150
2150
|
if (D.charAt(++f)) {
|
|
2151
2151
|
const n = this.tryParse(D.substr(f));
|
|
2152
|
-
if (
|
|
2152
|
+
if (cf.isPayloadValid(e.type, n))
|
|
2153
2153
|
e.data = n;
|
|
2154
2154
|
else
|
|
2155
2155
|
throw new Error("invalid payload");
|
|
@@ -2166,14 +2166,14 @@ class lf extends iu {
|
|
|
2166
2166
|
static isPayloadValid(D, f) {
|
|
2167
2167
|
switch (D) {
|
|
2168
2168
|
case Y.CONNECT:
|
|
2169
|
-
return
|
|
2169
|
+
return zf(f);
|
|
2170
2170
|
case Y.DISCONNECT:
|
|
2171
2171
|
return f === void 0;
|
|
2172
2172
|
case Y.CONNECT_ERROR:
|
|
2173
|
-
return typeof f == "string" ||
|
|
2173
|
+
return typeof f == "string" || zf(f);
|
|
2174
2174
|
case Y.EVENT:
|
|
2175
2175
|
case Y.BINARY_EVENT:
|
|
2176
|
-
return Array.isArray(f) && (typeof f[0] == "number" || typeof f[0] == "string" &&
|
|
2176
|
+
return Array.isArray(f) && (typeof f[0] == "number" || typeof f[0] == "string" && he.indexOf(f[0]) === -1);
|
|
2177
2177
|
case Y.ACK:
|
|
2178
2178
|
case Y.BINARY_ACK:
|
|
2179
2179
|
return Array.isArray(f);
|
|
@@ -2186,7 +2186,7 @@ class lf extends iu {
|
|
|
2186
2186
|
this.reconstructor && (this.reconstructor.finishedReconstruction(), this.reconstructor = null);
|
|
2187
2187
|
}
|
|
2188
2188
|
}
|
|
2189
|
-
class
|
|
2189
|
+
class Be {
|
|
2190
2190
|
constructor(D) {
|
|
2191
2191
|
this.packet = D, this.buffers = [], this.reconPack = D;
|
|
2192
2192
|
}
|
|
@@ -2200,7 +2200,7 @@ class ge {
|
|
|
2200
2200
|
*/
|
|
2201
2201
|
takeBinaryData(D) {
|
|
2202
2202
|
if (this.buffers.push(D), this.buffers.length === this.reconPack.attachments) {
|
|
2203
|
-
const f =
|
|
2203
|
+
const f = Ee(this.reconPack, this.buffers);
|
|
2204
2204
|
return this.finishedReconstruction(), f;
|
|
2205
2205
|
}
|
|
2206
2206
|
return null;
|
|
@@ -2212,21 +2212,21 @@ class ge {
|
|
|
2212
2212
|
this.reconPack = null, this.buffers = [];
|
|
2213
2213
|
}
|
|
2214
2214
|
}
|
|
2215
|
-
const
|
|
2215
|
+
const ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2216
2216
|
__proto__: null,
|
|
2217
|
-
Decoder:
|
|
2218
|
-
Encoder:
|
|
2217
|
+
Decoder: cf,
|
|
2218
|
+
Encoder: pe,
|
|
2219
2219
|
get PacketType() {
|
|
2220
2220
|
return Y;
|
|
2221
2221
|
},
|
|
2222
|
-
protocol:
|
|
2222
|
+
protocol: be
|
|
2223
2223
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2224
2224
|
function ku(u, D, f) {
|
|
2225
2225
|
return u.on(D, f), function() {
|
|
2226
2226
|
u.off(D, f);
|
|
2227
2227
|
};
|
|
2228
2228
|
}
|
|
2229
|
-
const
|
|
2229
|
+
const me = Object.freeze({
|
|
2230
2230
|
connect: 1,
|
|
2231
2231
|
connect_error: 1,
|
|
2232
2232
|
disconnect: 1,
|
|
@@ -2235,7 +2235,7 @@ const _e = Object.freeze({
|
|
|
2235
2235
|
newListener: 1,
|
|
2236
2236
|
removeListener: 1
|
|
2237
2237
|
});
|
|
2238
|
-
class
|
|
2238
|
+
class E1 extends iu {
|
|
2239
2239
|
/**
|
|
2240
2240
|
* `Socket` constructor.
|
|
2241
2241
|
*/
|
|
@@ -2351,7 +2351,7 @@ class b1 extends iu {
|
|
|
2351
2351
|
*/
|
|
2352
2352
|
emit(D, ...f) {
|
|
2353
2353
|
var e, t, n;
|
|
2354
|
-
if (
|
|
2354
|
+
if (me.hasOwnProperty(D))
|
|
2355
2355
|
throw new Error('"' + D.toString() + '" is a reserved event name');
|
|
2356
2356
|
if (f.unshift(D), this._opts.retries && !this.flags.fromQueue && !this.flags.volatile)
|
|
2357
2357
|
return this._addToQueue(f), this;
|
|
@@ -2850,7 +2850,7 @@ nD.prototype.setMax = function(u) {
|
|
|
2850
2850
|
nD.prototype.setJitter = function(u) {
|
|
2851
2851
|
this.jitter = u;
|
|
2852
2852
|
};
|
|
2853
|
-
class
|
|
2853
|
+
class QD extends iu {
|
|
2854
2854
|
constructor(D, f) {
|
|
2855
2855
|
var e;
|
|
2856
2856
|
super(), this.nsps = {}, this.subs = [], D && typeof D == "object" && (f = D, D = void 0), f = f || {}, f.path = f.path || "/socket.io", this.opts = f, xD(this, f), this.reconnection(f.reconnection !== !1), this.reconnectionAttempts(f.reconnectionAttempts || 1 / 0), this.reconnectionDelay(f.reconnectionDelay || 1e3), this.reconnectionDelayMax(f.reconnectionDelayMax || 5e3), this.randomizationFactor((e = f.randomizationFactor) !== null && e !== void 0 ? e : 0.5), this.backoff = new nD({
|
|
@@ -2858,7 +2858,7 @@ class uf extends iu {
|
|
|
2858
2858
|
max: this.reconnectionDelayMax(),
|
|
2859
2859
|
jitter: this.randomizationFactor()
|
|
2860
2860
|
}), this.timeout(f.timeout == null ? 2e4 : f.timeout), this._readyState = "closed", this.uri = D;
|
|
2861
|
-
const t = f.parser ||
|
|
2861
|
+
const t = f.parser || ge;
|
|
2862
2862
|
this.encoder = new t.Encoder(), this.decoder = new t.Decoder(), this._autoConnect = f.autoConnect !== !1, this._autoConnect && this.open();
|
|
2863
2863
|
}
|
|
2864
2864
|
reconnection(D) {
|
|
@@ -2901,7 +2901,7 @@ class uf extends iu {
|
|
|
2901
2901
|
open(D) {
|
|
2902
2902
|
if (~this._readyState.indexOf("open"))
|
|
2903
2903
|
return this;
|
|
2904
|
-
this.engine = new
|
|
2904
|
+
this.engine = new Fe(this.uri, this.opts);
|
|
2905
2905
|
const f = this.engine, e = this;
|
|
2906
2906
|
this._readyState = "opening", this.skipReconnect = !1;
|
|
2907
2907
|
const t = ku(f, "open", function() {
|
|
@@ -2991,7 +2991,7 @@ class uf extends iu {
|
|
|
2991
2991
|
*/
|
|
2992
2992
|
socket(D, f) {
|
|
2993
2993
|
let e = this.nsps[D];
|
|
2994
|
-
return e ? this._autoConnect && !e.active && e.connect() : (e = new
|
|
2994
|
+
return e ? this._autoConnect && !e.active && e.connect() : (e = new E1(this, D, f), this.nsps[D] = e), e;
|
|
2995
2995
|
}
|
|
2996
2996
|
/**
|
|
2997
2997
|
* Called upon a socket close.
|
|
@@ -3091,29 +3091,29 @@ class uf extends iu {
|
|
|
3091
3091
|
const sD = {};
|
|
3092
3092
|
function mD(u, D) {
|
|
3093
3093
|
typeof u == "object" && (D = u, u = void 0), D = D || {};
|
|
3094
|
-
const f =
|
|
3094
|
+
const f = ie(u, D.path || "/socket.io"), e = f.source, t = f.id, n = f.path, r = sD[t] && n in sD[t].nsps, s = D.forceNew || D["force new connection"] || D.multiplex === !1 || r;
|
|
3095
3095
|
let F;
|
|
3096
|
-
return s ? F = new
|
|
3096
|
+
return s ? F = new QD(e, D) : (sD[t] || (sD[t] = new QD(e, D)), F = sD[t]), f.query && !D.query && (D.query = f.queryKey), F.socket(f.path, D);
|
|
3097
3097
|
}
|
|
3098
3098
|
Object.assign(mD, {
|
|
3099
|
-
Manager:
|
|
3100
|
-
Socket:
|
|
3099
|
+
Manager: QD,
|
|
3100
|
+
Socket: E1,
|
|
3101
3101
|
io: mD,
|
|
3102
3102
|
connect: mD
|
|
3103
3103
|
});
|
|
3104
|
-
const
|
|
3105
|
-
function
|
|
3104
|
+
const _e = () => typeof location > "u" ? "unknown-host" : location.host, lf = (u, D = _e()) => `${u}-${D}`;
|
|
3105
|
+
function ye(u, D, f) {
|
|
3106
3106
|
if (typeof D > "u") throw new Error("Value cannot be undefined");
|
|
3107
|
-
return localStorage.setItem(
|
|
3107
|
+
return localStorage.setItem(lf(u, f), JSON.stringify(D)), !0;
|
|
3108
3108
|
}
|
|
3109
|
-
function
|
|
3110
|
-
const f = localStorage.getItem(
|
|
3109
|
+
function ve(u, D) {
|
|
3110
|
+
const f = localStorage.getItem(lf(u, D));
|
|
3111
3111
|
return f === null ? null : JSON.parse(f);
|
|
3112
3112
|
}
|
|
3113
|
-
function
|
|
3114
|
-
localStorage.removeItem(
|
|
3113
|
+
function we(u, D) {
|
|
3114
|
+
localStorage.removeItem(lf(u, D));
|
|
3115
3115
|
}
|
|
3116
|
-
const eu = { setItem:
|
|
3116
|
+
const eu = { setItem: ye, getItem: ve, removeItem: we }, wD = class wD {
|
|
3117
3117
|
constructor(D, f, e) {
|
|
3118
3118
|
lD(this, "socket");
|
|
3119
3119
|
lD(this, "config");
|
|
@@ -3247,11 +3247,11 @@ lD(wD, "defaultConfig", {
|
|
|
3247
3247
|
upgrade: !0,
|
|
3248
3248
|
withCredentials: !0
|
|
3249
3249
|
});
|
|
3250
|
-
let
|
|
3251
|
-
const
|
|
3250
|
+
let uf = wD, qD;
|
|
3251
|
+
const Ae = (u, D) => {
|
|
3252
3252
|
var e;
|
|
3253
3253
|
const f = (e = eu.getItem("profileLiveChat")) == null ? void 0 : e.id;
|
|
3254
|
-
return qD || (qD = new
|
|
3254
|
+
return qD || (qD = new uf(
|
|
3255
3255
|
u.apiUrl,
|
|
3256
3256
|
{
|
|
3257
3257
|
query: {
|
|
@@ -3262,11 +3262,11 @@ const xe = (u, D) => {
|
|
|
3262
3262
|
},
|
|
3263
3263
|
D
|
|
3264
3264
|
)), qD;
|
|
3265
|
-
},
|
|
3265
|
+
}, h1 = zu({
|
|
3266
3266
|
socket: {}
|
|
3267
|
-
}),
|
|
3267
|
+
}), b1 = (u) => {
|
|
3268
3268
|
const D = Uu(), f = pu(
|
|
3269
|
-
|
|
3269
|
+
Ae(D, {
|
|
3270
3270
|
onConnect: () => {
|
|
3271
3271
|
console.info(
|
|
3272
3272
|
"Hexabot Live Chat : Successfully established WS Connection!"
|
|
@@ -3280,11 +3280,11 @@ const xe = (u, D) => {
|
|
|
3280
3280
|
}
|
|
3281
3281
|
})
|
|
3282
3282
|
);
|
|
3283
|
-
return /* @__PURE__ */ a.jsx(
|
|
3284
|
-
}, Yu = () => Ku(
|
|
3283
|
+
return /* @__PURE__ */ a.jsx(h1.Provider, { value: { socket: f.current }, children: u.children });
|
|
3284
|
+
}, Yu = () => Ku(h1), Df = (u, D) => {
|
|
3285
3285
|
const { socket: f } = Yu();
|
|
3286
3286
|
X(() => (f.on(u, D), () => f.off(u, D)), [u, D, f]);
|
|
3287
|
-
},
|
|
3287
|
+
}, xe = () => {
|
|
3288
3288
|
const { socket: u } = Yu();
|
|
3289
3289
|
X(() => (u.connect(), () => {
|
|
3290
3290
|
u.disconnect();
|
|
@@ -3318,15 +3318,15 @@ const xe = (u, D) => {
|
|
|
3318
3318
|
end_time: "",
|
|
3319
3319
|
time_zone: "Etc/GMT+12"
|
|
3320
3320
|
}
|
|
3321
|
-
},
|
|
3321
|
+
}, p1 = zu(_D), B1 = ({
|
|
3322
3322
|
children: u
|
|
3323
3323
|
}) => {
|
|
3324
|
-
const { t: D } = Ou(), f =
|
|
3324
|
+
const { t: D } = Ou(), f = If.getItem("settings"), [e, t] = U(
|
|
3325
3325
|
f || _D
|
|
3326
3326
|
), n = qu((r) => {
|
|
3327
|
-
|
|
3327
|
+
If.setItem("settings", r), t(r);
|
|
3328
3328
|
}, []);
|
|
3329
|
-
return
|
|
3329
|
+
return Df("settings", (r) => {
|
|
3330
3330
|
var s;
|
|
3331
3331
|
n({
|
|
3332
3332
|
..._D,
|
|
@@ -3347,8 +3347,8 @@ const xe = (u, D) => {
|
|
|
3347
3347
|
termsAndConditions: r.terms_and_conditions || _D.termsAndConditions,
|
|
3348
3348
|
offline_mode: r.offline_mode
|
|
3349
3349
|
});
|
|
3350
|
-
}), /* @__PURE__ */ a.jsx(
|
|
3351
|
-
}, Bu = () => Ku(
|
|
3350
|
+
}), /* @__PURE__ */ a.jsx(p1.Provider, { value: e, children: u });
|
|
3351
|
+
}, Bu = () => Ku(p1), g1 = zu(void 0), m1 = ({
|
|
3352
3352
|
onOpen: u,
|
|
3353
3353
|
onClose: D,
|
|
3354
3354
|
onScrollToTop: f,
|
|
@@ -3375,13 +3375,13 @@ const xe = (u, D) => {
|
|
|
3375
3375
|
l(g), f && n && g === 0 && f();
|
|
3376
3376
|
}
|
|
3377
3377
|
};
|
|
3378
|
-
return /* @__PURE__ */ a.jsx(
|
|
3378
|
+
return /* @__PURE__ */ a.jsx(g1.Provider, { value: S, children: t });
|
|
3379
3379
|
}, Nu = () => {
|
|
3380
|
-
const u = Ku(
|
|
3380
|
+
const u = Ku(g1);
|
|
3381
3381
|
if (u === void 0)
|
|
3382
3382
|
throw new Error("useWidget must be used within a WidgetProvider");
|
|
3383
3383
|
return u;
|
|
3384
|
-
},
|
|
3384
|
+
}, ke = (u) => new Intl.DateTimeFormat("en-GB", {
|
|
3385
3385
|
hour: "2-digit",
|
|
3386
3386
|
minute: "2-digit",
|
|
3387
3387
|
hour12: !1,
|
|
@@ -3390,7 +3390,7 @@ const xe = (u, D) => {
|
|
|
3390
3390
|
const D = u || {};
|
|
3391
3391
|
if (!D || D.status !== "active") return !1;
|
|
3392
3392
|
if (D.start_time && D.end_time && D.time_zone) {
|
|
3393
|
-
const f =
|
|
3393
|
+
const f = ke(D.time_zone);
|
|
3394
3394
|
return !(f >= D.start_time && f <= D.end_time);
|
|
3395
3395
|
}
|
|
3396
3396
|
return !0;
|
|
@@ -3448,7 +3448,7 @@ const xe = (u, D) => {
|
|
|
3448
3448
|
isOfflineMode: !1,
|
|
3449
3449
|
setIsOfflineMode: () => {
|
|
3450
3450
|
}
|
|
3451
|
-
},
|
|
3451
|
+
}, _1 = zu(yu), y1 = ({ wantToConnect: u, defaultConnectionState: D = 0, children: f }) => {
|
|
3452
3452
|
const e = Uu(), t = Bu(), { screen: n, setScreen: r } = Nu(), { setScroll: s, syncState: F, isOpen: o } = Nu(), d = Yu(), [c, l] = U(
|
|
3453
3453
|
yu.participants
|
|
3454
3454
|
), [j, m] = U(
|
|
@@ -3482,7 +3482,7 @@ const xe = (u, D) => {
|
|
|
3482
3482
|
]), s(0), "direction" in O && O.direction === Du.received && !O.isOffline && V(!1)), O && "data" in O && "quick_replies" in O.data ? T(
|
|
3483
3483
|
(O.data.quick_replies || []).map(
|
|
3484
3484
|
(fu) => ({
|
|
3485
|
-
content_type:
|
|
3485
|
+
content_type: Zf.text,
|
|
3486
3486
|
text: fu.title,
|
|
3487
3487
|
payload: fu.payload
|
|
3488
3488
|
})
|
|
@@ -3568,11 +3568,11 @@ const xe = (u, D) => {
|
|
|
3568
3568
|
d
|
|
3569
3569
|
]
|
|
3570
3570
|
);
|
|
3571
|
-
|
|
3571
|
+
Df(HD.message, (O) => {
|
|
3572
3572
|
console.log(
|
|
3573
3573
|
"=== CALLING handleNewIOMessage from useSubscribe (Socket Realtime) ==="
|
|
3574
3574
|
), _u(O);
|
|
3575
|
-
}),
|
|
3575
|
+
}), Df(HD.typing, y);
|
|
3576
3576
|
const Iu = (O) => {
|
|
3577
3577
|
O ? (B(O), r("webview")) : r("chat");
|
|
3578
3578
|
};
|
|
@@ -3588,7 +3588,7 @@ const xe = (u, D) => {
|
|
|
3588
3588
|
}
|
|
3589
3589
|
!O && !lu && r("prechat");
|
|
3590
3590
|
}
|
|
3591
|
-
}, [o]),
|
|
3591
|
+
}, [o]), h0("logout", () => {
|
|
3592
3592
|
d.socket.disconnect();
|
|
3593
3593
|
}), X(() => {
|
|
3594
3594
|
n === "chat" && j === tD.connected && Cu();
|
|
@@ -3641,9 +3641,9 @@ const xe = (u, D) => {
|
|
|
3641
3641
|
isOfflineMode: M,
|
|
3642
3642
|
setIsOfflineMode: V
|
|
3643
3643
|
};
|
|
3644
|
-
return /* @__PURE__ */ a.jsx(
|
|
3644
|
+
return /* @__PURE__ */ a.jsx(_1.Provider, { value: Lu, children: f });
|
|
3645
3645
|
}, cu = () => {
|
|
3646
|
-
const u = Ku(
|
|
3646
|
+
const u = Ku(_1);
|
|
3647
3647
|
if (!u)
|
|
3648
3648
|
throw new Error("useChat must be used within a ChatContext");
|
|
3649
3649
|
return u;
|
|
@@ -3893,21 +3893,21 @@ const xe = (u, D) => {
|
|
|
3893
3893
|
text: "#9C9C9C"
|
|
3894
3894
|
}
|
|
3895
3895
|
}
|
|
3896
|
-
},
|
|
3896
|
+
}, je = (u) => {
|
|
3897
3897
|
const D = u.replace("#", ""), f = parseInt(D.substring(0, 2), 16), e = parseInt(D.substring(2, 4), 16), t = parseInt(D.substring(4, 6), 16);
|
|
3898
3898
|
return (0.299 * f + 0.587 * e + 0.114 * t) / 255 > 0.5 ? "#000000" : "#FFFFFF";
|
|
3899
|
-
},
|
|
3899
|
+
}, Se = (u) => /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(u), Te = (u) => {
|
|
3900
3900
|
const D = u.replace("#", "");
|
|
3901
3901
|
return {
|
|
3902
3902
|
r: parseInt(D.substring(0, 2), 16),
|
|
3903
3903
|
g: parseInt(D.substring(2, 4), 16),
|
|
3904
3904
|
b: parseInt(D.substring(4, 6), 16)
|
|
3905
3905
|
};
|
|
3906
|
-
},
|
|
3907
|
-
const D =
|
|
3908
|
-
if (!
|
|
3909
|
-
return console.warn(`Invalid color: ${u}, using default blue theme`),
|
|
3910
|
-
const f =
|
|
3906
|
+
}, Ne = (u) => (u.startsWith("#") || (u = "#" + u), u.length === 4 ? "#" + u[1] + u[1] + u[2] + u[2] + u[3] + u[3] : u), ff = (u) => {
|
|
3907
|
+
const D = Ne(u);
|
|
3908
|
+
if (!Se(D))
|
|
3909
|
+
return console.warn(`Invalid color: ${u}, using default blue theme`), ff("#0074D9");
|
|
3910
|
+
const f = je(D), e = Te(D), t = Math.min(255, Math.floor(e.r + (255 - e.r) * 0.9)), n = Math.min(255, Math.floor(e.g + (255 - e.g) * 0.9)), r = Math.min(255, Math.floor(e.b + (255 - e.b) * 0.9)), s = `#${t.toString(16).padStart(2, "0")}${n.toString(16).padStart(2, "0")}${r.toString(16).padStart(2, "0")}`, F = Math.max(0, Math.floor(e.r * 0.8)), o = Math.max(0, Math.floor(e.g * 0.8)), d = Math.max(0, Math.floor(e.b * 0.8));
|
|
3911
3911
|
return `${F.toString(16).padStart(2, "0")}${o.toString(16).padStart(2, "0")}${d.toString(16).padStart(2, "0")}`, {
|
|
3912
3912
|
header: {
|
|
3913
3913
|
bg: D,
|
|
@@ -3943,7 +3943,7 @@ const xe = (u, D) => {
|
|
|
3943
3943
|
text: "#9C9C9C"
|
|
3944
3944
|
}
|
|
3945
3945
|
};
|
|
3946
|
-
},
|
|
3946
|
+
}, Uf = {
|
|
3947
3947
|
orange: "#FF851B",
|
|
3948
3948
|
red: "#FF4136",
|
|
3949
3949
|
green: "#2ECC40",
|
|
@@ -3951,14 +3951,14 @@ const xe = (u, D) => {
|
|
|
3951
3951
|
teal: "#1BA089",
|
|
3952
3952
|
dark: "#000000",
|
|
3953
3953
|
purple: "#7950F2"
|
|
3954
|
-
},
|
|
3954
|
+
}, Oe = (u) => Uf[u] ? ff(Uf[u]) : ff(u), Re = () => ({
|
|
3955
3955
|
bg: "#f6f8f9",
|
|
3956
3956
|
// Light gray background
|
|
3957
3957
|
text: "#000"
|
|
3958
3958
|
// Black text
|
|
3959
|
-
}),
|
|
3960
|
-
colors:
|
|
3961
|
-
}),
|
|
3959
|
+
}), Pe = yD.orange, v1 = zu({
|
|
3960
|
+
colors: Pe
|
|
3961
|
+
}), w1 = ({
|
|
3962
3962
|
children: u
|
|
3963
3963
|
}) => {
|
|
3964
3964
|
const D = Bu(), f = () => {
|
|
@@ -3967,24 +3967,24 @@ const xe = (u, D) => {
|
|
|
3967
3967
|
return yD[e];
|
|
3968
3968
|
try {
|
|
3969
3969
|
return {
|
|
3970
|
-
...
|
|
3970
|
+
...Oe(e),
|
|
3971
3971
|
// Keep received message colors fixed (admin chat)
|
|
3972
|
-
received:
|
|
3972
|
+
received: Re()
|
|
3973
3973
|
};
|
|
3974
3974
|
} catch {
|
|
3975
3975
|
return console.warn(`Failed to generate theme for color: ${e}, using orange fallback`), yD.orange;
|
|
3976
3976
|
}
|
|
3977
3977
|
};
|
|
3978
|
-
return /* @__PURE__ */ a.jsx(
|
|
3978
|
+
return /* @__PURE__ */ a.jsx(v1.Provider, { value: { colors: f() }, children: u });
|
|
3979
3979
|
}, du = () => {
|
|
3980
|
-
const u = Ku(
|
|
3980
|
+
const u = Ku(v1);
|
|
3981
3981
|
if (!u)
|
|
3982
3982
|
throw new Error("useColors must be used within a ColorProvider");
|
|
3983
3983
|
return u;
|
|
3984
|
-
},
|
|
3984
|
+
}, Ef = ({
|
|
3985
3985
|
viewBox: u = "0 0 24 24",
|
|
3986
3986
|
...D
|
|
3987
|
-
}) => /* @__PURE__ */ a.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: u, ...D, children: /* @__PURE__ */ a.jsx("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }) }),
|
|
3987
|
+
}) => /* @__PURE__ */ a.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: u, ...D, children: /* @__PURE__ */ a.jsx("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }) }), A1 = ({
|
|
3988
3988
|
width: u = "24",
|
|
3989
3989
|
height: D = "24",
|
|
3990
3990
|
logoUrl: f,
|
|
@@ -4009,7 +4009,7 @@ const xe = (u, D) => {
|
|
|
4009
4009
|
)
|
|
4010
4010
|
]
|
|
4011
4011
|
}
|
|
4012
|
-
),
|
|
4012
|
+
), Ie = ({
|
|
4013
4013
|
onChatWithStaff: u,
|
|
4014
4014
|
onSendNoticeToStaff: D
|
|
4015
4015
|
}) => {
|
|
@@ -4025,7 +4025,7 @@ const xe = (u, D) => {
|
|
|
4025
4025
|
};
|
|
4026
4026
|
}, []);
|
|
4027
4027
|
const s = async (F) => {
|
|
4028
|
-
|
|
4028
|
+
console.log("handleSendNoticeToStaff");
|
|
4029
4029
|
try {
|
|
4030
4030
|
const o = eu.getItem("profileLiveChat");
|
|
4031
4031
|
if (!o) {
|
|
@@ -4033,7 +4033,7 @@ const xe = (u, D) => {
|
|
|
4033
4033
|
return;
|
|
4034
4034
|
}
|
|
4035
4035
|
r({
|
|
4036
|
-
event:
|
|
4036
|
+
event: F,
|
|
4037
4037
|
source: "staff-notice",
|
|
4038
4038
|
data: {
|
|
4039
4039
|
type: Au.notify,
|
|
@@ -4070,7 +4070,7 @@ const xe = (u, D) => {
|
|
|
4070
4070
|
}
|
|
4071
4071
|
) })
|
|
4072
4072
|
] });
|
|
4073
|
-
},
|
|
4073
|
+
}, Le = ({ children: u }) => {
|
|
4074
4074
|
const D = Bu(), { colors: f } = du(), e = Nu();
|
|
4075
4075
|
return /* @__PURE__ */ a.jsxs(
|
|
4076
4076
|
"div",
|
|
@@ -4095,14 +4095,14 @@ const xe = (u, D) => {
|
|
|
4095
4095
|
className: "sc-open-icon",
|
|
4096
4096
|
style: { borderRadius: "50%" }
|
|
4097
4097
|
}
|
|
4098
|
-
) : /* @__PURE__ */ a.jsx(
|
|
4098
|
+
) : /* @__PURE__ */ a.jsx(A1, { width: 32, height: 32 })
|
|
4099
4099
|
}
|
|
4100
4100
|
),
|
|
4101
4101
|
/* @__PURE__ */ a.jsx("div", { className: "sc-header--title", children: D.title })
|
|
4102
4102
|
] }),
|
|
4103
4103
|
/* @__PURE__ */ a.jsxs("div", { className: "sc-header--actions", children: [
|
|
4104
4104
|
/* @__PURE__ */ a.jsx(
|
|
4105
|
-
|
|
4105
|
+
Ie,
|
|
4106
4106
|
{
|
|
4107
4107
|
onChatWithStaff: () => {
|
|
4108
4108
|
console.log("Chat with staff requested");
|
|
@@ -4117,14 +4117,14 @@ const xe = (u, D) => {
|
|
|
4117
4117
|
{
|
|
4118
4118
|
className: "sc-header--close-button",
|
|
4119
4119
|
onClick: () => e.setIsOpen(!1),
|
|
4120
|
-
children: /* @__PURE__ */ a.jsx(
|
|
4120
|
+
children: /* @__PURE__ */ a.jsx(Ef, {})
|
|
4121
4121
|
}
|
|
4122
4122
|
)
|
|
4123
4123
|
] })
|
|
4124
4124
|
]
|
|
4125
4125
|
}
|
|
4126
4126
|
);
|
|
4127
|
-
},
|
|
4127
|
+
}, $e = ({
|
|
4128
4128
|
width: u = "100",
|
|
4129
4129
|
height: D = "100",
|
|
4130
4130
|
x: f = "0",
|
|
@@ -4149,7 +4149,7 @@ const xe = (u, D) => {
|
|
|
4149
4149
|
/* @__PURE__ */ a.jsx("path", { d: "M349.926 17.756c141.317 87.019 164.005 282.465 47.152 399.321-74.64 74.638-183.463 93.269-274.888 57.282 97.36 59.953 228.457 49.147 314.888-37.282 131.453-131.456 82.523-352.533-87.152-419.321z" })
|
|
4150
4150
|
]
|
|
4151
4151
|
}
|
|
4152
|
-
),
|
|
4152
|
+
), Me = ({ size: u = 50, color: D = "#000", ...f }) => /* @__PURE__ */ a.jsxs(
|
|
4153
4153
|
"svg",
|
|
4154
4154
|
{
|
|
4155
4155
|
width: u,
|
|
@@ -4209,7 +4209,7 @@ const xe = (u, D) => {
|
|
|
4209
4209
|
] })
|
|
4210
4210
|
]
|
|
4211
4211
|
}
|
|
4212
|
-
),
|
|
4212
|
+
), qe = () => {
|
|
4213
4213
|
const { t: u } = Ou(), { connectionState: D, setConnectionState: f } = cu(), { colors: e } = du(), t = () => {
|
|
4214
4214
|
D === 0 && f(1);
|
|
4215
4215
|
}, n = D > 0;
|
|
@@ -4218,8 +4218,8 @@ const xe = (u, D) => {
|
|
|
4218
4218
|
{
|
|
4219
4219
|
className: "sc-chat--disconnected-icon-wrapper",
|
|
4220
4220
|
style: { backgroundColor: e.messageList.bg },
|
|
4221
|
-
children: n ? /* @__PURE__ */ a.jsx(
|
|
4222
|
-
/* @__PURE__ */ a.jsx(
|
|
4221
|
+
children: n ? /* @__PURE__ */ a.jsx(Me, { className: "loading-image" }) : /* @__PURE__ */ a.jsxs("div", { className: "sc-chat--disconnected-icon", children: [
|
|
4222
|
+
/* @__PURE__ */ a.jsx($e, {}),
|
|
4223
4223
|
/* @__PURE__ */ a.jsx(
|
|
4224
4224
|
"h3",
|
|
4225
4225
|
{
|
|
@@ -4245,287 +4245,285 @@ const xe = (u, D) => {
|
|
|
4245
4245
|
}
|
|
4246
4246
|
);
|
|
4247
4247
|
};
|
|
4248
|
-
var
|
|
4249
|
-
function
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
})(
|
|
4254
|
-
var
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
return I ? new Date(Date.UTC(R[1], M, R[3] || 1, R[4] || 0, R[5] || 0, R[6] || 0, V)) : new Date(R[1], M, R[3] || 1, R[4] || 0, R[5] || 0, R[6] || 0, V);
|
|
4314
|
-
}
|
|
4248
|
+
var x1 = { exports: {} };
|
|
4249
|
+
(function(u, D) {
|
|
4250
|
+
(function(f, e) {
|
|
4251
|
+
u.exports = e();
|
|
4252
|
+
})(dD, function() {
|
|
4253
|
+
var f = 1e3, e = 6e4, t = 36e5, n = "millisecond", r = "second", s = "minute", F = "hour", o = "day", d = "week", c = "month", l = "quarter", j = "year", m = "date", C = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, S = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, g = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(k) {
|
|
4254
|
+
var E = ["th", "st", "nd", "rd"], h = k % 100;
|
|
4255
|
+
return "[" + k + (E[(h - 20) % 10] || E[h] || E[0]) + "]";
|
|
4256
|
+
} }, L = function(k, E, h) {
|
|
4257
|
+
var x = String(k);
|
|
4258
|
+
return !x || x.length >= E ? k : "" + Array(E + 1 - x.length).join(h) + k;
|
|
4259
|
+
}, y = { s: L, z: function(k) {
|
|
4260
|
+
var E = -k.utcOffset(), h = Math.abs(E), x = Math.floor(h / 60), B = h % 60;
|
|
4261
|
+
return (E <= 0 ? "+" : "-") + L(x, 2, "0") + ":" + L(B, 2, "0");
|
|
4262
|
+
}, m: function k(E, h) {
|
|
4263
|
+
if (E.date() < h.date()) return -k(h, E);
|
|
4264
|
+
var x = 12 * (h.year() - E.year()) + (h.month() - E.month()), B = E.clone().add(x, c), I = h - B < 0, R = E.clone().add(x + (I ? -1 : 1), c);
|
|
4265
|
+
return +(-(x + (h - B) / (I ? B - R : R - B)) || 0);
|
|
4266
|
+
}, a: function(k) {
|
|
4267
|
+
return k < 0 ? Math.ceil(k) || 0 : Math.floor(k);
|
|
4268
|
+
}, p: function(k) {
|
|
4269
|
+
return { M: c, y: j, w: d, d: o, D: m, h: F, m: s, s: r, ms: n, Q: l }[k] || String(k || "").toLowerCase().replace(/s$/, "");
|
|
4270
|
+
}, u: function(k) {
|
|
4271
|
+
return k === void 0;
|
|
4272
|
+
} }, b = "en", T = {};
|
|
4273
|
+
T[b] = g;
|
|
4274
|
+
var N = "$isDayjsObject", z = function(k) {
|
|
4275
|
+
return k instanceof J || !(!k || !k[N]);
|
|
4276
|
+
}, A = function k(E, h, x) {
|
|
4277
|
+
var B;
|
|
4278
|
+
if (!E) return b;
|
|
4279
|
+
if (typeof E == "string") {
|
|
4280
|
+
var I = E.toLowerCase();
|
|
4281
|
+
T[I] && (B = I), h && (T[I] = h, B = I);
|
|
4282
|
+
var R = E.split("-");
|
|
4283
|
+
if (!B && R.length > 1) return k(R[0]);
|
|
4284
|
+
} else {
|
|
4285
|
+
var M = E.name;
|
|
4286
|
+
T[M] = E, B = M;
|
|
4287
|
+
}
|
|
4288
|
+
return !x && B && (b = B), B || !x && b;
|
|
4289
|
+
}, P = function(k, E) {
|
|
4290
|
+
if (z(k)) return k.clone();
|
|
4291
|
+
var h = typeof E == "object" ? E : {};
|
|
4292
|
+
return h.date = k, h.args = arguments, new J(h);
|
|
4293
|
+
}, _ = y;
|
|
4294
|
+
_.l = A, _.i = z, _.w = function(k, E) {
|
|
4295
|
+
return P(k, { locale: E.$L, utc: E.$u, x: E.$x, $offset: E.$offset });
|
|
4296
|
+
};
|
|
4297
|
+
var J = function() {
|
|
4298
|
+
function k(h) {
|
|
4299
|
+
this.$L = A(h.locale, null, !0), this.parse(h), this.$x = this.$x || h.x || {}, this[N] = !0;
|
|
4300
|
+
}
|
|
4301
|
+
var E = k.prototype;
|
|
4302
|
+
return E.parse = function(h) {
|
|
4303
|
+
this.$d = function(x) {
|
|
4304
|
+
var B = x.date, I = x.utc;
|
|
4305
|
+
if (B === null) return /* @__PURE__ */ new Date(NaN);
|
|
4306
|
+
if (_.u(B)) return /* @__PURE__ */ new Date();
|
|
4307
|
+
if (B instanceof Date) return new Date(B);
|
|
4308
|
+
if (typeof B == "string" && !/Z$/i.test(B)) {
|
|
4309
|
+
var R = B.match(v);
|
|
4310
|
+
if (R) {
|
|
4311
|
+
var M = R[2] - 1 || 0, V = (R[7] || "0").substring(0, 3);
|
|
4312
|
+
return I ? new Date(Date.UTC(R[1], M, R[3] || 1, R[4] || 0, R[5] || 0, R[6] || 0, V)) : new Date(R[1], M, R[3] || 1, R[4] || 0, R[5] || 0, R[6] || 0, V);
|
|
4315
4313
|
}
|
|
4316
|
-
return new Date(B);
|
|
4317
|
-
}(h), this.init();
|
|
4318
|
-
}, E.init = function() {
|
|
4319
|
-
var h = this.$d;
|
|
4320
|
-
this.$y = h.getFullYear(), this.$M = h.getMonth(), this.$D = h.getDate(), this.$W = h.getDay(), this.$H = h.getHours(), this.$m = h.getMinutes(), this.$s = h.getSeconds(), this.$ms = h.getMilliseconds();
|
|
4321
|
-
}, E.$utils = function() {
|
|
4322
|
-
return _;
|
|
4323
|
-
}, E.isValid = function() {
|
|
4324
|
-
return this.$d.toString() !== C;
|
|
4325
|
-
}, E.isSame = function(h, x) {
|
|
4326
|
-
var B = P(h);
|
|
4327
|
-
return this.startOf(x) <= B && B <= this.endOf(x);
|
|
4328
|
-
}, E.isAfter = function(h, x) {
|
|
4329
|
-
return P(h) < this.startOf(x);
|
|
4330
|
-
}, E.isBefore = function(h, x) {
|
|
4331
|
-
return this.endOf(x) < P(h);
|
|
4332
|
-
}, E.$g = function(h, x, B) {
|
|
4333
|
-
return _.u(h) ? this[x] : this.set(B, h);
|
|
4334
|
-
}, E.unix = function() {
|
|
4335
|
-
return Math.floor(this.valueOf() / 1e3);
|
|
4336
|
-
}, E.valueOf = function() {
|
|
4337
|
-
return this.$d.getTime();
|
|
4338
|
-
}, E.startOf = function(h, x) {
|
|
4339
|
-
var B = this, I = !!_.u(x) || x, R = _.p(h), M = function(gu, au) {
|
|
4340
|
-
var Cu = _.w(B.$u ? Date.UTC(B.$y, au, gu) : new Date(B.$y, au, gu), B);
|
|
4341
|
-
return I ? Cu : Cu.endOf(o);
|
|
4342
|
-
}, V = function(gu, au) {
|
|
4343
|
-
return _.w(B.toDate()[gu].apply(B.toDate("s"), (I ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(au)), B);
|
|
4344
|
-
}, Z = this.$W, q = this.$M, uu = this.$D, nu = "set" + (this.$u ? "UTC" : "");
|
|
4345
|
-
switch (R) {
|
|
4346
|
-
case j:
|
|
4347
|
-
return I ? M(1, 0) : M(31, 11);
|
|
4348
|
-
case c:
|
|
4349
|
-
return I ? M(1, q) : M(0, q + 1);
|
|
4350
|
-
case d:
|
|
4351
|
-
var lu = this.$locale().weekStart || 0, _u = (Z < lu ? Z + 7 : Z) - lu;
|
|
4352
|
-
return M(I ? uu - _u : uu + (6 - _u), q);
|
|
4353
|
-
case o:
|
|
4354
|
-
case m:
|
|
4355
|
-
return V(nu + "Hours", 0);
|
|
4356
|
-
case F:
|
|
4357
|
-
return V(nu + "Minutes", 1);
|
|
4358
|
-
case s:
|
|
4359
|
-
return V(nu + "Seconds", 2);
|
|
4360
|
-
case r:
|
|
4361
|
-
return V(nu + "Milliseconds", 3);
|
|
4362
|
-
default:
|
|
4363
|
-
return this.clone();
|
|
4364
|
-
}
|
|
4365
|
-
}, E.endOf = function(h) {
|
|
4366
|
-
return this.startOf(h, !1);
|
|
4367
|
-
}, E.$set = function(h, x) {
|
|
4368
|
-
var B, I = _.p(h), R = "set" + (this.$u ? "UTC" : ""), M = (B = {}, B[o] = R + "Date", B[m] = R + "Date", B[c] = R + "Month", B[j] = R + "FullYear", B[F] = R + "Hours", B[s] = R + "Minutes", B[r] = R + "Seconds", B[n] = R + "Milliseconds", B)[I], V = I === o ? this.$D + (x - this.$W) : x;
|
|
4369
|
-
if (I === c || I === j) {
|
|
4370
|
-
var Z = this.clone().set(m, 1);
|
|
4371
|
-
Z.$d[M](V), Z.init(), this.$d = Z.set(m, Math.min(this.$D, Z.daysInMonth())).$d;
|
|
4372
|
-
} else M && this.$d[M](V);
|
|
4373
|
-
return this.init(), this;
|
|
4374
|
-
}, E.set = function(h, x) {
|
|
4375
|
-
return this.clone().$set(h, x);
|
|
4376
|
-
}, E.get = function(h) {
|
|
4377
|
-
return this[_.p(h)]();
|
|
4378
|
-
}, E.add = function(h, x) {
|
|
4379
|
-
var B, I = this;
|
|
4380
|
-
h = Number(h);
|
|
4381
|
-
var R = _.p(x), M = function(q) {
|
|
4382
|
-
var uu = P(I);
|
|
4383
|
-
return _.w(uu.date(uu.date() + Math.round(q * h)), I);
|
|
4384
|
-
};
|
|
4385
|
-
if (R === c) return this.set(c, this.$M + h);
|
|
4386
|
-
if (R === j) return this.set(j, this.$y + h);
|
|
4387
|
-
if (R === o) return M(1);
|
|
4388
|
-
if (R === d) return M(7);
|
|
4389
|
-
var V = (B = {}, B[s] = e, B[F] = t, B[r] = f, B)[R] || 1, Z = this.$d.getTime() + h * V;
|
|
4390
|
-
return _.w(Z, this);
|
|
4391
|
-
}, E.subtract = function(h, x) {
|
|
4392
|
-
return this.add(-1 * h, x);
|
|
4393
|
-
}, E.format = function(h) {
|
|
4394
|
-
var x = this, B = this.$locale();
|
|
4395
|
-
if (!this.isValid()) return B.invalidDate || C;
|
|
4396
|
-
var I = h || "YYYY-MM-DDTHH:mm:ssZ", R = _.z(this), M = this.$H, V = this.$m, Z = this.$M, q = B.weekdays, uu = B.months, nu = B.meridiem, lu = function(au, Cu, Iu, Lu) {
|
|
4397
|
-
return au && (au[Cu] || au(x, I)) || Iu[Cu].slice(0, Lu);
|
|
4398
|
-
}, _u = function(au) {
|
|
4399
|
-
return _.s(M % 12 || 12, au, "0");
|
|
4400
|
-
}, gu = nu || function(au, Cu, Iu) {
|
|
4401
|
-
var Lu = au < 12 ? "AM" : "PM";
|
|
4402
|
-
return Iu ? Lu.toLowerCase() : Lu;
|
|
4403
|
-
};
|
|
4404
|
-
return I.replace(S, function(au, Cu) {
|
|
4405
|
-
return Cu || function(Iu) {
|
|
4406
|
-
switch (Iu) {
|
|
4407
|
-
case "YY":
|
|
4408
|
-
return String(x.$y).slice(-2);
|
|
4409
|
-
case "YYYY":
|
|
4410
|
-
return _.s(x.$y, 4, "0");
|
|
4411
|
-
case "M":
|
|
4412
|
-
return Z + 1;
|
|
4413
|
-
case "MM":
|
|
4414
|
-
return _.s(Z + 1, 2, "0");
|
|
4415
|
-
case "MMM":
|
|
4416
|
-
return lu(B.monthsShort, Z, uu, 3);
|
|
4417
|
-
case "MMMM":
|
|
4418
|
-
return lu(uu, Z);
|
|
4419
|
-
case "D":
|
|
4420
|
-
return x.$D;
|
|
4421
|
-
case "DD":
|
|
4422
|
-
return _.s(x.$D, 2, "0");
|
|
4423
|
-
case "d":
|
|
4424
|
-
return String(x.$W);
|
|
4425
|
-
case "dd":
|
|
4426
|
-
return lu(B.weekdaysMin, x.$W, q, 2);
|
|
4427
|
-
case "ddd":
|
|
4428
|
-
return lu(B.weekdaysShort, x.$W, q, 3);
|
|
4429
|
-
case "dddd":
|
|
4430
|
-
return q[x.$W];
|
|
4431
|
-
case "H":
|
|
4432
|
-
return String(M);
|
|
4433
|
-
case "HH":
|
|
4434
|
-
return _.s(M, 2, "0");
|
|
4435
|
-
case "h":
|
|
4436
|
-
return _u(1);
|
|
4437
|
-
case "hh":
|
|
4438
|
-
return _u(2);
|
|
4439
|
-
case "a":
|
|
4440
|
-
return gu(M, V, !0);
|
|
4441
|
-
case "A":
|
|
4442
|
-
return gu(M, V, !1);
|
|
4443
|
-
case "m":
|
|
4444
|
-
return String(V);
|
|
4445
|
-
case "mm":
|
|
4446
|
-
return _.s(V, 2, "0");
|
|
4447
|
-
case "s":
|
|
4448
|
-
return String(x.$s);
|
|
4449
|
-
case "ss":
|
|
4450
|
-
return _.s(x.$s, 2, "0");
|
|
4451
|
-
case "SSS":
|
|
4452
|
-
return _.s(x.$ms, 3, "0");
|
|
4453
|
-
case "Z":
|
|
4454
|
-
return R;
|
|
4455
|
-
}
|
|
4456
|
-
return null;
|
|
4457
|
-
}(au) || R.replace(":", "");
|
|
4458
|
-
});
|
|
4459
|
-
}, E.utcOffset = function() {
|
|
4460
|
-
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4461
|
-
}, E.diff = function(h, x, B) {
|
|
4462
|
-
var I, R = this, M = _.p(x), V = P(h), Z = (V.utcOffset() - this.utcOffset()) * e, q = this - V, uu = function() {
|
|
4463
|
-
return _.m(R, V);
|
|
4464
|
-
};
|
|
4465
|
-
switch (M) {
|
|
4466
|
-
case j:
|
|
4467
|
-
I = uu() / 12;
|
|
4468
|
-
break;
|
|
4469
|
-
case c:
|
|
4470
|
-
I = uu();
|
|
4471
|
-
break;
|
|
4472
|
-
case l:
|
|
4473
|
-
I = uu() / 3;
|
|
4474
|
-
break;
|
|
4475
|
-
case d:
|
|
4476
|
-
I = (q - Z) / 6048e5;
|
|
4477
|
-
break;
|
|
4478
|
-
case o:
|
|
4479
|
-
I = (q - Z) / 864e5;
|
|
4480
|
-
break;
|
|
4481
|
-
case F:
|
|
4482
|
-
I = q / t;
|
|
4483
|
-
break;
|
|
4484
|
-
case s:
|
|
4485
|
-
I = q / e;
|
|
4486
|
-
break;
|
|
4487
|
-
case r:
|
|
4488
|
-
I = q / f;
|
|
4489
|
-
break;
|
|
4490
|
-
default:
|
|
4491
|
-
I = q;
|
|
4492
4314
|
}
|
|
4493
|
-
return
|
|
4494
|
-
},
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
}
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4315
|
+
return new Date(B);
|
|
4316
|
+
}(h), this.init();
|
|
4317
|
+
}, E.init = function() {
|
|
4318
|
+
var h = this.$d;
|
|
4319
|
+
this.$y = h.getFullYear(), this.$M = h.getMonth(), this.$D = h.getDate(), this.$W = h.getDay(), this.$H = h.getHours(), this.$m = h.getMinutes(), this.$s = h.getSeconds(), this.$ms = h.getMilliseconds();
|
|
4320
|
+
}, E.$utils = function() {
|
|
4321
|
+
return _;
|
|
4322
|
+
}, E.isValid = function() {
|
|
4323
|
+
return this.$d.toString() !== C;
|
|
4324
|
+
}, E.isSame = function(h, x) {
|
|
4325
|
+
var B = P(h);
|
|
4326
|
+
return this.startOf(x) <= B && B <= this.endOf(x);
|
|
4327
|
+
}, E.isAfter = function(h, x) {
|
|
4328
|
+
return P(h) < this.startOf(x);
|
|
4329
|
+
}, E.isBefore = function(h, x) {
|
|
4330
|
+
return this.endOf(x) < P(h);
|
|
4331
|
+
}, E.$g = function(h, x, B) {
|
|
4332
|
+
return _.u(h) ? this[x] : this.set(B, h);
|
|
4333
|
+
}, E.unix = function() {
|
|
4334
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
4335
|
+
}, E.valueOf = function() {
|
|
4336
|
+
return this.$d.getTime();
|
|
4337
|
+
}, E.startOf = function(h, x) {
|
|
4338
|
+
var B = this, I = !!_.u(x) || x, R = _.p(h), M = function(gu, au) {
|
|
4339
|
+
var Cu = _.w(B.$u ? Date.UTC(B.$y, au, gu) : new Date(B.$y, au, gu), B);
|
|
4340
|
+
return I ? Cu : Cu.endOf(o);
|
|
4341
|
+
}, V = function(gu, au) {
|
|
4342
|
+
return _.w(B.toDate()[gu].apply(B.toDate("s"), (I ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(au)), B);
|
|
4343
|
+
}, Z = this.$W, q = this.$M, uu = this.$D, nu = "set" + (this.$u ? "UTC" : "");
|
|
4344
|
+
switch (R) {
|
|
4345
|
+
case j:
|
|
4346
|
+
return I ? M(1, 0) : M(31, 11);
|
|
4347
|
+
case c:
|
|
4348
|
+
return I ? M(1, q) : M(0, q + 1);
|
|
4349
|
+
case d:
|
|
4350
|
+
var lu = this.$locale().weekStart || 0, _u = (Z < lu ? Z + 7 : Z) - lu;
|
|
4351
|
+
return M(I ? uu - _u : uu + (6 - _u), q);
|
|
4352
|
+
case o:
|
|
4353
|
+
case m:
|
|
4354
|
+
return V(nu + "Hours", 0);
|
|
4355
|
+
case F:
|
|
4356
|
+
return V(nu + "Minutes", 1);
|
|
4357
|
+
case s:
|
|
4358
|
+
return V(nu + "Seconds", 2);
|
|
4359
|
+
case r:
|
|
4360
|
+
return V(nu + "Milliseconds", 3);
|
|
4361
|
+
default:
|
|
4362
|
+
return this.clone();
|
|
4363
|
+
}
|
|
4364
|
+
}, E.endOf = function(h) {
|
|
4365
|
+
return this.startOf(h, !1);
|
|
4366
|
+
}, E.$set = function(h, x) {
|
|
4367
|
+
var B, I = _.p(h), R = "set" + (this.$u ? "UTC" : ""), M = (B = {}, B[o] = R + "Date", B[m] = R + "Date", B[c] = R + "Month", B[j] = R + "FullYear", B[F] = R + "Hours", B[s] = R + "Minutes", B[r] = R + "Seconds", B[n] = R + "Milliseconds", B)[I], V = I === o ? this.$D + (x - this.$W) : x;
|
|
4368
|
+
if (I === c || I === j) {
|
|
4369
|
+
var Z = this.clone().set(m, 1);
|
|
4370
|
+
Z.$d[M](V), Z.init(), this.$d = Z.set(m, Math.min(this.$D, Z.daysInMonth())).$d;
|
|
4371
|
+
} else M && this.$d[M](V);
|
|
4372
|
+
return this.init(), this;
|
|
4373
|
+
}, E.set = function(h, x) {
|
|
4374
|
+
return this.clone().$set(h, x);
|
|
4375
|
+
}, E.get = function(h) {
|
|
4376
|
+
return this[_.p(h)]();
|
|
4377
|
+
}, E.add = function(h, x) {
|
|
4378
|
+
var B, I = this;
|
|
4379
|
+
h = Number(h);
|
|
4380
|
+
var R = _.p(x), M = function(q) {
|
|
4381
|
+
var uu = P(I);
|
|
4382
|
+
return _.w(uu.date(uu.date() + Math.round(q * h)), I);
|
|
4517
4383
|
};
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4384
|
+
if (R === c) return this.set(c, this.$M + h);
|
|
4385
|
+
if (R === j) return this.set(j, this.$y + h);
|
|
4386
|
+
if (R === o) return M(1);
|
|
4387
|
+
if (R === d) return M(7);
|
|
4388
|
+
var V = (B = {}, B[s] = e, B[F] = t, B[r] = f, B)[R] || 1, Z = this.$d.getTime() + h * V;
|
|
4389
|
+
return _.w(Z, this);
|
|
4390
|
+
}, E.subtract = function(h, x) {
|
|
4391
|
+
return this.add(-1 * h, x);
|
|
4392
|
+
}, E.format = function(h) {
|
|
4393
|
+
var x = this, B = this.$locale();
|
|
4394
|
+
if (!this.isValid()) return B.invalidDate || C;
|
|
4395
|
+
var I = h || "YYYY-MM-DDTHH:mm:ssZ", R = _.z(this), M = this.$H, V = this.$m, Z = this.$M, q = B.weekdays, uu = B.months, nu = B.meridiem, lu = function(au, Cu, Iu, Lu) {
|
|
4396
|
+
return au && (au[Cu] || au(x, I)) || Iu[Cu].slice(0, Lu);
|
|
4397
|
+
}, _u = function(au) {
|
|
4398
|
+
return _.s(M % 12 || 12, au, "0");
|
|
4399
|
+
}, gu = nu || function(au, Cu, Iu) {
|
|
4400
|
+
var Lu = au < 12 ? "AM" : "PM";
|
|
4401
|
+
return Iu ? Lu.toLowerCase() : Lu;
|
|
4402
|
+
};
|
|
4403
|
+
return I.replace(S, function(au, Cu) {
|
|
4404
|
+
return Cu || function(Iu) {
|
|
4405
|
+
switch (Iu) {
|
|
4406
|
+
case "YY":
|
|
4407
|
+
return String(x.$y).slice(-2);
|
|
4408
|
+
case "YYYY":
|
|
4409
|
+
return _.s(x.$y, 4, "0");
|
|
4410
|
+
case "M":
|
|
4411
|
+
return Z + 1;
|
|
4412
|
+
case "MM":
|
|
4413
|
+
return _.s(Z + 1, 2, "0");
|
|
4414
|
+
case "MMM":
|
|
4415
|
+
return lu(B.monthsShort, Z, uu, 3);
|
|
4416
|
+
case "MMMM":
|
|
4417
|
+
return lu(uu, Z);
|
|
4418
|
+
case "D":
|
|
4419
|
+
return x.$D;
|
|
4420
|
+
case "DD":
|
|
4421
|
+
return _.s(x.$D, 2, "0");
|
|
4422
|
+
case "d":
|
|
4423
|
+
return String(x.$W);
|
|
4424
|
+
case "dd":
|
|
4425
|
+
return lu(B.weekdaysMin, x.$W, q, 2);
|
|
4426
|
+
case "ddd":
|
|
4427
|
+
return lu(B.weekdaysShort, x.$W, q, 3);
|
|
4428
|
+
case "dddd":
|
|
4429
|
+
return q[x.$W];
|
|
4430
|
+
case "H":
|
|
4431
|
+
return String(M);
|
|
4432
|
+
case "HH":
|
|
4433
|
+
return _.s(M, 2, "0");
|
|
4434
|
+
case "h":
|
|
4435
|
+
return _u(1);
|
|
4436
|
+
case "hh":
|
|
4437
|
+
return _u(2);
|
|
4438
|
+
case "a":
|
|
4439
|
+
return gu(M, V, !0);
|
|
4440
|
+
case "A":
|
|
4441
|
+
return gu(M, V, !1);
|
|
4442
|
+
case "m":
|
|
4443
|
+
return String(V);
|
|
4444
|
+
case "mm":
|
|
4445
|
+
return _.s(V, 2, "0");
|
|
4446
|
+
case "s":
|
|
4447
|
+
return String(x.$s);
|
|
4448
|
+
case "ss":
|
|
4449
|
+
return _.s(x.$s, 2, "0");
|
|
4450
|
+
case "SSS":
|
|
4451
|
+
return _.s(x.$ms, 3, "0");
|
|
4452
|
+
case "Z":
|
|
4453
|
+
return R;
|
|
4454
|
+
}
|
|
4455
|
+
return null;
|
|
4456
|
+
}(au) || R.replace(":", "");
|
|
4457
|
+
});
|
|
4458
|
+
}, E.utcOffset = function() {
|
|
4459
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4460
|
+
}, E.diff = function(h, x, B) {
|
|
4461
|
+
var I, R = this, M = _.p(x), V = P(h), Z = (V.utcOffset() - this.utcOffset()) * e, q = this - V, uu = function() {
|
|
4462
|
+
return _.m(R, V);
|
|
4463
|
+
};
|
|
4464
|
+
switch (M) {
|
|
4465
|
+
case j:
|
|
4466
|
+
I = uu() / 12;
|
|
4467
|
+
break;
|
|
4468
|
+
case c:
|
|
4469
|
+
I = uu();
|
|
4470
|
+
break;
|
|
4471
|
+
case l:
|
|
4472
|
+
I = uu() / 3;
|
|
4473
|
+
break;
|
|
4474
|
+
case d:
|
|
4475
|
+
I = (q - Z) / 6048e5;
|
|
4476
|
+
break;
|
|
4477
|
+
case o:
|
|
4478
|
+
I = (q - Z) / 864e5;
|
|
4479
|
+
break;
|
|
4480
|
+
case F:
|
|
4481
|
+
I = q / t;
|
|
4482
|
+
break;
|
|
4483
|
+
case s:
|
|
4484
|
+
I = q / e;
|
|
4485
|
+
break;
|
|
4486
|
+
case r:
|
|
4487
|
+
I = q / f;
|
|
4488
|
+
break;
|
|
4489
|
+
default:
|
|
4490
|
+
I = q;
|
|
4491
|
+
}
|
|
4492
|
+
return B ? I : _.a(I);
|
|
4493
|
+
}, E.daysInMonth = function() {
|
|
4494
|
+
return this.endOf(c).$D;
|
|
4495
|
+
}, E.$locale = function() {
|
|
4496
|
+
return T[this.$L];
|
|
4497
|
+
}, E.locale = function(h, x) {
|
|
4498
|
+
if (!h) return this.$L;
|
|
4499
|
+
var B = this.clone(), I = A(h, x, !0);
|
|
4500
|
+
return I && (B.$L = I), B;
|
|
4501
|
+
}, E.clone = function() {
|
|
4502
|
+
return _.w(this.$d, this);
|
|
4503
|
+
}, E.toDate = function() {
|
|
4504
|
+
return new Date(this.valueOf());
|
|
4505
|
+
}, E.toJSON = function() {
|
|
4506
|
+
return this.isValid() ? this.toISOString() : null;
|
|
4507
|
+
}, E.toISOString = function() {
|
|
4508
|
+
return this.$d.toISOString();
|
|
4509
|
+
}, E.toString = function() {
|
|
4510
|
+
return this.$d.toUTCString();
|
|
4511
|
+
}, k;
|
|
4512
|
+
}(), W = J.prototype;
|
|
4513
|
+
return P.prototype = W, [["$ms", n], ["$s", r], ["$m", s], ["$H", F], ["$W", o], ["$M", c], ["$y", j], ["$D", m]].forEach(function(k) {
|
|
4514
|
+
W[k[1]] = function(E) {
|
|
4515
|
+
return this.$g(E, k[0], k[1]);
|
|
4516
|
+
};
|
|
4517
|
+
}), P.extend = function(k, E) {
|
|
4518
|
+
return k.$i || (k(E, J, P), k.$i = !0), P;
|
|
4519
|
+
}, P.locale = A, P.isDayjs = z, P.unix = function(k) {
|
|
4520
|
+
return P(1e3 * k);
|
|
4521
|
+
}, P.en = T[b], P.Ls = T, P.p = {}, P;
|
|
4522
|
+
});
|
|
4523
|
+
})(x1);
|
|
4524
|
+
var k1 = x1.exports;
|
|
4525
|
+
const j1 = /* @__PURE__ */ sf(k1);
|
|
4526
|
+
var ze = { exports: {} };
|
|
4529
4527
|
(function(u, D) {
|
|
4530
4528
|
(function(f, e) {
|
|
4531
4529
|
u.exports = e();
|
|
@@ -4535,11 +4533,11 @@ var Ve = { exports: {} };
|
|
|
4535
4533
|
return "[" + f + (e[(t - 20) % 10] || e[t] || e[0]) + "]";
|
|
4536
4534
|
} };
|
|
4537
4535
|
});
|
|
4538
|
-
})(
|
|
4539
|
-
var
|
|
4536
|
+
})(ze);
|
|
4537
|
+
var Ue = { exports: {} };
|
|
4540
4538
|
(function(u, D) {
|
|
4541
4539
|
(function(f, e) {
|
|
4542
|
-
u.exports = e(
|
|
4540
|
+
u.exports = e(k1);
|
|
4543
4541
|
})(dD, function(f) {
|
|
4544
4542
|
function e(r) {
|
|
4545
4543
|
return r && typeof r == "object" && "default" in r ? r : { default: r };
|
|
@@ -4549,8 +4547,8 @@ var We = { exports: {} };
|
|
|
4549
4547
|
} };
|
|
4550
4548
|
return t.default.locale(n, null, !0), n;
|
|
4551
4549
|
});
|
|
4552
|
-
})(
|
|
4553
|
-
var
|
|
4550
|
+
})(Ue);
|
|
4551
|
+
var S1 = { exports: {} };
|
|
4554
4552
|
(function(u, D) {
|
|
4555
4553
|
(function(f, e) {
|
|
4556
4554
|
u.exports = e();
|
|
@@ -4591,9 +4589,9 @@ var T1 = { exports: {} };
|
|
|
4591
4589
|
};
|
|
4592
4590
|
};
|
|
4593
4591
|
});
|
|
4594
|
-
})(
|
|
4595
|
-
var
|
|
4596
|
-
const
|
|
4592
|
+
})(S1);
|
|
4593
|
+
var Ve = S1.exports;
|
|
4594
|
+
const We = /* @__PURE__ */ sf(Ve), T1 = ({
|
|
4597
4595
|
width: u = "18",
|
|
4598
4596
|
height: D = "18",
|
|
4599
4597
|
...f
|
|
@@ -4688,10 +4686,10 @@ const Ye = /* @__PURE__ */ Ff(He), N1 = ({
|
|
|
4688
4686
|
},
|
|
4689
4687
|
F
|
|
4690
4688
|
)) });
|
|
4691
|
-
},
|
|
4692
|
-
let D =
|
|
4693
|
-
return D =
|
|
4694
|
-
},
|
|
4689
|
+
}, He = (u, D = 100) => u.length > D ? u.substr(0, D) + "..." : u, Ye = (u) => u.replace(/\n/g, "<br />"), Ke = (u) => {
|
|
4690
|
+
let D = He(u, 50);
|
|
4691
|
+
return D = Ye(u), D;
|
|
4692
|
+
}, Je = ({ message: u }) => /* @__PURE__ */ a.jsx("div", { className: "sc-message--carousel-element-wrapper", children: /* @__PURE__ */ a.jsxs("div", { className: "sc-message--carousel-element", children: [
|
|
4695
4693
|
u.image_url && /* @__PURE__ */ a.jsx(
|
|
4696
4694
|
"div",
|
|
4697
4695
|
{
|
|
@@ -4705,7 +4703,7 @@ const Ye = /* @__PURE__ */ Ff(He), N1 = ({
|
|
|
4705
4703
|
"p",
|
|
4706
4704
|
{
|
|
4707
4705
|
dangerouslySetInnerHTML: {
|
|
4708
|
-
__html:
|
|
4706
|
+
__html: Ke(u.subtitle)
|
|
4709
4707
|
}
|
|
4710
4708
|
}
|
|
4711
4709
|
)
|
|
@@ -4716,7 +4714,7 @@ const Ye = /* @__PURE__ */ Ff(He), N1 = ({
|
|
|
4716
4714
|
message: { data: { buttons: u.buttons } }
|
|
4717
4715
|
}
|
|
4718
4716
|
)
|
|
4719
|
-
] }) }),
|
|
4717
|
+
] }) }), Ge = ({
|
|
4720
4718
|
messageCarousel: u
|
|
4721
4719
|
}) => {
|
|
4722
4720
|
const { colors: D } = du(), [f, e] = U(0), t = u.data.elements, n = () => {
|
|
@@ -4740,7 +4738,7 @@ const Ye = /* @__PURE__ */ Ff(He), N1 = ({
|
|
|
4740
4738
|
{
|
|
4741
4739
|
className: "sc-message--carousel-inner",
|
|
4742
4740
|
style: { transform: `translateX(-${f * 100}%)` },
|
|
4743
|
-
children: t.map((o, d) => /* @__PURE__ */ a.jsx(
|
|
4741
|
+
children: t.map((o, d) => /* @__PURE__ */ a.jsx(Je, { message: o, idx: d }, d))
|
|
4744
4742
|
}
|
|
4745
4743
|
),
|
|
4746
4744
|
F && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
@@ -4764,14 +4762,14 @@ const Ye = /* @__PURE__ */ Ff(He), N1 = ({
|
|
|
4764
4762
|
]
|
|
4765
4763
|
}
|
|
4766
4764
|
);
|
|
4767
|
-
},
|
|
4765
|
+
}, Xe = ({
|
|
4768
4766
|
viewBox: u = "0 0 512 512",
|
|
4769
4767
|
...D
|
|
4770
4768
|
}) => /* @__PURE__ */ a.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: u, ...D, children: /* @__PURE__ */ a.jsxs("g", { "data-name": "1", children: [
|
|
4771
4769
|
/* @__PURE__ */ a.jsx("path", { d: "M378.83 450H150a50.17 50.17 0 01-50.11-50.11V98.11A50.17 50.17 0 01150 48h150.1a15 15 0 0110.61 4.39l113.84 113.88a15 15 0 014.39 10.61v223A50.17 50.17 0 01378.83 450zM150 78a20.13 20.13 0 00-20.11 20.11v301.78A20.13 20.13 0 00150 420h228.83a20.13 20.13 0 0020.11-20.11v-216.8L293.85 78z" }),
|
|
4772
4770
|
/* @__PURE__ */ a.jsx("path", { d: "M413.94 191.88h-78.77a50.17 50.17 0 01-50.11-50.11V63a15 15 0 0130 0v78.77a20.13 20.13 0 0020.11 20.11h78.77a15 15 0 010 30zM264.4 375a15 15 0 01-10.61-4.4l-54.45-54.44a15 15 0 1121.21-21.22l43.85 43.84 43.84-43.84a15 15 0 1121.21 21.22L275 370.55a15 15 0 01-10.6 4.45z" }),
|
|
4773
4771
|
/* @__PURE__ */ a.jsx("path", { d: "M264.4 365a15 15 0 01-15-15V231a15 15 0 0130 0v119a15 15 0 01-15 15z" })
|
|
4774
|
-
] }) }),
|
|
4772
|
+
] }) }), Ze = ({ message: u }) => {
|
|
4775
4773
|
const { t: D } = Ou(), { colors: f } = du(), e = f[u.direction || Du.received];
|
|
4776
4774
|
if (!("type" in u.data))
|
|
4777
4775
|
throw new Error("Unable to detect type for file message");
|
|
@@ -4811,7 +4809,7 @@ const Ye = /* @__PURE__ */ Ff(He), N1 = ({
|
|
|
4811
4809
|
rel: "noopener noreferrer",
|
|
4812
4810
|
download: !0,
|
|
4813
4811
|
children: [
|
|
4814
|
-
/* @__PURE__ */ a.jsx(
|
|
4812
|
+
/* @__PURE__ */ a.jsx(Xe, {}),
|
|
4815
4813
|
D("messages.file_message.download")
|
|
4816
4814
|
]
|
|
4817
4815
|
}
|
|
@@ -4821,7 +4819,7 @@ const Ye = /* @__PURE__ */ Ff(He), N1 = ({
|
|
|
4821
4819
|
]
|
|
4822
4820
|
}
|
|
4823
4821
|
);
|
|
4824
|
-
},
|
|
4822
|
+
}, Qe = ({ message: u }) => {
|
|
4825
4823
|
var o;
|
|
4826
4824
|
const { colors: D } = du(), f = Nu(), [e, t] = U(!1), n = pu(null);
|
|
4827
4825
|
if (X(() => {
|
|
@@ -4859,7 +4857,7 @@ const Ye = /* @__PURE__ */ Ff(He), N1 = ({
|
|
|
4859
4857
|
)
|
|
4860
4858
|
}
|
|
4861
4859
|
);
|
|
4862
|
-
},
|
|
4860
|
+
}, u3 = ({ messageList: u }) => {
|
|
4863
4861
|
const { colors: D } = du(), f = (r) => {
|
|
4864
4862
|
let s = e(r, 50);
|
|
4865
4863
|
return s = t(r), s;
|
|
@@ -4931,17 +4929,17 @@ const Ye = /* @__PURE__ */ Ff(He), N1 = ({
|
|
|
4931
4929
|
}
|
|
4932
4930
|
);
|
|
4933
4931
|
};
|
|
4934
|
-
var
|
|
4935
|
-
return
|
|
4932
|
+
var ef = function(u, D) {
|
|
4933
|
+
return ef = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(f, e) {
|
|
4936
4934
|
f.__proto__ = e;
|
|
4937
4935
|
} || function(f, e) {
|
|
4938
4936
|
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && (f[t] = e[t]);
|
|
4939
|
-
},
|
|
4937
|
+
}, ef(u, D);
|
|
4940
4938
|
};
|
|
4941
4939
|
function CD(u, D) {
|
|
4942
4940
|
if (typeof D != "function" && D !== null)
|
|
4943
4941
|
throw new TypeError("Class extends value " + String(D) + " is not a constructor or null");
|
|
4944
|
-
|
|
4942
|
+
ef(u, D);
|
|
4945
4943
|
function f() {
|
|
4946
4944
|
this.constructor = u;
|
|
4947
4945
|
}
|
|
@@ -4956,7 +4954,7 @@ var ou = function() {
|
|
|
4956
4954
|
return D;
|
|
4957
4955
|
}, ou.apply(this, arguments);
|
|
4958
4956
|
};
|
|
4959
|
-
function
|
|
4957
|
+
function D3(u, D) {
|
|
4960
4958
|
var f = typeof Symbol == "function" && u[Symbol.iterator];
|
|
4961
4959
|
if (!f) return u;
|
|
4962
4960
|
var e = f.call(u), t, n = [], r;
|
|
@@ -4973,16 +4971,16 @@ function e3(u, D) {
|
|
|
4973
4971
|
}
|
|
4974
4972
|
return n;
|
|
4975
4973
|
}
|
|
4976
|
-
function
|
|
4974
|
+
function f3(u, D, f) {
|
|
4977
4975
|
if (f || arguments.length === 2) for (var e = 0, t = D.length, n; e < t; e++)
|
|
4978
4976
|
(n || !(e in D)) && (n || (n = Array.prototype.slice.call(D, 0, e)), n[e] = D[e]);
|
|
4979
4977
|
return u.concat(n || Array.prototype.slice.call(D));
|
|
4980
4978
|
}
|
|
4981
|
-
var
|
|
4979
|
+
var e3 = "4.1.5", t3 = Object.prototype.hasOwnProperty;
|
|
4982
4980
|
function wu(u) {
|
|
4983
4981
|
return typeof u == "boolean";
|
|
4984
4982
|
}
|
|
4985
|
-
function
|
|
4983
|
+
function n3(u, D, f) {
|
|
4986
4984
|
var e;
|
|
4987
4985
|
return u.length > D && (f == null ? (f = "…", e = 3) : e = f.length, u = u.substring(0, D - e) + f), u;
|
|
4988
4986
|
}
|
|
@@ -4993,7 +4991,7 @@ function Gu(u, D) {
|
|
|
4993
4991
|
function Xu(u) {
|
|
4994
4992
|
throw new Error("Unhandled case for value: '".concat(u, "'"));
|
|
4995
4993
|
}
|
|
4996
|
-
var bD = /\s+/,
|
|
4994
|
+
var bD = /\s+/, N1 = (
|
|
4997
4995
|
/** @class */
|
|
4998
4996
|
function() {
|
|
4999
4997
|
function u(D) {
|
|
@@ -5042,32 +5040,32 @@ var bD = /\s+/, O1 = (
|
|
|
5042
5040
|
}, u.prototype.buildAttrsStr = function() {
|
|
5043
5041
|
var D = this.getAttrs(), f = [];
|
|
5044
5042
|
for (var e in D)
|
|
5045
|
-
|
|
5043
|
+
t3.call(D, e) && f.push(e + '="' + D[e] + '"');
|
|
5046
5044
|
return f.join(" ");
|
|
5047
5045
|
}, u;
|
|
5048
5046
|
}()
|
|
5049
5047
|
);
|
|
5050
|
-
function
|
|
5048
|
+
function r3(u, D, f) {
|
|
5051
5049
|
var e, t;
|
|
5052
5050
|
if (f == null ? (f = "…", t = 3, e = 8) : (t = f.length, e = f.length), u.length <= D)
|
|
5053
5051
|
return u;
|
|
5054
|
-
var n = D - t, r =
|
|
5052
|
+
var n = D - t, r = a3(u);
|
|
5055
5053
|
if (r.query) {
|
|
5056
5054
|
var s = r.query.match(/^(.*?)(?=(\?|#))(.*?)$/i);
|
|
5057
|
-
s && (r.query = r.query.substr(0, s[1].length), u =
|
|
5055
|
+
s && (r.query = r.query.substr(0, s[1].length), u = Vf(r));
|
|
5058
5056
|
}
|
|
5059
|
-
if (u.length <= D || (r.host && (r.host = r.host.replace(/^www\./, ""), u =
|
|
5057
|
+
if (u.length <= D || (r.host && (r.host = r.host.replace(/^www\./, ""), u = Vf(r)), u.length <= D))
|
|
5060
5058
|
return u;
|
|
5061
5059
|
var F = "";
|
|
5062
5060
|
if (r.host && (F += r.host), F.length >= n)
|
|
5063
|
-
return r.host.length === D ? (r.host.substr(0, D - t) + f).substr(0, n + e) :
|
|
5061
|
+
return r.host.length === D ? (r.host.substr(0, D - t) + f).substr(0, n + e) : zD(F, n, f).substr(0, n + e);
|
|
5064
5062
|
var o = "";
|
|
5065
5063
|
if (r.path && (o += "/" + r.path), r.query && (o += "?" + r.query), o)
|
|
5066
5064
|
if ((F + o).length >= n) {
|
|
5067
5065
|
if ((F + o).length == D)
|
|
5068
5066
|
return (F + o).substr(0, D);
|
|
5069
5067
|
var d = n - F.length;
|
|
5070
|
-
return (F +
|
|
5068
|
+
return (F + zD(o, d, f)).substr(0, n + e);
|
|
5071
5069
|
} else
|
|
5072
5070
|
F += o;
|
|
5073
5071
|
if (r.fragment) {
|
|
@@ -5076,7 +5074,7 @@ function s3(u, D, f) {
|
|
|
5076
5074
|
if ((F + c).length == D)
|
|
5077
5075
|
return (F + c).substr(0, D);
|
|
5078
5076
|
var l = n - F.length;
|
|
5079
|
-
return (F +
|
|
5077
|
+
return (F + zD(c, l, f)).substr(0, n + e);
|
|
5080
5078
|
} else
|
|
5081
5079
|
F += c;
|
|
5082
5080
|
}
|
|
@@ -5090,19 +5088,19 @@ function s3(u, D, f) {
|
|
|
5090
5088
|
var m = "";
|
|
5091
5089
|
return n > 0 && (m = F.substr(-1 * Math.floor(n / 2))), (F.substr(0, Math.ceil(n / 2)) + f + m).substr(0, n + e);
|
|
5092
5090
|
}
|
|
5093
|
-
function
|
|
5091
|
+
function a3(u) {
|
|
5094
5092
|
var D = {}, f = u, e = f.match(/^([a-z]+):\/\//i);
|
|
5095
5093
|
return e && (D.scheme = e[1], f = f.slice(e[0].length)), e = f.match(/^(.*?)(?=(\?|#|\/|$))/i), e && (D.host = e[1], f = f.slice(e[0].length)), e = f.match(/^\/(.*?)(?=(\?|#|$))/i), e && (D.path = e[1], f = f.slice(e[0].length)), e = f.match(/^\?(.*?)(?=(#|$))/i), e && (D.query = e[1], f = f.slice(e[0].length)), e = f.match(/^#(.*?)$/i), e && (D.fragment = e[1]), D;
|
|
5096
5094
|
}
|
|
5097
|
-
function
|
|
5095
|
+
function Vf(u) {
|
|
5098
5096
|
var D = "";
|
|
5099
5097
|
return u.scheme && u.host && (D += u.scheme + "://"), u.host && (D += u.host), u.path && (D += "/" + u.path), u.query && (D += "?" + u.query), u.fragment && (D += "#" + u.fragment), D;
|
|
5100
5098
|
}
|
|
5101
|
-
function
|
|
5099
|
+
function zD(u, D, f) {
|
|
5102
5100
|
var e = D / 2, t = Math.ceil(e), n = -1 * Math.floor(e), r = "";
|
|
5103
5101
|
return n < 0 && (r = u.substr(n)), u.substr(0, t) + f + r;
|
|
5104
5102
|
}
|
|
5105
|
-
function
|
|
5103
|
+
function s3(u, D, f) {
|
|
5106
5104
|
if (u.length <= D)
|
|
5107
5105
|
return u;
|
|
5108
5106
|
var e, t;
|
|
@@ -5110,17 +5108,17 @@ function i3(u, D, f) {
|
|
|
5110
5108
|
var n = D - t, r = "";
|
|
5111
5109
|
return n > 0 && (r = u.substr(-1 * Math.floor(n / 2))), (u.substr(0, Math.ceil(n / 2)) + f + r).substr(0, n + e);
|
|
5112
5110
|
}
|
|
5113
|
-
function
|
|
5114
|
-
return
|
|
5111
|
+
function F3(u, D, f) {
|
|
5112
|
+
return n3(u, D, f);
|
|
5115
5113
|
}
|
|
5116
|
-
var
|
|
5114
|
+
var i3 = (
|
|
5117
5115
|
/** @class */
|
|
5118
5116
|
function() {
|
|
5119
5117
|
function u(D) {
|
|
5120
5118
|
D === void 0 && (D = {}), this.newWindow = !1, this.truncate = {}, this.className = "", this.newWindow = D.newWindow || !1, this.truncate = D.truncate || {}, this.className = D.className || "";
|
|
5121
5119
|
}
|
|
5122
5120
|
return u.prototype.build = function(D) {
|
|
5123
|
-
return new
|
|
5121
|
+
return new N1({
|
|
5124
5122
|
tagName: "a",
|
|
5125
5123
|
attrs: this.createAttrs(D),
|
|
5126
5124
|
innerHtml: this.processAnchorText(D.getAnchorText())
|
|
@@ -5146,7 +5144,7 @@ var d3 = (
|
|
|
5146
5144
|
if (!f.length)
|
|
5147
5145
|
return D;
|
|
5148
5146
|
var e = f.length, t = f.location;
|
|
5149
|
-
return t === "smart" ?
|
|
5147
|
+
return t === "smart" ? r3(D, e) : t === "middle" ? s3(D, e) : F3(D, e);
|
|
5150
5148
|
}, u;
|
|
5151
5149
|
}()
|
|
5152
5150
|
), cD = (
|
|
@@ -5168,7 +5166,7 @@ var d3 = (
|
|
|
5168
5166
|
}, u;
|
|
5169
5167
|
}()
|
|
5170
5168
|
);
|
|
5171
|
-
function
|
|
5169
|
+
function o3(u) {
|
|
5172
5170
|
return u >= 0 && u <= 31 || u == 127;
|
|
5173
5171
|
}
|
|
5174
5172
|
function rD(u) {
|
|
@@ -5177,7 +5175,7 @@ function rD(u) {
|
|
|
5177
5175
|
function hu(u) {
|
|
5178
5176
|
return u >= 48 && u <= 57;
|
|
5179
5177
|
}
|
|
5180
|
-
function
|
|
5178
|
+
function hf(u) {
|
|
5181
5179
|
return u == 34 || u == 39;
|
|
5182
5180
|
}
|
|
5183
5181
|
function Zu(u) {
|
|
@@ -5186,67 +5184,67 @@ function Zu(u) {
|
|
|
5186
5184
|
function Qu(u) {
|
|
5187
5185
|
return u < 4800 ? u < 2949 ? u < 2451 ? u < 1425 ? u < 768 ? u < 192 ? u < 169 ? u < 65 ? u >= 48 && u <= 57 : u >= 65 && u <= 90 || u >= 97 && u <= 122 : u < 181 ? u >= 169 && u <= 170 || u == 174 : u == 181 || u == 186 : u < 710 ? u < 216 ? u >= 192 && u <= 214 : u >= 216 && u <= 246 || u >= 248 && u <= 705 : u < 748 ? u >= 710 && u <= 721 || u >= 736 && u <= 740 : u == 748 || u == 750 : u < 910 ? u < 895 ? u < 886 ? u >= 768 && u <= 884 : u >= 886 && u <= 887 || u >= 890 && u <= 893 : u < 904 ? u == 895 || u == 902 : u >= 904 && u <= 906 || u == 908 : u < 1155 ? u < 931 ? u >= 910 && u <= 929 : u >= 931 && u <= 1013 || u >= 1015 && u <= 1153 : u < 1369 ? u >= 1155 && u <= 1327 || u >= 1329 && u <= 1366 : u == 1369 || u >= 1377 && u <= 1415 : u < 1808 ? u < 1552 ? u < 1476 ? u < 1471 ? u >= 1425 && u <= 1469 : u == 1471 || u >= 1473 && u <= 1474 : u < 1488 ? u >= 1476 && u <= 1477 || u == 1479 : u >= 1488 && u <= 1514 || u >= 1520 && u <= 1522 : u < 1749 ? u < 1568 ? u >= 1552 && u <= 1562 : u >= 1568 && u <= 1641 || u >= 1646 && u <= 1747 : u < 1770 ? u >= 1749 && u <= 1756 || u >= 1759 && u <= 1768 : u >= 1770 && u <= 1788 || u == 1791 : u < 2230 ? u < 2042 ? u < 1869 ? u >= 1808 && u <= 1866 : u >= 1869 && u <= 1969 || u >= 1984 && u <= 2037 : u < 2112 ? u == 2042 || u >= 2048 && u <= 2093 : u >= 2112 && u <= 2139 || u >= 2208 && u <= 2228 : u < 2406 ? u < 2260 ? u >= 2230 && u <= 2237 : u >= 2260 && u <= 2273 || u >= 2275 && u <= 2403 : u < 2437 ? u >= 2406 && u <= 2415 || u >= 2417 && u <= 2435 : u >= 2437 && u <= 2444 || u >= 2447 && u <= 2448 : u < 2693 ? u < 2579 ? u < 2519 ? u < 2486 ? u < 2474 ? u >= 2451 && u <= 2472 : u >= 2474 && u <= 2480 || u == 2482 : u < 2503 ? u >= 2486 && u <= 2489 || u >= 2492 && u <= 2500 : u >= 2503 && u <= 2504 || u >= 2507 && u <= 2510 : u < 2534 ? u < 2524 ? u == 2519 : u >= 2524 && u <= 2525 || u >= 2527 && u <= 2531 : u < 2565 ? u >= 2534 && u <= 2545 || u >= 2561 && u <= 2563 : u >= 2565 && u <= 2570 || u >= 2575 && u <= 2576 : u < 2631 ? u < 2613 ? u < 2602 ? u >= 2579 && u <= 2600 : u >= 2602 && u <= 2608 || u >= 2610 && u <= 2611 : u < 2620 ? u >= 2613 && u <= 2614 || u >= 2616 && u <= 2617 : u == 2620 || u >= 2622 && u <= 2626 : u < 2649 ? u < 2635 ? u >= 2631 && u <= 2632 : u >= 2635 && u <= 2637 || u == 2641 : u < 2662 ? u >= 2649 && u <= 2652 || u == 2654 : u >= 2662 && u <= 2677 || u >= 2689 && u <= 2691 : u < 2821 ? u < 2759 ? u < 2730 ? u < 2703 ? u >= 2693 && u <= 2701 : u >= 2703 && u <= 2705 || u >= 2707 && u <= 2728 : u < 2741 ? u >= 2730 && u <= 2736 || u >= 2738 && u <= 2739 : u >= 2741 && u <= 2745 || u >= 2748 && u <= 2757 : u < 2784 ? u < 2763 ? u >= 2759 && u <= 2761 : u >= 2763 && u <= 2765 || u == 2768 : u < 2809 ? u >= 2784 && u <= 2787 || u >= 2790 && u <= 2799 : u == 2809 || u >= 2817 && u <= 2819 : u < 2887 ? u < 2858 ? u < 2831 ? u >= 2821 && u <= 2828 : u >= 2831 && u <= 2832 || u >= 2835 && u <= 2856 : u < 2869 ? u >= 2858 && u <= 2864 || u >= 2866 && u <= 2867 : u >= 2869 && u <= 2873 || u >= 2876 && u <= 2884 : u < 2911 ? u < 2902 ? u >= 2887 && u <= 2888 || u >= 2891 && u <= 2893 : u >= 2902 && u <= 2903 || u >= 2908 && u <= 2909 : u < 2929 ? u >= 2911 && u <= 2915 || u >= 2918 && u <= 2927 : u == 2929 || u >= 2946 && u <= 2947 : u < 3517 ? u < 3205 ? u < 3046 ? u < 2984 ? u < 2969 ? u < 2958 ? u >= 2949 && u <= 2954 : u >= 2958 && u <= 2960 || u >= 2962 && u <= 2965 : u < 2974 ? u >= 2969 && u <= 2970 || u == 2972 : u >= 2974 && u <= 2975 || u >= 2979 && u <= 2980 : u < 3014 ? u < 2990 ? u >= 2984 && u <= 2986 : u >= 2990 && u <= 3001 || u >= 3006 && u <= 3010 : u < 3024 ? u >= 3014 && u <= 3016 || u >= 3018 && u <= 3021 : u == 3024 || u == 3031 : u < 3142 ? u < 3086 ? u < 3072 ? u >= 3046 && u <= 3055 : u >= 3072 && u <= 3075 || u >= 3077 && u <= 3084 : u < 3114 ? u >= 3086 && u <= 3088 || u >= 3090 && u <= 3112 : u >= 3114 && u <= 3129 || u >= 3133 && u <= 3140 : u < 3160 ? u < 3146 ? u >= 3142 && u <= 3144 : u >= 3146 && u <= 3149 || u >= 3157 && u <= 3158 : u < 3174 ? u >= 3160 && u <= 3162 || u >= 3168 && u <= 3171 : u >= 3174 && u <= 3183 || u >= 3200 && u <= 3203 : u < 3333 ? u < 3274 ? u < 3242 ? u < 3214 ? u >= 3205 && u <= 3212 : u >= 3214 && u <= 3216 || u >= 3218 && u <= 3240 : u < 3260 ? u >= 3242 && u <= 3251 || u >= 3253 && u <= 3257 : u >= 3260 && u <= 3268 || u >= 3270 && u <= 3272 : u < 3296 ? u < 3285 ? u >= 3274 && u <= 3277 : u >= 3285 && u <= 3286 || u == 3294 : u < 3313 ? u >= 3296 && u <= 3299 || u >= 3302 && u <= 3311 : u >= 3313 && u <= 3314 || u >= 3329 && u <= 3331 : u < 3423 ? u < 3389 ? u < 3342 ? u >= 3333 && u <= 3340 : u >= 3342 && u <= 3344 || u >= 3346 && u <= 3386 : u < 3402 ? u >= 3389 && u <= 3396 || u >= 3398 && u <= 3400 : u >= 3402 && u <= 3406 || u >= 3412 && u <= 3415 : u < 3458 ? u < 3430 ? u >= 3423 && u <= 3427 : u >= 3430 && u <= 3439 || u >= 3450 && u <= 3455 : u < 3482 ? u >= 3458 && u <= 3459 || u >= 3461 && u <= 3478 : u >= 3482 && u <= 3505 || u >= 3507 && u <= 3515 : u < 3804 ? u < 3722 ? u < 3570 ? u < 3535 ? u < 3520 ? u == 3517 : u >= 3520 && u <= 3526 || u == 3530 : u < 3544 ? u >= 3535 && u <= 3540 || u == 3542 : u >= 3544 && u <= 3551 || u >= 3558 && u <= 3567 : u < 3664 ? u < 3585 ? u >= 3570 && u <= 3571 : u >= 3585 && u <= 3642 || u >= 3648 && u <= 3662 : u < 3716 ? u >= 3664 && u <= 3673 || u >= 3713 && u <= 3714 : u == 3716 || u >= 3719 && u <= 3720 : u < 3754 ? u < 3737 ? u < 3725 ? u == 3722 : u == 3725 || u >= 3732 && u <= 3735 : u < 3749 ? u >= 3737 && u <= 3743 || u >= 3745 && u <= 3747 : u == 3749 || u == 3751 : u < 3776 ? u < 3757 ? u >= 3754 && u <= 3755 : u >= 3757 && u <= 3769 || u >= 3771 && u <= 3773 : u < 3784 ? u >= 3776 && u <= 3780 || u == 3782 : u >= 3784 && u <= 3789 || u >= 3792 && u <= 3801 : u < 4176 ? u < 3902 ? u < 3872 ? u < 3840 ? u >= 3804 && u <= 3807 : u == 3840 || u >= 3864 && u <= 3865 : u < 3895 ? u >= 3872 && u <= 3881 || u == 3893 : u == 3895 || u == 3897 : u < 3974 ? u < 3913 ? u >= 3902 && u <= 3911 : u >= 3913 && u <= 3948 || u >= 3953 && u <= 3972 : u < 4038 ? u >= 3974 && u <= 3991 || u >= 3993 && u <= 4028 : u == 4038 || u >= 4096 && u <= 4169 : u < 4688 ? u < 4301 ? u < 4256 ? u >= 4176 && u <= 4253 : u >= 4256 && u <= 4293 || u == 4295 : u < 4348 ? u == 4301 || u >= 4304 && u <= 4346 : u >= 4348 && u <= 4680 || u >= 4682 && u <= 4685 : u < 4746 ? u < 4698 ? u >= 4688 && u <= 4694 || u == 4696 : u >= 4698 && u <= 4701 || u >= 4704 && u <= 4744 : u < 4786 ? u >= 4746 && u <= 4749 || u >= 4752 && u <= 4784 : u >= 4786 && u <= 4789 || u >= 4792 && u <= 4798 : u < 11035 ? u < 7416 ? u < 6176 ? u < 5873 ? u < 4992 ? u < 4824 ? u < 4802 ? u == 4800 : u >= 4802 && u <= 4805 || u >= 4808 && u <= 4822 : u < 4888 ? u >= 4824 && u <= 4880 || u >= 4882 && u <= 4885 : u >= 4888 && u <= 4954 || u >= 4957 && u <= 4959 : u < 5121 ? u < 5024 ? u >= 4992 && u <= 5007 : u >= 5024 && u <= 5109 || u >= 5112 && u <= 5117 : u < 5761 ? u >= 5121 && u <= 5740 || u >= 5743 && u <= 5759 : u >= 5761 && u <= 5786 || u >= 5792 && u <= 5866 : u < 6002 ? u < 5920 ? u < 5888 ? u >= 5873 && u <= 5880 : u >= 5888 && u <= 5900 || u >= 5902 && u <= 5908 : u < 5984 ? u >= 5920 && u <= 5940 || u >= 5952 && u <= 5971 : u >= 5984 && u <= 5996 || u >= 5998 && u <= 6e3 : u < 6108 ? u < 6016 ? u >= 6002 && u <= 6003 : u >= 6016 && u <= 6099 || u == 6103 : u < 6155 ? u >= 6108 && u <= 6109 || u >= 6112 && u <= 6121 : u >= 6155 && u <= 6157 || u >= 6160 && u <= 6169 : u < 6783 ? u < 6512 ? u < 6400 ? u < 6272 ? u >= 6176 && u <= 6263 : u >= 6272 && u <= 6314 || u >= 6320 && u <= 6389 : u < 6448 ? u >= 6400 && u <= 6430 || u >= 6432 && u <= 6443 : u >= 6448 && u <= 6459 || u >= 6470 && u <= 6509 : u < 6608 ? u < 6528 ? u >= 6512 && u <= 6516 : u >= 6528 && u <= 6571 || u >= 6576 && u <= 6601 : u < 6688 ? u >= 6608 && u <= 6617 || u >= 6656 && u <= 6683 : u >= 6688 && u <= 6750 || u >= 6752 && u <= 6780 : u < 7040 ? u < 6832 ? u < 6800 ? u >= 6783 && u <= 6793 : u >= 6800 && u <= 6809 || u == 6823 : u < 6992 ? u >= 6832 && u <= 6846 || u >= 6912 && u <= 6987 : u >= 6992 && u <= 7001 || u >= 7019 && u <= 7027 : u < 7245 ? u < 7168 ? u >= 7040 && u <= 7155 : u >= 7168 && u <= 7223 || u >= 7232 && u <= 7241 : u < 7376 ? u >= 7245 && u <= 7293 || u >= 7296 && u <= 7304 : u >= 7376 && u <= 7378 || u >= 7380 && u <= 7414 : u < 8450 ? u < 8130 ? u < 8025 ? u < 7960 ? u < 7424 ? u >= 7416 && u <= 7417 : u >= 7424 && u <= 7669 || u >= 7675 && u <= 7957 : u < 8008 ? u >= 7960 && u <= 7965 || u >= 7968 && u <= 8005 : u >= 8008 && u <= 8013 || u >= 8016 && u <= 8023 : u < 8031 ? u < 8027 ? u == 8025 : u == 8027 || u == 8029 : u < 8118 ? u >= 8031 && u <= 8061 || u >= 8064 && u <= 8116 : u >= 8118 && u <= 8124 || u == 8126 : u < 8205 ? u < 8150 ? u < 8134 ? u >= 8130 && u <= 8132 : u >= 8134 && u <= 8140 || u >= 8144 && u <= 8147 : u < 8178 ? u >= 8150 && u <= 8155 || u >= 8160 && u <= 8172 : u >= 8178 && u <= 8180 || u >= 8182 && u <= 8188 : u < 8305 ? u < 8252 ? u == 8205 : u == 8252 || u == 8265 : u < 8336 ? u == 8305 || u == 8319 : u >= 8336 && u <= 8348 || u >= 8400 && u <= 8432 : u < 8579 ? u < 8486 ? u < 8469 ? u < 8455 ? u == 8450 : u == 8455 || u >= 8458 && u <= 8467 : u < 8482 ? u == 8469 || u >= 8473 && u <= 8477 : u == 8482 || u == 8484 : u < 8495 ? u < 8488 ? u == 8486 : u == 8488 || u >= 8490 && u <= 8493 : u < 8517 ? u >= 8495 && u <= 8505 || u >= 8508 && u <= 8511 : u >= 8517 && u <= 8521 || u == 8526 : u < 9410 ? u < 9e3 ? u < 8592 ? u >= 8579 && u <= 8580 : u >= 8592 && u <= 8703 || u >= 8986 && u <= 8987 : u < 9193 ? u == 9e3 || u == 9167 : u >= 9193 && u <= 9203 || u >= 9208 && u <= 9210 : u < 9723 ? u < 9654 ? u == 9410 || u >= 9642 && u <= 9643 : u == 9654 || u == 9664 : u < 10548 ? u >= 9723 && u <= 9726 || u >= 9728 && u <= 10175 : u >= 10548 && u <= 10549 || u >= 11013 && u <= 11015 : u < 43259 ? u < 12445 ? u < 11688 ? u < 11520 ? u < 11264 ? u < 11088 ? u >= 11035 && u <= 11036 : u == 11088 || u == 11093 : u < 11360 ? u >= 11264 && u <= 11310 || u >= 11312 && u <= 11358 : u >= 11360 && u <= 11492 || u >= 11499 && u <= 11507 : u < 11568 ? u < 11559 ? u >= 11520 && u <= 11557 : u == 11559 || u == 11565 : u < 11647 ? u >= 11568 && u <= 11623 || u == 11631 : u >= 11647 && u <= 11670 || u >= 11680 && u <= 11686 : u < 11744 ? u < 11712 ? u < 11696 ? u >= 11688 && u <= 11694 : u >= 11696 && u <= 11702 || u >= 11704 && u <= 11710 : u < 11728 ? u >= 11712 && u <= 11718 || u >= 11720 && u <= 11726 : u >= 11728 && u <= 11734 || u >= 11736 && u <= 11742 : u < 12330 ? u < 11823 ? u >= 11744 && u <= 11775 : u == 11823 || u >= 12293 && u <= 12294 : u < 12353 ? u >= 12330 && u <= 12341 || u >= 12347 && u <= 12349 : u >= 12353 && u <= 12438 || u >= 12441 && u <= 12442 : u < 42512 ? u < 12951 ? u < 12549 ? u < 12449 ? u >= 12445 && u <= 12447 : u >= 12449 && u <= 12538 || u >= 12540 && u <= 12543 : u < 12704 ? u >= 12549 && u <= 12589 || u >= 12593 && u <= 12686 : u >= 12704 && u <= 12730 || u >= 12784 && u <= 12799 : u < 19968 ? u < 12953 ? u == 12951 : u == 12953 || u >= 13312 && u <= 19893 : u < 42192 ? u >= 19968 && u <= 40917 || u >= 40960 && u <= 42124 : u >= 42192 && u <= 42237 || u >= 42240 && u <= 42508 : u < 42891 ? u < 42623 ? u < 42560 ? u >= 42512 && u <= 42539 : u >= 42560 && u <= 42610 || u >= 42612 && u <= 42621 : u < 42775 ? u >= 42623 && u <= 42725 || u >= 42736 && u <= 42737 : u >= 42775 && u <= 42783 || u >= 42786 && u <= 42888 : u < 43072 ? u < 42928 ? u >= 42891 && u <= 42926 : u >= 42928 && u <= 42935 || u >= 42999 && u <= 43047 : u < 43216 ? u >= 43072 && u <= 43123 || u >= 43136 && u <= 43205 : u >= 43216 && u <= 43225 || u >= 43232 && u <= 43255 : u < 55243 ? u < 43744 ? u < 43488 ? u < 43312 ? u < 43261 ? u == 43259 : u == 43261 || u >= 43264 && u <= 43309 : u < 43392 ? u >= 43312 && u <= 43347 || u >= 43360 && u <= 43388 : u >= 43392 && u <= 43456 || u >= 43471 && u <= 43481 : u < 43600 ? u < 43520 ? u >= 43488 && u <= 43518 : u >= 43520 && u <= 43574 || u >= 43584 && u <= 43597 : u < 43642 ? u >= 43600 && u <= 43609 || u >= 43616 && u <= 43638 : u >= 43642 && u <= 43714 || u >= 43739 && u <= 43741 : u < 43824 ? u < 43785 ? u < 43762 ? u >= 43744 && u <= 43759 : u >= 43762 && u <= 43766 || u >= 43777 && u <= 43782 : u < 43808 ? u >= 43785 && u <= 43790 || u >= 43793 && u <= 43798 : u >= 43808 && u <= 43814 || u >= 43816 && u <= 43822 : u < 44012 ? u < 43868 ? u >= 43824 && u <= 43866 : u >= 43868 && u <= 43877 || u >= 43888 && u <= 44010 : u < 44032 ? u >= 44012 && u <= 44013 || u >= 44016 && u <= 44025 : u >= 44032 && u <= 55203 || u >= 55216 && u <= 55238 : u < 64848 ? u < 64298 ? u < 64112 ? u < 55296 ? u >= 55243 && u <= 55291 : u >= 55296 && u <= 57343 || u >= 63744 && u <= 64109 : u < 64275 ? u >= 64112 && u <= 64217 || u >= 64256 && u <= 64262 : u >= 64275 && u <= 64279 || u >= 64285 && u <= 64296 : u < 64320 ? u < 64312 ? u >= 64298 && u <= 64310 : u >= 64312 && u <= 64316 || u == 64318 : u < 64326 ? u >= 64320 && u <= 64321 || u >= 64323 && u <= 64324 : u >= 64326 && u <= 64433 || u >= 64467 && u <= 64829 : u < 65296 ? u < 65024 ? u < 64914 ? u >= 64848 && u <= 64911 : u >= 64914 && u <= 64967 || u >= 65008 && u <= 65019 : u < 65136 ? u >= 65024 && u <= 65039 || u >= 65056 && u <= 65071 : u >= 65136 && u <= 65140 || u >= 65142 && u <= 65276 : u < 65474 ? u < 65345 ? u >= 65296 && u <= 65305 || u >= 65313 && u <= 65338 : u >= 65345 && u <= 65370 || u >= 65382 && u <= 65470 : u < 65490 ? u >= 65474 && u <= 65479 || u >= 65482 && u <= 65487 : u >= 65490 && u <= 65495 || u >= 65498 && u <= 65500;
|
|
5188
5186
|
}
|
|
5189
|
-
function
|
|
5187
|
+
function d3(u) {
|
|
5190
5188
|
return u < 47 ? u < 42 ? u == 33 || u >= 35 && u <= 39 : u >= 42 && u <= 43 || u == 45 : u < 63 ? u == 47 || u == 61 : u < 94 ? u == 63 : u >= 94 && u <= 96 || u >= 123 && u <= 126;
|
|
5191
5189
|
}
|
|
5192
|
-
function
|
|
5190
|
+
function C3(u) {
|
|
5193
5191
|
return u < 91 ? u < 47 ? u >= 35 && u <= 43 || u == 45 : u < 61 ? u == 47 : u == 61 || u == 64 : u < 95 ? u == 91 || u == 93 : u < 123 ? u == 95 : u >= 123 && u <= 126 || u == 10003;
|
|
5194
5192
|
}
|
|
5195
|
-
function
|
|
5193
|
+
function O1(u) {
|
|
5196
5194
|
return u < 58 ? u < 44 ? u == 33 : u == 44 || u == 46 : u < 63 ? u >= 58 && u <= 59 : u == 63 || u == 94;
|
|
5197
5195
|
}
|
|
5198
|
-
function
|
|
5196
|
+
function c3(u) {
|
|
5199
5197
|
return u < 91 ? u == 40 : u == 91 || u == 123;
|
|
5200
5198
|
}
|
|
5201
|
-
function
|
|
5199
|
+
function Wf(u) {
|
|
5202
5200
|
return u < 93 ? u == 41 : u == 93 || u == 125;
|
|
5203
5201
|
}
|
|
5204
|
-
var h3 = /^(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|travelersinsurance|vermögensberatung|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbah1a3hjkrd|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--mgbcpq6gpa1a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbc0a9azcg|xn--nqv7fs00ema|americanfamily|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|wolterskluwer|xn--cckwcxetd|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--4dbrk0ce|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nextdirect|properties|protection|prudential|realestate|republican|restaurant|schaeffler|tatamotors|technology|university|vlaanderen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--q7ce6a|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|pramerica|richardli|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--qxa6a|xn--tckwe|xn--vhquv|yodobashi|موريتانيا|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|builders|business|capetown|catering|catholic|cipriani|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|softbank|software|stcgroup|supplies|training|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|banamex|bauhaus|bestbuy|booking|brother|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|singles|staples|storage|support|surgery|systems|temasek|theater|theatre|tickets|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|yamaxun|youtube|zuerich|католик|البحرين|الجزائر|العليان|پاکستان|كاثوليك|இந்தியா|abbott|abbvie|africa|agency|airbus|airtel|alipay|alsace|alstom|amazon|anquan|aramco|author|bayern|beauty|berlin|bharti|bostik|boston|broker|camera|career|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kindle|kosher|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|nagoya|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|walter|webcam|xihuan|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|भारतम्|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dance|deals|delta|drive|dubai|earth|edeka|email|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|irish|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|loans|locus|lotte|lotto|mango|media|miami|money|movie|music|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|ישראל|ایران|بازار|بھارت|سودان|سورية|همراه|भारोत|संगठन|বাংলা|భారత్|ഭാരതം|嘉里大酒店|aarp|able|aero|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|dvag|erni|fage|fail|fans|farm|fast|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kids|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|read|reit|rent|rest|rich|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scot|seat|seek|sexy|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بارت|بيتك|ڀارت|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ভাৰত|ਭਾਰਤ|ભારત|ଭାରତ|ಭಾರತ|ලංකා|アマゾン|グーグル|クラウド|ポイント|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|ceo|cfa|cfd|com|cpa|crs|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gay|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|llp|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|scb|sew|sex|sfr|ski|sky|soy|spa|srl|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|عرب|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ລາວ|ストア|セール|みんな|中文网|亚马逊|天主教|我爱你|新加坡|淡马锡|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)$/, P1 = /https?:\/\//i, b3 = new RegExp("^" + P1.source, "i"), p3 = /^(javascript|vbscript):/i, B3 = /^[A-Za-z][-.+A-Za-z0-9]*:(\/\/)?([^:/]*)/, g3 = /^(?:\/\/)?([^/#?:]+)/, oD = rD;
|
|
5205
|
-
function
|
|
5202
|
+
var l3 = /^(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|travelersinsurance|vermögensberatung|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbah1a3hjkrd|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--mgbcpq6gpa1a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbc0a9azcg|xn--nqv7fs00ema|americanfamily|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|wolterskluwer|xn--cckwcxetd|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--4dbrk0ce|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nextdirect|properties|protection|prudential|realestate|republican|restaurant|schaeffler|tatamotors|technology|university|vlaanderen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--q7ce6a|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|pramerica|richardli|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--qxa6a|xn--tckwe|xn--vhquv|yodobashi|موريتانيا|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|builders|business|capetown|catering|catholic|cipriani|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|softbank|software|stcgroup|supplies|training|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|banamex|bauhaus|bestbuy|booking|brother|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|singles|staples|storage|support|surgery|systems|temasek|theater|theatre|tickets|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|yamaxun|youtube|zuerich|католик|البحرين|الجزائر|العليان|پاکستان|كاثوليك|இந்தியா|abbott|abbvie|africa|agency|airbus|airtel|alipay|alsace|alstom|amazon|anquan|aramco|author|bayern|beauty|berlin|bharti|bostik|boston|broker|camera|career|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kindle|kosher|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|nagoya|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|walter|webcam|xihuan|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|भारतम्|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dance|deals|delta|drive|dubai|earth|edeka|email|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|irish|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|loans|locus|lotte|lotto|mango|media|miami|money|movie|music|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|ישראל|ایران|بازار|بھارت|سودان|سورية|همراه|भारोत|संगठन|বাংলা|భారత్|ഭാരതം|嘉里大酒店|aarp|able|aero|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|dvag|erni|fage|fail|fans|farm|fast|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kids|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|read|reit|rent|rest|rich|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scot|seat|seek|sexy|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بارت|بيتك|ڀارت|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ভাৰত|ਭਾਰਤ|ભારત|ଭାରତ|ಭಾರತ|ලංකා|アマゾン|グーグル|クラウド|ポイント|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|ceo|cfa|cfd|com|cpa|crs|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gay|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|llp|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|scb|sew|sex|sfr|ski|sky|soy|spa|srl|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|عرب|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ລາວ|ストア|セール|みんな|中文网|亚马逊|天主教|我爱你|新加坡|淡马锡|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)$/, R1 = /https?:\/\//i, E3 = new RegExp("^" + R1.source, "i"), h3 = /^(javascript|vbscript):/i, b3 = /^[A-Za-z][-.+A-Za-z0-9]*:(\/\/)?([^:/]*)/, p3 = /^(?:\/\/)?([^/#?:]+)/, oD = rD;
|
|
5203
|
+
function P1(u) {
|
|
5206
5204
|
return rD(u) || hu(u) || u === 43 || // '+'
|
|
5207
5205
|
u === 45 || // '-'
|
|
5208
5206
|
u === 46;
|
|
5209
5207
|
}
|
|
5210
5208
|
var Ju = Qu;
|
|
5211
|
-
function
|
|
5209
|
+
function bf(u) {
|
|
5212
5210
|
return u === 95 || Ju(u);
|
|
5213
5211
|
}
|
|
5214
|
-
function
|
|
5215
|
-
return Qu(u) ||
|
|
5212
|
+
function I1(u) {
|
|
5213
|
+
return Qu(u) || C3(u) || O1(u);
|
|
5216
5214
|
}
|
|
5217
|
-
function
|
|
5215
|
+
function pf(u) {
|
|
5218
5216
|
return u === 47 || // '/'
|
|
5219
5217
|
u === 63 || // '?'
|
|
5220
5218
|
u === 35;
|
|
5221
5219
|
}
|
|
5222
|
-
function
|
|
5223
|
-
return
|
|
5220
|
+
function L1(u) {
|
|
5221
|
+
return l3.test(u.toLowerCase());
|
|
5224
5222
|
}
|
|
5225
|
-
function
|
|
5226
|
-
if (
|
|
5223
|
+
function B3(u) {
|
|
5224
|
+
if (h3.test(u))
|
|
5227
5225
|
return !1;
|
|
5228
|
-
var D = u.match(
|
|
5226
|
+
var D = u.match(b3);
|
|
5229
5227
|
if (!D)
|
|
5230
5228
|
return !1;
|
|
5231
5229
|
var f = !!D[1], e = D[2];
|
|
5232
5230
|
return f ? !0 : !(e.indexOf(".") === -1 || !/[A-Za-z]/.test(e));
|
|
5233
5231
|
}
|
|
5234
|
-
function
|
|
5235
|
-
var D = u.match(
|
|
5232
|
+
function g3(u) {
|
|
5233
|
+
var D = u.match(p3);
|
|
5236
5234
|
if (!D)
|
|
5237
5235
|
return !1;
|
|
5238
5236
|
var f = D[0], e = f.split(".");
|
|
5239
5237
|
if (e.length < 2)
|
|
5240
5238
|
return !1;
|
|
5241
5239
|
var t = e[e.length - 1];
|
|
5242
|
-
return
|
|
5240
|
+
return !!L1(t);
|
|
5243
5241
|
}
|
|
5244
|
-
var
|
|
5245
|
-
function
|
|
5246
|
-
var D = u.split(
|
|
5247
|
-
return
|
|
5242
|
+
var m3 = /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/, _3 = /[:/?#]/;
|
|
5243
|
+
function y3(u) {
|
|
5244
|
+
var D = u.split(_3, 1)[0];
|
|
5245
|
+
return m3.test(D);
|
|
5248
5246
|
}
|
|
5249
|
-
var
|
|
5247
|
+
var v3 = /^(https?:\/\/)?(?:www\.)?/i, w3 = /^\/\//, A3 = (
|
|
5250
5248
|
/** @class */
|
|
5251
5249
|
function(u) {
|
|
5252
5250
|
CD(D, u);
|
|
@@ -5269,23 +5267,23 @@ var A3 = /^(https?:\/\/)?(?:www\.)?/i, x3 = /^\/\//, k3 = (
|
|
|
5269
5267
|
return f.replace(/&/g, "&");
|
|
5270
5268
|
}, D.prototype.getAnchorText = function() {
|
|
5271
5269
|
var f = this.getMatchedText();
|
|
5272
|
-
return this.protocolRelativeMatch && (f =
|
|
5270
|
+
return this.protocolRelativeMatch && (f = j3(f)), this.stripPrefix.scheme && (f = x3(f)), this.stripPrefix.www && (f = k3(f)), this.stripTrailingSlash && (f = S3(f)), this.decodePercentEncoding && (f = T3(f)), f;
|
|
5273
5271
|
}, D;
|
|
5274
5272
|
}(cD)
|
|
5275
5273
|
);
|
|
5276
|
-
function
|
|
5277
|
-
return u.replace(
|
|
5274
|
+
function x3(u) {
|
|
5275
|
+
return u.replace(E3, "");
|
|
5278
5276
|
}
|
|
5279
|
-
function
|
|
5280
|
-
return u.includes("www.") ? u.replace(
|
|
5277
|
+
function k3(u) {
|
|
5278
|
+
return u.includes("www.") ? u.replace(v3, "$1") : u;
|
|
5281
5279
|
}
|
|
5282
|
-
function
|
|
5283
|
-
return u.replace(
|
|
5280
|
+
function j3(u) {
|
|
5281
|
+
return u.replace(w3, "");
|
|
5284
5282
|
}
|
|
5285
|
-
function
|
|
5283
|
+
function S3(u) {
|
|
5286
5284
|
return u.charAt(u.length - 1) === "/" && (u = u.slice(0, -1)), u;
|
|
5287
5285
|
}
|
|
5288
|
-
function
|
|
5286
|
+
function T3(u) {
|
|
5289
5287
|
var D = u.replace(/%(?:22|26|27|3C|3E)/gi, function(f) {
|
|
5290
5288
|
return f === "%22" ? """ : f === "%26" ? "&" : f === "%27" ? "'" : f === "%3C" || f === "%3c" ? "<" : ">";
|
|
5291
5289
|
});
|
|
@@ -5296,15 +5294,15 @@ function O3(u) {
|
|
|
5296
5294
|
}
|
|
5297
5295
|
return D;
|
|
5298
5296
|
}
|
|
5299
|
-
var
|
|
5300
|
-
function
|
|
5301
|
-
return
|
|
5297
|
+
var N3 = /^mailto:/i, $1 = Qu;
|
|
5298
|
+
function Bf(u) {
|
|
5299
|
+
return $1(u) || d3(u);
|
|
5302
5300
|
}
|
|
5303
|
-
function
|
|
5301
|
+
function O3(u) {
|
|
5304
5302
|
var D = u.split(".").pop();
|
|
5305
|
-
return
|
|
5303
|
+
return L1(D);
|
|
5306
5304
|
}
|
|
5307
|
-
var
|
|
5305
|
+
var R3 = (
|
|
5308
5306
|
/** @class */
|
|
5309
5307
|
function(u) {
|
|
5310
5308
|
CD(D, u);
|
|
@@ -5323,19 +5321,19 @@ var I3 = (
|
|
|
5323
5321
|
}, D;
|
|
5324
5322
|
}(cD)
|
|
5325
5323
|
);
|
|
5326
|
-
function
|
|
5324
|
+
function M1(u) {
|
|
5327
5325
|
return u === 95 || Qu(u);
|
|
5328
5326
|
}
|
|
5329
|
-
function
|
|
5327
|
+
function P3(u) {
|
|
5330
5328
|
return u.length <= 140;
|
|
5331
5329
|
}
|
|
5332
|
-
var
|
|
5330
|
+
var I3 = [
|
|
5333
5331
|
"twitter",
|
|
5334
5332
|
"facebook",
|
|
5335
5333
|
"instagram",
|
|
5336
5334
|
"tiktok",
|
|
5337
5335
|
"youtube"
|
|
5338
|
-
],
|
|
5336
|
+
], L3 = (
|
|
5339
5337
|
/** @class */
|
|
5340
5338
|
function(u) {
|
|
5341
5339
|
CD(D, u);
|
|
@@ -5372,7 +5370,7 @@ var $3 = [
|
|
|
5372
5370
|
return e && f.push(e), f;
|
|
5373
5371
|
}, D;
|
|
5374
5372
|
}(cD)
|
|
5375
|
-
),
|
|
5373
|
+
), $3 = {
|
|
5376
5374
|
twitter: /^@\w{1,15}$/,
|
|
5377
5375
|
instagram: /^@[_\w]{1,30}$/,
|
|
5378
5376
|
soundcloud: /^@[-a-z0-9_]{3,25}$/,
|
|
@@ -5384,23 +5382,23 @@ var $3 = [
|
|
|
5384
5382
|
// https://support.google.com/youtube/answer/11585688?hl=en&co=GENIE.Platform%3DAndroid#tns
|
|
5385
5383
|
youtube: /^@[-.·\w]{3,30}$/
|
|
5386
5384
|
};
|
|
5387
|
-
function
|
|
5385
|
+
function q1(u) {
|
|
5388
5386
|
return u === 45 || // '-'
|
|
5389
5387
|
u === 46 || // '.'
|
|
5390
5388
|
u === 95 || // '_'
|
|
5391
5389
|
rD(u) || hu(u);
|
|
5392
5390
|
}
|
|
5393
|
-
function
|
|
5394
|
-
var f =
|
|
5391
|
+
function M3(u, D) {
|
|
5392
|
+
var f = $3[D];
|
|
5395
5393
|
return f.test(u);
|
|
5396
5394
|
}
|
|
5397
|
-
var
|
|
5395
|
+
var q3 = [
|
|
5398
5396
|
"twitter",
|
|
5399
5397
|
"instagram",
|
|
5400
5398
|
"soundcloud",
|
|
5401
5399
|
"tiktok",
|
|
5402
5400
|
"youtube"
|
|
5403
|
-
],
|
|
5401
|
+
], z3 = (
|
|
5404
5402
|
/** @class */
|
|
5405
5403
|
function(u) {
|
|
5406
5404
|
CD(D, u);
|
|
@@ -5436,21 +5434,21 @@ var U3 = [
|
|
|
5436
5434
|
return e && f.push(e), f;
|
|
5437
5435
|
}, D;
|
|
5438
5436
|
}(cD)
|
|
5439
|
-
),
|
|
5440
|
-
function
|
|
5437
|
+
), U3 = /[-. ()]/, V3 = /(?:(?:(?:(\+)?\d{1,3}[-. ]?)?\(?\d{3}\)?[-. ]?\d{3}[-. ]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-. ]?(?:\d[-. ]?){6,12}\d+))([,;]+[0-9]+#?)*/, W3 = /(0([1-9]-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/, H3 = new RegExp("^".concat(V3.source, "|").concat(W3.source, "$"));
|
|
5438
|
+
function z1(u) {
|
|
5441
5439
|
return u === 45 || // '-'
|
|
5442
5440
|
u === 46 || // '.'
|
|
5443
5441
|
u === 32;
|
|
5444
5442
|
}
|
|
5445
|
-
function
|
|
5443
|
+
function gf(u) {
|
|
5446
5444
|
return u === 44 || // ','
|
|
5447
5445
|
u === 59;
|
|
5448
5446
|
}
|
|
5449
|
-
function
|
|
5450
|
-
var D = u.charAt(0) === "+" ||
|
|
5451
|
-
return D &&
|
|
5447
|
+
function Y3(u) {
|
|
5448
|
+
var D = u.charAt(0) === "+" || U3.test(u);
|
|
5449
|
+
return D && H3.test(u);
|
|
5452
5450
|
}
|
|
5453
|
-
var
|
|
5451
|
+
var K3 = (
|
|
5454
5452
|
/** @class */
|
|
5455
5453
|
function(u) {
|
|
5456
5454
|
CD(D, u);
|
|
@@ -5470,7 +5468,7 @@ var G3 = (
|
|
|
5470
5468
|
return this.matchedText;
|
|
5471
5469
|
}, D;
|
|
5472
5470
|
}(cD)
|
|
5473
|
-
),
|
|
5471
|
+
), J3 = (
|
|
5474
5472
|
/** @class */
|
|
5475
5473
|
function() {
|
|
5476
5474
|
function u(D, f) {
|
|
@@ -5483,18 +5481,18 @@ var G3 = (
|
|
|
5483
5481
|
enumerable: !1,
|
|
5484
5482
|
configurable: !0
|
|
5485
5483
|
}), u.prototype.addMachine = function(D) {
|
|
5486
|
-
this._stateMachines.push(D),
|
|
5484
|
+
this._stateMachines.push(D), Yf(D) && this.schemeUrlMachinesCount++;
|
|
5487
5485
|
}, u.prototype.removeMachine = function(D) {
|
|
5488
5486
|
this._stateMachines = this._stateMachines.filter(function(f) {
|
|
5489
5487
|
return f !== D;
|
|
5490
|
-
}),
|
|
5488
|
+
}), Yf(D) && this.schemeUrlMachinesCount--;
|
|
5491
5489
|
}, u.prototype.hasSchemeUrlMachine = function() {
|
|
5492
5490
|
return this.schemeUrlMachinesCount > 0;
|
|
5493
5491
|
}, u;
|
|
5494
5492
|
}()
|
|
5495
5493
|
);
|
|
5496
|
-
function
|
|
5497
|
-
for (var f = new
|
|
5494
|
+
function G3(u, D) {
|
|
5495
|
+
for (var f = new J3(u, D); f.charIdx < f.text.length; f.charIdx++) {
|
|
5498
5496
|
var e = u.charAt(f.charIdx), t = u.charCodeAt(f.charIdx);
|
|
5499
5497
|
if (f.stateMachines.length === 0)
|
|
5500
5498
|
jD(f, e, t);
|
|
@@ -5503,130 +5501,130 @@ function Z3(u, D) {
|
|
|
5503
5501
|
var r = f.stateMachines[n];
|
|
5504
5502
|
switch (r.state) {
|
|
5505
5503
|
case 11:
|
|
5506
|
-
|
|
5504
|
+
f2(f, r, t);
|
|
5507
5505
|
break;
|
|
5508
5506
|
case 12:
|
|
5509
|
-
|
|
5507
|
+
e2(f, r, t);
|
|
5510
5508
|
break;
|
|
5511
5509
|
case 0:
|
|
5512
|
-
|
|
5510
|
+
X3(f, r, t);
|
|
5513
5511
|
break;
|
|
5514
5512
|
case 1:
|
|
5515
|
-
|
|
5513
|
+
Z3(f, r, t);
|
|
5516
5514
|
break;
|
|
5517
5515
|
case 2:
|
|
5518
|
-
|
|
5516
|
+
Q3(f, r, t);
|
|
5519
5517
|
break;
|
|
5520
5518
|
case 3:
|
|
5521
|
-
|
|
5519
|
+
u2(f, r, t);
|
|
5522
5520
|
break;
|
|
5523
5521
|
case 4:
|
|
5524
|
-
|
|
5522
|
+
D2(f, r, e, t);
|
|
5525
5523
|
break;
|
|
5526
5524
|
case 5:
|
|
5527
|
-
|
|
5525
|
+
t2(f, r, t);
|
|
5528
5526
|
break;
|
|
5529
5527
|
case 6:
|
|
5530
|
-
|
|
5528
|
+
n2(f, r, e, t);
|
|
5531
5529
|
break;
|
|
5532
5530
|
case 7:
|
|
5533
|
-
|
|
5531
|
+
r2(f, r, e, t);
|
|
5534
5532
|
break;
|
|
5535
5533
|
case 13:
|
|
5536
|
-
|
|
5534
|
+
a2(f, r, t);
|
|
5537
5535
|
break;
|
|
5538
5536
|
case 14:
|
|
5539
|
-
|
|
5537
|
+
s2(f, r, t);
|
|
5540
5538
|
break;
|
|
5541
5539
|
case 8:
|
|
5542
|
-
|
|
5540
|
+
F2(f, r, t);
|
|
5543
5541
|
break;
|
|
5544
5542
|
case 9:
|
|
5545
|
-
|
|
5543
|
+
i2(f, r, t);
|
|
5546
5544
|
break;
|
|
5547
5545
|
case 10:
|
|
5548
|
-
|
|
5546
|
+
o2(f, r, t);
|
|
5549
5547
|
break;
|
|
5550
5548
|
case 15:
|
|
5551
|
-
|
|
5549
|
+
d2(f, r, e, t);
|
|
5552
5550
|
break;
|
|
5553
5551
|
case 16:
|
|
5554
|
-
|
|
5552
|
+
C2(f, r, e, t);
|
|
5555
5553
|
break;
|
|
5556
5554
|
case 17:
|
|
5557
|
-
|
|
5555
|
+
c2(f, r, e, t);
|
|
5558
5556
|
break;
|
|
5559
5557
|
case 18:
|
|
5560
|
-
|
|
5558
|
+
l2(f, r, e, t);
|
|
5561
5559
|
break;
|
|
5562
5560
|
case 19:
|
|
5563
|
-
|
|
5561
|
+
E2(f, r, e, t);
|
|
5564
5562
|
break;
|
|
5565
5563
|
case 20:
|
|
5566
|
-
|
|
5564
|
+
h2(f, r, t);
|
|
5567
5565
|
break;
|
|
5568
5566
|
case 21:
|
|
5569
|
-
|
|
5567
|
+
b2(f, r, t);
|
|
5570
5568
|
break;
|
|
5571
5569
|
case 22:
|
|
5572
5570
|
uD(f, r, t);
|
|
5573
5571
|
break;
|
|
5574
5572
|
case 23:
|
|
5575
|
-
|
|
5573
|
+
p2(f, r, t);
|
|
5576
5574
|
break;
|
|
5577
5575
|
case 24:
|
|
5578
|
-
|
|
5576
|
+
B2(f, r, t);
|
|
5579
5577
|
break;
|
|
5580
5578
|
case 25:
|
|
5581
|
-
|
|
5579
|
+
g2(f, r, t);
|
|
5582
5580
|
break;
|
|
5583
5581
|
case 26:
|
|
5584
|
-
|
|
5582
|
+
m2(f, r, t);
|
|
5585
5583
|
break;
|
|
5586
5584
|
case 27:
|
|
5587
|
-
|
|
5585
|
+
_2(f, r, t);
|
|
5588
5586
|
break;
|
|
5589
5587
|
case 28:
|
|
5590
|
-
|
|
5588
|
+
y2(f, r, t);
|
|
5591
5589
|
break;
|
|
5592
5590
|
case 29:
|
|
5593
|
-
|
|
5591
|
+
v2(f, r, t);
|
|
5594
5592
|
break;
|
|
5595
5593
|
case 30:
|
|
5596
|
-
|
|
5594
|
+
w2(f, r, t);
|
|
5597
5595
|
break;
|
|
5598
5596
|
case 31:
|
|
5599
|
-
|
|
5597
|
+
A2(f, r, t);
|
|
5600
5598
|
break;
|
|
5601
5599
|
case 32:
|
|
5602
|
-
|
|
5600
|
+
k2(f, r, e, t);
|
|
5603
5601
|
break;
|
|
5604
5602
|
case 33:
|
|
5605
|
-
|
|
5603
|
+
j2(f, r, t);
|
|
5606
5604
|
break;
|
|
5607
5605
|
case 34:
|
|
5608
|
-
|
|
5606
|
+
S2(f, r, t);
|
|
5609
5607
|
break;
|
|
5610
5608
|
case 35:
|
|
5611
|
-
|
|
5609
|
+
T2(f, r, t);
|
|
5612
5610
|
break;
|
|
5613
5611
|
case 36:
|
|
5614
|
-
|
|
5612
|
+
N2(f, r, e, t);
|
|
5615
5613
|
break;
|
|
5616
5614
|
case 37:
|
|
5617
|
-
|
|
5615
|
+
x2(f, r, e, t);
|
|
5618
5616
|
break;
|
|
5619
5617
|
case 38:
|
|
5620
|
-
|
|
5618
|
+
O2(f, r, e, t);
|
|
5621
5619
|
break;
|
|
5622
5620
|
case 39:
|
|
5623
|
-
|
|
5621
|
+
R2(f, r, e, t);
|
|
5624
5622
|
break;
|
|
5625
5623
|
case 40:
|
|
5626
|
-
|
|
5624
|
+
P2(f, r, t);
|
|
5627
5625
|
break;
|
|
5628
5626
|
case 41:
|
|
5629
|
-
|
|
5627
|
+
I2(f, r, t);
|
|
5630
5628
|
break;
|
|
5631
5629
|
default:
|
|
5632
5630
|
Xu(r.state);
|
|
@@ -5651,71 +5649,71 @@ function Z3(u, D) {
|
|
|
5651
5649
|
function jD(u, D, f) {
|
|
5652
5650
|
var e = u.charIdx;
|
|
5653
5651
|
if (f === 35)
|
|
5654
|
-
u.addMachine(
|
|
5652
|
+
u.addMachine(z2(
|
|
5655
5653
|
e,
|
|
5656
5654
|
28
|
|
5657
5655
|
/* State.HashtagHashChar */
|
|
5658
5656
|
));
|
|
5659
5657
|
else if (f === 64)
|
|
5660
|
-
u.addMachine(
|
|
5658
|
+
u.addMachine(U2(
|
|
5661
5659
|
e,
|
|
5662
5660
|
30
|
|
5663
5661
|
/* State.MentionAtChar */
|
|
5664
5662
|
));
|
|
5665
5663
|
else if (f === 47)
|
|
5666
|
-
u.addMachine(
|
|
5664
|
+
u.addMachine(tf(
|
|
5667
5665
|
e,
|
|
5668
5666
|
11
|
|
5669
5667
|
/* State.ProtocolRelativeSlash1 */
|
|
5670
5668
|
));
|
|
5671
5669
|
else if (f === 43)
|
|
5672
|
-
u.addMachine(
|
|
5670
|
+
u.addMachine(UD(
|
|
5673
5671
|
e,
|
|
5674
5672
|
37
|
|
5675
5673
|
/* State.PhoneNumberPlus */
|
|
5676
5674
|
));
|
|
5677
5675
|
else if (f === 40)
|
|
5678
|
-
u.addMachine(
|
|
5676
|
+
u.addMachine(UD(
|
|
5679
5677
|
e,
|
|
5680
5678
|
32
|
|
5681
5679
|
/* State.PhoneNumberOpenParen */
|
|
5682
5680
|
));
|
|
5683
5681
|
else {
|
|
5684
|
-
if (hu(f) && (u.addMachine(
|
|
5682
|
+
if (hu(f) && (u.addMachine(UD(
|
|
5685
5683
|
e,
|
|
5686
5684
|
38
|
|
5687
5685
|
/* State.PhoneNumberDigit */
|
|
5688
|
-
)), u.addMachine(
|
|
5686
|
+
)), u.addMachine(M2(
|
|
5689
5687
|
e,
|
|
5690
5688
|
13
|
|
5691
5689
|
/* State.IpV4Digit */
|
|
5692
|
-
))),
|
|
5690
|
+
))), $1(f)) {
|
|
5693
5691
|
var t = D.toLowerCase() === "m" ? 15 : 22;
|
|
5694
|
-
u.addMachine(
|
|
5692
|
+
u.addMachine(q2(e, t));
|
|
5695
5693
|
}
|
|
5696
5694
|
oD(f) && u.addMachine(SD(
|
|
5697
5695
|
e,
|
|
5698
5696
|
0
|
|
5699
5697
|
/* State.SchemeChar */
|
|
5700
|
-
)), Qu(f) && u.addMachine(
|
|
5698
|
+
)), Qu(f) && u.addMachine(tf(
|
|
5701
5699
|
e,
|
|
5702
5700
|
5
|
|
5703
5701
|
/* State.DomainLabelChar */
|
|
5704
5702
|
));
|
|
5705
5703
|
}
|
|
5706
5704
|
}
|
|
5707
|
-
function
|
|
5708
|
-
f === 58 ? D.state = 2 : f === 45 ? D.state = 1 :
|
|
5705
|
+
function X3(u, D, f) {
|
|
5706
|
+
f === 58 ? D.state = 2 : f === 45 ? D.state = 1 : P1(f) || u.removeMachine(D);
|
|
5709
5707
|
}
|
|
5710
|
-
function
|
|
5708
|
+
function Z3(u, D, f) {
|
|
5711
5709
|
var e = u.charIdx;
|
|
5712
|
-
f === 45 || (f === 47 ? (u.removeMachine(D), u.addMachine(
|
|
5710
|
+
f === 45 || (f === 47 ? (u.removeMachine(D), u.addMachine(tf(
|
|
5713
5711
|
e,
|
|
5714
5712
|
11
|
|
5715
5713
|
/* State.ProtocolRelativeSlash1 */
|
|
5716
|
-
))) :
|
|
5714
|
+
))) : P1(f) ? D.state = 0 : u.removeMachine(D));
|
|
5717
5715
|
}
|
|
5718
|
-
function
|
|
5716
|
+
function Q3(u, D, f) {
|
|
5719
5717
|
var e = u.charIdx;
|
|
5720
5718
|
f === 47 ? D.state = 3 : f === 46 ? u.removeMachine(D) : Ju(f) ? (D.state = 5, oD(f) && u.addMachine(SD(
|
|
5721
5719
|
e,
|
|
@@ -5723,162 +5721,162 @@ function D2(u, D, f) {
|
|
|
5723
5721
|
/* State.SchemeChar */
|
|
5724
5722
|
))) : u.removeMachine(D);
|
|
5725
5723
|
}
|
|
5726
|
-
function
|
|
5727
|
-
f === 47 ? D.state = 4 :
|
|
5724
|
+
function u2(u, D, f) {
|
|
5725
|
+
f === 47 ? D.state = 4 : I1(f) ? (D.state = 10, D.acceptStateReached = !0) : tu(u, D);
|
|
5728
5726
|
}
|
|
5729
|
-
function
|
|
5727
|
+
function D2(u, D, f, e) {
|
|
5730
5728
|
e === 47 ? (D.state = 10, D.acceptStateReached = !0) : Ju(e) ? (D.state = 5, D.acceptStateReached = !0) : u.removeMachine(D);
|
|
5731
5729
|
}
|
|
5732
|
-
function
|
|
5730
|
+
function f2(u, D, f) {
|
|
5733
5731
|
f === 47 ? D.state = 12 : u.removeMachine(D);
|
|
5734
5732
|
}
|
|
5735
|
-
function
|
|
5733
|
+
function e2(u, D, f) {
|
|
5736
5734
|
Ju(f) ? D.state = 5 : u.removeMachine(D);
|
|
5737
5735
|
}
|
|
5738
|
-
function
|
|
5739
|
-
f === 46 ? D.state = 7 : f === 45 ? D.state = 6 : f === 58 ? D.state = 8 :
|
|
5736
|
+
function t2(u, D, f) {
|
|
5737
|
+
f === 46 ? D.state = 7 : f === 45 ? D.state = 6 : f === 58 ? D.state = 8 : pf(f) ? D.state = 10 : bf(f) || tu(u, D);
|
|
5740
5738
|
}
|
|
5741
|
-
function
|
|
5739
|
+
function n2(u, D, f, e) {
|
|
5742
5740
|
e === 45 || (e === 46 ? tu(u, D) : Ju(e) ? D.state = 5 : tu(u, D));
|
|
5743
5741
|
}
|
|
5744
|
-
function
|
|
5742
|
+
function r2(u, D, f, e) {
|
|
5745
5743
|
e === 46 ? tu(u, D) : Ju(e) ? (D.state = 5, D.acceptStateReached = !0) : tu(u, D);
|
|
5746
5744
|
}
|
|
5747
|
-
function
|
|
5748
|
-
f === 46 ? D.state = 14 : f === 58 ? D.state = 8 : hu(f) || (
|
|
5745
|
+
function a2(u, D, f) {
|
|
5746
|
+
f === 46 ? D.state = 14 : f === 58 ? D.state = 8 : hu(f) || (pf(f) ? D.state = 10 : Qu(f) ? u.removeMachine(D) : tu(u, D));
|
|
5749
5747
|
}
|
|
5750
|
-
function
|
|
5748
|
+
function s2(u, D, f) {
|
|
5751
5749
|
hu(f) ? (D.octetsEncountered++, D.octetsEncountered === 4 && (D.acceptStateReached = !0), D.state = 13) : tu(u, D);
|
|
5752
5750
|
}
|
|
5753
|
-
function
|
|
5751
|
+
function F2(u, D, f) {
|
|
5754
5752
|
hu(f) ? D.state = 9 : tu(u, D);
|
|
5755
5753
|
}
|
|
5756
|
-
function
|
|
5757
|
-
hu(f) || (
|
|
5754
|
+
function i2(u, D, f) {
|
|
5755
|
+
hu(f) || (pf(f) ? D.state = 10 : tu(u, D));
|
|
5758
5756
|
}
|
|
5759
|
-
function
|
|
5760
|
-
|
|
5757
|
+
function o2(u, D, f) {
|
|
5758
|
+
I1(f) || tu(u, D);
|
|
5761
5759
|
}
|
|
5762
|
-
function
|
|
5760
|
+
function d2(u, D, f, e) {
|
|
5763
5761
|
f.toLowerCase() === "a" ? D.state = 16 : uD(u, D, e);
|
|
5764
5762
|
}
|
|
5765
|
-
function
|
|
5763
|
+
function C2(u, D, f, e) {
|
|
5766
5764
|
f.toLowerCase() === "i" ? D.state = 17 : uD(u, D, e);
|
|
5767
5765
|
}
|
|
5768
|
-
function
|
|
5766
|
+
function c2(u, D, f, e) {
|
|
5769
5767
|
f.toLowerCase() === "l" ? D.state = 18 : uD(u, D, e);
|
|
5770
5768
|
}
|
|
5771
|
-
function
|
|
5769
|
+
function l2(u, D, f, e) {
|
|
5772
5770
|
f.toLowerCase() === "t" ? D.state = 19 : uD(u, D, e);
|
|
5773
5771
|
}
|
|
5774
|
-
function
|
|
5772
|
+
function E2(u, D, f, e) {
|
|
5775
5773
|
f.toLowerCase() === "o" ? D.state = 20 : uD(u, D, e);
|
|
5776
5774
|
}
|
|
5777
|
-
function
|
|
5775
|
+
function h2(u, D, f) {
|
|
5778
5776
|
f === 58 ? D.state = 21 : uD(u, D, f);
|
|
5779
5777
|
}
|
|
5780
|
-
function
|
|
5781
|
-
|
|
5778
|
+
function b2(u, D, f) {
|
|
5779
|
+
Bf(f) ? D.state = 22 : u.removeMachine(D);
|
|
5782
5780
|
}
|
|
5783
5781
|
function uD(u, D, f) {
|
|
5784
|
-
f === 46 ? D.state = 23 : f === 64 ? D.state = 24 :
|
|
5782
|
+
f === 46 ? D.state = 23 : f === 64 ? D.state = 24 : Bf(f) ? D.state = 22 : u.removeMachine(D);
|
|
5783
|
+
}
|
|
5784
|
+
function p2(u, D, f) {
|
|
5785
|
+
f === 46 || f === 64 ? u.removeMachine(D) : Bf(f) ? D.state = 22 : u.removeMachine(D);
|
|
5786
|
+
}
|
|
5787
|
+
function B2(u, D, f) {
|
|
5788
|
+
Ju(f) ? D.state = 25 : u.removeMachine(D);
|
|
5785
5789
|
}
|
|
5786
5790
|
function g2(u, D, f) {
|
|
5787
|
-
f === 46
|
|
5791
|
+
f === 46 ? D.state = 27 : f === 45 ? D.state = 26 : bf(f) || tu(u, D);
|
|
5788
5792
|
}
|
|
5789
5793
|
function m2(u, D, f) {
|
|
5790
|
-
|
|
5794
|
+
f === 45 || f === 46 ? tu(u, D) : bf(f) ? D.state = 25 : tu(u, D);
|
|
5791
5795
|
}
|
|
5792
5796
|
function _2(u, D, f) {
|
|
5793
|
-
f === 46 ? D
|
|
5797
|
+
f === 46 || f === 45 ? tu(u, D) : Ju(f) ? (D.state = 25, D.acceptStateReached = !0) : tu(u, D);
|
|
5794
5798
|
}
|
|
5795
5799
|
function y2(u, D, f) {
|
|
5796
|
-
f
|
|
5800
|
+
M1(f) ? (D.state = 29, D.acceptStateReached = !0) : u.removeMachine(D);
|
|
5797
5801
|
}
|
|
5798
5802
|
function v2(u, D, f) {
|
|
5799
|
-
|
|
5803
|
+
M1(f) || tu(u, D);
|
|
5800
5804
|
}
|
|
5801
5805
|
function w2(u, D, f) {
|
|
5802
|
-
q1(f) ? (D.state =
|
|
5806
|
+
q1(f) ? (D.state = 31, D.acceptStateReached = !0) : u.removeMachine(D);
|
|
5803
5807
|
}
|
|
5804
5808
|
function A2(u, D, f) {
|
|
5805
|
-
q1(f) || tu(u, D);
|
|
5806
|
-
}
|
|
5807
|
-
function x2(u, D, f) {
|
|
5808
|
-
z1(f) ? (D.state = 31, D.acceptStateReached = !0) : u.removeMachine(D);
|
|
5809
|
+
q1(f) || (Qu(f) ? u.removeMachine(D) : tu(u, D));
|
|
5809
5810
|
}
|
|
5810
|
-
function
|
|
5811
|
-
z1(f) || (Qu(f) ? u.removeMachine(D) : tu(u, D));
|
|
5812
|
-
}
|
|
5813
|
-
function j2(u, D, f, e) {
|
|
5811
|
+
function x2(u, D, f, e) {
|
|
5814
5812
|
hu(e) ? D.state = 38 : (u.removeMachine(D), jD(u, f, e));
|
|
5815
5813
|
}
|
|
5816
|
-
function
|
|
5814
|
+
function k2(u, D, f, e) {
|
|
5817
5815
|
hu(e) ? D.state = 33 : u.removeMachine(D), jD(u, f, e);
|
|
5818
5816
|
}
|
|
5819
|
-
function
|
|
5817
|
+
function j2(u, D, f) {
|
|
5820
5818
|
hu(f) ? D.state = 34 : u.removeMachine(D);
|
|
5821
5819
|
}
|
|
5822
|
-
function
|
|
5820
|
+
function S2(u, D, f) {
|
|
5823
5821
|
hu(f) ? D.state = 35 : u.removeMachine(D);
|
|
5824
5822
|
}
|
|
5825
|
-
function
|
|
5823
|
+
function T2(u, D, f) {
|
|
5826
5824
|
f === 41 ? D.state = 36 : u.removeMachine(D);
|
|
5827
5825
|
}
|
|
5828
|
-
function
|
|
5829
|
-
hu(e) ? D.state = 38 :
|
|
5826
|
+
function N2(u, D, f, e) {
|
|
5827
|
+
hu(e) ? D.state = 38 : z1(e) ? D.state = 39 : u.removeMachine(D);
|
|
5830
5828
|
}
|
|
5831
|
-
function
|
|
5829
|
+
function O2(u, D, f, e) {
|
|
5832
5830
|
var t = u.charIdx;
|
|
5833
|
-
D.acceptStateReached = !0,
|
|
5831
|
+
D.acceptStateReached = !0, gf(e) ? D.state = 40 : e === 35 ? D.state = 41 : hu(e) || (e === 40 ? D.state = 32 : z1(e) ? D.state = 39 : (tu(u, D), oD(e) && u.addMachine(SD(
|
|
5834
5832
|
t,
|
|
5835
5833
|
0
|
|
5836
5834
|
/* State.SchemeChar */
|
|
5837
5835
|
))));
|
|
5838
5836
|
}
|
|
5839
|
-
function
|
|
5837
|
+
function R2(u, D, f, e) {
|
|
5840
5838
|
hu(e) ? D.state = 38 : e === 40 ? D.state = 32 : (tu(u, D), jD(u, f, e));
|
|
5841
5839
|
}
|
|
5842
|
-
function
|
|
5843
|
-
|
|
5840
|
+
function P2(u, D, f) {
|
|
5841
|
+
gf(f) || (f === 35 ? D.state = 41 : hu(f) ? D.state = 38 : tu(u, D));
|
|
5844
5842
|
}
|
|
5845
|
-
function
|
|
5846
|
-
|
|
5843
|
+
function I2(u, D, f) {
|
|
5844
|
+
gf(f) ? D.state = 40 : hu(f) ? u.removeMachine(D) : tu(u, D);
|
|
5847
5845
|
}
|
|
5848
5846
|
function tu(u, D) {
|
|
5849
5847
|
var f = u.matches, e = u.text, t = u.charIdx, n = u.tagBuilder, r = u.stripPrefix, s = u.stripTrailingSlash, F = u.decodePercentEncoding, o = u.hashtagServiceName, d = u.mentionServiceName;
|
|
5850
5848
|
if (u.removeMachine(D), !!D.acceptStateReached) {
|
|
5851
5849
|
var c = D.startIdx, l = e.slice(D.startIdx, t);
|
|
5852
|
-
switch (l =
|
|
5850
|
+
switch (l = $2(l), D.type) {
|
|
5853
5851
|
case 0: {
|
|
5854
5852
|
var j = e.charCodeAt(D.startIdx - 1);
|
|
5855
5853
|
if (j === 64)
|
|
5856
5854
|
return;
|
|
5857
5855
|
switch (D.matchType) {
|
|
5858
5856
|
case 0: {
|
|
5859
|
-
var m =
|
|
5860
|
-
if (m && (c = c + m.index, l = l.slice(m.index)), !
|
|
5857
|
+
var m = R1.exec(l);
|
|
5858
|
+
if (m && (c = c + m.index, l = l.slice(m.index)), !B3(l))
|
|
5861
5859
|
return;
|
|
5862
5860
|
break;
|
|
5863
5861
|
}
|
|
5864
5862
|
case 1: {
|
|
5865
|
-
if (!
|
|
5863
|
+
if (!g3(l))
|
|
5866
5864
|
return;
|
|
5867
5865
|
break;
|
|
5868
5866
|
}
|
|
5869
5867
|
case 2: {
|
|
5870
|
-
if (!
|
|
5868
|
+
if (!y3(l))
|
|
5871
5869
|
return;
|
|
5872
5870
|
break;
|
|
5873
5871
|
}
|
|
5874
5872
|
default:
|
|
5875
5873
|
Xu(D);
|
|
5876
5874
|
}
|
|
5877
|
-
f.push(new
|
|
5875
|
+
f.push(new A3({
|
|
5878
5876
|
tagBuilder: n,
|
|
5879
5877
|
matchedText: l,
|
|
5880
5878
|
offset: c,
|
|
5881
|
-
urlMatchType:
|
|
5879
|
+
urlMatchType: L2(D.matchType),
|
|
5882
5880
|
url: l,
|
|
5883
5881
|
protocolRelativeMatch: l.slice(0, 2) === "//",
|
|
5884
5882
|
// TODO: Do these settings need to be passed to the match,
|
|
@@ -5890,16 +5888,16 @@ function tu(u, D) {
|
|
|
5890
5888
|
break;
|
|
5891
5889
|
}
|
|
5892
5890
|
case 1: {
|
|
5893
|
-
|
|
5891
|
+
O3(l) && f.push(new R3({
|
|
5894
5892
|
tagBuilder: n,
|
|
5895
5893
|
matchedText: l,
|
|
5896
5894
|
offset: c,
|
|
5897
|
-
email: l.replace(
|
|
5895
|
+
email: l.replace(N3, "")
|
|
5898
5896
|
}));
|
|
5899
5897
|
break;
|
|
5900
5898
|
}
|
|
5901
5899
|
case 2: {
|
|
5902
|
-
|
|
5900
|
+
P3(l) && f.push(new L3({
|
|
5903
5901
|
tagBuilder: n,
|
|
5904
5902
|
matchedText: l,
|
|
5905
5903
|
offset: c,
|
|
@@ -5909,7 +5907,7 @@ function tu(u, D) {
|
|
|
5909
5907
|
break;
|
|
5910
5908
|
}
|
|
5911
5909
|
case 3: {
|
|
5912
|
-
|
|
5910
|
+
M3(l, d) && f.push(new z3({
|
|
5913
5911
|
tagBuilder: n,
|
|
5914
5912
|
matchedText: l,
|
|
5915
5913
|
offset: c,
|
|
@@ -5920,9 +5918,9 @@ function tu(u, D) {
|
|
|
5920
5918
|
break;
|
|
5921
5919
|
}
|
|
5922
5920
|
case 4: {
|
|
5923
|
-
if (l = l.replace(/ +$/g, ""),
|
|
5921
|
+
if (l = l.replace(/ +$/g, ""), Y3(l)) {
|
|
5924
5922
|
var C = l.replace(/[^0-9,;#]/g, "");
|
|
5925
|
-
f.push(new
|
|
5923
|
+
f.push(new K3({
|
|
5926
5924
|
tagBuilder: n,
|
|
5927
5925
|
matchedText: l,
|
|
5928
5926
|
offset: c,
|
|
@@ -5937,7 +5935,7 @@ function tu(u, D) {
|
|
|
5937
5935
|
}
|
|
5938
5936
|
}
|
|
5939
5937
|
}
|
|
5940
|
-
function
|
|
5938
|
+
function L2(u) {
|
|
5941
5939
|
switch (u) {
|
|
5942
5940
|
case 0:
|
|
5943
5941
|
return "scheme";
|
|
@@ -5949,29 +5947,29 @@ function M2(u) {
|
|
|
5949
5947
|
Xu(u);
|
|
5950
5948
|
}
|
|
5951
5949
|
}
|
|
5952
|
-
var
|
|
5950
|
+
var Hf = {
|
|
5953
5951
|
")": "(",
|
|
5954
5952
|
"}": "{",
|
|
5955
5953
|
"]": "["
|
|
5956
5954
|
};
|
|
5957
|
-
function
|
|
5955
|
+
function $2(u) {
|
|
5958
5956
|
for (var D = {
|
|
5959
5957
|
"(": 0,
|
|
5960
5958
|
"{": 0,
|
|
5961
5959
|
"[": 0
|
|
5962
5960
|
}, f = 0; f < u.length; f++) {
|
|
5963
5961
|
var e = u.charAt(f), t = u.charCodeAt(f);
|
|
5964
|
-
|
|
5962
|
+
c3(t) ? D[e]++ : Wf(t) && D[Hf[e]]--;
|
|
5965
5963
|
}
|
|
5966
5964
|
for (var n = u.length - 1; n >= 0; ) {
|
|
5967
5965
|
var e = u.charAt(n), t = u.charCodeAt(n);
|
|
5968
|
-
if (
|
|
5969
|
-
var r =
|
|
5966
|
+
if (Wf(t)) {
|
|
5967
|
+
var r = Hf[e];
|
|
5970
5968
|
if (D[r] < 0)
|
|
5971
5969
|
D[r]++, n--;
|
|
5972
5970
|
else
|
|
5973
5971
|
break;
|
|
5974
|
-
} else if (
|
|
5972
|
+
} else if (O1(t))
|
|
5975
5973
|
n--;
|
|
5976
5974
|
else
|
|
5977
5975
|
break;
|
|
@@ -5987,7 +5985,7 @@ function SD(u, D) {
|
|
|
5987
5985
|
matchType: 0
|
|
5988
5986
|
};
|
|
5989
5987
|
}
|
|
5990
|
-
function
|
|
5988
|
+
function tf(u, D) {
|
|
5991
5989
|
return {
|
|
5992
5990
|
type: 0,
|
|
5993
5991
|
startIdx: u,
|
|
@@ -5996,7 +5994,7 @@ function nf(u, D) {
|
|
|
5996
5994
|
matchType: 1
|
|
5997
5995
|
};
|
|
5998
5996
|
}
|
|
5999
|
-
function
|
|
5997
|
+
function M2(u, D) {
|
|
6000
5998
|
return {
|
|
6001
5999
|
type: 0,
|
|
6002
6000
|
startIdx: u,
|
|
@@ -6007,7 +6005,7 @@ function z2(u, D) {
|
|
|
6007
6005
|
// starts at 1 because we create this machine when encountering the first octet
|
|
6008
6006
|
};
|
|
6009
6007
|
}
|
|
6010
|
-
function
|
|
6008
|
+
function q2(u, D) {
|
|
6011
6009
|
return {
|
|
6012
6010
|
type: 1,
|
|
6013
6011
|
startIdx: u,
|
|
@@ -6015,7 +6013,7 @@ function U2(u, D) {
|
|
|
6015
6013
|
acceptStateReached: !1
|
|
6016
6014
|
};
|
|
6017
6015
|
}
|
|
6018
|
-
function
|
|
6016
|
+
function z2(u, D) {
|
|
6019
6017
|
return {
|
|
6020
6018
|
type: 2,
|
|
6021
6019
|
startIdx: u,
|
|
@@ -6023,7 +6021,7 @@ function V2(u, D) {
|
|
|
6023
6021
|
acceptStateReached: !1
|
|
6024
6022
|
};
|
|
6025
6023
|
}
|
|
6026
|
-
function
|
|
6024
|
+
function U2(u, D) {
|
|
6027
6025
|
return {
|
|
6028
6026
|
type: 3,
|
|
6029
6027
|
startIdx: u,
|
|
@@ -6031,7 +6029,7 @@ function W2(u, D) {
|
|
|
6031
6029
|
acceptStateReached: !1
|
|
6032
6030
|
};
|
|
6033
6031
|
}
|
|
6034
|
-
function
|
|
6032
|
+
function UD(u, D) {
|
|
6035
6033
|
return {
|
|
6036
6034
|
type: 4,
|
|
6037
6035
|
startIdx: u,
|
|
@@ -6039,7 +6037,7 @@ function VD(u, D) {
|
|
|
6039
6037
|
acceptStateReached: !1
|
|
6040
6038
|
};
|
|
6041
6039
|
}
|
|
6042
|
-
function
|
|
6040
|
+
function Yf(u) {
|
|
6043
6041
|
return u.type === 0 && u.matchType === 0;
|
|
6044
6042
|
}
|
|
6045
6043
|
var Su = (
|
|
@@ -6050,155 +6048,155 @@ var Su = (
|
|
|
6050
6048
|
}
|
|
6051
6049
|
return u;
|
|
6052
6050
|
}()
|
|
6053
|
-
),
|
|
6051
|
+
), mf = new Su(), V2 = (
|
|
6054
6052
|
/** @class */
|
|
6055
6053
|
/* @__PURE__ */ function() {
|
|
6056
6054
|
function u(D, f) {
|
|
6057
|
-
this.charIdx = 0, this.state = 0, this.currentDataIdx = 0, this.currentTag =
|
|
6055
|
+
this.charIdx = 0, this.state = 0, this.currentDataIdx = 0, this.currentTag = mf, this.html = D, this.callbacks = f;
|
|
6058
6056
|
}
|
|
6059
6057
|
return u;
|
|
6060
6058
|
}()
|
|
6061
6059
|
);
|
|
6062
|
-
function
|
|
6063
|
-
for (var f = new
|
|
6060
|
+
function W2(u, D) {
|
|
6061
|
+
for (var f = new V2(u, D), e = u.length; f.charIdx < e; ) {
|
|
6064
6062
|
var t = u.charAt(f.charIdx), n = u.charCodeAt(f.charIdx);
|
|
6065
6063
|
switch (f.state) {
|
|
6066
6064
|
case 0:
|
|
6067
|
-
|
|
6065
|
+
H2(f, t);
|
|
6068
6066
|
break;
|
|
6069
6067
|
case 1:
|
|
6070
|
-
|
|
6068
|
+
Y2(f, t, n);
|
|
6071
6069
|
break;
|
|
6072
6070
|
case 2:
|
|
6073
|
-
|
|
6071
|
+
J2(f, t, n);
|
|
6074
6072
|
break;
|
|
6075
6073
|
case 3:
|
|
6076
|
-
|
|
6074
|
+
K2(f, t, n);
|
|
6077
6075
|
break;
|
|
6078
6076
|
case 4:
|
|
6079
|
-
|
|
6077
|
+
G2(f, t, n);
|
|
6080
6078
|
break;
|
|
6081
6079
|
case 5:
|
|
6082
|
-
|
|
6080
|
+
X2(f, t, n);
|
|
6083
6081
|
break;
|
|
6084
6082
|
case 6:
|
|
6085
|
-
|
|
6083
|
+
Z2(f, t, n);
|
|
6086
6084
|
break;
|
|
6087
6085
|
case 7:
|
|
6088
|
-
|
|
6086
|
+
Q2(f, t, n);
|
|
6089
6087
|
break;
|
|
6090
6088
|
case 8:
|
|
6091
|
-
|
|
6089
|
+
ut(f, t);
|
|
6092
6090
|
break;
|
|
6093
6091
|
case 9:
|
|
6094
|
-
|
|
6092
|
+
Dt(f, t);
|
|
6095
6093
|
break;
|
|
6096
6094
|
case 10:
|
|
6097
|
-
|
|
6095
|
+
ft(f, t, n);
|
|
6098
6096
|
break;
|
|
6099
6097
|
case 11:
|
|
6100
|
-
|
|
6098
|
+
et(f, t, n);
|
|
6101
6099
|
break;
|
|
6102
6100
|
case 12:
|
|
6103
|
-
|
|
6101
|
+
tt(f, t);
|
|
6104
6102
|
break;
|
|
6105
6103
|
case 13:
|
|
6106
|
-
|
|
6104
|
+
nt(f);
|
|
6107
6105
|
break;
|
|
6108
6106
|
case 14:
|
|
6109
|
-
|
|
6107
|
+
rt(f, t);
|
|
6110
6108
|
break;
|
|
6111
6109
|
case 15:
|
|
6112
|
-
|
|
6110
|
+
at(f, t);
|
|
6113
6111
|
break;
|
|
6114
6112
|
case 16:
|
|
6115
|
-
|
|
6113
|
+
st(f, t);
|
|
6116
6114
|
break;
|
|
6117
6115
|
case 17:
|
|
6118
|
-
|
|
6116
|
+
Ft(f, t);
|
|
6119
6117
|
break;
|
|
6120
6118
|
case 18:
|
|
6121
|
-
|
|
6119
|
+
it(f, t);
|
|
6122
6120
|
break;
|
|
6123
6121
|
case 19:
|
|
6124
|
-
|
|
6122
|
+
ot(f, t);
|
|
6125
6123
|
break;
|
|
6126
6124
|
case 20:
|
|
6127
|
-
|
|
6125
|
+
dt(f, t);
|
|
6128
6126
|
break;
|
|
6129
6127
|
default:
|
|
6130
6128
|
Xu(f.state);
|
|
6131
6129
|
}
|
|
6132
6130
|
f.charIdx++;
|
|
6133
6131
|
}
|
|
6134
|
-
f.currentDataIdx < f.charIdx &&
|
|
6132
|
+
f.currentDataIdx < f.charIdx && Ct(f);
|
|
6135
6133
|
}
|
|
6136
|
-
function
|
|
6134
|
+
function H2(u, D) {
|
|
6137
6135
|
D === "<" && Ru(u);
|
|
6138
6136
|
}
|
|
6137
|
+
function Y2(u, D, f) {
|
|
6138
|
+
D === "!" ? u.state = 13 : D === "/" ? (u.state = 2, u.currentTag = new Su(ou(ou({}, u.currentTag), { isClosing: !0 }))) : D === "<" ? Ru(u) : rD(f) ? (u.state = 3, u.currentTag = new Su(ou(ou({}, u.currentTag), { isOpening: !0 }))) : (u.state = 0, u.currentTag = mf);
|
|
6139
|
+
}
|
|
6140
|
+
function K2(u, D, f) {
|
|
6141
|
+
Zu(f) ? (u.currentTag = new Su(ou(ou({}, u.currentTag), { name: VD(u) })), u.state = 4) : D === "<" ? Ru(u) : D === "/" ? (u.currentTag = new Su(ou(ou({}, u.currentTag), { name: VD(u) })), u.state = 12) : D === ">" ? (u.currentTag = new Su(ou(ou({}, u.currentTag), { name: VD(u) })), Pu(u)) : !rD(f) && !hu(f) && D !== ":" && xu(u);
|
|
6142
|
+
}
|
|
6139
6143
|
function J2(u, D, f) {
|
|
6140
|
-
D === "
|
|
6144
|
+
D === ">" ? xu(u) : rD(f) ? u.state = 3 : xu(u);
|
|
6141
6145
|
}
|
|
6142
6146
|
function G2(u, D, f) {
|
|
6143
|
-
Zu(f)
|
|
6147
|
+
Zu(f) || (D === "/" ? u.state = 12 : D === ">" ? Pu(u) : D === "<" ? Ru(u) : D === "=" || hf(f) || o3(f) ? xu(u) : u.state = 5);
|
|
6144
6148
|
}
|
|
6145
6149
|
function X2(u, D, f) {
|
|
6146
|
-
D === "
|
|
6150
|
+
Zu(f) ? u.state = 6 : D === "/" ? u.state = 12 : D === "=" ? u.state = 7 : D === ">" ? Pu(u) : D === "<" ? Ru(u) : hf(f) && xu(u);
|
|
6147
6151
|
}
|
|
6148
6152
|
function Z2(u, D, f) {
|
|
6149
|
-
Zu(f) || (D === "/" ? u.state = 12 : D === "
|
|
6153
|
+
Zu(f) || (D === "/" ? u.state = 12 : D === "=" ? u.state = 7 : D === ">" ? Pu(u) : D === "<" ? Ru(u) : hf(f) ? xu(u) : u.state = 5);
|
|
6150
6154
|
}
|
|
6151
6155
|
function Q2(u, D, f) {
|
|
6152
|
-
Zu(f) ? u.state = 6 : D === "/" ? u.state = 12 : D === "=" ? u.state = 7 : D === ">" ? Pu(u) : D === "<" ? Ru(u) : bf(f) && xu(u);
|
|
6153
|
-
}
|
|
6154
|
-
function ut(u, D, f) {
|
|
6155
|
-
Zu(f) || (D === "/" ? u.state = 12 : D === "=" ? u.state = 7 : D === ">" ? Pu(u) : D === "<" ? Ru(u) : bf(f) ? xu(u) : u.state = 5);
|
|
6156
|
-
}
|
|
6157
|
-
function Dt(u, D, f) {
|
|
6158
6156
|
Zu(f) || (D === '"' ? u.state = 8 : D === "'" ? u.state = 9 : /[>=`]/.test(D) ? xu(u) : D === "<" ? Ru(u) : u.state = 10);
|
|
6159
6157
|
}
|
|
6160
|
-
function
|
|
6158
|
+
function ut(u, D) {
|
|
6161
6159
|
D === '"' && (u.state = 11);
|
|
6162
6160
|
}
|
|
6163
|
-
function
|
|
6161
|
+
function Dt(u, D) {
|
|
6164
6162
|
D === "'" && (u.state = 11);
|
|
6165
6163
|
}
|
|
6166
|
-
function
|
|
6164
|
+
function ft(u, D, f) {
|
|
6167
6165
|
Zu(f) ? u.state = 4 : D === ">" ? Pu(u) : D === "<" && Ru(u);
|
|
6168
6166
|
}
|
|
6169
|
-
function
|
|
6170
|
-
Zu(f) ? u.state = 4 : D === "/" ? u.state = 12 : D === ">" ? Pu(u) : D === "<" ? Ru(u) : (u.state = 4,
|
|
6167
|
+
function et(u, D, f) {
|
|
6168
|
+
Zu(f) ? u.state = 4 : D === "/" ? u.state = 12 : D === ">" ? Pu(u) : D === "<" ? Ru(u) : (u.state = 4, ct(u));
|
|
6171
6169
|
}
|
|
6172
|
-
function
|
|
6170
|
+
function tt(u, D) {
|
|
6173
6171
|
D === ">" ? (u.currentTag = new Su(ou(ou({}, u.currentTag), { isClosing: !0 })), Pu(u)) : xu(u);
|
|
6174
6172
|
}
|
|
6175
|
-
function
|
|
6173
|
+
function nt(u) {
|
|
6176
6174
|
var D = u.html, f = u.charIdx;
|
|
6177
6175
|
D.slice(f, f + 2) === "--" ? (u.charIdx++, u.currentTag = new Su(ou(ou({}, u.currentTag), { type: "comment" })), u.state = 14) : D.slice(f, f + 7).toUpperCase() === "DOCTYPE" ? (u.charIdx += 6, u.currentTag = new Su(ou(ou({}, u.currentTag), { type: "doctype" })), u.state = 20) : xu(u);
|
|
6178
6176
|
}
|
|
6179
|
-
function
|
|
6177
|
+
function rt(u, D) {
|
|
6180
6178
|
D === "-" ? u.state = 15 : D === ">" ? xu(u) : u.state = 16;
|
|
6181
6179
|
}
|
|
6182
|
-
function
|
|
6180
|
+
function at(u, D) {
|
|
6183
6181
|
D === "-" ? u.state = 18 : D === ">" ? xu(u) : u.state = 16;
|
|
6184
6182
|
}
|
|
6185
|
-
function
|
|
6183
|
+
function st(u, D) {
|
|
6186
6184
|
D === "-" && (u.state = 17);
|
|
6187
6185
|
}
|
|
6188
|
-
function
|
|
6186
|
+
function Ft(u, D) {
|
|
6189
6187
|
D === "-" ? u.state = 18 : u.state = 16;
|
|
6190
6188
|
}
|
|
6191
|
-
function
|
|
6189
|
+
function it(u, D) {
|
|
6192
6190
|
D === ">" ? Pu(u) : D === "!" ? u.state = 19 : D === "-" || (u.state = 16);
|
|
6193
6191
|
}
|
|
6194
|
-
function
|
|
6192
|
+
function ot(u, D) {
|
|
6195
6193
|
D === "-" ? u.state = 17 : D === ">" ? Pu(u) : u.state = 16;
|
|
6196
6194
|
}
|
|
6197
|
-
function
|
|
6195
|
+
function dt(u, D) {
|
|
6198
6196
|
D === ">" ? Pu(u) : D === "<" && Ru(u);
|
|
6199
6197
|
}
|
|
6200
6198
|
function xu(u) {
|
|
6201
|
-
u.state = 0, u.currentTag =
|
|
6199
|
+
u.state = 0, u.currentTag = mf;
|
|
6202
6200
|
}
|
|
6203
6201
|
function Ru(u) {
|
|
6204
6202
|
u.state = 1, u.currentTag = new Su({ idx: u.charIdx });
|
|
@@ -6209,18 +6207,18 @@ function Pu(u) {
|
|
|
6209
6207
|
var f = u.currentTag;
|
|
6210
6208
|
f.type === "comment" ? u.callbacks.onComment(f.idx) : f.type === "doctype" ? u.callbacks.onDoctype(f.idx) : (f.isOpening && u.callbacks.onOpenTag(f.name, f.idx), f.isClosing && u.callbacks.onCloseTag(f.name, f.idx)), xu(u), u.currentDataIdx = u.charIdx + 1;
|
|
6211
6209
|
}
|
|
6212
|
-
function
|
|
6210
|
+
function Ct(u) {
|
|
6213
6211
|
var D = u.html.slice(u.currentDataIdx, u.charIdx);
|
|
6214
6212
|
u.callbacks.onText(D, u.currentDataIdx), u.currentDataIdx = u.charIdx + 1;
|
|
6215
6213
|
}
|
|
6216
|
-
function
|
|
6214
|
+
function VD(u) {
|
|
6217
6215
|
var D = u.currentTag.idx + (u.currentTag.isClosing ? 2 : 1);
|
|
6218
6216
|
return u.html.slice(D, u.charIdx).toLowerCase();
|
|
6219
6217
|
}
|
|
6220
|
-
function
|
|
6218
|
+
function ct(u) {
|
|
6221
6219
|
u.charIdx--;
|
|
6222
6220
|
}
|
|
6223
|
-
var
|
|
6221
|
+
var lt = (
|
|
6224
6222
|
/** @class */
|
|
6225
6223
|
function() {
|
|
6226
6224
|
function u(D) {
|
|
@@ -6230,14 +6228,14 @@ var ht = (
|
|
|
6230
6228
|
}, this.stripTrailingSlash = !0, this.decodePercentEncoding = !0, this.truncate = {
|
|
6231
6229
|
length: 0,
|
|
6232
6230
|
location: "end"
|
|
6233
|
-
}, this.className = "", this.replaceFn = null, this.context = void 0, this.sanitizeHtml = !1, this.tagBuilder = null, this.urls =
|
|
6231
|
+
}, this.className = "", this.replaceFn = null, this.context = void 0, this.sanitizeHtml = !1, this.tagBuilder = null, this.urls = Et(D.urls), this.email = wu(D.email) ? D.email : this.email, this.phone = wu(D.phone) ? D.phone : this.phone, this.hashtag = D.hashtag || this.hashtag, this.mention = D.mention || this.mention, this.newWindow = wu(D.newWindow) ? D.newWindow : this.newWindow, this.stripPrefix = ht(D.stripPrefix), this.stripTrailingSlash = wu(D.stripTrailingSlash) ? D.stripTrailingSlash : this.stripTrailingSlash, this.decodePercentEncoding = wu(D.decodePercentEncoding) ? D.decodePercentEncoding : this.decodePercentEncoding, this.sanitizeHtml = D.sanitizeHtml || !1;
|
|
6234
6232
|
var f = this.mention;
|
|
6235
|
-
if (f !== !1 &&
|
|
6233
|
+
if (f !== !1 && q3.indexOf(f) === -1)
|
|
6236
6234
|
throw new Error("invalid `mention` cfg '".concat(f, "' - see docs"));
|
|
6237
6235
|
var e = this.hashtag;
|
|
6238
|
-
if (e !== !1 &&
|
|
6236
|
+
if (e !== !1 && I3.indexOf(e) === -1)
|
|
6239
6237
|
throw new Error("invalid `hashtag` cfg '".concat(e, "' - see docs"));
|
|
6240
|
-
this.truncate =
|
|
6238
|
+
this.truncate = bt(D.truncate), this.className = D.className || this.className, this.replaceFn = D.replaceFn || this.replaceFn, this.context = D.context || this;
|
|
6241
6239
|
}
|
|
6242
6240
|
return u.link = function(D, f) {
|
|
6243
6241
|
var e = new u(f);
|
|
@@ -6247,7 +6245,7 @@ var ht = (
|
|
|
6247
6245
|
return e.parse(D);
|
|
6248
6246
|
}, u.prototype.parse = function(D) {
|
|
6249
6247
|
var f = this, e = ["a", "style", "script"], t = 0, n = [];
|
|
6250
|
-
return
|
|
6248
|
+
return W2(D, {
|
|
6251
6249
|
onOpenTag: function(r) {
|
|
6252
6250
|
e.indexOf(r) >= 0 && t++;
|
|
6253
6251
|
},
|
|
@@ -6257,7 +6255,7 @@ var ht = (
|
|
|
6257
6255
|
o.forEach(function(c, l) {
|
|
6258
6256
|
if (l % 2 === 0) {
|
|
6259
6257
|
var j = f.parseText(c, d);
|
|
6260
|
-
n.push.apply(n,
|
|
6258
|
+
n.push.apply(n, f3([], D3(j), !1));
|
|
6261
6259
|
}
|
|
6262
6260
|
d += c.length;
|
|
6263
6261
|
});
|
|
@@ -6274,7 +6272,7 @@ var ht = (
|
|
|
6274
6272
|
// no need to process doctype nodes
|
|
6275
6273
|
}), n = this.compactMatches(n), n = this.removeUnwantedMatches(n), n;
|
|
6276
6274
|
}, u.prototype.compactMatches = function(D) {
|
|
6277
|
-
D.sort(
|
|
6275
|
+
D.sort(pt);
|
|
6278
6276
|
for (var f = 0; f < D.length - 1; ) {
|
|
6279
6277
|
var e = D[f], t = e.getOffset(), n = e.getMatchedText().length;
|
|
6280
6278
|
if (f + 1 < D.length && D[f + 1].getOffset() === t) {
|
|
@@ -6303,7 +6301,7 @@ var ht = (
|
|
|
6303
6301
|
}), D;
|
|
6304
6302
|
}, u.prototype.parseText = function(D, f) {
|
|
6305
6303
|
f = f || 0;
|
|
6306
|
-
for (var e =
|
|
6304
|
+
for (var e = G3(D, {
|
|
6307
6305
|
tagBuilder: this.getTagBuilder(),
|
|
6308
6306
|
stripPrefix: this.stripPrefix,
|
|
6309
6307
|
stripTrailingSlash: this.stripTrailingSlash,
|
|
@@ -6328,37 +6326,37 @@ var ht = (
|
|
|
6328
6326
|
return f;
|
|
6329
6327
|
if (f === !1)
|
|
6330
6328
|
return D.getMatchedText();
|
|
6331
|
-
if (f instanceof
|
|
6329
|
+
if (f instanceof N1)
|
|
6332
6330
|
return f.toAnchorString();
|
|
6333
6331
|
var e = D.buildTag();
|
|
6334
6332
|
return e.toAnchorString();
|
|
6335
6333
|
}, u.prototype.getTagBuilder = function() {
|
|
6336
6334
|
var D = this.tagBuilder;
|
|
6337
|
-
return D || (D = this.tagBuilder = new
|
|
6335
|
+
return D || (D = this.tagBuilder = new i3({
|
|
6338
6336
|
newWindow: this.newWindow,
|
|
6339
6337
|
truncate: this.truncate,
|
|
6340
6338
|
className: this.className
|
|
6341
6339
|
})), D;
|
|
6342
|
-
}, u.version =
|
|
6340
|
+
}, u.version = e3, u;
|
|
6343
6341
|
}()
|
|
6344
6342
|
);
|
|
6345
|
-
function
|
|
6343
|
+
function Et(u) {
|
|
6346
6344
|
return u == null && (u = !0), wu(u) ? { schemeMatches: u, tldMatches: u, ipV4Matches: u } : {
|
|
6347
6345
|
schemeMatches: wu(u.schemeMatches) ? u.schemeMatches : !0,
|
|
6348
6346
|
tldMatches: wu(u.tldMatches) ? u.tldMatches : !0,
|
|
6349
6347
|
ipV4Matches: wu(u.ipV4Matches) ? u.ipV4Matches : !0
|
|
6350
6348
|
};
|
|
6351
6349
|
}
|
|
6352
|
-
function
|
|
6350
|
+
function ht(u) {
|
|
6353
6351
|
return u == null && (u = !0), wu(u) ? { scheme: u, www: u } : {
|
|
6354
6352
|
scheme: wu(u.scheme) ? u.scheme : !0,
|
|
6355
6353
|
www: wu(u.www) ? u.www : !0
|
|
6356
6354
|
};
|
|
6357
6355
|
}
|
|
6358
|
-
function
|
|
6356
|
+
function bt(u) {
|
|
6359
6357
|
return typeof u == "number" ? { length: u, location: "end" } : ou({ length: Number.POSITIVE_INFINITY, location: "end" }, u);
|
|
6360
6358
|
}
|
|
6361
|
-
function
|
|
6359
|
+
function pt(u, D) {
|
|
6362
6360
|
return u.getOffset() - D.getOffset();
|
|
6363
6361
|
}
|
|
6364
6362
|
const Wu = [
|
|
@@ -6367,28 +6365,28 @@ const Wu = [
|
|
|
6367
6365
|
{ name: "New Zealand", countryCode: "+64", code: "NZ", flag: "🇳🇿" },
|
|
6368
6366
|
{ name: "United Kingdom", countryCode: "+44", code: "UK", flag: "🇬🇧" },
|
|
6369
6367
|
{ name: "Indonesia", countryCode: "+62", code: "ID", flag: "🇮🇩" }
|
|
6370
|
-
],
|
|
6368
|
+
], Bt = {
|
|
6371
6369
|
AU: /^(?:\+?(61))? ?(?:\((?=.*\))\))?(0?[4])\)? ?(\d\d(?:[- ](?=\d{3})|(?!\d\d[- ]?\d[- ]))\d\d[- ]?\d[- ]?\d{3})$/gm,
|
|
6372
6370
|
US: /^(\+?1\s?)?\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/gm,
|
|
6373
6371
|
UK: /^(\+?44\s?)?\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/gm,
|
|
6374
6372
|
NZ: /^(\+?64\s?)?\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/gm,
|
|
6375
6373
|
ID: /^(\+?62\s?)?\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/gm
|
|
6376
|
-
},
|
|
6374
|
+
}, gt = {
|
|
6377
6375
|
AU: "+61",
|
|
6378
6376
|
US: "+1",
|
|
6379
6377
|
NZ: "+64",
|
|
6380
6378
|
UK: "+44",
|
|
6381
6379
|
ID: "+62"
|
|
6382
|
-
},
|
|
6383
|
-
function
|
|
6384
|
-
const f =
|
|
6380
|
+
}, mt = (u) => u.toUpperCase(), _t = (u) => u.replace(/\s+/g, "").replace(/[^0-9+]/g, "");
|
|
6381
|
+
function yt(u, D) {
|
|
6382
|
+
const f = gt[u];
|
|
6385
6383
|
return D.startsWith(f) ? { cleanNumber: D.slice(f.length), countryCode: f } : { cleanNumber: D, countryCode: f };
|
|
6386
6384
|
}
|
|
6387
|
-
function
|
|
6388
|
-
const f =
|
|
6385
|
+
function vt(u, D) {
|
|
6386
|
+
const f = Bt[u];
|
|
6389
6387
|
return new RegExp(f.source, "mi").test(D);
|
|
6390
6388
|
}
|
|
6391
|
-
function
|
|
6389
|
+
function wt({
|
|
6392
6390
|
number: u,
|
|
6393
6391
|
region: D,
|
|
6394
6392
|
validateDuplicate: f,
|
|
@@ -6400,26 +6398,26 @@ function xt({
|
|
|
6400
6398
|
cleanNumber: "",
|
|
6401
6399
|
errorMessage: "",
|
|
6402
6400
|
isValid: !1
|
|
6403
|
-
}, n =
|
|
6401
|
+
}, n = mt(D);
|
|
6404
6402
|
if (!u)
|
|
6405
6403
|
return t.errorMessage = "Number is empty", t;
|
|
6406
6404
|
const r = u.trim();
|
|
6407
|
-
let s =
|
|
6405
|
+
let s = _t(u);
|
|
6408
6406
|
s = s.startsWith("0") ? s.slice(1) : s;
|
|
6409
|
-
const { cleanNumber: F, countryCode: o } =
|
|
6407
|
+
const { cleanNumber: F, countryCode: o } = yt(
|
|
6410
6408
|
n,
|
|
6411
6409
|
s
|
|
6412
6410
|
);
|
|
6413
6411
|
s = F, t.fullNumber = `${o}${s}`, t.cleanNumber = s;
|
|
6414
6412
|
try {
|
|
6415
|
-
if (!
|
|
6413
|
+
if (!vt(n, r)) throw new Error("Please enter a valid phone number");
|
|
6416
6414
|
t.isValid = !0;
|
|
6417
6415
|
} catch (d) {
|
|
6418
6416
|
t.errorMessage = d.message, t.isValid = !1;
|
|
6419
6417
|
}
|
|
6420
6418
|
return t;
|
|
6421
6419
|
}
|
|
6422
|
-
const
|
|
6420
|
+
const U1 = ({
|
|
6423
6421
|
initialData: u,
|
|
6424
6422
|
loadFromDataUserSubs: D = !1
|
|
6425
6423
|
} = {}) => {
|
|
@@ -6448,7 +6446,7 @@ const V1 = ({
|
|
|
6448
6446
|
if (!C.isRequired && y && T.length === 0)
|
|
6449
6447
|
return "";
|
|
6450
6448
|
if (g) {
|
|
6451
|
-
const N =
|
|
6449
|
+
const N = wt({
|
|
6452
6450
|
number: g,
|
|
6453
6451
|
region: b,
|
|
6454
6452
|
validateDuplicate: !1,
|
|
@@ -6772,7 +6770,7 @@ const V1 = ({
|
|
|
6772
6770
|
validateAll: m
|
|
6773
6771
|
};
|
|
6774
6772
|
};
|
|
6775
|
-
function
|
|
6773
|
+
function At(u) {
|
|
6776
6774
|
const D = {};
|
|
6777
6775
|
return Object.entries(u).forEach(([f, e]) => {
|
|
6778
6776
|
if (e) {
|
|
@@ -6785,13 +6783,13 @@ function kt(u) {
|
|
|
6785
6783
|
}
|
|
6786
6784
|
}), D;
|
|
6787
6785
|
}
|
|
6788
|
-
const
|
|
6786
|
+
const xt = ({
|
|
6789
6787
|
onSubmit: u,
|
|
6790
6788
|
onFormStateChange: D
|
|
6791
6789
|
}) => {
|
|
6792
6790
|
const { colors: f } = du(), e = Uu(), t = Bu(), { socket: n } = Yu(), { setScreen: r } = Nu();
|
|
6793
6791
|
Ou();
|
|
6794
|
-
const { setIsOfflineMode: s, send: F, participants: o, setMessages: d, setParticipants: c, setConnectionState: l } = cu(), { formData: j, renderContactFormField: m, errors: C, validateAll: v } =
|
|
6792
|
+
const { setIsOfflineMode: s, send: F, participants: o, setMessages: d, setParticipants: c, setConnectionState: l } = cu(), { formData: j, renderContactFormField: m, errors: C, validateAll: v } = U1({
|
|
6795
6793
|
initialData: {},
|
|
6796
6794
|
loadFromDataUserSubs: !0
|
|
6797
6795
|
}), [S, g] = U(!1), [L, y] = U(!1);
|
|
@@ -6808,7 +6806,7 @@ const jt = ({
|
|
|
6808
6806
|
var h;
|
|
6809
6807
|
E.isDisplay && j[E.key] !== void 0 && (P[E.key] = ((h = j[E.key]) == null ? void 0 : h.toString().trim()) || "");
|
|
6810
6808
|
});
|
|
6811
|
-
const _ =
|
|
6809
|
+
const _ = At(P);
|
|
6812
6810
|
if (!eu.getItem("profileLiveChat"))
|
|
6813
6811
|
try {
|
|
6814
6812
|
const E = new URLSearchParams();
|
|
@@ -6918,7 +6916,7 @@ const jt = ({
|
|
|
6918
6916
|
] }) })
|
|
6919
6917
|
}
|
|
6920
6918
|
);
|
|
6921
|
-
},
|
|
6919
|
+
}, kt = ({
|
|
6922
6920
|
message: u,
|
|
6923
6921
|
onFormSubmitted: D
|
|
6924
6922
|
}) => {
|
|
@@ -6929,7 +6927,7 @@ const jt = ({
|
|
|
6929
6927
|
const n = () => {
|
|
6930
6928
|
if (u.direction === Du.received && t.current) {
|
|
6931
6929
|
const F = t.current.innerText;
|
|
6932
|
-
let o =
|
|
6930
|
+
let o = lt.link(F, {
|
|
6933
6931
|
className: "chatLink",
|
|
6934
6932
|
truncate: { length: 50, location: "smart" }
|
|
6935
6933
|
});
|
|
@@ -6940,7 +6938,7 @@ const jt = ({
|
|
|
6940
6938
|
throw new Error("Unable to find text.");
|
|
6941
6939
|
const r = f[u.direction || Du.received];
|
|
6942
6940
|
return "isShowForm" in u.data && u.data.isShowForm ? /* @__PURE__ */ a.jsx(
|
|
6943
|
-
|
|
6941
|
+
xt,
|
|
6944
6942
|
{
|
|
6945
6943
|
onFormStateChange: (F) => {
|
|
6946
6944
|
e(F), !F && D && D(!0);
|
|
@@ -6957,7 +6955,7 @@ const jt = ({
|
|
|
6957
6955
|
children: /* @__PURE__ */ a.jsx("p", { className: "sc-message--text-content", ref: t, children: u.data.text })
|
|
6958
6956
|
}
|
|
6959
6957
|
) });
|
|
6960
|
-
},
|
|
6958
|
+
}, Kf = ({
|
|
6961
6959
|
viewBox: u = "0 0 24 24",
|
|
6962
6960
|
fill: D = "none",
|
|
6963
6961
|
stroke: f = "",
|
|
@@ -6978,13 +6976,13 @@ const jt = ({
|
|
|
6978
6976
|
...r,
|
|
6979
6977
|
children: /* @__PURE__ */ a.jsx("path", { d: "M20 6L9 17l-5-5" })
|
|
6980
6978
|
}
|
|
6981
|
-
),
|
|
6979
|
+
), jt = ({ message: u }) => {
|
|
6982
6980
|
const { colors: D } = du();
|
|
6983
6981
|
if (!("delivery" in u && "read" in u))
|
|
6984
6982
|
throw new Error("Unable to find delivery/read attributes");
|
|
6985
6983
|
return /* @__PURE__ */ a.jsxs("div", { className: "sc--status", style: { color: D.messageStatus.bg }, children: [
|
|
6986
6984
|
u.read && /* @__PURE__ */ a.jsx("div", { className: "sc--status-wrapper sc--status-read", title: "Read", children: /* @__PURE__ */ a.jsx(
|
|
6987
|
-
|
|
6985
|
+
Kf,
|
|
6988
6986
|
{
|
|
6989
6987
|
width: "16px",
|
|
6990
6988
|
height: "16px",
|
|
@@ -6998,7 +6996,7 @@ const jt = ({
|
|
|
6998
6996
|
className: "sc--status-wrapper sc--status-delivery",
|
|
6999
6997
|
title: "Delivered",
|
|
7000
6998
|
children: /* @__PURE__ */ a.jsx(
|
|
7001
|
-
|
|
6999
|
+
Kf,
|
|
7002
7000
|
{
|
|
7003
7001
|
width: "16px",
|
|
7004
7002
|
height: "16px",
|
|
@@ -7010,15 +7008,15 @@ const jt = ({
|
|
|
7010
7008
|
)
|
|
7011
7009
|
] });
|
|
7012
7010
|
};
|
|
7013
|
-
|
|
7014
|
-
const
|
|
7011
|
+
j1.extend(We);
|
|
7012
|
+
const St = ({ message: u, Avatar: D }) => {
|
|
7015
7013
|
const { participants: f } = cu(), { colors: e } = du(), [t, n] = U(!1), [r, s] = U(!1), F = Bu(), o = u.data && "text" in u.data && "isShowForm" in u.data && u.data.isShowForm, d = f.find(
|
|
7016
7014
|
(j) => j.id === u.author
|
|
7017
7015
|
) || {
|
|
7018
7016
|
name: "Anon"
|
|
7019
7017
|
}, c = () => {
|
|
7020
7018
|
n(!t);
|
|
7021
|
-
}, l = (j) =>
|
|
7019
|
+
}, l = (j) => j1(j).fromNow();
|
|
7022
7020
|
return /* @__PURE__ */ a.jsx("div", { className: `sc-message ${u.direction}`, children: /* @__PURE__ */ a.jsxs("div", { className: `sc-message--content ${u.direction}`, children: [
|
|
7023
7021
|
(!r || !o) && /* @__PURE__ */ a.jsx(
|
|
7024
7022
|
"div",
|
|
@@ -7036,24 +7034,24 @@ const Nt = ({ message: u, Avatar: D }) => {
|
|
|
7036
7034
|
height: 32,
|
|
7037
7035
|
style: { borderRadius: "50%" }
|
|
7038
7036
|
}
|
|
7039
|
-
) : D ? /* @__PURE__ */ a.jsx(D, {}) : d.imageUrl ? null : /* @__PURE__ */ a.jsx(
|
|
7037
|
+
) : D ? /* @__PURE__ */ a.jsx(D, {}) : d.imageUrl ? null : /* @__PURE__ */ a.jsx(T1, { width: "32px", height: "32px" })
|
|
7040
7038
|
}
|
|
7041
7039
|
),
|
|
7042
7040
|
/* @__PURE__ */ a.jsxs("div", { className: "sc-message--wrapper", onClick: c, children: [
|
|
7043
7041
|
u.data && "text" in u.data && /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsx(
|
|
7044
|
-
|
|
7042
|
+
kt,
|
|
7045
7043
|
{
|
|
7046
7044
|
message: u,
|
|
7047
7045
|
onFormSubmitted: s
|
|
7048
7046
|
}
|
|
7049
7047
|
) }),
|
|
7050
|
-
u.type === "file" && /* @__PURE__ */ a.jsx(
|
|
7051
|
-
u.type === "location" && /* @__PURE__ */ a.jsx(
|
|
7052
|
-
u.type === "list" && /* @__PURE__ */ a.jsx(
|
|
7053
|
-
u.type === "carousel" && /* @__PURE__ */ a.jsx(
|
|
7048
|
+
u.type === "file" && /* @__PURE__ */ a.jsx(Ze, { message: u }),
|
|
7049
|
+
u.type === "location" && /* @__PURE__ */ a.jsx(Qe, { message: u }),
|
|
7050
|
+
u.type === "list" && /* @__PURE__ */ a.jsx(u3, { messageList: u }),
|
|
7051
|
+
u.type === "carousel" && /* @__PURE__ */ a.jsx(Ge, { messageCarousel: u }),
|
|
7054
7052
|
u.type === "buttons" && /* @__PURE__ */ a.jsx(vD, { message: u }),
|
|
7055
7053
|
/* @__PURE__ */ a.jsxs("div", { className: "sc-message--meta", children: [
|
|
7056
|
-
u.direction === "sent" && /* @__PURE__ */ a.jsx(
|
|
7054
|
+
u.direction === "sent" && /* @__PURE__ */ a.jsx(jt, { message: u }),
|
|
7057
7055
|
/* @__PURE__ */ a.jsx(
|
|
7058
7056
|
"div",
|
|
7059
7057
|
{
|
|
@@ -7065,7 +7063,7 @@ const Nt = ({ message: u, Avatar: D }) => {
|
|
|
7065
7063
|
] })
|
|
7066
7064
|
] })
|
|
7067
7065
|
] }) });
|
|
7068
|
-
},
|
|
7066
|
+
}, Tt = () => {
|
|
7069
7067
|
const { colors: u } = du();
|
|
7070
7068
|
return /* @__PURE__ */ a.jsxs(
|
|
7071
7069
|
"div",
|
|
@@ -7082,7 +7080,7 @@ const Nt = ({ message: u, Avatar: D }) => {
|
|
|
7082
7080
|
]
|
|
7083
7081
|
}
|
|
7084
7082
|
);
|
|
7085
|
-
},
|
|
7083
|
+
}, Nt = ({
|
|
7086
7084
|
Avatar: u,
|
|
7087
7085
|
phone: D
|
|
7088
7086
|
}) => {
|
|
@@ -7102,7 +7100,7 @@ const Nt = ({ message: u, Avatar: D }) => {
|
|
|
7102
7100
|
style: n.imageUrl ? {
|
|
7103
7101
|
backgroundImage: `url(${n.imageUrl}?color=${encodeURIComponent(f.header.bg)})`
|
|
7104
7102
|
} : void 0,
|
|
7105
|
-
children: u ? /* @__PURE__ */ a.jsx(u, {}) : n.imageUrl ? null : /* @__PURE__ */ a.jsx(
|
|
7103
|
+
children: u ? /* @__PURE__ */ a.jsx(u, {}) : n.imageUrl ? null : /* @__PURE__ */ a.jsx(T1, { width: "32px", height: "32px" })
|
|
7106
7104
|
}
|
|
7107
7105
|
),
|
|
7108
7106
|
/* @__PURE__ */ a.jsx("div", { className: "sc-message--wrapper", children: /* @__PURE__ */ a.jsxs(
|
|
@@ -7130,7 +7128,7 @@ const Nt = ({ message: u, Avatar: D }) => {
|
|
|
7130
7128
|
}
|
|
7131
7129
|
) })
|
|
7132
7130
|
] }) });
|
|
7133
|
-
},
|
|
7131
|
+
}, Ot = ({ Avatar: u }) => {
|
|
7134
7132
|
const { scroll: D, setScroll: f, isOpen: e } = Nu(), { messages: t, showTypingIndicator: n, setNewIOMessage: r, setMessages: s } = cu(), F = Bu(), { colors: o } = du(), { formSettings: d } = Bu(), [c, l] = U(""), j = pu(""), m = F.offline_mode, C = kD(m), v = (b) => {
|
|
7135
7133
|
if (!("text" in b.data)) return null;
|
|
7136
7134
|
const T = b.data.text || "", N = (_) => _.toLowerCase().replace(/\s+/g, "").replace(/[^a-z0-9_]/g, ""), A = T.split(`
|
|
@@ -7185,7 +7183,7 @@ const Nt = ({ message: u, Avatar: D }) => {
|
|
|
7185
7183
|
direction: Du.received,
|
|
7186
7184
|
read: !0,
|
|
7187
7185
|
delivery: !0,
|
|
7188
|
-
type:
|
|
7186
|
+
type: YD.text,
|
|
7189
7187
|
data: {
|
|
7190
7188
|
text: "Enter your information, and our team will text you shortly.",
|
|
7191
7189
|
isOffline: !0,
|
|
@@ -7201,7 +7199,7 @@ const Nt = ({ message: u, Avatar: D }) => {
|
|
|
7201
7199
|
direction: Du.received,
|
|
7202
7200
|
read: !0,
|
|
7203
7201
|
delivery: !0,
|
|
7204
|
-
type:
|
|
7202
|
+
type: YD.text,
|
|
7205
7203
|
data: {
|
|
7206
7204
|
text: "Show Form",
|
|
7207
7205
|
isOffline: !0,
|
|
@@ -7240,16 +7238,16 @@ const Nt = ({ message: u, Avatar: D }) => {
|
|
|
7240
7238
|
ref: g,
|
|
7241
7239
|
style: { backgroundColor: o.messageList.bg },
|
|
7242
7240
|
children: [
|
|
7243
|
-
t.map((b) => /* @__PURE__ */ a.jsxs(
|
|
7244
|
-
/* @__PURE__ */ a.jsx(
|
|
7245
|
-
S(b) && C && /* @__PURE__ */ a.jsx(
|
|
7241
|
+
t.map((b) => /* @__PURE__ */ a.jsxs(af.Fragment, { children: [
|
|
7242
|
+
/* @__PURE__ */ a.jsx(St, { message: b, Avatar: u }),
|
|
7243
|
+
S(b) && C && /* @__PURE__ */ a.jsx(Nt, { phone: c })
|
|
7246
7244
|
] }, b.mid)),
|
|
7247
|
-
n && /* @__PURE__ */ a.jsx(
|
|
7245
|
+
n && /* @__PURE__ */ a.jsx(Tt, {})
|
|
7248
7246
|
]
|
|
7249
7247
|
}
|
|
7250
7248
|
);
|
|
7251
7249
|
};
|
|
7252
|
-
var
|
|
7250
|
+
var nf = { exports: {} };
|
|
7253
7251
|
(function(u, D) {
|
|
7254
7252
|
(function() {
|
|
7255
7253
|
var f = this, e = f.EmojiConvertor, t = function() {
|
|
@@ -9838,9 +9836,9 @@ var rf = { exports: {} };
|
|
|
9838
9836
|
}).call(/* @__PURE__ */ function() {
|
|
9839
9837
|
return this || (typeof window < "u" ? window : dD);
|
|
9840
9838
|
}());
|
|
9841
|
-
})(
|
|
9842
|
-
var
|
|
9843
|
-
const
|
|
9839
|
+
})(nf, nf.exports);
|
|
9840
|
+
var Rt = nf.exports;
|
|
9841
|
+
const Pt = /* @__PURE__ */ sf(Rt), It = [
|
|
9844
9842
|
{
|
|
9845
9843
|
name: "People",
|
|
9846
9844
|
emojis: [
|
|
@@ -10494,8 +10492,8 @@ const Lt = /* @__PURE__ */ Ff(It), $t = [
|
|
|
10494
10492
|
"🔹"
|
|
10495
10493
|
]
|
|
10496
10494
|
}
|
|
10497
|
-
],
|
|
10498
|
-
const f = pu(new
|
|
10495
|
+
], Lt = ({ onBlur: u, onSelect: D }) => {
|
|
10496
|
+
const f = pu(new Pt()), e = pu(null);
|
|
10499
10497
|
X(() => {
|
|
10500
10498
|
const n = e.current;
|
|
10501
10499
|
n && (n.style.opacity = "0", window.requestAnimationFrame(() => {
|
|
@@ -10505,7 +10503,7 @@ const Lt = /* @__PURE__ */ Ff(It), $t = [
|
|
|
10505
10503
|
const t = (n, r) => {
|
|
10506
10504
|
D(n, r), e.current && e.current.blur();
|
|
10507
10505
|
};
|
|
10508
|
-
return /* @__PURE__ */ a.jsx("div", { tabIndex: 0, onBlur: u, className: "sc-emoji-picker", ref: e, children: /* @__PURE__ */ a.jsx("div", { className: "sc-emoji-picker--content", children:
|
|
10506
|
+
return /* @__PURE__ */ a.jsx("div", { tabIndex: 0, onBlur: u, className: "sc-emoji-picker", ref: e, children: /* @__PURE__ */ a.jsx("div", { className: "sc-emoji-picker--content", children: It.map((n) => /* @__PURE__ */ a.jsxs("div", { className: "sc-emoji-picker--category", children: [
|
|
10509
10507
|
/* @__PURE__ */ a.jsx("div", { className: "sc-emoji-picker--category-title", children: n.name }),
|
|
10510
10508
|
n.emojis.map((r) => /* @__PURE__ */ a.jsx(
|
|
10511
10509
|
"span",
|
|
@@ -10517,7 +10515,7 @@ const Lt = /* @__PURE__ */ Ff(It), $t = [
|
|
|
10517
10515
|
r
|
|
10518
10516
|
))
|
|
10519
10517
|
] }, n.name)) }) });
|
|
10520
|
-
},
|
|
10518
|
+
}, $t = ({
|
|
10521
10519
|
x: u = "0",
|
|
10522
10520
|
y: D = "0",
|
|
10523
10521
|
className: f = "sc-user-input--emoji-icon",
|
|
@@ -10540,7 +10538,7 @@ const Lt = /* @__PURE__ */ Ff(It), $t = [
|
|
|
10540
10538
|
/* @__PURE__ */ a.jsx("path", { d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m0-2.5c2.33 0 4.32-1.45 5.12-3.5h-1.67c-.69 1.19-1.97 2-3.45 2s-2.75-.81-3.45-2H6.88c.8 2.05 2.79 3.5 5.12 3.5" })
|
|
10541
10539
|
]
|
|
10542
10540
|
}
|
|
10543
|
-
),
|
|
10541
|
+
), Mt = ({ inputRef: u, onInput: D }) => {
|
|
10544
10542
|
const [f, e] = U(!1), t = pu(null), n = () => {
|
|
10545
10543
|
e(!f);
|
|
10546
10544
|
}, r = (o) => {
|
|
@@ -10556,7 +10554,7 @@ const Lt = /* @__PURE__ */ Ff(It), $t = [
|
|
|
10556
10554
|
}
|
|
10557
10555
|
};
|
|
10558
10556
|
return /* @__PURE__ */ a.jsxs("div", { className: "sc-user-input--picker-wrapper", children: [
|
|
10559
|
-
f && /* @__PURE__ */ a.jsx(
|
|
10557
|
+
f && /* @__PURE__ */ a.jsx(Lt, { onBlur: r, onSelect: s }),
|
|
10560
10558
|
/* @__PURE__ */ a.jsx(
|
|
10561
10559
|
"button",
|
|
10562
10560
|
{
|
|
@@ -10566,11 +10564,11 @@ const Lt = /* @__PURE__ */ Ff(It), $t = [
|
|
|
10566
10564
|
id: "sc-emoji-button",
|
|
10567
10565
|
className: "sc-user-input--emoji-icon-wrapper",
|
|
10568
10566
|
ref: t,
|
|
10569
|
-
children: /* @__PURE__ */ a.jsx(
|
|
10567
|
+
children: /* @__PURE__ */ a.jsx($t, {})
|
|
10570
10568
|
}
|
|
10571
10569
|
)
|
|
10572
10570
|
] });
|
|
10573
|
-
},
|
|
10571
|
+
}, qt = {
|
|
10574
10572
|
images: ["image/jpeg", "image/png", "image/webp", "image/bmp"],
|
|
10575
10573
|
videos: [
|
|
10576
10574
|
"video/mp4",
|
|
@@ -10616,7 +10614,7 @@ const Lt = /* @__PURE__ */ Ff(It), $t = [
|
|
|
10616
10614
|
"application/json",
|
|
10617
10615
|
"text/csv"
|
|
10618
10616
|
]
|
|
10619
|
-
},
|
|
10617
|
+
}, V1 = ({
|
|
10620
10618
|
x: u = "0",
|
|
10621
10619
|
y: D = "0",
|
|
10622
10620
|
className: f = "sc-user-input--file-icon",
|
|
@@ -10636,17 +10634,17 @@ const Lt = /* @__PURE__ */ Ff(It), $t = [
|
|
|
10636
10634
|
" "
|
|
10637
10635
|
]
|
|
10638
10636
|
}
|
|
10639
|
-
),
|
|
10637
|
+
), zt = () => {
|
|
10640
10638
|
const { setFile: u } = cu(), D = (t) => {
|
|
10641
10639
|
t.target.value = "";
|
|
10642
10640
|
}, f = (t) => {
|
|
10643
10641
|
t.target.files && t.target.files[0] && u && u(t.target.files[0]);
|
|
10644
|
-
}, e =
|
|
10645
|
-
() => Object.values(
|
|
10642
|
+
}, e = d0(
|
|
10643
|
+
() => Object.values(qt).flat().join(","),
|
|
10646
10644
|
[]
|
|
10647
10645
|
);
|
|
10648
10646
|
return /* @__PURE__ */ a.jsx("div", { className: "sc-user-input--file-wrapper", children: /* @__PURE__ */ a.jsxs("button", { className: "sc-user-input--file-icon-wrapper", type: "button", children: [
|
|
10649
|
-
/* @__PURE__ */ a.jsx(
|
|
10647
|
+
/* @__PURE__ */ a.jsx(V1, {}),
|
|
10650
10648
|
/* @__PURE__ */ a.jsx(
|
|
10651
10649
|
"input",
|
|
10652
10650
|
{
|
|
@@ -10658,7 +10656,7 @@ const Lt = /* @__PURE__ */ Ff(It), $t = [
|
|
|
10658
10656
|
}
|
|
10659
10657
|
)
|
|
10660
10658
|
] }) });
|
|
10661
|
-
},
|
|
10659
|
+
}, Ut = ({
|
|
10662
10660
|
x: u = "0",
|
|
10663
10661
|
y: D = "0",
|
|
10664
10662
|
className: f = "sc-user-input--location-icon",
|
|
@@ -10677,7 +10675,7 @@ const Lt = /* @__PURE__ */ Ff(It), $t = [
|
|
|
10677
10675
|
...n,
|
|
10678
10676
|
children: /* @__PURE__ */ a.jsx("path", { d: "M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5" })
|
|
10679
10677
|
}
|
|
10680
|
-
),
|
|
10678
|
+
), Vt = () => {
|
|
10681
10679
|
const { setPayload: u, send: D } = cu(), f = Bu(), e = (t) => {
|
|
10682
10680
|
navigator.geolocation ? navigator.geolocation.getCurrentPosition(
|
|
10683
10681
|
(n) => {
|
|
@@ -10711,12 +10709,12 @@ const Lt = /* @__PURE__ */ Ff(It), $t = [
|
|
|
10711
10709
|
onClick: e,
|
|
10712
10710
|
type: "button",
|
|
10713
10711
|
className: "sc-user-input--location-icon-wrapper",
|
|
10714
|
-
children: /* @__PURE__ */ a.jsx(
|
|
10712
|
+
children: /* @__PURE__ */ a.jsx(Ut, {})
|
|
10715
10713
|
}
|
|
10716
10714
|
) });
|
|
10717
10715
|
};
|
|
10718
|
-
var
|
|
10719
|
-
const
|
|
10716
|
+
var rf = /* @__PURE__ */ ((u) => (u.web_url = "web_url", u.postback = "postback", u.nested = "nested", u))(rf || {});
|
|
10717
|
+
const Wt = ({ item: u, onPostback: D }) => {
|
|
10720
10718
|
const { colors: f } = du(), e = () => {
|
|
10721
10719
|
switch (u.type) {
|
|
10722
10720
|
case "web_url":
|
|
@@ -10737,16 +10735,16 @@ const Yt = ({ item: u, onPostback: D }) => {
|
|
|
10737
10735
|
children: /* @__PURE__ */ a.jsx("span", { className: "sc-menu-item-text", children: u.title })
|
|
10738
10736
|
}
|
|
10739
10737
|
) });
|
|
10740
|
-
},
|
|
10738
|
+
}, Ht = () => {
|
|
10741
10739
|
const u = Bu(), { send: D, setPayload: f } = cu(), [e, t] = U({
|
|
10742
10740
|
title: "Menu",
|
|
10743
|
-
type:
|
|
10741
|
+
type: rf.nested,
|
|
10744
10742
|
call_to_actions: (u == null ? void 0 : u.menu) || []
|
|
10745
10743
|
}), n = pu(null);
|
|
10746
10744
|
X(() => {
|
|
10747
10745
|
t({
|
|
10748
10746
|
title: "Menu",
|
|
10749
|
-
type:
|
|
10747
|
+
type: rf.nested,
|
|
10750
10748
|
call_to_actions: (u == null ? void 0 : u.menu) || []
|
|
10751
10749
|
});
|
|
10752
10750
|
}, [u]);
|
|
@@ -10774,7 +10772,7 @@ const Yt = ({ item: u, onPostback: D }) => {
|
|
|
10774
10772
|
ref: n,
|
|
10775
10773
|
className: "sc-menu-elements-carousel sc-menu-always-visible",
|
|
10776
10774
|
children: e.call_to_actions && /* @__PURE__ */ a.jsx(a.Fragment, { children: e.call_to_actions.map((F, o) => /* @__PURE__ */ a.jsx("div", { className: "sc-menu-carousel-card", children: /* @__PURE__ */ a.jsx(
|
|
10777
|
-
|
|
10775
|
+
Wt,
|
|
10778
10776
|
{
|
|
10779
10777
|
item: F,
|
|
10780
10778
|
parent: e,
|
|
@@ -10784,13 +10782,13 @@ const Yt = ({ item: u, onPostback: D }) => {
|
|
|
10784
10782
|
) }, o)) })
|
|
10785
10783
|
}
|
|
10786
10784
|
) });
|
|
10787
|
-
},
|
|
10785
|
+
}, Yt = ({
|
|
10788
10786
|
viewBox: u = "0 0 48 48",
|
|
10789
10787
|
...D
|
|
10790
10788
|
}) => /* @__PURE__ */ a.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: u, ...D, children: [
|
|
10791
10789
|
/* @__PURE__ */ a.jsx("path", { d: "M4.02 42L46 24 4.02 6 4 20l30 4-30 4z" }),
|
|
10792
10790
|
/* @__PURE__ */ a.jsx("path", { fill: "none", d: "M0 0h48v48H0z" })
|
|
10793
|
-
] }),
|
|
10791
|
+
] }), Kt = (u) => {
|
|
10794
10792
|
const { onClick: D, ...f } = u;
|
|
10795
10793
|
return /* @__PURE__ */ a.jsx(
|
|
10796
10794
|
"button",
|
|
@@ -10798,10 +10796,10 @@ const Yt = ({ item: u, onPostback: D }) => {
|
|
|
10798
10796
|
onClick: D,
|
|
10799
10797
|
...f,
|
|
10800
10798
|
className: "sc-user-input--button-icon-wrapper",
|
|
10801
|
-
children: /* @__PURE__ */ a.jsx(
|
|
10799
|
+
children: /* @__PURE__ */ a.jsx(Yt, {})
|
|
10802
10800
|
}
|
|
10803
10801
|
);
|
|
10804
|
-
},
|
|
10802
|
+
}, Jt = () => {
|
|
10805
10803
|
const { setPayload: u, send: D, suggestions: f } = cu(), e = Bu(), { colors: t } = du(), n = (r, s) => {
|
|
10806
10804
|
u(s), D({
|
|
10807
10805
|
event: r,
|
|
@@ -10829,7 +10827,7 @@ const Yt = ({ item: u, onPostback: D }) => {
|
|
|
10829
10827
|
))
|
|
10830
10828
|
}
|
|
10831
10829
|
);
|
|
10832
|
-
},
|
|
10830
|
+
}, Gt = () => {
|
|
10833
10831
|
var Z;
|
|
10834
10832
|
const { maxUploadSize: u } = Uu(), { t: D } = Ou(), { colors: f } = du(), {
|
|
10835
10833
|
suggestions: e,
|
|
@@ -10910,9 +10908,9 @@ const Yt = ({ item: u, onPostback: D }) => {
|
|
|
10910
10908
|
(q = b.current) == null || q.focus();
|
|
10911
10909
|
}, I = o === iD.uploading, R = eu.getItem("profileLiveChat") || {}, M = eu.getItem("isOffline") || (R == null ? void 0 : R.isOffline), V = ((Z = R == null ? void 0 : R.channel) == null ? void 0 : Z.name) === "console-channel";
|
|
10912
10910
|
return (M || !(R != null && R.id)) && !V ? null : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
10913
|
-
j.length > 0 && /* @__PURE__ */ a.jsx(
|
|
10911
|
+
j.length > 0 && /* @__PURE__ */ a.jsx(Ht, {}),
|
|
10914
10912
|
/* @__PURE__ */ a.jsxs("div", { className: "sc-user-input-wrapper", children: [
|
|
10915
|
-
e.length > 0 && /* @__PURE__ */ a.jsx(
|
|
10913
|
+
e.length > 0 && /* @__PURE__ */ a.jsx(Jt, {}),
|
|
10916
10914
|
(r || I) && /* @__PURE__ */ a.jsxs(
|
|
10917
10915
|
"div",
|
|
10918
10916
|
{
|
|
@@ -10923,7 +10921,7 @@ const Yt = ({ item: u, onPostback: D }) => {
|
|
|
10923
10921
|
},
|
|
10924
10922
|
children: [
|
|
10925
10923
|
/* @__PURE__ */ a.jsx(
|
|
10926
|
-
|
|
10924
|
+
V1,
|
|
10927
10925
|
{
|
|
10928
10926
|
width: "16px",
|
|
10929
10927
|
height: "16px",
|
|
@@ -10933,7 +10931,7 @@ const Yt = ({ item: u, onPostback: D }) => {
|
|
|
10933
10931
|
T && /* @__PURE__ */ a.jsx("span", { children: T }),
|
|
10934
10932
|
I && /* @__PURE__ */ a.jsx("span", { children: "Loading..." }),
|
|
10935
10933
|
r && r.name && !T && /* @__PURE__ */ a.jsx("span", { children: r.name.length > 23 ? `${r.name.substring(0, 23)}...` : r.name }),
|
|
10936
|
-
/* @__PURE__ */ a.jsx("span", { className: "delete-file-message", onClick: k, children: /* @__PURE__ */ a.jsx(
|
|
10934
|
+
/* @__PURE__ */ a.jsx("span", { className: "delete-file-message", onClick: k, children: /* @__PURE__ */ a.jsx(Ef, { height: "10" }) })
|
|
10937
10935
|
]
|
|
10938
10936
|
}
|
|
10939
10937
|
),
|
|
@@ -10976,11 +10974,11 @@ const Yt = ({ item: u, onPostback: D }) => {
|
|
|
10976
10974
|
}
|
|
10977
10975
|
),
|
|
10978
10976
|
/* @__PURE__ */ a.jsxs("div", { className: "sc-user-input--buttons", children: [
|
|
10979
|
-
S && /* @__PURE__ */ a.jsx("div", { className: "sc-user-input--button", children: /* @__PURE__ */ a.jsx(
|
|
10980
|
-
g && /* @__PURE__ */ a.jsx("div", { className: "sc-user-input--button", children: /* @__PURE__ */ a.jsx(
|
|
10981
|
-
L && /* @__PURE__ */ a.jsx("div", { className: "sc-user-input--button", children: /* @__PURE__ */ a.jsx(
|
|
10977
|
+
S && /* @__PURE__ */ a.jsx("div", { className: "sc-user-input--button", children: /* @__PURE__ */ a.jsx(Mt, { inputRef: b, onInput: E }) }),
|
|
10978
|
+
g && /* @__PURE__ */ a.jsx("div", { className: "sc-user-input--button", children: /* @__PURE__ */ a.jsx(Vt, {}) }),
|
|
10979
|
+
L && /* @__PURE__ */ a.jsx("div", { className: "sc-user-input--button", children: /* @__PURE__ */ a.jsx(zt, {}) }),
|
|
10982
10980
|
/* @__PURE__ */ a.jsx("div", { className: "sc-user-input--button", children: /* @__PURE__ */ a.jsx(
|
|
10983
|
-
|
|
10981
|
+
Kt,
|
|
10984
10982
|
{
|
|
10985
10983
|
disabled: !t,
|
|
10986
10984
|
onClick: (q) => h(q)
|
|
@@ -10992,7 +10990,7 @@ const Yt = ({ item: u, onPostback: D }) => {
|
|
|
10992
10990
|
)
|
|
10993
10991
|
] })
|
|
10994
10992
|
] });
|
|
10995
|
-
},
|
|
10993
|
+
}, Xt = ({
|
|
10996
10994
|
width: u = "24",
|
|
10997
10995
|
height: D = "24",
|
|
10998
10996
|
fill: f = "none",
|
|
@@ -11017,7 +11015,7 @@ const Yt = ({ item: u, onPostback: D }) => {
|
|
|
11017
11015
|
...F,
|
|
11018
11016
|
children: /* @__PURE__ */ a.jsx("path", { stroke: "#fff", strokeOpacity: "1", d: "M15 18L9 12 15 6" })
|
|
11019
11017
|
}
|
|
11020
|
-
),
|
|
11018
|
+
), Zt = () => {
|
|
11021
11019
|
const { t: u } = Ou(), { colors: D } = du(), { setWebviewUrl: f, webviewUrl: e } = cu(), [t, n] = U(!1);
|
|
11022
11020
|
X(() => {
|
|
11023
11021
|
n(!0);
|
|
@@ -11033,13 +11031,13 @@ const Yt = ({ item: u, onPostback: D }) => {
|
|
|
11033
11031
|
className: "sc-webview--footer",
|
|
11034
11032
|
style: { background: D.header.bg, color: D.header.text },
|
|
11035
11033
|
children: /* @__PURE__ */ a.jsxs("h3", { className: "sc-webview--button", onClick: r, children: [
|
|
11036
|
-
/* @__PURE__ */ a.jsx(
|
|
11034
|
+
/* @__PURE__ */ a.jsx(Xt, { width: "16px", height: "16px" }),
|
|
11037
11035
|
u("settings.back")
|
|
11038
11036
|
] })
|
|
11039
11037
|
}
|
|
11040
11038
|
)
|
|
11041
11039
|
] });
|
|
11042
|
-
},
|
|
11040
|
+
}, Qt = ({
|
|
11043
11041
|
CustomHeader: u,
|
|
11044
11042
|
CustomAvatar: D,
|
|
11045
11043
|
PreChat: f,
|
|
@@ -11047,15 +11045,15 @@ const Yt = ({ item: u, onPostback: D }) => {
|
|
|
11047
11045
|
}) => {
|
|
11048
11046
|
const { connectionState: t } = cu(), { screen: n, isOpen: r } = Nu();
|
|
11049
11047
|
return /* @__PURE__ */ a.jsxs("div", { className: `sc-chat-window ${r ? "opened" : "closed"}`, children: [
|
|
11050
|
-
/* @__PURE__ */ a.jsx(
|
|
11048
|
+
/* @__PURE__ */ a.jsx(Le, { children: u && /* @__PURE__ */ a.jsx(u, {}) }),
|
|
11051
11049
|
n === "prechat" && f && /* @__PURE__ */ a.jsx(f, {}),
|
|
11052
|
-
["prechat", "postchat", "webview"].indexOf(n) === -1 && t === 3 && /* @__PURE__ */ a.jsx(
|
|
11053
|
-
n !== "prechat" && n !== "postchat" && t !== 3 && /* @__PURE__ */ a.jsx(
|
|
11050
|
+
["prechat", "postchat", "webview"].indexOf(n) === -1 && t === 3 && /* @__PURE__ */ a.jsx(Ot, { Avatar: D }),
|
|
11051
|
+
n !== "prechat" && n !== "postchat" && t !== 3 && /* @__PURE__ */ a.jsx(qe, {}),
|
|
11054
11052
|
n === "postchat" && e && /* @__PURE__ */ a.jsx(e, {}),
|
|
11055
|
-
["prechat", "postchat", "webview"].indexOf(n) === -1 && t === 3 && /* @__PURE__ */ a.jsx(
|
|
11056
|
-
n === "webview" && /* @__PURE__ */ a.jsx(
|
|
11053
|
+
["prechat", "postchat", "webview"].indexOf(n) === -1 && t === 3 && /* @__PURE__ */ a.jsx(Gt, {}),
|
|
11054
|
+
n === "webview" && /* @__PURE__ */ a.jsx(Zt, {})
|
|
11057
11055
|
] });
|
|
11058
|
-
},
|
|
11056
|
+
}, W1 = ({
|
|
11059
11057
|
CustomLauncher: u,
|
|
11060
11058
|
CustomHeader: D,
|
|
11061
11059
|
CustomAvatar: f,
|
|
@@ -11066,7 +11064,7 @@ const Yt = ({ item: u, onPostback: D }) => {
|
|
|
11066
11064
|
const n = Uu(), r = cu(), s = Nu(), { socket: F } = Yu(), { setScreen: o } = Nu(), d = Bu(), c = d.offline_mode, l = kD(c), j = (C) => {
|
|
11067
11065
|
C.preventDefault(), s.setIsOpen(!s.isOpen);
|
|
11068
11066
|
};
|
|
11069
|
-
return
|
|
11067
|
+
return xe(), new URLSearchParams().append("owner_id", n.ownerId), X(() => {
|
|
11070
11068
|
if (!l && !eu.getItem("profileLiveChat")) {
|
|
11071
11069
|
o("prechat");
|
|
11072
11070
|
return;
|
|
@@ -11092,20 +11090,20 @@ const Yt = ({ item: u, onPostback: D }) => {
|
|
|
11092
11090
|
children: [
|
|
11093
11091
|
r.newMessagesCount > 0 && !s.isOpen && /* @__PURE__ */ a.jsx("div", { className: "sc-new-messages-count", children: r.newMessagesCount }),
|
|
11094
11092
|
s.isOpen ? /* @__PURE__ */ a.jsx(
|
|
11095
|
-
|
|
11093
|
+
Ef,
|
|
11096
11094
|
{
|
|
11097
11095
|
className: "sc-closed-icon",
|
|
11098
11096
|
width: "16px",
|
|
11099
11097
|
height: "16px"
|
|
11100
11098
|
}
|
|
11101
|
-
) : /* @__PURE__ */ a.jsx(
|
|
11099
|
+
) : /* @__PURE__ */ a.jsx(A1, { className: "sc-open-icon" })
|
|
11102
11100
|
]
|
|
11103
11101
|
}
|
|
11104
11102
|
)
|
|
11105
11103
|
}
|
|
11106
11104
|
),
|
|
11107
11105
|
s.isOpen && /* @__PURE__ */ a.jsx(
|
|
11108
|
-
|
|
11106
|
+
Qt,
|
|
11109
11107
|
{
|
|
11110
11108
|
CustomHeader: D,
|
|
11111
11109
|
CustomAvatar: f,
|
|
@@ -11115,7 +11113,7 @@ const Yt = ({ item: u, onPostback: D }) => {
|
|
|
11115
11113
|
)
|
|
11116
11114
|
] });
|
|
11117
11115
|
};
|
|
11118
|
-
function
|
|
11116
|
+
function u8(u) {
|
|
11119
11117
|
const D = {};
|
|
11120
11118
|
return Object.entries(u).forEach(([f, e]) => {
|
|
11121
11119
|
if (!(typeof e != "string" || !e)) {
|
|
@@ -11128,7 +11126,7 @@ function f8(u) {
|
|
|
11128
11126
|
}
|
|
11129
11127
|
}), D;
|
|
11130
11128
|
}
|
|
11131
|
-
const
|
|
11129
|
+
const H1 = ({
|
|
11132
11130
|
onFormDataSubmit: u
|
|
11133
11131
|
}) => {
|
|
11134
11132
|
const D = Uu(), { t: f } = Ou(), { colors: e } = du(), { socket: t } = Yu(), n = Bu(), { setScreen: r } = Nu(), {
|
|
@@ -11137,7 +11135,7 @@ const Y1 = ({
|
|
|
11137
11135
|
setConnectionState: o,
|
|
11138
11136
|
participants: d,
|
|
11139
11137
|
setParticipants: c
|
|
11140
|
-
} = cu(), { formData: l, setFormData: j, renderFormField: m, errors: C, validateAll: v } =
|
|
11138
|
+
} = cu(), { formData: l, setFormData: j, renderFormField: m, errors: C, validateAll: v } = U1({
|
|
11141
11139
|
loadFromDataUserSubs: !1,
|
|
11142
11140
|
initialData: {}
|
|
11143
11141
|
}), S = n.offline_mode, g = kD(S);
|
|
@@ -11153,7 +11151,7 @@ const Y1 = ({
|
|
|
11153
11151
|
Object.entries(l).forEach(([A, P]) => {
|
|
11154
11152
|
N[A] = typeof P == "string" ? P.trim() : P;
|
|
11155
11153
|
});
|
|
11156
|
-
const z =
|
|
11154
|
+
const z = u8(N);
|
|
11157
11155
|
Object.keys(z).length > 0 && eu.setItem("dataUserSubs", z);
|
|
11158
11156
|
try {
|
|
11159
11157
|
o(2);
|
|
@@ -11258,7 +11256,7 @@ const Y1 = ({
|
|
|
11258
11256
|
) })
|
|
11259
11257
|
] })
|
|
11260
11258
|
] }) });
|
|
11261
|
-
},
|
|
11259
|
+
}, D8 = zu({}), f8 = ({
|
|
11262
11260
|
children: u
|
|
11263
11261
|
}) => {
|
|
11264
11262
|
const D = Uu(), [f, e] = U(!1), t = async () => {
|
|
@@ -11272,33 +11270,33 @@ const Y1 = ({
|
|
|
11272
11270
|
};
|
|
11273
11271
|
return X(() => {
|
|
11274
11272
|
f || t();
|
|
11275
|
-
}, []), f ? /* @__PURE__ */ a.jsx(
|
|
11273
|
+
}, []), f ? /* @__PURE__ */ a.jsx(D8.Provider, { value: {}, children: u }) : null;
|
|
11276
11274
|
};
|
|
11277
|
-
function
|
|
11278
|
-
return /* @__PURE__ */ a.jsx(
|
|
11275
|
+
function r8(u) {
|
|
11276
|
+
return /* @__PURE__ */ a.jsx(D1, { ...u, children: /* @__PURE__ */ a.jsx(e1, { children: /* @__PURE__ */ a.jsx(f8, { children: /* @__PURE__ */ a.jsx(b1, { children: /* @__PURE__ */ a.jsx(B1, { children: /* @__PURE__ */ a.jsx(w1, { children: /* @__PURE__ */ a.jsx(m1, { children: /* @__PURE__ */ a.jsx(Xf, { channelName: "main-channel", children: /* @__PURE__ */ a.jsx(y1, { children: /* @__PURE__ */ a.jsx(W1, { PreChat: H1 }) }) }) }) }) }) }) }) }) });
|
|
11279
11277
|
}
|
|
11280
|
-
function
|
|
11278
|
+
function a8({
|
|
11281
11279
|
CustomHeader: u,
|
|
11282
11280
|
CustomAvatar: D,
|
|
11283
11281
|
config: f
|
|
11284
11282
|
}) {
|
|
11285
|
-
return /* @__PURE__ */ a.jsx(
|
|
11286
|
-
|
|
11283
|
+
return /* @__PURE__ */ a.jsx(D1, { ...f, children: /* @__PURE__ */ a.jsx(e1, { children: /* @__PURE__ */ a.jsx(b1, { children: /* @__PURE__ */ a.jsx(B1, { children: /* @__PURE__ */ a.jsx(w1, { children: /* @__PURE__ */ a.jsx(Xf, { channelName: "main-channel", children: /* @__PURE__ */ a.jsx(m1, { defaultScreen: "chat", children: /* @__PURE__ */ a.jsx(
|
|
11284
|
+
y1,
|
|
11287
11285
|
{
|
|
11288
11286
|
defaultConnectionState: tD.connected,
|
|
11289
11287
|
children: /* @__PURE__ */ a.jsx(
|
|
11290
|
-
|
|
11288
|
+
W1,
|
|
11291
11289
|
{
|
|
11292
11290
|
CustomHeader: u,
|
|
11293
11291
|
CustomAvatar: D,
|
|
11294
|
-
PreChat:
|
|
11292
|
+
PreChat: H1
|
|
11295
11293
|
}
|
|
11296
11294
|
)
|
|
11297
11295
|
}
|
|
11298
11296
|
) }) }) }) }) }) }) });
|
|
11299
11297
|
}
|
|
11300
11298
|
export {
|
|
11301
|
-
|
|
11299
|
+
r8 as ChatWidget,
|
|
11302
11300
|
eu as LocalStorageScoped,
|
|
11303
|
-
|
|
11301
|
+
a8 as UiChatWidget
|
|
11304
11302
|
};
|