@chatsystem/client 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +523 -514
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5,11 +5,11 @@ var Et = (e, t, n) => Hc(e, typeof t != "symbol" ? t + "" : t, n);
|
|
|
5
5
|
import * as Ue from "react";
|
|
6
6
|
import ke, { useState as Fe, useRef as ze, useEffect as lt, useCallback as St, useContext as an, useMemo as Ar, createContext as Uc, forwardRef as $c } from "react";
|
|
7
7
|
import Un from "react-dom";
|
|
8
|
-
var
|
|
8
|
+
var rs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
9
9
|
function Jo(e) {
|
|
10
10
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
11
11
|
}
|
|
12
|
-
var
|
|
12
|
+
var Ua = { exports: {} }, Pn = {};
|
|
13
13
|
/**
|
|
14
14
|
* @license React
|
|
15
15
|
* react-jsx-runtime.production.min.js
|
|
@@ -19,10 +19,10 @@ var Ha = { exports: {} }, Pn = {};
|
|
|
19
19
|
* This source code is licensed under the MIT license found in the
|
|
20
20
|
* LICENSE file in the root directory of this source tree.
|
|
21
21
|
*/
|
|
22
|
-
var
|
|
22
|
+
var as;
|
|
23
23
|
function jc() {
|
|
24
|
-
if (
|
|
25
|
-
|
|
24
|
+
if (as) return Pn;
|
|
25
|
+
as = 1;
|
|
26
26
|
var e = ke, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
27
27
|
function o(s, d, g) {
|
|
28
28
|
var p, u = {}, c = null, l = null;
|
|
@@ -43,9 +43,9 @@ var kn = {};
|
|
|
43
43
|
* This source code is licensed under the MIT license found in the
|
|
44
44
|
* LICENSE file in the root directory of this source tree.
|
|
45
45
|
*/
|
|
46
|
-
var
|
|
46
|
+
var is;
|
|
47
47
|
function zc() {
|
|
48
|
-
return
|
|
48
|
+
return is || (is = 1, process.env.NODE_ENV !== "production" && function() {
|
|
49
49
|
var e = ke, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), s = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), c = Symbol.for("react.lazy"), l = Symbol.for("react.offscreen"), h = Symbol.iterator, f = "@@iterator";
|
|
50
50
|
function T(D) {
|
|
51
51
|
if (D === null || typeof D != "object")
|
|
@@ -284,8 +284,8 @@ function zc() {
|
|
|
284
284
|
} finally {
|
|
285
285
|
se = !1, ee.current = Ce, ie(), Error.prepareStackTrace = Ae;
|
|
286
286
|
}
|
|
287
|
-
var fn = D ? D.displayName || D.name : "",
|
|
288
|
-
return typeof D == "function" && ne.set(D,
|
|
287
|
+
var fn = D ? D.displayName || D.name : "", ns = fn ? ue(fn) : "";
|
|
288
|
+
return typeof D == "function" && ne.set(D, ns), ns;
|
|
289
289
|
}
|
|
290
290
|
function $e(D, Y, K) {
|
|
291
291
|
return X(D, !1);
|
|
@@ -472,20 +472,20 @@ function zc() {
|
|
|
472
472
|
return pt(D, ge, qe, Ae, ce, oe.current, Ee);
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
|
-
var oa = m.ReactCurrentOwner,
|
|
475
|
+
var oa = m.ReactCurrentOwner, Ki = m.ReactDebugCurrentFrame;
|
|
476
476
|
function cn(D) {
|
|
477
477
|
if (D) {
|
|
478
478
|
var Y = D._owner, K = et(D.type, D._source, Y ? Y.type : null);
|
|
479
|
-
|
|
479
|
+
Ki.setExtraStackFrame(K);
|
|
480
480
|
} else
|
|
481
|
-
|
|
481
|
+
Ki.setExtraStackFrame(null);
|
|
482
482
|
}
|
|
483
483
|
var ua;
|
|
484
484
|
ua = !1;
|
|
485
485
|
function la(D) {
|
|
486
486
|
return typeof D == "object" && D !== null && D.$$typeof === t;
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function Qi() {
|
|
489
489
|
{
|
|
490
490
|
if (oa.current) {
|
|
491
491
|
var D = k(oa.current.type);
|
|
@@ -500,10 +500,10 @@ Check the render method of \`` + D + "`.";
|
|
|
500
500
|
function Rc(D) {
|
|
501
501
|
return "";
|
|
502
502
|
}
|
|
503
|
-
var
|
|
503
|
+
var Zi = {};
|
|
504
504
|
function wc(D) {
|
|
505
505
|
{
|
|
506
|
-
var Y =
|
|
506
|
+
var Y = Qi();
|
|
507
507
|
if (!Y) {
|
|
508
508
|
var K = typeof D == "string" ? D : D.displayName || D.name;
|
|
509
509
|
K && (Y = `
|
|
@@ -513,27 +513,27 @@ Check the top-level render call using <` + K + ">.");
|
|
|
513
513
|
return Y;
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function Ji(D, Y) {
|
|
517
517
|
{
|
|
518
518
|
if (!D._store || D._store.validated || D.key != null)
|
|
519
519
|
return;
|
|
520
520
|
D._store.validated = !0;
|
|
521
521
|
var K = wc(Y);
|
|
522
|
-
if (
|
|
522
|
+
if (Zi[K])
|
|
523
523
|
return;
|
|
524
|
-
|
|
524
|
+
Zi[K] = !0;
|
|
525
525
|
var ce = "";
|
|
526
526
|
D && D._owner && D._owner !== oa.current && (ce = " It was passed a child from " + k(D._owner.type) + "."), cn(D), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', K, ce), cn(null);
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function es(D, Y) {
|
|
530
530
|
{
|
|
531
531
|
if (typeof D != "object")
|
|
532
532
|
return;
|
|
533
533
|
if (Ln(D))
|
|
534
534
|
for (var K = 0; K < D.length; K++) {
|
|
535
535
|
var ce = D[K];
|
|
536
|
-
la(ce) &&
|
|
536
|
+
la(ce) && Ji(ce, Y);
|
|
537
537
|
}
|
|
538
538
|
else if (la(D))
|
|
539
539
|
D._store && (D._store.validated = !0);
|
|
@@ -541,7 +541,7 @@ Check the top-level render call using <` + K + ">.");
|
|
|
541
541
|
var Ae = T(D);
|
|
542
542
|
if (typeof Ae == "function" && Ae !== D.entries)
|
|
543
543
|
for (var Ce = Ae.call(D), Ee; !(Ee = Ce.next()).done; )
|
|
544
|
-
la(Ee.value) &&
|
|
544
|
+
la(Ee.value) && Ji(Ee.value, Y);
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
547
|
}
|
|
@@ -582,14 +582,14 @@ Check the top-level render call using <` + K + ">.");
|
|
|
582
582
|
D.ref !== null && (cn(D), E("Invalid attribute `ref` supplied to `React.Fragment`."), cn(null));
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function ts(D, Y, K, ce, Ae, Ce) {
|
|
586
586
|
{
|
|
587
587
|
var Ee = C(D);
|
|
588
588
|
if (!Ee) {
|
|
589
589
|
var ge = "";
|
|
590
590
|
(D === void 0 || typeof D == "object" && D !== null && Object.keys(D).length === 0) && (ge += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
591
591
|
var qe = Rc();
|
|
592
|
-
qe ? ge += qe : ge +=
|
|
592
|
+
qe ? ge += qe : ge += Qi();
|
|
593
593
|
var Le;
|
|
594
594
|
D === null ? Le = "null" : Ln(D) ? Le = "array" : D !== void 0 && D.$$typeof === t ? (Le = "<" + (k(D.type) || "Unknown") + " />", ge = " Did you accidentally export a JSX literal instead of a component?") : Le = typeof D, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Le, ge);
|
|
595
595
|
}
|
|
@@ -602,28 +602,28 @@ Check the top-level render call using <` + K + ">.");
|
|
|
602
602
|
if (ce)
|
|
603
603
|
if (Ln(rt)) {
|
|
604
604
|
for (var fn = 0; fn < rt.length; fn++)
|
|
605
|
-
|
|
605
|
+
es(rt[fn], D);
|
|
606
606
|
Object.freeze && Object.freeze(rt);
|
|
607
607
|
} else
|
|
608
608
|
E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
609
609
|
else
|
|
610
|
-
|
|
610
|
+
es(rt, D);
|
|
611
611
|
}
|
|
612
612
|
return D === r ? Pc(De) : Lc(De), De;
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
615
|
function kc(D, Y, K) {
|
|
616
|
-
return
|
|
616
|
+
return ts(D, Y, K, !0);
|
|
617
617
|
}
|
|
618
618
|
function Dc(D, Y, K) {
|
|
619
|
-
return
|
|
619
|
+
return ts(D, Y, K, !1);
|
|
620
620
|
}
|
|
621
621
|
var Mc = Dc, Bc = kc;
|
|
622
622
|
kn.Fragment = r, kn.jsx = Mc, kn.jsxs = Bc;
|
|
623
623
|
}()), kn;
|
|
624
624
|
}
|
|
625
|
-
process.env.NODE_ENV === "production" ?
|
|
626
|
-
var Z =
|
|
625
|
+
process.env.NODE_ENV === "production" ? Ua.exports = jc() : Ua.exports = zc();
|
|
626
|
+
var Z = Ua.exports, $n = {}, Dn = Un;
|
|
627
627
|
if (process.env.NODE_ENV === "production")
|
|
628
628
|
$n.createRoot = Dn.createRoot, $n.hydrateRoot = Dn.hydrateRoot;
|
|
629
629
|
else {
|
|
@@ -661,15 +661,15 @@ function eu(e, t) {
|
|
|
661
661
|
a = r[i], !(t.indexOf(a) >= 0) && (n[a] = e[a]);
|
|
662
662
|
return n;
|
|
663
663
|
}
|
|
664
|
-
function
|
|
665
|
-
return
|
|
664
|
+
function $a(e, t) {
|
|
665
|
+
return $a = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, a) {
|
|
666
666
|
return r.__proto__ = a, r;
|
|
667
|
-
},
|
|
667
|
+
}, $a(e, t);
|
|
668
668
|
}
|
|
669
669
|
function tu(e, t) {
|
|
670
|
-
e.prototype = Object.create(t.prototype), e.prototype.constructor = e,
|
|
670
|
+
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, $a(e, t);
|
|
671
671
|
}
|
|
672
|
-
var
|
|
672
|
+
var ja = { exports: {} }, za = { exports: {} }, xe = {};
|
|
673
673
|
/** @license React v16.13.1
|
|
674
674
|
* react-is.production.min.js
|
|
675
675
|
*
|
|
@@ -678,10 +678,10 @@ var $a = { exports: {} }, ja = { exports: {} }, xe = {};
|
|
|
678
678
|
* This source code is licensed under the MIT license found in the
|
|
679
679
|
* LICENSE file in the root directory of this source tree.
|
|
680
680
|
*/
|
|
681
|
-
var
|
|
681
|
+
var ss;
|
|
682
682
|
function Vc() {
|
|
683
|
-
if (
|
|
684
|
-
|
|
683
|
+
if (ss) return xe;
|
|
684
|
+
ss = 1;
|
|
685
685
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, g = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, u = e ? Symbol.for("react.suspense") : 60113, c = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, m = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119;
|
|
686
686
|
function _(v) {
|
|
687
687
|
if (typeof v == "object" && v !== null) {
|
|
@@ -753,9 +753,9 @@ var Se = {};
|
|
|
753
753
|
* This source code is licensed under the MIT license found in the
|
|
754
754
|
* LICENSE file in the root directory of this source tree.
|
|
755
755
|
*/
|
|
756
|
-
var
|
|
756
|
+
var os;
|
|
757
757
|
function Yc() {
|
|
758
|
-
return
|
|
758
|
+
return os || (os = 1, process.env.NODE_ENV !== "production" && function() {
|
|
759
759
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, g = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, u = e ? Symbol.for("react.suspense") : 60113, c = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, m = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119;
|
|
760
760
|
function _(X) {
|
|
761
761
|
return typeof X == "string" || typeof X == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
@@ -836,17 +836,17 @@ function Yc() {
|
|
|
836
836
|
Se.AsyncMode = v, Se.ConcurrentMode = S, Se.ContextConsumer = N, Se.ContextProvider = y, Se.Element = x, Se.ForwardRef = C, Se.Fragment = O, Se.Lazy = M, Se.Memo = k, Se.Portal = B, Se.Profiler = U, Se.StrictMode = W, Se.Suspense = te, Se.isAsyncMode = ye, Se.isConcurrentMode = I, Se.isContextConsumer = j, Se.isContextProvider = Q, Se.isElement = L, Se.isForwardRef = J, Se.isFragment = ie, Se.isLazy = ee, Se.isMemo = ae, Se.isPortal = ue, Se.isProfiler = se, Se.isStrictMode = ne, Se.isSuspense = we, Se.isValidElementType = _, Se.typeOf = A;
|
|
837
837
|
}()), Se;
|
|
838
838
|
}
|
|
839
|
-
process.env.NODE_ENV === "production" ?
|
|
840
|
-
var
|
|
839
|
+
process.env.NODE_ENV === "production" ? za.exports = Vc() : za.exports = Yc();
|
|
840
|
+
var _i = za.exports;
|
|
841
841
|
/*
|
|
842
842
|
object-assign
|
|
843
843
|
(c) Sindre Sorhus
|
|
844
844
|
@license MIT
|
|
845
845
|
*/
|
|
846
|
-
var ca,
|
|
846
|
+
var ca, us;
|
|
847
847
|
function Gc() {
|
|
848
|
-
if (
|
|
849
|
-
|
|
848
|
+
if (us) return ca;
|
|
849
|
+
us = 1;
|
|
850
850
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
|
|
851
851
|
function r(i) {
|
|
852
852
|
if (i == null)
|
|
@@ -889,25 +889,25 @@ function Gc() {
|
|
|
889
889
|
return d;
|
|
890
890
|
}, ca;
|
|
891
891
|
}
|
|
892
|
-
var fa,
|
|
893
|
-
function
|
|
894
|
-
if (
|
|
895
|
-
|
|
892
|
+
var fa, ls;
|
|
893
|
+
function vi() {
|
|
894
|
+
if (ls) return fa;
|
|
895
|
+
ls = 1;
|
|
896
896
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
897
897
|
return fa = e, fa;
|
|
898
898
|
}
|
|
899
|
-
var da,
|
|
899
|
+
var da, cs;
|
|
900
900
|
function nu() {
|
|
901
|
-
return
|
|
901
|
+
return cs || (cs = 1, da = Function.call.bind(Object.prototype.hasOwnProperty)), da;
|
|
902
902
|
}
|
|
903
|
-
var ha,
|
|
903
|
+
var ha, fs;
|
|
904
904
|
function qc() {
|
|
905
|
-
if (
|
|
906
|
-
|
|
905
|
+
if (fs) return ha;
|
|
906
|
+
fs = 1;
|
|
907
907
|
var e = function() {
|
|
908
908
|
};
|
|
909
909
|
if (process.env.NODE_ENV !== "production") {
|
|
910
|
-
var t =
|
|
910
|
+
var t = vi(), n = {}, r = nu();
|
|
911
911
|
e = function(i) {
|
|
912
912
|
var o = "Warning: " + i;
|
|
913
913
|
typeof console < "u" && console.error(o);
|
|
@@ -949,11 +949,11 @@ function qc() {
|
|
|
949
949
|
process.env.NODE_ENV !== "production" && (n = {});
|
|
950
950
|
}, ha = a, ha;
|
|
951
951
|
}
|
|
952
|
-
var ma,
|
|
952
|
+
var ma, ds;
|
|
953
953
|
function Wc() {
|
|
954
|
-
if (
|
|
955
|
-
|
|
956
|
-
var e =
|
|
954
|
+
if (ds) return ma;
|
|
955
|
+
ds = 1;
|
|
956
|
+
var e = _i, t = Gc(), n = vi(), r = nu(), a = qc(), i = function() {
|
|
957
957
|
};
|
|
958
958
|
process.env.NODE_ENV !== "production" && (i = function(s) {
|
|
959
959
|
var d = "Warning: " + s;
|
|
@@ -1270,11 +1270,11 @@ Valid keys: ` + JSON.stringify(Object.keys(I), null, " ")
|
|
|
1270
1270
|
return l.checkPropTypes = a, l.resetWarningCache = a.resetWarningCache, l.PropTypes = l, l;
|
|
1271
1271
|
}, ma;
|
|
1272
1272
|
}
|
|
1273
|
-
var pa,
|
|
1273
|
+
var pa, hs;
|
|
1274
1274
|
function Xc() {
|
|
1275
|
-
if (
|
|
1276
|
-
|
|
1277
|
-
var e =
|
|
1275
|
+
if (hs) return pa;
|
|
1276
|
+
hs = 1;
|
|
1277
|
+
var e = vi();
|
|
1278
1278
|
function t() {
|
|
1279
1279
|
}
|
|
1280
1280
|
function n() {
|
|
@@ -1319,11 +1319,11 @@ function Xc() {
|
|
|
1319
1319
|
}, pa;
|
|
1320
1320
|
}
|
|
1321
1321
|
if (process.env.NODE_ENV !== "production") {
|
|
1322
|
-
var Kc =
|
|
1323
|
-
|
|
1322
|
+
var Kc = _i, Qc = !0;
|
|
1323
|
+
ja.exports = Wc()(Kc.isElement, Qc);
|
|
1324
1324
|
} else
|
|
1325
|
-
|
|
1326
|
-
var Zc =
|
|
1325
|
+
ja.exports = Xc()();
|
|
1326
|
+
var Zc = ja.exports;
|
|
1327
1327
|
const fe = /* @__PURE__ */ Jo(Zc);
|
|
1328
1328
|
function Jc(e, t) {
|
|
1329
1329
|
return e.classList ? !!t && e.classList.contains(t) : (" " + (e.className.baseVal || e.className) + " ").indexOf(" " + t + " ") !== -1;
|
|
@@ -1331,13 +1331,13 @@ function Jc(e, t) {
|
|
|
1331
1331
|
function ef(e, t) {
|
|
1332
1332
|
e.classList ? e.classList.add(t) : Jc(e, t) || (typeof e.className == "string" ? e.className = e.className + " " + t : e.setAttribute("class", (e.className && e.className.baseVal || "") + " " + t));
|
|
1333
1333
|
}
|
|
1334
|
-
function
|
|
1334
|
+
function ms(e, t) {
|
|
1335
1335
|
return e.replace(new RegExp("(^|\\s)" + t + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
|
|
1336
1336
|
}
|
|
1337
1337
|
function tf(e, t) {
|
|
1338
|
-
e.classList ? e.classList.remove(t) : typeof e.className == "string" ? e.className =
|
|
1338
|
+
e.classList ? e.classList.remove(t) : typeof e.className == "string" ? e.className = ms(e.className, t) : e.setAttribute("class", ms(e.className && e.className.baseVal || "", t));
|
|
1339
1339
|
}
|
|
1340
|
-
const
|
|
1340
|
+
const ps = {
|
|
1341
1341
|
disabled: !1
|
|
1342
1342
|
};
|
|
1343
1343
|
var nf = process.env.NODE_ENV !== "production" ? fe.oneOfType([fe.number, fe.shape({
|
|
@@ -1359,7 +1359,7 @@ var nf = process.env.NODE_ENV !== "production" ? fe.oneOfType([fe.number, fe.sha
|
|
|
1359
1359
|
const ru = ke.createContext(null);
|
|
1360
1360
|
var au = function(t) {
|
|
1361
1361
|
return t.scrollTop;
|
|
1362
|
-
}, jn = "unmounted", Xt = "exited", Kt = "entering", pn = "entered",
|
|
1362
|
+
}, jn = "unmounted", Xt = "exited", Kt = "entering", pn = "entered", Va = "exiting", Nt = /* @__PURE__ */ function(e) {
|
|
1363
1363
|
tu(t, e);
|
|
1364
1364
|
function t(r, a) {
|
|
1365
1365
|
var i;
|
|
@@ -1382,7 +1382,7 @@ var au = function(t) {
|
|
|
1382
1382
|
var i = null;
|
|
1383
1383
|
if (a !== this.props) {
|
|
1384
1384
|
var o = this.state.status;
|
|
1385
|
-
this.props.in ? o !== Kt && o !== pn && (i = Kt) : (o === Kt || o === pn) && (i =
|
|
1385
|
+
this.props.in ? o !== Kt && o !== pn && (i = Kt) : (o === Kt || o === pn) && (i = Va);
|
|
1386
1386
|
}
|
|
1387
1387
|
this.updateStatus(!1, i);
|
|
1388
1388
|
}, n.componentWillUnmount = function() {
|
|
@@ -1409,7 +1409,7 @@ var au = function(t) {
|
|
|
1409
1409
|
});
|
|
1410
1410
|
}, n.performEnter = function(a) {
|
|
1411
1411
|
var i = this, o = this.props.enter, s = this.context ? this.context.isMounting : a, d = this.props.nodeRef ? [s] : [Un.findDOMNode(this), s], g = d[0], p = d[1], u = this.getTimeouts(), c = s ? u.appear : u.enter;
|
|
1412
|
-
if (!a && !o ||
|
|
1412
|
+
if (!a && !o || ps.disabled) {
|
|
1413
1413
|
this.safeSetState({
|
|
1414
1414
|
status: pn
|
|
1415
1415
|
}, function() {
|
|
@@ -1430,7 +1430,7 @@ var au = function(t) {
|
|
|
1430
1430
|
});
|
|
1431
1431
|
}, n.performExit = function() {
|
|
1432
1432
|
var a = this, i = this.props.exit, o = this.getTimeouts(), s = this.props.nodeRef ? void 0 : Un.findDOMNode(this);
|
|
1433
|
-
if (!i ||
|
|
1433
|
+
if (!i || ps.disabled) {
|
|
1434
1434
|
this.safeSetState({
|
|
1435
1435
|
status: Xt
|
|
1436
1436
|
}, function() {
|
|
@@ -1439,7 +1439,7 @@ var au = function(t) {
|
|
|
1439
1439
|
return;
|
|
1440
1440
|
}
|
|
1441
1441
|
this.props.onExit(s), this.safeSetState({
|
|
1442
|
-
status:
|
|
1442
|
+
status: Va
|
|
1443
1443
|
}, function() {
|
|
1444
1444
|
a.props.onExiting(s), a.onTransitionEnd(o.exit, function() {
|
|
1445
1445
|
a.safeSetState({
|
|
@@ -1677,7 +1677,7 @@ Nt.UNMOUNTED = jn;
|
|
|
1677
1677
|
Nt.EXITED = Xt;
|
|
1678
1678
|
Nt.ENTERING = Kt;
|
|
1679
1679
|
Nt.ENTERED = pn;
|
|
1680
|
-
Nt.EXITING =
|
|
1680
|
+
Nt.EXITING = Va;
|
|
1681
1681
|
var af = function(t, n) {
|
|
1682
1682
|
return t && n && n.split(" ").forEach(function(r) {
|
|
1683
1683
|
return ef(t, r);
|
|
@@ -1686,7 +1686,7 @@ var af = function(t, n) {
|
|
|
1686
1686
|
return t && n && n.split(" ").forEach(function(r) {
|
|
1687
1687
|
return tf(t, r);
|
|
1688
1688
|
});
|
|
1689
|
-
},
|
|
1689
|
+
}, Ai = /* @__PURE__ */ function(e) {
|
|
1690
1690
|
tu(t, e);
|
|
1691
1691
|
function t() {
|
|
1692
1692
|
for (var r, a = arguments.length, i = new Array(a), o = 0; o < a; o++)
|
|
@@ -1745,10 +1745,10 @@ var af = function(t, n) {
|
|
|
1745
1745
|
}));
|
|
1746
1746
|
}, t;
|
|
1747
1747
|
}(ke.Component);
|
|
1748
|
-
|
|
1748
|
+
Ai.defaultProps = {
|
|
1749
1749
|
classNames: ""
|
|
1750
1750
|
};
|
|
1751
|
-
|
|
1751
|
+
Ai.propTypes = process.env.NODE_ENV !== "production" ? Rr({}, Nt.propTypes, {
|
|
1752
1752
|
/**
|
|
1753
1753
|
* The animation classNames applied to the component as it appears, enters,
|
|
1754
1754
|
* exits or has finished the transition. A single name can be provided, which
|
|
@@ -1872,17 +1872,17 @@ vi.propTypes = process.env.NODE_ENV !== "production" ? Rr({}, Nt.propTypes, {
|
|
|
1872
1872
|
*/
|
|
1873
1873
|
onExited: fe.func
|
|
1874
1874
|
}) : {};
|
|
1875
|
-
var
|
|
1876
|
-
return
|
|
1875
|
+
var Ya = function(e, t) {
|
|
1876
|
+
return Ya = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
1877
1877
|
n.__proto__ = r;
|
|
1878
1878
|
} || function(n, r) {
|
|
1879
1879
|
for (var a in r) Object.prototype.hasOwnProperty.call(r, a) && (n[a] = r[a]);
|
|
1880
|
-
},
|
|
1880
|
+
}, Ya(e, t);
|
|
1881
1881
|
};
|
|
1882
1882
|
function ct(e, t) {
|
|
1883
1883
|
if (typeof t != "function" && t !== null)
|
|
1884
1884
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1885
|
-
|
|
1885
|
+
Ya(e, t);
|
|
1886
1886
|
function n() {
|
|
1887
1887
|
this.constructor = e;
|
|
1888
1888
|
}
|
|
@@ -1910,7 +1910,7 @@ function vt(e, t, n) {
|
|
|
1910
1910
|
(i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
|
|
1911
1911
|
return e.concat(i || Array.prototype.slice.call(t));
|
|
1912
1912
|
}
|
|
1913
|
-
var iu =
|
|
1913
|
+
var iu = _i, sf = {
|
|
1914
1914
|
$$typeof: !0,
|
|
1915
1915
|
render: !0,
|
|
1916
1916
|
defaultProps: !0,
|
|
@@ -1942,7 +1942,7 @@ var vn;
|
|
|
1942
1942
|
(function(e) {
|
|
1943
1943
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1944
1944
|
})(vn || (vn = {}));
|
|
1945
|
-
function
|
|
1945
|
+
function gs(e) {
|
|
1946
1946
|
return e.type === Oe.literal;
|
|
1947
1947
|
}
|
|
1948
1948
|
function uf(e) {
|
|
@@ -1972,7 +1972,7 @@ function hu(e) {
|
|
|
1972
1972
|
function mu(e) {
|
|
1973
1973
|
return !!(e && typeof e == "object" && e.type === vn.number);
|
|
1974
1974
|
}
|
|
1975
|
-
function
|
|
1975
|
+
function Ga(e) {
|
|
1976
1976
|
return !!(e && typeof e == "object" && e.type === vn.dateTime);
|
|
1977
1977
|
}
|
|
1978
1978
|
var pu = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, cf = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
@@ -2089,8 +2089,8 @@ function hf(e) {
|
|
|
2089
2089
|
function mf(e) {
|
|
2090
2090
|
return e.replace(/^(.*?)-/, "");
|
|
2091
2091
|
}
|
|
2092
|
-
var
|
|
2093
|
-
function
|
|
2092
|
+
var bs = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, gu = /^(@+)?(\+|#+)?[rs]?$/g, pf = /(\*)(0+)|(#+)(0+)|(0+)/g, bu = /^(0+)$/;
|
|
2093
|
+
function Es(e) {
|
|
2094
2094
|
var t = {};
|
|
2095
2095
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(gu, function(n, r, a) {
|
|
2096
2096
|
return typeof a != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : a === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof a == "string" ? a.length : 0)), "";
|
|
@@ -2150,7 +2150,7 @@ function gf(e) {
|
|
|
2150
2150
|
}
|
|
2151
2151
|
return t;
|
|
2152
2152
|
}
|
|
2153
|
-
function
|
|
2153
|
+
function Ts(e) {
|
|
2154
2154
|
var t = {}, n = Eu(e);
|
|
2155
2155
|
return n || t;
|
|
2156
2156
|
}
|
|
@@ -2190,12 +2190,12 @@ function bf(e) {
|
|
|
2190
2190
|
continue;
|
|
2191
2191
|
case "scientific":
|
|
2192
2192
|
t = re(re(re({}, t), { notation: "scientific" }), a.options.reduce(function(d, g) {
|
|
2193
|
-
return re(re({}, d),
|
|
2193
|
+
return re(re({}, d), Ts(g));
|
|
2194
2194
|
}, {}));
|
|
2195
2195
|
continue;
|
|
2196
2196
|
case "engineering":
|
|
2197
2197
|
t = re(re(re({}, t), { notation: "engineering" }), a.options.reduce(function(d, g) {
|
|
2198
|
-
return re(re({}, d),
|
|
2198
|
+
return re(re({}, d), Ts(g));
|
|
2199
2199
|
}, {}));
|
|
2200
2200
|
continue;
|
|
2201
2201
|
case "notation-simple":
|
|
@@ -2257,18 +2257,18 @@ function bf(e) {
|
|
|
2257
2257
|
t.minimumIntegerDigits = a.stem.length;
|
|
2258
2258
|
continue;
|
|
2259
2259
|
}
|
|
2260
|
-
if (
|
|
2260
|
+
if (bs.test(a.stem)) {
|
|
2261
2261
|
if (a.options.length > 1)
|
|
2262
2262
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
2263
|
-
a.stem.replace(
|
|
2263
|
+
a.stem.replace(bs, function(d, g, p, u, c, l) {
|
|
2264
2264
|
return p === "*" ? t.minimumFractionDigits = g.length : u && u[0] === "#" ? t.maximumFractionDigits = u.length : c && l ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + l.length) : (t.minimumFractionDigits = g.length, t.maximumFractionDigits = g.length), "";
|
|
2265
2265
|
});
|
|
2266
2266
|
var i = a.options[0];
|
|
2267
|
-
i === "w" ? t = re(re({}, t), { trailingZeroDisplay: "stripIfInteger" }) : i && (t = re(re({}, t),
|
|
2267
|
+
i === "w" ? t = re(re({}, t), { trailingZeroDisplay: "stripIfInteger" }) : i && (t = re(re({}, t), Es(i)));
|
|
2268
2268
|
continue;
|
|
2269
2269
|
}
|
|
2270
2270
|
if (gu.test(a.stem)) {
|
|
2271
|
-
t = re(re({}, t),
|
|
2271
|
+
t = re(re({}, t), Es(a.stem));
|
|
2272
2272
|
continue;
|
|
2273
2273
|
}
|
|
2274
2274
|
var o = Eu(a.stem);
|
|
@@ -3730,14 +3730,14 @@ function Te(e, t) {
|
|
|
3730
3730
|
}
|
|
3731
3731
|
var vf = !!String.prototype.startsWith && "_a".startsWith("a", 1), Af = !!String.fromCodePoint, xf = !!Object.fromEntries, Sf = !!String.prototype.codePointAt, Cf = !!String.prototype.trimStart, If = !!String.prototype.trimEnd, Nf = !!Number.isSafeInteger, Of = Nf ? Number.isSafeInteger : function(e) {
|
|
3732
3732
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3733
|
-
},
|
|
3733
|
+
}, qa = !0;
|
|
3734
3734
|
try {
|
|
3735
3735
|
var Rf = yu("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3736
|
-
|
|
3736
|
+
qa = ((ba = Rf.exec("a")) === null || ba === void 0 ? void 0 : ba[0]) === "a";
|
|
3737
3737
|
} catch {
|
|
3738
|
-
|
|
3738
|
+
qa = !1;
|
|
3739
3739
|
}
|
|
3740
|
-
var
|
|
3740
|
+
var ys = vf ? (
|
|
3741
3741
|
// Native
|
|
3742
3742
|
function(t, n, r) {
|
|
3743
3743
|
return t.startsWith(n, r);
|
|
@@ -3747,7 +3747,7 @@ var Ts = vf ? (
|
|
|
3747
3747
|
function(t, n, r) {
|
|
3748
3748
|
return t.slice(r, r + n.length) === n;
|
|
3749
3749
|
}
|
|
3750
|
-
),
|
|
3750
|
+
), Wa = Af ? String.fromCodePoint : (
|
|
3751
3751
|
// IE11
|
|
3752
3752
|
function() {
|
|
3753
3753
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
@@ -3759,7 +3759,7 @@ var Ts = vf ? (
|
|
|
3759
3759
|
}
|
|
3760
3760
|
return r;
|
|
3761
3761
|
}
|
|
3762
|
-
),
|
|
3762
|
+
), _s = (
|
|
3763
3763
|
// native
|
|
3764
3764
|
xf ? Object.fromEntries : (
|
|
3765
3765
|
// Ponyfill
|
|
@@ -3809,24 +3809,24 @@ var Ts = vf ? (
|
|
|
3809
3809
|
function yu(e, t) {
|
|
3810
3810
|
return new RegExp(e, t);
|
|
3811
3811
|
}
|
|
3812
|
-
var
|
|
3813
|
-
if (
|
|
3814
|
-
var
|
|
3815
|
-
|
|
3812
|
+
var Xa;
|
|
3813
|
+
if (qa) {
|
|
3814
|
+
var vs = yu("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3815
|
+
Xa = function(t, n) {
|
|
3816
3816
|
var r;
|
|
3817
|
-
|
|
3818
|
-
var a =
|
|
3817
|
+
vs.lastIndex = n;
|
|
3818
|
+
var a = vs.exec(t);
|
|
3819
3819
|
return (r = a[1]) !== null && r !== void 0 ? r : "";
|
|
3820
3820
|
};
|
|
3821
3821
|
} else
|
|
3822
|
-
|
|
3822
|
+
Xa = function(t, n) {
|
|
3823
3823
|
for (var r = []; ; ) {
|
|
3824
3824
|
var a = Tu(t, n);
|
|
3825
3825
|
if (a === void 0 || _u(a) || Mf(a))
|
|
3826
3826
|
break;
|
|
3827
3827
|
r.push(a), n += a >= 65536 ? 2 : 1;
|
|
3828
3828
|
}
|
|
3829
|
-
return
|
|
3829
|
+
return Wa.apply(void 0, r);
|
|
3830
3830
|
};
|
|
3831
3831
|
var Pf = (
|
|
3832
3832
|
/** @class */
|
|
@@ -3859,7 +3859,7 @@ var Pf = (
|
|
|
3859
3859
|
if (r)
|
|
3860
3860
|
break;
|
|
3861
3861
|
return this.error(be.UNMATCHED_CLOSING_TAG, Te(this.clonePosition(), this.clonePosition()));
|
|
3862
|
-
} else if (i === 60 && !this.ignoreTag &&
|
|
3862
|
+
} else if (i === 60 && !this.ignoreTag && Ka(this.peek() || 0)) {
|
|
3863
3863
|
var o = this.parseTag(t, n);
|
|
3864
3864
|
if (o.err)
|
|
3865
3865
|
return o;
|
|
@@ -3892,7 +3892,7 @@ var Pf = (
|
|
|
3892
3892
|
return i;
|
|
3893
3893
|
var o = i.val, s = this.clonePosition();
|
|
3894
3894
|
if (this.bumpIf("</")) {
|
|
3895
|
-
if (this.isEOF() || !
|
|
3895
|
+
if (this.isEOF() || !Ka(this.char()))
|
|
3896
3896
|
return this.error(be.INVALID_TAG, Te(s, this.clonePosition()));
|
|
3897
3897
|
var d = this.clonePosition(), g = this.parseTagName();
|
|
3898
3898
|
return a !== g ? this.error(be.UNMATCHED_CLOSING_TAG, Te(d, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -3973,12 +3973,12 @@ var Pf = (
|
|
|
3973
3973
|
n.push(r);
|
|
3974
3974
|
this.bump();
|
|
3975
3975
|
}
|
|
3976
|
-
return
|
|
3976
|
+
return Wa.apply(void 0, n);
|
|
3977
3977
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
3978
3978
|
if (this.isEOF())
|
|
3979
3979
|
return null;
|
|
3980
3980
|
var r = this.char();
|
|
3981
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
3981
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Wa(r));
|
|
3982
3982
|
}, e.prototype.parseArgument = function(t, n) {
|
|
3983
3983
|
var r = this.clonePosition();
|
|
3984
3984
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -4007,7 +4007,7 @@ var Pf = (
|
|
|
4007
4007
|
return this.error(be.MALFORMED_ARGUMENT, Te(r, this.clonePosition()));
|
|
4008
4008
|
}
|
|
4009
4009
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
4010
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
4010
|
+
var t = this.clonePosition(), n = this.offset(), r = Xa(this.message, n), a = n + r.length;
|
|
4011
4011
|
this.bumpTo(a);
|
|
4012
4012
|
var i = this.clonePosition(), o = Te(t, i);
|
|
4013
4013
|
return { value: r, location: o };
|
|
@@ -4036,7 +4036,7 @@ var Pf = (
|
|
|
4036
4036
|
if (h.err)
|
|
4037
4037
|
return h;
|
|
4038
4038
|
var f = Te(a, this.clonePosition());
|
|
4039
|
-
if (g &&
|
|
4039
|
+
if (g && ys(g == null ? void 0 : g.style, "::", 0)) {
|
|
4040
4040
|
var T = wf(g.style.slice(2));
|
|
4041
4041
|
if (s === "number") {
|
|
4042
4042
|
var u = this.parseNumberSkeletonFromString(T, g.styleLocation);
|
|
@@ -4099,7 +4099,7 @@ var Pf = (
|
|
|
4099
4099
|
val: {
|
|
4100
4100
|
type: Oe.select,
|
|
4101
4101
|
value: r,
|
|
4102
|
-
options:
|
|
4102
|
+
options: _s(S.val),
|
|
4103
4103
|
location: N
|
|
4104
4104
|
},
|
|
4105
4105
|
err: null
|
|
@@ -4107,7 +4107,7 @@ var Pf = (
|
|
|
4107
4107
|
val: {
|
|
4108
4108
|
type: Oe.plural,
|
|
4109
4109
|
value: r,
|
|
4110
|
-
options:
|
|
4110
|
+
options: _s(S.val),
|
|
4111
4111
|
offset: v,
|
|
4112
4112
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
4113
4113
|
location: N
|
|
@@ -4249,7 +4249,7 @@ var Pf = (
|
|
|
4249
4249
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
4250
4250
|
}
|
|
4251
4251
|
}, e.prototype.bumpIf = function(t) {
|
|
4252
|
-
if (
|
|
4252
|
+
if (ys(this.message, t, this.offset())) {
|
|
4253
4253
|
for (var n = 0; n < t.length; n++)
|
|
4254
4254
|
this.bump();
|
|
4255
4255
|
return !0;
|
|
@@ -4281,11 +4281,11 @@ var Pf = (
|
|
|
4281
4281
|
}, e;
|
|
4282
4282
|
}()
|
|
4283
4283
|
);
|
|
4284
|
-
function
|
|
4284
|
+
function Ka(e) {
|
|
4285
4285
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
4286
4286
|
}
|
|
4287
4287
|
function kf(e) {
|
|
4288
|
-
return
|
|
4288
|
+
return Ka(e) || e === 47;
|
|
4289
4289
|
}
|
|
4290
4290
|
function Df(e) {
|
|
4291
4291
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
@@ -4296,12 +4296,12 @@ function _u(e) {
|
|
|
4296
4296
|
function Mf(e) {
|
|
4297
4297
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
4298
4298
|
}
|
|
4299
|
-
function
|
|
4299
|
+
function Qa(e) {
|
|
4300
4300
|
e.forEach(function(t) {
|
|
4301
4301
|
if (delete t.location, fu(t) || du(t))
|
|
4302
4302
|
for (var n in t.options)
|
|
4303
|
-
delete t.options[n].location,
|
|
4304
|
-
else uu(t) && mu(t.style) || (lu(t) || cu(t)) &&
|
|
4303
|
+
delete t.options[n].location, Qa(t.options[n].value);
|
|
4304
|
+
else uu(t) && mu(t.style) || (lu(t) || cu(t)) && Ga(t.style) ? delete t.style.location : hu(t) && Qa(t.children);
|
|
4305
4305
|
});
|
|
4306
4306
|
}
|
|
4307
4307
|
function Bf(e, t) {
|
|
@@ -4311,7 +4311,7 @@ function Bf(e, t) {
|
|
|
4311
4311
|
var r = SyntaxError(be[n.err.kind]);
|
|
4312
4312
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
4313
4313
|
}
|
|
4314
|
-
return t != null && t.captureLocation ||
|
|
4314
|
+
return t != null && t.captureLocation || Qa(n.val), n.val;
|
|
4315
4315
|
}
|
|
4316
4316
|
function yt(e, t) {
|
|
4317
4317
|
var n = t && t.cache ? t.cache : zf, r = t && t.serializer ? t.serializer : jf, a = t && t.strategy ? t.strategy : Hf;
|
|
@@ -4331,34 +4331,34 @@ function Au(e, t, n) {
|
|
|
4331
4331
|
var r = Array.prototype.slice.call(arguments, 3), a = n(r), i = t.get(a);
|
|
4332
4332
|
return typeof i > "u" && (i = e.apply(this, r), t.set(a, i)), i;
|
|
4333
4333
|
}
|
|
4334
|
-
function
|
|
4334
|
+
function xi(e, t, n, r, a) {
|
|
4335
4335
|
return n.bind(t, e, r, a);
|
|
4336
4336
|
}
|
|
4337
4337
|
function Hf(e, t) {
|
|
4338
4338
|
var n = e.length === 1 ? vu : Au;
|
|
4339
|
-
return
|
|
4339
|
+
return xi(e, this, n, t.cache.create(), t.serializer);
|
|
4340
4340
|
}
|
|
4341
4341
|
function Uf(e, t) {
|
|
4342
|
-
return
|
|
4342
|
+
return xi(e, this, Au, t.cache.create(), t.serializer);
|
|
4343
4343
|
}
|
|
4344
4344
|
function $f(e, t) {
|
|
4345
|
-
return
|
|
4345
|
+
return xi(e, this, vu, t.cache.create(), t.serializer);
|
|
4346
4346
|
}
|
|
4347
4347
|
var jf = function() {
|
|
4348
4348
|
return JSON.stringify(arguments);
|
|
4349
4349
|
};
|
|
4350
|
-
function
|
|
4350
|
+
function Si() {
|
|
4351
4351
|
this.cache = /* @__PURE__ */ Object.create(null);
|
|
4352
4352
|
}
|
|
4353
|
-
|
|
4353
|
+
Si.prototype.get = function(e) {
|
|
4354
4354
|
return this.cache[e];
|
|
4355
4355
|
};
|
|
4356
|
-
|
|
4356
|
+
Si.prototype.set = function(e, t) {
|
|
4357
4357
|
this.cache[e] = t;
|
|
4358
4358
|
};
|
|
4359
4359
|
var zf = {
|
|
4360
4360
|
create: function() {
|
|
4361
|
-
return new
|
|
4361
|
+
return new Si();
|
|
4362
4362
|
}
|
|
4363
4363
|
}, _t = {
|
|
4364
4364
|
variadic: Uf,
|
|
@@ -4379,7 +4379,7 @@ var jt = (
|
|
|
4379
4379
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
4380
4380
|
}, t;
|
|
4381
4381
|
}(Error)
|
|
4382
|
-
),
|
|
4382
|
+
), As = (
|
|
4383
4383
|
/** @class */
|
|
4384
4384
|
function(e) {
|
|
4385
4385
|
ct(t, e);
|
|
@@ -4420,7 +4420,7 @@ function xu(e) {
|
|
|
4420
4420
|
return typeof e == "function";
|
|
4421
4421
|
}
|
|
4422
4422
|
function xr(e, t, n, r, a, i, o) {
|
|
4423
|
-
if (e.length === 1 &&
|
|
4423
|
+
if (e.length === 1 && gs(e[0]))
|
|
4424
4424
|
return [
|
|
4425
4425
|
{
|
|
4426
4426
|
type: We.literal,
|
|
@@ -4429,7 +4429,7 @@ function xr(e, t, n, r, a, i, o) {
|
|
|
4429
4429
|
];
|
|
4430
4430
|
for (var s = [], d = 0, g = e; d < g.length; d++) {
|
|
4431
4431
|
var p = g[d];
|
|
4432
|
-
if (
|
|
4432
|
+
if (gs(p)) {
|
|
4433
4433
|
s.push({
|
|
4434
4434
|
type: We.literal,
|
|
4435
4435
|
value: p.value
|
|
@@ -4455,7 +4455,7 @@ function xr(e, t, n, r, a, i, o) {
|
|
|
4455
4455
|
continue;
|
|
4456
4456
|
}
|
|
4457
4457
|
if (lu(p)) {
|
|
4458
|
-
var l = typeof p.style == "string" ? r.date[p.style] :
|
|
4458
|
+
var l = typeof p.style == "string" ? r.date[p.style] : Ga(p.style) ? p.style.parsedOptions : void 0;
|
|
4459
4459
|
s.push({
|
|
4460
4460
|
type: We.literal,
|
|
4461
4461
|
value: n.getDateTimeFormat(t, l).format(c)
|
|
@@ -4463,7 +4463,7 @@ function xr(e, t, n, r, a, i, o) {
|
|
|
4463
4463
|
continue;
|
|
4464
4464
|
}
|
|
4465
4465
|
if (cu(p)) {
|
|
4466
|
-
var l = typeof p.style == "string" ? r.time[p.style] :
|
|
4466
|
+
var l = typeof p.style == "string" ? r.time[p.style] : Ga(p.style) ? p.style.parsedOptions : r.time.medium;
|
|
4467
4467
|
s.push({
|
|
4468
4468
|
type: We.literal,
|
|
4469
4469
|
value: n.getDateTimeFormat(t, l).format(c)
|
|
@@ -4495,7 +4495,7 @@ function xr(e, t, n, r, a, i, o) {
|
|
|
4495
4495
|
if (fu(p)) {
|
|
4496
4496
|
var _ = p.options[c] || p.options.other;
|
|
4497
4497
|
if (!_)
|
|
4498
|
-
throw new
|
|
4498
|
+
throw new As(p.value, c, Object.keys(p.options), o);
|
|
4499
4499
|
s.push.apply(s, xr(_.value, t, n, r, a));
|
|
4500
4500
|
continue;
|
|
4501
4501
|
}
|
|
@@ -4510,7 +4510,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
4510
4510
|
_ = p.options[A] || p.options.other;
|
|
4511
4511
|
}
|
|
4512
4512
|
if (!_)
|
|
4513
|
-
throw new
|
|
4513
|
+
throw new As(p.value, c, Object.keys(p.options), o);
|
|
4514
4514
|
s.push.apply(s, xr(_.value, t, n, r, a, c - (p.offset || 0)));
|
|
4515
4515
|
continue;
|
|
4516
4516
|
}
|
|
@@ -4718,7 +4718,7 @@ var ar = (
|
|
|
4718
4718
|
}
|
|
4719
4719
|
return t;
|
|
4720
4720
|
}(ar)
|
|
4721
|
-
),
|
|
4721
|
+
), xs = (
|
|
4722
4722
|
/** @class */
|
|
4723
4723
|
function(e) {
|
|
4724
4724
|
ct(t, e);
|
|
@@ -4875,7 +4875,7 @@ function td(e) {
|
|
|
4875
4875
|
})
|
|
4876
4876
|
};
|
|
4877
4877
|
}
|
|
4878
|
-
function
|
|
4878
|
+
function Ci(e, t, n, r) {
|
|
4879
4879
|
var a = e && e[t], i;
|
|
4880
4880
|
if (a && (i = a[n]), i)
|
|
4881
4881
|
return i;
|
|
@@ -4886,19 +4886,19 @@ function mr(e, t) {
|
|
|
4886
4886
|
return n[r] = re({ timeZone: t }, e[r]), n;
|
|
4887
4887
|
}, {});
|
|
4888
4888
|
}
|
|
4889
|
-
function
|
|
4889
|
+
function Ss(e, t) {
|
|
4890
4890
|
var n = Object.keys(re(re({}, e), t));
|
|
4891
4891
|
return n.reduce(function(r, a) {
|
|
4892
4892
|
return r[a] = re(re({}, e[a] || {}), t[a] || {}), r;
|
|
4893
4893
|
}, {});
|
|
4894
4894
|
}
|
|
4895
|
-
function
|
|
4895
|
+
function Cs(e, t) {
|
|
4896
4896
|
if (!t)
|
|
4897
4897
|
return e;
|
|
4898
4898
|
var n = Su.formats;
|
|
4899
|
-
return re(re(re({}, n), e), { date:
|
|
4899
|
+
return re(re(re({}, n), e), { date: Ss(mr(n.date, t), mr(e.date || {}, t)), time: Ss(mr(n.time, t), mr(e.time || {}, t)) });
|
|
4900
4900
|
}
|
|
4901
|
-
var
|
|
4901
|
+
var Za = function(e, t, n, r, a) {
|
|
4902
4902
|
var i = e.locale, o = e.formats, s = e.messages, d = e.defaultLocale, g = e.defaultFormats, p = e.fallbackOnEmptyString, u = e.onError, c = e.timeZone, l = e.defaultRichTextElements;
|
|
4903
4903
|
n === void 0 && (n = { id: "" });
|
|
4904
4904
|
var h = n.id, f = n.defaultMessage;
|
|
@@ -4913,7 +4913,7 @@ var Qa = function(e, t, n, r, a) {
|
|
|
4913
4913
|
return m[0].value;
|
|
4914
4914
|
if (!r && m && typeof m == "string" && !l)
|
|
4915
4915
|
return m.replace(/'\{(.*?)\}'/gi, "{$1}");
|
|
4916
|
-
if (r = re(re({}, l), r || {}), o =
|
|
4916
|
+
if (r = re(re({}, l), r || {}), o = Cs(o, c), g = Cs(g, c), !m) {
|
|
4917
4917
|
if (p === !1 && m === "")
|
|
4918
4918
|
return m;
|
|
4919
4919
|
if ((!f || i && i.toLowerCase() !== d.toLowerCase()) && u(new Zf(n, i)), f)
|
|
@@ -4963,7 +4963,7 @@ var Qa = function(e, t, n, r, a) {
|
|
|
4963
4963
|
function zr(e, t, n, r) {
|
|
4964
4964
|
var a = e.locale, i = e.formats, o = e.onError, s = e.timeZone;
|
|
4965
4965
|
r === void 0 && (r = {});
|
|
4966
|
-
var d = r.format, g = re(re({}, s && { timeZone: s }), d &&
|
|
4966
|
+
var d = r.format, g = re(re({}, s && { timeZone: s }), d && Ci(i, t, d, o)), p = sn(r, Nu, g);
|
|
4967
4967
|
return t === "time" && !p.hour && !p.minute && !p.second && !p.timeStyle && !p.dateStyle && (p = re(re({}, p), { hour: "numeric", minute: "numeric" })), n(a, p);
|
|
4968
4968
|
}
|
|
4969
4969
|
function nd(e, t) {
|
|
@@ -5042,9 +5042,9 @@ Try polyfilling it using "@formatjs/intl-displaynames"
|
|
|
5042
5042
|
var ld = [
|
|
5043
5043
|
"type",
|
|
5044
5044
|
"style"
|
|
5045
|
-
],
|
|
5045
|
+
], Is = Date.now();
|
|
5046
5046
|
function cd(e) {
|
|
5047
|
-
return "".concat(
|
|
5047
|
+
return "".concat(Is, "_").concat(e, "_").concat(Is);
|
|
5048
5048
|
}
|
|
5049
5049
|
function fd(e, t, n, r) {
|
|
5050
5050
|
r === void 0 && (r = {});
|
|
@@ -5096,7 +5096,7 @@ var md = ["numeric", "style"];
|
|
|
5096
5096
|
function pd(e, t, n) {
|
|
5097
5097
|
var r = e.locale, a = e.formats, i = e.onError;
|
|
5098
5098
|
n === void 0 && (n = {});
|
|
5099
|
-
var o = n.format, s = !!o &&
|
|
5099
|
+
var o = n.format, s = !!o && Ci(a, "relative", o, i) || {}, d = sn(n, md, s);
|
|
5100
5100
|
return t(r, d);
|
|
5101
5101
|
}
|
|
5102
5102
|
function gd(e, t, n, r, a) {
|
|
@@ -5141,7 +5141,7 @@ var bd = [
|
|
|
5141
5141
|
function Ru(e, t, n) {
|
|
5142
5142
|
var r = e.locale, a = e.formats, i = e.onError;
|
|
5143
5143
|
n === void 0 && (n = {});
|
|
5144
|
-
var o = n.format, s = o &&
|
|
5144
|
+
var o = n.format, s = o && Ci(a, "number", o, i) || {}, d = sn(n, bd, s);
|
|
5145
5145
|
return t(r, d);
|
|
5146
5146
|
}
|
|
5147
5147
|
function Ed(e, t, n, r) {
|
|
@@ -5173,7 +5173,7 @@ For more details see https://formatjs.io/docs/getting-started/message-distributi
|
|
|
5173
5173
|
}
|
|
5174
5174
|
function vd(e, t) {
|
|
5175
5175
|
var n = td(t), r = re(re({}, Cu), e), a = r.locale, i = r.defaultLocale, o = r.onError;
|
|
5176
|
-
return a ? !Intl.NumberFormat.supportedLocalesOf(a).length && o ? o(new
|
|
5176
|
+
return a ? !Intl.NumberFormat.supportedLocalesOf(a).length && o ? o(new xs('Missing locale data for locale: "'.concat(a, '" in Intl.NumberFormat. Using default locale: "').concat(i, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : !Intl.DateTimeFormat.supportedLocalesOf(a).length && o && o(new xs('Missing locale data for locale: "'.concat(a, '" in Intl.DateTimeFormat. Using default locale: "').concat(i, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : (o && o(new Qf('"locale" was not configured, using "'.concat(i, '" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))), r.locale = r.defaultLocale || "en"), _d(r), re(re({}, r), {
|
|
5177
5177
|
formatters: n,
|
|
5178
5178
|
formatNumber: Ed.bind(null, r, n.getNumberFormat),
|
|
5179
5179
|
formatNumberToParts: Td.bind(null, r, n.getNumberFormat),
|
|
@@ -5185,9 +5185,9 @@ function vd(e, t) {
|
|
|
5185
5185
|
formatTimeToParts: sd.bind(null, r, n.getDateTimeFormat),
|
|
5186
5186
|
formatPlural: hd.bind(null, r, n.getPluralRules),
|
|
5187
5187
|
// @ts-expect-error TODO: will get to this later
|
|
5188
|
-
formatMessage:
|
|
5188
|
+
formatMessage: Za.bind(null, r, n),
|
|
5189
5189
|
// @ts-expect-error TODO: will get to this later
|
|
5190
|
-
$t:
|
|
5190
|
+
$t: Za.bind(null, r, n),
|
|
5191
5191
|
formatList: fd.bind(null, r, n.getListFormat),
|
|
5192
5192
|
formatListToParts: Ou.bind(null, r, n.getListFormat),
|
|
5193
5193
|
formatDisplayName: ud.bind(null, r, n.getDisplayNames)
|
|
@@ -5217,27 +5217,27 @@ function xd(e, t) {
|
|
|
5217
5217
|
}
|
|
5218
5218
|
return !0;
|
|
5219
5219
|
}
|
|
5220
|
-
var
|
|
5221
|
-
|
|
5222
|
-
var Sd =
|
|
5220
|
+
var Ii = typeof window < "u" && !window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__ ? window.__REACT_INTL_CONTEXT__ || (window.__REACT_INTL_CONTEXT__ = Ue.createContext(null)) : Ue.createContext(null);
|
|
5221
|
+
Ii.Consumer;
|
|
5222
|
+
var Sd = Ii.Provider, Cd = Sd, Id = Ii;
|
|
5223
5223
|
function Vr() {
|
|
5224
5224
|
var e = Ue.useContext(Id);
|
|
5225
5225
|
return wu(e), e;
|
|
5226
5226
|
}
|
|
5227
|
-
var
|
|
5227
|
+
var Ja;
|
|
5228
5228
|
(function(e) {
|
|
5229
5229
|
e.formatDate = "FormattedDate", e.formatTime = "FormattedTime", e.formatNumber = "FormattedNumber", e.formatList = "FormattedList", e.formatDisplayName = "FormattedDisplayName";
|
|
5230
|
-
})(
|
|
5231
|
-
var
|
|
5230
|
+
})(Ja || (Ja = {}));
|
|
5231
|
+
var ei;
|
|
5232
5232
|
(function(e) {
|
|
5233
5233
|
e.formatDate = "FormattedDateParts", e.formatTime = "FormattedTimeParts", e.formatNumber = "FormattedNumberParts", e.formatList = "FormattedListParts";
|
|
5234
|
-
})(
|
|
5234
|
+
})(ei || (ei = {}));
|
|
5235
5235
|
function Pu(e) {
|
|
5236
5236
|
var t = function(n) {
|
|
5237
5237
|
var r = Vr(), a = n.value, i = n.children, o = jr(n, ["value", "children"]), s = typeof a == "string" ? new Date(a || 0) : a, d = e === "formatDate" ? r.formatDateToParts(s, o) : r.formatTimeToParts(s, o);
|
|
5238
5238
|
return i(d);
|
|
5239
5239
|
};
|
|
5240
|
-
return t.displayName =
|
|
5240
|
+
return t.displayName = ei[e], t;
|
|
5241
5241
|
}
|
|
5242
5242
|
function ir(e) {
|
|
5243
5243
|
var t = function(n) {
|
|
@@ -5250,7 +5250,7 @@ function ir(e) {
|
|
|
5250
5250
|
var d = r.textComponent || Ue.Fragment;
|
|
5251
5251
|
return Ue.createElement(d, null, s);
|
|
5252
5252
|
};
|
|
5253
|
-
return t.displayName =
|
|
5253
|
+
return t.displayName = Ja[e], t;
|
|
5254
5254
|
}
|
|
5255
5255
|
function ku(e) {
|
|
5256
5256
|
return e && Object.keys(e).reduce(function(t, n) {
|
|
@@ -5258,17 +5258,17 @@ function ku(e) {
|
|
|
5258
5258
|
return t[n] = xu(r) ? Ad(r) : r, t;
|
|
5259
5259
|
}, {});
|
|
5260
5260
|
}
|
|
5261
|
-
var
|
|
5261
|
+
var Ns = function(e, t, n, r) {
|
|
5262
5262
|
for (var a = [], i = 4; i < arguments.length; i++)
|
|
5263
5263
|
a[i - 4] = arguments[i];
|
|
5264
|
-
var o = ku(r), s =
|
|
5264
|
+
var o = ku(r), s = Za.apply(void 0, vt([
|
|
5265
5265
|
e,
|
|
5266
5266
|
t,
|
|
5267
5267
|
n,
|
|
5268
5268
|
o
|
|
5269
5269
|
], a, !1));
|
|
5270
5270
|
return Array.isArray(s) ? Ue.Children.toArray(s) : s;
|
|
5271
|
-
},
|
|
5271
|
+
}, Os = function(e, t) {
|
|
5272
5272
|
var n = e.defaultRichTextElements, r = jr(e, ["defaultRichTextElements"]), a = ku(n), i = vd(re(re(re({}, Lu), r), { defaultRichTextElements: a }), t), o = {
|
|
5273
5273
|
locale: i.locale,
|
|
5274
5274
|
timeZone: i.timeZone,
|
|
@@ -5281,14 +5281,14 @@ var Is = function(e, t, n, r) {
|
|
|
5281
5281
|
defaultRichTextElements: a
|
|
5282
5282
|
};
|
|
5283
5283
|
return re(re({}, i), {
|
|
5284
|
-
formatMessage:
|
|
5284
|
+
formatMessage: Ns.bind(
|
|
5285
5285
|
null,
|
|
5286
5286
|
o,
|
|
5287
5287
|
// @ts-expect-error fix this
|
|
5288
5288
|
i.formatters
|
|
5289
5289
|
),
|
|
5290
5290
|
// @ts-expect-error fix this
|
|
5291
|
-
$t:
|
|
5291
|
+
$t: Ns.bind(null, o, i.formatters)
|
|
5292
5292
|
});
|
|
5293
5293
|
};
|
|
5294
5294
|
function ya(e) {
|
|
@@ -5315,14 +5315,14 @@ var Nd = (
|
|
|
5315
5315
|
var n = e !== null && e.apply(this, arguments) || this;
|
|
5316
5316
|
return n.cache = Iu(), n.state = {
|
|
5317
5317
|
cache: n.cache,
|
|
5318
|
-
intl:
|
|
5318
|
+
intl: Os(ya(n.props), n.cache),
|
|
5319
5319
|
prevConfig: ya(n.props)
|
|
5320
5320
|
}, n;
|
|
5321
5321
|
}
|
|
5322
5322
|
return t.getDerivedStateFromProps = function(n, r) {
|
|
5323
5323
|
var a = r.prevConfig, i = r.cache, o = ya(n);
|
|
5324
5324
|
return xd(a, o) ? null : {
|
|
5325
|
-
intl:
|
|
5325
|
+
intl: Os(o, i),
|
|
5326
5326
|
prevConfig: o
|
|
5327
5327
|
};
|
|
5328
5328
|
}, t.prototype.render = function() {
|
|
@@ -5354,7 +5354,7 @@ const Du = () => {
|
|
|
5354
5354
|
chatlineLabelAssistantTranslation: r
|
|
5355
5355
|
};
|
|
5356
5356
|
}, Od = (e) => /* @__PURE__ */ Ue.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ Ue.createElement("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zM7.07 18.28c.43-.9 3.05-1.78 4.93-1.78s4.51.88 4.93 1.78C15.57 19.36 13.86 20 12 20s-3.57-.64-4.93-1.72zm11.29-1.45c-1.43-1.74-4.9-2.33-6.36-2.33s-4.93.59-6.36 2.33A7.95 7.95 0 0 1 4 12c0-4.41 3.59-8 8-8s8 3.59 8 8c0 1.82-.62 3.49-1.64 4.83zM12 6c-1.94 0-3.5 1.56-3.5 3.5S10.06 13 12 13s3.5-1.56 3.5-3.5S13.94 6 12 6zm0 5c-.83 0-1.5-.67-1.5-1.5S11.17 8 12 8s1.5.67 1.5 1.5S12.83 11 12 11z" })), Rd = (e) => /* @__PURE__ */ Ue.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ Ue.createElement("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 2zm7.48 7.16l-5.01-.43l-2-4.71c3.21.19 5.91 2.27 7.01 5.14zm-5.07 6.26L12 13.98l-2.39 1.44l.63-2.72l-2.11-1.83l2.78-.24L12 8.06l1.09 2.56l2.78.24l-2.11 1.83l.64 2.73zm-2.86-11.4l-2 4.72l-5.02.43c1.1-2.88 3.8-4.97 7.02-5.15zM4 12c0-.64.08-1.26.23-1.86l3.79 3.28l-1.11 4.75A7.982 7.982 0 0 1 4 12zm3.84 6.82L12 16.31l4.16 2.5A7.924 7.924 0 0 1 11.99 20c-1.52 0-2.94-.44-4.15-1.18zm9.25-.65l-1.11-4.75l3.79-3.28c.14.59.23 1.22.23 1.86c0 2.48-1.14 4.7-2.91 6.17z" }));
|
|
5357
|
-
function
|
|
5357
|
+
function Rs(e) {
|
|
5358
5358
|
const t = [], n = String(e || "");
|
|
5359
5359
|
let r = n.indexOf(","), a = 0, i = !1;
|
|
5360
5360
|
for (; !i; ) {
|
|
@@ -5371,14 +5371,14 @@ function Mu(e, t) {
|
|
|
5371
5371
|
).trim();
|
|
5372
5372
|
}
|
|
5373
5373
|
const wd = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Ld = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Pd = {};
|
|
5374
|
-
function
|
|
5374
|
+
function ws(e, t) {
|
|
5375
5375
|
return (Pd.jsx ? Ld : wd).test(e);
|
|
5376
5376
|
}
|
|
5377
5377
|
const kd = /[ \t\n\f\r]/g;
|
|
5378
5378
|
function Dd(e) {
|
|
5379
|
-
return typeof e == "object" ? e.type === "text" ?
|
|
5379
|
+
return typeof e == "object" ? e.type === "text" ? Ls(e.value) : !1 : Ls(e);
|
|
5380
5380
|
}
|
|
5381
|
-
function
|
|
5381
|
+
function Ls(e) {
|
|
5382
5382
|
return e.replace(kd, "") === "";
|
|
5383
5383
|
}
|
|
5384
5384
|
class sr {
|
|
@@ -5430,7 +5430,7 @@ const he = on(), Me = on(), Fu = on(), G = on(), Ie = on(), yn = on(), tt = on()
|
|
|
5430
5430
|
function on() {
|
|
5431
5431
|
return 2 ** ++Md;
|
|
5432
5432
|
}
|
|
5433
|
-
const
|
|
5433
|
+
const ti = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5434
5434
|
__proto__: null,
|
|
5435
5435
|
boolean: he,
|
|
5436
5436
|
booleanish: Me,
|
|
@@ -5439,8 +5439,8 @@ const ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5439
5439
|
number: G,
|
|
5440
5440
|
overloadedBoolean: Fu,
|
|
5441
5441
|
spaceSeparated: Ie
|
|
5442
|
-
}, Symbol.toStringTag, { value: "Module" })), _a = Object.keys(
|
|
5443
|
-
class
|
|
5442
|
+
}, Symbol.toStringTag, { value: "Module" })), _a = Object.keys(ti);
|
|
5443
|
+
class Ni extends dt {
|
|
5444
5444
|
/**
|
|
5445
5445
|
* @constructor
|
|
5446
5446
|
* @param {string} property
|
|
@@ -5450,15 +5450,15 @@ class Ii extends dt {
|
|
|
5450
5450
|
*/
|
|
5451
5451
|
constructor(t, n, r, a) {
|
|
5452
5452
|
let i = -1;
|
|
5453
|
-
if (super(t, n),
|
|
5453
|
+
if (super(t, n), Ps(this, "space", a), typeof r == "number")
|
|
5454
5454
|
for (; ++i < _a.length; ) {
|
|
5455
5455
|
const o = _a[i];
|
|
5456
|
-
|
|
5456
|
+
Ps(this, _a[i], (r & ti[o]) === ti[o]);
|
|
5457
5457
|
}
|
|
5458
5458
|
}
|
|
5459
5459
|
}
|
|
5460
|
-
|
|
5461
|
-
function
|
|
5460
|
+
Ni.prototype.defined = !0;
|
|
5461
|
+
function Ps(e, t, n) {
|
|
5462
5462
|
n && (e[t] = n);
|
|
5463
5463
|
}
|
|
5464
5464
|
const Bd = {}.hasOwnProperty;
|
|
@@ -5467,7 +5467,7 @@ function Sn(e) {
|
|
|
5467
5467
|
let r;
|
|
5468
5468
|
for (r in e.properties)
|
|
5469
5469
|
if (Bd.call(e.properties, r)) {
|
|
5470
|
-
const a = e.properties[r], i = new
|
|
5470
|
+
const a = e.properties[r], i = new Ni(
|
|
5471
5471
|
r,
|
|
5472
5472
|
e.transform(e.attributes || {}, r),
|
|
5473
5473
|
a,
|
|
@@ -6482,7 +6482,7 @@ const zu = Sn({
|
|
|
6482
6482
|
z: null,
|
|
6483
6483
|
zoomAndPan: null
|
|
6484
6484
|
}
|
|
6485
|
-
}), Ud = /^data[-\w.:]+$/i,
|
|
6485
|
+
}), Ud = /^data[-\w.:]+$/i, ks = /-[a-z]/g, $d = /[A-Z]/g;
|
|
6486
6486
|
function Yr(e, t) {
|
|
6487
6487
|
const n = Jn(t);
|
|
6488
6488
|
let r = t, a = dt;
|
|
@@ -6490,16 +6490,16 @@ function Yr(e, t) {
|
|
|
6490
6490
|
return e.property[e.normal[n]];
|
|
6491
6491
|
if (n.length > 4 && n.slice(0, 4) === "data" && Ud.test(t)) {
|
|
6492
6492
|
if (t.charAt(4) === "-") {
|
|
6493
|
-
const i = t.slice(5).replace(
|
|
6493
|
+
const i = t.slice(5).replace(ks, zd);
|
|
6494
6494
|
r = "data" + i.charAt(0).toUpperCase() + i.slice(1);
|
|
6495
6495
|
} else {
|
|
6496
6496
|
const i = t.slice(4);
|
|
6497
|
-
if (!
|
|
6497
|
+
if (!ks.test(i)) {
|
|
6498
6498
|
let o = i.replace($d, jd);
|
|
6499
6499
|
o.charAt(0) !== "-" && (o = "-" + o), t = "data" + o;
|
|
6500
6500
|
}
|
|
6501
6501
|
}
|
|
6502
|
-
a =
|
|
6502
|
+
a = Ni;
|
|
6503
6503
|
}
|
|
6504
6504
|
return new a(r, t);
|
|
6505
6505
|
}
|
|
@@ -6528,15 +6528,15 @@ const Vd = {
|
|
|
6528
6528
|
xLinkType: "xlinkType",
|
|
6529
6529
|
xmlnsXLink: "xmlnsXlink"
|
|
6530
6530
|
}, or = Bu([Uu, Hu, zu, Vu, Fd], "html"), zt = Bu([Uu, Hu, zu, Vu, Hd], "svg");
|
|
6531
|
-
function
|
|
6531
|
+
function Ds(e) {
|
|
6532
6532
|
const t = String(e || "").trim();
|
|
6533
6533
|
return t ? t.split(/[ \t\n\r\f]+/g) : [];
|
|
6534
6534
|
}
|
|
6535
6535
|
function Yu(e) {
|
|
6536
6536
|
return e.join(" ").trim();
|
|
6537
6537
|
}
|
|
6538
|
-
var Gu = {},
|
|
6539
|
-
`,
|
|
6538
|
+
var Gu = {}, Ms = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Yd = /\n/g, Gd = /^\s*/, qd = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, Wd = /^:\s*/, Xd = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, Kd = /^[;\s]*/, Qd = /^\s+|\s+$/g, Zd = `
|
|
6539
|
+
`, Bs = "/", Fs = "*", Qt = "", Jd = "comment", eh = "declaration", th = function(e, t) {
|
|
6540
6540
|
if (typeof e != "string")
|
|
6541
6541
|
throw new TypeError("First argument must be a string");
|
|
6542
6542
|
if (!e) return [];
|
|
@@ -6582,8 +6582,8 @@ var Gu = {}, Ds = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Yd = /\n/g, Gd = /^\s*/, qd
|
|
|
6582
6582
|
}
|
|
6583
6583
|
function u() {
|
|
6584
6584
|
var h = i();
|
|
6585
|
-
if (!(
|
|
6586
|
-
for (var f = 2; Qt != e.charAt(f) && (
|
|
6585
|
+
if (!(Bs != e.charAt(0) || Fs != e.charAt(1))) {
|
|
6586
|
+
for (var f = 2; Qt != e.charAt(f) && (Fs != e.charAt(f) || Bs != e.charAt(f + 1)); )
|
|
6587
6587
|
++f;
|
|
6588
6588
|
if (f += 2, Qt === e.charAt(f - 1))
|
|
6589
6589
|
return s("End of comment missing");
|
|
@@ -6600,8 +6600,8 @@ var Gu = {}, Ds = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Yd = /\n/g, Gd = /^\s*/, qd
|
|
|
6600
6600
|
if (u(), !d(Wd)) return s("property missing ':'");
|
|
6601
6601
|
var T = d(Xd), m = h({
|
|
6602
6602
|
type: eh,
|
|
6603
|
-
property:
|
|
6604
|
-
value: T ?
|
|
6603
|
+
property: Hs(f[0].replace(Ms, Qt)),
|
|
6604
|
+
value: T ? Hs(T[0].replace(Ms, Qt)) : Qt
|
|
6605
6605
|
});
|
|
6606
6606
|
return d(Kd), m;
|
|
6607
6607
|
}
|
|
@@ -6615,10 +6615,10 @@ var Gu = {}, Ds = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Yd = /\n/g, Gd = /^\s*/, qd
|
|
|
6615
6615
|
}
|
|
6616
6616
|
return g(), l();
|
|
6617
6617
|
};
|
|
6618
|
-
function
|
|
6618
|
+
function Hs(e) {
|
|
6619
6619
|
return e ? e.replace(Qd, Qt) : Qt;
|
|
6620
6620
|
}
|
|
6621
|
-
var nh =
|
|
6621
|
+
var nh = rs && rs.__importDefault || function(e) {
|
|
6622
6622
|
return e && e.__esModule ? e : { default: e };
|
|
6623
6623
|
};
|
|
6624
6624
|
Object.defineProperty(Gu, "__esModule", { value: !0 });
|
|
@@ -6635,8 +6635,8 @@ function ah(e, t) {
|
|
|
6635
6635
|
}
|
|
6636
6636
|
}), n;
|
|
6637
6637
|
}
|
|
6638
|
-
var
|
|
6639
|
-
const ih =
|
|
6638
|
+
var Us = Gu.default = ah;
|
|
6639
|
+
const ih = Us.default || Us, Gr = qu("end"), Ot = qu("start");
|
|
6640
6640
|
function qu(e) {
|
|
6641
6641
|
return t;
|
|
6642
6642
|
function t(n) {
|
|
@@ -6655,15 +6655,15 @@ function sh(e) {
|
|
|
6655
6655
|
return { start: t, end: n };
|
|
6656
6656
|
}
|
|
6657
6657
|
function Yn(e) {
|
|
6658
|
-
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ?
|
|
6659
|
-
}
|
|
6660
|
-
function ti(e) {
|
|
6661
|
-
return $s(e && e.line) + ":" + $s(e && e.column);
|
|
6658
|
+
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? $s(e.position) : "start" in e || "end" in e ? $s(e) : "line" in e || "column" in e ? ni(e) : "";
|
|
6662
6659
|
}
|
|
6663
|
-
function
|
|
6664
|
-
return
|
|
6660
|
+
function ni(e) {
|
|
6661
|
+
return js(e && e.line) + ":" + js(e && e.column);
|
|
6665
6662
|
}
|
|
6666
6663
|
function $s(e) {
|
|
6664
|
+
return ni(e && e.start) + "-" + ni(e && e.end);
|
|
6665
|
+
}
|
|
6666
|
+
function js(e) {
|
|
6667
6667
|
return e && typeof e == "number" ? e : 1;
|
|
6668
6668
|
}
|
|
6669
6669
|
class Ve extends Error {
|
|
@@ -6753,7 +6753,7 @@ Ve.prototype.fatal = void 0;
|
|
|
6753
6753
|
Ve.prototype.place = void 0;
|
|
6754
6754
|
Ve.prototype.ruleId = void 0;
|
|
6755
6755
|
Ve.prototype.source = void 0;
|
|
6756
|
-
const
|
|
6756
|
+
const Oi = {}.hasOwnProperty, oh = /* @__PURE__ */ new Map(), uh = /[A-Z]/g, lh = /-([a-z])/g, ch = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), fh = /* @__PURE__ */ new Set(["td", "th"]), Wu = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
|
6757
6757
|
function dh(e, t) {
|
|
6758
6758
|
if (!t || t.Fragment === void 0)
|
|
6759
6759
|
throw new TypeError("Expected `Fragment` in options");
|
|
@@ -6813,10 +6813,10 @@ function hh(e, t, n) {
|
|
|
6813
6813
|
let a = r;
|
|
6814
6814
|
t.tagName.toLowerCase() === "svg" && r.space === "html" && (a = zt, e.schema = a), e.ancestors.push(t);
|
|
6815
6815
|
const i = Qu(e, t.tagName, !1), o = _h(e, t);
|
|
6816
|
-
let s =
|
|
6816
|
+
let s = wi(e, t);
|
|
6817
6817
|
return ch.has(t.tagName) && (s = s.filter(function(d) {
|
|
6818
6818
|
return typeof d == "string" ? !Dd(d) : !0;
|
|
6819
|
-
})), Ku(e, o, i, t),
|
|
6819
|
+
})), Ku(e, o, i, t), Ri(o, s), e.ancestors.pop(), e.schema = r, e.create(t, i, o, n);
|
|
6820
6820
|
}
|
|
6821
6821
|
function mh(e, t) {
|
|
6822
6822
|
if (t.data && t.data.estree && e.evaluater) {
|
|
@@ -6838,12 +6838,12 @@ function gh(e, t, n) {
|
|
|
6838
6838
|
const r = e.schema;
|
|
6839
6839
|
let a = r;
|
|
6840
6840
|
t.name === "svg" && r.space === "html" && (a = zt, e.schema = a), e.ancestors.push(t);
|
|
6841
|
-
const i = t.name === null ? e.Fragment : Qu(e, t.name, !0), o = vh(e, t), s =
|
|
6842
|
-
return Ku(e, o, i, t),
|
|
6841
|
+
const i = t.name === null ? e.Fragment : Qu(e, t.name, !0), o = vh(e, t), s = wi(e, t);
|
|
6842
|
+
return Ku(e, o, i, t), Ri(o, s), e.ancestors.pop(), e.schema = r, e.create(t, i, o, n);
|
|
6843
6843
|
}
|
|
6844
6844
|
function bh(e, t, n) {
|
|
6845
6845
|
const r = {};
|
|
6846
|
-
return
|
|
6846
|
+
return Ri(r, wi(e, t)), e.create(t, e.Fragment, r, n);
|
|
6847
6847
|
}
|
|
6848
6848
|
function Eh(e, t) {
|
|
6849
6849
|
return t.value;
|
|
@@ -6851,7 +6851,7 @@ function Eh(e, t) {
|
|
|
6851
6851
|
function Ku(e, t, n, r) {
|
|
6852
6852
|
typeof n != "string" && n !== e.Fragment && e.passNode && (t.node = r);
|
|
6853
6853
|
}
|
|
6854
|
-
function
|
|
6854
|
+
function Ri(e, t) {
|
|
6855
6855
|
if (t.length > 0) {
|
|
6856
6856
|
const n = t.length > 1 ? t : t[0];
|
|
6857
6857
|
n && (e.children = n);
|
|
@@ -6886,7 +6886,7 @@ function _h(e, t) {
|
|
|
6886
6886
|
const n = {};
|
|
6887
6887
|
let r, a;
|
|
6888
6888
|
for (a in t.properties)
|
|
6889
|
-
if (a !== "children" &&
|
|
6889
|
+
if (a !== "children" && Oi.call(t.properties, a)) {
|
|
6890
6890
|
const i = Ah(e, a, t.properties[a]);
|
|
6891
6891
|
if (i) {
|
|
6892
6892
|
const [o, s] = i;
|
|
@@ -6934,7 +6934,7 @@ function vh(e, t) {
|
|
|
6934
6934
|
}
|
|
6935
6935
|
return n;
|
|
6936
6936
|
}
|
|
6937
|
-
function
|
|
6937
|
+
function wi(e, t) {
|
|
6938
6938
|
const n = [];
|
|
6939
6939
|
let r = -1;
|
|
6940
6940
|
const a = e.passKeys ? /* @__PURE__ */ new Map() : oh;
|
|
@@ -6998,7 +6998,7 @@ function Qu(e, t, n) {
|
|
|
6998
6998
|
const a = t.split(".");
|
|
6999
6999
|
let i = -1, o;
|
|
7000
7000
|
for (; ++i < a.length; ) {
|
|
7001
|
-
const s =
|
|
7001
|
+
const s = ws(a[i]) ? { type: "Identifier", name: a[i] } : { type: "Literal", value: a[i] };
|
|
7002
7002
|
o = o ? {
|
|
7003
7003
|
type: "MemberExpression",
|
|
7004
7004
|
object: o,
|
|
@@ -7009,13 +7009,13 @@ function Qu(e, t, n) {
|
|
|
7009
7009
|
}
|
|
7010
7010
|
r = o;
|
|
7011
7011
|
} else
|
|
7012
|
-
r =
|
|
7012
|
+
r = ws(t) && !/^[a-z]/.test(t) ? { type: "Identifier", name: t } : { type: "Literal", value: t };
|
|
7013
7013
|
if (r.type === "Literal") {
|
|
7014
7014
|
const a = (
|
|
7015
7015
|
/** @type {keyof JSX.IntrinsicElements} */
|
|
7016
7016
|
r.value
|
|
7017
7017
|
);
|
|
7018
|
-
return
|
|
7018
|
+
return Oi.call(e.components, a) ? e.components[a] : a;
|
|
7019
7019
|
}
|
|
7020
7020
|
if (e.evaluater)
|
|
7021
7021
|
return e.evaluater.evaluateExpression(r);
|
|
@@ -7037,7 +7037,7 @@ function Sh(e) {
|
|
|
7037
7037
|
const t = {};
|
|
7038
7038
|
let n;
|
|
7039
7039
|
for (n in e)
|
|
7040
|
-
|
|
7040
|
+
Oi.call(e, n) && (t[Ch(n)] = e[n]);
|
|
7041
7041
|
return t;
|
|
7042
7042
|
}
|
|
7043
7043
|
function Ch(e) {
|
|
@@ -7084,11 +7084,11 @@ function Zu(e, t, n) {
|
|
|
7084
7084
|
if (t && "alt" in e && e.alt)
|
|
7085
7085
|
return e.alt;
|
|
7086
7086
|
if ("children" in e)
|
|
7087
|
-
return
|
|
7087
|
+
return zs(e.children, t, n);
|
|
7088
7088
|
}
|
|
7089
|
-
return Array.isArray(e) ?
|
|
7089
|
+
return Array.isArray(e) ? zs(e, t, n) : "";
|
|
7090
7090
|
}
|
|
7091
|
-
function
|
|
7091
|
+
function zs(e, t, n) {
|
|
7092
7092
|
const r = [];
|
|
7093
7093
|
let a = -1;
|
|
7094
7094
|
for (; ++a < e.length; )
|
|
@@ -7098,11 +7098,11 @@ function js(e, t, n) {
|
|
|
7098
7098
|
function wh(e) {
|
|
7099
7099
|
return !!(e && typeof e == "object");
|
|
7100
7100
|
}
|
|
7101
|
-
const
|
|
7102
|
-
function
|
|
7101
|
+
const Vs = document.createElement("i");
|
|
7102
|
+
function Li(e) {
|
|
7103
7103
|
const t = "&" + e + ";";
|
|
7104
|
-
|
|
7105
|
-
const n =
|
|
7104
|
+
Vs.innerHTML = t;
|
|
7105
|
+
const n = Vs.textContent;
|
|
7106
7106
|
return n.charCodeAt(n.length - 1) === 59 && e !== "semi" || n === t ? !1 : n;
|
|
7107
7107
|
}
|
|
7108
7108
|
function It(e, t, n, r) {
|
|
@@ -7117,7 +7117,7 @@ function It(e, t, n, r) {
|
|
|
7117
7117
|
function at(e, t) {
|
|
7118
7118
|
return e.length > 0 ? (It(e, e.length, 0, t), e) : t;
|
|
7119
7119
|
}
|
|
7120
|
-
const
|
|
7120
|
+
const Ys = {}.hasOwnProperty;
|
|
7121
7121
|
function Lh(e) {
|
|
7122
7122
|
const t = {};
|
|
7123
7123
|
let n = -1;
|
|
@@ -7128,11 +7128,11 @@ function Lh(e) {
|
|
|
7128
7128
|
function Ph(e, t) {
|
|
7129
7129
|
let n;
|
|
7130
7130
|
for (n in t) {
|
|
7131
|
-
const a = (
|
|
7131
|
+
const a = (Ys.call(e, n) ? e[n] : void 0) || (e[n] = {}), i = t[n];
|
|
7132
7132
|
let o;
|
|
7133
7133
|
if (i)
|
|
7134
7134
|
for (o in i) {
|
|
7135
|
-
|
|
7135
|
+
Ys.call(a, o) || (a[o] = []);
|
|
7136
7136
|
const s = i[o];
|
|
7137
7137
|
kh(
|
|
7138
7138
|
// @ts-expect-error Looks like a list.
|
|
@@ -7166,14 +7166,14 @@ function _n(e) {
|
|
|
7166
7166
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
7167
7167
|
}
|
|
7168
7168
|
const xt = Vt(/[A-Za-z]/), nt = Vt(/[\dA-Za-z]/), Dh = Vt(/[#-'*+\--9=?A-Z^-~]/);
|
|
7169
|
-
function
|
|
7169
|
+
function ri(e) {
|
|
7170
7170
|
return (
|
|
7171
7171
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
7172
7172
|
// character DEL
|
|
7173
7173
|
e !== null && (e < 32 || e === 127)
|
|
7174
7174
|
);
|
|
7175
7175
|
}
|
|
7176
|
-
const
|
|
7176
|
+
const ai = Vt(/\d/), Mh = Vt(/[\dA-Fa-f]/), Bh = Vt(/[!-/:-@[-`{-~]/);
|
|
7177
7177
|
function le(e) {
|
|
7178
7178
|
return e !== null && e < -2;
|
|
7179
7179
|
}
|
|
@@ -7258,7 +7258,7 @@ function $h(e) {
|
|
|
7258
7258
|
}
|
|
7259
7259
|
const jh = {
|
|
7260
7260
|
tokenize: zh
|
|
7261
|
-
},
|
|
7261
|
+
}, Gs = {
|
|
7262
7262
|
tokenize: Vh
|
|
7263
7263
|
};
|
|
7264
7264
|
function zh(e) {
|
|
@@ -7308,7 +7308,7 @@ function zh(e) {
|
|
|
7308
7308
|
t.interrupt = !!(a.currentConstruct && !a._gfmTableDynamicInterruptHack);
|
|
7309
7309
|
}
|
|
7310
7310
|
return t.containerState = {}, e.check(
|
|
7311
|
-
|
|
7311
|
+
Gs,
|
|
7312
7312
|
p,
|
|
7313
7313
|
u
|
|
7314
7314
|
)(_);
|
|
@@ -7321,7 +7321,7 @@ function zh(e) {
|
|
|
7321
7321
|
}
|
|
7322
7322
|
function c(_) {
|
|
7323
7323
|
return t.containerState = {}, e.attempt(
|
|
7324
|
-
|
|
7324
|
+
Gs,
|
|
7325
7325
|
l,
|
|
7326
7326
|
h
|
|
7327
7327
|
)(_);
|
|
@@ -7399,13 +7399,13 @@ function Vh(e, t, n) {
|
|
|
7399
7399
|
this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
|
|
7400
7400
|
);
|
|
7401
7401
|
}
|
|
7402
|
-
function
|
|
7402
|
+
function qs(e) {
|
|
7403
7403
|
if (e === null || Je(e) || Hh(e))
|
|
7404
7404
|
return 1;
|
|
7405
7405
|
if (Fh(e))
|
|
7406
7406
|
return 2;
|
|
7407
7407
|
}
|
|
7408
|
-
function
|
|
7408
|
+
function Pi(e, t, n) {
|
|
7409
7409
|
const r = [];
|
|
7410
7410
|
let a = -1;
|
|
7411
7411
|
for (; ++a < e.length; ) {
|
|
@@ -7414,7 +7414,7 @@ function Li(e, t, n) {
|
|
|
7414
7414
|
}
|
|
7415
7415
|
return t;
|
|
7416
7416
|
}
|
|
7417
|
-
const
|
|
7417
|
+
const ii = {
|
|
7418
7418
|
name: "attention",
|
|
7419
7419
|
tokenize: Gh,
|
|
7420
7420
|
resolveAll: Yh
|
|
@@ -7430,7 +7430,7 @@ function Yh(e, t) {
|
|
|
7430
7430
|
continue;
|
|
7431
7431
|
d = e[r][1].end.offset - e[r][1].start.offset > 1 && e[n][1].end.offset - e[n][1].start.offset > 1 ? 2 : 1;
|
|
7432
7432
|
const u = Object.assign({}, e[r][1].end), c = Object.assign({}, e[n][1].start);
|
|
7433
|
-
|
|
7433
|
+
Ws(u, -d), Ws(c, d), o = {
|
|
7434
7434
|
type: d > 1 ? "strongSequence" : "emphasisSequence",
|
|
7435
7435
|
start: u,
|
|
7436
7436
|
end: Object.assign({}, e[r][1].end)
|
|
@@ -7456,7 +7456,7 @@ function Yh(e, t) {
|
|
|
7456
7456
|
["enter", i, t]
|
|
7457
7457
|
]), g = at(
|
|
7458
7458
|
g,
|
|
7459
|
-
|
|
7459
|
+
Pi(
|
|
7460
7460
|
t.parser.constructs.insideSpan.null,
|
|
7461
7461
|
e.slice(r + 1, n),
|
|
7462
7462
|
t
|
|
@@ -7478,7 +7478,7 @@ function Yh(e, t) {
|
|
|
7478
7478
|
return e;
|
|
7479
7479
|
}
|
|
7480
7480
|
function Gh(e, t) {
|
|
7481
|
-
const n = this.parser.constructs.attentionMarkers.null, r = this.previous, a =
|
|
7481
|
+
const n = this.parser.constructs.attentionMarkers.null, r = this.previous, a = qs(r);
|
|
7482
7482
|
let i;
|
|
7483
7483
|
return o;
|
|
7484
7484
|
function o(d) {
|
|
@@ -7487,11 +7487,11 @@ function Gh(e, t) {
|
|
|
7487
7487
|
function s(d) {
|
|
7488
7488
|
if (d === i)
|
|
7489
7489
|
return e.consume(d), s;
|
|
7490
|
-
const g = e.exit("attentionSequence"), p =
|
|
7490
|
+
const g = e.exit("attentionSequence"), p = qs(d), u = !p || p === 2 && a || n.includes(d), c = !a || a === 2 && p || n.includes(r);
|
|
7491
7491
|
return g._open = !!(i === 42 ? u : u && (a || !c)), g._close = !!(i === 42 ? c : c && (p || !u)), t(d);
|
|
7492
7492
|
}
|
|
7493
7493
|
}
|
|
7494
|
-
function
|
|
7494
|
+
function Ws(e, t) {
|
|
7495
7495
|
e.column += t, e.offset += t, e._bufferIndex += t;
|
|
7496
7496
|
}
|
|
7497
7497
|
const qh = {
|
|
@@ -7514,7 +7514,7 @@ function Wh(e, t, n) {
|
|
|
7514
7514
|
return l === 58 ? (e.consume(l), r = 0, d) : (l === 43 || l === 45 || l === 46 || nt(l)) && r++ < 32 ? (e.consume(l), s) : (r = 0, g(l));
|
|
7515
7515
|
}
|
|
7516
7516
|
function d(l) {
|
|
7517
|
-
return l === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(l), e.exit("autolinkMarker"), e.exit("autolink"), t) : l === null || l === 32 || l === 60 ||
|
|
7517
|
+
return l === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(l), e.exit("autolinkMarker"), e.exit("autolink"), t) : l === null || l === 32 || l === 60 || ri(l) ? n(l) : (e.consume(l), d);
|
|
7518
7518
|
}
|
|
7519
7519
|
function g(l) {
|
|
7520
7520
|
return l === 64 ? (e.consume(l), p) : Dh(l) ? (e.consume(l), g) : n(l);
|
|
@@ -7616,20 +7616,20 @@ function e0(e, t, n) {
|
|
|
7616
7616
|
return u === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(u), e.exit("characterReferenceMarkerNumeric"), g) : (e.enter("characterReferenceValue"), i = 31, o = nt, p(u));
|
|
7617
7617
|
}
|
|
7618
7618
|
function g(u) {
|
|
7619
|
-
return u === 88 || u === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(u), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), i = 6, o = Mh, p) : (e.enter("characterReferenceValue"), i = 7, o =
|
|
7619
|
+
return u === 88 || u === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(u), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), i = 6, o = Mh, p) : (e.enter("characterReferenceValue"), i = 7, o = ai, p(u));
|
|
7620
7620
|
}
|
|
7621
7621
|
function p(u) {
|
|
7622
7622
|
if (u === 59 && a) {
|
|
7623
7623
|
const c = e.exit("characterReferenceValue");
|
|
7624
|
-
return o === nt && !
|
|
7624
|
+
return o === nt && !Li(r.sliceSerialize(c)) ? n(u) : (e.enter("characterReferenceMarker"), e.consume(u), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
|
|
7625
7625
|
}
|
|
7626
7626
|
return o(u) && a++ < i ? (e.consume(u), p) : n(u);
|
|
7627
7627
|
}
|
|
7628
7628
|
}
|
|
7629
|
-
const
|
|
7629
|
+
const Xs = {
|
|
7630
7630
|
tokenize: n0,
|
|
7631
7631
|
partial: !0
|
|
7632
|
-
},
|
|
7632
|
+
}, Ks = {
|
|
7633
7633
|
name: "codeFenced",
|
|
7634
7634
|
tokenize: t0,
|
|
7635
7635
|
concrete: !0
|
|
@@ -7652,7 +7652,7 @@ function t0(e, t, n) {
|
|
|
7652
7652
|
return S === s ? (o++, e.consume(S), p) : o < 3 ? n(S) : (e.exit("codeFencedFenceSequence"), ve(S) ? Ne(e, u, "whitespace")(S) : u(S));
|
|
7653
7653
|
}
|
|
7654
7654
|
function u(S) {
|
|
7655
|
-
return S === null || le(S) ? (e.exit("codeFencedFence"), r.interrupt ? t(S) : e.check(
|
|
7655
|
+
return S === null || le(S) ? (e.exit("codeFencedFence"), r.interrupt ? t(S) : e.check(Xs, f, A)(S)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
7656
7656
|
contentType: "string"
|
|
7657
7657
|
}), c(S));
|
|
7658
7658
|
}
|
|
@@ -7682,7 +7682,7 @@ function t0(e, t, n) {
|
|
|
7682
7682
|
)(S) : E(S);
|
|
7683
7683
|
}
|
|
7684
7684
|
function E(S) {
|
|
7685
|
-
return S === null || le(S) ? e.check(
|
|
7685
|
+
return S === null || le(S) ? e.check(Xs, f, A)(S) : (e.enter("codeFlowValue"), _(S));
|
|
7686
7686
|
}
|
|
7687
7687
|
function _(S) {
|
|
7688
7688
|
return S === null || le(S) ? (e.exit("codeFlowValue"), E(S)) : (e.consume(S), _);
|
|
@@ -7898,7 +7898,7 @@ function al(e, t, n, r, a, i, o, s, d) {
|
|
|
7898
7898
|
let p = 0;
|
|
7899
7899
|
return u;
|
|
7900
7900
|
function u(m) {
|
|
7901
|
-
return m === 60 ? (e.enter(r), e.enter(a), e.enter(i), e.consume(m), e.exit(i), c) : m === null || m === 32 || m === 41 ||
|
|
7901
|
+
return m === 60 ? (e.enter(r), e.enter(a), e.enter(i), e.consume(m), e.exit(i), c) : m === null || m === 32 || m === 41 || ri(m) ? n(m) : (e.enter(r), e.enter(o), e.enter(s), e.enter("chunkString", {
|
|
7902
7902
|
contentType: "string"
|
|
7903
7903
|
}), f(m));
|
|
7904
7904
|
}
|
|
@@ -7914,7 +7914,7 @@ function al(e, t, n, r, a, i, o, s, d) {
|
|
|
7914
7914
|
return m === 60 || m === 62 || m === 92 ? (e.consume(m), l) : l(m);
|
|
7915
7915
|
}
|
|
7916
7916
|
function f(m) {
|
|
7917
|
-
return !p && (m === null || m === 41 || Je(m)) ? (e.exit("chunkString"), e.exit(s), e.exit(o), e.exit(r), t(m)) : p < g && m === 40 ? (e.consume(m), p++, f) : m === 41 ? (e.consume(m), p--, f) : m === null || m === 32 || m === 40 ||
|
|
7917
|
+
return !p && (m === null || m === 41 || Je(m)) ? (e.exit("chunkString"), e.exit(s), e.exit(o), e.exit(r), t(m)) : p < g && m === 40 ? (e.consume(m), p++, f) : m === 41 ? (e.consume(m), p--, f) : m === null || m === 32 || m === 40 || ri(m) ? n(m) : (e.consume(m), m === 92 ? T : f);
|
|
7918
7918
|
}
|
|
7919
7919
|
function T(m) {
|
|
7920
7920
|
return m === 40 || m === 41 || m === 92 ? (e.consume(m), f) : f(m);
|
|
@@ -8176,7 +8176,7 @@ const S0 = [
|
|
|
8176
8176
|
"tr",
|
|
8177
8177
|
"track",
|
|
8178
8178
|
"ul"
|
|
8179
|
-
],
|
|
8179
|
+
], Qs = ["pre", "script", "style", "textarea"], C0 = {
|
|
8180
8180
|
name: "htmlFlow",
|
|
8181
8181
|
tokenize: R0,
|
|
8182
8182
|
resolveTo: O0,
|
|
@@ -8223,7 +8223,7 @@ function R0(e, t, n) {
|
|
|
8223
8223
|
function T(L) {
|
|
8224
8224
|
if (L === null || L === 47 || L === 62 || Je(L)) {
|
|
8225
8225
|
const J = L === 47, ie = o.toLowerCase();
|
|
8226
|
-
return !J && !i &&
|
|
8226
|
+
return !J && !i && Qs.includes(ie) ? (a = 1, r.interrupt ? t(L) : M(L)) : S0.includes(o.toLowerCase()) ? (a = 6, J ? (e.consume(L), m) : r.interrupt ? t(L) : M(L)) : (a = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(L) : i ? E(L) : _(L));
|
|
8227
8227
|
}
|
|
8228
8228
|
return L === 45 || nt(L) ? (e.consume(L), o += String.fromCharCode(L), T) : n(L);
|
|
8229
8229
|
}
|
|
@@ -8289,7 +8289,7 @@ function R0(e, t, n) {
|
|
|
8289
8289
|
function de(L) {
|
|
8290
8290
|
if (L === 62) {
|
|
8291
8291
|
const J = o.toLowerCase();
|
|
8292
|
-
return
|
|
8292
|
+
return Qs.includes(J) ? (e.consume(L), j) : M(L);
|
|
8293
8293
|
}
|
|
8294
8294
|
return xt(L) && o.length < 8 ? (e.consume(L), o += String.fromCharCode(L), de) : M(L);
|
|
8295
8295
|
}
|
|
@@ -8424,7 +8424,7 @@ function k0(e, t, n) {
|
|
|
8424
8424
|
return e.enter("htmlTextData"), o(I);
|
|
8425
8425
|
}
|
|
8426
8426
|
}
|
|
8427
|
-
const
|
|
8427
|
+
const ki = {
|
|
8428
8428
|
name: "labelEnd",
|
|
8429
8429
|
tokenize: U0,
|
|
8430
8430
|
resolveTo: H0,
|
|
@@ -8475,7 +8475,7 @@ function H0(e, t) {
|
|
|
8475
8475
|
["enter", g, t]
|
|
8476
8476
|
], s = at(s, e.slice(i + 1, i + r + 3)), s = at(s, [["enter", p, t]]), s = at(
|
|
8477
8477
|
s,
|
|
8478
|
-
|
|
8478
|
+
Pi(
|
|
8479
8479
|
t.parser.constructs.insideSpan.null,
|
|
8480
8480
|
e.slice(i + r + 4, o - 3),
|
|
8481
8481
|
t
|
|
@@ -8612,7 +8612,7 @@ function z0(e, t, n) {
|
|
|
8612
8612
|
const V0 = {
|
|
8613
8613
|
name: "labelStartImage",
|
|
8614
8614
|
tokenize: Y0,
|
|
8615
|
-
resolveAll:
|
|
8615
|
+
resolveAll: ki.resolveAll
|
|
8616
8616
|
};
|
|
8617
8617
|
function Y0(e, t, n) {
|
|
8618
8618
|
const r = this;
|
|
@@ -8630,7 +8630,7 @@ function Y0(e, t, n) {
|
|
|
8630
8630
|
const G0 = {
|
|
8631
8631
|
name: "labelStartLink",
|
|
8632
8632
|
tokenize: q0,
|
|
8633
|
-
resolveAll:
|
|
8633
|
+
resolveAll: ki.resolveAll
|
|
8634
8634
|
};
|
|
8635
8635
|
function q0(e, t, n) {
|
|
8636
8636
|
const r = this;
|
|
@@ -8692,7 +8692,7 @@ function Z0(e, t, n) {
|
|
|
8692
8692
|
return s;
|
|
8693
8693
|
function s(l) {
|
|
8694
8694
|
const h = r.containerState.type || (l === 42 || l === 43 || l === 45 ? "listUnordered" : "listOrdered");
|
|
8695
|
-
if (h === "listUnordered" ? !r.containerState.marker || l === r.containerState.marker :
|
|
8695
|
+
if (h === "listUnordered" ? !r.containerState.marker || l === r.containerState.marker : ai(l)) {
|
|
8696
8696
|
if (r.containerState.type || (r.containerState.type = h, e.enter(h, {
|
|
8697
8697
|
_container: !0
|
|
8698
8698
|
})), h === "listUnordered")
|
|
@@ -8703,7 +8703,7 @@ function Z0(e, t, n) {
|
|
|
8703
8703
|
return n(l);
|
|
8704
8704
|
}
|
|
8705
8705
|
function d(l) {
|
|
8706
|
-
return
|
|
8706
|
+
return ai(l) && ++o < 10 ? (e.consume(l), d) : (!r.interrupt || o < 2) && (r.containerState.marker ? l === r.containerState.marker : l === 41 || l === 46) ? (e.exit("listItemValue"), g(l)) : n(l);
|
|
8707
8707
|
}
|
|
8708
8708
|
function g(l) {
|
|
8709
8709
|
return e.enter("listItemMarker"), e.consume(l), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || l, e.check(
|
|
@@ -8779,7 +8779,7 @@ function nm(e, t, n) {
|
|
|
8779
8779
|
return !ve(i) && o && o[1].type === "listItemPrefixWhitespace" ? t(i) : n(i);
|
|
8780
8780
|
}
|
|
8781
8781
|
}
|
|
8782
|
-
const
|
|
8782
|
+
const Zs = {
|
|
8783
8783
|
name: "setextUnderline",
|
|
8784
8784
|
tokenize: am,
|
|
8785
8785
|
resolveTo: rm
|
|
@@ -8995,7 +8995,7 @@ function fm(e, t, n) {
|
|
|
8995
8995
|
let p = t.tokenize.call(g, d);
|
|
8996
8996
|
return t.resolveAll && i.push(t), g;
|
|
8997
8997
|
function u(O) {
|
|
8998
|
-
return o = at(o, O), T(), o[o.length - 1] !== null ? [] : (y(t, 0), g.events =
|
|
8998
|
+
return o = at(o, O), T(), o[o.length - 1] !== null ? [] : (y(t, 0), g.events = Pi(i, g.events, g), g.events);
|
|
8999
8999
|
}
|
|
9000
9000
|
function c(O, M) {
|
|
9001
9001
|
return hm(l(O), M);
|
|
@@ -9193,12 +9193,12 @@ const mm = {
|
|
|
9193
9193
|
}, bm = {
|
|
9194
9194
|
35: v0,
|
|
9195
9195
|
42: Sr,
|
|
9196
|
-
45: [
|
|
9196
|
+
45: [Zs, Sr],
|
|
9197
9197
|
60: C0,
|
|
9198
|
-
61:
|
|
9198
|
+
61: Zs,
|
|
9199
9199
|
95: Sr,
|
|
9200
|
-
96:
|
|
9201
|
-
126:
|
|
9200
|
+
96: Ks,
|
|
9201
|
+
126: Ks
|
|
9202
9202
|
}, Em = {
|
|
9203
9203
|
38: nl,
|
|
9204
9204
|
92: tl
|
|
@@ -9208,15 +9208,15 @@ const mm = {
|
|
|
9208
9208
|
[-3]: xa,
|
|
9209
9209
|
33: V0,
|
|
9210
9210
|
38: nl,
|
|
9211
|
-
42:
|
|
9211
|
+
42: ii,
|
|
9212
9212
|
60: [qh, P0],
|
|
9213
9213
|
91: G0,
|
|
9214
9214
|
92: [y0, tl],
|
|
9215
|
-
93:
|
|
9216
|
-
95:
|
|
9215
|
+
93: ki,
|
|
9216
|
+
95: ii,
|
|
9217
9217
|
96: s0
|
|
9218
9218
|
}, ym = {
|
|
9219
|
-
null: [
|
|
9219
|
+
null: [ii, om]
|
|
9220
9220
|
}, _m = {
|
|
9221
9221
|
null: [42, 95]
|
|
9222
9222
|
}, vm = {
|
|
@@ -9260,7 +9260,7 @@ function Sm(e) {
|
|
|
9260
9260
|
;
|
|
9261
9261
|
return e;
|
|
9262
9262
|
}
|
|
9263
|
-
const
|
|
9263
|
+
const Js = /[\0\t\n\r]/g;
|
|
9264
9264
|
function Cm() {
|
|
9265
9265
|
let e = 1, t = "", n = !0, r;
|
|
9266
9266
|
return a;
|
|
@@ -9268,7 +9268,7 @@ function Cm() {
|
|
|
9268
9268
|
const d = [];
|
|
9269
9269
|
let g, p, u, c, l;
|
|
9270
9270
|
for (i = t + (typeof i == "string" ? i.toString() : new TextDecoder(o || void 0).decode(i)), u = 0, t = "", n && (i.charCodeAt(0) === 65279 && u++, n = void 0); u < i.length; ) {
|
|
9271
|
-
if (
|
|
9271
|
+
if (Js.lastIndex = u, g = Js.exec(i), c = g && g.index !== void 0 ? g.index : i.length, l = i.charCodeAt(c), !g) {
|
|
9272
9272
|
t = i.slice(u);
|
|
9273
9273
|
break;
|
|
9274
9274
|
}
|
|
@@ -9307,7 +9307,7 @@ function Om(e, t, n) {
|
|
|
9307
9307
|
const a = n.charCodeAt(1), i = a === 120 || a === 88;
|
|
9308
9308
|
return Ju(n.slice(i ? 2 : 1), i ? 16 : 10);
|
|
9309
9309
|
}
|
|
9310
|
-
return
|
|
9310
|
+
return Li(n) || e;
|
|
9311
9311
|
}
|
|
9312
9312
|
const ll = {}.hasOwnProperty;
|
|
9313
9313
|
function Rm(e, t, n) {
|
|
@@ -9456,7 +9456,7 @@ function wm(e) {
|
|
|
9456
9456
|
}
|
|
9457
9457
|
if (oe.tokenStack.length > 0) {
|
|
9458
9458
|
const Ke = oe.tokenStack[oe.tokenStack.length - 1];
|
|
9459
|
-
(Ke[1] ||
|
|
9459
|
+
(Ke[1] || eo).call(oe, void 0, Ke[0]);
|
|
9460
9460
|
}
|
|
9461
9461
|
for (q.position = {
|
|
9462
9462
|
start: Mt(
|
|
@@ -9558,7 +9558,7 @@ function wm(e) {
|
|
|
9558
9558
|
function g($, q) {
|
|
9559
9559
|
const oe = this.stack.pop(), pe = this.tokenStack.pop();
|
|
9560
9560
|
if (pe)
|
|
9561
|
-
pe[0].type !== $.type && (q ? q.call(this, $, pe[0]) : (pe[1] ||
|
|
9561
|
+
pe[0].type !== $.type && (q ? q.call(this, $, pe[0]) : (pe[1] || eo).call(this, $, pe[0]));
|
|
9562
9562
|
else throw new Error(
|
|
9563
9563
|
"Cannot close `" + $.type + "` (" + Yn({
|
|
9564
9564
|
start: $.start,
|
|
@@ -9725,7 +9725,7 @@ function wm(e) {
|
|
|
9725
9725
|
oe ? (pe = Ju(
|
|
9726
9726
|
q,
|
|
9727
9727
|
oe === "characterReferenceMarkerNumeric" ? 10 : 16
|
|
9728
|
-
), this.data.characterReferenceType = void 0) : pe =
|
|
9728
|
+
), this.data.characterReferenceType = void 0) : pe = Li(q);
|
|
9729
9729
|
const _e = this.stack.pop();
|
|
9730
9730
|
_e.value += pe, _e.position.end = Mt($.end);
|
|
9731
9731
|
}
|
|
@@ -9887,7 +9887,7 @@ function Lm(e, t) {
|
|
|
9887
9887
|
}
|
|
9888
9888
|
}
|
|
9889
9889
|
}
|
|
9890
|
-
function
|
|
9890
|
+
function eo(e, t) {
|
|
9891
9891
|
throw e ? new Error(
|
|
9892
9892
|
"Cannot close `" + e.type + "` (" + Yn({
|
|
9893
9893
|
start: e.start,
|
|
@@ -10197,28 +10197,28 @@ function tp(e, t) {
|
|
|
10197
10197
|
};
|
|
10198
10198
|
return e.patch(t, n), e.applyData(t, n);
|
|
10199
10199
|
}
|
|
10200
|
-
const
|
|
10200
|
+
const to = 9, no = 32;
|
|
10201
10201
|
function np(e) {
|
|
10202
10202
|
const t = String(e), n = /\r?\n|\r/g;
|
|
10203
10203
|
let r = n.exec(t), a = 0;
|
|
10204
10204
|
const i = [];
|
|
10205
10205
|
for (; r; )
|
|
10206
10206
|
i.push(
|
|
10207
|
-
|
|
10207
|
+
ro(t.slice(a, r.index), a > 0, !0),
|
|
10208
10208
|
r[0]
|
|
10209
10209
|
), a = r.index + r[0].length, r = n.exec(t);
|
|
10210
|
-
return i.push(
|
|
10210
|
+
return i.push(ro(t.slice(a), a > 0, !1)), i.join("");
|
|
10211
10211
|
}
|
|
10212
|
-
function
|
|
10212
|
+
function ro(e, t, n) {
|
|
10213
10213
|
let r = 0, a = e.length;
|
|
10214
10214
|
if (t) {
|
|
10215
10215
|
let i = e.codePointAt(r);
|
|
10216
|
-
for (; i ===
|
|
10216
|
+
for (; i === to || i === no; )
|
|
10217
10217
|
r++, i = e.codePointAt(r);
|
|
10218
10218
|
}
|
|
10219
10219
|
if (n) {
|
|
10220
10220
|
let i = e.codePointAt(a - 1);
|
|
10221
|
-
for (; i ===
|
|
10221
|
+
for (; i === to || i === no; )
|
|
10222
10222
|
a--, i = e.codePointAt(a - 1);
|
|
10223
10223
|
}
|
|
10224
10224
|
return a > r ? e.slice(r, a) : "";
|
|
@@ -10268,7 +10268,7 @@ const ip = {
|
|
|
10268
10268
|
};
|
|
10269
10269
|
function pr() {
|
|
10270
10270
|
}
|
|
10271
|
-
const hl = -1, Wr = 0, wr = 1, Lr = 2,
|
|
10271
|
+
const hl = -1, Wr = 0, wr = 1, Lr = 2, Di = 3, Mi = 4, Bi = 5, Fi = 6, ml = 7, pl = 8, ao = typeof self == "object" ? self : globalThis, sp = (e, t) => {
|
|
10272
10272
|
const n = (a, i) => (e.set(i, a), a), r = (a) => {
|
|
10273
10273
|
if (e.has(a))
|
|
10274
10274
|
return e.get(a);
|
|
@@ -10289,19 +10289,19 @@ const hl = -1, Wr = 0, wr = 1, Lr = 2, ki = 3, Di = 4, Mi = 5, Bi = 6, ml = 7, p
|
|
|
10289
10289
|
s[r(d)] = r(g);
|
|
10290
10290
|
return s;
|
|
10291
10291
|
}
|
|
10292
|
-
case
|
|
10292
|
+
case Di:
|
|
10293
10293
|
return n(new Date(o), a);
|
|
10294
|
-
case
|
|
10294
|
+
case Mi: {
|
|
10295
10295
|
const { source: s, flags: d } = o;
|
|
10296
10296
|
return n(new RegExp(s, d), a);
|
|
10297
10297
|
}
|
|
10298
|
-
case
|
|
10298
|
+
case Bi: {
|
|
10299
10299
|
const s = n(/* @__PURE__ */ new Map(), a);
|
|
10300
10300
|
for (const [d, g] of o)
|
|
10301
10301
|
s.set(r(d), r(g));
|
|
10302
10302
|
return s;
|
|
10303
10303
|
}
|
|
10304
|
-
case
|
|
10304
|
+
case Fi: {
|
|
10305
10305
|
const s = n(/* @__PURE__ */ new Set(), a);
|
|
10306
10306
|
for (const d of o)
|
|
10307
10307
|
s.add(r(d));
|
|
@@ -10309,17 +10309,17 @@ const hl = -1, Wr = 0, wr = 1, Lr = 2, ki = 3, Di = 4, Mi = 5, Bi = 6, ml = 7, p
|
|
|
10309
10309
|
}
|
|
10310
10310
|
case ml: {
|
|
10311
10311
|
const { name: s, message: d } = o;
|
|
10312
|
-
return n(new
|
|
10312
|
+
return n(new ao[s](d), a);
|
|
10313
10313
|
}
|
|
10314
10314
|
case pl:
|
|
10315
10315
|
return n(BigInt(o), a);
|
|
10316
10316
|
case "BigInt":
|
|
10317
10317
|
return n(Object(BigInt(o)), a);
|
|
10318
10318
|
}
|
|
10319
|
-
return n(new
|
|
10319
|
+
return n(new ao[i](o), a);
|
|
10320
10320
|
};
|
|
10321
10321
|
return r;
|
|
10322
|
-
},
|
|
10322
|
+
}, io = (e) => sp(/* @__PURE__ */ new Map(), e)(0), hn = "", { toString: op } = {}, { keys: up } = Object, Mn = (e) => {
|
|
10323
10323
|
const t = typeof e;
|
|
10324
10324
|
if (t !== "object" || !e)
|
|
10325
10325
|
return [Wr, t];
|
|
@@ -10330,13 +10330,13 @@ const hl = -1, Wr = 0, wr = 1, Lr = 2, ki = 3, Di = 4, Mi = 5, Bi = 6, ml = 7, p
|
|
|
10330
10330
|
case "Object":
|
|
10331
10331
|
return [Lr, hn];
|
|
10332
10332
|
case "Date":
|
|
10333
|
-
return [ki, hn];
|
|
10334
|
-
case "RegExp":
|
|
10335
10333
|
return [Di, hn];
|
|
10336
|
-
case "
|
|
10334
|
+
case "RegExp":
|
|
10337
10335
|
return [Mi, hn];
|
|
10338
|
-
case "
|
|
10336
|
+
case "Map":
|
|
10339
10337
|
return [Bi, hn];
|
|
10338
|
+
case "Set":
|
|
10339
|
+
return [Fi, hn];
|
|
10340
10340
|
}
|
|
10341
10341
|
return n.includes("Array") ? [wr, n] : n.includes("Error") ? [ml, n] : [Lr, n];
|
|
10342
10342
|
}, gr = ([e, t]) => e === Wr && (t === "function" || t === "symbol"), lp = (e, t, n, r) => {
|
|
@@ -10390,19 +10390,19 @@ const hl = -1, Wr = 0, wr = 1, Lr = 2, ki = 3, Di = 4, Mi = 5, Bi = 6, ml = 7, p
|
|
|
10390
10390
|
(e || !gr(Mn(o[c]))) && p.push([i(c), i(o[c])]);
|
|
10391
10391
|
return u;
|
|
10392
10392
|
}
|
|
10393
|
-
case
|
|
10393
|
+
case Di:
|
|
10394
10394
|
return a([s, o.toISOString()], o);
|
|
10395
|
-
case
|
|
10395
|
+
case Mi: {
|
|
10396
10396
|
const { source: p, flags: u } = o;
|
|
10397
10397
|
return a([s, { source: p, flags: u }], o);
|
|
10398
10398
|
}
|
|
10399
|
-
case
|
|
10399
|
+
case Bi: {
|
|
10400
10400
|
const p = [], u = a([s, p], o);
|
|
10401
10401
|
for (const [c, l] of o)
|
|
10402
10402
|
(e || !(gr(Mn(c)) || gr(Mn(l)))) && p.push([i(c), i(l)]);
|
|
10403
10403
|
return u;
|
|
10404
10404
|
}
|
|
10405
|
-
case
|
|
10405
|
+
case Fi: {
|
|
10406
10406
|
const p = [], u = a([s, p], o);
|
|
10407
10407
|
for (const c of o)
|
|
10408
10408
|
(e || !gr(Mn(c))) && p.push(i(c));
|
|
@@ -10413,13 +10413,13 @@ const hl = -1, Wr = 0, wr = 1, Lr = 2, ki = 3, Di = 4, Mi = 5, Bi = 6, ml = 7, p
|
|
|
10413
10413
|
return a([s, { name: d, message: g }], o);
|
|
10414
10414
|
};
|
|
10415
10415
|
return i;
|
|
10416
|
-
},
|
|
10416
|
+
}, so = (e, { json: t, lossy: n } = {}) => {
|
|
10417
10417
|
const r = [];
|
|
10418
10418
|
return lp(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
|
|
10419
10419
|
}, An = typeof structuredClone == "function" ? (
|
|
10420
10420
|
/* c8 ignore start */
|
|
10421
|
-
(e, t) => t && ("json" in t || "lossy" in t) ?
|
|
10422
|
-
) : (e, t) =>
|
|
10421
|
+
(e, t) => t && ("json" in t || "lossy" in t) ? io(so(e, t)) : structuredClone(e)
|
|
10422
|
+
) : (e, t) => io(so(e, t));
|
|
10423
10423
|
function cp(e, t) {
|
|
10424
10424
|
const n = [{ type: "text", value: "↩" }];
|
|
10425
10425
|
return t > 1 && n.push({
|
|
@@ -10582,7 +10582,7 @@ function gp() {
|
|
|
10582
10582
|
function bp(e) {
|
|
10583
10583
|
return e !== null && typeof e == "object" && "type" in e;
|
|
10584
10584
|
}
|
|
10585
|
-
const bl = [], Ep = !0,
|
|
10585
|
+
const bl = [], Ep = !0, oo = !1, Tp = "skip";
|
|
10586
10586
|
function yp(e, t, n, r) {
|
|
10587
10587
|
let a;
|
|
10588
10588
|
typeof t == "function" && typeof n != "function" ? (r = n, n = t) : a = t;
|
|
@@ -10608,7 +10608,7 @@ function yp(e, t, n, r) {
|
|
|
10608
10608
|
return c;
|
|
10609
10609
|
function c() {
|
|
10610
10610
|
let l = bl, h, f, T;
|
|
10611
|
-
if ((!t || i(d, g, p[p.length - 1] || void 0)) && (l = _p(n(d, p)), l[0] ===
|
|
10611
|
+
if ((!t || i(d, g, p[p.length - 1] || void 0)) && (l = _p(n(d, p)), l[0] === oo))
|
|
10612
10612
|
return l;
|
|
10613
10613
|
if ("children" in d && d.children) {
|
|
10614
10614
|
const m = (
|
|
@@ -10618,7 +10618,7 @@ function yp(e, t, n, r) {
|
|
|
10618
10618
|
if (m.children && l[0] !== Tp)
|
|
10619
10619
|
for (f = (r ? m.children.length : -1) + o, T = p.concat(m); f > -1 && f < m.children.length; ) {
|
|
10620
10620
|
const E = m.children[f];
|
|
10621
|
-
if (h = s(E, f, T)(), h[0] ===
|
|
10621
|
+
if (h = s(E, f, T)(), h[0] === oo)
|
|
10622
10622
|
return h;
|
|
10623
10623
|
f = typeof h[1] == "number" ? h[1] : f + o;
|
|
10624
10624
|
}
|
|
@@ -10630,7 +10630,7 @@ function yp(e, t, n, r) {
|
|
|
10630
10630
|
function _p(e) {
|
|
10631
10631
|
return Array.isArray(e) ? e : typeof e == "number" ? [Ep, e] : e == null ? bl : [e];
|
|
10632
10632
|
}
|
|
10633
|
-
function
|
|
10633
|
+
function Hi(e, t, n, r) {
|
|
10634
10634
|
let a, i, o;
|
|
10635
10635
|
typeof t == "function" && typeof n != "function" ? (i = void 0, o = t, a = n) : (i = t, o = n, a = r), yp(e, i, s, a);
|
|
10636
10636
|
function s(d, g) {
|
|
@@ -10638,7 +10638,7 @@ function Fi(e, t, n, r) {
|
|
|
10638
10638
|
return o(d, u, p);
|
|
10639
10639
|
}
|
|
10640
10640
|
}
|
|
10641
|
-
const
|
|
10641
|
+
const si = {}.hasOwnProperty, vp = {};
|
|
10642
10642
|
function Ap(e, t) {
|
|
10643
10643
|
const n = t || vp, r = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o = { ...ip, ...n.handlers }, s = {
|
|
10644
10644
|
all: g,
|
|
@@ -10653,7 +10653,7 @@ function Ap(e, t) {
|
|
|
10653
10653
|
patch: xp,
|
|
10654
10654
|
wrap: Ip
|
|
10655
10655
|
};
|
|
10656
|
-
return
|
|
10656
|
+
return Hi(e, function(p) {
|
|
10657
10657
|
if (p.type === "definition" || p.type === "footnoteDefinition") {
|
|
10658
10658
|
const u = p.type === "definition" ? r : a, c = String(p.identifier).toUpperCase();
|
|
10659
10659
|
u.has(c) || u.set(c, p);
|
|
@@ -10661,7 +10661,7 @@ function Ap(e, t) {
|
|
|
10661
10661
|
}), s;
|
|
10662
10662
|
function d(p, u) {
|
|
10663
10663
|
const c = p.type, l = s.handlers[c];
|
|
10664
|
-
if (
|
|
10664
|
+
if (si.call(s.handlers, c) && l)
|
|
10665
10665
|
return l(s, p, u);
|
|
10666
10666
|
if (s.options.passThrough && s.options.passThrough.includes(c)) {
|
|
10667
10667
|
if ("children" in p) {
|
|
@@ -10680,9 +10680,9 @@ function Ap(e, t) {
|
|
|
10680
10680
|
for (; ++l < c.length; ) {
|
|
10681
10681
|
const h = s.one(c[l], p);
|
|
10682
10682
|
if (h) {
|
|
10683
|
-
if (l && c[l - 1].type === "break" && (!Array.isArray(h) && h.type === "text" && (h.value =
|
|
10683
|
+
if (l && c[l - 1].type === "break" && (!Array.isArray(h) && h.type === "text" && (h.value = uo(h.value)), !Array.isArray(h) && h.type === "element")) {
|
|
10684
10684
|
const f = h.children[0];
|
|
10685
|
-
f && f.type === "text" && (f.value =
|
|
10685
|
+
f && f.type === "text" && (f.value = uo(f.value));
|
|
10686
10686
|
}
|
|
10687
10687
|
Array.isArray(h) ? u.push(...h) : u.push(h);
|
|
10688
10688
|
}
|
|
@@ -10710,7 +10710,7 @@ function Sp(e, t) {
|
|
|
10710
10710
|
return n;
|
|
10711
10711
|
}
|
|
10712
10712
|
function Cp(e, t) {
|
|
10713
|
-
const n = t.data || {}, r = "value" in t && !(
|
|
10713
|
+
const n = t.data || {}, r = "value" in t && !(si.call(n, "hProperties") || si.call(n, "hChildren")) ? { type: "text", value: t.value } : {
|
|
10714
10714
|
type: "element",
|
|
10715
10715
|
tagName: "div",
|
|
10716
10716
|
properties: {},
|
|
@@ -10728,13 +10728,13 @@ function Ip(e, t) {
|
|
|
10728
10728
|
return t && e.length > 0 && n.push({ type: "text", value: `
|
|
10729
10729
|
` }), n;
|
|
10730
10730
|
}
|
|
10731
|
-
function
|
|
10731
|
+
function uo(e) {
|
|
10732
10732
|
let t = 0, n = e.charCodeAt(t);
|
|
10733
10733
|
for (; n === 9 || n === 32; )
|
|
10734
10734
|
t++, n = e.charCodeAt(t);
|
|
10735
10735
|
return e.slice(t);
|
|
10736
10736
|
}
|
|
10737
|
-
function
|
|
10737
|
+
function lo(e, t) {
|
|
10738
10738
|
const n = Ap(e, t), r = n.one(e, void 0), a = dp(n), i = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
|
|
10739
10739
|
return a && i.children.push({ type: "text", value: `
|
|
10740
10740
|
` }, a), i;
|
|
@@ -10743,23 +10743,23 @@ function Np(e, t) {
|
|
|
10743
10743
|
return e && "run" in e ? async function(n, r) {
|
|
10744
10744
|
const a = (
|
|
10745
10745
|
/** @type {HastRoot} */
|
|
10746
|
-
|
|
10746
|
+
lo(n, { file: r, ...t })
|
|
10747
10747
|
);
|
|
10748
10748
|
await e.run(a, r);
|
|
10749
10749
|
} : function(n, r) {
|
|
10750
10750
|
return (
|
|
10751
10751
|
/** @type {HastRoot} */
|
|
10752
|
-
|
|
10752
|
+
lo(n, { file: r, ...t || e })
|
|
10753
10753
|
);
|
|
10754
10754
|
};
|
|
10755
10755
|
}
|
|
10756
|
-
function
|
|
10756
|
+
function co(e) {
|
|
10757
10757
|
if (e)
|
|
10758
10758
|
throw e;
|
|
10759
10759
|
}
|
|
10760
|
-
var Cr = Object.prototype.hasOwnProperty, El = Object.prototype.toString,
|
|
10760
|
+
var Cr = Object.prototype.hasOwnProperty, El = Object.prototype.toString, fo = Object.defineProperty, ho = Object.getOwnPropertyDescriptor, mo = function(t) {
|
|
10761
10761
|
return typeof Array.isArray == "function" ? Array.isArray(t) : El.call(t) === "[object Array]";
|
|
10762
|
-
},
|
|
10762
|
+
}, po = function(t) {
|
|
10763
10763
|
if (!t || El.call(t) !== "[object Object]")
|
|
10764
10764
|
return !1;
|
|
10765
10765
|
var n = Cr.call(t, "constructor"), r = t.constructor && t.constructor.prototype && Cr.call(t.constructor.prototype, "isPrototypeOf");
|
|
@@ -10769,18 +10769,18 @@ var Cr = Object.prototype.hasOwnProperty, El = Object.prototype.toString, co = O
|
|
|
10769
10769
|
for (a in t)
|
|
10770
10770
|
;
|
|
10771
10771
|
return typeof a > "u" || Cr.call(t, a);
|
|
10772
|
-
},
|
|
10773
|
-
|
|
10772
|
+
}, go = function(t, n) {
|
|
10773
|
+
fo && n.name === "__proto__" ? fo(t, n.name, {
|
|
10774
10774
|
enumerable: !0,
|
|
10775
10775
|
configurable: !0,
|
|
10776
10776
|
value: n.newValue,
|
|
10777
10777
|
writable: !0
|
|
10778
10778
|
}) : t[n.name] = n.newValue;
|
|
10779
|
-
},
|
|
10779
|
+
}, bo = function(t, n) {
|
|
10780
10780
|
if (n === "__proto__")
|
|
10781
10781
|
if (Cr.call(t, n)) {
|
|
10782
|
-
if (
|
|
10783
|
-
return
|
|
10782
|
+
if (ho)
|
|
10783
|
+
return ho(t, n).value;
|
|
10784
10784
|
} else return;
|
|
10785
10785
|
return t[n];
|
|
10786
10786
|
}, Op = function e() {
|
|
@@ -10788,11 +10788,11 @@ var Cr = Object.prototype.hasOwnProperty, El = Object.prototype.toString, co = O
|
|
|
10788
10788
|
for (typeof s == "boolean" && (p = s, s = arguments[1] || {}, d = 2), (s == null || typeof s != "object" && typeof s != "function") && (s = {}); d < g; ++d)
|
|
10789
10789
|
if (t = arguments[d], t != null)
|
|
10790
10790
|
for (n in t)
|
|
10791
|
-
r =
|
|
10791
|
+
r = bo(s, n), a = bo(t, n), s !== a && (p && a && (po(a) || (i = mo(a))) ? (i ? (i = !1, o = r && mo(r) ? r : []) : o = r && po(r) ? r : {}, go(s, { name: n, newValue: e(p, o, a) })) : typeof a < "u" && go(s, { name: n, newValue: a }));
|
|
10792
10792
|
return s;
|
|
10793
10793
|
};
|
|
10794
10794
|
const Sa = /* @__PURE__ */ Jo(Op);
|
|
10795
|
-
function
|
|
10795
|
+
function oi(e) {
|
|
10796
10796
|
if (typeof e != "object" || e === null)
|
|
10797
10797
|
return !1;
|
|
10798
10798
|
const t = Object.getPrototypeOf(e);
|
|
@@ -10967,14 +10967,14 @@ const Fp = { cwd: Hp };
|
|
|
10967
10967
|
function Hp() {
|
|
10968
10968
|
return "/";
|
|
10969
10969
|
}
|
|
10970
|
-
function
|
|
10970
|
+
function ui(e) {
|
|
10971
10971
|
return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
|
|
10972
10972
|
e.auth === void 0);
|
|
10973
10973
|
}
|
|
10974
10974
|
function Up(e) {
|
|
10975
10975
|
if (typeof e == "string")
|
|
10976
10976
|
e = new URL(e);
|
|
10977
|
-
else if (!
|
|
10977
|
+
else if (!ui(e)) {
|
|
10978
10978
|
const t = new TypeError(
|
|
10979
10979
|
'The "path" argument must be of type string or an instance of URL. Received `' + e + "`"
|
|
10980
10980
|
);
|
|
@@ -11043,7 +11043,7 @@ class Tl {
|
|
|
11043
11043
|
*/
|
|
11044
11044
|
constructor(t) {
|
|
11045
11045
|
let n;
|
|
11046
|
-
t ?
|
|
11046
|
+
t ? ui(t) ? n = { path: t } : typeof t == "string" || jp(t) ? n = { value: t } : n = t : n = {}, this.cwd = Fp.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
|
|
11047
11047
|
let r = -1;
|
|
11048
11048
|
for (; ++r < Ca.length; ) {
|
|
11049
11049
|
const i = Ca[r];
|
|
@@ -11097,7 +11097,7 @@ class Tl {
|
|
|
11097
11097
|
* Nothing.
|
|
11098
11098
|
*/
|
|
11099
11099
|
set dirname(t) {
|
|
11100
|
-
|
|
11100
|
+
Eo(this.basename, "dirname"), this.path = Tt.join(t || "", this.basename);
|
|
11101
11101
|
}
|
|
11102
11102
|
/**
|
|
11103
11103
|
* Get the extname (including dot) (example: `'.js'`).
|
|
@@ -11121,7 +11121,7 @@ class Tl {
|
|
|
11121
11121
|
* Nothing.
|
|
11122
11122
|
*/
|
|
11123
11123
|
set extname(t) {
|
|
11124
|
-
if (Ia(t, "extname"),
|
|
11124
|
+
if (Ia(t, "extname"), Eo(this.dirname, "extname"), t) {
|
|
11125
11125
|
if (t.codePointAt(0) !== 46)
|
|
11126
11126
|
throw new Error("`extname` must start with `.`");
|
|
11127
11127
|
if (t.includes(".", 1))
|
|
@@ -11151,7 +11151,7 @@ class Tl {
|
|
|
11151
11151
|
* Nothing.
|
|
11152
11152
|
*/
|
|
11153
11153
|
set path(t) {
|
|
11154
|
-
|
|
11154
|
+
ui(t) && (t = Up(t)), Na(t, "path"), this.path !== t && this.history.push(t);
|
|
11155
11155
|
}
|
|
11156
11156
|
/**
|
|
11157
11157
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -11398,7 +11398,7 @@ function Na(e, t) {
|
|
|
11398
11398
|
if (!e)
|
|
11399
11399
|
throw new Error("`" + t + "` cannot be empty");
|
|
11400
11400
|
}
|
|
11401
|
-
function
|
|
11401
|
+
function Eo(e, t) {
|
|
11402
11402
|
if (!e)
|
|
11403
11403
|
throw new Error("Setting `" + t + "` requires `path` to be set too");
|
|
11404
11404
|
}
|
|
@@ -11433,7 +11433,7 @@ const zp = (
|
|
|
11433
11433
|
return i;
|
|
11434
11434
|
}
|
|
11435
11435
|
), Vp = {}.hasOwnProperty;
|
|
11436
|
-
class
|
|
11436
|
+
class Ui extends zp {
|
|
11437
11437
|
/**
|
|
11438
11438
|
* Create a processor.
|
|
11439
11439
|
*/
|
|
@@ -11454,7 +11454,7 @@ class Hi extends zp {
|
|
|
11454
11454
|
copy() {
|
|
11455
11455
|
const t = (
|
|
11456
11456
|
/** @type {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>} */
|
|
11457
|
-
new
|
|
11457
|
+
new Ui()
|
|
11458
11458
|
);
|
|
11459
11459
|
let n = -1;
|
|
11460
11460
|
for (; ++n < this.attachers.length; ) {
|
|
@@ -11682,9 +11682,9 @@ class Hi extends zp {
|
|
|
11682
11682
|
*/
|
|
11683
11683
|
processSync(t) {
|
|
11684
11684
|
let n = !1, r;
|
|
11685
|
-
return this.freeze(), Oa("processSync", this.parser || this.Parser), Ra("processSync", this.compiler || this.Compiler), this.process(t, a),
|
|
11685
|
+
return this.freeze(), Oa("processSync", this.parser || this.Parser), Ra("processSync", this.compiler || this.Compiler), this.process(t, a), yo("processSync", "process", n), r;
|
|
11686
11686
|
function a(i, o) {
|
|
11687
|
-
n = !0,
|
|
11687
|
+
n = !0, co(i), r = o;
|
|
11688
11688
|
}
|
|
11689
11689
|
}
|
|
11690
11690
|
/**
|
|
@@ -11726,7 +11726,7 @@ class Hi extends zp {
|
|
|
11726
11726
|
* transformed tree.
|
|
11727
11727
|
*/
|
|
11728
11728
|
run(t, n, r) {
|
|
11729
|
-
|
|
11729
|
+
To(t), this.freeze();
|
|
11730
11730
|
const a = this.transformers;
|
|
11731
11731
|
return !r && typeof n == "function" && (r = n, n = void 0), r ? i(void 0, r) : new Promise(i);
|
|
11732
11732
|
function i(o, s) {
|
|
@@ -11760,9 +11760,9 @@ class Hi extends zp {
|
|
|
11760
11760
|
*/
|
|
11761
11761
|
runSync(t, n) {
|
|
11762
11762
|
let r = !1, a;
|
|
11763
|
-
return this.run(t, n, i),
|
|
11763
|
+
return this.run(t, n, i), yo("runSync", "run", r), a;
|
|
11764
11764
|
function i(o, s) {
|
|
11765
|
-
|
|
11765
|
+
co(o), a = s, r = !0;
|
|
11766
11766
|
}
|
|
11767
11767
|
}
|
|
11768
11768
|
/**
|
|
@@ -11797,7 +11797,7 @@ class Hi extends zp {
|
|
|
11797
11797
|
stringify(t, n) {
|
|
11798
11798
|
this.freeze();
|
|
11799
11799
|
const r = br(n), a = this.compiler || this.Compiler;
|
|
11800
|
-
return Ra("stringify", a),
|
|
11800
|
+
return Ra("stringify", a), To(t), a(t, r);
|
|
11801
11801
|
}
|
|
11802
11802
|
/**
|
|
11803
11803
|
* Configure the processor to use a plugin, a list of usable values, or a
|
|
@@ -11909,12 +11909,12 @@ class Hi extends zp {
|
|
|
11909
11909
|
else if (p.length > 0) {
|
|
11910
11910
|
let [l, ...h] = p;
|
|
11911
11911
|
const f = r[c][1];
|
|
11912
|
-
|
|
11912
|
+
oi(f) && oi(l) && (l = Sa(!0, f, l)), r[c] = [g, l, ...h];
|
|
11913
11913
|
}
|
|
11914
11914
|
}
|
|
11915
11915
|
}
|
|
11916
11916
|
}
|
|
11917
|
-
const Yp = new
|
|
11917
|
+
const Yp = new Ui().freeze();
|
|
11918
11918
|
function Oa(e, t) {
|
|
11919
11919
|
if (typeof t != "function")
|
|
11920
11920
|
throw new TypeError("Cannot `" + e + "` without `parser`");
|
|
@@ -11929,11 +11929,11 @@ function wa(e, t) {
|
|
|
11929
11929
|
"Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
|
|
11930
11930
|
);
|
|
11931
11931
|
}
|
|
11932
|
-
function
|
|
11933
|
-
if (!
|
|
11932
|
+
function To(e) {
|
|
11933
|
+
if (!oi(e) || typeof e.type != "string")
|
|
11934
11934
|
throw new TypeError("Expected node, got `" + e + "`");
|
|
11935
11935
|
}
|
|
11936
|
-
function
|
|
11936
|
+
function yo(e, t, n) {
|
|
11937
11937
|
if (!n)
|
|
11938
11938
|
throw new Error(
|
|
11939
11939
|
"`" + e + "` finished async. Use `" + t + "` instead"
|
|
@@ -11951,7 +11951,7 @@ function qp(e) {
|
|
|
11951
11951
|
function Wp(e) {
|
|
11952
11952
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
11953
11953
|
}
|
|
11954
|
-
const Xp = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
|
|
11954
|
+
const Xp = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", _o = [], vo = { allowDangerousHtml: !0 }, Kp = /^(https?|ircs?|mailto|xmpp)$/i, Qp = [
|
|
11955
11955
|
{ from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
|
|
11956
11956
|
{ from: "allowDangerousHtml", id: "remove-buggy-html-in-markdown-parser" },
|
|
11957
11957
|
{
|
|
@@ -11985,7 +11985,7 @@ const Xp = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
|
|
|
11985
11985
|
{ from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
|
|
11986
11986
|
];
|
|
11987
11987
|
function Zp(e) {
|
|
11988
|
-
const t = e.allowedElements, n = e.allowElement, r = e.children || "", a = e.className, i = e.components, o = e.disallowedElements, s = e.rehypePlugins ||
|
|
11988
|
+
const t = e.allowedElements, n = e.allowElement, r = e.children || "", a = e.className, i = e.components, o = e.disallowedElements, s = e.rehypePlugins || _o, d = e.remarkPlugins || _o, g = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...vo } : vo, p = e.skipHtml, u = e.unwrapDisallowed, c = e.urlTransform || Jp, l = Yp().use(Pm).use(d).use(Np, g).use(s), h = new Tl();
|
|
11989
11989
|
typeof r == "string" && (h.value = r);
|
|
11990
11990
|
for (const E of Qp)
|
|
11991
11991
|
Object.hasOwn(e, E.from) && ("" + E.from + (E.to ? "use `" + E.to + "` instead" : "remove it") + Xp + E.id, void 0);
|
|
@@ -12000,7 +12000,7 @@ function Zp(e) {
|
|
|
12000
12000
|
/** @type {Array<ElementContent>} */
|
|
12001
12001
|
T.type === "root" ? T.children : [T]
|
|
12002
12002
|
)
|
|
12003
|
-
}),
|
|
12003
|
+
}), Hi(T, m), dh(T, {
|
|
12004
12004
|
Fragment: Z.Fragment,
|
|
12005
12005
|
components: i,
|
|
12006
12006
|
ignoreInvalidStyle: !0,
|
|
@@ -12036,13 +12036,13 @@ function Jp(e) {
|
|
|
12036
12036
|
Kp.test(e.slice(0, t)) ? e : ""
|
|
12037
12037
|
);
|
|
12038
12038
|
}
|
|
12039
|
-
const
|
|
12039
|
+
const Ao = /[#.]/g;
|
|
12040
12040
|
function eg(e, t) {
|
|
12041
12041
|
const n = e || "", r = {};
|
|
12042
12042
|
let a = 0, i, o;
|
|
12043
12043
|
for (; a < n.length; ) {
|
|
12044
|
-
|
|
12045
|
-
const s =
|
|
12044
|
+
Ao.lastIndex = a;
|
|
12045
|
+
const s = Ao.exec(n), d = n.slice(a, s ? s.index : n.length);
|
|
12046
12046
|
d && (i ? i === "#" ? r.id = d : Array.isArray(r.className) ? r.className.push(d) : r.className = [d] : o = d, a += d.length), s && (i = s[0], a++);
|
|
12047
12047
|
}
|
|
12048
12048
|
return {
|
|
@@ -12053,7 +12053,7 @@ function eg(e, t) {
|
|
|
12053
12053
|
children: []
|
|
12054
12054
|
};
|
|
12055
12055
|
}
|
|
12056
|
-
const tg = /* @__PURE__ */ new Set(["button", "menu", "reset", "submit"]),
|
|
12056
|
+
const tg = /* @__PURE__ */ new Set(["button", "menu", "reset", "submit"]), li = {}.hasOwnProperty;
|
|
12057
12057
|
function yl(e, t, n) {
|
|
12058
12058
|
const r = n && ig(n);
|
|
12059
12059
|
function a(i, o, ...s) {
|
|
@@ -12065,14 +12065,14 @@ function yl(e, t, n) {
|
|
|
12065
12065
|
o
|
|
12066
12066
|
);
|
|
12067
12067
|
s.unshift(p);
|
|
12068
|
-
} else if (g = eg(i, t), g.tagName = g.tagName.toLowerCase(), r &&
|
|
12068
|
+
} else if (g = eg(i, t), g.tagName = g.tagName.toLowerCase(), r && li.call(r, g.tagName) && (g.tagName = r[g.tagName]), ng(o, g.tagName)) {
|
|
12069
12069
|
let p;
|
|
12070
12070
|
for (p in o)
|
|
12071
|
-
|
|
12071
|
+
li.call(o, p) && rg(e, g.properties, p, o[p]);
|
|
12072
12072
|
} else
|
|
12073
12073
|
s.unshift(o);
|
|
12074
12074
|
for (; ++d < s.length; )
|
|
12075
|
-
|
|
12075
|
+
ci(g.children, s[d]);
|
|
12076
12076
|
return g.type === "element" && g.tagName === "template" && (g.content = { type: "root", children: g.children }, g.children = []), g;
|
|
12077
12077
|
}
|
|
12078
12078
|
return a;
|
|
@@ -12087,13 +12087,13 @@ function rg(e, t, n, r) {
|
|
|
12087
12087
|
if (typeof r == "number") {
|
|
12088
12088
|
if (Number.isNaN(r)) return;
|
|
12089
12089
|
o = r;
|
|
12090
|
-
} else typeof r == "boolean" ? o = r : typeof r == "string" ? a.spaceSeparated ? o =
|
|
12090
|
+
} else typeof r == "boolean" ? o = r : typeof r == "string" ? a.spaceSeparated ? o = Ds(r) : a.commaSeparated ? o = Rs(r) : a.commaOrSpaceSeparated ? o = Ds(Rs(r).join(" ")) : o = xo(a, a.property, r) : Array.isArray(r) ? o = r.concat() : o = a.property === "style" ? ag(r) : String(r);
|
|
12091
12091
|
if (Array.isArray(o)) {
|
|
12092
12092
|
const s = [];
|
|
12093
12093
|
for (; ++i < o.length; ) {
|
|
12094
12094
|
const d = (
|
|
12095
12095
|
/** @type {number | string} */
|
|
12096
|
-
|
|
12096
|
+
xo(a, a.property, o[i])
|
|
12097
12097
|
);
|
|
12098
12098
|
s[i] = d;
|
|
12099
12099
|
}
|
|
@@ -12109,19 +12109,19 @@ function rg(e, t, n, r) {
|
|
|
12109
12109
|
t[a.property] = o;
|
|
12110
12110
|
}
|
|
12111
12111
|
}
|
|
12112
|
-
function
|
|
12112
|
+
function ci(e, t) {
|
|
12113
12113
|
let n = -1;
|
|
12114
12114
|
if (t != null) if (typeof t == "string" || typeof t == "number")
|
|
12115
12115
|
e.push({ type: "text", value: String(t) });
|
|
12116
12116
|
else if (Array.isArray(t))
|
|
12117
12117
|
for (; ++n < t.length; )
|
|
12118
|
-
|
|
12118
|
+
ci(e, t[n]);
|
|
12119
12119
|
else if (typeof t == "object" && "type" in t)
|
|
12120
|
-
t.type === "root" ?
|
|
12120
|
+
t.type === "root" ? ci(e, t.children) : e.push(t);
|
|
12121
12121
|
else
|
|
12122
12122
|
throw new Error("Expected node, nodes, or string, got `" + t + "`");
|
|
12123
12123
|
}
|
|
12124
|
-
function
|
|
12124
|
+
function xo(e, t, n) {
|
|
12125
12125
|
if (typeof n == "string") {
|
|
12126
12126
|
if (e.number && n && !Number.isNaN(Number(n)))
|
|
12127
12127
|
return Number(n);
|
|
@@ -12134,7 +12134,7 @@ function ag(e) {
|
|
|
12134
12134
|
const t = [];
|
|
12135
12135
|
let n;
|
|
12136
12136
|
for (n in e)
|
|
12137
|
-
|
|
12137
|
+
li.call(e, n) && t.push([n, e[n]].join(": "));
|
|
12138
12138
|
return t.join("; ");
|
|
12139
12139
|
}
|
|
12140
12140
|
function ig(e) {
|
|
@@ -12194,7 +12194,7 @@ function lg(e) {
|
|
|
12194
12194
|
for (; ; ) {
|
|
12195
12195
|
let s = n[o];
|
|
12196
12196
|
if (s === void 0) {
|
|
12197
|
-
const d =
|
|
12197
|
+
const d = So(t, n[o - 1]);
|
|
12198
12198
|
s = d === -1 ? t.length + 1 : d + 1, n[o] = s;
|
|
12199
12199
|
}
|
|
12200
12200
|
if (s > i)
|
|
@@ -12210,7 +12210,7 @@ function lg(e) {
|
|
|
12210
12210
|
function a(i) {
|
|
12211
12211
|
if (i && typeof i.line == "number" && typeof i.column == "number" && !Number.isNaN(i.line) && !Number.isNaN(i.column)) {
|
|
12212
12212
|
for (; n.length < i.line; ) {
|
|
12213
|
-
const s = n[n.length - 1], d =
|
|
12213
|
+
const s = n[n.length - 1], d = So(t, s), g = d === -1 ? t.length + 1 : d + 1;
|
|
12214
12214
|
if (s === g) break;
|
|
12215
12215
|
n.push(g);
|
|
12216
12216
|
}
|
|
@@ -12219,7 +12219,7 @@ function lg(e) {
|
|
|
12219
12219
|
}
|
|
12220
12220
|
}
|
|
12221
12221
|
}
|
|
12222
|
-
function
|
|
12222
|
+
function So(e, t) {
|
|
12223
12223
|
const n = e.indexOf("\r", t), r = e.indexOf(`
|
|
12224
12224
|
`, t);
|
|
12225
12225
|
return r === -1 ? n : n === -1 || n + 1 === r ? r : n < r ? n : r;
|
|
@@ -12234,7 +12234,7 @@ const Zt = {
|
|
|
12234
12234
|
}, _l = {}.hasOwnProperty, cg = Object.prototype;
|
|
12235
12235
|
function fg(e, t) {
|
|
12236
12236
|
const n = t || {};
|
|
12237
|
-
return
|
|
12237
|
+
return $i(
|
|
12238
12238
|
{
|
|
12239
12239
|
file: n.file || void 0,
|
|
12240
12240
|
location: !1,
|
|
@@ -12244,7 +12244,7 @@ function fg(e, t) {
|
|
|
12244
12244
|
e
|
|
12245
12245
|
);
|
|
12246
12246
|
}
|
|
12247
|
-
function
|
|
12247
|
+
function $i(e, t) {
|
|
12248
12248
|
let n;
|
|
12249
12249
|
switch (t.nodeName) {
|
|
12250
12250
|
case "#comment": {
|
|
@@ -12298,7 +12298,7 @@ function vl(e, t) {
|
|
|
12298
12298
|
for (; ++n < t.length; ) {
|
|
12299
12299
|
const a = (
|
|
12300
12300
|
/** @type {RootContent} */
|
|
12301
|
-
|
|
12301
|
+
$i(e, t[n])
|
|
12302
12302
|
);
|
|
12303
12303
|
r.push(a);
|
|
12304
12304
|
}
|
|
@@ -12320,7 +12320,7 @@ function dg(e, t) {
|
|
|
12320
12320
|
t
|
|
12321
12321
|
), d = s.sourceCodeLocation, g = d && d.startTag && bn(d.startTag), p = d && d.endTag && bn(d.endTag), u = (
|
|
12322
12322
|
/** @type {Root} */
|
|
12323
|
-
|
|
12323
|
+
$i(e, s.content)
|
|
12324
12324
|
);
|
|
12325
12325
|
g && p && e.file && (u.position = { start: g.end, end: p.start }), o.content = u;
|
|
12326
12326
|
}
|
|
@@ -12352,29 +12352,29 @@ function hg(e, t, n) {
|
|
|
12352
12352
|
return r;
|
|
12353
12353
|
}
|
|
12354
12354
|
function bn(e) {
|
|
12355
|
-
const t =
|
|
12355
|
+
const t = Co({
|
|
12356
12356
|
line: e.startLine,
|
|
12357
12357
|
column: e.startCol,
|
|
12358
12358
|
offset: e.startOffset
|
|
12359
|
-
}), n =
|
|
12359
|
+
}), n = Co({
|
|
12360
12360
|
line: e.endLine,
|
|
12361
12361
|
column: e.endCol,
|
|
12362
12362
|
offset: e.endOffset
|
|
12363
12363
|
});
|
|
12364
12364
|
return t || n ? { start: t, end: n } : void 0;
|
|
12365
12365
|
}
|
|
12366
|
-
function
|
|
12366
|
+
function Co(e) {
|
|
12367
12367
|
return e.line && e.column ? e : void 0;
|
|
12368
12368
|
}
|
|
12369
|
-
const
|
|
12369
|
+
const Io = {}.hasOwnProperty;
|
|
12370
12370
|
function Al(e, t) {
|
|
12371
12371
|
const n = t || {};
|
|
12372
12372
|
function r(a, ...i) {
|
|
12373
12373
|
let o = r.invalid;
|
|
12374
12374
|
const s = r.handlers;
|
|
12375
|
-
if (a &&
|
|
12375
|
+
if (a && Io.call(a, e)) {
|
|
12376
12376
|
const d = String(a[e]);
|
|
12377
|
-
o =
|
|
12377
|
+
o = Io.call(s, d) ? s[d] : r.unknown;
|
|
12378
12378
|
}
|
|
12379
12379
|
if (o)
|
|
12380
12380
|
return o.call(this, a, ...i);
|
|
@@ -12393,11 +12393,11 @@ function bg(e, t) {
|
|
|
12393
12393
|
mode: (e.data || {}).quirksMode ? "quirks" : "no-quirks",
|
|
12394
12394
|
childNodes: []
|
|
12395
12395
|
};
|
|
12396
|
-
return n.childNodes =
|
|
12396
|
+
return n.childNodes = ji(e.children, n, t), In(e, n), n;
|
|
12397
12397
|
}
|
|
12398
12398
|
function Eg(e, t) {
|
|
12399
12399
|
const n = { nodeName: "#document-fragment", childNodes: [] };
|
|
12400
|
-
return n.childNodes =
|
|
12400
|
+
return n.childNodes = ji(e.children, n, t), In(e, n), n;
|
|
12401
12401
|
}
|
|
12402
12402
|
function Tg(e) {
|
|
12403
12403
|
const t = {
|
|
@@ -12451,7 +12451,7 @@ function vg(e, t) {
|
|
|
12451
12451
|
childNodes: [],
|
|
12452
12452
|
parentNode: null
|
|
12453
12453
|
};
|
|
12454
|
-
return s.childNodes =
|
|
12454
|
+
return s.childNodes = ji(e.children, s, r), In(e, s), e.tagName === "template" && e.content && (s.content = Eg(e.content, r)), s;
|
|
12455
12455
|
}
|
|
12456
12456
|
function Ag(e, t, n) {
|
|
12457
12457
|
const r = Yr(e, t);
|
|
@@ -12468,7 +12468,7 @@ function Ag(e, t, n) {
|
|
|
12468
12468
|
}
|
|
12469
12469
|
return a;
|
|
12470
12470
|
}
|
|
12471
|
-
function
|
|
12471
|
+
function ji(e, t, n) {
|
|
12472
12472
|
let r = -1;
|
|
12473
12473
|
const a = [];
|
|
12474
12474
|
if (e)
|
|
@@ -12728,14 +12728,14 @@ var Ut;
|
|
|
12728
12728
|
(function(e) {
|
|
12729
12729
|
e[e.VALUE_LENGTH = 49152] = "VALUE_LENGTH", e[e.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", e[e.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
12730
12730
|
})(Ut || (Ut = {}));
|
|
12731
|
-
function
|
|
12731
|
+
function fi(e) {
|
|
12732
12732
|
return e >= He.ZERO && e <= He.NINE;
|
|
12733
12733
|
}
|
|
12734
12734
|
function Dg(e) {
|
|
12735
12735
|
return e >= He.UPPER_A && e <= He.UPPER_F || e >= He.LOWER_A && e <= He.LOWER_F;
|
|
12736
12736
|
}
|
|
12737
12737
|
function Mg(e) {
|
|
12738
|
-
return e >= He.UPPER_A && e <= He.UPPER_Z || e >= He.LOWER_A && e <= He.LOWER_Z ||
|
|
12738
|
+
return e >= He.UPPER_A && e <= He.UPPER_Z || e >= He.LOWER_A && e <= He.LOWER_Z || fi(e);
|
|
12739
12739
|
}
|
|
12740
12740
|
function Bg(e) {
|
|
12741
12741
|
return e === He.EQUALS || Mg(e);
|
|
@@ -12812,7 +12812,7 @@ class Rl {
|
|
|
12812
12812
|
const r = n;
|
|
12813
12813
|
for (; n < t.length; ) {
|
|
12814
12814
|
const a = t.charCodeAt(n);
|
|
12815
|
-
if (
|
|
12815
|
+
if (fi(a) || Dg(a))
|
|
12816
12816
|
n += 1;
|
|
12817
12817
|
else
|
|
12818
12818
|
return this.addToNumericResult(t, r, n, 16), this.emitNumericEntity(a, 3);
|
|
@@ -12832,7 +12832,7 @@ class Rl {
|
|
|
12832
12832
|
const r = n;
|
|
12833
12833
|
for (; n < t.length; ) {
|
|
12834
12834
|
const a = t.charCodeAt(n);
|
|
12835
|
-
if (
|
|
12835
|
+
if (fi(a))
|
|
12836
12836
|
n += 1;
|
|
12837
12837
|
else
|
|
12838
12838
|
return this.addToNumericResult(t, r, n, 10), this.emitNumericEntity(a, 2);
|
|
@@ -13217,7 +13217,7 @@ const V = b, Ug = {
|
|
|
13217
13217
|
[z.XLINK]: /* @__PURE__ */ new Set(),
|
|
13218
13218
|
[z.XML]: /* @__PURE__ */ new Set(),
|
|
13219
13219
|
[z.XMLNS]: /* @__PURE__ */ new Set()
|
|
13220
|
-
},
|
|
13220
|
+
}, di = /* @__PURE__ */ new Set([V.H1, V.H2, V.H3, V.H4, V.H5, V.H6]);
|
|
13221
13221
|
F.STYLE, F.SCRIPT, F.XMP, F.IFRAME, F.NOEMBED, F.NOFRAMES, F.PLAINTEXT;
|
|
13222
13222
|
var w;
|
|
13223
13223
|
(function(e) {
|
|
@@ -13243,7 +13243,7 @@ function jg(e) {
|
|
|
13243
13243
|
function Bt(e) {
|
|
13244
13244
|
return jg(e) || zn(e);
|
|
13245
13245
|
}
|
|
13246
|
-
function
|
|
13246
|
+
function No(e) {
|
|
13247
13247
|
return Bt(e) || $g(e);
|
|
13248
13248
|
}
|
|
13249
13249
|
function Er(e) {
|
|
@@ -13252,7 +13252,7 @@ function Er(e) {
|
|
|
13252
13252
|
function Ll(e) {
|
|
13253
13253
|
return e === R.SPACE || e === R.LINE_FEED || e === R.TABULATION || e === R.FORM_FEED;
|
|
13254
13254
|
}
|
|
13255
|
-
function
|
|
13255
|
+
function Oo(e) {
|
|
13256
13256
|
return Ll(e) || e === R.SOLIDUS || e === R.GREATER_THAN_SIGN;
|
|
13257
13257
|
}
|
|
13258
13258
|
function zg(e) {
|
|
@@ -14135,7 +14135,7 @@ class Vg {
|
|
|
14135
14135
|
// Script data double escape start state
|
|
14136
14136
|
//------------------------------------------------------------------
|
|
14137
14137
|
_stateScriptDataDoubleEscapeStart(t) {
|
|
14138
|
-
if (this.preprocessor.startsWith(Qe.SCRIPT, !1) &&
|
|
14138
|
+
if (this.preprocessor.startsWith(Qe.SCRIPT, !1) && Oo(this.preprocessor.peek(Qe.SCRIPT.length))) {
|
|
14139
14139
|
this._emitCodePoint(t);
|
|
14140
14140
|
for (let n = 0; n < Qe.SCRIPT.length; n++)
|
|
14141
14141
|
this._emitCodePoint(this._consume());
|
|
@@ -14226,7 +14226,7 @@ class Vg {
|
|
|
14226
14226
|
// Script data double escape end state
|
|
14227
14227
|
//------------------------------------------------------------------
|
|
14228
14228
|
_stateScriptDataDoubleEscapeEnd(t) {
|
|
14229
|
-
if (this.preprocessor.startsWith(Qe.SCRIPT, !1) &&
|
|
14229
|
+
if (this.preprocessor.startsWith(Qe.SCRIPT, !1) && Oo(this.preprocessor.peek(Qe.SCRIPT.length))) {
|
|
14230
14230
|
this._emitCodePoint(t);
|
|
14231
14231
|
for (let n = 0; n < Qe.SCRIPT.length; n++)
|
|
14232
14232
|
this._emitCodePoint(this._consume());
|
|
@@ -15140,15 +15140,15 @@ class Vg {
|
|
|
15140
15140
|
this.active = !1, this.preprocessor.pos = this.preprocessor.html.length - 1, this.consumedAfterSnapshot = 0, this.preprocessor.endOfChunkHit = !0;
|
|
15141
15141
|
return;
|
|
15142
15142
|
}
|
|
15143
|
-
t === 0 ? (this.preprocessor.pos = this.entityStartPos, this._flushCodePointConsumedAsCharacterReference(R.AMPERSAND), this.state = !this._isCharacterReferenceInAttribute() &&
|
|
15143
|
+
t === 0 ? (this.preprocessor.pos = this.entityStartPos, this._flushCodePointConsumedAsCharacterReference(R.AMPERSAND), this.state = !this._isCharacterReferenceInAttribute() && No(this.preprocessor.peek(1)) ? w.AMBIGUOUS_AMPERSAND : this.returnState) : this.state = this.returnState;
|
|
15144
15144
|
}
|
|
15145
15145
|
// Ambiguos ampersand state
|
|
15146
15146
|
//------------------------------------------------------------------
|
|
15147
15147
|
_stateAmbiguousAmpersand(t) {
|
|
15148
|
-
|
|
15148
|
+
No(t) ? this._flushCodePointConsumedAsCharacterReference(t) : (t === R.SEMICOLON && this._err(H.unknownNamedCharacterReference), this.state = this.returnState, this._callState(t));
|
|
15149
15149
|
}
|
|
15150
15150
|
}
|
|
15151
|
-
const Pl = /* @__PURE__ */ new Set([b.DD, b.DT, b.LI, b.OPTGROUP, b.OPTION, b.P, b.RB, b.RP, b.RT, b.RTC]),
|
|
15151
|
+
const Pl = /* @__PURE__ */ new Set([b.DD, b.DT, b.LI, b.OPTGROUP, b.OPTION, b.P, b.RB, b.RP, b.RT, b.RTC]), Ro = /* @__PURE__ */ new Set([
|
|
15152
15152
|
...Pl,
|
|
15153
15153
|
b.CAPTION,
|
|
15154
15154
|
b.COLGROUP,
|
|
@@ -15168,7 +15168,7 @@ const Pl = /* @__PURE__ */ new Set([b.DD, b.DT, b.LI, b.OPTGROUP, b.OPTION, b.P,
|
|
|
15168
15168
|
b.TD,
|
|
15169
15169
|
b.TEMPLATE,
|
|
15170
15170
|
b.TH
|
|
15171
|
-
]), Yg = /* @__PURE__ */ new Set([...Pr, b.OL, b.UL]), Gg = /* @__PURE__ */ new Set([...Pr, b.BUTTON]),
|
|
15171
|
+
]), Yg = /* @__PURE__ */ new Set([...Pr, b.OL, b.UL]), Gg = /* @__PURE__ */ new Set([...Pr, b.BUTTON]), wo = /* @__PURE__ */ new Set([b.ANNOTATION_XML, b.MI, b.MN, b.MO, b.MS, b.MTEXT]), Lo = /* @__PURE__ */ new Set([b.DESC, b.FOREIGN_OBJECT, b.TITLE]), qg = /* @__PURE__ */ new Set([b.TR, b.TEMPLATE, b.HTML]), Wg = /* @__PURE__ */ new Set([b.TBODY, b.TFOOT, b.THEAD, b.TEMPLATE, b.HTML]), Xg = /* @__PURE__ */ new Set([b.TABLE, b.TEMPLATE, b.HTML]), Kg = /* @__PURE__ */ new Set([b.TD, b.TH]);
|
|
15172
15172
|
class Qg {
|
|
15173
15173
|
get currentTmplContentOrNode() {
|
|
15174
15174
|
return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current;
|
|
@@ -15225,7 +15225,7 @@ class Qg {
|
|
|
15225
15225
|
this.shortenToLength(r < 0 ? 0 : r);
|
|
15226
15226
|
}
|
|
15227
15227
|
popUntilNumberedHeaderPopped() {
|
|
15228
|
-
this.popUntilPopped(
|
|
15228
|
+
this.popUntilPopped(di, z.HTML);
|
|
15229
15229
|
}
|
|
15230
15230
|
popUntilTableCellPopped() {
|
|
15231
15231
|
this.popUntilPopped(Kg, z.HTML);
|
|
@@ -15283,12 +15283,12 @@ class Qg {
|
|
|
15283
15283
|
break;
|
|
15284
15284
|
}
|
|
15285
15285
|
case z.SVG: {
|
|
15286
|
-
if (
|
|
15286
|
+
if (Lo.has(a))
|
|
15287
15287
|
return !1;
|
|
15288
15288
|
break;
|
|
15289
15289
|
}
|
|
15290
15290
|
case z.MATHML: {
|
|
15291
|
-
if (
|
|
15291
|
+
if (wo.has(a))
|
|
15292
15292
|
return !1;
|
|
15293
15293
|
break;
|
|
15294
15294
|
}
|
|
@@ -15310,19 +15310,19 @@ class Qg {
|
|
|
15310
15310
|
const n = this.tagIDs[t];
|
|
15311
15311
|
switch (this.treeAdapter.getNamespaceURI(this.items[t])) {
|
|
15312
15312
|
case z.HTML: {
|
|
15313
|
-
if (
|
|
15313
|
+
if (di.has(n))
|
|
15314
15314
|
return !0;
|
|
15315
15315
|
if (Pr.has(n))
|
|
15316
15316
|
return !1;
|
|
15317
15317
|
break;
|
|
15318
15318
|
}
|
|
15319
15319
|
case z.SVG: {
|
|
15320
|
-
if (
|
|
15320
|
+
if (Lo.has(n))
|
|
15321
15321
|
return !1;
|
|
15322
15322
|
break;
|
|
15323
15323
|
}
|
|
15324
15324
|
case z.MATHML: {
|
|
15325
|
-
if (
|
|
15325
|
+
if (wo.has(n))
|
|
15326
15326
|
return !1;
|
|
15327
15327
|
break;
|
|
15328
15328
|
}
|
|
@@ -15376,11 +15376,11 @@ class Qg {
|
|
|
15376
15376
|
this.pop();
|
|
15377
15377
|
}
|
|
15378
15378
|
generateImpliedEndTagsThoroughly() {
|
|
15379
|
-
for (;
|
|
15379
|
+
for (; Ro.has(this.currentTagId); )
|
|
15380
15380
|
this.pop();
|
|
15381
15381
|
}
|
|
15382
15382
|
generateImpliedEndTagsWithExclusion(t) {
|
|
15383
|
-
for (; this.currentTagId !== t &&
|
|
15383
|
+
for (; this.currentTagId !== t && Ro.has(this.currentTagId); )
|
|
15384
15384
|
this.pop();
|
|
15385
15385
|
}
|
|
15386
15386
|
}
|
|
@@ -15389,7 +15389,7 @@ var At;
|
|
|
15389
15389
|
(function(e) {
|
|
15390
15390
|
e[e.Marker = 0] = "Marker", e[e.Element = 1] = "Element";
|
|
15391
15391
|
})(At || (At = {}));
|
|
15392
|
-
const
|
|
15392
|
+
const Po = { type: At.Marker };
|
|
15393
15393
|
class Zg {
|
|
15394
15394
|
constructor(t) {
|
|
15395
15395
|
this.treeAdapter = t, this.entries = [], this.bookmark = null;
|
|
@@ -15426,7 +15426,7 @@ class Zg {
|
|
|
15426
15426
|
}
|
|
15427
15427
|
//Mutations
|
|
15428
15428
|
insertMarker() {
|
|
15429
|
-
this.entries.unshift(
|
|
15429
|
+
this.entries.unshift(Po);
|
|
15430
15430
|
}
|
|
15431
15431
|
pushElement(t, n) {
|
|
15432
15432
|
this._ensureNoahArkCondition(t), this.entries.unshift({
|
|
@@ -15453,7 +15453,7 @@ class Zg {
|
|
|
15453
15453
|
* @see https://html.spec.whatwg.org/multipage/parsing.html#clear-the-list-of-active-formatting-elements-up-to-the-last-marker
|
|
15454
15454
|
*/
|
|
15455
15455
|
clearToLastMarker() {
|
|
15456
|
-
const t = this.entries.indexOf(
|
|
15456
|
+
const t = this.entries.indexOf(Po);
|
|
15457
15457
|
t >= 0 ? this.entries.splice(0, t + 1) : this.entries.length = 0;
|
|
15458
15458
|
}
|
|
15459
15459
|
//Search
|
|
@@ -15691,7 +15691,7 @@ const Ft = {
|
|
|
15691
15691
|
"-//w3c//dtd html 4.01 frameset//",
|
|
15692
15692
|
"-//w3c//dtd html 4.01 transitional//"
|
|
15693
15693
|
];
|
|
15694
|
-
function
|
|
15694
|
+
function ko(e, t) {
|
|
15695
15695
|
return t.some((n) => e.startsWith(n));
|
|
15696
15696
|
}
|
|
15697
15697
|
function ab(e) {
|
|
@@ -15708,14 +15708,14 @@ function ib(e) {
|
|
|
15708
15708
|
if (n = n.toLowerCase(), nb.has(n))
|
|
15709
15709
|
return it.QUIRKS;
|
|
15710
15710
|
let r = t === null ? tb : Dl;
|
|
15711
|
-
if (
|
|
15711
|
+
if (ko(n, r))
|
|
15712
15712
|
return it.QUIRKS;
|
|
15713
|
-
if (r = t === null ? Ml : rb,
|
|
15713
|
+
if (r = t === null ? Ml : rb, ko(n, r))
|
|
15714
15714
|
return it.LIMITED_QUIRKS;
|
|
15715
15715
|
}
|
|
15716
15716
|
return it.NO_QUIRKS;
|
|
15717
15717
|
}
|
|
15718
|
-
const
|
|
15718
|
+
const Do = {
|
|
15719
15719
|
TEXT_HTML: "text/html",
|
|
15720
15720
|
APPLICATION_XML: "application/xhtml+xml"
|
|
15721
15721
|
}, sb = "definitionurl", ob = "definitionURL", ub = new Map([
|
|
@@ -15889,7 +15889,7 @@ function Fl(e) {
|
|
|
15889
15889
|
n != null && (e.attrs[t].name = n);
|
|
15890
15890
|
}
|
|
15891
15891
|
}
|
|
15892
|
-
function
|
|
15892
|
+
function zi(e) {
|
|
15893
15893
|
for (let t = 0; t < e.attrs.length; t++) {
|
|
15894
15894
|
const n = lb.get(e.attrs[t].name);
|
|
15895
15895
|
n && (e.attrs[t].prefix = n.prefix, e.attrs[t].name = n.name, e.attrs[t].namespace = n.namespace);
|
|
@@ -15907,7 +15907,7 @@ function pb(e, t, n) {
|
|
|
15907
15907
|
for (let r = 0; r < n.length; r++)
|
|
15908
15908
|
if (n[r].name === en.ENCODING) {
|
|
15909
15909
|
const a = n[r].value.toLowerCase();
|
|
15910
|
-
return a ===
|
|
15910
|
+
return a === Do.TEXT_HTML || a === Do.APPLICATION_XML;
|
|
15911
15911
|
}
|
|
15912
15912
|
}
|
|
15913
15913
|
return t === z.SVG && (e === b.FOREIGN_OBJECT || e === b.DESC || e === b.TITLE);
|
|
@@ -15927,16 +15927,16 @@ const yb = {
|
|
|
15927
15927
|
endLine: -1,
|
|
15928
15928
|
endCol: -1,
|
|
15929
15929
|
endOffset: -1
|
|
15930
|
-
}, Hl = /* @__PURE__ */ new Set([b.TABLE, b.TBODY, b.TFOOT, b.THEAD, b.TR]),
|
|
15930
|
+
}, Hl = /* @__PURE__ */ new Set([b.TABLE, b.TBODY, b.TFOOT, b.THEAD, b.TR]), Mo = {
|
|
15931
15931
|
scriptingEnabled: !0,
|
|
15932
15932
|
sourceCodeLocationInfo: !1,
|
|
15933
15933
|
treeAdapter: Ft,
|
|
15934
15934
|
onParseError: null
|
|
15935
15935
|
};
|
|
15936
|
-
class
|
|
15936
|
+
class Bo {
|
|
15937
15937
|
constructor(t, n, r = null, a = null) {
|
|
15938
15938
|
this.fragmentContext = r, this.scriptHandler = a, this.currentToken = null, this.stopped = !1, this.insertionMode = P.INITIAL, this.originalInsertionMode = P.INITIAL, this.headElement = null, this.formElement = null, this.currentNotInHTML = !1, this.tmplInsertionModeStack = [], this.pendingCharacterTokens = [], this.hasNonWhitespacePendingCharacterToken = !1, this.framesetOk = !0, this.skipNextNewLine = !1, this.fosterParentingEnabled = !1, this.options = {
|
|
15939
|
-
...
|
|
15939
|
+
...Mo,
|
|
15940
15940
|
...t
|
|
15941
15941
|
}, this.treeAdapter = this.options.treeAdapter, this.onParseError = this.options.onParseError, this.onParseError && (this.options.sourceCodeLocationInfo = !0), this.document = n ?? this.treeAdapter.createDocument(), this.tokenizer = new Vg(this.options, this), this.activeFormattingElements = new Zg(this.treeAdapter), this.fragmentContextID = r ? Nn(this.treeAdapter.getTagName(r)) : b.UNKNOWN, this._setContextModes(r ?? this.document, this.fragmentContextID), this.openElements = new Qg(this.document, this.treeAdapter, this);
|
|
15942
15942
|
}
|
|
@@ -15947,7 +15947,7 @@ class Mo {
|
|
|
15947
15947
|
}
|
|
15948
15948
|
static getFragmentParser(t, n) {
|
|
15949
15949
|
const r = {
|
|
15950
|
-
...
|
|
15950
|
+
...Mo,
|
|
15951
15951
|
...n
|
|
15952
15952
|
};
|
|
15953
15953
|
t ?? (t = r.treeAdapter.createElement(F.TEMPLATE, z.HTML, []));
|
|
@@ -16457,7 +16457,7 @@ class Mo {
|
|
|
16457
16457
|
/** @internal */
|
|
16458
16458
|
onComment(t) {
|
|
16459
16459
|
if (this.skipNextNewLine = !1, this.currentNotInHTML) {
|
|
16460
|
-
|
|
16460
|
+
hi(this, t);
|
|
16461
16461
|
return;
|
|
16462
16462
|
}
|
|
16463
16463
|
switch (this.insertionMode) {
|
|
@@ -16479,7 +16479,7 @@ class Mo {
|
|
|
16479
16479
|
case P.IN_TEMPLATE:
|
|
16480
16480
|
case P.IN_FRAMESET:
|
|
16481
16481
|
case P.AFTER_FRAMESET: {
|
|
16482
|
-
|
|
16482
|
+
hi(this, t);
|
|
16483
16483
|
break;
|
|
16484
16484
|
}
|
|
16485
16485
|
case P.IN_TABLE_TEXT: {
|
|
@@ -16579,7 +16579,7 @@ class Mo {
|
|
|
16579
16579
|
break;
|
|
16580
16580
|
}
|
|
16581
16581
|
case P.IN_COLUMN_GROUP: {
|
|
16582
|
-
|
|
16582
|
+
Gi(this, t);
|
|
16583
16583
|
break;
|
|
16584
16584
|
}
|
|
16585
16585
|
case P.IN_TABLE_BODY: {
|
|
@@ -16684,7 +16684,7 @@ class Mo {
|
|
|
16684
16684
|
break;
|
|
16685
16685
|
}
|
|
16686
16686
|
case P.IN_TABLE_BODY: {
|
|
16687
|
-
|
|
16687
|
+
mi(this, t);
|
|
16688
16688
|
break;
|
|
16689
16689
|
}
|
|
16690
16690
|
case P.IN_ROW: {
|
|
@@ -16781,7 +16781,7 @@ class Mo {
|
|
|
16781
16781
|
case P.AFTER_FRAMESET:
|
|
16782
16782
|
case P.AFTER_AFTER_BODY:
|
|
16783
16783
|
case P.AFTER_AFTER_FRAMESET: {
|
|
16784
|
-
|
|
16784
|
+
Yi(this, t);
|
|
16785
16785
|
break;
|
|
16786
16786
|
}
|
|
16787
16787
|
}
|
|
@@ -16873,7 +16873,7 @@ function Cb(e, t, n) {
|
|
|
16873
16873
|
const r = e.treeAdapter.getNamespaceURI(n.element), { token: a } = n, i = e.treeAdapter.createElement(a.tagName, r, a.attrs);
|
|
16874
16874
|
e._adoptNodes(t, i), e.treeAdapter.appendChild(t, i), e.activeFormattingElements.insertElementAfterBookmark(i, a), e.activeFormattingElements.removeEntry(n), e.openElements.remove(n.element), e.openElements.insertAfter(t, i, a.tagID);
|
|
16875
16875
|
}
|
|
16876
|
-
function
|
|
16876
|
+
function Vi(e, t) {
|
|
16877
16877
|
for (let n = 0; n < Eb; n++) {
|
|
16878
16878
|
const r = _b(e, t);
|
|
16879
16879
|
if (!r)
|
|
@@ -16886,7 +16886,7 @@ function zi(e, t) {
|
|
|
16886
16886
|
e.treeAdapter.detachNode(i), o && Sb(e, o, i), Cb(e, a, r);
|
|
16887
16887
|
}
|
|
16888
16888
|
}
|
|
16889
|
-
function
|
|
16889
|
+
function hi(e, t) {
|
|
16890
16890
|
e._appendCommentNode(t, e.openElements.currentTmplContentOrNode);
|
|
16891
16891
|
}
|
|
16892
16892
|
function Ib(e, t) {
|
|
@@ -16895,7 +16895,7 @@ function Ib(e, t) {
|
|
|
16895
16895
|
function Nb(e, t) {
|
|
16896
16896
|
e._appendCommentNode(t, e.document);
|
|
16897
16897
|
}
|
|
16898
|
-
function
|
|
16898
|
+
function Yi(e, t) {
|
|
16899
16899
|
if (e.stopped = !0, t.location) {
|
|
16900
16900
|
const n = e.fragmentContext ? 0 : 2;
|
|
16901
16901
|
for (let r = e.openElements.stackTop; r >= n; r--)
|
|
@@ -17124,7 +17124,7 @@ function Kr(e, t) {
|
|
|
17124
17124
|
break;
|
|
17125
17125
|
}
|
|
17126
17126
|
case me.COMMENT: {
|
|
17127
|
-
|
|
17127
|
+
hi(e, t);
|
|
17128
17128
|
break;
|
|
17129
17129
|
}
|
|
17130
17130
|
case me.START_TAG: {
|
|
@@ -17162,7 +17162,7 @@ function jb(e, t) {
|
|
|
17162
17162
|
e.openElements.hasInButtonScope(b.P) && e._closePElement(), e._insertElement(t, z.HTML);
|
|
17163
17163
|
}
|
|
17164
17164
|
function zb(e, t) {
|
|
17165
|
-
e.openElements.hasInButtonScope(b.P) && e._closePElement(),
|
|
17165
|
+
e.openElements.hasInButtonScope(b.P) && e._closePElement(), di.has(e.openElements.currentTagId) && e.openElements.pop(), e._insertElement(t, z.HTML);
|
|
17166
17166
|
}
|
|
17167
17167
|
function Vb(e, t) {
|
|
17168
17168
|
e.openElements.hasInButtonScope(b.P) && e._closePElement(), e._insertElement(t, z.HTML), e.skipNextNewLine = !0, e.framesetOk = !1;
|
|
@@ -17193,13 +17193,13 @@ function Wb(e, t) {
|
|
|
17193
17193
|
}
|
|
17194
17194
|
function Xb(e, t) {
|
|
17195
17195
|
const n = e.activeFormattingElements.getElementEntryInScopeWithTagName(F.A);
|
|
17196
|
-
n && (
|
|
17196
|
+
n && (Vi(e, t), e.openElements.remove(n.element), e.activeFormattingElements.removeEntry(n)), e._reconstructActiveFormattingElements(), e._insertElement(t, z.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
|
|
17197
17197
|
}
|
|
17198
17198
|
function Kb(e, t) {
|
|
17199
17199
|
e._reconstructActiveFormattingElements(), e._insertElement(t, z.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
|
|
17200
17200
|
}
|
|
17201
17201
|
function Qb(e, t) {
|
|
17202
|
-
e._reconstructActiveFormattingElements(), e.openElements.hasInScope(b.NOBR) && (
|
|
17202
|
+
e._reconstructActiveFormattingElements(), e.openElements.hasInScope(b.NOBR) && (Vi(e, t), e._reconstructActiveFormattingElements()), e._insertElement(t, z.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
|
|
17203
17203
|
}
|
|
17204
17204
|
function Zb(e, t) {
|
|
17205
17205
|
e._reconstructActiveFormattingElements(), e._insertElement(t, z.HTML), e.activeFormattingElements.insertMarker(), e.framesetOk = !1;
|
|
@@ -17235,7 +17235,7 @@ function i1(e, t) {
|
|
|
17235
17235
|
function s1(e, t) {
|
|
17236
17236
|
e.framesetOk = !1, e._switchToTextParsing(t, Pe.RAWTEXT);
|
|
17237
17237
|
}
|
|
17238
|
-
function
|
|
17238
|
+
function Fo(e, t) {
|
|
17239
17239
|
e._switchToTextParsing(t, Pe.RAWTEXT);
|
|
17240
17240
|
}
|
|
17241
17241
|
function o1(e, t) {
|
|
@@ -17251,12 +17251,12 @@ function c1(e, t) {
|
|
|
17251
17251
|
e.openElements.hasInScope(b.RUBY) && e.openElements.generateImpliedEndTagsWithExclusion(b.RTC), e._insertElement(t, z.HTML);
|
|
17252
17252
|
}
|
|
17253
17253
|
function f1(e, t) {
|
|
17254
|
-
e._reconstructActiveFormattingElements(), Bl(t),
|
|
17254
|
+
e._reconstructActiveFormattingElements(), Bl(t), zi(t), t.selfClosing ? e._appendElement(t, z.MATHML) : e._insertElement(t, z.MATHML), t.ackSelfClosing = !0;
|
|
17255
17255
|
}
|
|
17256
17256
|
function d1(e, t) {
|
|
17257
|
-
e._reconstructActiveFormattingElements(), Fl(t),
|
|
17257
|
+
e._reconstructActiveFormattingElements(), Fl(t), zi(t), t.selfClosing ? e._appendElement(t, z.SVG) : e._insertElement(t, z.SVG), t.ackSelfClosing = !0;
|
|
17258
17258
|
}
|
|
17259
|
-
function
|
|
17259
|
+
function Ho(e, t) {
|
|
17260
17260
|
e._reconstructActiveFormattingElements(), e._insertElement(t, z.HTML);
|
|
17261
17261
|
}
|
|
17262
17262
|
function Ye(e, t) {
|
|
@@ -17434,7 +17434,7 @@ function Ye(e, t) {
|
|
|
17434
17434
|
}
|
|
17435
17435
|
case b.NOEMBED:
|
|
17436
17436
|
case b.NOFRAMES: {
|
|
17437
|
-
|
|
17437
|
+
Fo(e, t);
|
|
17438
17438
|
break;
|
|
17439
17439
|
}
|
|
17440
17440
|
case b.FRAMESET: {
|
|
@@ -17446,7 +17446,7 @@ function Ye(e, t) {
|
|
|
17446
17446
|
break;
|
|
17447
17447
|
}
|
|
17448
17448
|
case b.NOSCRIPT: {
|
|
17449
|
-
e.options.scriptingEnabled ?
|
|
17449
|
+
e.options.scriptingEnabled ? Fo(e, t) : Ho(e, t);
|
|
17450
17450
|
break;
|
|
17451
17451
|
}
|
|
17452
17452
|
case b.PLAINTEXT: {
|
|
@@ -17466,7 +17466,7 @@ function Ye(e, t) {
|
|
|
17466
17466
|
case b.COLGROUP:
|
|
17467
17467
|
break;
|
|
17468
17468
|
default:
|
|
17469
|
-
|
|
17469
|
+
Ho(e, t);
|
|
17470
17470
|
}
|
|
17471
17471
|
}
|
|
17472
17472
|
function h1(e, t) {
|
|
@@ -17534,7 +17534,7 @@ function Qr(e, t) {
|
|
|
17534
17534
|
case b.SMALL:
|
|
17535
17535
|
case b.STRIKE:
|
|
17536
17536
|
case b.STRONG: {
|
|
17537
|
-
|
|
17537
|
+
Vi(e, t);
|
|
17538
17538
|
break;
|
|
17539
17539
|
}
|
|
17540
17540
|
case b.P: {
|
|
@@ -17620,7 +17620,7 @@ function Qr(e, t) {
|
|
|
17620
17620
|
}
|
|
17621
17621
|
}
|
|
17622
17622
|
function Yl(e, t) {
|
|
17623
|
-
e.tmplInsertionModeStack.length > 0 ? Zl(e, t) :
|
|
17623
|
+
e.tmplInsertionModeStack.length > 0 ? Zl(e, t) : Yi(e, t);
|
|
17624
17624
|
}
|
|
17625
17625
|
function A1(e, t) {
|
|
17626
17626
|
var n;
|
|
@@ -17651,7 +17651,7 @@ function C1(e, t) {
|
|
|
17651
17651
|
e.openElements.clearBackToTableContext(), e._insertElement(t, z.HTML), e.insertionMode = P.IN_COLUMN_GROUP;
|
|
17652
17652
|
}
|
|
17653
17653
|
function I1(e, t) {
|
|
17654
|
-
e.openElements.clearBackToTableContext(), e._insertFakeElement(F.COLGROUP, b.COLGROUP), e.insertionMode = P.IN_COLUMN_GROUP,
|
|
17654
|
+
e.openElements.clearBackToTableContext(), e._insertFakeElement(F.COLGROUP, b.COLGROUP), e.insertionMode = P.IN_COLUMN_GROUP, Gi(e, t);
|
|
17655
17655
|
}
|
|
17656
17656
|
function N1(e, t) {
|
|
17657
17657
|
e.openElements.clearBackToTableContext(), e._insertElement(t, z.HTML), e.insertionMode = P.IN_TABLE_BODY;
|
|
@@ -17790,7 +17790,7 @@ function k1(e, t) {
|
|
|
17790
17790
|
Qr(e, t);
|
|
17791
17791
|
}
|
|
17792
17792
|
}
|
|
17793
|
-
function
|
|
17793
|
+
function Gi(e, t) {
|
|
17794
17794
|
switch (t.tagID) {
|
|
17795
17795
|
case b.HTML: {
|
|
17796
17796
|
Ye(e, t);
|
|
@@ -17851,7 +17851,7 @@ function Zr(e, t) {
|
|
|
17851
17851
|
xn(e, t);
|
|
17852
17852
|
}
|
|
17853
17853
|
}
|
|
17854
|
-
function
|
|
17854
|
+
function mi(e, t) {
|
|
17855
17855
|
const n = t.tagID;
|
|
17856
17856
|
switch (t.tagID) {
|
|
17857
17857
|
case b.TBODY:
|
|
@@ -17905,13 +17905,13 @@ function Xl(e, t) {
|
|
|
17905
17905
|
break;
|
|
17906
17906
|
}
|
|
17907
17907
|
case b.TABLE: {
|
|
17908
|
-
e.openElements.hasInTableScope(b.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = P.IN_TABLE_BODY,
|
|
17908
|
+
e.openElements.hasInTableScope(b.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = P.IN_TABLE_BODY, mi(e, t));
|
|
17909
17909
|
break;
|
|
17910
17910
|
}
|
|
17911
17911
|
case b.TBODY:
|
|
17912
17912
|
case b.TFOOT:
|
|
17913
17913
|
case b.THEAD: {
|
|
17914
|
-
(e.openElements.hasInTableScope(t.tagID) || e.openElements.hasInTableScope(b.TR)) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = P.IN_TABLE_BODY,
|
|
17914
|
+
(e.openElements.hasInTableScope(t.tagID) || e.openElements.hasInTableScope(b.TR)) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = P.IN_TABLE_BODY, mi(e, t));
|
|
17915
17915
|
break;
|
|
17916
17916
|
}
|
|
17917
17917
|
case b.BODY:
|
|
@@ -18040,7 +18040,7 @@ function U1(e, t) {
|
|
|
18040
18040
|
break;
|
|
18041
18041
|
}
|
|
18042
18042
|
case b.COL: {
|
|
18043
|
-
e.tmplInsertionModeStack[0] = P.IN_COLUMN_GROUP, e.insertionMode = P.IN_COLUMN_GROUP,
|
|
18043
|
+
e.tmplInsertionModeStack[0] = P.IN_COLUMN_GROUP, e.insertionMode = P.IN_COLUMN_GROUP, Gi(e, t);
|
|
18044
18044
|
break;
|
|
18045
18045
|
}
|
|
18046
18046
|
case b.TR: {
|
|
@@ -18060,7 +18060,7 @@ function $1(e, t) {
|
|
|
18060
18060
|
t.tagID === b.TEMPLATE && un(e, t);
|
|
18061
18061
|
}
|
|
18062
18062
|
function Zl(e, t) {
|
|
18063
|
-
e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(b.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode(), e.onEof(t)) :
|
|
18063
|
+
e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(b.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode(), e.onEof(t)) : Yi(e, t);
|
|
18064
18064
|
}
|
|
18065
18065
|
function j1(e, t) {
|
|
18066
18066
|
t.tagID === b.HTML ? Ye(e, t) : Dr(e, t);
|
|
@@ -18150,7 +18150,7 @@ function Q1(e, t) {
|
|
|
18150
18150
|
ec(e), e._startTagOutsideForeignContent(t);
|
|
18151
18151
|
else {
|
|
18152
18152
|
const n = e._getAdjustedCurrentElement(), r = e.treeAdapter.getNamespaceURI(n);
|
|
18153
|
-
r === z.MATHML ? Bl(t) : r === z.SVG && (hb(t), Fl(t)),
|
|
18153
|
+
r === z.MATHML ? Bl(t) : r === z.SVG && (hb(t), Fl(t)), zi(t), t.selfClosing ? e._appendElement(t, r) : e._insertElement(t, r), t.ackSelfClosing = !0;
|
|
18154
18154
|
}
|
|
18155
18155
|
}
|
|
18156
18156
|
function Z1(e, t) {
|
|
@@ -18178,13 +18178,13 @@ const J1 = /* @__PURE__ */ new Set([
|
|
|
18178
18178
|
"mdxJsxTextElement",
|
|
18179
18179
|
"mdxTextExpression",
|
|
18180
18180
|
"mdxjsEsm"
|
|
18181
|
-
]),
|
|
18181
|
+
]), Uo = { sourceCodeLocationInfo: !0, scriptingEnabled: !1 };
|
|
18182
18182
|
function tc(e, t) {
|
|
18183
18183
|
const n = lE(e), r = Al("type", {
|
|
18184
18184
|
handlers: { root: eE, element: tE, text: nE, comment: rc, doctype: rE, raw: iE },
|
|
18185
18185
|
unknown: sE
|
|
18186
18186
|
}), a = {
|
|
18187
|
-
parser: n ? new
|
|
18187
|
+
parser: n ? new Bo(Uo) : Bo.getFragmentParser(void 0, Uo),
|
|
18188
18188
|
handle(s) {
|
|
18189
18189
|
r(s, a);
|
|
18190
18190
|
},
|
|
@@ -18196,7 +18196,7 @@ function tc(e, t) {
|
|
|
18196
18196
|
// To do: support `space`?
|
|
18197
18197
|
file: a.options.file
|
|
18198
18198
|
});
|
|
18199
|
-
return a.stitches &&
|
|
18199
|
+
return a.stitches && Hi(o, "comment", function(s, d, g) {
|
|
18200
18200
|
const p = (
|
|
18201
18201
|
/** @type {Stitch} */
|
|
18202
18202
|
/** @type {unknown} */
|
|
@@ -18531,7 +18531,7 @@ function IE(e, t) {
|
|
|
18531
18531
|
let r = Br.get(t);
|
|
18532
18532
|
return r ? (r(e), e) : t;
|
|
18533
18533
|
}
|
|
18534
|
-
function
|
|
18534
|
+
function $o(e = []) {
|
|
18535
18535
|
let t = Fr(), [n, r] = SE(t), a = St(() => {
|
|
18536
18536
|
r(function* () {
|
|
18537
18537
|
yield t, yield document.getElementById(t) ? t : void 0;
|
|
@@ -18637,18 +18637,18 @@ function ea(e) {
|
|
|
18637
18637
|
var t;
|
|
18638
18638
|
return typeof window > "u" || window.navigator == null ? !1 : ((t = window.navigator.userAgentData) === null || t === void 0 ? void 0 : t.brands.some((n) => e.test(n.brand))) || e.test(window.navigator.userAgent);
|
|
18639
18639
|
}
|
|
18640
|
-
function
|
|
18640
|
+
function qi(e) {
|
|
18641
18641
|
var t;
|
|
18642
18642
|
return typeof window < "u" && window.navigator != null ? e.test(((t = window.navigator.userAgentData) === null || t === void 0 ? void 0 : t.platform) || window.navigator.platform) : !1;
|
|
18643
18643
|
}
|
|
18644
18644
|
function nr() {
|
|
18645
|
-
return
|
|
18645
|
+
return qi(/^Mac/i);
|
|
18646
18646
|
}
|
|
18647
18647
|
function DE() {
|
|
18648
|
-
return
|
|
18648
|
+
return qi(/^iPhone/i);
|
|
18649
18649
|
}
|
|
18650
18650
|
function lc() {
|
|
18651
|
-
return
|
|
18651
|
+
return qi(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
18652
18652
|
nr() && navigator.maxTouchPoints > 1;
|
|
18653
18653
|
}
|
|
18654
18654
|
function cc() {
|
|
@@ -18687,8 +18687,8 @@ function rr(e, t, n = !0) {
|
|
|
18687
18687
|
rr.isOpening = n, Jt(e), e.dispatchEvent(g), rr.isOpening = !1;
|
|
18688
18688
|
}
|
|
18689
18689
|
rr.isOpening = !1;
|
|
18690
|
-
let gn = /* @__PURE__ */ new Map(),
|
|
18691
|
-
function
|
|
18690
|
+
let gn = /* @__PURE__ */ new Map(), pi = /* @__PURE__ */ new Set();
|
|
18691
|
+
function jo() {
|
|
18692
18692
|
if (typeof window > "u") return;
|
|
18693
18693
|
function e(r) {
|
|
18694
18694
|
return "propertyName" in r;
|
|
@@ -18703,16 +18703,16 @@ function $o() {
|
|
|
18703
18703
|
if (!e(r) || !r.target) return;
|
|
18704
18704
|
let a = gn.get(r.target);
|
|
18705
18705
|
if (a && (a.delete(r.propertyName), a.size === 0 && (r.target.removeEventListener("transitioncancel", n), gn.delete(r.target)), gn.size === 0)) {
|
|
18706
|
-
for (let i of
|
|
18707
|
-
|
|
18706
|
+
for (let i of pi) i();
|
|
18707
|
+
pi.clear();
|
|
18708
18708
|
}
|
|
18709
18709
|
};
|
|
18710
18710
|
document.body.addEventListener("transitionrun", t), document.body.addEventListener("transitionend", n);
|
|
18711
18711
|
}
|
|
18712
|
-
typeof document < "u" && (document.readyState !== "loading" ?
|
|
18712
|
+
typeof document < "u" && (document.readyState !== "loading" ? jo() : document.addEventListener("DOMContentLoaded", jo));
|
|
18713
18713
|
function dc(e) {
|
|
18714
18714
|
requestAnimationFrame(() => {
|
|
18715
|
-
gn.size === 0 ? e() :
|
|
18715
|
+
gn.size === 0 ? e() : pi.add(e);
|
|
18716
18716
|
});
|
|
18717
18717
|
}
|
|
18718
18718
|
function HE() {
|
|
@@ -18766,7 +18766,7 @@ function hc(e, t) {
|
|
|
18766
18766
|
};
|
|
18767
18767
|
});
|
|
18768
18768
|
}
|
|
18769
|
-
function
|
|
18769
|
+
function gi(e) {
|
|
18770
18770
|
return e.mozInputSource === 0 && e.isTrusted ? !0 : fc() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
|
|
18771
18771
|
}
|
|
18772
18772
|
function $E(e) {
|
|
@@ -18813,16 +18813,16 @@ function qE(e, t, n) {
|
|
|
18813
18813
|
t.value = n;
|
|
18814
18814
|
}
|
|
18815
18815
|
}
|
|
18816
|
-
function
|
|
18816
|
+
function zo(e, t, n) {
|
|
18817
18817
|
var r = mc(e, t, "set");
|
|
18818
18818
|
return qE(e, r, n), n;
|
|
18819
18819
|
}
|
|
18820
|
-
let En = "default",
|
|
18821
|
-
function
|
|
18820
|
+
let En = "default", bi = "", Or = /* @__PURE__ */ new WeakMap();
|
|
18821
|
+
function Vo(e) {
|
|
18822
18822
|
if (cc()) {
|
|
18823
18823
|
if (En === "default") {
|
|
18824
18824
|
const t = ut(e);
|
|
18825
|
-
|
|
18825
|
+
bi = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
|
|
18826
18826
|
}
|
|
18827
18827
|
En = "disabled";
|
|
18828
18828
|
} else (e instanceof HTMLElement || e instanceof SVGElement) && (Or.set(e, e.style.userSelect), e.style.userSelect = "none");
|
|
@@ -18834,7 +18834,7 @@ function yr(e) {
|
|
|
18834
18834
|
dc(() => {
|
|
18835
18835
|
if (En === "restoring") {
|
|
18836
18836
|
const t = ut(e);
|
|
18837
|
-
t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect =
|
|
18837
|
+
t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = bi || ""), bi = "", En = "default";
|
|
18838
18838
|
}
|
|
18839
18839
|
});
|
|
18840
18840
|
}, 300);
|
|
@@ -18859,7 +18859,7 @@ function WE(e) {
|
|
|
18859
18859
|
var _r = /* @__PURE__ */ new WeakMap();
|
|
18860
18860
|
class vr {
|
|
18861
18861
|
continuePropagation() {
|
|
18862
|
-
|
|
18862
|
+
zo(this, _r, !1);
|
|
18863
18863
|
}
|
|
18864
18864
|
get shouldStopPropagation() {
|
|
18865
18865
|
return VE(this, _r);
|
|
@@ -18868,10 +18868,10 @@ class vr {
|
|
|
18868
18868
|
GE(this, _r, {
|
|
18869
18869
|
writable: !0,
|
|
18870
18870
|
value: void 0
|
|
18871
|
-
}),
|
|
18871
|
+
}), zo(this, _r, !0), this.type = t, this.pointerType = n, this.target = r.currentTarget, this.shiftKey = r.shiftKey, this.metaKey = r.metaKey, this.ctrlKey = r.ctrlKey, this.altKey = r.altKey;
|
|
18872
18872
|
}
|
|
18873
18873
|
}
|
|
18874
|
-
const
|
|
18874
|
+
const Yo = Symbol("linkClicked");
|
|
18875
18875
|
function XE(e) {
|
|
18876
18876
|
let {
|
|
18877
18877
|
onPress: t,
|
|
@@ -18939,7 +18939,7 @@ function XE(e) {
|
|
|
18939
18939
|
onKeyDown(O) {
|
|
18940
18940
|
if (Ma(O.nativeEvent, O.currentTarget) && O.currentTarget.contains(O.target)) {
|
|
18941
18941
|
var M;
|
|
18942
|
-
|
|
18942
|
+
qo(O.target, O.key) && O.preventDefault();
|
|
18943
18943
|
let k = !0;
|
|
18944
18944
|
if (!y.isPressed && !O.repeat) {
|
|
18945
18945
|
y.target = O.currentTarget, y.isPressed = !0, k = E(O, "keyboard");
|
|
@@ -18954,7 +18954,7 @@ function XE(e) {
|
|
|
18954
18954
|
onClick(O) {
|
|
18955
18955
|
if (!(O && !O.currentTarget.contains(O.target)) && O && O.button === 0 && !y.isTriggeringEvent && !rr.isOpening) {
|
|
18956
18956
|
let M = !0;
|
|
18957
|
-
if (o && O.preventDefault(), !y.ignoreClickAfterPress && !y.ignoreEmulatedMouseEvents && !y.isPressed && (y.pointerType === "virtual" ||
|
|
18957
|
+
if (o && O.preventDefault(), !y.ignoreClickAfterPress && !y.ignoreEmulatedMouseEvents && !y.isPressed && (y.pointerType === "virtual" || gi(O.nativeEvent))) {
|
|
18958
18958
|
!o && !d && Jt(O.currentTarget);
|
|
18959
18959
|
let k = E(O, "virtual"), B = A(O, "virtual"), U = _(O, "virtual");
|
|
18960
18960
|
M = k && B && U;
|
|
@@ -18966,9 +18966,9 @@ function XE(e) {
|
|
|
18966
18966
|
var M;
|
|
18967
18967
|
if (y.isPressed && y.target && Ma(O, y.target)) {
|
|
18968
18968
|
var k;
|
|
18969
|
-
|
|
18969
|
+
qo(O.target, O.key) && O.preventDefault();
|
|
18970
18970
|
let U = O.target;
|
|
18971
|
-
_(wt(y.target, O), "keyboard", y.target.contains(U)), m(), O.key !== "Enter" &&
|
|
18971
|
+
_(wt(y.target, O), "keyboard", y.target.contains(U)), m(), O.key !== "Enter" && Wi(y.target) && y.target.contains(U) && !O[Yo] && (O[Yo] = !0, rr(y.target, O, !1)), y.isPressed = !1, (k = y.metaKeyEvents) === null || k === void 0 || k.delete(O.key);
|
|
18972
18972
|
} else if (O.key === "Meta" && (!((M = y.metaKeyEvents) === null || M === void 0) && M.size)) {
|
|
18973
18973
|
var B;
|
|
18974
18974
|
let U = y.metaKeyEvents;
|
|
@@ -18985,7 +18985,7 @@ function XE(e) {
|
|
|
18985
18985
|
}
|
|
18986
18986
|
Ba(B.currentTarget) && B.preventDefault(), y.pointerType = B.pointerType;
|
|
18987
18987
|
let U = !0;
|
|
18988
|
-
y.isPressed || (y.isPressed = !0, y.isOverTarget = !0, y.activePointerId = B.pointerId, y.target = B.currentTarget, !o && !d && Jt(B.currentTarget), p ||
|
|
18988
|
+
y.isPressed || (y.isPressed = !0, y.isOverTarget = !0, y.activePointerId = B.pointerId, y.target = B.currentTarget, !o && !d && Jt(B.currentTarget), p || Vo(y.target), U = E(B, y.pointerType), T(ut(B.currentTarget), "pointermove", O, !1), T(ut(B.currentTarget), "pointerup", M, !1), T(ut(B.currentTarget), "pointercancel", k, !1)), U && B.stopPropagation();
|
|
18989
18989
|
}, x.onMouseDown = (B) => {
|
|
18990
18990
|
B.currentTarget.contains(B.target) && B.button === 0 && (Ba(B.currentTarget) && B.preventDefault(), B.stopPropagation());
|
|
18991
18991
|
}, x.onPointerUp = (B) => {
|
|
@@ -19008,7 +19008,7 @@ function XE(e) {
|
|
|
19008
19008
|
k.stopPropagation();
|
|
19009
19009
|
return;
|
|
19010
19010
|
}
|
|
19011
|
-
y.isPressed = !0, y.isOverTarget = !0, y.target = k.currentTarget, y.pointerType =
|
|
19011
|
+
y.isPressed = !0, y.isOverTarget = !0, y.target = k.currentTarget, y.pointerType = gi(k.nativeEvent) ? "virtual" : "mouse", !o && !d && Jt(k.currentTarget), E(k, y.pointerType) && k.stopPropagation(), T(ut(k.currentTarget), "mouseup", O, !1);
|
|
19012
19012
|
}, x.onMouseEnter = (k) => {
|
|
19013
19013
|
if (!k.currentTarget.contains(k.target)) return;
|
|
19014
19014
|
let B = !0;
|
|
@@ -19033,14 +19033,14 @@ function XE(e) {
|
|
|
19033
19033
|
if (!k.currentTarget.contains(k.target)) return;
|
|
19034
19034
|
let B = KE(k.nativeEvent);
|
|
19035
19035
|
if (!B) return;
|
|
19036
|
-
y.activePointerId = B.identifier, y.ignoreEmulatedMouseEvents = !0, y.isOverTarget = !0, y.isPressed = !0, y.target = k.currentTarget, y.pointerType = "touch", !o && !d && Jt(k.currentTarget), p ||
|
|
19036
|
+
y.activePointerId = B.identifier, y.ignoreEmulatedMouseEvents = !0, y.isOverTarget = !0, y.isPressed = !0, y.target = k.currentTarget, y.pointerType = "touch", !o && !d && Jt(k.currentTarget), p || Vo(y.target), E(k, y.pointerType) && k.stopPropagation(), T(nn(k.currentTarget), "scroll", M, !0);
|
|
19037
19037
|
}, x.onTouchMove = (k) => {
|
|
19038
19038
|
if (!k.currentTarget.contains(k.target)) return;
|
|
19039
19039
|
if (!y.isPressed) {
|
|
19040
19040
|
k.stopPropagation();
|
|
19041
19041
|
return;
|
|
19042
19042
|
}
|
|
19043
|
-
let B =
|
|
19043
|
+
let B = Go(k.nativeEvent, y.activePointerId), U = !0;
|
|
19044
19044
|
B && mn(B, k.currentTarget) ? !y.isOverTarget && y.pointerType != null && (y.isOverTarget = !0, U = E(k, y.pointerType)) : y.isOverTarget && y.pointerType != null && (y.isOverTarget = !1, U = _(k, y.pointerType, !1), S(k)), U && k.stopPropagation();
|
|
19045
19045
|
}, x.onTouchEnd = (k) => {
|
|
19046
19046
|
if (!k.currentTarget.contains(k.target)) return;
|
|
@@ -19048,7 +19048,7 @@ function XE(e) {
|
|
|
19048
19048
|
k.stopPropagation();
|
|
19049
19049
|
return;
|
|
19050
19050
|
}
|
|
19051
|
-
let B =
|
|
19051
|
+
let B = Go(k.nativeEvent, y.activePointerId), U = !0;
|
|
19052
19052
|
B && mn(B, k.currentTarget) && y.pointerType != null ? (A(k, y.pointerType), U = _(k, y.pointerType)) : y.isOverTarget && y.pointerType != null && (U = _(k, y.pointerType, !1)), U && k.stopPropagation(), y.isPressed = !1, y.activePointerId = null, y.isOverTarget = !1, y.ignoreEmulatedMouseEvents = !0, y.target && !p && yr(y.target), m();
|
|
19053
19053
|
}, x.onTouchCancel = (k) => {
|
|
19054
19054
|
k.currentTarget.contains(k.target) && (k.stopPropagation(), y.isPressed && v(k));
|
|
@@ -19089,19 +19089,19 @@ function XE(e) {
|
|
|
19089
19089
|
pressProps: $t(c, N)
|
|
19090
19090
|
};
|
|
19091
19091
|
}
|
|
19092
|
-
function
|
|
19092
|
+
function Wi(e) {
|
|
19093
19093
|
return e.tagName === "A" && e.hasAttribute("href");
|
|
19094
19094
|
}
|
|
19095
19095
|
function Ma(e, t) {
|
|
19096
19096
|
const { key: n, code: r } = e, a = t, i = a.getAttribute("role");
|
|
19097
19097
|
return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(a instanceof nn(a).HTMLInputElement && !gc(a, n) || a instanceof nn(a).HTMLTextAreaElement || a.isContentEditable) && // Links should only trigger with Enter key
|
|
19098
|
-
!((i === "link" || !i &&
|
|
19098
|
+
!((i === "link" || !i && Wi(a)) && n !== "Enter");
|
|
19099
19099
|
}
|
|
19100
19100
|
function KE(e) {
|
|
19101
19101
|
const { targetTouches: t } = e;
|
|
19102
19102
|
return t.length > 0 ? t[0] : null;
|
|
19103
19103
|
}
|
|
19104
|
-
function
|
|
19104
|
+
function Go(e, t) {
|
|
19105
19105
|
const n = e.changedTouches;
|
|
19106
19106
|
for (let r = 0; r < n.length; r++) {
|
|
19107
19107
|
const a = n[r];
|
|
@@ -19137,8 +19137,8 @@ function mn(e, t) {
|
|
|
19137
19137
|
function Ba(e) {
|
|
19138
19138
|
return !(e instanceof HTMLElement) || !e.hasAttribute("draggable");
|
|
19139
19139
|
}
|
|
19140
|
-
function
|
|
19141
|
-
return e instanceof HTMLInputElement ? !gc(e, t) : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !
|
|
19140
|
+
function qo(e, t) {
|
|
19141
|
+
return e instanceof HTMLInputElement ? !gc(e, t) : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !Wi(e);
|
|
19142
19142
|
}
|
|
19143
19143
|
const JE = /* @__PURE__ */ new Set([
|
|
19144
19144
|
"checkbox",
|
|
@@ -19240,7 +19240,7 @@ function nT(e) {
|
|
|
19240
19240
|
}
|
|
19241
19241
|
};
|
|
19242
19242
|
}
|
|
19243
|
-
let Rn = null, rT = /* @__PURE__ */ new Set(), Zn = /* @__PURE__ */ new Map(), rn = !1,
|
|
19243
|
+
let Rn = null, rT = /* @__PURE__ */ new Set(), Zn = /* @__PURE__ */ new Map(), rn = !1, Ei = !1;
|
|
19244
19244
|
function ta(e, t) {
|
|
19245
19245
|
for (let n of rT) n(e, t);
|
|
19246
19246
|
}
|
|
@@ -19254,15 +19254,15 @@ function st(e) {
|
|
|
19254
19254
|
Rn = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (rn = !0, ta("pointer", e));
|
|
19255
19255
|
}
|
|
19256
19256
|
function bc(e) {
|
|
19257
|
-
|
|
19257
|
+
gi(e) && (rn = !0, Rn = "virtual");
|
|
19258
19258
|
}
|
|
19259
19259
|
function Ec(e) {
|
|
19260
|
-
e.target === window || e.target === document || (!rn && !
|
|
19260
|
+
e.target === window || e.target === document || (!rn && !Ei && (Rn = "virtual", ta("virtual", e)), rn = !1, Ei = !1);
|
|
19261
19261
|
}
|
|
19262
19262
|
function Tc() {
|
|
19263
|
-
rn = !1,
|
|
19263
|
+
rn = !1, Ei = !0;
|
|
19264
19264
|
}
|
|
19265
|
-
function
|
|
19265
|
+
function Wo(e) {
|
|
19266
19266
|
if (typeof window > "u" || Zn.get(nn(e))) return;
|
|
19267
19267
|
const t = nn(e), n = ut(e);
|
|
19268
19268
|
let r = t.HTMLElement.prototype.focus;
|
|
@@ -19283,8 +19283,8 @@ const yc = (e, t) => {
|
|
|
19283
19283
|
function iT(e) {
|
|
19284
19284
|
const t = ut(e);
|
|
19285
19285
|
let n;
|
|
19286
|
-
return t.readyState !== "loading" ?
|
|
19287
|
-
|
|
19286
|
+
return t.readyState !== "loading" ? Wo(e) : (n = () => {
|
|
19287
|
+
Wo(e);
|
|
19288
19288
|
}, t.addEventListener("DOMContentLoaded", n)), () => yc(e, n);
|
|
19289
19289
|
}
|
|
19290
19290
|
typeof document < "u" && iT();
|
|
@@ -19294,7 +19294,7 @@ function sT() {
|
|
|
19294
19294
|
function oT(e) {
|
|
19295
19295
|
Rn = e, ta(e, null);
|
|
19296
19296
|
}
|
|
19297
|
-
function
|
|
19297
|
+
function Xo(e) {
|
|
19298
19298
|
if (!e) return;
|
|
19299
19299
|
let t = !0;
|
|
19300
19300
|
return (n) => {
|
|
@@ -19319,8 +19319,8 @@ function Wo(e) {
|
|
|
19319
19319
|
function uT(e) {
|
|
19320
19320
|
return {
|
|
19321
19321
|
keyboardProps: e.isDisabled ? {} : {
|
|
19322
|
-
onKeyDown:
|
|
19323
|
-
onKeyUp:
|
|
19322
|
+
onKeyDown: Xo(e.onKeyDown),
|
|
19323
|
+
onKeyUp: Xo(e.onKeyUp)
|
|
19324
19324
|
}
|
|
19325
19325
|
};
|
|
19326
19326
|
}
|
|
@@ -19336,7 +19336,7 @@ function lT(e) {
|
|
|
19336
19336
|
function cT(e, t) {
|
|
19337
19337
|
return !e || !t ? !1 : t.some((n) => n.contains(e));
|
|
19338
19338
|
}
|
|
19339
|
-
class
|
|
19339
|
+
class Xi {
|
|
19340
19340
|
get size() {
|
|
19341
19341
|
return this.fastMap.size;
|
|
19342
19342
|
}
|
|
@@ -19346,7 +19346,7 @@ class Wi {
|
|
|
19346
19346
|
addTreeNode(t, n, r) {
|
|
19347
19347
|
let a = this.fastMap.get(n ?? null);
|
|
19348
19348
|
if (!a) return;
|
|
19349
|
-
let i = new
|
|
19349
|
+
let i = new Ko({
|
|
19350
19350
|
scopeRef: t
|
|
19351
19351
|
});
|
|
19352
19352
|
a.addChild(i), i.parent = a, this.fastMap.set(t, i), r && (i.nodeToRestore = r);
|
|
@@ -19369,18 +19369,18 @@ class Wi {
|
|
|
19369
19369
|
}
|
|
19370
19370
|
clone() {
|
|
19371
19371
|
var t;
|
|
19372
|
-
let n = new
|
|
19372
|
+
let n = new Xi();
|
|
19373
19373
|
var r;
|
|
19374
19374
|
for (let a of this.traverse()) n.addTreeNode(a.scopeRef, (r = (t = a.parent) === null || t === void 0 ? void 0 : t.scopeRef) !== null && r !== void 0 ? r : null, a.nodeToRestore);
|
|
19375
19375
|
return n;
|
|
19376
19376
|
}
|
|
19377
19377
|
constructor() {
|
|
19378
|
-
this.fastMap = /* @__PURE__ */ new Map(), this.root = new
|
|
19378
|
+
this.fastMap = /* @__PURE__ */ new Map(), this.root = new Ko({
|
|
19379
19379
|
scopeRef: null
|
|
19380
19380
|
}), this.fastMap.set(null, this.root);
|
|
19381
19381
|
}
|
|
19382
19382
|
}
|
|
19383
|
-
class
|
|
19383
|
+
class Ko {
|
|
19384
19384
|
addChild(t) {
|
|
19385
19385
|
this.children.add(t), t.parent = this;
|
|
19386
19386
|
}
|
|
@@ -19391,7 +19391,7 @@ class Xo {
|
|
|
19391
19391
|
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = t.scopeRef;
|
|
19392
19392
|
}
|
|
19393
19393
|
}
|
|
19394
|
-
new
|
|
19394
|
+
new Xi();
|
|
19395
19395
|
let fT = /* @__PURE__ */ ke.createContext(null);
|
|
19396
19396
|
function dT(e) {
|
|
19397
19397
|
let t = an(fT) || {};
|
|
@@ -19559,10 +19559,10 @@ const vc = {
|
|
|
19559
19559
|
isInvalid: !1,
|
|
19560
19560
|
validationDetails: vc,
|
|
19561
19561
|
validationErrors: []
|
|
19562
|
-
}, ET = Uc({}),
|
|
19562
|
+
}, ET = Uc({}), Qo = "__formValidationState" + Date.now();
|
|
19563
19563
|
function TT(e) {
|
|
19564
|
-
if (e[
|
|
19565
|
-
let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: a, commitValidation: i } = e[
|
|
19564
|
+
if (e[Qo]) {
|
|
19565
|
+
let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: a, commitValidation: i } = e[Qo];
|
|
19566
19566
|
return {
|
|
19567
19567
|
realtimeValidation: t,
|
|
19568
19568
|
displayValidation: n,
|
|
@@ -19580,17 +19580,17 @@ function yT(e) {
|
|
|
19580
19580
|
isInvalid: !0,
|
|
19581
19581
|
validationErrors: [],
|
|
19582
19582
|
validationDetails: Ac
|
|
19583
|
-
} : null, g = Ar(() =>
|
|
19583
|
+
} : null, g = Ar(() => Zo(_T(o, a)), [
|
|
19584
19584
|
o,
|
|
19585
19585
|
a
|
|
19586
19586
|
]);
|
|
19587
19587
|
i != null && i.validationDetails.valid && (i = null);
|
|
19588
|
-
let p = an(ET), u = Ar(() => r ? Array.isArray(r) ? r.flatMap((C) =>
|
|
19588
|
+
let p = an(ET), u = Ar(() => r ? Array.isArray(r) ? r.flatMap((C) => Ti(p[C])) : Ti(p[r]) : [], [
|
|
19589
19589
|
p,
|
|
19590
19590
|
r
|
|
19591
19591
|
]), [c, l] = Fe(p), [h, f] = Fe(!1);
|
|
19592
19592
|
p !== c && (l(p), f(!1));
|
|
19593
|
-
let T = Ar(() =>
|
|
19593
|
+
let T = Ar(() => Zo(h ? [] : u), [
|
|
19594
19594
|
h,
|
|
19595
19595
|
u
|
|
19596
19596
|
]), m = ze(Hn), [E, _] = Fe(Hn), A = ze(Hn), v = () => {
|
|
@@ -19614,7 +19614,7 @@ function yT(e) {
|
|
|
19614
19614
|
}
|
|
19615
19615
|
};
|
|
19616
19616
|
}
|
|
19617
|
-
function
|
|
19617
|
+
function Ti(e) {
|
|
19618
19618
|
return e ? Array.isArray(e) ? e : [
|
|
19619
19619
|
e
|
|
19620
19620
|
] : [];
|
|
@@ -19622,11 +19622,11 @@ function Ei(e) {
|
|
|
19622
19622
|
function _T(e, t) {
|
|
19623
19623
|
if (typeof e == "function") {
|
|
19624
19624
|
let n = e(t);
|
|
19625
|
-
if (n && typeof n != "boolean") return
|
|
19625
|
+
if (n && typeof n != "boolean") return Ti(n);
|
|
19626
19626
|
}
|
|
19627
19627
|
return [];
|
|
19628
19628
|
}
|
|
19629
|
-
function
|
|
19629
|
+
function Zo(e) {
|
|
19630
19630
|
return e.length ? {
|
|
19631
19631
|
isInvalid: !0,
|
|
19632
19632
|
validationErrors: e,
|
|
@@ -19655,12 +19655,12 @@ function vT(e) {
|
|
|
19655
19655
|
};
|
|
19656
19656
|
}
|
|
19657
19657
|
function AT(e) {
|
|
19658
|
-
let { description: t, errorMessage: n, isInvalid: r, validationState: a } = e, { labelProps: i, fieldProps: o } = vT(e), s =
|
|
19658
|
+
let { description: t, errorMessage: n, isInvalid: r, validationState: a } = e, { labelProps: i, fieldProps: o } = vT(e), s = $o([
|
|
19659
19659
|
!!t,
|
|
19660
19660
|
!!n,
|
|
19661
19661
|
r,
|
|
19662
19662
|
a
|
|
19663
|
-
]), d =
|
|
19663
|
+
]), d = $o([
|
|
19664
19664
|
!!t,
|
|
19665
19665
|
!!n,
|
|
19666
19666
|
r,
|
|
@@ -20179,7 +20179,9 @@ const BT = "_dot_spinner_qw18l_1", FT = "_dot_spinner__dot_qw18l_13", HT = "_pul
|
|
|
20179
20179
|
children: r
|
|
20180
20180
|
}
|
|
20181
20181
|
);
|
|
20182
|
-
}
|
|
20182
|
+
};
|
|
20183
|
+
let Ha = new AbortController();
|
|
20184
|
+
const Ic = ({ appToken: e }) => {
|
|
20183
20185
|
e || console.log("Dev - Admin settings");
|
|
20184
20186
|
const t = ze(null), { placeholderTranslation: n } = Du(), [r, a] = Fe("notLoading"), [i, o] = Fe(null), [s, d] = Fe([
|
|
20185
20187
|
{
|
|
@@ -20204,7 +20206,14 @@ const BT = "_dot_spinner_qw18l_1", FT = "_dot_spinner__dot_qw18l_13", HT = "_pul
|
|
|
20204
20206
|
_();
|
|
20205
20207
|
}, [s]);
|
|
20206
20208
|
const A = () => {
|
|
20207
|
-
|
|
20209
|
+
Ha.abort("cancelling"), console.log("Stream request aborted"), a("notLoading"), d(
|
|
20210
|
+
(S) => S.filter(
|
|
20211
|
+
(N) => {
|
|
20212
|
+
var y;
|
|
20213
|
+
return !(((y = N.content) == null ? void 0 : y.length) === 0 && N.userType === "assistant");
|
|
20214
|
+
}
|
|
20215
|
+
)
|
|
20216
|
+
);
|
|
20208
20217
|
}, v = async (S) => {
|
|
20209
20218
|
a("loadingIntermediaryStates");
|
|
20210
20219
|
const N = Ur.getApiUrl(), y = {
|
|
@@ -20218,7 +20227,7 @@ const BT = "_dot_spinner_qw18l_1", FT = "_dot_spinner__dot_qw18l_13", HT = "_pul
|
|
|
20218
20227
|
content: ""
|
|
20219
20228
|
}
|
|
20220
20229
|
]), i && (y.discussionId = i);
|
|
20221
|
-
const x =
|
|
20230
|
+
const x = Ha.signal, C = Ur.getFetchConfig({
|
|
20222
20231
|
httpVerb: "POST",
|
|
20223
20232
|
body: y,
|
|
20224
20233
|
contentType: "application/json",
|
|
@@ -20226,7 +20235,7 @@ const BT = "_dot_spinner_qw18l_1", FT = "_dot_spinner__dot_qw18l_13", HT = "_pul
|
|
|
20226
20235
|
signal: x
|
|
20227
20236
|
}
|
|
20228
20237
|
});
|
|
20229
|
-
fetch(`${N}/ai/prompt/${e}`, C).then(async (O) => {
|
|
20238
|
+
console.log("calling again"), fetch(`${N}/ai/prompt/${e}`, C).then(async (O) => {
|
|
20230
20239
|
var j;
|
|
20231
20240
|
const M = (j = O == null ? void 0 : O.body) == null ? void 0 : j.getReader(), k = new TextDecoder();
|
|
20232
20241
|
let B = "", U = "", W = !1, te = !1, de = null;
|
|
@@ -20277,8 +20286,8 @@ const BT = "_dot_spinner_qw18l_1", FT = "_dot_spinner__dot_qw18l_13", HT = "_pul
|
|
|
20277
20286
|
}).pipeTo(new WritableStream());
|
|
20278
20287
|
const I = O.headers.get("discussionId");
|
|
20279
20288
|
o(I);
|
|
20280
|
-
}).catch((
|
|
20281
|
-
console.log("
|
|
20289
|
+
}).catch(() => {
|
|
20290
|
+
console.log("Cancelling stream"), Ha = new AbortController();
|
|
20282
20291
|
});
|
|
20283
20292
|
};
|
|
20284
20293
|
return /* @__PURE__ */ Z.jsxs("div", { className: "max-w-[90%] mx-auto p-2", ref: t, children: [
|
|
@@ -20376,7 +20385,7 @@ const BT = "_dot_spinner_qw18l_1", FT = "_dot_spinner__dot_qw18l_13", HT = "_pul
|
|
|
20376
20385
|
), VT = ({ isWidgetOpen: e, appToken: t }) => {
|
|
20377
20386
|
const n = ze(null);
|
|
20378
20387
|
return /* @__PURE__ */ Z.jsx("div", { children: /* @__PURE__ */ Z.jsx(
|
|
20379
|
-
|
|
20388
|
+
Ai,
|
|
20380
20389
|
{
|
|
20381
20390
|
nodeRef: n,
|
|
20382
20391
|
in: e,
|
|
@@ -23703,11 +23712,11 @@ var Nc = { exports: {} };
|
|
|
23703
23712
|
var n, r;
|
|
23704
23713
|
});
|
|
23705
23714
|
})(Nc);
|
|
23706
|
-
var
|
|
23715
|
+
var yi = Nc.exports;
|
|
23707
23716
|
const ny = {
|
|
23708
|
-
NODE_ENV:
|
|
23709
|
-
VITE_APPTOKEN:
|
|
23710
|
-
}, ry =
|
|
23717
|
+
NODE_ENV: yi.string(),
|
|
23718
|
+
VITE_APPTOKEN: yi.string()
|
|
23719
|
+
}, ry = yi.object(ny), ay = () => {
|
|
23711
23720
|
var n;
|
|
23712
23721
|
const e = ry.validate({
|
|
23713
23722
|
NODE_ENV: process.env.NODE_ENV
|