@access-ci/ui 0.20.5 → 0.20.6
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/{access-ci-ui-react-ibZp2x_y.js → access-ci-ui-react-CP5mQzUa.js} +3 -3
- package/dist/access-ci-ui-react.js +1 -1
- package/dist/access-ci-ui-react.umd.cjs +26 -26
- package/dist/access-ci-ui.bundle.js +29 -29
- package/dist/access-ci-ui.js +1 -1
- package/dist/access-ci-ui.umd.cjs +14 -14
- package/dist/{access-qa-bot-BwnK_3hy.js → access-qa-bot-B-DSY6d4.js} +155 -155
- package/dist/{access-qa-bot-BJE68LFO.js → access-qa-bot-CQOilD16.js} +240 -240
- package/dist/{icon-C4K-9kaa.js → icon-C5SS8za8.js} +1 -1
- package/dist/{index-9LtJtDDs.js → index-BWF1UvQg.js} +3 -3
- package/dist/{resource-group-detail-kcWWbn7a.js → resource-group-detail-CM9braSw.js} +1 -1
- package/dist/{resource-group-detail-wTD-XlN-.js → resource-group-detail-oHbuT_iG.js} +2 -2
- package/dist/{resource-home-JK_ikpij.js → resource-home-C2662ZCg.js} +1 -1
- package/dist/{resource-home-TM8grPTp.js → resource-home-CXDZxCxK.js} +2 -2
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as oa, g as Il, a as x, j as M, T as V, b as Tl } from "./index-
|
|
1
|
+
import { r as oa, g as Il, a as x, j as M, T as V, b as Tl } from "./index-BWF1UvQg.js";
|
|
2
2
|
var bn = {}, Mn = {};
|
|
3
3
|
var Vs;
|
|
4
4
|
function Ql() {
|
|
@@ -301,7 +301,7 @@ function Ql() {
|
|
|
301
301
|
return u.push(">"), O(u, q, R), R;
|
|
302
302
|
case "option":
|
|
303
303
|
q = j.selectedValue, u.push(L("option"));
|
|
304
|
-
var pe = ne = null,
|
|
304
|
+
var pe = ne = null, ye = null, ke = null;
|
|
305
305
|
for (R in b) if (r.call(b, R)) {
|
|
306
306
|
var Xe = b[R];
|
|
307
307
|
if (Xe != null) switch (R) {
|
|
@@ -309,7 +309,7 @@ function Ql() {
|
|
|
309
309
|
ne = Xe;
|
|
310
310
|
break;
|
|
311
311
|
case "selected":
|
|
312
|
-
|
|
312
|
+
ye = Xe;
|
|
313
313
|
break;
|
|
314
314
|
case "dangerouslySetInnerHTML":
|
|
315
315
|
ke = Xe;
|
|
@@ -327,7 +327,7 @@ function Ql() {
|
|
|
327
327
|
break;
|
|
328
328
|
}
|
|
329
329
|
} else "" + q === b && u.push(' selected=""');
|
|
330
|
-
else
|
|
330
|
+
else ye && u.push(' selected=""');
|
|
331
331
|
return u.push(">"), O(u, ke, ne), ne;
|
|
332
332
|
case "textarea":
|
|
333
333
|
u.push(L("textarea")), ke = q = R = null;
|
|
@@ -361,24 +361,24 @@ function Ql() {
|
|
|
361
361
|
`), R !== null && u.push(v("" + R)), null;
|
|
362
362
|
case "input":
|
|
363
363
|
u.push(L("input")), pe = ke = ne = R = null;
|
|
364
|
-
for (q in b) if (r.call(b, q) && (
|
|
364
|
+
for (q in b) if (r.call(b, q) && (ye = b[q], ye != null)) switch (q) {
|
|
365
365
|
case "children":
|
|
366
366
|
case "dangerouslySetInnerHTML":
|
|
367
367
|
throw Error(t(399, "input"));
|
|
368
368
|
case "defaultChecked":
|
|
369
|
-
pe =
|
|
369
|
+
pe = ye;
|
|
370
370
|
break;
|
|
371
371
|
case "defaultValue":
|
|
372
|
-
ne =
|
|
372
|
+
ne = ye;
|
|
373
373
|
break;
|
|
374
374
|
case "checked":
|
|
375
|
-
ke =
|
|
375
|
+
ke = ye;
|
|
376
376
|
break;
|
|
377
377
|
case "value":
|
|
378
|
-
R =
|
|
378
|
+
R = ye;
|
|
379
379
|
break;
|
|
380
380
|
default:
|
|
381
|
-
Q(u, P, q,
|
|
381
|
+
Q(u, P, q, ye);
|
|
382
382
|
}
|
|
383
383
|
return ke !== null ? Q(u, P, "checked", ke) : pe !== null && Q(u, P, "checked", pe), R !== null ? Q(u, P, "value", R) : ne !== null && Q(u, P, "value", ne), u.push("/>"), null;
|
|
384
384
|
case "menuitem":
|
|
@@ -468,7 +468,7 @@ function Ql() {
|
|
|
468
468
|
default:
|
|
469
469
|
if (g.indexOf("-") === -1 && typeof b.is != "string") return W(u, b, g, P);
|
|
470
470
|
u.push(L(g)), q = R = null;
|
|
471
|
-
for (
|
|
471
|
+
for (ye in b) if (r.call(b, ye) && (ne = b[ye], ne != null)) switch (ye) {
|
|
472
472
|
case "children":
|
|
473
473
|
R = ne;
|
|
474
474
|
break;
|
|
@@ -482,7 +482,7 @@ function Ql() {
|
|
|
482
482
|
case "suppressHydrationWarning":
|
|
483
483
|
break;
|
|
484
484
|
default:
|
|
485
|
-
i(
|
|
485
|
+
i(ye) && typeof ne != "function" && typeof ne != "symbol" && u.push(" ", ye, '="', v(ne), '"');
|
|
486
486
|
}
|
|
487
487
|
return u.push(">"), O(u, q, R), R;
|
|
488
488
|
}
|
|
@@ -554,7 +554,7 @@ function Ql() {
|
|
|
554
554
|
function ce(u, g, b, P) {
|
|
555
555
|
return b.generateStaticMarkup ? (u.push(v(g)), !1) : (g === "" ? u = P : (P && u.push("<!-- -->"), u.push(v(g)), u = !0), u);
|
|
556
556
|
}
|
|
557
|
-
var B = Object.assign, ae = /* @__PURE__ */ Symbol.for("react.element"), fe = /* @__PURE__ */ Symbol.for("react.portal"), de = /* @__PURE__ */ Symbol.for("react.fragment"), be = /* @__PURE__ */ Symbol.for("react.strict_mode"), Oe = /* @__PURE__ */ Symbol.for("react.profiler"), Ie = /* @__PURE__ */ Symbol.for("react.provider"), nt = /* @__PURE__ */ Symbol.for("react.context"), Re = /* @__PURE__ */ Symbol.for("react.forward_ref"), je = /* @__PURE__ */ Symbol.for("react.suspense"), Je = /* @__PURE__ */ Symbol.for("react.suspense_list"), ie = /* @__PURE__ */ Symbol.for("react.memo"), oe = /* @__PURE__ */ Symbol.for("react.lazy"), Ee = /* @__PURE__ */ Symbol.for("react.scope"), we = /* @__PURE__ */ Symbol.for("react.debug_trace_mode"), Ne = /* @__PURE__ */ Symbol.for("react.legacy_hidden"),
|
|
557
|
+
var B = Object.assign, ae = /* @__PURE__ */ Symbol.for("react.element"), fe = /* @__PURE__ */ Symbol.for("react.portal"), de = /* @__PURE__ */ Symbol.for("react.fragment"), be = /* @__PURE__ */ Symbol.for("react.strict_mode"), Oe = /* @__PURE__ */ Symbol.for("react.profiler"), Ie = /* @__PURE__ */ Symbol.for("react.provider"), nt = /* @__PURE__ */ Symbol.for("react.context"), Re = /* @__PURE__ */ Symbol.for("react.forward_ref"), je = /* @__PURE__ */ Symbol.for("react.suspense"), Je = /* @__PURE__ */ Symbol.for("react.suspense_list"), ie = /* @__PURE__ */ Symbol.for("react.memo"), oe = /* @__PURE__ */ Symbol.for("react.lazy"), Ee = /* @__PURE__ */ Symbol.for("react.scope"), we = /* @__PURE__ */ Symbol.for("react.debug_trace_mode"), Ne = /* @__PURE__ */ Symbol.for("react.legacy_hidden"), Me = /* @__PURE__ */ Symbol.for("react.default_value"), Le = Symbol.iterator;
|
|
558
558
|
function Ue(u) {
|
|
559
559
|
if (u == null) return null;
|
|
560
560
|
if (typeof u == "function") return u.displayName || u.name || null;
|
|
@@ -624,14 +624,14 @@ function Ql() {
|
|
|
624
624
|
if (u.context._currentValue2 = u.parentValue, u = u.parent, u === null) throw Error(t(402));
|
|
625
625
|
u.depth === g.depth ? xe(u, g) : Gt(u, g);
|
|
626
626
|
}
|
|
627
|
-
function
|
|
627
|
+
function vt(u, g) {
|
|
628
628
|
var b = g.parent;
|
|
629
629
|
if (b === null) throw Error(t(402));
|
|
630
|
-
u.depth === b.depth ? xe(u, b) :
|
|
630
|
+
u.depth === b.depth ? xe(u, b) : vt(u, b), g.context._currentValue2 = g.value;
|
|
631
631
|
}
|
|
632
632
|
function lt(u) {
|
|
633
633
|
var g = _e;
|
|
634
|
-
g !== u && (g === null ? ht(u) : u === null ? qt(g) : g.depth === u.depth ? xe(g, u) : g.depth > u.depth ? Gt(g, u) :
|
|
634
|
+
g !== u && (g === null ? ht(u) : u === null ? qt(g) : g.depth === u.depth ? xe(g, u) : g.depth > u.depth ? Gt(g, u) : vt(g, u), _e = u);
|
|
635
635
|
}
|
|
636
636
|
var z = { isMounted: function() {
|
|
637
637
|
return !1;
|
|
@@ -670,17 +670,17 @@ function Ql() {
|
|
|
670
670
|
}
|
|
671
671
|
return { id: 1 << R | b << j | P, overflow: u };
|
|
672
672
|
}
|
|
673
|
-
var ue = Math.clz32 ? Math.clz32 :
|
|
674
|
-
function
|
|
673
|
+
var ue = Math.clz32 ? Math.clz32 : Qe, $e = Math.log, ze = Math.LN2;
|
|
674
|
+
function Qe(u) {
|
|
675
675
|
return u >>>= 0, u === 0 ? 32 : 31 - ($e(u) / ze | 0) | 0;
|
|
676
676
|
}
|
|
677
677
|
function Ke(u, g) {
|
|
678
678
|
return u === g && (u !== 0 || 1 / u === 1 / g) || u !== u && g !== g;
|
|
679
679
|
}
|
|
680
|
-
var Ve = typeof Object.is == "function" ? Object.is : Ke,
|
|
680
|
+
var Ve = typeof Object.is == "function" ? Object.is : Ke, me = null, st = null, tt = null, Te = null, Ot = !1, ut = !1, xt = 0, wt = null, gt = 0;
|
|
681
681
|
function At() {
|
|
682
|
-
if (
|
|
683
|
-
return
|
|
682
|
+
if (me === null) throw Error(t(321));
|
|
683
|
+
return me;
|
|
684
684
|
}
|
|
685
685
|
function Zt() {
|
|
686
686
|
if (0 < gt) throw Error(t(312));
|
|
@@ -690,16 +690,16 @@ function Ql() {
|
|
|
690
690
|
return Te === null ? tt === null ? (Ot = !1, tt = Te = Zt()) : (Ot = !0, Te = tt) : Te.next === null ? (Ot = !1, Te = Te.next = Zt()) : (Ot = !0, Te = Te.next), Te;
|
|
691
691
|
}
|
|
692
692
|
function cn() {
|
|
693
|
-
st =
|
|
693
|
+
st = me = null, ut = !1, tt = null, gt = 0, Te = wt = null;
|
|
694
694
|
}
|
|
695
|
-
function
|
|
695
|
+
function bt(u, g) {
|
|
696
696
|
return typeof g == "function" ? g(u) : g;
|
|
697
697
|
}
|
|
698
|
-
function
|
|
699
|
-
if (
|
|
698
|
+
function kt(u, g, b) {
|
|
699
|
+
if (me = At(), Te = $t(), Ot) {
|
|
700
700
|
var P = Te.queue;
|
|
701
|
-
if (g = P.dispatch,
|
|
702
|
-
|
|
701
|
+
if (g = P.dispatch, wt !== null && (b = wt.get(P), b !== void 0)) {
|
|
702
|
+
wt.delete(P), P = Te.memoizedState;
|
|
703
703
|
do
|
|
704
704
|
P = u(P, b.action), b = b.next;
|
|
705
705
|
while (b !== null);
|
|
@@ -707,10 +707,10 @@ function Ql() {
|
|
|
707
707
|
}
|
|
708
708
|
return [Te.memoizedState, g];
|
|
709
709
|
}
|
|
710
|
-
return u = u ===
|
|
710
|
+
return u = u === bt ? typeof g == "function" ? g() : g : b !== void 0 ? b(g) : g, Te.memoizedState = u, u = Te.queue = { last: null, dispatch: null }, u = u.dispatch = en.bind(null, me, u), [Te.memoizedState, u];
|
|
711
711
|
}
|
|
712
712
|
function Pt(u, g) {
|
|
713
|
-
if (
|
|
713
|
+
if (me = At(), Te = $t(), g = g === void 0 ? null : g, Te !== null) {
|
|
714
714
|
var b = Te.memoizedState;
|
|
715
715
|
if (b !== null && g !== null) {
|
|
716
716
|
var P = b[1];
|
|
@@ -729,7 +729,7 @@ function Ql() {
|
|
|
729
729
|
}
|
|
730
730
|
function en(u, g, b) {
|
|
731
731
|
if (25 <= gt) throw Error(t(301));
|
|
732
|
-
if (u ===
|
|
732
|
+
if (u === me) if (ut = !0, u = { action: b, next: null }, wt === null && (wt = /* @__PURE__ */ new Map()), b = wt.get(g), b === void 0) wt.set(g, u);
|
|
733
733
|
else {
|
|
734
734
|
for (g = b; g.next !== null; ) g = g.next;
|
|
735
735
|
g.next = u;
|
|
@@ -744,12 +744,12 @@ function Ql() {
|
|
|
744
744
|
return u._currentValue2;
|
|
745
745
|
}, useContext: function(u) {
|
|
746
746
|
return At(), u._currentValue2;
|
|
747
|
-
}, useMemo: Pt, useReducer:
|
|
748
|
-
|
|
747
|
+
}, useMemo: Pt, useReducer: kt, useRef: function(u) {
|
|
748
|
+
me = At(), Te = $t();
|
|
749
749
|
var g = Te.memoizedState;
|
|
750
750
|
return g === null ? (u = { current: u }, Te.memoizedState = u) : g;
|
|
751
751
|
}, useState: function(u) {
|
|
752
|
-
return
|
|
752
|
+
return kt(bt, u);
|
|
753
753
|
}, useInsertionEffect: mt, useLayoutEffect: function() {
|
|
754
754
|
}, useCallback: function(u, g) {
|
|
755
755
|
return Pt(function() {
|
|
@@ -767,7 +767,7 @@ function Ql() {
|
|
|
767
767
|
u = u.id, u = (u & ~(1 << 32 - ue(u) - 1)).toString(32) + g;
|
|
768
768
|
var b = pn;
|
|
769
769
|
if (b === null) throw Error(t(404));
|
|
770
|
-
return g =
|
|
770
|
+
return g = xt++, u = ":" + b.idPrefix + "R" + u, 0 < g && (u += "H" + g.toString(32)), u + ":";
|
|
771
771
|
}, useMutableSource: function(u, g) {
|
|
772
772
|
return At(), g(u._source);
|
|
773
773
|
}, useSyncExternalStore: function(u, g, b) {
|
|
@@ -780,14 +780,14 @@ function Ql() {
|
|
|
780
780
|
function Lt() {
|
|
781
781
|
}
|
|
782
782
|
function it(u, g, b, P, j, R, q, ne, pe) {
|
|
783
|
-
var
|
|
784
|
-
return g = { destination: null, responseState: g, progressiveChunkSize: P === void 0 ? 12800 : P, status: 0, fatalError: null, nextSegmentId: 0, allPendingTasks: 0, pendingRootTasks: 0, completedRootSegment: null, abortableTasks: ke, pingedTasks:
|
|
783
|
+
var ye = [], ke = /* @__PURE__ */ new Set();
|
|
784
|
+
return g = { destination: null, responseState: g, progressiveChunkSize: P === void 0 ? 12800 : P, status: 0, fatalError: null, nextSegmentId: 0, allPendingTasks: 0, pendingRootTasks: 0, completedRootSegment: null, abortableTasks: ke, pingedTasks: ye, clientRenderedBoundaries: [], completedBoundaries: [], partialBoundaries: [], onError: j === void 0 ? tn : j, onAllReady: Lt, onShellReady: q === void 0 ? Lt : q, onShellError: Lt, onFatalError: Lt }, b = gn(g, 0, null, b, !1, !1), b.parentFlushed = !0, u = hn(g, u, null, b, ke, Ze, null, se), ye.push(u), g;
|
|
785
785
|
}
|
|
786
786
|
function hn(u, g, b, P, j, R, q, ne) {
|
|
787
787
|
u.allPendingTasks++, b === null ? u.pendingRootTasks++ : b.pendingTasks++;
|
|
788
788
|
var pe = { node: g, ping: function() {
|
|
789
|
-
var
|
|
790
|
-
|
|
789
|
+
var ye = u.pingedTasks;
|
|
790
|
+
ye.push(pe), ye.length === 1 && Ir(u);
|
|
791
791
|
}, blockedBoundary: b, blockedSegment: P, abortSet: j, legacyContext: R, context: q, treeContext: ne };
|
|
792
792
|
return j.add(pe), pe;
|
|
793
793
|
}
|
|
@@ -803,7 +803,7 @@ function Ql() {
|
|
|
803
803
|
b(g), b = u.onFatalError, b(g), u.destination !== null ? (u.status = 2, u.destination.destroy(g)) : (u.status = 1, u.fatalError = g);
|
|
804
804
|
}
|
|
805
805
|
function Sr(u, g, b, P, j) {
|
|
806
|
-
for (
|
|
806
|
+
for (me = {}, st = g, xt = 0, u = b(P, j); ut; ) ut = !1, xt = 0, gt += 1, Te = null, u = b(P, j);
|
|
807
807
|
return cn(), u;
|
|
808
808
|
}
|
|
809
809
|
function Cr(u, g, b, P) {
|
|
@@ -816,8 +816,8 @@ function Ql() {
|
|
|
816
816
|
for (var ne in b) if (!(ne in R)) throw Error(t(108, Ue(P) || "Unknown", ne));
|
|
817
817
|
P = B({}, q, b);
|
|
818
818
|
}
|
|
819
|
-
g.legacyContext = P,
|
|
820
|
-
} else
|
|
819
|
+
g.legacyContext = P, Et(u, g, j), g.legacyContext = q;
|
|
820
|
+
} else Et(u, g, j);
|
|
821
821
|
}
|
|
822
822
|
function Pr(u, g) {
|
|
823
823
|
if (u && u.defaultProps) {
|
|
@@ -834,16 +834,16 @@ function Ql() {
|
|
|
834
834
|
R = new b(P, typeof R == "object" && R !== null ? R._currentValue2 : j), Ae(R, b, P, j), Cr(u, g, R, b);
|
|
835
835
|
} else {
|
|
836
836
|
R = zt(b, g.legacyContext), j = Sr(u, g, b, P, R);
|
|
837
|
-
var q =
|
|
837
|
+
var q = xt !== 0;
|
|
838
838
|
if (typeof j == "object" && j !== null && typeof j.render == "function" && j.$$typeof === void 0) Ae(j, b, P, R), Cr(u, g, j, b);
|
|
839
839
|
else if (q) {
|
|
840
840
|
P = g.treeContext, g.treeContext = Ce(P, 1, 0);
|
|
841
841
|
try {
|
|
842
|
-
|
|
842
|
+
Et(u, g, j);
|
|
843
843
|
} finally {
|
|
844
844
|
g.treeContext = P;
|
|
845
845
|
}
|
|
846
|
-
} else
|
|
846
|
+
} else Et(u, g, j);
|
|
847
847
|
}
|
|
848
848
|
else if (typeof b == "string") {
|
|
849
849
|
switch (j = g.blockedSegment, R = X(j.chunks, b, P, u.responseState, j.formatContext), j.lastPushedText = !1, q = j.formatContext, j.formatContext = E(q, b, P), $n(u, g, R), j.formatContext = q, b) {
|
|
@@ -874,10 +874,10 @@ function Ql() {
|
|
|
874
874
|
case be:
|
|
875
875
|
case Oe:
|
|
876
876
|
case de:
|
|
877
|
-
|
|
877
|
+
Et(u, g, P.children);
|
|
878
878
|
return;
|
|
879
879
|
case Je:
|
|
880
|
-
|
|
880
|
+
Et(u, g, P.children);
|
|
881
881
|
return;
|
|
882
882
|
case Ee:
|
|
883
883
|
throw Error(t(343));
|
|
@@ -886,16 +886,16 @@ function Ql() {
|
|
|
886
886
|
b = g.blockedBoundary, j = g.blockedSegment, R = P.fallback, P = P.children, q = /* @__PURE__ */ new Set();
|
|
887
887
|
var ne = { id: null, rootSegmentID: -1, parentFlushed: !1, pendingTasks: 0, forceClientRender: !1, completedSegments: [], byteSize: 0, fallbackAbortableTasks: q, errorDigest: null }, pe = gn(u, j.chunks.length, ne, j.formatContext, !1, !1);
|
|
888
888
|
j.children.push(pe), j.lastPushedText = !1;
|
|
889
|
-
var
|
|
890
|
-
|
|
889
|
+
var ye = gn(u, 0, null, j.formatContext, !1, !1);
|
|
890
|
+
ye.parentFlushed = !0, g.blockedBoundary = ne, g.blockedSegment = ye;
|
|
891
891
|
try {
|
|
892
892
|
if ($n(
|
|
893
893
|
u,
|
|
894
894
|
g,
|
|
895
895
|
P
|
|
896
|
-
), u.responseState.generateStaticMarkup ||
|
|
896
|
+
), u.responseState.generateStaticMarkup || ye.lastPushedText && ye.textEmbedded && ye.chunks.push("<!-- -->"), ye.status = 1, mn(ne, ye), ne.pendingTasks === 0) break e;
|
|
897
897
|
} catch (ke) {
|
|
898
|
-
|
|
898
|
+
ye.status = 4, ne.forceClientRender = !0, ne.errorDigest = Pn(u, ke);
|
|
899
899
|
} finally {
|
|
900
900
|
g.blockedBoundary = b, g.blockedSegment = j;
|
|
901
901
|
}
|
|
@@ -905,24 +905,24 @@ function Ql() {
|
|
|
905
905
|
}
|
|
906
906
|
if (typeof b == "object" && b !== null) switch (b.$$typeof) {
|
|
907
907
|
case Re:
|
|
908
|
-
if (P = Sr(u, g, b.render, P, j),
|
|
908
|
+
if (P = Sr(u, g, b.render, P, j), xt !== 0) {
|
|
909
909
|
b = g.treeContext, g.treeContext = Ce(b, 1, 0);
|
|
910
910
|
try {
|
|
911
|
-
|
|
911
|
+
Et(u, g, P);
|
|
912
912
|
} finally {
|
|
913
913
|
g.treeContext = b;
|
|
914
914
|
}
|
|
915
|
-
} else
|
|
915
|
+
} else Et(u, g, P);
|
|
916
916
|
return;
|
|
917
917
|
case ie:
|
|
918
918
|
b = b.type, P = Pr(b, P), Zn(u, g, b, P, j);
|
|
919
919
|
return;
|
|
920
920
|
case Ie:
|
|
921
|
-
if (j = P.children, b = b._context, P = P.value, R = b._currentValue2, b._currentValue2 = P, q = _e, _e = P = { parent: q, depth: q === null ? 0 : q.depth + 1, context: b, parentValue: R, value: P }, g.context = P,
|
|
922
|
-
P = u.parentValue, u.context._currentValue2 = P ===
|
|
921
|
+
if (j = P.children, b = b._context, P = P.value, R = b._currentValue2, b._currentValue2 = P, q = _e, _e = P = { parent: q, depth: q === null ? 0 : q.depth + 1, context: b, parentValue: R, value: P }, g.context = P, Et(u, g, j), u = _e, u === null) throw Error(t(403));
|
|
922
|
+
P = u.parentValue, u.context._currentValue2 = P === Me ? u.context._defaultValue : P, u = _e = u.parent, g.context = u;
|
|
923
923
|
return;
|
|
924
924
|
case nt:
|
|
925
|
-
P = P.children, P = P(b._currentValue2),
|
|
925
|
+
P = P.children, P = P(b._currentValue2), Et(u, g, P);
|
|
926
926
|
return;
|
|
927
927
|
case oe:
|
|
928
928
|
j = b._init, b = j(b._payload), P = Pr(b, P), Zn(
|
|
@@ -937,7 +937,7 @@ function Ql() {
|
|
|
937
937
|
throw Error(t(130, b == null ? b : typeof b, ""));
|
|
938
938
|
}
|
|
939
939
|
}
|
|
940
|
-
function
|
|
940
|
+
function Et(u, g, b) {
|
|
941
941
|
if (g.node = b, typeof b == "object" && b !== null) {
|
|
942
942
|
switch (b.$$typeof) {
|
|
943
943
|
case ae:
|
|
@@ -947,7 +947,7 @@ function Ql() {
|
|
|
947
947
|
throw Error(t(257));
|
|
948
948
|
case oe:
|
|
949
949
|
var P = b._init;
|
|
950
|
-
b = P(b._payload),
|
|
950
|
+
b = P(b._payload), Et(u, g, b);
|
|
951
951
|
return;
|
|
952
952
|
}
|
|
953
953
|
if (k(b)) {
|
|
@@ -982,7 +982,7 @@ function Ql() {
|
|
|
982
982
|
function $n(u, g, b) {
|
|
983
983
|
var P = g.blockedSegment.formatContext, j = g.legacyContext, R = g.context;
|
|
984
984
|
try {
|
|
985
|
-
return
|
|
985
|
+
return Et(u, g, b);
|
|
986
986
|
} catch (pe) {
|
|
987
987
|
if (cn(), typeof pe == "object" && pe !== null && typeof pe.then == "function") {
|
|
988
988
|
b = pe;
|
|
@@ -1030,11 +1030,11 @@ function Ql() {
|
|
|
1030
1030
|
if (pe.status === 0) {
|
|
1031
1031
|
lt(q.context);
|
|
1032
1032
|
try {
|
|
1033
|
-
|
|
1033
|
+
Et(ne, q, q.node), ne.responseState.generateStaticMarkup || pe.lastPushedText && pe.textEmbedded && pe.chunks.push("<!-- -->"), q.abortSet.delete(q), pe.status = 1, yn(ne, q.blockedBoundary, pe);
|
|
1034
1034
|
} catch (Dt) {
|
|
1035
1035
|
if (cn(), typeof Dt == "object" && Dt !== null && typeof Dt.then == "function") {
|
|
1036
|
-
var
|
|
1037
|
-
Dt.then(
|
|
1036
|
+
var ye = q.ping;
|
|
1037
|
+
Dt.then(ye, ye);
|
|
1038
1038
|
} else {
|
|
1039
1039
|
q.abortSet.delete(q), pe.status = 4;
|
|
1040
1040
|
var ke = q.blockedBoundary, Xe = Dt, Vt = Pn(ne, Xe);
|
|
@@ -1118,11 +1118,11 @@ function Ql() {
|
|
|
1118
1118
|
for (R = 0; R < j.length; R++) {
|
|
1119
1119
|
var q = j[R];
|
|
1120
1120
|
P = g;
|
|
1121
|
-
var ne = u.responseState, pe = q.id,
|
|
1121
|
+
var ne = u.responseState, pe = q.id, ye = q.errorDigest, ke = q.errorMessage, Xe = q.errorComponentStack;
|
|
1122
1122
|
if (P.push(ne.startInlineScript), ne.sentClientRenderFunction ? P.push('$RX("') : (ne.sentClientRenderFunction = !0, P.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')), pe === null) throw Error(t(395));
|
|
1123
|
-
if (P.push(pe), P.push('"'),
|
|
1123
|
+
if (P.push(pe), P.push('"'), ye || ke || Xe) {
|
|
1124
1124
|
P.push(",");
|
|
1125
|
-
var Vt = Z(
|
|
1125
|
+
var Vt = Z(ye || "");
|
|
1126
1126
|
P.push(Vt);
|
|
1127
1127
|
}
|
|
1128
1128
|
if (ke || Xe) {
|
|
@@ -1189,10 +1189,10 @@ function Ql() {
|
|
|
1189
1189
|
function Qr() {
|
|
1190
1190
|
}
|
|
1191
1191
|
function or(u, g, b, P) {
|
|
1192
|
-
var j = !1, R = null, q = "", ne = { push: function(
|
|
1193
|
-
return
|
|
1194
|
-
}, destroy: function(
|
|
1195
|
-
j = !0, R =
|
|
1192
|
+
var j = !1, R = null, q = "", ne = { push: function(ye) {
|
|
1193
|
+
return ye !== null && (q += ye), !0;
|
|
1194
|
+
}, destroy: function(ye) {
|
|
1195
|
+
j = !0, R = ye;
|
|
1196
1196
|
} }, pe = !1;
|
|
1197
1197
|
if (u = it(u, S(b, g ? g.identifierPrefix : void 0), { insertionMode: 1, selectedValue: null }, 1 / 0, Qr, void 0, function() {
|
|
1198
1198
|
pe = !0;
|
|
@@ -1201,8 +1201,8 @@ function Ql() {
|
|
|
1201
1201
|
u.destination = ne;
|
|
1202
1202
|
try {
|
|
1203
1203
|
Un(u, ne);
|
|
1204
|
-
} catch (
|
|
1205
|
-
Pn(u,
|
|
1204
|
+
} catch (ye) {
|
|
1205
|
+
Pn(u, ye), Hn(u, ye);
|
|
1206
1206
|
}
|
|
1207
1207
|
}
|
|
1208
1208
|
if (j) throw R;
|
|
@@ -1507,7 +1507,7 @@ function Ml() {
|
|
|
1507
1507
|
h = h.__html, h != null && d.push(l("" + h));
|
|
1508
1508
|
}
|
|
1509
1509
|
}
|
|
1510
|
-
function
|
|
1510
|
+
function Me(d) {
|
|
1511
1511
|
var h = "";
|
|
1512
1512
|
return e.Children.forEach(d, function(w) {
|
|
1513
1513
|
w != null && (h += w);
|
|
@@ -1586,7 +1586,7 @@ function Ml() {
|
|
|
1586
1586
|
oe(d, C, N, Ye);
|
|
1587
1587
|
}
|
|
1588
1588
|
}
|
|
1589
|
-
if (G != null) if (w = he !== null ? "" + he :
|
|
1589
|
+
if (G != null) if (w = he !== null ? "" + he : Me(ee), H(G)) {
|
|
1590
1590
|
for (C = 0; C < G.length; C++)
|
|
1591
1591
|
if ("" + G[C] === w) {
|
|
1592
1592
|
d.push(Le);
|
|
@@ -1745,14 +1745,14 @@ function Ml() {
|
|
|
1745
1745
|
return d.push(Ee), Ne(d, G, N), N;
|
|
1746
1746
|
}
|
|
1747
1747
|
}
|
|
1748
|
-
var Gt = A("</"),
|
|
1748
|
+
var Gt = A("</"), vt = A(">"), lt = A('<template id="'), z = A('"></template>'), Ae = A("<!--$-->"), se = A('<!--$?--><template id="'), Ce = A('"></template>'), ue = A("<!--$!-->"), $e = A("<!--/$-->"), ze = A("<template"), Qe = A('"'), Ke = A(' data-dgst="');
|
|
1749
1749
|
A(' data-msg="'), A(' data-stck="');
|
|
1750
1750
|
var Ve = A("></template>");
|
|
1751
|
-
function
|
|
1751
|
+
function me(d, h, w) {
|
|
1752
1752
|
if (o(d, se), w === null) throw Error(t(395));
|
|
1753
1753
|
return o(d, w), s(d, Ce);
|
|
1754
1754
|
}
|
|
1755
|
-
var st = A('<div hidden id="'), tt = A('">'), Te = A("</div>"), Ot = A('<svg aria-hidden="true" style="display:none" id="'), ut = A('">'),
|
|
1755
|
+
var st = A('<div hidden id="'), tt = A('">'), Te = A("</div>"), Ot = A('<svg aria-hidden="true" style="display:none" id="'), ut = A('">'), xt = A("</svg>"), wt = A('<math aria-hidden="true" style="display:none" id="'), gt = A('">'), At = A("</math>"), Zt = A('<table hidden id="'), $t = A('">'), cn = A("</table>"), bt = A('<table hidden><tbody id="'), kt = A('">'), Pt = A("</tbody></table>"), en = A('<table hidden><tr id="'), Rt = A('">'), mt = A("</tr></table>"), Wt = A('<table hidden><colgroup id="'), pn = A('">'), Nt = A("</colgroup></table>");
|
|
1756
1756
|
function tn(d, h, w, C) {
|
|
1757
1757
|
switch (w.insertionMode) {
|
|
1758
1758
|
case 0:
|
|
@@ -1761,11 +1761,11 @@ function Ml() {
|
|
|
1761
1761
|
case 2:
|
|
1762
1762
|
return o(d, Ot), o(d, h.segmentPrefix), o(d, l(C.toString(16))), s(d, ut);
|
|
1763
1763
|
case 3:
|
|
1764
|
-
return o(d,
|
|
1764
|
+
return o(d, wt), o(d, h.segmentPrefix), o(d, l(C.toString(16))), s(d, gt);
|
|
1765
1765
|
case 4:
|
|
1766
1766
|
return o(d, Zt), o(d, h.segmentPrefix), o(d, l(C.toString(16))), s(d, $t);
|
|
1767
1767
|
case 5:
|
|
1768
|
-
return o(d,
|
|
1768
|
+
return o(d, bt), o(d, h.segmentPrefix), o(d, l(C.toString(16))), s(d, kt);
|
|
1769
1769
|
case 6:
|
|
1770
1770
|
return o(d, en), o(d, h.segmentPrefix), o(d, l(C.toString(16))), s(d, Rt);
|
|
1771
1771
|
case 7:
|
|
@@ -1783,7 +1783,7 @@ function Ml() {
|
|
|
1783
1783
|
case 1:
|
|
1784
1784
|
return s(d, Te);
|
|
1785
1785
|
case 2:
|
|
1786
|
-
return s(d,
|
|
1786
|
+
return s(d, xt);
|
|
1787
1787
|
case 3:
|
|
1788
1788
|
return s(d, At);
|
|
1789
1789
|
case 4:
|
|
@@ -1798,7 +1798,7 @@ function Ml() {
|
|
|
1798
1798
|
throw Error(t(397));
|
|
1799
1799
|
}
|
|
1800
1800
|
}
|
|
1801
|
-
var it = A('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'), hn = A('$RS("'), gn = A('","'), Pn = A('")<\/script>'), Hn = A('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'), Sr = A('$RC("'), Cr = A('","'), Pr = A('")<\/script>'), Zn = A('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),
|
|
1801
|
+
var it = A('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'), hn = A('$RS("'), gn = A('","'), Pn = A('")<\/script>'), Hn = A('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'), Sr = A('$RC("'), Cr = A('","'), Pr = A('")<\/script>'), Zn = A('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'), Et = A('$RX("'), Dr = A('"'), $n = A(")<\/script>"), er = A(","), Br = /[<\u2028\u2029]/g;
|
|
1802
1802
|
function mn(d) {
|
|
1803
1803
|
return JSON.stringify(d).replace(Br, function(h) {
|
|
1804
1804
|
switch (h) {
|
|
@@ -1852,7 +1852,7 @@ function Ml() {
|
|
|
1852
1852
|
return null;
|
|
1853
1853
|
}
|
|
1854
1854
|
var pe = {};
|
|
1855
|
-
function
|
|
1855
|
+
function ye(d, h) {
|
|
1856
1856
|
if (d = d.contextTypes, !d) return pe;
|
|
1857
1857
|
var w = {}, C;
|
|
1858
1858
|
for (C in d) w[C] = h[C];
|
|
@@ -2085,11 +2085,11 @@ function Ml() {
|
|
|
2085
2085
|
}
|
|
2086
2086
|
function So(d, h, w, C, F) {
|
|
2087
2087
|
if (typeof w == "function") if (w.prototype && w.prototype.isReactComponent) {
|
|
2088
|
-
F =
|
|
2088
|
+
F = ye(w, h.legacyContext);
|
|
2089
2089
|
var N = w.contextType;
|
|
2090
2090
|
N = new w(C, typeof N == "object" && N !== null ? N._currentValue : F), Tn(N, w, C, F), Rs(d, h, N, w);
|
|
2091
2091
|
} else {
|
|
2092
|
-
N =
|
|
2092
|
+
N = ye(w, h.legacyContext), F = Os(d, h, w, C, N);
|
|
2093
2093
|
var G = ar !== 0;
|
|
2094
2094
|
if (typeof F == "object" && F !== null && typeof F.render == "function" && F.$$typeof === void 0) Tn(F, w, C, N), Rs(d, h, F, w);
|
|
2095
2095
|
else if (G) {
|
|
@@ -2120,7 +2120,7 @@ function Ml() {
|
|
|
2120
2120
|
case "wbr":
|
|
2121
2121
|
break;
|
|
2122
2122
|
default:
|
|
2123
|
-
F.chunks.push(Gt, l(w),
|
|
2123
|
+
F.chunks.push(Gt, l(w), vt);
|
|
2124
2124
|
}
|
|
2125
2125
|
F.lastPushedText = !1;
|
|
2126
2126
|
} else {
|
|
@@ -2332,12 +2332,12 @@ function Ml() {
|
|
|
2332
2332
|
function qr(d, h, w) {
|
|
2333
2333
|
var C = w.boundary;
|
|
2334
2334
|
if (C === null) return zr(d, h, w);
|
|
2335
|
-
if (C.parentFlushed = !0, C.forceClientRender) C = C.errorDigest, s(h, ue), o(h, ze), C && (o(h, Ke), o(h, l(O(C))), o(h,
|
|
2335
|
+
if (C.parentFlushed = !0, C.forceClientRender) C = C.errorDigest, s(h, ue), o(h, ze), C && (o(h, Ke), o(h, l(O(C))), o(h, Qe)), s(h, Ve), zr(d, h, w);
|
|
2336
2336
|
else if (0 < C.pendingTasks) {
|
|
2337
2337
|
C.rootSegmentID = d.nextSegmentId++, 0 < C.completedSegments.length && d.partialBoundaries.push(C);
|
|
2338
2338
|
var F = d.responseState, N = F.nextSuspenseID++;
|
|
2339
|
-
F = A(F.boundaryPrefix + N.toString(16)), C = C.id = F,
|
|
2340
|
-
} else if (C.byteSize > d.progressiveChunkSize) C.rootSegmentID = d.nextSegmentId++, d.completedBoundaries.push(C),
|
|
2339
|
+
F = A(F.boundaryPrefix + N.toString(16)), C = C.id = F, me(h, d.responseState, C), zr(d, h, w);
|
|
2340
|
+
} else if (C.byteSize > d.progressiveChunkSize) C.rootSegmentID = d.nextSegmentId++, d.completedBoundaries.push(C), me(h, d.responseState, C.id), zr(d, h, w);
|
|
2341
2341
|
else {
|
|
2342
2342
|
if (s(h, Ae), w = C.completedSegments, w.length !== 1) throw Error(t(391));
|
|
2343
2343
|
qr(d, h, w[0]);
|
|
@@ -2376,7 +2376,7 @@ function Ml() {
|
|
|
2376
2376
|
var G = F[N];
|
|
2377
2377
|
C = h;
|
|
2378
2378
|
var ee = d.responseState, he = G.id, Be = G.errorDigest, Pe = G.errorMessage, Ye = G.errorComponentStack;
|
|
2379
|
-
if (o(C, ee.startInlineScript), ee.sentClientRenderFunction ? o(C,
|
|
2379
|
+
if (o(C, ee.startInlineScript), ee.sentClientRenderFunction ? o(C, Et) : (ee.sentClientRenderFunction = !0, o(
|
|
2380
2380
|
C,
|
|
2381
2381
|
Zn
|
|
2382
2382
|
)), he === null) throw Error(t(395));
|
|
@@ -4518,10 +4518,10 @@ function os(e) {
|
|
|
4518
4518
|
return e !== null && (e < 32 || e === 127);
|
|
4519
4519
|
}
|
|
4520
4520
|
const ss = Cn(/\d/), Gc = Cn(/[\dA-Fa-f]/), Wc = Cn(/[!-/:-@[-`{-~]/);
|
|
4521
|
-
function
|
|
4521
|
+
function ve(e) {
|
|
4522
4522
|
return e !== null && e < -2;
|
|
4523
4523
|
}
|
|
4524
|
-
function
|
|
4524
|
+
function Ct(e) {
|
|
4525
4525
|
return e !== null && (e < 0 || e === 32);
|
|
4526
4526
|
}
|
|
4527
4527
|
function Fe(e) {
|
|
@@ -4572,7 +4572,7 @@ const Kc = { tokenize: function(e) {
|
|
|
4572
4572
|
return r && (r.next = i), r = i, o(s);
|
|
4573
4573
|
}
|
|
4574
4574
|
function o(s) {
|
|
4575
|
-
return s === null ? (e.exit("chunkText"), e.exit("paragraph"), void e.consume(s)) :
|
|
4575
|
+
return s === null ? (e.exit("chunkText"), e.exit("paragraph"), void e.consume(s)) : ve(s) ? (e.consume(s), e.exit("chunkText"), n) : (e.consume(s), o);
|
|
4576
4576
|
}
|
|
4577
4577
|
} }, Xc = { tokenize: function(e) {
|
|
4578
4578
|
const t = this, r = [];
|
|
@@ -4625,7 +4625,7 @@ const Kc = { tokenize: function(e) {
|
|
|
4625
4625
|
return E === null ? (n && I(), k(0), void e.consume(E)) : (n = n || t.parser.flow(t.now()), e.enter("chunkFlow", { _tokenizer: n, contentType: "flow", previous: o }), D(E));
|
|
4626
4626
|
}
|
|
4627
4627
|
function D(E) {
|
|
4628
|
-
return E === null ? (y(e.exit("chunkFlow"), !0), k(0), void e.consume(E)) :
|
|
4628
|
+
return E === null ? (y(e.exit("chunkFlow"), !0), k(0), void e.consume(E)) : ve(E) ? (e.consume(E), y(e.exit("chunkFlow")), i = 0, t.interrupt = void 0, a) : (e.consume(E), D);
|
|
4629
4629
|
}
|
|
4630
4630
|
function y(E, T) {
|
|
4631
4631
|
const _ = t.sliceStream(E);
|
|
@@ -4660,7 +4660,7 @@ const Kc = { tokenize: function(e) {
|
|
|
4660
4660
|
return We(e, e.attempt(this.parser.constructs.document, t, r), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
4661
4661
|
} };
|
|
4662
4662
|
function Ei(e) {
|
|
4663
|
-
return e === null ||
|
|
4663
|
+
return e === null || Ct(e) || Yc(e) ? 1 : Vc(e) ? 2 : void 0;
|
|
4664
4664
|
}
|
|
4665
4665
|
function xs(e, t, r) {
|
|
4666
4666
|
const n = [];
|
|
@@ -4737,7 +4737,7 @@ const Jc = { name: "autolink", tokenize: function(e, t, r) {
|
|
|
4737
4737
|
return Fe(o) ? We(e, n, "linePrefix")(o) : n(o);
|
|
4738
4738
|
};
|
|
4739
4739
|
function n(o) {
|
|
4740
|
-
return o === null ||
|
|
4740
|
+
return o === null || ve(o) ? t(o) : r(o);
|
|
4741
4741
|
}
|
|
4742
4742
|
} }, Xa = { continuation: { tokenize: function(e, t, r) {
|
|
4743
4743
|
const n = this;
|
|
@@ -4812,7 +4812,7 @@ const Jc = { name: "autolink", tokenize: function(e, t, r) {
|
|
|
4812
4812
|
return L === s ? (Q++, E.consume(L), H) : Q >= a ? (E.exit("codeFencedFenceSequence"), Fe(L) ? We(E, K, "whitespace")(L) : K(L)) : _(L);
|
|
4813
4813
|
}
|
|
4814
4814
|
function K(L) {
|
|
4815
|
-
return L === null ||
|
|
4815
|
+
return L === null || ve(L) ? (E.exit("codeFencedFence"), T(L)) : _(L);
|
|
4816
4816
|
}
|
|
4817
4817
|
} };
|
|
4818
4818
|
let s, i = 0, a = 0;
|
|
@@ -4826,16 +4826,16 @@ const Jc = { name: "autolink", tokenize: function(e, t, r) {
|
|
|
4826
4826
|
return E === s ? (a++, e.consume(E), l) : a < 3 ? r(E) : (e.exit("codeFencedFenceSequence"), Fe(E) ? We(e, A, "whitespace")(E) : A(E));
|
|
4827
4827
|
}
|
|
4828
4828
|
function A(E) {
|
|
4829
|
-
return E === null ||
|
|
4829
|
+
return E === null || ve(E) ? (e.exit("codeFencedFence"), n.interrupt ? t(E) : e.check(ki, m, I)(E)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", { contentType: "string" }), c(E));
|
|
4830
4830
|
}
|
|
4831
4831
|
function c(E) {
|
|
4832
|
-
return E === null ||
|
|
4832
|
+
return E === null || ve(E) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), A(E)) : Fe(E) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), We(e, p, "whitespace")(E)) : E === 96 && E === s ? r(E) : (e.consume(E), c);
|
|
4833
4833
|
}
|
|
4834
4834
|
function p(E) {
|
|
4835
|
-
return E === null ||
|
|
4835
|
+
return E === null || ve(E) ? A(E) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", { contentType: "string" }), f(E));
|
|
4836
4836
|
}
|
|
4837
4837
|
function f(E) {
|
|
4838
|
-
return E === null ||
|
|
4838
|
+
return E === null || ve(E) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), A(E)) : E === 96 && E === s ? r(E) : (e.consume(E), f);
|
|
4839
4839
|
}
|
|
4840
4840
|
function m(E) {
|
|
4841
4841
|
return e.attempt(o, I, v)(E);
|
|
@@ -4847,10 +4847,10 @@ const Jc = { name: "autolink", tokenize: function(e, t, r) {
|
|
|
4847
4847
|
return i > 0 && Fe(E) ? We(e, y, "linePrefix", i + 1)(E) : y(E);
|
|
4848
4848
|
}
|
|
4849
4849
|
function y(E) {
|
|
4850
|
-
return E === null ||
|
|
4850
|
+
return E === null || ve(E) ? e.check(ki, m, I)(E) : (e.enter("codeFlowValue"), k(E));
|
|
4851
4851
|
}
|
|
4852
4852
|
function k(E) {
|
|
4853
|
-
return E === null ||
|
|
4853
|
+
return E === null || ve(E) ? (e.exit("codeFlowValue"), y(E)) : (e.consume(E), k);
|
|
4854
4854
|
}
|
|
4855
4855
|
function I(E) {
|
|
4856
4856
|
return e.exit("codeFenced"), t(E);
|
|
@@ -4865,10 +4865,10 @@ const Jc = { name: "autolink", tokenize: function(e, t, r) {
|
|
|
4865
4865
|
return A && A[1].type === "linePrefix" && A[2].sliceSerialize(A[1], !0).length >= 4 ? s(l) : r(l);
|
|
4866
4866
|
}
|
|
4867
4867
|
function s(l) {
|
|
4868
|
-
return l === null ? a(l) :
|
|
4868
|
+
return l === null ? a(l) : ve(l) ? e.attempt(Zc, s, a)(l) : (e.enter("codeFlowValue"), i(l));
|
|
4869
4869
|
}
|
|
4870
4870
|
function i(l) {
|
|
4871
|
-
return l === null ||
|
|
4871
|
+
return l === null || ve(l) ? (e.exit("codeFlowValue"), s(l)) : (e.consume(l), i);
|
|
4872
4872
|
}
|
|
4873
4873
|
function a(l) {
|
|
4874
4874
|
return e.exit("codeIndented"), t(l);
|
|
@@ -4877,11 +4877,11 @@ const Jc = { name: "autolink", tokenize: function(e, t, r) {
|
|
|
4877
4877
|
const n = this;
|
|
4878
4878
|
return o;
|
|
4879
4879
|
function o(i) {
|
|
4880
|
-
return n.parser.lazy[n.now().line] ? r(i) :
|
|
4880
|
+
return n.parser.lazy[n.now().line] ? r(i) : ve(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), o) : We(e, s, "linePrefix", 5)(i);
|
|
4881
4881
|
}
|
|
4882
4882
|
function s(i) {
|
|
4883
4883
|
const a = n.events[n.events.length - 1];
|
|
4884
|
-
return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? t(i) :
|
|
4884
|
+
return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? t(i) : ve(i) ? o(i) : r(i);
|
|
4885
4885
|
}
|
|
4886
4886
|
} }, $c = { name: "codeText", previous: function(e) {
|
|
4887
4887
|
return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
|
|
@@ -4904,10 +4904,10 @@ const Jc = { name: "autolink", tokenize: function(e, t, r) {
|
|
|
4904
4904
|
return c === 96 ? (e.consume(c), s++, i) : (e.exit("codeTextSequence"), a(c));
|
|
4905
4905
|
}
|
|
4906
4906
|
function a(c) {
|
|
4907
|
-
return c === null ? r(c) : c === 32 ? (e.enter("space"), e.consume(c), e.exit("space"), a) : c === 96 ? (o = e.enter("codeTextSequence"), n = 0, A(c)) :
|
|
4907
|
+
return c === null ? r(c) : c === 32 ? (e.enter("space"), e.consume(c), e.exit("space"), a) : c === 96 ? (o = e.enter("codeTextSequence"), n = 0, A(c)) : ve(c) ? (e.enter("lineEnding"), e.consume(c), e.exit("lineEnding"), a) : (e.enter("codeTextData"), l(c));
|
|
4908
4908
|
}
|
|
4909
4909
|
function l(c) {
|
|
4910
|
-
return c === null || c === 32 || c === 96 ||
|
|
4910
|
+
return c === null || c === 32 || c === 96 || ve(c) ? (e.exit("codeTextData"), a(c)) : (e.consume(c), l);
|
|
4911
4911
|
}
|
|
4912
4912
|
function A(c) {
|
|
4913
4913
|
return c === 96 ? (e.consume(c), n++, A) : n === s ? (e.exit("codeTextSequence"), e.exit("codeText"), t(c)) : (o.type = "codeTextData", l(c));
|
|
@@ -5009,7 +5009,7 @@ const nu = { resolve: function(e) {
|
|
|
5009
5009
|
return e.enter("content"), r = e.enter("chunkContent", { contentType: "content" }), n(i);
|
|
5010
5010
|
};
|
|
5011
5011
|
function n(i) {
|
|
5012
|
-
return i === null ? o(i) :
|
|
5012
|
+
return i === null ? o(i) : ve(i) ? e.check(ru, s, o)(i) : (e.consume(i), n);
|
|
5013
5013
|
}
|
|
5014
5014
|
function o(i) {
|
|
5015
5015
|
return e.exit("chunkContent"), e.exit("content"), t(i);
|
|
@@ -5023,7 +5023,7 @@ const nu = { resolve: function(e) {
|
|
|
5023
5023
|
return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(s), e.exit("lineEnding"), We(e, o, "linePrefix");
|
|
5024
5024
|
};
|
|
5025
5025
|
function o(s) {
|
|
5026
|
-
if (s === null ||
|
|
5026
|
+
if (s === null || ve(s)) return r(s);
|
|
5027
5027
|
const i = n.events[n.events.length - 1];
|
|
5028
5028
|
return !n.parser.constructs.disable.null.includes("codeIndented") && i && i[1].type === "linePrefix" && i[2].sliceSerialize(i[1], !0).length >= 4 ? t(s) : e.interrupt(n.parser.constructs.flow, r, t)(s);
|
|
5029
5029
|
}
|
|
@@ -5038,13 +5038,13 @@ function el(e, t, r, n, o, s, i, a, l) {
|
|
|
5038
5038
|
return y === 62 ? (e.enter(s), e.consume(y), e.exit(s), e.exit(o), e.exit(n), t) : (e.enter(a), e.enter("chunkString", { contentType: "string" }), f(y));
|
|
5039
5039
|
}
|
|
5040
5040
|
function f(y) {
|
|
5041
|
-
return y === 62 ? (e.exit("chunkString"), e.exit(a), p(y)) : y === null || y === 60 ||
|
|
5041
|
+
return y === 62 ? (e.exit("chunkString"), e.exit(a), p(y)) : y === null || y === 60 || ve(y) ? r(y) : (e.consume(y), y === 92 ? m : f);
|
|
5042
5042
|
}
|
|
5043
5043
|
function m(y) {
|
|
5044
5044
|
return y === 60 || y === 62 || y === 92 ? (e.consume(y), f) : f(y);
|
|
5045
5045
|
}
|
|
5046
5046
|
function v(y) {
|
|
5047
|
-
return c || y !== null && y !== 41 && !
|
|
5047
|
+
return c || y !== null && y !== 41 && !Ct(y) ? c < A && y === 40 ? (e.consume(y), c++, v) : y === 41 ? (e.consume(y), c--, v) : y === null || y === 32 || y === 40 || os(y) ? r(y) : (e.consume(y), y === 92 ? D : v) : (e.exit("chunkString"), e.exit(a), e.exit(i), e.exit(n), t(y));
|
|
5048
5048
|
}
|
|
5049
5049
|
function D(y) {
|
|
5050
5050
|
return y === 40 || y === 41 || y === 92 ? (e.consume(y), v) : v(y);
|
|
@@ -5057,10 +5057,10 @@ function tl(e, t, r, n, o, s) {
|
|
|
5057
5057
|
return e.enter(n), e.enter(o), e.consume(f), e.exit(o), e.enter(s), A;
|
|
5058
5058
|
};
|
|
5059
5059
|
function A(f) {
|
|
5060
|
-
return l > 999 || f === null || f === 91 || f === 93 && !a || f === 94 && !l && "_hiddenFootnoteSupport" in i.parser.constructs ? r(f) : f === 93 ? (e.exit(s), e.enter(o), e.consume(f), e.exit(o), e.exit(n), t) :
|
|
5060
|
+
return l > 999 || f === null || f === 91 || f === 93 && !a || f === 94 && !l && "_hiddenFootnoteSupport" in i.parser.constructs ? r(f) : f === 93 ? (e.exit(s), e.enter(o), e.consume(f), e.exit(o), e.exit(n), t) : ve(f) ? (e.enter("lineEnding"), e.consume(f), e.exit("lineEnding"), A) : (e.enter("chunkString", { contentType: "string" }), c(f));
|
|
5061
5061
|
}
|
|
5062
5062
|
function c(f) {
|
|
5063
|
-
return f === null || f === 91 || f === 93 ||
|
|
5063
|
+
return f === null || f === 91 || f === 93 || ve(f) || l++ > 999 ? (e.exit("chunkString"), A(f)) : (e.consume(f), a || (a = !Fe(f)), f === 92 ? p : c);
|
|
5064
5064
|
}
|
|
5065
5065
|
function p(f) {
|
|
5066
5066
|
return f === 91 || f === 92 || f === 93 ? (e.consume(f), l++, c) : c(f);
|
|
@@ -5075,10 +5075,10 @@ function nl(e, t, r, n, o, s) {
|
|
|
5075
5075
|
return p === i ? (e.enter(o), e.consume(p), e.exit(o), e.exit(n), t) : (e.enter(s), l(p));
|
|
5076
5076
|
}
|
|
5077
5077
|
function l(p) {
|
|
5078
|
-
return p === i ? (e.exit(s), a(i)) : p === null ? r(p) :
|
|
5078
|
+
return p === i ? (e.exit(s), a(i)) : p === null ? r(p) : ve(p) ? (e.enter("lineEnding"), e.consume(p), e.exit("lineEnding"), We(e, l, "linePrefix")) : (e.enter("chunkString", { contentType: "string" }), A(p));
|
|
5079
5079
|
}
|
|
5080
5080
|
function A(p) {
|
|
5081
|
-
return p === i || p === null ||
|
|
5081
|
+
return p === i || p === null || ve(p) ? (e.exit("chunkString"), l(p)) : (e.consume(p), p === 92 ? c : A);
|
|
5082
5082
|
}
|
|
5083
5083
|
function c(p) {
|
|
5084
5084
|
return p === i || p === 92 ? (e.consume(p), A) : A(p);
|
|
@@ -5087,7 +5087,7 @@ function nl(e, t, r, n, o, s) {
|
|
|
5087
5087
|
function mr(e, t) {
|
|
5088
5088
|
let r;
|
|
5089
5089
|
return function n(o) {
|
|
5090
|
-
return
|
|
5090
|
+
return ve(o) ? (e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), r = !0, n) : Fe(o) ? We(e, n, r ? "linePrefix" : "lineSuffix")(o) : t(o);
|
|
5091
5091
|
};
|
|
5092
5092
|
}
|
|
5093
5093
|
const ou = { name: "definition", tokenize: function(e, t, r) {
|
|
@@ -5102,7 +5102,7 @@ const ou = { name: "definition", tokenize: function(e, t, r) {
|
|
|
5102
5102
|
return o = Yn(n.sliceSerialize(n.events[n.events.length - 1][1]).slice(1, -1)), p === 58 ? (e.enter("definitionMarker"), e.consume(p), e.exit("definitionMarker"), i) : r(p);
|
|
5103
5103
|
}
|
|
5104
5104
|
function i(p) {
|
|
5105
|
-
return
|
|
5105
|
+
return Ct(p) ? mr(e, a)(p) : a(p);
|
|
5106
5106
|
}
|
|
5107
5107
|
function a(p) {
|
|
5108
5108
|
return el(e, l, r, "definitionDestination", "definitionDestinationLiteral", "definitionDestinationLiteralMarker", "definitionDestinationRaw", "definitionDestinationString")(p);
|
|
@@ -5114,11 +5114,11 @@ const ou = { name: "definition", tokenize: function(e, t, r) {
|
|
|
5114
5114
|
return Fe(p) ? We(e, c, "whitespace")(p) : c(p);
|
|
5115
5115
|
}
|
|
5116
5116
|
function c(p) {
|
|
5117
|
-
return p === null ||
|
|
5117
|
+
return p === null || ve(p) ? (e.exit("definition"), n.parser.defined.push(o), t(p)) : r(p);
|
|
5118
5118
|
}
|
|
5119
5119
|
} }, su = { partial: !0, tokenize: function(e, t, r) {
|
|
5120
5120
|
return function(i) {
|
|
5121
|
-
return
|
|
5121
|
+
return Ct(i) ? mr(e, n)(i) : r(i);
|
|
5122
5122
|
};
|
|
5123
5123
|
function n(i) {
|
|
5124
5124
|
return nl(e, o, r, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(i);
|
|
@@ -5127,14 +5127,14 @@ const ou = { name: "definition", tokenize: function(e, t, r) {
|
|
|
5127
5127
|
return Fe(i) ? We(e, s, "whitespace")(i) : s(i);
|
|
5128
5128
|
}
|
|
5129
5129
|
function s(i) {
|
|
5130
|
-
return i === null ||
|
|
5130
|
+
return i === null || ve(i) ? t(i) : r(i);
|
|
5131
5131
|
}
|
|
5132
5132
|
} }, iu = { name: "hardBreakEscape", tokenize: function(e, t, r) {
|
|
5133
5133
|
return function(o) {
|
|
5134
5134
|
return e.enter("hardBreakEscape"), e.consume(o), n;
|
|
5135
5135
|
};
|
|
5136
5136
|
function n(o) {
|
|
5137
|
-
return
|
|
5137
|
+
return ve(o) ? (e.exit("hardBreakEscape"), t(o)) : r(o);
|
|
5138
5138
|
}
|
|
5139
5139
|
} }, au = { name: "headingAtx", resolve: function(e, t) {
|
|
5140
5140
|
let r, n, o = e.length - 2, s = 3;
|
|
@@ -5147,16 +5147,16 @@ const ou = { name: "definition", tokenize: function(e, t, r) {
|
|
|
5147
5147
|
})(l);
|
|
5148
5148
|
};
|
|
5149
5149
|
function o(l) {
|
|
5150
|
-
return l === 35 && n++ < 6 ? (e.consume(l), o) : l === null ||
|
|
5150
|
+
return l === 35 && n++ < 6 ? (e.consume(l), o) : l === null || Ct(l) ? (e.exit("atxHeadingSequence"), s(l)) : r(l);
|
|
5151
5151
|
}
|
|
5152
5152
|
function s(l) {
|
|
5153
|
-
return l === 35 ? (e.enter("atxHeadingSequence"), i(l)) : l === null ||
|
|
5153
|
+
return l === 35 ? (e.enter("atxHeadingSequence"), i(l)) : l === null || ve(l) ? (e.exit("atxHeading"), t(l)) : Fe(l) ? We(e, s, "whitespace")(l) : (e.enter("atxHeadingText"), a(l));
|
|
5154
5154
|
}
|
|
5155
5155
|
function i(l) {
|
|
5156
5156
|
return l === 35 ? (e.consume(l), i) : (e.exit("atxHeadingSequence"), s(l));
|
|
5157
5157
|
}
|
|
5158
5158
|
function a(l) {
|
|
5159
|
-
return l === null || l === 35 ||
|
|
5159
|
+
return l === null || l === 35 || Ct(l) ? (e.exit("atxHeadingText"), s(l)) : (e.consume(l), a);
|
|
5160
5160
|
}
|
|
5161
5161
|
} }, lu = ["address", "article", "aside", "base", "basefont", "blockquote", "body", "caption", "center", "col", "colgroup", "dd", "details", "dialog", "dir", "div", "dl", "dt", "fieldset", "figcaption", "figure", "footer", "form", "frame", "frameset", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hr", "html", "iframe", "legend", "li", "link", "main", "menu", "menuitem", "nav", "noframes", "ol", "optgroup", "option", "p", "param", "search", "section", "summary", "table", "tbody", "td", "tfoot", "th", "thead", "title", "tr", "track", "ul"], Ci = ["pre", "script", "style", "textarea"], Au = { concrete: !0, name: "htmlFlow", resolveTo: function(e) {
|
|
5162
5162
|
let t = e.length;
|
|
@@ -5186,7 +5186,7 @@ const ou = { name: "definition", tokenize: function(e, t, r) {
|
|
|
5186
5186
|
return an(B) ? (e.consume(B), i = String.fromCharCode(B), v) : r(B);
|
|
5187
5187
|
}
|
|
5188
5188
|
function v(B) {
|
|
5189
|
-
if (B === null || B === 47 || B === 62 ||
|
|
5189
|
+
if (B === null || B === 47 || B === 62 || Ct(B)) {
|
|
5190
5190
|
const ae = B === 47, fe = i.toLowerCase();
|
|
5191
5191
|
return ae || s || !Ci.includes(fe) ? lu.includes(i.toLowerCase()) ? (o = 6, ae ? (e.consume(B), D) : n.interrupt ? t(B) : H(B)) : (o = 7, n.interrupt && !n.parser.lazy[n.now().line] ? r(B) : s ? y(B) : k(B)) : (o = 1, n.interrupt ? t(B) : H(B));
|
|
5192
5192
|
}
|
|
@@ -5211,10 +5211,10 @@ const ou = { name: "definition", tokenize: function(e, t, r) {
|
|
|
5211
5211
|
return B === null || B === 60 || B === 61 || B === 62 || B === 96 ? r(B) : B === 34 || B === 39 ? (e.consume(B), l = B, _) : Fe(B) ? (e.consume(B), T) : Q(B);
|
|
5212
5212
|
}
|
|
5213
5213
|
function _(B) {
|
|
5214
|
-
return B === l ? (e.consume(B), l = null, O) : B === null ||
|
|
5214
|
+
return B === l ? (e.consume(B), l = null, O) : B === null || ve(B) ? r(B) : (e.consume(B), _);
|
|
5215
5215
|
}
|
|
5216
5216
|
function Q(B) {
|
|
5217
|
-
return B === null || B === 34 || B === 39 || B === 47 || B === 60 || B === 61 || B === 62 || B === 96 ||
|
|
5217
|
+
return B === null || B === 34 || B === 39 || B === 47 || B === 60 || B === 61 || B === 62 || B === 96 || Ct(B) ? E(B) : (e.consume(B), Q);
|
|
5218
5218
|
}
|
|
5219
5219
|
function O(B) {
|
|
5220
5220
|
return B === 47 || B === 62 || Fe(B) ? k(B) : r(B);
|
|
@@ -5223,10 +5223,10 @@ const ou = { name: "definition", tokenize: function(e, t, r) {
|
|
|
5223
5223
|
return B === 62 ? (e.consume(B), W) : r(B);
|
|
5224
5224
|
}
|
|
5225
5225
|
function W(B) {
|
|
5226
|
-
return B === null ||
|
|
5226
|
+
return B === null || ve(B) ? H(B) : Fe(B) ? (e.consume(B), W) : r(B);
|
|
5227
5227
|
}
|
|
5228
5228
|
function H(B) {
|
|
5229
|
-
return B === 45 && o === 2 ? (e.consume(B), te) : B === 60 && o === 1 ? (e.consume(B), J) : B === 62 && o === 4 ? (e.consume(B), S) : B === 63 && o === 3 ? (e.consume(B), Z) : B === 93 && o === 5 ? (e.consume(B), Y) : !
|
|
5229
|
+
return B === 45 && o === 2 ? (e.consume(B), te) : B === 60 && o === 1 ? (e.consume(B), J) : B === 62 && o === 4 ? (e.consume(B), S) : B === 63 && o === 3 ? (e.consume(B), Z) : B === 93 && o === 5 ? (e.consume(B), Y) : !ve(B) || o !== 6 && o !== 7 ? B === null || ve(B) ? (e.exit("htmlFlowData"), K(B)) : (e.consume(B), H) : (e.exit("htmlFlowData"), e.check(cu, ce, K)(B));
|
|
5230
5230
|
}
|
|
5231
5231
|
function K(B) {
|
|
5232
5232
|
return e.check(uu, L, ce)(B);
|
|
@@ -5235,7 +5235,7 @@ const ou = { name: "definition", tokenize: function(e, t, r) {
|
|
|
5235
5235
|
return e.enter("lineEnding"), e.consume(B), e.exit("lineEnding"), X;
|
|
5236
5236
|
}
|
|
5237
5237
|
function X(B) {
|
|
5238
|
-
return B === null ||
|
|
5238
|
+
return B === null || ve(B) ? K(B) : (e.enter("htmlFlowData"), H(B));
|
|
5239
5239
|
}
|
|
5240
5240
|
function te(B) {
|
|
5241
5241
|
return B === 45 ? (e.consume(B), Z) : H(B);
|
|
@@ -5257,7 +5257,7 @@ const ou = { name: "definition", tokenize: function(e, t, r) {
|
|
|
5257
5257
|
return B === 62 ? (e.consume(B), S) : B === 45 && o === 2 ? (e.consume(B), Z) : H(B);
|
|
5258
5258
|
}
|
|
5259
5259
|
function S(B) {
|
|
5260
|
-
return B === null ||
|
|
5260
|
+
return B === null || ve(B) ? (e.exit("htmlFlowData"), ce(B)) : (e.consume(B), S);
|
|
5261
5261
|
}
|
|
5262
5262
|
function ce(B) {
|
|
5263
5263
|
return e.exit("htmlFlow"), t(B);
|
|
@@ -5269,7 +5269,7 @@ const ou = { name: "definition", tokenize: function(e, t, r) {
|
|
|
5269
5269
|
} }, uu = { partial: !0, tokenize: function(e, t, r) {
|
|
5270
5270
|
const n = this;
|
|
5271
5271
|
return function(s) {
|
|
5272
|
-
return
|
|
5272
|
+
return ve(s) ? (e.enter("lineEnding"), e.consume(s), e.exit("lineEnding"), o) : r(s);
|
|
5273
5273
|
};
|
|
5274
5274
|
function o(s) {
|
|
5275
5275
|
return n.parser.lazy[n.now().line] ? r(s) : t(s);
|
|
@@ -5290,7 +5290,7 @@ const ou = { name: "definition", tokenize: function(e, t, r) {
|
|
|
5290
5290
|
return S === 45 ? (e.consume(S), f) : r(S);
|
|
5291
5291
|
}
|
|
5292
5292
|
function c(S) {
|
|
5293
|
-
return S === null ? r(S) : S === 45 ? (e.consume(S), p) :
|
|
5293
|
+
return S === null ? r(S) : S === 45 ? (e.consume(S), p) : ve(S) ? (i = c, re(S)) : (e.consume(S), c);
|
|
5294
5294
|
}
|
|
5295
5295
|
function p(S) {
|
|
5296
5296
|
return S === 45 ? (e.consume(S), f) : c(S);
|
|
@@ -5302,7 +5302,7 @@ const ou = { name: "definition", tokenize: function(e, t, r) {
|
|
|
5302
5302
|
return S === "CDATA[".charCodeAt(s++) ? (e.consume(S), s === 6 ? v : m) : r(S);
|
|
5303
5303
|
}
|
|
5304
5304
|
function v(S) {
|
|
5305
|
-
return S === null ? r(S) : S === 93 ? (e.consume(S), D) :
|
|
5305
|
+
return S === null ? r(S) : S === 93 ? (e.consume(S), D) : ve(S) ? (i = v, re(S)) : (e.consume(S), v);
|
|
5306
5306
|
}
|
|
5307
5307
|
function D(S) {
|
|
5308
5308
|
return S === 93 ? (e.consume(S), y) : v(S);
|
|
@@ -5311,10 +5311,10 @@ const ou = { name: "definition", tokenize: function(e, t, r) {
|
|
|
5311
5311
|
return S === 62 ? J(S) : S === 93 ? (e.consume(S), y) : v(S);
|
|
5312
5312
|
}
|
|
5313
5313
|
function k(S) {
|
|
5314
|
-
return S === null || S === 62 ? J(S) :
|
|
5314
|
+
return S === null || S === 62 ? J(S) : ve(S) ? (i = k, re(S)) : (e.consume(S), k);
|
|
5315
5315
|
}
|
|
5316
5316
|
function I(S) {
|
|
5317
|
-
return S === null ? r(S) : S === 63 ? (e.consume(S), E) :
|
|
5317
|
+
return S === null ? r(S) : S === 63 ? (e.consume(S), E) : ve(S) ? (i = I, re(S)) : (e.consume(S), I);
|
|
5318
5318
|
}
|
|
5319
5319
|
function E(S) {
|
|
5320
5320
|
return S === 62 ? J(S) : I(S);
|
|
@@ -5326,31 +5326,31 @@ const ou = { name: "definition", tokenize: function(e, t, r) {
|
|
|
5326
5326
|
return S === 45 || Mt(S) ? (e.consume(S), _) : Q(S);
|
|
5327
5327
|
}
|
|
5328
5328
|
function Q(S) {
|
|
5329
|
-
return
|
|
5329
|
+
return ve(S) ? (i = Q, re(S)) : Fe(S) ? (e.consume(S), Q) : J(S);
|
|
5330
5330
|
}
|
|
5331
5331
|
function O(S) {
|
|
5332
|
-
return S === 45 || Mt(S) ? (e.consume(S), O) : S === 47 || S === 62 ||
|
|
5332
|
+
return S === 45 || Mt(S) ? (e.consume(S), O) : S === 47 || S === 62 || Ct(S) ? U(S) : r(S);
|
|
5333
5333
|
}
|
|
5334
5334
|
function U(S) {
|
|
5335
|
-
return S === 47 ? (e.consume(S), J) : S === 58 || S === 95 || an(S) ? (e.consume(S), W) :
|
|
5335
|
+
return S === 47 ? (e.consume(S), J) : S === 58 || S === 95 || an(S) ? (e.consume(S), W) : ve(S) ? (i = U, re(S)) : Fe(S) ? (e.consume(S), U) : J(S);
|
|
5336
5336
|
}
|
|
5337
5337
|
function W(S) {
|
|
5338
5338
|
return S === 45 || S === 46 || S === 58 || S === 95 || Mt(S) ? (e.consume(S), W) : H(S);
|
|
5339
5339
|
}
|
|
5340
5340
|
function H(S) {
|
|
5341
|
-
return S === 61 ? (e.consume(S), K) :
|
|
5341
|
+
return S === 61 ? (e.consume(S), K) : ve(S) ? (i = H, re(S)) : Fe(S) ? (e.consume(S), H) : U(S);
|
|
5342
5342
|
}
|
|
5343
5343
|
function K(S) {
|
|
5344
|
-
return S === null || S === 60 || S === 61 || S === 62 || S === 96 ? r(S) : S === 34 || S === 39 ? (e.consume(S), o = S, L) :
|
|
5344
|
+
return S === null || S === 60 || S === 61 || S === 62 || S === 96 ? r(S) : S === 34 || S === 39 ? (e.consume(S), o = S, L) : ve(S) ? (i = K, re(S)) : Fe(S) ? (e.consume(S), K) : (e.consume(S), X);
|
|
5345
5345
|
}
|
|
5346
5346
|
function L(S) {
|
|
5347
|
-
return S === o ? (e.consume(S), o = void 0, te) : S === null ? r(S) :
|
|
5347
|
+
return S === o ? (e.consume(S), o = void 0, te) : S === null ? r(S) : ve(S) ? (i = L, re(S)) : (e.consume(S), L);
|
|
5348
5348
|
}
|
|
5349
5349
|
function X(S) {
|
|
5350
|
-
return S === null || S === 34 || S === 39 || S === 60 || S === 61 || S === 96 ? r(S) : S === 47 || S === 62 ||
|
|
5350
|
+
return S === null || S === 34 || S === 39 || S === 60 || S === 61 || S === 96 ? r(S) : S === 47 || S === 62 || Ct(S) ? U(S) : (e.consume(S), X);
|
|
5351
5351
|
}
|
|
5352
5352
|
function te(S) {
|
|
5353
|
-
return S === 47 || S === 62 ||
|
|
5353
|
+
return S === 47 || S === 62 || Ct(S) ? U(S) : r(S);
|
|
5354
5354
|
}
|
|
5355
5355
|
function J(S) {
|
|
5356
5356
|
return S === 62 ? (e.consume(S), e.exit("htmlTextData"), e.exit("htmlText"), t) : r(S);
|
|
@@ -5415,13 +5415,13 @@ const ou = { name: "definition", tokenize: function(e, t, r) {
|
|
|
5415
5415
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(c), e.exit("resourceMarker"), n;
|
|
5416
5416
|
};
|
|
5417
5417
|
function n(c) {
|
|
5418
|
-
return
|
|
5418
|
+
return Ct(c) ? mr(e, o)(c) : o(c);
|
|
5419
5419
|
}
|
|
5420
5420
|
function o(c) {
|
|
5421
5421
|
return c === 41 ? A(c) : el(e, s, i, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(c);
|
|
5422
5422
|
}
|
|
5423
5423
|
function s(c) {
|
|
5424
|
-
return
|
|
5424
|
+
return Ct(c) ? mr(e, a)(c) : A(c);
|
|
5425
5425
|
}
|
|
5426
5426
|
function i(c) {
|
|
5427
5427
|
return r(c);
|
|
@@ -5430,7 +5430,7 @@ const ou = { name: "definition", tokenize: function(e, t, r) {
|
|
|
5430
5430
|
return c === 34 || c === 39 || c === 40 ? nl(e, l, r, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(c) : A(c);
|
|
5431
5431
|
}
|
|
5432
5432
|
function l(c) {
|
|
5433
|
-
return
|
|
5433
|
+
return Ct(c) ? mr(e, A)(c) : A(c);
|
|
5434
5434
|
}
|
|
5435
5435
|
function A(c) {
|
|
5436
5436
|
return c === 41 ? (e.enter("resourceMarker"), e.consume(c), e.exit("resourceMarker"), e.exit("resource"), t) : r(c);
|
|
@@ -5484,12 +5484,12 @@ const ou = { name: "definition", tokenize: function(e, t, r) {
|
|
|
5484
5484
|
})(a);
|
|
5485
5485
|
};
|
|
5486
5486
|
function s(a) {
|
|
5487
|
-
return a === n ? (e.enter("thematicBreakSequence"), i(a)) : o >= 3 && (a === null ||
|
|
5487
|
+
return a === n ? (e.enter("thematicBreakSequence"), i(a)) : o >= 3 && (a === null || ve(a)) ? (e.exit("thematicBreak"), t(a)) : r(a);
|
|
5488
5488
|
}
|
|
5489
5489
|
function i(a) {
|
|
5490
5490
|
return a === n ? (e.consume(a), o++, i) : (e.exit("thematicBreakSequence"), Fe(a) ? We(e, s, "whitespace")(a) : s(a));
|
|
5491
5491
|
}
|
|
5492
|
-
} },
|
|
5492
|
+
} }, St = { continuation: { tokenize: function(e, t, r) {
|
|
5493
5493
|
const n = this;
|
|
5494
5494
|
return n.containerState._closeFlow = void 0, e.check(Ao, function(s) {
|
|
5495
5495
|
return n.containerState.furtherBlankLines = n.containerState.furtherBlankLines || n.containerState.initialBlankLine, We(e, t, "listItemIndent", n.containerState.size + 1)(s);
|
|
@@ -5497,7 +5497,7 @@ const ou = { name: "definition", tokenize: function(e, t, r) {
|
|
|
5497
5497
|
return n.containerState.furtherBlankLines || !Fe(s) ? (n.containerState.furtherBlankLines = void 0, n.containerState.initialBlankLine = void 0, o(s)) : (n.containerState.furtherBlankLines = void 0, n.containerState.initialBlankLine = void 0, e.attempt(vu, t, o)(s));
|
|
5498
5498
|
});
|
|
5499
5499
|
function o(s) {
|
|
5500
|
-
return n.containerState._closeFlow = !0, n.interrupt = void 0, We(e, e.attempt(
|
|
5500
|
+
return n.containerState._closeFlow = !0, n.interrupt = void 0, We(e, e.attempt(St, t, r), "linePrefix", n.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(s);
|
|
5501
5501
|
}
|
|
5502
5502
|
} }, exit: function(e) {
|
|
5503
5503
|
e.exit(this.containerState.type);
|
|
@@ -5567,7 +5567,7 @@ const ou = { name: "definition", tokenize: function(e, t, r) {
|
|
|
5567
5567
|
return a === o ? (e.consume(a), s) : (e.exit("setextHeadingLineSequence"), Fe(a) ? We(e, i, "lineSuffix")(a) : i(a));
|
|
5568
5568
|
}
|
|
5569
5569
|
function i(a) {
|
|
5570
|
-
return a === null ||
|
|
5570
|
+
return a === null || ve(a) ? (e.exit("setextHeadingLine"), t(a)) : r(a);
|
|
5571
5571
|
}
|
|
5572
5572
|
} }, wu = { tokenize: function(e) {
|
|
5573
5573
|
const t = this, r = e.attempt(Ao, function(o) {
|
|
@@ -5637,7 +5637,7 @@ function ku(e, t) {
|
|
|
5637
5637
|
}
|
|
5638
5638
|
return e;
|
|
5639
5639
|
}
|
|
5640
|
-
const Su = { 42:
|
|
5640
|
+
const Su = { 42: St, 43: St, 45: St, 48: St, 49: St, 50: St, 51: St, 52: St, 53: St, 54: St, 55: St, 56: St, 57: St, 62: Xa }, Cu = { 91: ou }, Pu = { [-2]: No, [-1]: No, 32: No }, Du = { 35: au, 42: ro, 45: [Pi, ro], 60: Au, 61: Pi, 95: ro, 96: Si, 126: Si }, Bu = { 38: Za, 92: Ja }, Iu = { [-5]: Lo, [-4]: Lo, [-3]: Lo, 33: gu, 38: Za, 42: is, 60: [Jc, du], 91: mu, 92: [iu, Ja], 93: ks, 95: is, 96: $c }, Tu = { null: [is, bu] }, Qu = Object.freeze(Object.defineProperty({ __proto__: null, attentionMarkers: { null: [42, 95] }, contentInitial: Cu, disable: { null: [] }, document: Su, flow: Du, flowInitial: Pu, insideSpan: Tu, string: Bu, text: Iu }, Symbol.toStringTag, { value: "Module" }));
|
|
5641
5641
|
function Mu(e, t, r) {
|
|
5642
5642
|
let n = { _bufferIndex: -1, _index: 0, line: r && r.line || 1, column: r && r.column || 1, offset: r && r.offset || 0 };
|
|
5643
5643
|
const o = {}, s = [];
|
|
@@ -5645,7 +5645,7 @@ function Mu(e, t, r) {
|
|
|
5645
5645
|
const l = { attempt: D(function(I, E) {
|
|
5646
5646
|
y(I, E.from);
|
|
5647
5647
|
}), check: D(v), consume: function(I) {
|
|
5648
|
-
|
|
5648
|
+
ve(I) ? (n.line++, n.column = 1, n.offset += I === -3 ? 2 : 1, k()) : I !== -1 && (n.column++, n.offset++), n._bufferIndex < 0 ? n._index++ : (n._bufferIndex++, n._bufferIndex === i[n._index].length && (n._bufferIndex = -1, n._index++)), A.previous = I;
|
|
5649
5649
|
}, enter: function(I, E) {
|
|
5650
5650
|
const T = E || {};
|
|
5651
5651
|
return T.type = I, T.start = f(), A.events.push(["enter", T, A]), a.push(T), T;
|
|
@@ -5777,7 +5777,7 @@ function Ou(e, t, r) {
|
|
|
5777
5777
|
const sl = {}.hasOwnProperty;
|
|
5778
5778
|
function Ru(e, t, r) {
|
|
5779
5779
|
return typeof t != "string" && (r = t, t = void 0), (function(n) {
|
|
5780
|
-
const o = { transforms: [], canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"], enter: { autolink: l(_e), autolinkProtocol: L, autolinkEmail: L, atxHeading: l(Le), blockQuote: l(oe), characterEscape: L, characterReference: L, codeFenced: l(Ee), codeFencedFenceInfo: A, codeFencedFenceMeta: A, codeIndented: l(Ee, A), codeText: l(we, A), codeTextData: L, data: L, codeFlowValue: L, definition: l(Ne), definitionDestinationString: A, definitionLabelString: A, definitionTitleString: A, emphasis: l(
|
|
5780
|
+
const o = { transforms: [], canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"], enter: { autolink: l(_e), autolinkProtocol: L, autolinkEmail: L, atxHeading: l(Le), blockQuote: l(oe), characterEscape: L, characterReference: L, codeFenced: l(Ee), codeFencedFenceInfo: A, codeFencedFenceMeta: A, codeIndented: l(Ee, A), codeText: l(we, A), codeTextData: L, data: L, codeFlowValue: L, definition: l(Ne), definitionDestinationString: A, definitionLabelString: A, definitionTitleString: A, emphasis: l(Me), hardBreakEscape: l(Ue), hardBreakTrailing: l(Ue), htmlFlow: l(Ze, A), htmlFlowData: L, htmlText: l(Ze, A), htmlTextData: L, image: l(zt), label: A, link: l(_e), listItem: l(qt), listItemValue: D, listOrdered: l(xe, v), listUnordered: l(xe), paragraph: l(ht), reference: Oe, referenceString: A, resourceDestinationString: A, resourceTitleString: A, setextHeading: l(Le), strong: l(Gt), thematicBreak: l(lt) }, exit: { atxHeading: p(), atxHeadingSequence: U, autolink: p(), autolinkEmail: ie, autolinkProtocol: Je, blockQuote: p(), characterEscapeValue: X, characterReferenceMarkerHexadecimal: nt, characterReferenceMarkerNumeric: nt, characterReferenceValue: Re, characterReference: je, codeFenced: p(E), codeFencedFence: I, codeFencedFenceInfo: y, codeFencedFenceMeta: k, codeFlowValue: X, codeIndented: p(T), codeText: p(Z), codeTextData: X, data: X, definition: p(), definitionDestinationString: O, definitionLabelString: _, definitionTitleString: Q, emphasis: p(), hardBreakEscape: p(J), hardBreakTrailing: p(J), htmlFlow: p(re), htmlFlowData: X, htmlText: p(Y), htmlTextData: X, image: p(ce), label: ae, labelText: B, lineEnding: te, link: p(S), listItem: p(), listOrdered: p(), listUnordered: p(), paragraph: p(), referenceString: Ie, resourceDestinationString: fe, resourceTitleString: de, resource: be, setextHeading: p(K), setextHeadingLineSequence: H, setextHeadingText: W, strong: p(), thematicBreak: p() } };
|
|
5781
5781
|
il(o, (n || {}).mdastExtensions || []);
|
|
5782
5782
|
const s = {};
|
|
5783
5783
|
return i;
|
|
@@ -5798,17 +5798,17 @@ function Ru(e, t, r) {
|
|
|
5798
5798
|
return Ae;
|
|
5799
5799
|
}
|
|
5800
5800
|
function a(z, Ae, se) {
|
|
5801
|
-
let Ce, ue, $e, ze,
|
|
5802
|
-
for (; ++
|
|
5803
|
-
const
|
|
5804
|
-
switch (
|
|
5801
|
+
let Ce, ue, $e, ze, Qe = Ae - 1, Ke = -1, Ve = !1;
|
|
5802
|
+
for (; ++Qe <= se; ) {
|
|
5803
|
+
const me = z[Qe];
|
|
5804
|
+
switch (me[1].type) {
|
|
5805
5805
|
case "listUnordered":
|
|
5806
5806
|
case "listOrdered":
|
|
5807
5807
|
case "blockQuote":
|
|
5808
|
-
|
|
5808
|
+
me[0] === "enter" ? Ke++ : Ke--, ze = void 0;
|
|
5809
5809
|
break;
|
|
5810
5810
|
case "lineEndingBlank":
|
|
5811
|
-
|
|
5811
|
+
me[0] === "enter" && (Ce && !ze && !Ke && !$e && ($e = Qe), ze = void 0);
|
|
5812
5812
|
break;
|
|
5813
5813
|
case "linePrefix":
|
|
5814
5814
|
case "listItemValue":
|
|
@@ -5819,9 +5819,9 @@ function Ru(e, t, r) {
|
|
|
5819
5819
|
default:
|
|
5820
5820
|
ze = void 0;
|
|
5821
5821
|
}
|
|
5822
|
-
if (!Ke &&
|
|
5822
|
+
if (!Ke && me[0] === "enter" && me[1].type === "listItemPrefix" || Ke === -1 && me[0] === "exit" && (me[1].type === "listUnordered" || me[1].type === "listOrdered")) {
|
|
5823
5823
|
if (Ce) {
|
|
5824
|
-
let st =
|
|
5824
|
+
let st = Qe;
|
|
5825
5825
|
for (ue = void 0; st--; ) {
|
|
5826
5826
|
const tt = z[st];
|
|
5827
5827
|
if (tt[1].type === "lineEnding" || tt[1].type === "lineEndingBlank") {
|
|
@@ -5829,11 +5829,11 @@ function Ru(e, t, r) {
|
|
|
5829
5829
|
ue && (z[ue][1].type = "lineEndingBlank", Ve = !0), tt[1].type = "lineEnding", ue = st;
|
|
5830
5830
|
} else if (tt[1].type !== "linePrefix" && tt[1].type !== "blockQuotePrefix" && tt[1].type !== "blockQuotePrefixWhitespace" && tt[1].type !== "blockQuoteMarker" && tt[1].type !== "listItemIndent") break;
|
|
5831
5831
|
}
|
|
5832
|
-
$e && (!ue || $e < ue) && (Ce._spread = !0), Ce.end = Object.assign({}, ue ? z[ue][1].start :
|
|
5832
|
+
$e && (!ue || $e < ue) && (Ce._spread = !0), Ce.end = Object.assign({}, ue ? z[ue][1].start : me[1].end), z.splice(ue || Qe, 0, ["exit", Ce, me[2]]), Qe++, se++;
|
|
5833
5833
|
}
|
|
5834
|
-
if (
|
|
5835
|
-
const st = { type: "listItem", _spread: !1, start: Object.assign({},
|
|
5836
|
-
Ce = st, z.splice(
|
|
5834
|
+
if (me[1].type === "listItemPrefix") {
|
|
5835
|
+
const st = { type: "listItem", _spread: !1, start: Object.assign({}, me[1].start), end: void 0 };
|
|
5836
|
+
Ce = st, z.splice(Qe, 0, ["enter", st, me[2]]), Qe++, se++, $e = void 0, ze = !0;
|
|
5837
5837
|
}
|
|
5838
5838
|
}
|
|
5839
5839
|
}
|
|
@@ -5923,7 +5923,7 @@ function Ru(e, t, r) {
|
|
|
5923
5923
|
function L(z) {
|
|
5924
5924
|
const Ae = this.stack[this.stack.length - 1].children;
|
|
5925
5925
|
let se = Ae[Ae.length - 1];
|
|
5926
|
-
(!se || se.type !== "text") && (se =
|
|
5926
|
+
(!se || se.type !== "text") && (se = vt(), se.position = { start: En(z.start), end: void 0 }, Ae.push(se)), this.stack.push(se);
|
|
5927
5927
|
}
|
|
5928
5928
|
function X(z) {
|
|
5929
5929
|
const Ae = this.stack.pop();
|
|
@@ -6026,7 +6026,7 @@ function Ru(e, t, r) {
|
|
|
6026
6026
|
function Ne() {
|
|
6027
6027
|
return { type: "definition", identifier: "", label: null, title: null, url: "" };
|
|
6028
6028
|
}
|
|
6029
|
-
function
|
|
6029
|
+
function Me() {
|
|
6030
6030
|
return { type: "emphasis", children: [] };
|
|
6031
6031
|
}
|
|
6032
6032
|
function Le() {
|
|
@@ -6056,7 +6056,7 @@ function Ru(e, t, r) {
|
|
|
6056
6056
|
function Gt() {
|
|
6057
6057
|
return { type: "strong", children: [] };
|
|
6058
6058
|
}
|
|
6059
|
-
function
|
|
6059
|
+
function vt() {
|
|
6060
6060
|
return { type: "text", value: "" };
|
|
6061
6061
|
}
|
|
6062
6062
|
function lt() {
|
|
@@ -7719,7 +7719,7 @@ const Nd = "#1a5b6e", Ld = "#107180", Fd = "Arial, sans-serif", $i = "Q&A Bot",
|
|
|
7719
7719
|
const Y = x.useRef(null);
|
|
7720
7720
|
Y.current === null && (Y.current = Xi(), $r("CREATED", Y.current));
|
|
7721
7721
|
const Z = x.useRef(!1), S = x.useRef({ getSessionId: () => Y.current, isResetting: () => Z.current }), ce = x.useRef(null), B = (function(ie, oe) {
|
|
7722
|
-
const [Ee, we] = x.useState(null), [Ne,
|
|
7722
|
+
const [Ee, we] = x.useState(null), [Ne, Me] = x.useState("idle"), Le = x.useRef(null), Ue = x.useRef(null), Ze = x.useRef(!0), zt = x.useCallback(() => {
|
|
7723
7723
|
const _e = window.turnstile;
|
|
7724
7724
|
if (Ue.current && _e != null && _e.remove) {
|
|
7725
7725
|
try {
|
|
@@ -7731,27 +7731,27 @@ const Nd = "#1a5b6e", Ld = "#107180", Fd = "Arial, sans-serif", $i = "Q&A Bot",
|
|
|
7731
7731
|
Le.current && (Le.current.remove(), Le.current = null);
|
|
7732
7732
|
}, []);
|
|
7733
7733
|
return x.useEffect(() => {
|
|
7734
|
-
if (Ze.current = !0, !ie) return
|
|
7735
|
-
|
|
7734
|
+
if (Ze.current = !0, !ie) return Me("idle"), void we(null);
|
|
7735
|
+
Me("loading");
|
|
7736
7736
|
const _e = document.createElement("div");
|
|
7737
7737
|
return _e.style.position = "fixed", _e.style.left = "-9999px", _e.style.top = "-9999px", _e.style.width = "0", _e.style.height = "0", _e.style.overflow = "hidden", _e.setAttribute("aria-hidden", "true"), document.body.appendChild(_e), Le.current = _e, vl().then(() => {
|
|
7738
7738
|
if (!Ze.current) return;
|
|
7739
7739
|
const xe = window.turnstile;
|
|
7740
|
-
if (!xe || !Le.current) return ct("Turnstile API not available for silent verification"),
|
|
7740
|
+
if (!xe || !Le.current) return ct("Turnstile API not available for silent verification"), Me("failed"), void (oe == null || oe({ type: "chatbot_turnstile_silent_failed", failureReason: "api_unavailable" }));
|
|
7741
7741
|
const qt = xe.render(Le.current, { sitekey: ie, execution: "render", "refresh-expired": "auto", callback: (ht) => {
|
|
7742
|
-
Ze.current && (yr("Silent verification succeeded"), we(ht),
|
|
7743
|
-
}, "error-callback": (ht) => !Ze.current || (ct("Turnstile silent verification failed:", ht), we(null),
|
|
7744
|
-
Ze.current && (yr("Token expired, awaiting refresh"), we(null),
|
|
7742
|
+
Ze.current && (yr("Silent verification succeeded"), we(ht), Me("verified"));
|
|
7743
|
+
}, "error-callback": (ht) => !Ze.current || (ct("Turnstile silent verification failed:", ht), we(null), Me("failed"), oe?.({ type: "chatbot_turnstile_silent_failed", failureReason: "widget_error", cloudflareErrorCode: ht }), !0), "expired-callback": () => {
|
|
7744
|
+
Ze.current && (yr("Token expired, awaiting refresh"), we(null), Me("loading"));
|
|
7745
7745
|
} });
|
|
7746
7746
|
Ue.current = qt;
|
|
7747
7747
|
}).catch((xe) => {
|
|
7748
|
-
Ze.current && (ct("Failed to load Turnstile script for silent verification:", xe),
|
|
7748
|
+
Ze.current && (ct("Failed to load Turnstile script for silent verification:", xe), Me("failed"), oe?.({ type: "chatbot_turnstile_silent_failed", failureReason: "script_load_failed" }));
|
|
7749
7749
|
}), () => {
|
|
7750
7750
|
Ze.current = !1, zt();
|
|
7751
7751
|
};
|
|
7752
7752
|
}, [ie, zt]), { token: Ee, status: Ne, reset: x.useCallback(() => {
|
|
7753
7753
|
const _e = window.turnstile;
|
|
7754
|
-
Ue.current && _e != null && _e.reset && (we(null),
|
|
7754
|
+
Ue.current && _e != null && _e.reset && (we(null), Me("loading"), _e.reset(Ue.current), yr("Token consumed, resetting widget for fresh token"));
|
|
7755
7755
|
}, []) };
|
|
7756
7756
|
})(K, (ie) => {
|
|
7757
7757
|
var oe;
|
|
@@ -7781,8 +7781,8 @@ const Nd = "#1a5b6e", Ld = "#107180", Fd = "Arial, sans-serif", $i = "Q&A Bot",
|
|
|
7781
7781
|
return x.useMemo(() => {
|
|
7782
7782
|
const Ee = (we, Ne) => {
|
|
7783
7783
|
if (ie.current) {
|
|
7784
|
-
const
|
|
7785
|
-
if (
|
|
7784
|
+
const Me = getComputedStyle(ie.current).getPropertyValue(we);
|
|
7785
|
+
if (Me && Me.trim() !== "") return Me.trim();
|
|
7786
7786
|
if (ie.current.parentElement) {
|
|
7787
7787
|
const Le = getComputedStyle(ie.current.parentElement).getPropertyValue(we);
|
|
7788
7788
|
if (Le && Le.trim() !== "") return Le.trim();
|
|
@@ -7801,8 +7801,8 @@ const Nd = "#1a5b6e", Ld = "#107180", Fd = "Arial, sans-serif", $i = "Q&A Bot",
|
|
|
7801
7801
|
let { settings: oe, themeColors: Ee } = ie;
|
|
7802
7802
|
x.useEffect(() => {
|
|
7803
7803
|
Ee && (Object.entries(Ee).forEach((we) => {
|
|
7804
|
-
let [Ne,
|
|
7805
|
-
|
|
7804
|
+
let [Ne, Me] = we;
|
|
7805
|
+
Me && document.documentElement.style.setProperty(`--${Ne}`, Me);
|
|
7806
7806
|
}), Ee.primaryColor && document.documentElement.style.setProperty("--rcb-header-background", Ee.primaryColor), Ee.secondaryColor && document.documentElement.style.setProperty("--rcb-header-background-hover", Ee.secondaryColor));
|
|
7807
7807
|
}, [Ee]), x.useEffect(() => {
|
|
7808
7808
|
var we, Ne;
|
|
@@ -7811,7 +7811,7 @@ const Nd = "#1a5b6e", Ld = "#107180", Fd = "Arial, sans-serif", $i = "Q&A Bot",
|
|
|
7811
7811
|
})({ settings: Ie, themeColors: Re });
|
|
7812
7812
|
const je = x.useMemo(() => {
|
|
7813
7813
|
const ie = ((oe) => {
|
|
7814
|
-
let { endpoint: Ee, ratingEndpoint: we, agentRatingEndpoint: Ne, apiKey:
|
|
7814
|
+
let { endpoint: Ee, ratingEndpoint: we, agentRatingEndpoint: Ne, apiKey: Me, sessionId: Le, isResetting: Ue = () => !1, isLoggedIn: Ze, allowAnonAccess: zt = !1, loginUrl: _e = "/login", trackEvent: xe, getTurnstileToken: qt, resetTurnstileToken: ht, backendId: Gt, resourceContext: vt } = oe;
|
|
7815
7815
|
if (Ze === !1 && !zt) return xe?.({ type: "chatbot_login_prompt_shown" }), { qa_loop: { message: "To ask questions, please log in first.", component: V.createElement(Yi, { loginUrl: _e }), chatDisabled: !0, path: "qa_loop" } };
|
|
7816
7816
|
let lt = null, z = null, Ae = !1;
|
|
7817
7817
|
const se = { siteKey: null, token: null, pendingQuery: null, needsChallenge: !1 };
|
|
@@ -7824,12 +7824,12 @@ const Nd = "#1a5b6e", Ld = "#107180", Fd = "Arial, sans-serif", $i = "Q&A Bot",
|
|
|
7824
7824
|
if ((!Ue || !Ue()) && ze && ze.trim() !== "") {
|
|
7825
7825
|
if (ze === "👍 Helpful" || ze === "👎 Not helpful") {
|
|
7826
7826
|
if (lt) {
|
|
7827
|
-
const
|
|
7827
|
+
const Qe = ze === "👍 Helpful", Ke = z === "agent" ? Ne : we;
|
|
7828
7828
|
if (Ke) try {
|
|
7829
7829
|
const Ve = { "Content-Type": "application/json" };
|
|
7830
|
-
|
|
7831
|
-
const
|
|
7832
|
-
|
|
7830
|
+
Me && (Ve["X-API-KEY"] = Me);
|
|
7831
|
+
const me = Le();
|
|
7832
|
+
me && (Ve["X-Session-ID"] = me, Ve["X-Query-ID"] = lt), await fetch(Ke, { method: "POST", headers: Ve, credentials: "include", body: JSON.stringify(z === "agent" ? { query_id: lt, rating: Qe ? "helpful" : "not_helpful", session_id: me } : { sessionId: me, queryId: lt, rating: Qe ? 1 : 0 }) }), xe?.({ type: "chatbot_rating_sent", queryId: lt, rating: Qe ? "helpful" : "not_helpful" });
|
|
7833
7833
|
} catch (Ve) {
|
|
7834
7834
|
ct("Error sending feedback:", Ve);
|
|
7835
7835
|
}
|
|
@@ -7837,35 +7837,35 @@ const Nd = "#1a5b6e", Ld = "#107180", Fd = "Arial, sans-serif", $i = "Q&A Bot",
|
|
|
7837
7837
|
return "Thanks for the feedback!";
|
|
7838
7838
|
}
|
|
7839
7839
|
try {
|
|
7840
|
-
const
|
|
7841
|
-
lt =
|
|
7840
|
+
const Qe = fl();
|
|
7841
|
+
lt = Qe, xe?.({ type: "chatbot_question_sent", queryId: Qe, questionLength: ze.length });
|
|
7842
7842
|
const Ke = { "Content-Type": "application/json" };
|
|
7843
|
-
|
|
7843
|
+
Me && (Ke["X-API-KEY"] = Me);
|
|
7844
7844
|
const Ve = Le();
|
|
7845
|
-
Ve && (Ke["X-Session-ID"] = Ve, Ke["X-Query-ID"] =
|
|
7846
|
-
const
|
|
7847
|
-
Ve && (
|
|
7845
|
+
Ve && (Ke["X-Session-ID"] = Ve, Ke["X-Query-ID"] = Qe), Ke["X-Origin"] = vt || "access";
|
|
7846
|
+
const me = { query: ze, question_id: Qe };
|
|
7847
|
+
Ve && (me.session_id = Ve), Gt && (me._backend = Gt), vt && (me.rp_name = vt, me.resource_context = vt);
|
|
7848
7848
|
const st = qt?.();
|
|
7849
|
-
st && (
|
|
7850
|
-
const tt = Date.now(), Te = await fetch(Ee, { method: "POST", headers: Ke, credentials: "include", body: JSON.stringify(
|
|
7849
|
+
st && (me.turnstile_token = st), $r("SENT to API", { session_id: Ve, question_id: Qe });
|
|
7850
|
+
const tt = Date.now(), Te = await fetch(Ee, { method: "POST", headers: Ke, credentials: "include", body: JSON.stringify(me) });
|
|
7851
7851
|
if (!Te.ok) throw new Error(`API returned ${Te.status}`);
|
|
7852
7852
|
if ((Te.headers.get("content-type") || "").includes("text/event-stream")) {
|
|
7853
7853
|
ht?.();
|
|
7854
7854
|
const $t = ($e = Te.body) === null || $e === void 0 ? void 0 : $e.getReader();
|
|
7855
7855
|
if (!$t) throw new Error("Response body is not readable");
|
|
7856
7856
|
const cn = new TextDecoder();
|
|
7857
|
-
let
|
|
7857
|
+
let bt = "", kt = "", Pt = !1;
|
|
7858
7858
|
try {
|
|
7859
7859
|
for (; ; ) {
|
|
7860
7860
|
const { done: Rt, value: mt } = await $t.read();
|
|
7861
7861
|
if (Rt) break;
|
|
7862
|
-
|
|
7863
|
-
let Wt =
|
|
7862
|
+
bt += cn.decode(mt, { stream: !0 });
|
|
7863
|
+
let Wt = bt.indexOf(`
|
|
7864
7864
|
|
|
7865
7865
|
`);
|
|
7866
7866
|
for (; Wt !== -1; ) {
|
|
7867
|
-
const pn =
|
|
7868
|
-
|
|
7867
|
+
const pn = bt.slice(0, Wt);
|
|
7868
|
+
bt = bt.slice(Wt + 2);
|
|
7869
7869
|
let Nt, tn = "", Lt = "";
|
|
7870
7870
|
for (const it of pn.split(`
|
|
7871
7871
|
`)) it.startsWith("event: ") ? tn = it.slice(7) : it.startsWith("data: ") && (Lt = it.slice(6));
|
|
@@ -7873,7 +7873,7 @@ const Nd = "#1a5b6e", Ld = "#107180", Fd = "Arial, sans-serif", $i = "Q&A Bot",
|
|
|
7873
7873
|
try {
|
|
7874
7874
|
Nt = JSON.parse(Lt);
|
|
7875
7875
|
} catch {
|
|
7876
|
-
pl("Failed to parse SSE data:", Lt), Wt =
|
|
7876
|
+
pl("Failed to parse SSE data:", Lt), Wt = bt.indexOf(`
|
|
7877
7877
|
|
|
7878
7878
|
`);
|
|
7879
7879
|
continue;
|
|
@@ -7882,12 +7882,12 @@ const Nd = "#1a5b6e", Ld = "#107180", Fd = "Arial, sans-serif", $i = "Q&A Bot",
|
|
|
7882
7882
|
const it = Nt.message || "Processing...";
|
|
7883
7883
|
await ue.streamMessage(`_${it}_`, "BOT"), Pt = !0;
|
|
7884
7884
|
} else if (tn === "token") {
|
|
7885
|
-
|
|
7886
|
-
const it = fr(
|
|
7885
|
+
kt += Nt.content || "";
|
|
7886
|
+
const it = fr(kt);
|
|
7887
7887
|
await ue.streamMessage(it, "BOT");
|
|
7888
7888
|
} else if (tn === "done") {
|
|
7889
7889
|
const it = Nt.metadata || {};
|
|
7890
|
-
if (z = it.rating_target || null, Ae = it.is_final_response === !0,
|
|
7890
|
+
if (z = it.rating_target || null, Ae = it.is_final_response === !0, kt) console.log("[SSE DEBUG] done: tokenContent exists, skipping streamMessage, calling endStreamMessage"), await ue.endStreamMessage("BOT");
|
|
7891
7891
|
else {
|
|
7892
7892
|
const hn = Nt.response || "";
|
|
7893
7893
|
if (hn) {
|
|
@@ -7900,10 +7900,10 @@ const Nd = "#1a5b6e", Ld = "#107180", Fd = "Arial, sans-serif", $i = "Q&A Bot",
|
|
|
7900
7900
|
const it = Nt.message || "An error occurred";
|
|
7901
7901
|
ct("SSE error event:", it), Pt ? (await ue.streamMessage(it, "BOT"), await ue.endStreamMessage("BOT")) : await ue.injectMessage(it);
|
|
7902
7902
|
}
|
|
7903
|
-
Wt =
|
|
7903
|
+
Wt = bt.indexOf(`
|
|
7904
7904
|
|
|
7905
7905
|
`);
|
|
7906
|
-
} else Wt =
|
|
7906
|
+
} else Wt = bt.indexOf(`
|
|
7907
7907
|
|
|
7908
7908
|
`);
|
|
7909
7909
|
}
|
|
@@ -7914,21 +7914,21 @@ const Nd = "#1a5b6e", Ld = "#107180", Fd = "Arial, sans-serif", $i = "Q&A Bot",
|
|
|
7914
7914
|
await ue.streamMessage("I had trouble completing the response. Please try again.", "BOT"), await ue.endStreamMessage("BOT");
|
|
7915
7915
|
}
|
|
7916
7916
|
const en = Date.now() - tt;
|
|
7917
|
-
return void (xe == null || xe({ type: "chatbot_answer_received", queryId:
|
|
7917
|
+
return void (xe == null || xe({ type: "chatbot_answer_received", queryId: Qe, responseTimeMs: en, success: !0, responseLength: kt.length }));
|
|
7918
7918
|
}
|
|
7919
7919
|
const Ot = Date.now() - tt, ut = await Te.json();
|
|
7920
|
-
if (ut.requires_turnstile) return xe?.({ type: "chatbot_turnstile_shown", queryId:
|
|
7920
|
+
if (ut.requires_turnstile) return xe?.({ type: "chatbot_turnstile_shown", queryId: Qe }), se.siteKey = ut.site_key, se.pendingQuery = { query: ze, sessionId: Ve, queryId: Qe }, se.needsChallenge = !0, "One moment — verifying your session…";
|
|
7921
7921
|
ht?.();
|
|
7922
|
-
const
|
|
7923
|
-
if (!
|
|
7924
|
-
const
|
|
7925
|
-
z =
|
|
7926
|
-
const gt = fr(
|
|
7922
|
+
const xt = ut.response || ut.answer || ut.text || ut.message;
|
|
7923
|
+
if (!xt) throw new Error("Invalid response format from API");
|
|
7924
|
+
const wt = ut.metadata || {};
|
|
7925
|
+
z = wt.rating_target || null, Ae = wt.is_final_response === !0;
|
|
7926
|
+
const gt = fr(xt), At = Nn() ? Zi(ut) : "", Zt = At ? `${gt}
|
|
7927
7927
|
|
|
7928
7928
|
${At}` : gt;
|
|
7929
|
-
return await ue.injectMessage(Zt), void (xe == null || xe({ type: "chatbot_answer_received", queryId:
|
|
7930
|
-
} catch (
|
|
7931
|
-
return ct("Error in Q&A flow:",
|
|
7929
|
+
return await ue.injectMessage(Zt), void (xe == null || xe({ type: "chatbot_answer_received", queryId: Qe, responseTimeMs: Ot, success: !0, responseLength: xt.length, hasMetadata: !!At }));
|
|
7930
|
+
} catch (Qe) {
|
|
7931
|
+
return ct("Error in Q&A flow:", Qe), xe?.({ type: "chatbot_answer_error", queryId: lt ?? void 0, errorType: Qe instanceof Error ? Qe.message : "unknown" }), "I apologize, but I'm having trouble processing your question. Please try again later.";
|
|
7932
7932
|
}
|
|
7933
7933
|
}
|
|
7934
7934
|
}, options: (ue) => Ue && Ue() || ue.userInput === "👍 Helpful" || ue.userInput === "👎 Not helpful" || se.needsChallenge ? [] : Ae && z && (z === "agent" ? Ne : we) ? ["👍 Helpful", "👎 Not helpful"] : [], renderMarkdown: ["BOT"], chatDisabled: !1, component: V.createElement(Rd, { getState: () => se, onResubmit: async (ue) => {
|
|
@@ -7936,26 +7936,26 @@ ${At}` : gt;
|
|
|
7936
7936
|
if (!se.pendingQuery || !Ce) return ct("Turnstile resubmit called without pending query or injectMessage"), "error";
|
|
7937
7937
|
try {
|
|
7938
7938
|
const ze = { "Content-Type": "application/json" };
|
|
7939
|
-
|
|
7940
|
-
const
|
|
7941
|
-
se.pendingQuery.sessionId && (
|
|
7942
|
-
const Ke = await fetch(Ee, { method: "POST", headers: ze, credentials: "include", body: JSON.stringify(
|
|
7939
|
+
Me && (ze["X-API-KEY"] = Me), se.pendingQuery.sessionId && (ze["X-Session-ID"] = se.pendingQuery.sessionId, ze["X-Query-ID"] = se.pendingQuery.queryId), ze["X-Origin"] = vt || "access";
|
|
7940
|
+
const Qe = { query: se.pendingQuery.query, question_id: se.pendingQuery.queryId, turnstile_token: ue };
|
|
7941
|
+
se.pendingQuery.sessionId && (Qe.session_id = se.pendingQuery.sessionId), Gt && (Qe._backend = Gt), vt && (Qe.rp_name = vt, Qe.resource_context = vt);
|
|
7942
|
+
const Ke = await fetch(Ee, { method: "POST", headers: ze, credentials: "include", body: JSON.stringify(Qe) }), Ve = se.pendingQuery.queryId;
|
|
7943
7943
|
if (!Ke.ok) throw new Error(`API returned ${Ke.status} after Turnstile`);
|
|
7944
7944
|
if ((Ke.headers.get("content-type") || "").includes("text/event-stream")) {
|
|
7945
|
-
const
|
|
7946
|
-
if (!
|
|
7947
|
-
const
|
|
7945
|
+
const xt = ($e = Ke.body) === null || $e === void 0 ? void 0 : $e.getReader();
|
|
7946
|
+
if (!xt) throw new Error("Response body is not readable");
|
|
7947
|
+
const wt = new TextDecoder();
|
|
7948
7948
|
let gt = "", At = "", Zt = {};
|
|
7949
7949
|
for (; ; ) {
|
|
7950
|
-
const { done: cn, value:
|
|
7950
|
+
const { done: cn, value: bt } = await xt.read();
|
|
7951
7951
|
if (cn) break;
|
|
7952
|
-
gt +=
|
|
7953
|
-
let
|
|
7952
|
+
gt += wt.decode(bt, { stream: !0 });
|
|
7953
|
+
let kt = gt.indexOf(`
|
|
7954
7954
|
|
|
7955
7955
|
`);
|
|
7956
|
-
for (;
|
|
7957
|
-
const Pt = gt.slice(0,
|
|
7958
|
-
gt = gt.slice(
|
|
7956
|
+
for (; kt !== -1; ) {
|
|
7957
|
+
const Pt = gt.slice(0, kt);
|
|
7958
|
+
gt = gt.slice(kt + 2);
|
|
7959
7959
|
let en = "", Rt = "";
|
|
7960
7960
|
for (const mt of Pt.split(`
|
|
7961
7961
|
`)) mt.startsWith("event: ") ? en = mt.slice(7) : mt.startsWith("data: ") && (Rt = mt.slice(6));
|
|
@@ -7964,7 +7964,7 @@ ${At}` : gt;
|
|
|
7964
7964
|
en === "token" ? At += mt.content || "" : en === "done" && (Zt = mt.metadata || {});
|
|
7965
7965
|
} catch {
|
|
7966
7966
|
}
|
|
7967
|
-
|
|
7967
|
+
kt = gt.indexOf(`
|
|
7968
7968
|
|
|
7969
7969
|
`);
|
|
7970
7970
|
}
|
|
@@ -7974,14 +7974,14 @@ ${At}` : gt;
|
|
|
7974
7974
|
const $t = fr(At);
|
|
7975
7975
|
return await Ce($t), xe?.({ type: "chatbot_answer_received", queryId: Ve, success: !0, responseLength: At.length }), "success";
|
|
7976
7976
|
}
|
|
7977
|
-
const
|
|
7978
|
-
if (
|
|
7977
|
+
const me = await Ke.json();
|
|
7978
|
+
if (me.requires_turnstile) return se.siteKey = me.site_key, se.token = null, await Ce("Still verifying — please complete the challenge again."), "needs_another_challenge";
|
|
7979
7979
|
se.token = null, se.pendingQuery = null, se.needsChallenge = !1, se.siteKey = null;
|
|
7980
|
-
const st =
|
|
7980
|
+
const st = me.response || me.answer || me.text || me.message;
|
|
7981
7981
|
if (!st) throw new Error("Invalid response format from API");
|
|
7982
|
-
const tt =
|
|
7982
|
+
const tt = me.metadata || {};
|
|
7983
7983
|
z = tt.rating_target || null, Ae = tt.is_final_response === !0, lt = Ve;
|
|
7984
|
-
const Te = fr(st), Ot = Nn() ? Zi(
|
|
7984
|
+
const Te = fr(st), Ot = Nn() ? Zi(me) : "", ut = Ot ? `${Te}
|
|
7985
7985
|
|
|
7986
7986
|
${Ot}` : Te;
|
|
7987
7987
|
return await Ce(ut), xe?.({ type: "chatbot_answer_received", queryId: Ve, success: !0, responseLength: st.length }), "success";
|
|
@@ -8003,9 +8003,9 @@ ${Ot}` : Te;
|
|
|
8003
8003
|
we && (we.hasAttribute("tabindex") || we.setAttribute("tabindex", "0"), we.hasAttribute("data-keyboard-enabled") || (we.setAttribute("data-keyboard-enabled", "true"), we.addEventListener("keydown", (Ne) => {
|
|
8004
8004
|
if (Ne.key === "Enter" || Ne.key === " ") {
|
|
8005
8005
|
Ne.preventDefault();
|
|
8006
|
-
const
|
|
8007
|
-
if (
|
|
8008
|
-
const Ue = we[
|
|
8006
|
+
const Me = we && Object.keys(we).find((Ue) => Ue.startsWith("__reactProps"));
|
|
8007
|
+
if (Me) {
|
|
8008
|
+
const Ue = we[Me], Ze = Ue?.onMouseDown;
|
|
8009
8009
|
if (Ze && typeof Ze == "function") return void Ze(Ne);
|
|
8010
8010
|
}
|
|
8011
8011
|
const Le = new MouseEvent("mousedown", { bubbles: !0, cancelable: !0, view: window });
|
|
@@ -8018,9 +8018,9 @@ ${Ot}` : Te;
|
|
|
8018
8018
|
const ie = nt.current;
|
|
8019
8019
|
if (!ie) return;
|
|
8020
8020
|
const oe = (Ee) => {
|
|
8021
|
-
var we, Ne,
|
|
8021
|
+
var we, Ne, Me;
|
|
8022
8022
|
const Le = (Ne = (we = Ee.target).closest) === null || Ne === void 0 ? void 0 : Ne.call(we, "a");
|
|
8023
|
-
Le && Le.closest(".rcb-chat-body-container") && (Le.classList.contains("qa-bot-login-button") || Le.closest(".rcb-options-container") || Oe({ type: "chatbot_link_clicked", linkUrl: Le.href, linkText: ((
|
|
8023
|
+
Le && Le.closest(".rcb-chat-body-container") && (Le.classList.contains("qa-bot-login-button") || Le.closest(".rcb-options-container") || Oe({ type: "chatbot_link_clicked", linkUrl: Le.href, linkText: ((Me = Le.textContent) === null || Me === void 0 ? void 0 : Me.trim()) || "" }));
|
|
8024
8024
|
};
|
|
8025
8025
|
return ie.addEventListener("click", oe), () => ie.removeEventListener("click", oe);
|
|
8026
8026
|
}, [Oe]), x.useEffect(() => {
|