@dendelion/paper-camp 0.24.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/assets/{index-C1ORGbU3.js → index-15mPrQq0.js} +2 -2
- package/dist/app/assets/{index-C1ORGbU3.js.map → index-15mPrQq0.js.map} +1 -1
- package/dist/app/assets/{index-Ddz2TPW1.js → index-81fEepOO.js} +3 -3
- package/dist/app/assets/{index-Ddz2TPW1.js.map → index-81fEepOO.js.map} +1 -1
- package/dist/app/assets/{index-rxWn42R9.js → index-BBvcyiG4.js} +3 -3
- package/dist/app/assets/{index-rxWn42R9.js.map → index-BBvcyiG4.js.map} +1 -1
- package/dist/app/assets/index-BJqS77OS.js +2 -0
- package/dist/app/assets/{index-BY8Yo_l0.js.map → index-BJqS77OS.js.map} +1 -1
- package/dist/app/assets/index-BVj9hjpY.js +2 -0
- package/dist/app/assets/{index-CR8PI9q6.js.map → index-BVj9hjpY.js.map} +1 -1
- package/dist/app/assets/index-CbsAL0YR.js +2 -0
- package/dist/app/assets/{index-C3R9IAt7.js.map → index-CbsAL0YR.js.map} +1 -1
- package/dist/app/assets/index-DdZYRgzN.js +2 -0
- package/dist/app/assets/index-DdZYRgzN.js.map +1 -0
- package/dist/app/assets/index-cCrMJylm.js +3 -0
- package/dist/app/assets/index-cCrMJylm.js.map +1 -0
- package/dist/app/assets/main-CpTKYLW_.js +425 -0
- package/dist/app/assets/main-CpTKYLW_.js.map +1 -0
- package/dist/app/assets/{main-o2BbWpF4.css → main-iyjvjZKW.css} +1 -1
- package/dist/app/assets/{sidebar-section-Cqk2bPNP.js → sidebar-section-DsDt34HB.js} +2 -2
- package/dist/app/assets/{sidebar-section-Cqk2bPNP.js.map → sidebar-section-DsDt34HB.js.map} +1 -1
- package/dist/app/index.html +2 -2
- package/dist/app/toolbar.js +201 -200
- package/dist/app/toolbar.js.map +1 -1
- package/dist/chunks/dev-port.BHJn90Pm.js +52 -0
- package/dist/chunks/dev-port.BHJn90Pm.js.map +1 -0
- package/dist/chunks/{phase-progress.DvktSTIz.js → machine-registry.BdaWfuyz.js} +1450 -1350
- package/dist/chunks/machine-registry.BdaWfuyz.js.map +1 -0
- package/dist/cli/index.js +8296 -7795
- package/dist/cli/index.js.map +1 -1
- package/dist/core/desk-discovery/evidence.d.ts +21 -0
- package/dist/core/desk-discovery/evidence.d.ts.map +1 -0
- package/dist/core/desk-discovery/evidence.test.d.ts +2 -0
- package/dist/core/desk-discovery/evidence.test.d.ts.map +1 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +123 -114
- package/dist/core/machine-registry/index.d.ts +2 -0
- package/dist/core/machine-registry/index.d.ts.map +1 -0
- package/dist/core/machine-registry/machine-registry.d.ts +39 -0
- package/dist/core/machine-registry/machine-registry.d.ts.map +1 -0
- package/dist/core/machine-registry/machine-registry.test.d.ts +2 -0
- package/dist/core/machine-registry/machine-registry.test.d.ts.map +1 -0
- package/dist/core/parse/schemas.d.ts +8 -0
- package/dist/core/parse/schemas.d.ts.map +1 -1
- package/dist/core/tailnet.d.ts +14 -0
- package/dist/core/tailnet.d.ts.map +1 -0
- package/dist/core/tailnet.test.d.ts +2 -0
- package/dist/core/tailnet.test.d.ts.map +1 -0
- package/dist/types/index.d.ts +17 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +19 -17
- package/dist/types/index.js.map +1 -1
- package/dist/vite/index.js +44 -51
- package/dist/vite/index.js.map +1 -1
- package/dist/vite/proxy.d.ts +2 -1
- package/dist/vite/proxy.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/app/assets/index-B5TCF8_a.js +0 -2
- package/dist/app/assets/index-B5TCF8_a.js.map +0 -1
- package/dist/app/assets/index-BY8Yo_l0.js +0 -2
- package/dist/app/assets/index-BxRIu8zx.js +0 -3
- package/dist/app/assets/index-BxRIu8zx.js.map +0 -1
- package/dist/app/assets/index-C3R9IAt7.js +0 -2
- package/dist/app/assets/index-CR8PI9q6.js +0 -2
- package/dist/app/assets/main-DkQCGPBX.js +0 -425
- package/dist/app/assets/main-DkQCGPBX.js.map +0 -1
- package/dist/chunks/dev-port.DgdJE2bY.js +0 -43
- package/dist/chunks/dev-port.DgdJE2bY.js.map +0 -1
- package/dist/chunks/phase-progress.DvktSTIz.js.map +0 -1
package/dist/app/toolbar.js
CHANGED
|
@@ -508,7 +508,7 @@ function T(e) {
|
|
|
508
508
|
return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
509
509
|
}
|
|
510
510
|
var gh = /* @__PURE__ */ new Set(), Go = {};
|
|
511
|
-
function
|
|
511
|
+
function ar(e, t) {
|
|
512
512
|
Ur(e, t), Ur(e + "Capture", t);
|
|
513
513
|
}
|
|
514
514
|
function Ur(e, t) {
|
|
@@ -1133,7 +1133,7 @@ function i1(e, t, n, r, o, i, s, a, l) {
|
|
|
1133
1133
|
Cs || (Cs = !0, Hl = u);
|
|
1134
1134
|
}
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1136
|
+
function lr(e) {
|
|
1137
1137
|
var t = e, n = e;
|
|
1138
1138
|
if (e.alternate) for (; t.return; ) t = t.return;
|
|
1139
1139
|
else {
|
|
@@ -1152,12 +1152,12 @@ function Ph(e) {
|
|
|
1152
1152
|
return null;
|
|
1153
1153
|
}
|
|
1154
1154
|
function Ld(e) {
|
|
1155
|
-
if (
|
|
1155
|
+
if (lr(e) !== e) throw Error(T(188));
|
|
1156
1156
|
}
|
|
1157
1157
|
function s1(e) {
|
|
1158
1158
|
var t = e.alternate;
|
|
1159
1159
|
if (!t) {
|
|
1160
|
-
if (t =
|
|
1160
|
+
if (t = lr(e), t === null) throw Error(T(188));
|
|
1161
1161
|
return t !== e ? null : e;
|
|
1162
1162
|
}
|
|
1163
1163
|
for (var n = e, r = t; ; ) {
|
|
@@ -1423,9 +1423,9 @@ function b1(e, t, n, r, o) {
|
|
|
1423
1423
|
return !1;
|
|
1424
1424
|
}
|
|
1425
1425
|
function Kh(e) {
|
|
1426
|
-
var t =
|
|
1426
|
+
var t = Vn(e.target);
|
|
1427
1427
|
if (t !== null) {
|
|
1428
|
-
var n =
|
|
1428
|
+
var n = lr(t);
|
|
1429
1429
|
if (n !== null) {
|
|
1430
1430
|
if (t = n.tag, t === 13) {
|
|
1431
1431
|
if (t = Ph(n), t !== null) {
|
|
@@ -1514,7 +1514,7 @@ function oc(e, t, n, r) {
|
|
|
1514
1514
|
}
|
|
1515
1515
|
var Ns = null;
|
|
1516
1516
|
function Jl(e, t, n, r) {
|
|
1517
|
-
if (Ns = null, e = ec(r), e =
|
|
1517
|
+
if (Ns = null, e = ec(r), e = Vn(e), e !== null) if (t = lr(e), t === null) e = null;
|
|
1518
1518
|
else if (n = t.tag, n === 13) {
|
|
1519
1519
|
if (e = Ph(t), e !== null) return e;
|
|
1520
1520
|
e = null;
|
|
@@ -1943,7 +1943,7 @@ function fa(e) {
|
|
|
1943
1943
|
}
|
|
1944
1944
|
var om = fa("animationend"), im = fa("animationiteration"), sm = fa("animationstart"), am = fa("transitionend"), lm = /* @__PURE__ */ new Map(), Jd = "abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");
|
|
1945
1945
|
function $n(e, t) {
|
|
1946
|
-
lm.set(e, t),
|
|
1946
|
+
lm.set(e, t), ar(t, [e]);
|
|
1947
1947
|
}
|
|
1948
1948
|
for (var el = 0; el < Jd.length; el++) {
|
|
1949
1949
|
var tl = Jd[el], iy = tl.toLowerCase(), sy = tl[0].toUpperCase() + tl.slice(1);
|
|
@@ -1960,12 +1960,12 @@ Ur("onMouseEnter", ["mouseout", "mouseover"]);
|
|
|
1960
1960
|
Ur("onMouseLeave", ["mouseout", "mouseover"]);
|
|
1961
1961
|
Ur("onPointerEnter", ["pointerout", "pointerover"]);
|
|
1962
1962
|
Ur("onPointerLeave", ["pointerout", "pointerover"]);
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1963
|
+
ar("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" "));
|
|
1964
|
+
ar("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));
|
|
1965
|
+
ar("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]);
|
|
1966
|
+
ar("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" "));
|
|
1967
|
+
ar("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" "));
|
|
1968
|
+
ar("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
|
|
1969
1969
|
var Io = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), ay = new Set("cancel close invalid load scroll toggle".split(" ").concat(Io));
|
|
1970
1970
|
function Xd(e, t, n) {
|
|
1971
1971
|
var r = e.type || "unknown-event";
|
|
@@ -2038,7 +2038,7 @@ function rl(e, t, n, r, o) {
|
|
|
2038
2038
|
s = s.return;
|
|
2039
2039
|
}
|
|
2040
2040
|
for (; a !== null; ) {
|
|
2041
|
-
if (s =
|
|
2041
|
+
if (s = Vn(a), s === null) return;
|
|
2042
2042
|
if (l = s.tag, l === 5 || l === 6) {
|
|
2043
2043
|
r = i = s;
|
|
2044
2044
|
continue e;
|
|
@@ -2141,16 +2141,16 @@ function rl(e, t, n, r, o) {
|
|
|
2141
2141
|
}
|
|
2142
2142
|
if (!(t & 7)) {
|
|
2143
2143
|
e: {
|
|
2144
|
-
if (f = e === "mouseover" || e === "pointerover", p = e === "mouseout" || e === "pointerout", f && n !== Kl && (m = n.relatedTarget || n.fromElement) && (
|
|
2145
|
-
if ((p || f) && (f = c.window === c ? c : (f = c.ownerDocument) ? f.defaultView || f.parentWindow : window, p ? (m = n.relatedTarget || n.toElement, p = u, m = m ?
|
|
2146
|
-
if (_ = Bd, w = "onMouseLeave", g = "onMouseEnter", h = "mouse", (e === "pointerout" || e === "pointerover") && (_ = Zd, w = "onPointerLeave", g = "onPointerEnter", h = "pointer"), b = p == null ? f : wr(p), y = m == null ? f : wr(m), f = new _(w, h + "leave", p, n, c), f.target = b, f.relatedTarget = y, w = null,
|
|
2147
|
-
for (_ = p, g = m, h = 0, y = _; y; y =
|
|
2148
|
-
for (y = 0, w = g; w; w =
|
|
2149
|
-
for (; 0 < h - y; ) _ =
|
|
2150
|
-
for (; 0 < y - h; ) g =
|
|
2144
|
+
if (f = e === "mouseover" || e === "pointerover", p = e === "mouseout" || e === "pointerout", f && n !== Kl && (m = n.relatedTarget || n.fromElement) && (Vn(m) || m[Xt])) break e;
|
|
2145
|
+
if ((p || f) && (f = c.window === c ? c : (f = c.ownerDocument) ? f.defaultView || f.parentWindow : window, p ? (m = n.relatedTarget || n.toElement, p = u, m = m ? Vn(m) : null, m !== null && (b = lr(m), m !== b || m.tag !== 5 && m.tag !== 6) && (m = null)) : (p = null, m = u), p !== m)) {
|
|
2146
|
+
if (_ = Bd, w = "onMouseLeave", g = "onMouseEnter", h = "mouse", (e === "pointerout" || e === "pointerover") && (_ = Zd, w = "onPointerLeave", g = "onPointerEnter", h = "pointer"), b = p == null ? f : wr(p), y = m == null ? f : wr(m), f = new _(w, h + "leave", p, n, c), f.target = b, f.relatedTarget = y, w = null, Vn(c) === u && (_ = new _(g, h + "enter", m, n, c), _.target = y, _.relatedTarget = b, w = _), b = w, p && m) t: {
|
|
2147
|
+
for (_ = p, g = m, h = 0, y = _; y; y = dr(y)) h++;
|
|
2148
|
+
for (y = 0, w = g; w; w = dr(w)) y++;
|
|
2149
|
+
for (; 0 < h - y; ) _ = dr(_), h--;
|
|
2150
|
+
for (; 0 < y - h; ) g = dr(g), y--;
|
|
2151
2151
|
for (; h--; ) {
|
|
2152
2152
|
if (_ === g || g !== null && _ === g.alternate) break t;
|
|
2153
|
-
_ =
|
|
2153
|
+
_ = dr(_), g = dr(g);
|
|
2154
2154
|
}
|
|
2155
2155
|
_ = null;
|
|
2156
2156
|
}
|
|
@@ -2224,7 +2224,7 @@ function Is(e, t) {
|
|
|
2224
2224
|
}
|
|
2225
2225
|
return r;
|
|
2226
2226
|
}
|
|
2227
|
-
function
|
|
2227
|
+
function dr(e) {
|
|
2228
2228
|
if (e === null) return null;
|
|
2229
2229
|
do
|
|
2230
2230
|
e = e.return;
|
|
@@ -2302,7 +2302,7 @@ function rf(e) {
|
|
|
2302
2302
|
return null;
|
|
2303
2303
|
}
|
|
2304
2304
|
var eo = Math.random().toString(36).slice(2), Rt = "__reactFiber$" + eo, ri = "__reactProps$" + eo, Xt = "__reactContainer$" + eo, iu = "__reactEvents$" + eo, py = "__reactListeners$" + eo, hy = "__reactHandles$" + eo;
|
|
2305
|
-
function
|
|
2305
|
+
function Vn(e) {
|
|
2306
2306
|
var t = e[Rt];
|
|
2307
2307
|
if (t) return t;
|
|
2308
2308
|
for (var n = e.parentNode; n; ) {
|
|
@@ -2337,7 +2337,7 @@ function oe(e) {
|
|
|
2337
2337
|
function ee(e, t) {
|
|
2338
2338
|
vr++, su[vr] = e.current, e.current = t;
|
|
2339
2339
|
}
|
|
2340
|
-
var On = {}, Me = Pn(On), Ye = Pn(!1),
|
|
2340
|
+
var On = {}, Me = Pn(On), Ye = Pn(!1), Xn = On;
|
|
2341
2341
|
function Zr(e, t) {
|
|
2342
2342
|
var n = e.type.contextTypes;
|
|
2343
2343
|
if (!n) return On;
|
|
@@ -2365,12 +2365,12 @@ function dm(e, t, n) {
|
|
|
2365
2365
|
return ce({}, n, r);
|
|
2366
2366
|
}
|
|
2367
2367
|
function $s(e) {
|
|
2368
|
-
return e = (e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext || On,
|
|
2368
|
+
return e = (e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext || On, Xn = Me.current, ee(Me, e), ee(Ye, Ye.current), !0;
|
|
2369
2369
|
}
|
|
2370
2370
|
function sf(e, t, n) {
|
|
2371
2371
|
var r = e.stateNode;
|
|
2372
2372
|
if (!r) throw Error(T(169));
|
|
2373
|
-
n ? (e = dm(e, t,
|
|
2373
|
+
n ? (e = dm(e, t, Xn), r.__reactInternalMemoizedMergedChildContext = e, oe(Ye), oe(Me), ee(Me, e)) : oe(Ye), ee(Ye, n);
|
|
2374
2374
|
}
|
|
2375
2375
|
var Kt = null, ha = !1, il = !1;
|
|
2376
2376
|
function fm(e) {
|
|
@@ -2400,12 +2400,12 @@ function jn() {
|
|
|
2400
2400
|
}
|
|
2401
2401
|
return null;
|
|
2402
2402
|
}
|
|
2403
|
-
var kr = [], xr = 0, Ps = null, js = 0, dt = [], ft = 0,
|
|
2404
|
-
function
|
|
2403
|
+
var kr = [], xr = 0, Ps = null, js = 0, dt = [], ft = 0, er = null, Gt = 1, qt = "";
|
|
2404
|
+
function Bn(e, t) {
|
|
2405
2405
|
kr[xr++] = js, kr[xr++] = Ps, Ps = e, js = t;
|
|
2406
2406
|
}
|
|
2407
2407
|
function pm(e, t, n) {
|
|
2408
|
-
dt[ft++] = Gt, dt[ft++] = qt, dt[ft++] =
|
|
2408
|
+
dt[ft++] = Gt, dt[ft++] = qt, dt[ft++] = er, er = e;
|
|
2409
2409
|
var r = Gt;
|
|
2410
2410
|
e = qt;
|
|
2411
2411
|
var o = 32 - It(r) - 1;
|
|
@@ -2417,11 +2417,11 @@ function pm(e, t, n) {
|
|
|
2417
2417
|
} else Gt = 1 << i | n << o | r, qt = e;
|
|
2418
2418
|
}
|
|
2419
2419
|
function cc(e) {
|
|
2420
|
-
e.return !== null && (
|
|
2420
|
+
e.return !== null && (Bn(e, 1), pm(e, 1, 0));
|
|
2421
2421
|
}
|
|
2422
2422
|
function dc(e) {
|
|
2423
2423
|
for (; e === Ps; ) Ps = kr[--xr], kr[xr] = null, js = kr[--xr], kr[xr] = null;
|
|
2424
|
-
for (; e ===
|
|
2424
|
+
for (; e === er; ) er = dt[--ft], dt[ft] = null, qt = dt[--ft], dt[ft] = null, Gt = dt[--ft], dt[ft] = null;
|
|
2425
2425
|
}
|
|
2426
2426
|
var ot = null, rt = null, se = !1, Nt = null;
|
|
2427
2427
|
function hm(e, t) {
|
|
@@ -2436,7 +2436,7 @@ function af(e, t) {
|
|
|
2436
2436
|
case 6:
|
|
2437
2437
|
return t = e.pendingProps === "" || t.nodeType !== 3 ? null : t, t !== null ? (e.stateNode = t, ot = e, rt = null, !0) : !1;
|
|
2438
2438
|
case 13:
|
|
2439
|
-
return t = t.nodeType !== 8 ? null : t, t !== null ? (n =
|
|
2439
|
+
return t = t.nodeType !== 8 ? null : t, t !== null ? (n = er !== null ? { id: Gt, overflow: qt } : null, e.memoizedState = { dehydrated: t, treeContext: n, retryLane: 1073741824 }, n = ht(18, null, null, 0), n.stateNode = t, n.return = e, e.child = n, ot = e, rt = null, !0) : !1;
|
|
2440
2440
|
default:
|
|
2441
2441
|
return !1;
|
|
2442
2442
|
}
|
|
@@ -2566,7 +2566,7 @@ function _m(e) {
|
|
|
2566
2566
|
return h === null || h.tag !== 4 || h.stateNode.containerInfo !== y.containerInfo || h.stateNode.implementation !== y.implementation ? (h = pl(y, g.mode, w), h.return = g, h) : (h = o(h, y.children || []), h.return = g, h);
|
|
2567
2567
|
}
|
|
2568
2568
|
function c(g, h, y, w, k) {
|
|
2569
|
-
return h === null || h.tag !== 7 ? (h =
|
|
2569
|
+
return h === null || h.tag !== 7 ? (h = Jn(y, g.mode, w, k), h.return = g, h) : (h = o(h, y), h.return = g, h);
|
|
2570
2570
|
}
|
|
2571
2571
|
function d(g, h, y) {
|
|
2572
2572
|
if (typeof h == "string" && h !== "" || typeof h == "number") return h = fl("" + h, g.mode, y), h.return = g, h;
|
|
@@ -2580,7 +2580,7 @@ function _m(e) {
|
|
|
2580
2580
|
var w = h._init;
|
|
2581
2581
|
return d(g, w(h._payload), y);
|
|
2582
2582
|
}
|
|
2583
|
-
if (zo(h) || po(h)) return h =
|
|
2583
|
+
if (zo(h) || po(h)) return h = Jn(h, g.mode, y, null), h.return = g, h;
|
|
2584
2584
|
Bi(g, h);
|
|
2585
2585
|
}
|
|
2586
2586
|
return null;
|
|
@@ -2634,15 +2634,15 @@ function _m(e) {
|
|
|
2634
2634
|
}
|
|
2635
2635
|
e && S && I.alternate === null && t(g, S), h = i(I, h, C), x === null ? k = I : x.sibling = I, x = I, S = z;
|
|
2636
2636
|
}
|
|
2637
|
-
if (C === y.length) return n(g, S), se &&
|
|
2637
|
+
if (C === y.length) return n(g, S), se && Bn(g, C), k;
|
|
2638
2638
|
if (S === null) {
|
|
2639
2639
|
for (; C < y.length; C++) S = d(g, y[C], w), S !== null && (h = i(S, h, C), x === null ? k = S : x.sibling = S, x = S);
|
|
2640
|
-
return se &&
|
|
2640
|
+
return se && Bn(g, C), k;
|
|
2641
2641
|
}
|
|
2642
2642
|
for (S = r(g, S); C < y.length; C++) z = p(S, g, C, y[C], w), z !== null && (e && z.alternate !== null && S.delete(z.key === null ? C : z.key), h = i(z, h, C), x === null ? k = z : x.sibling = z, x = z);
|
|
2643
2643
|
return e && S.forEach(function(j) {
|
|
2644
2644
|
return t(g, j);
|
|
2645
|
-
}), se &&
|
|
2645
|
+
}), se && Bn(g, C), k;
|
|
2646
2646
|
}
|
|
2647
2647
|
function _(g, h, y, w) {
|
|
2648
2648
|
var k = po(y);
|
|
@@ -2660,15 +2660,15 @@ function _m(e) {
|
|
|
2660
2660
|
if (I.done) return n(
|
|
2661
2661
|
g,
|
|
2662
2662
|
S
|
|
2663
|
-
), se &&
|
|
2663
|
+
), se && Bn(g, C), k;
|
|
2664
2664
|
if (S === null) {
|
|
2665
2665
|
for (; !I.done; C++, I = y.next()) I = d(g, I.value, w), I !== null && (h = i(I, h, C), x === null ? k = I : x.sibling = I, x = I);
|
|
2666
|
-
return se &&
|
|
2666
|
+
return se && Bn(g, C), k;
|
|
2667
2667
|
}
|
|
2668
2668
|
for (S = r(g, S); !I.done; C++, I = y.next()) I = p(S, g, C, I.value, w), I !== null && (e && I.alternate !== null && S.delete(I.key === null ? C : I.key), h = i(I, h, C), x === null ? k = I : x.sibling = I, x = I);
|
|
2669
2669
|
return e && S.forEach(function(P) {
|
|
2670
2670
|
return t(g, P);
|
|
2671
|
-
}), se &&
|
|
2671
|
+
}), se && Bn(g, C), k;
|
|
2672
2672
|
}
|
|
2673
2673
|
function b(g, h, y, w) {
|
|
2674
2674
|
if (typeof y == "object" && y !== null && y.type === _r && y.key === null && (y = y.props.children), typeof y == "object" && y !== null) {
|
|
@@ -2691,7 +2691,7 @@ function _m(e) {
|
|
|
2691
2691
|
} else t(g, x);
|
|
2692
2692
|
x = x.sibling;
|
|
2693
2693
|
}
|
|
2694
|
-
y.type === _r ? (h =
|
|
2694
|
+
y.type === _r ? (h = Jn(y.props.children, g.mode, w, y.key), h.return = g, g = h) : (w = gs(y.type, y.key, y.props, null, g.mode, w), w.ref = yo(g, h, y), w.return = g, g = w);
|
|
2695
2695
|
}
|
|
2696
2696
|
return s(g);
|
|
2697
2697
|
case mr:
|
|
@@ -2747,9 +2747,9 @@ function yt(e) {
|
|
|
2747
2747
|
} else Sr = Sr.next = e;
|
|
2748
2748
|
return t;
|
|
2749
2749
|
}
|
|
2750
|
-
var
|
|
2750
|
+
var Kn = null;
|
|
2751
2751
|
function _c(e) {
|
|
2752
|
-
|
|
2752
|
+
Kn === null ? Kn = [e] : Kn.push(e);
|
|
2753
2753
|
}
|
|
2754
2754
|
function ym(e, t, n, r) {
|
|
2755
2755
|
var o = t.interleaved;
|
|
@@ -2860,7 +2860,7 @@ function Fs(e, t, n, r) {
|
|
|
2860
2860
|
s |= o.lane, o = o.next;
|
|
2861
2861
|
while (o !== t);
|
|
2862
2862
|
} else i === null && (o.shared.lanes = 0);
|
|
2863
|
-
|
|
2863
|
+
nr |= s, e.lanes = s, e.memoizedState = d;
|
|
2864
2864
|
}
|
|
2865
2865
|
}
|
|
2866
2866
|
function df(e, t, n) {
|
|
@@ -2873,7 +2873,7 @@ function df(e, t, n) {
|
|
|
2873
2873
|
}
|
|
2874
2874
|
}
|
|
2875
2875
|
var wi = {}, Bt = Pn(wi), oi = Pn(wi), ii = Pn(wi);
|
|
2876
|
-
function
|
|
2876
|
+
function Gn(e) {
|
|
2877
2877
|
if (e === wi) throw Error(T(174));
|
|
2878
2878
|
return e;
|
|
2879
2879
|
}
|
|
@@ -2892,8 +2892,8 @@ function Kr() {
|
|
|
2892
2892
|
oe(Bt), oe(oi), oe(ii);
|
|
2893
2893
|
}
|
|
2894
2894
|
function wm(e) {
|
|
2895
|
-
|
|
2896
|
-
var t =
|
|
2895
|
+
Gn(ii.current);
|
|
2896
|
+
var t = Gn(Bt.current), n = Zl(t, e.type);
|
|
2897
2897
|
t !== n && (ee(oi, e), ee(Bt, n));
|
|
2898
2898
|
}
|
|
2899
2899
|
function bc(e) {
|
|
@@ -2925,7 +2925,7 @@ function wc() {
|
|
|
2925
2925
|
for (var e = 0; e < sl.length; e++) sl[e]._workInProgressVersionPrimary = null;
|
|
2926
2926
|
sl.length = 0;
|
|
2927
2927
|
}
|
|
2928
|
-
var fs = nn.ReactCurrentDispatcher, al = nn.ReactCurrentBatchConfig,
|
|
2928
|
+
var fs = nn.ReactCurrentDispatcher, al = nn.ReactCurrentBatchConfig, tr = 0, ue = null, we = null, ke = null, Ds = !1, Ro = !1, si = 0, gy = 0;
|
|
2929
2929
|
function $e() {
|
|
2930
2930
|
throw Error(T(321));
|
|
2931
2931
|
}
|
|
@@ -2935,14 +2935,14 @@ function vc(e, t) {
|
|
|
2935
2935
|
return !0;
|
|
2936
2936
|
}
|
|
2937
2937
|
function kc(e, t, n, r, o, i) {
|
|
2938
|
-
if (
|
|
2938
|
+
if (tr = i, ue = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, fs.current = e === null || e.memoizedState === null ? vy : ky, e = n(r, o), Ro) {
|
|
2939
2939
|
i = 0;
|
|
2940
2940
|
do {
|
|
2941
2941
|
if (Ro = !1, si = 0, 25 <= i) throw Error(T(301));
|
|
2942
2942
|
i += 1, ke = we = null, t.updateQueue = null, fs.current = xy, e = n(r, o);
|
|
2943
2943
|
} while (Ro);
|
|
2944
2944
|
}
|
|
2945
|
-
if (fs.current = Bs, t = we !== null && we.next !== null,
|
|
2945
|
+
if (fs.current = Bs, t = we !== null && we.next !== null, tr = 0, ke = we = ue = null, Ds = !1, t) throw Error(T(300));
|
|
2946
2946
|
return e;
|
|
2947
2947
|
}
|
|
2948
2948
|
function xc() {
|
|
@@ -2986,7 +2986,7 @@ function ll(e) {
|
|
|
2986
2986
|
var a = s = null, l = null, u = i;
|
|
2987
2987
|
do {
|
|
2988
2988
|
var c = u.lane;
|
|
2989
|
-
if ((
|
|
2989
|
+
if ((tr & c) === c) l !== null && (l = l.next = { lane: 0, action: u.action, hasEagerState: u.hasEagerState, eagerState: u.eagerState, next: null }), r = u.hasEagerState ? u.eagerState : e(r, u.action);
|
|
2990
2990
|
else {
|
|
2991
2991
|
var d = {
|
|
2992
2992
|
lane: c,
|
|
@@ -2995,7 +2995,7 @@ function ll(e) {
|
|
|
2995
2995
|
eagerState: u.eagerState,
|
|
2996
2996
|
next: null
|
|
2997
2997
|
};
|
|
2998
|
-
l === null ? (a = l = d, s = r) : l = l.next = d, ue.lanes |= c,
|
|
2998
|
+
l === null ? (a = l = d, s = r) : l = l.next = d, ue.lanes |= c, nr |= c;
|
|
2999
2999
|
}
|
|
3000
3000
|
u = u.next;
|
|
3001
3001
|
} while (u !== null && u !== i);
|
|
@@ -3004,7 +3004,7 @@ function ll(e) {
|
|
|
3004
3004
|
if (e = n.interleaved, e !== null) {
|
|
3005
3005
|
o = e;
|
|
3006
3006
|
do
|
|
3007
|
-
i = o.lane, ue.lanes |= i,
|
|
3007
|
+
i = o.lane, ue.lanes |= i, nr |= i, o = o.next;
|
|
3008
3008
|
while (o !== e);
|
|
3009
3009
|
} else o === null && (n.lanes = 0);
|
|
3010
3010
|
return [t.memoizedState, n.dispatch];
|
|
@@ -3030,7 +3030,7 @@ function km(e, t) {
|
|
|
3030
3030
|
var n = ue, r = bt(), o = t(), i = !At(r.memoizedState, o);
|
|
3031
3031
|
if (i && (r.memoizedState = o, He = !0), r = r.queue, Sc(Cm.bind(null, n, r, e), [e]), r.getSnapshot !== t || i || ke !== null && ke.memoizedState.tag & 1) {
|
|
3032
3032
|
if (n.flags |= 2048, li(9, Sm.bind(null, n, r, o, t), void 0, null), xe === null) throw Error(T(349));
|
|
3033
|
-
|
|
3033
|
+
tr & 30 || xm(n, t, o);
|
|
3034
3034
|
}
|
|
3035
3035
|
return o;
|
|
3036
3036
|
}
|
|
@@ -3124,7 +3124,7 @@ function Pm(e, t) {
|
|
|
3124
3124
|
return r !== null && t !== null && vc(t, r[1]) ? r[0] : (e = e(), n.memoizedState = [e, t], e);
|
|
3125
3125
|
}
|
|
3126
3126
|
function jm(e, t, n) {
|
|
3127
|
-
return
|
|
3127
|
+
return tr & 21 ? (At(n, t) || (n = Dh(), ue.lanes |= n, nr |= n, e.baseState = !0), t) : (e.baseState && (e.baseState = !1, He = !0), e.memoizedState = n);
|
|
3128
3128
|
}
|
|
3129
3129
|
function yy(e, t) {
|
|
3130
3130
|
var n = Q;
|
|
@@ -3216,7 +3216,7 @@ var Bs = { readContext: yt, useCallback: $e, useContext: $e, useEffect: $e, useI
|
|
|
3216
3216
|
n = n();
|
|
3217
3217
|
} else {
|
|
3218
3218
|
if (n = t(), xe === null) throw Error(T(349));
|
|
3219
|
-
|
|
3219
|
+
tr & 30 || xm(r, t, n);
|
|
3220
3220
|
}
|
|
3221
3221
|
o.memoizedState = n;
|
|
3222
3222
|
var i = { value: n, getSnapshot: t };
|
|
@@ -3281,7 +3281,7 @@ function cu(e, t, n, r) {
|
|
|
3281
3281
|
t = e.memoizedState, n = n(r, t), n = n == null ? t : ce({}, t, n), e.memoizedState = n, e.lanes === 0 && (e.updateQueue.baseState = n);
|
|
3282
3282
|
}
|
|
3283
3283
|
var _a = { isMounted: function(e) {
|
|
3284
|
-
return (e = e._reactInternals) ?
|
|
3284
|
+
return (e = e._reactInternals) ? lr(e) === e : !1;
|
|
3285
3285
|
}, enqueueSetState: function(e, t, n) {
|
|
3286
3286
|
e = e._reactInternals;
|
|
3287
3287
|
var r = Ue(), o = En(e), i = Yt(r, o);
|
|
@@ -3300,7 +3300,7 @@ function hf(e, t, n, r, o, i, s) {
|
|
|
3300
3300
|
}
|
|
3301
3301
|
function Dm(e, t, n) {
|
|
3302
3302
|
var r = !1, o = On, i = t.contextType;
|
|
3303
|
-
return typeof i == "object" && i !== null ? i = yt(i) : (o = Qe(t) ?
|
|
3303
|
+
return typeof i == "object" && i !== null ? i = yt(i) : (o = Qe(t) ? Xn : Me.current, r = t.contextTypes, i = (r = r != null) ? Zr(e, o) : On), t = new t(n, i), e.memoizedState = t.state !== null && t.state !== void 0 ? t.state : null, t.updater = _a, e.stateNode = t, t._reactInternals = e, r && (e = e.stateNode, e.__reactInternalMemoizedUnmaskedChildContext = o, e.__reactInternalMemoizedMaskedChildContext = i), t;
|
|
3304
3304
|
}
|
|
3305
3305
|
function mf(e, t, n, r) {
|
|
3306
3306
|
e = t.state, typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && _a.enqueueReplaceState(t, t.state, null);
|
|
@@ -3309,7 +3309,7 @@ function du(e, t, n, r) {
|
|
|
3309
3309
|
var o = e.stateNode;
|
|
3310
3310
|
o.props = n, o.state = e.memoizedState, o.refs = {}, gc(e);
|
|
3311
3311
|
var i = t.contextType;
|
|
3312
|
-
typeof i == "object" && i !== null ? o.context = yt(i) : (i = Qe(t) ?
|
|
3312
|
+
typeof i == "object" && i !== null ? o.context = yt(i) : (i = Qe(t) ? Xn : Me.current, o.context = Zr(e, i)), o.state = e.memoizedState, i = t.getDerivedStateFromProps, typeof i == "function" && (cu(e, t, i, n), o.state = e.memoizedState), typeof t.getDerivedStateFromProps == "function" || typeof o.getSnapshotBeforeUpdate == "function" || typeof o.UNSAFE_componentWillMount != "function" && typeof o.componentWillMount != "function" || (t = o.state, typeof o.componentWillMount == "function" && o.componentWillMount(), typeof o.UNSAFE_componentWillMount == "function" && o.UNSAFE_componentWillMount(), t !== o.state && _a.enqueueReplaceState(o, o.state, null), Fs(e, n, o, r), o.state = e.memoizedState), typeof o.componentDidMount == "function" && (e.flags |= 4194308);
|
|
3313
3313
|
}
|
|
3314
3314
|
function Gr(e, t) {
|
|
3315
3315
|
try {
|
|
@@ -3426,7 +3426,7 @@ function Vm(e, t) {
|
|
|
3426
3426
|
(e === null && n !== null || e !== null && e.ref !== n) && (t.flags |= 512, t.flags |= 2097152);
|
|
3427
3427
|
}
|
|
3428
3428
|
function pu(e, t, n, r, o) {
|
|
3429
|
-
var i = Qe(n) ?
|
|
3429
|
+
var i = Qe(n) ? Xn : Me.current;
|
|
3430
3430
|
return i = Zr(t, i), Lr(t, o), n = kc(e, t, n, r, i, o), r = xc(), e !== null && !He ? (t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~o, tn(e, t, o)) : (se && r && cc(t), t.flags |= 1, De(e, t, n, o), t.child);
|
|
3431
3431
|
}
|
|
3432
3432
|
function vf(e, t, n, r, o) {
|
|
@@ -3439,13 +3439,13 @@ function vf(e, t, n, r, o) {
|
|
|
3439
3439
|
var s = t.stateNode, a = t.memoizedProps;
|
|
3440
3440
|
s.props = a;
|
|
3441
3441
|
var l = s.context, u = n.contextType;
|
|
3442
|
-
typeof u == "object" && u !== null ? u = yt(u) : (u = Qe(n) ?
|
|
3442
|
+
typeof u == "object" && u !== null ? u = yt(u) : (u = Qe(n) ? Xn : Me.current, u = Zr(t, u));
|
|
3443
3443
|
var c = n.getDerivedStateFromProps, d = typeof c == "function" || typeof s.getSnapshotBeforeUpdate == "function";
|
|
3444
3444
|
d || typeof s.UNSAFE_componentWillReceiveProps != "function" && typeof s.componentWillReceiveProps != "function" || (a !== r || l !== u) && mf(t, s, r, u), hn = !1;
|
|
3445
3445
|
var f = t.memoizedState;
|
|
3446
3446
|
s.state = f, Fs(t, r, s, o), l = t.memoizedState, a !== r || f !== l || Ye.current || hn ? (typeof c == "function" && (cu(t, n, c, r), l = t.memoizedState), (a = hn || hf(t, n, a, r, f, l, u)) ? (d || typeof s.UNSAFE_componentWillMount != "function" && typeof s.componentWillMount != "function" || (typeof s.componentWillMount == "function" && s.componentWillMount(), typeof s.UNSAFE_componentWillMount == "function" && s.UNSAFE_componentWillMount()), typeof s.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof s.componentDidMount == "function" && (t.flags |= 4194308), t.memoizedProps = r, t.memoizedState = l), s.props = r, s.state = l, s.context = u, r = a) : (typeof s.componentDidMount == "function" && (t.flags |= 4194308), r = !1);
|
|
3447
3447
|
} else {
|
|
3448
|
-
s = t.stateNode, bm(e, t), a = t.memoizedProps, u = t.type === t.elementType ? a : Tt(t.type, a), s.props = u, d = t.pendingProps, f = s.context, l = n.contextType, typeof l == "object" && l !== null ? l = yt(l) : (l = Qe(n) ?
|
|
3448
|
+
s = t.stateNode, bm(e, t), a = t.memoizedProps, u = t.type === t.elementType ? a : Tt(t.type, a), s.props = u, d = t.pendingProps, f = s.context, l = n.contextType, typeof l == "object" && l !== null ? l = yt(l) : (l = Qe(n) ? Xn : Me.current, l = Zr(t, l));
|
|
3449
3449
|
var p = n.getDerivedStateFromProps;
|
|
3450
3450
|
(c = typeof p == "function" || typeof s.getSnapshotBeforeUpdate == "function") || typeof s.UNSAFE_componentWillReceiveProps != "function" && typeof s.componentWillReceiveProps != "function" || (a !== d || f !== l) && mf(t, s, r, l), hn = !1, f = t.memoizedState, s.state = f, Fs(t, r, s, o);
|
|
3451
3451
|
var m = t.memoizedState;
|
|
@@ -3475,12 +3475,12 @@ function _u(e) {
|
|
|
3475
3475
|
function Gm(e, t, n) {
|
|
3476
3476
|
var r = t.pendingProps, o = le.current, i = !1, s = (t.flags & 128) !== 0, a;
|
|
3477
3477
|
if ((a = s) || (a = e !== null && e.memoizedState === null ? !1 : (o & 2) !== 0), a ? (i = !0, t.flags &= -129) : (e === null || e.memoizedState !== null) && (o |= 1), ee(le, o & 1), e === null)
|
|
3478
|
-
return lu(t), e = t.memoizedState, e !== null && (e = e.dehydrated, e !== null) ? (t.mode & 1 ? e.data === "$!" ? t.lanes = 8 : t.lanes = 1073741824 : t.lanes = 1, null) : (s = r.children, e = r.fallback, i ? (r = t.mode, i = t.child, s = { mode: "hidden", children: s }, !(r & 1) && i !== null ? (i.childLanes = 0, i.pendingProps = s) : i = ba(s, r, 0, null), e =
|
|
3478
|
+
return lu(t), e = t.memoizedState, e !== null && (e = e.dehydrated, e !== null) ? (t.mode & 1 ? e.data === "$!" ? t.lanes = 8 : t.lanes = 1073741824 : t.lanes = 1, null) : (s = r.children, e = r.fallback, i ? (r = t.mode, i = t.child, s = { mode: "hidden", children: s }, !(r & 1) && i !== null ? (i.childLanes = 0, i.pendingProps = s) : i = ba(s, r, 0, null), e = Jn(e, r, n, null), i.return = t, e.return = t, i.sibling = e, t.child = i, t.child.memoizedState = _u(n), t.memoizedState = mu, e) : Ec(t, s));
|
|
3479
3479
|
if (o = e.memoizedState, o !== null && (a = o.dehydrated, a !== null)) return Ey(e, t, s, r, a, o, n);
|
|
3480
3480
|
if (i) {
|
|
3481
3481
|
i = r.fallback, s = t.mode, o = e.child, a = o.sibling;
|
|
3482
3482
|
var l = { mode: "hidden", children: r.children };
|
|
3483
|
-
return !(s & 1) && t.child !== o ? (r = t.child, r.childLanes = 0, r.pendingProps = l, t.deletions = null) : (r = Tn(o, l), r.subtreeFlags = o.subtreeFlags & 14680064), a !== null ? i = Tn(a, i) : (i =
|
|
3483
|
+
return !(s & 1) && t.child !== o ? (r = t.child, r.childLanes = 0, r.pendingProps = l, t.deletions = null) : (r = Tn(o, l), r.subtreeFlags = o.subtreeFlags & 14680064), a !== null ? i = Tn(a, i) : (i = Jn(i, s, n, null), i.flags |= 2), i.return = t, r.return = t, r.sibling = i, t.child = r, r = i, i = t.child, s = e.child.memoizedState, s = s === null ? _u(n) : { baseLanes: s.baseLanes | n, cachePool: null, transitions: s.transitions }, i.memoizedState = s, i.childLanes = e.childLanes & ~n, t.memoizedState = mu, r;
|
|
3484
3484
|
}
|
|
3485
3485
|
return i = e.child, e = i.sibling, r = Tn(i, { mode: "visible", children: r.children }), !(t.mode & 1) && (r.lanes = n), r.return = t, r.sibling = null, e !== null && (n = t.deletions, n === null ? (t.deletions = [e], t.flags |= 16) : n.push(e)), t.child = r, t.memoizedState = null, r;
|
|
3486
3486
|
}
|
|
@@ -3492,7 +3492,7 @@ function Ui(e, t, n, r) {
|
|
|
3492
3492
|
}
|
|
3493
3493
|
function Ey(e, t, n, r, o, i, s) {
|
|
3494
3494
|
if (n)
|
|
3495
|
-
return t.flags & 256 ? (t.flags &= -257, r = cl(Error(T(422))), Ui(e, t, s, r)) : t.memoizedState !== null ? (t.child = e.child, t.flags |= 128, null) : (i = r.fallback, o = t.mode, r = ba({ mode: "visible", children: r.children }, o, 0, null), i =
|
|
3495
|
+
return t.flags & 256 ? (t.flags &= -257, r = cl(Error(T(422))), Ui(e, t, s, r)) : t.memoizedState !== null ? (t.child = e.child, t.flags |= 128, null) : (i = r.fallback, o = t.mode, r = ba({ mode: "visible", children: r.children }, o, 0, null), i = Jn(i, o, s, null), i.flags |= 2, r.return = t, i.return = t, r.sibling = i, t.child = r, t.mode & 1 && Vr(t, e.child, null, s), t.child.memoizedState = _u(s), t.memoizedState = mu, i);
|
|
3496
3496
|
if (!(t.mode & 1)) return Ui(e, t, s, null);
|
|
3497
3497
|
if (o.data === "$!") {
|
|
3498
3498
|
if (r = o.nextSibling && o.nextSibling.dataset, r) var a = r.dgst;
|
|
@@ -3540,7 +3540,7 @@ function Ey(e, t, n, r, o, i, s) {
|
|
|
3540
3540
|
}
|
|
3541
3541
|
return Ac(), r = cl(Error(T(421))), Ui(e, t, s, r);
|
|
3542
3542
|
}
|
|
3543
|
-
return o.data === "$?" ? (t.flags |= 128, t.child = e.child, t = Ry.bind(null, e), o._reactRetry = t, null) : (e = i.treeContext, rt = xn(o.nextSibling), ot = t, se = !0, Nt = null, e !== null && (dt[ft++] = Gt, dt[ft++] = qt, dt[ft++] =
|
|
3543
|
+
return o.data === "$?" ? (t.flags |= 128, t.child = e.child, t = Ry.bind(null, e), o._reactRetry = t, null) : (e = i.treeContext, rt = xn(o.nextSibling), ot = t, se = !0, Nt = null, e !== null && (dt[ft++] = Gt, dt[ft++] = qt, dt[ft++] = er, Gt = e.id, qt = e.overflow, er = t), t = Ec(t, r.children), t.flags |= 4096, t);
|
|
3544
3544
|
}
|
|
3545
3545
|
function xf(e, t, n) {
|
|
3546
3546
|
e.lanes |= t;
|
|
@@ -3599,7 +3599,7 @@ function hs(e, t) {
|
|
|
3599
3599
|
!(t.mode & 1) && e !== null && (e.alternate = null, t.alternate = null, t.flags |= 2);
|
|
3600
3600
|
}
|
|
3601
3601
|
function tn(e, t, n) {
|
|
3602
|
-
if (e !== null && (t.dependencies = e.dependencies),
|
|
3602
|
+
if (e !== null && (t.dependencies = e.dependencies), nr |= t.lanes, !(n & t.childLanes)) return null;
|
|
3603
3603
|
if (e !== null && t.child !== e.child) throw Error(T(153));
|
|
3604
3604
|
if (t.child !== null) {
|
|
3605
3605
|
for (e = t.child, n = Tn(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null; ) e = e.sibling, n = n.sibling = Tn(e, e.pendingProps), n.return = t;
|
|
@@ -3664,7 +3664,7 @@ gu = function() {
|
|
|
3664
3664
|
Ym = function(e, t, n, r) {
|
|
3665
3665
|
var o = e.memoizedProps;
|
|
3666
3666
|
if (o !== r) {
|
|
3667
|
-
e = t.stateNode,
|
|
3667
|
+
e = t.stateNode, Gn(Bt.current);
|
|
3668
3668
|
var i = null;
|
|
3669
3669
|
switch (n) {
|
|
3670
3670
|
case "input":
|
|
@@ -3744,14 +3744,14 @@ function zy(e, t, n) {
|
|
|
3744
3744
|
return r = t.stateNode, Kr(), oe(Ye), oe(Me), wc(), r.pendingContext && (r.context = r.pendingContext, r.pendingContext = null), (e === null || e.child === null) && (Di(t) ? t.flags |= 4 : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, Nt !== null && (Cu(Nt), Nt = null))), gu(e, t), Pe(t), null;
|
|
3745
3745
|
case 5:
|
|
3746
3746
|
bc(t);
|
|
3747
|
-
var o =
|
|
3747
|
+
var o = Gn(ii.current);
|
|
3748
3748
|
if (n = t.type, e !== null && t.stateNode != null) Ym(e, t, n, r, o), e.ref !== t.ref && (t.flags |= 512, t.flags |= 2097152);
|
|
3749
3749
|
else {
|
|
3750
3750
|
if (!r) {
|
|
3751
3751
|
if (t.stateNode === null) throw Error(T(166));
|
|
3752
3752
|
return Pe(t), null;
|
|
3753
3753
|
}
|
|
3754
|
-
if (e =
|
|
3754
|
+
if (e = Gn(Bt.current), Di(t)) {
|
|
3755
3755
|
r = t.stateNode, n = t.type;
|
|
3756
3756
|
var i = t.memoizedProps;
|
|
3757
3757
|
switch (r[Rt] = t, r[ri] = i, e = (t.mode & 1) !== 0, n) {
|
|
@@ -3908,7 +3908,7 @@ function zy(e, t, n) {
|
|
|
3908
3908
|
if (e && t.stateNode != null) Qm(e, t, e.memoizedProps, r);
|
|
3909
3909
|
else {
|
|
3910
3910
|
if (typeof r != "string" && t.stateNode === null) throw Error(T(166));
|
|
3911
|
-
if (n =
|
|
3911
|
+
if (n = Gn(ii.current), Gn(Bt.current), Di(t)) {
|
|
3912
3912
|
if (r = t.stateNode, n = t.memoizedProps, r[Rt] = t, (i = r.nodeValue !== n) && (e = ot, e !== null)) switch (e.tag) {
|
|
3913
3913
|
case 3:
|
|
3914
3914
|
Ri(r.nodeValue, n, (e.mode & 1) !== 0);
|
|
@@ -4639,7 +4639,7 @@ function Nf(e) {
|
|
|
4639
4639
|
$ = t.return;
|
|
4640
4640
|
}
|
|
4641
4641
|
}
|
|
4642
|
-
var $y = Math.ceil, Us = nn.ReactCurrentDispatcher, Tc = nn.ReactCurrentOwner, _t = nn.ReactCurrentBatchConfig, q = 0, xe = null, be = null, Ne = 0, nt = 0, Er = Pn(0), ve = 0, ui = null,
|
|
4642
|
+
var $y = Math.ceil, Us = nn.ReactCurrentDispatcher, Tc = nn.ReactCurrentOwner, _t = nn.ReactCurrentBatchConfig, q = 0, xe = null, be = null, Ne = 0, nt = 0, Er = Pn(0), ve = 0, ui = null, nr = 0, ya = 0, zc = 0, Bo = null, qe = null, Nc = 0, qr = 1 / 0, Vt = null, Zs = !1, ku = null, Cn = null, Wi = !1, bn = null, Ws = 0, Uo = 0, xu = null, ms = -1, _s = 0;
|
|
4643
4643
|
function Ue() {
|
|
4644
4644
|
return q & 6 ? pe() : ms !== -1 ? ms : ms = pe();
|
|
4645
4645
|
}
|
|
@@ -4693,7 +4693,7 @@ function r_(e, t) {
|
|
|
4693
4693
|
var o = q;
|
|
4694
4694
|
q |= 2;
|
|
4695
4695
|
var i = i_();
|
|
4696
|
-
(xe !== e || Ne !== t) && (Vt = null, qr = pe() + 500,
|
|
4696
|
+
(xe !== e || Ne !== t) && (Vt = null, qr = pe() + 500, Qn(e, t));
|
|
4697
4697
|
do
|
|
4698
4698
|
try {
|
|
4699
4699
|
Ly();
|
|
@@ -4705,16 +4705,16 @@ function r_(e, t) {
|
|
|
4705
4705
|
hc(), Us.current = i, q = o, be !== null ? t = 0 : (xe = null, Ne = 0, t = ve);
|
|
4706
4706
|
}
|
|
4707
4707
|
if (t !== 0) {
|
|
4708
|
-
if (t === 2 && (o = Yl(e), o !== 0 && (r = o, t = Su(e, o))), t === 1) throw n = ui,
|
|
4708
|
+
if (t === 2 && (o = Yl(e), o !== 0 && (r = o, t = Su(e, o))), t === 1) throw n = ui, Qn(e, 0), gn(e, r), Je(e, pe()), n;
|
|
4709
4709
|
if (t === 6) gn(e, r);
|
|
4710
4710
|
else {
|
|
4711
|
-
if (o = e.current.alternate, !(r & 30) && !Py(o) && (t = Vs(e, r), t === 2 && (i = Yl(e), i !== 0 && (r = i, t = Su(e, i))), t === 1)) throw n = ui,
|
|
4711
|
+
if (o = e.current.alternate, !(r & 30) && !Py(o) && (t = Vs(e, r), t === 2 && (i = Yl(e), i !== 0 && (r = i, t = Su(e, i))), t === 1)) throw n = ui, Qn(e, 0), gn(e, r), Je(e, pe()), n;
|
|
4712
4712
|
switch (e.finishedWork = o, e.finishedLanes = r, t) {
|
|
4713
4713
|
case 0:
|
|
4714
4714
|
case 1:
|
|
4715
4715
|
throw Error(T(345));
|
|
4716
4716
|
case 2:
|
|
4717
|
-
|
|
4717
|
+
Un(e, qe, Vt);
|
|
4718
4718
|
break;
|
|
4719
4719
|
case 3:
|
|
4720
4720
|
if (gn(e, r), (r & 130023424) === r && (t = Nc + 500 - pe(), 10 < t)) {
|
|
@@ -4723,10 +4723,10 @@ function r_(e, t) {
|
|
|
4723
4723
|
Ue(), e.pingedLanes |= e.suspendedLanes & o;
|
|
4724
4724
|
break;
|
|
4725
4725
|
}
|
|
4726
|
-
e.timeoutHandle = ou(
|
|
4726
|
+
e.timeoutHandle = ou(Un.bind(null, e, qe, Vt), t);
|
|
4727
4727
|
break;
|
|
4728
4728
|
}
|
|
4729
|
-
|
|
4729
|
+
Un(e, qe, Vt);
|
|
4730
4730
|
break;
|
|
4731
4731
|
case 4:
|
|
4732
4732
|
if (gn(e, r), (r & 4194240) === r) break;
|
|
@@ -4735,13 +4735,13 @@ function r_(e, t) {
|
|
|
4735
4735
|
i = 1 << s, s = t[s], s > o && (o = s), r &= ~i;
|
|
4736
4736
|
}
|
|
4737
4737
|
if (r = o, r = pe() - r, r = (120 > r ? 120 : 480 > r ? 480 : 1080 > r ? 1080 : 1920 > r ? 1920 : 3e3 > r ? 3e3 : 4320 > r ? 4320 : 1960 * $y(r / 1960)) - r, 10 < r) {
|
|
4738
|
-
e.timeoutHandle = ou(
|
|
4738
|
+
e.timeoutHandle = ou(Un.bind(null, e, qe, Vt), r);
|
|
4739
4739
|
break;
|
|
4740
4740
|
}
|
|
4741
|
-
|
|
4741
|
+
Un(e, qe, Vt);
|
|
4742
4742
|
break;
|
|
4743
4743
|
case 5:
|
|
4744
|
-
|
|
4744
|
+
Un(e, qe, Vt);
|
|
4745
4745
|
break;
|
|
4746
4746
|
default:
|
|
4747
4747
|
throw Error(T(329));
|
|
@@ -4752,7 +4752,7 @@ function r_(e, t) {
|
|
|
4752
4752
|
}
|
|
4753
4753
|
function Su(e, t) {
|
|
4754
4754
|
var n = Bo;
|
|
4755
|
-
return e.current.memoizedState.isDehydrated && (
|
|
4755
|
+
return e.current.memoizedState.isDehydrated && (Qn(e, t).flags |= 256), e = Vs(e, t), e !== 2 && (t = qe, qe = n, t !== null && Cu(t)), e;
|
|
4756
4756
|
}
|
|
4757
4757
|
function Cu(e) {
|
|
4758
4758
|
qe === null ? qe = e : qe.push.apply(qe, e);
|
|
@@ -4799,9 +4799,9 @@ function If(e) {
|
|
|
4799
4799
|
var r = Yl(e);
|
|
4800
4800
|
r !== 0 && (t = r, n = Su(e, r));
|
|
4801
4801
|
}
|
|
4802
|
-
if (n === 1) throw n = ui,
|
|
4802
|
+
if (n === 1) throw n = ui, Qn(e, 0), gn(e, t), Je(e, pe()), n;
|
|
4803
4803
|
if (n === 6) throw Error(T(345));
|
|
4804
|
-
return e.finishedWork = e.current.alternate, e.finishedLanes = t,
|
|
4804
|
+
return e.finishedWork = e.current.alternate, e.finishedLanes = t, Un(e, qe, Vt), Je(e, pe()), null;
|
|
4805
4805
|
}
|
|
4806
4806
|
function Ic(e, t) {
|
|
4807
4807
|
var n = q;
|
|
@@ -4812,7 +4812,7 @@ function Ic(e, t) {
|
|
|
4812
4812
|
q = n, q === 0 && (qr = pe() + 500, ha && jn());
|
|
4813
4813
|
}
|
|
4814
4814
|
}
|
|
4815
|
-
function
|
|
4815
|
+
function rr(e) {
|
|
4816
4816
|
bn !== null && bn.tag === 0 && !(q & 6) && Mr();
|
|
4817
4817
|
var t = q;
|
|
4818
4818
|
q |= 1;
|
|
@@ -4826,7 +4826,7 @@ function nr(e) {
|
|
|
4826
4826
|
function Oc() {
|
|
4827
4827
|
nt = Er.current, oe(Er);
|
|
4828
4828
|
}
|
|
4829
|
-
function
|
|
4829
|
+
function Qn(e, t) {
|
|
4830
4830
|
e.finishedWork = null, e.finishedLanes = 0;
|
|
4831
4831
|
var n = e.timeoutHandle;
|
|
4832
4832
|
if (n !== -1 && (e.timeoutHandle = -1, cy(n)), be !== null) for (n = be.return; n !== null; ) {
|
|
@@ -4859,8 +4859,8 @@ function Yn(e, t) {
|
|
|
4859
4859
|
}
|
|
4860
4860
|
n = n.return;
|
|
4861
4861
|
}
|
|
4862
|
-
if (xe = e, be = e = Tn(e.current, null), Ne = nt = t, ve = 0, ui = null, zc = ya =
|
|
4863
|
-
for (t = 0; t <
|
|
4862
|
+
if (xe = e, be = e = Tn(e.current, null), Ne = nt = t, ve = 0, ui = null, zc = ya = nr = 0, qe = Bo = null, Kn !== null) {
|
|
4863
|
+
for (t = 0; t < Kn.length; t++) if (n = Kn[t], r = n.interleaved, r !== null) {
|
|
4864
4864
|
n.interleaved = null;
|
|
4865
4865
|
var o = r.next, i = n.pending;
|
|
4866
4866
|
if (i !== null) {
|
|
@@ -4869,7 +4869,7 @@ function Yn(e, t) {
|
|
|
4869
4869
|
}
|
|
4870
4870
|
n.pending = r;
|
|
4871
4871
|
}
|
|
4872
|
-
|
|
4872
|
+
Kn = null;
|
|
4873
4873
|
}
|
|
4874
4874
|
return e;
|
|
4875
4875
|
}
|
|
@@ -4884,7 +4884,7 @@ function o_(e, t) {
|
|
|
4884
4884
|
}
|
|
4885
4885
|
Ds = !1;
|
|
4886
4886
|
}
|
|
4887
|
-
if (
|
|
4887
|
+
if (tr = 0, ke = we = ue = null, Ro = !1, si = 0, Tc.current = null, n === null || n.return === null) {
|
|
4888
4888
|
ve = 1, ui = t, be = null;
|
|
4889
4889
|
break;
|
|
4890
4890
|
}
|
|
@@ -4953,13 +4953,13 @@ function i_() {
|
|
|
4953
4953
|
return Us.current = Bs, e === null ? Bs : e;
|
|
4954
4954
|
}
|
|
4955
4955
|
function Ac() {
|
|
4956
|
-
(ve === 0 || ve === 3 || ve === 2) && (ve = 4), xe === null || !(
|
|
4956
|
+
(ve === 0 || ve === 3 || ve === 2) && (ve = 4), xe === null || !(nr & 268435455) && !(ya & 268435455) || gn(xe, Ne);
|
|
4957
4957
|
}
|
|
4958
4958
|
function Vs(e, t) {
|
|
4959
4959
|
var n = q;
|
|
4960
4960
|
q |= 2;
|
|
4961
4961
|
var r = i_();
|
|
4962
|
-
(xe !== e || Ne !== t) && (Vt = null,
|
|
4962
|
+
(xe !== e || Ne !== t) && (Vt = null, Qn(e, t));
|
|
4963
4963
|
do
|
|
4964
4964
|
try {
|
|
4965
4965
|
jy();
|
|
@@ -5007,7 +5007,7 @@ function a_(e) {
|
|
|
5007
5007
|
} while (t !== null);
|
|
5008
5008
|
ve === 0 && (ve = 5);
|
|
5009
5009
|
}
|
|
5010
|
-
function
|
|
5010
|
+
function Un(e, t, n) {
|
|
5011
5011
|
var r = Q, o = _t.transition;
|
|
5012
5012
|
try {
|
|
5013
5013
|
_t.transition = null, Q = 1, My(e, t, n, r);
|
|
@@ -5172,7 +5172,7 @@ function fe(e, t, n) {
|
|
|
5172
5172
|
}
|
|
5173
5173
|
function Fy(e, t, n) {
|
|
5174
5174
|
var r = e.pingCache;
|
|
5175
|
-
r !== null && r.delete(t), t = Ue(), e.pingedLanes |= e.suspendedLanes & n, xe === e && (Ne & n) === n && (ve === 4 || ve === 3 && (Ne & 130023424) === Ne && 500 > pe() - Nc ?
|
|
5175
|
+
r !== null && r.delete(t), t = Ue(), e.pingedLanes |= e.suspendedLanes & n, xe === e && (Ne & n) === n && (ve === 4 || ve === 3 && (Ne & 130023424) === Ne && 500 > pe() - Nc ? Qn(e, 0) : zc |= n), Je(e, t);
|
|
5176
5176
|
}
|
|
5177
5177
|
function l_(e, t) {
|
|
5178
5178
|
t === 0 && (e.mode & 1 ? (t = Pi, Pi <<= 1, !(Pi & 130023424) && (Pi = 4194304)) : t = 1);
|
|
@@ -5378,7 +5378,7 @@ function gs(e, t, n, r, o, i) {
|
|
|
5378
5378
|
else if (typeof e == "string") s = 5;
|
|
5379
5379
|
else e: switch (e) {
|
|
5380
5380
|
case _r:
|
|
5381
|
-
return
|
|
5381
|
+
return Jn(n.children, o, i, t);
|
|
5382
5382
|
case Qu:
|
|
5383
5383
|
s = 8, o |= 8;
|
|
5384
5384
|
break;
|
|
@@ -5412,7 +5412,7 @@ function gs(e, t, n, r, o, i) {
|
|
|
5412
5412
|
}
|
|
5413
5413
|
return t = ht(s, n, t, o), t.elementType = e, t.type = r, t.lanes = i, t;
|
|
5414
5414
|
}
|
|
5415
|
-
function
|
|
5415
|
+
function Jn(e, t, n, r) {
|
|
5416
5416
|
return e = ht(7, e, r, t), e.lanes = n, e;
|
|
5417
5417
|
}
|
|
5418
5418
|
function ba(e, t, n, r) {
|
|
@@ -5438,7 +5438,7 @@ function d_(e) {
|
|
|
5438
5438
|
if (!e) return On;
|
|
5439
5439
|
e = e._reactInternals;
|
|
5440
5440
|
e: {
|
|
5441
|
-
if (
|
|
5441
|
+
if (lr(e) !== e || e.tag !== 1) throw Error(T(170));
|
|
5442
5442
|
var t = e;
|
|
5443
5443
|
do {
|
|
5444
5444
|
switch (t.tag) {
|
|
@@ -5505,7 +5505,7 @@ va.prototype.unmount = Lc.prototype.unmount = function() {
|
|
|
5505
5505
|
if (e !== null) {
|
|
5506
5506
|
this._internalRoot = null;
|
|
5507
5507
|
var t = e.containerInfo;
|
|
5508
|
-
|
|
5508
|
+
rr(function() {
|
|
5509
5509
|
wa(null, e, null, null);
|
|
5510
5510
|
}), t[Xt] = null;
|
|
5511
5511
|
}
|
|
@@ -5539,7 +5539,7 @@ function Ky(e, t, n, r, o) {
|
|
|
5539
5539
|
};
|
|
5540
5540
|
}
|
|
5541
5541
|
var s = f_(t, r, e, 0, null, !1, !1, "", $f);
|
|
5542
|
-
return e._reactRootContainer = s, e[Xt] = s.current, ti(e.nodeType === 8 ? e.parentNode : e),
|
|
5542
|
+
return e._reactRootContainer = s, e[Xt] = s.current, ti(e.nodeType === 8 ? e.parentNode : e), rr(), s;
|
|
5543
5543
|
}
|
|
5544
5544
|
for (; o = e.lastChild; ) e.removeChild(o);
|
|
5545
5545
|
if (typeof r == "function") {
|
|
@@ -5550,7 +5550,7 @@ function Ky(e, t, n, r, o) {
|
|
|
5550
5550
|
};
|
|
5551
5551
|
}
|
|
5552
5552
|
var l = Pc(e, 0, !1, null, null, !1, !1, "", $f);
|
|
5553
|
-
return e._reactRootContainer = l, e[Xt] = l.current, ti(e.nodeType === 8 ? e.parentNode : e),
|
|
5553
|
+
return e._reactRootContainer = l, e[Xt] = l.current, ti(e.nodeType === 8 ? e.parentNode : e), rr(function() {
|
|
5554
5554
|
wa(t, l, n, r);
|
|
5555
5555
|
}), l;
|
|
5556
5556
|
}
|
|
@@ -5579,7 +5579,7 @@ Uh = function(e) {
|
|
|
5579
5579
|
}
|
|
5580
5580
|
break;
|
|
5581
5581
|
case 13:
|
|
5582
|
-
|
|
5582
|
+
rr(function() {
|
|
5583
5583
|
var r = en(e, 1);
|
|
5584
5584
|
if (r !== null) {
|
|
5585
5585
|
var o = Ue();
|
|
@@ -5642,8 +5642,8 @@ Gl = function(e, t, n) {
|
|
|
5642
5642
|
}
|
|
5643
5643
|
};
|
|
5644
5644
|
Oh = Ic;
|
|
5645
|
-
Ah =
|
|
5646
|
-
var Gy = { usingClientEntryPoint: !1, Events: [bi, wr, pa, Nh, Ih, Ic] }, wo = { findFiberByHostInstance:
|
|
5645
|
+
Ah = rr;
|
|
5646
|
+
var Gy = { usingClientEntryPoint: !1, Events: [bi, wr, pa, Nh, Ih, Ic] }, wo = { findFiberByHostInstance: Vn, bundleType: 0, version: "18.3.1", rendererPackageName: "react-dom" }, qy = { bundleType: wo.bundleType, version: wo.version, rendererPackageName: wo.rendererPackageName, rendererConfig: wo.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, overrideProps: null, overridePropsDeletePath: null, overridePropsRenamePath: null, setErrorHandler: null, setSuspenseHandler: null, scheduleUpdate: null, currentDispatcherRef: nn.ReactCurrentDispatcher, findHostInstanceByFiber: function(e) {
|
|
5647
5647
|
return e = jh(e), e === null ? null : e.stateNode;
|
|
5648
5648
|
}, findFiberByHostInstance: wo.findFiberByHostInstance || Vy, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, reconcilerVersion: "18.3.1-next-f1338f8080-20240426" };
|
|
5649
5649
|
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") {
|
|
@@ -5673,7 +5673,7 @@ at.findDOMNode = function(e) {
|
|
|
5673
5673
|
return e = jh(t), e = e === null ? null : e.stateNode, e;
|
|
5674
5674
|
};
|
|
5675
5675
|
at.flushSync = function(e) {
|
|
5676
|
-
return
|
|
5676
|
+
return rr(e);
|
|
5677
5677
|
};
|
|
5678
5678
|
at.hydrate = function(e, t, n) {
|
|
5679
5679
|
if (!ka(t)) throw Error(T(200));
|
|
@@ -5694,7 +5694,7 @@ at.render = function(e, t, n) {
|
|
|
5694
5694
|
};
|
|
5695
5695
|
at.unmountComponentAtNode = function(e) {
|
|
5696
5696
|
if (!ka(e)) throw Error(T(40));
|
|
5697
|
-
return e._reactRootContainer ? (
|
|
5697
|
+
return e._reactRootContainer ? (rr(function() {
|
|
5698
5698
|
xa(null, null, e, !1, function() {
|
|
5699
5699
|
e._reactRootContainer = null, e[Xt] = null;
|
|
5700
5700
|
});
|
|
@@ -5983,7 +5983,7 @@ const ut = async (e, t = "Launch failed") => {
|
|
|
5983
5983
|
}, Wb = async () => (await Y(M("/api/agent/login-relay/start"), { method: "POST" })).json(), Vb = async () => (await Y(M("/api/agent/login-relay/status"))).json(), Kb = async () => {
|
|
5984
5984
|
await Y(M("/api/agent/login-relay/cancel"), { method: "POST" });
|
|
5985
5985
|
}, to = 45e3;
|
|
5986
|
-
async function
|
|
5986
|
+
async function ur(e, t) {
|
|
5987
5987
|
if (e.ok) return;
|
|
5988
5988
|
const n = await e.json().catch(() => ({ error: t }));
|
|
5989
5989
|
throw new Error(n.error);
|
|
@@ -5992,12 +5992,12 @@ const y_ = async () => {
|
|
|
5992
5992
|
const e = await Y(M("/api/git/status"), {
|
|
5993
5993
|
signal: AbortSignal.timeout(to)
|
|
5994
5994
|
});
|
|
5995
|
-
return await
|
|
5995
|
+
return await ur(e, "Failed to load git status"), e.json();
|
|
5996
5996
|
}, Gb = async () => {
|
|
5997
5997
|
const e = await Y(M("/api/git/diff"), {
|
|
5998
5998
|
signal: AbortSignal.timeout(to)
|
|
5999
5999
|
});
|
|
6000
|
-
return await
|
|
6000
|
+
return await ur(e, "Failed to load diff"), (await e.json()).files;
|
|
6001
6001
|
}, Eu = async (e, t, n) => {
|
|
6002
6002
|
const r = await Y(M("/api/git/commit"), {
|
|
6003
6003
|
method: "POST",
|
|
@@ -6005,20 +6005,20 @@ const y_ = async () => {
|
|
|
6005
6005
|
body: JSON.stringify({ files: e, title: t, message: n }),
|
|
6006
6006
|
signal: AbortSignal.timeout(to)
|
|
6007
6007
|
});
|
|
6008
|
-
await
|
|
6008
|
+
await ur(r, "Commit failed");
|
|
6009
6009
|
}, qb = async () => {
|
|
6010
6010
|
const e = await Y(M("/api/git/push"), {
|
|
6011
6011
|
method: "POST",
|
|
6012
6012
|
signal: AbortSignal.timeout(to)
|
|
6013
6013
|
});
|
|
6014
|
-
await
|
|
6014
|
+
await ur(e, "Push failed");
|
|
6015
6015
|
}, Tu = async (e) => {
|
|
6016
6016
|
const t = await Y(M("/api/git/suggest-commit-message"), {
|
|
6017
6017
|
method: "POST",
|
|
6018
6018
|
headers: { "Content-Type": "application/json" },
|
|
6019
6019
|
body: JSON.stringify({ files: e })
|
|
6020
6020
|
});
|
|
6021
|
-
return await
|
|
6021
|
+
return await ur(t, "Failed to suggest a commit message"), t.json();
|
|
6022
6022
|
}, Hb = async () => {
|
|
6023
6023
|
const e = await Y(M("/api/git/sync"), {
|
|
6024
6024
|
method: "POST",
|
|
@@ -6028,13 +6028,13 @@ const y_ = async () => {
|
|
|
6028
6028
|
const t = await e.json();
|
|
6029
6029
|
return t.conflictPrompt ? { ok: !1, recovering: !1, conflictPrompt: t.conflictPrompt, message: t.error } : { ok: !1, recovering: t.recovering, message: t.error };
|
|
6030
6030
|
}
|
|
6031
|
-
return await
|
|
6031
|
+
return await ur(e, "Sync failed"), { ok: !0 };
|
|
6032
6032
|
}, Yb = async () => {
|
|
6033
6033
|
const e = await Y(M("/api/git/pull"), {
|
|
6034
6034
|
method: "POST",
|
|
6035
6035
|
signal: AbortSignal.timeout(to)
|
|
6036
6036
|
});
|
|
6037
|
-
await
|
|
6037
|
+
await ur(e, "Pull failed");
|
|
6038
6038
|
}, b_ = async () => {
|
|
6039
6039
|
const e = await fetch(M("/api/capabilities"));
|
|
6040
6040
|
return e.ok ? (await e.json()).capabilities : null;
|
|
@@ -9054,7 +9054,7 @@ function bl(e, t) {
|
|
|
9054
9054
|
}
|
|
9055
9055
|
return { type: "fillPath", ops: n };
|
|
9056
9056
|
}
|
|
9057
|
-
function
|
|
9057
|
+
function fr(e, t) {
|
|
9058
9058
|
return function(n, r) {
|
|
9059
9059
|
let o = n.fillStyle || "hachure";
|
|
9060
9060
|
if (!Ke[o]) switch (o) {
|
|
@@ -9191,9 +9191,9 @@ function fv(e, t, n) {
|
|
|
9191
9191
|
const r = bs(t, n);
|
|
9192
9192
|
if (r === 0) return bs(e, t);
|
|
9193
9193
|
let o = ((e[0] - t[0]) * (n[0] - t[0]) + (e[1] - t[1]) * (n[1] - t[1])) / r;
|
|
9194
|
-
return o = Math.max(0, Math.min(1, o)), bs(e,
|
|
9194
|
+
return o = Math.max(0, Math.min(1, o)), bs(e, Zn(t, n, o));
|
|
9195
9195
|
}
|
|
9196
|
-
function
|
|
9196
|
+
function Zn(e, t, n) {
|
|
9197
9197
|
return [e[0] + (t[0] - e[0]) * n, e[1] + (t[1] - e[1]) * n];
|
|
9198
9198
|
}
|
|
9199
9199
|
function Ou(e, t, n, r) {
|
|
@@ -9212,7 +9212,7 @@ function Ou(e, t, n, r) {
|
|
|
9212
9212
|
const a = e[t + 0];
|
|
9213
9213
|
o.length ? (i = o[o.length - 1], s = a, Math.sqrt(bs(i, s)) > 1 && o.push(a)) : o.push(a), o.push(e[t + 3]);
|
|
9214
9214
|
} else {
|
|
9215
|
-
const l = e[t + 0], u = e[t + 1], c = e[t + 2], d = e[t + 3], f =
|
|
9215
|
+
const l = e[t + 0], u = e[t + 1], c = e[t + 2], d = e[t + 3], f = Zn(l, u, 0.5), p = Zn(u, c, 0.5), m = Zn(c, d, 0.5), _ = Zn(f, p, 0.5), b = Zn(p, m, 0.5), g = Zn(_, b, 0.5);
|
|
9216
9216
|
Ou([l, f, _, g], 0, n, o), Ou([g, b, m, d], 0, n, o);
|
|
9217
9217
|
}
|
|
9218
9218
|
var i, s;
|
|
@@ -9258,7 +9258,7 @@ let Ys = class {
|
|
|
9258
9258
|
const s = this._o(i), a = [], l = cv(t, n, r, o, s);
|
|
9259
9259
|
if (s.fill) {
|
|
9260
9260
|
const u = [[t, n], [t + r, n], [t + r, n + o], [t, n + o]];
|
|
9261
|
-
s.fillStyle === "solid" ? a.push(bl([u], s)) : a.push(
|
|
9261
|
+
s.fillStyle === "solid" ? a.push(bl([u], s)) : a.push(fr([u], s));
|
|
9262
9262
|
}
|
|
9263
9263
|
return s.stroke !== et && a.push(l), this._d("rectangle", a, s);
|
|
9264
9264
|
}
|
|
@@ -9267,7 +9267,7 @@ let Ys = class {
|
|
|
9267
9267
|
if (s.fill) if (s.fillStyle === "solid") {
|
|
9268
9268
|
const c = Nu(t, n, s, l).opset;
|
|
9269
9269
|
c.type = "fillPath", a.push(c);
|
|
9270
|
-
} else a.push(
|
|
9270
|
+
} else a.push(fr([u.estimatedPoints], s));
|
|
9271
9271
|
return s.stroke !== et && a.push(u.opset), this._d("ellipse", a, s);
|
|
9272
9272
|
}
|
|
9273
9273
|
circle(t, n, r, o) {
|
|
@@ -9294,7 +9294,7 @@ let Ys = class {
|
|
|
9294
9294
|
C - S > 2 * Math.PI && (S = 0, C = 2 * Math.PI);
|
|
9295
9295
|
const z = (C - S) / h.curveStepCount, I = [];
|
|
9296
9296
|
for (let j = S; j <= C; j += z) I.push([y + k * Math.cos(j), w + x * Math.sin(j)]);
|
|
9297
|
-
return I.push([y + k * Math.cos(C), w + x * Math.sin(C)]), I.push([y, w]),
|
|
9297
|
+
return I.push([y + k * Math.cos(C), w + x * Math.sin(C)]), I.push([y, w]), fr([I], h);
|
|
9298
9298
|
}(t, n, r, o, i, s, u));
|
|
9299
9299
|
return u.stroke !== et && c.push(d), this._d("arc", c, u);
|
|
9300
9300
|
}
|
|
@@ -9309,13 +9309,13 @@ let Ys = class {
|
|
|
9309
9309
|
const l = typeof a[0][0] == "number" ? [a] : a;
|
|
9310
9310
|
for (const u of l) u.length < 3 ? s.push(...u) : u.length === 3 ? s.push(...wl(Vf([u[0], u[0], u[1], u[2]]), 10, (1 + r.roughness) / 2)) : s.push(...wl(Vf(u), 10, (1 + r.roughness) / 2));
|
|
9311
9311
|
}
|
|
9312
|
-
s.length && o.push(
|
|
9312
|
+
s.length && o.push(fr([s], r));
|
|
9313
9313
|
}
|
|
9314
9314
|
return r.stroke !== et && o.push(i), this._d("curve", o, r);
|
|
9315
9315
|
}
|
|
9316
9316
|
polygon(t, n) {
|
|
9317
9317
|
const r = this._o(n), o = [], i = ys(t, !0, r);
|
|
9318
|
-
return r.fill && (r.fillStyle === "solid" ? o.push(bl([t], r)) : o.push(
|
|
9318
|
+
return r.fill && (r.fillStyle === "solid" ? o.push(bl([t], r)) : o.push(fr([t], r))), r.stroke !== et && o.push(i), this._d("polygon", o, r);
|
|
9319
9319
|
}
|
|
9320
9320
|
path(t, n) {
|
|
9321
9321
|
const r = this._o(n), o = [];
|
|
@@ -9358,7 +9358,7 @@ let Ys = class {
|
|
|
9358
9358
|
const c = Bf(t, Object.assign(Object.assign({}, r), { disableMultiStroke: !0, roughness: r.roughness ? r.roughness + r.fillShapeRoughnessGain : 0 }));
|
|
9359
9359
|
o.push({ type: "fillPath", ops: this._mergedShape(c.ops) });
|
|
9360
9360
|
} else o.push(bl(l, r));
|
|
9361
|
-
else o.push(
|
|
9361
|
+
else o.push(fr(l, r));
|
|
9362
9362
|
return s && (a ? l.forEach((c) => {
|
|
9363
9363
|
o.push(ys(c, !1, r));
|
|
9364
9364
|
}) : o.push(u)), this._d("path", o, r);
|
|
@@ -11099,12 +11099,12 @@ function me(e) {
|
|
|
11099
11099
|
}
|
|
11100
11100
|
return !1;
|
|
11101
11101
|
}
|
|
11102
|
-
const W_ = (e) => (te(e) || he(e)) && !!e.anchor,
|
|
11102
|
+
const W_ = (e) => (te(e) || he(e)) && !!e.anchor, Wn = Symbol("break visit"), Fx = Symbol("skip children"), Vo = Symbol("remove node");
|
|
11103
11103
|
function ao(e, t) {
|
|
11104
11104
|
const n = Rx(t);
|
|
11105
11105
|
Ea(e) ? zr(null, e.contents, n, Object.freeze([e])) === Vo && (e.contents = null) : zr(null, e, n, Object.freeze([]));
|
|
11106
11106
|
}
|
|
11107
|
-
ao.BREAK =
|
|
11107
|
+
ao.BREAK = Wn;
|
|
11108
11108
|
ao.SKIP = Fx;
|
|
11109
11109
|
ao.REMOVE = Vo;
|
|
11110
11110
|
function zr(e, t, n, r) {
|
|
@@ -11119,20 +11119,20 @@ function zr(e, t, n, r) {
|
|
|
11119
11119
|
if (typeof s == "number")
|
|
11120
11120
|
i = s - 1;
|
|
11121
11121
|
else {
|
|
11122
|
-
if (s ===
|
|
11123
|
-
return
|
|
11122
|
+
if (s === Wn)
|
|
11123
|
+
return Wn;
|
|
11124
11124
|
s === Vo && (t.items.splice(i, 1), i -= 1);
|
|
11125
11125
|
}
|
|
11126
11126
|
}
|
|
11127
11127
|
} else if (_e(t)) {
|
|
11128
11128
|
r = Object.freeze(r.concat(t));
|
|
11129
11129
|
const i = zr("key", t.key, n, r);
|
|
11130
|
-
if (i ===
|
|
11131
|
-
return
|
|
11130
|
+
if (i === Wn)
|
|
11131
|
+
return Wn;
|
|
11132
11132
|
i === Vo && (t.key = null);
|
|
11133
11133
|
const s = zr("value", t.value, n, r);
|
|
11134
|
-
if (s ===
|
|
11135
|
-
return
|
|
11134
|
+
if (s === Wn)
|
|
11135
|
+
return Wn;
|
|
11136
11136
|
s === Vo && (t.value = null);
|
|
11137
11137
|
}
|
|
11138
11138
|
}
|
|
@@ -11672,7 +11672,7 @@ const Gx = (e) => e.replace(/^(?!$)(?: $)?/gm, "#");
|
|
|
11672
11672
|
function Ht(e, t) {
|
|
11673
11673
|
return /^\n+$/.test(e) ? e.substring(1) : t ? e.replace(/^(?! *$)/gm, t) : e;
|
|
11674
11674
|
}
|
|
11675
|
-
const
|
|
11675
|
+
const qn = (e, t, n) => e.endsWith(`
|
|
11676
11676
|
`) ? Ht(n, t) : n.includes(`
|
|
11677
11677
|
`) ? `
|
|
11678
11678
|
` + Ht(n, t) : (e.endsWith(" ") ? "" : " ") + n, Y_ = "flow", Pu = "block", vs = "quoted";
|
|
@@ -12097,9 +12097,9 @@ function Jx({ key: e, value: t }, n, r, o) {
|
|
|
12097
12097
|
if (i || t == null)
|
|
12098
12098
|
return m && r && r(), b === "" ? "?" : p ? `? ${b}` : b;
|
|
12099
12099
|
} else if (i && !d || t == null && p)
|
|
12100
|
-
return b = `? ${b}`, f && !m ? b +=
|
|
12101
|
-
m && (f = null), p ? (f && (b +=
|
|
12102
|
-
${a}:`) : (b = `${b}:`, f && (b +=
|
|
12100
|
+
return b = `? ${b}`, f && !m ? b += qn(b, n.indent, u(f)) : _ && o && o(), b;
|
|
12101
|
+
m && (f = null), p ? (f && (b += qn(b, n.indent, u(f))), b = `? ${b}
|
|
12102
|
+
${a}:`) : (b = `${b}:`, f && (b += qn(b, n.indent, u(f))));
|
|
12103
12103
|
let g, h, y;
|
|
12104
12104
|
me(t) ? (g = !!t.spaceBefore, h = t.commentBefore, y = t.comment) : (g = !1, h = null, y = null, t && typeof t == "object" && (t = s.createNode(t))), n.implicitKey = !1, !p && !f && te(t) && (n.indentAtStart = b.length + 1), _ = !1, !c && l.length >= 2 && !n.inFlow && !p && Si(t) && !t.flow && !t.tag && !t.anchor && (n.indent = n.indent.substring(2));
|
|
12105
12105
|
let w = !1;
|
|
@@ -12131,7 +12131,7 @@ ${n.indent}`);
|
|
|
12131
12131
|
}
|
|
12132
12132
|
} else (k === "" || k[0] === `
|
|
12133
12133
|
`) && (x = "");
|
|
12134
|
-
return b += x + k, n.inFlow ? w && r && r() : y && !w ? b +=
|
|
12134
|
+
return b += x + k, n.inFlow ? w && r && r() : y && !w ? b += qn(b, n.indent, u(y)) : _ && o && o(), b;
|
|
12135
12135
|
}
|
|
12136
12136
|
function J_(e, t) {
|
|
12137
12137
|
(e === "debug" || e === "warn") && console.warn(t);
|
|
@@ -12255,7 +12255,7 @@ function t3({ comment: e, items: t }, n, { blockItemPrefix: r, flowChars: o, ite
|
|
|
12255
12255
|
}
|
|
12256
12256
|
d = !1;
|
|
12257
12257
|
let g = Yr(_, c, () => b = null, () => d = !0);
|
|
12258
|
-
b && (g +=
|
|
12258
|
+
b && (g += qn(g, i, u(b))), d && b && (d = !1), f.push(r + g);
|
|
12259
12259
|
}
|
|
12260
12260
|
let p;
|
|
12261
12261
|
if (f.length === 0)
|
|
@@ -12296,7 +12296,7 @@ function n3({ items: e }, t, { flowChars: n, itemIndent: r }) {
|
|
|
12296
12296
|
b && (u = !0);
|
|
12297
12297
|
let g = Yr(_, l, () => b = null);
|
|
12298
12298
|
u || (u = d.length > c || g.includes(`
|
|
12299
|
-
`)), m < e.length - 1 ? g += "," : t.options.trailingComma && (t.options.lineWidth > 0 && (u || (u = d.reduce((h, y) => h + y.length + 2, 2) + (g.length + 2) > t.options.lineWidth)), u && (g += ",")), b && (g +=
|
|
12299
|
+
`)), m < e.length - 1 ? g += "," : t.options.trailingComma && (t.options.lineWidth > 0 && (u || (u = d.reduce((h, y) => h + y.length + 2, 2) + (g.length + 2) > t.options.lineWidth)), u && (g += ",")), b && (g += qn(g, r, a(b))), d.push(g), c = d.length;
|
|
12300
12300
|
}
|
|
12301
12301
|
const { start: f, end: p } = n;
|
|
12302
12302
|
if (d.length === 0)
|
|
@@ -12322,7 +12322,7 @@ function Xs({ indent: e, options: { commentString: t } }, n, r, o) {
|
|
|
12322
12322
|
n.push(i.trimStart());
|
|
12323
12323
|
}
|
|
12324
12324
|
}
|
|
12325
|
-
function
|
|
12325
|
+
function Hn(e, t) {
|
|
12326
12326
|
const n = te(t) ? t.value : t;
|
|
12327
12327
|
for (const r of e)
|
|
12328
12328
|
if (_e(r) && (r.key === t || r.key === n || te(r.key) && r.key.value === n))
|
|
@@ -12365,7 +12365,7 @@ class pt extends H_ {
|
|
|
12365
12365
|
var s;
|
|
12366
12366
|
let r;
|
|
12367
12367
|
_e(t) ? r = t : !t || typeof t != "object" || !("key" in t) ? r = new Ze(t, t == null ? void 0 : t.value) : r = new Ze(t.key, t.value);
|
|
12368
|
-
const o =
|
|
12368
|
+
const o = Hn(this.items, r.key), i = (s = this.schema) == null ? void 0 : s.sortMapEntries;
|
|
12369
12369
|
if (o) {
|
|
12370
12370
|
if (!n)
|
|
12371
12371
|
throw new Error(`Key ${r.key} already set`);
|
|
@@ -12377,15 +12377,15 @@ class pt extends H_ {
|
|
|
12377
12377
|
this.items.push(r);
|
|
12378
12378
|
}
|
|
12379
12379
|
delete(t) {
|
|
12380
|
-
const n =
|
|
12380
|
+
const n = Hn(this.items, t);
|
|
12381
12381
|
return n ? this.items.splice(this.items.indexOf(n), 1).length > 0 : !1;
|
|
12382
12382
|
}
|
|
12383
12383
|
get(t, n) {
|
|
12384
|
-
const r =
|
|
12384
|
+
const r = Hn(this.items, t), o = r == null ? void 0 : r.value;
|
|
12385
12385
|
return (!n && te(o) ? o.value : o) ?? void 0;
|
|
12386
12386
|
}
|
|
12387
12387
|
has(t) {
|
|
12388
|
-
return !!
|
|
12388
|
+
return !!Hn(this.items, t);
|
|
12389
12389
|
}
|
|
12390
12390
|
set(t, n) {
|
|
12391
12391
|
this.add(new Ze(t, n), !0);
|
|
@@ -12427,7 +12427,7 @@ const lo = {
|
|
|
12427
12427
|
},
|
|
12428
12428
|
createNode: (e, t, n) => pt.from(e, t, n)
|
|
12429
12429
|
};
|
|
12430
|
-
class
|
|
12430
|
+
class or extends H_ {
|
|
12431
12431
|
static get tagName() {
|
|
12432
12432
|
return "tag:yaml.org,2002:seq";
|
|
12433
12433
|
}
|
|
@@ -12519,12 +12519,12 @@ function Ji(e) {
|
|
|
12519
12519
|
const uo = {
|
|
12520
12520
|
collection: "seq",
|
|
12521
12521
|
default: !0,
|
|
12522
|
-
nodeClass:
|
|
12522
|
+
nodeClass: or,
|
|
12523
12523
|
tag: "tag:yaml.org,2002:seq",
|
|
12524
12524
|
resolve(e, t) {
|
|
12525
12525
|
return Si(e) || t("Expected a sequence for this tag"), e;
|
|
12526
12526
|
},
|
|
12527
|
-
createNode: (e, t, n) =>
|
|
12527
|
+
createNode: (e, t, n) => or.from(e, t, n)
|
|
12528
12528
|
}, Ia = {
|
|
12529
12529
|
identify: (e) => typeof e == "string",
|
|
12530
12530
|
default: !0,
|
|
@@ -12760,7 +12760,7 @@ ${i.comment}` : r.comment;
|
|
|
12760
12760
|
return e;
|
|
12761
12761
|
}
|
|
12762
12762
|
function dg(e, t, n) {
|
|
12763
|
-
const { replacer: r } = n, o = new
|
|
12763
|
+
const { replacer: r } = n, o = new or(e);
|
|
12764
12764
|
o.tag = "tag:yaml.org,2002:pairs";
|
|
12765
12765
|
let i = 0;
|
|
12766
12766
|
if (t && Symbol.iterator in Object(t))
|
|
@@ -12791,7 +12791,7 @@ const td = {
|
|
|
12791
12791
|
resolve: cg,
|
|
12792
12792
|
createNode: dg
|
|
12793
12793
|
};
|
|
12794
|
-
class Rr extends
|
|
12794
|
+
class Rr extends or {
|
|
12795
12795
|
constructor() {
|
|
12796
12796
|
super(), this.add = pt.prototype.add.bind(this), this.delete = pt.prototype.delete.bind(this), this.get = pt.prototype.get.bind(this), this.has = pt.prototype.has.bind(this), this.set = pt.prototype.set.bind(this), this.tag = Rr.tag;
|
|
12797
12797
|
}
|
|
@@ -12948,20 +12948,20 @@ class Dr extends pt {
|
|
|
12948
12948
|
}
|
|
12949
12949
|
add(t) {
|
|
12950
12950
|
let n;
|
|
12951
|
-
_e(t) ? n = t : t && typeof t == "object" && "key" in t && "value" in t && t.value === null ? n = new Ze(t.key, null) : n = new Ze(t, null),
|
|
12951
|
+
_e(t) ? n = t : t && typeof t == "object" && "key" in t && "value" in t && t.value === null ? n = new Ze(t.key, null) : n = new Ze(t, null), Hn(this.items, n.key) || this.items.push(n);
|
|
12952
12952
|
}
|
|
12953
12953
|
/**
|
|
12954
12954
|
* If `keepPair` is `true`, returns the Pair matching `key`.
|
|
12955
12955
|
* Otherwise, returns the value of that Pair's key.
|
|
12956
12956
|
*/
|
|
12957
12957
|
get(t, n) {
|
|
12958
|
-
const r =
|
|
12958
|
+
const r = Hn(this.items, t);
|
|
12959
12959
|
return !n && _e(r) ? te(r.key) ? r.key.value : r.key : r;
|
|
12960
12960
|
}
|
|
12961
12961
|
set(t, n) {
|
|
12962
12962
|
if (typeof n != "boolean")
|
|
12963
12963
|
throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);
|
|
12964
|
-
const r =
|
|
12964
|
+
const r = Hn(this.items, t);
|
|
12965
12965
|
r && !n ? this.items.splice(this.items.indexOf(r), 1) : !r && n && this.items.push(new Ze(t));
|
|
12966
12966
|
}
|
|
12967
12967
|
toJSON(t, n) {
|
|
@@ -13169,7 +13169,7 @@ function _3(e, t) {
|
|
|
13169
13169
|
}
|
|
13170
13170
|
const u = a ? void 0 : () => s = !0;
|
|
13171
13171
|
let c = Yr(e.contents, o, () => a = null, u);
|
|
13172
|
-
a && (c +=
|
|
13172
|
+
a && (c += qn(c, "", i(a))), (c[0] === "|" || c[0] === ">") && n[n.length - 1] === "---" ? n[n.length - 1] = `--- ${c}` : n.push(c);
|
|
13173
13173
|
} else
|
|
13174
13174
|
n.push(Yr(e.contents, o));
|
|
13175
13175
|
if ((l = e.directives) != null && l.docEnd)
|
|
@@ -13219,11 +13219,11 @@ class ja {
|
|
|
13219
13219
|
}
|
|
13220
13220
|
/** Adds a value to the document. */
|
|
13221
13221
|
add(t) {
|
|
13222
|
-
|
|
13222
|
+
pr(this.contents) && this.contents.add(t);
|
|
13223
13223
|
}
|
|
13224
13224
|
/** Adds a value to the document. */
|
|
13225
13225
|
addIn(t, n) {
|
|
13226
|
-
|
|
13226
|
+
pr(this.contents) && this.contents.addIn(t, n);
|
|
13227
13227
|
}
|
|
13228
13228
|
/**
|
|
13229
13229
|
* Create a new `Alias` node, ensuring that the target `node` has the required anchor.
|
|
@@ -13278,14 +13278,14 @@ class ja {
|
|
|
13278
13278
|
* @returns `true` if the item was found and removed.
|
|
13279
13279
|
*/
|
|
13280
13280
|
delete(t) {
|
|
13281
|
-
return
|
|
13281
|
+
return pr(this.contents) ? this.contents.delete(t) : !1;
|
|
13282
13282
|
}
|
|
13283
13283
|
/**
|
|
13284
13284
|
* Removes a value from the document.
|
|
13285
13285
|
* @returns `true` if the item was found and removed.
|
|
13286
13286
|
*/
|
|
13287
13287
|
deleteIn(t) {
|
|
13288
|
-
return Oo(t) ? this.contents == null ? !1 : (this.contents = null, !0) :
|
|
13288
|
+
return Oo(t) ? this.contents == null ? !1 : (this.contents = null, !0) : pr(this.contents) ? this.contents.deleteIn(t) : !1;
|
|
13289
13289
|
}
|
|
13290
13290
|
/**
|
|
13291
13291
|
* Returns item at `key`, or `undefined` if not found. By default unwraps
|
|
@@ -13320,14 +13320,14 @@ class ja {
|
|
|
13320
13320
|
* boolean to add/remove the item from the set.
|
|
13321
13321
|
*/
|
|
13322
13322
|
set(t, n) {
|
|
13323
|
-
this.contents == null ? this.contents = Js(this.schema, [t], n) :
|
|
13323
|
+
this.contents == null ? this.contents = Js(this.schema, [t], n) : pr(this.contents) && this.contents.set(t, n);
|
|
13324
13324
|
}
|
|
13325
13325
|
/**
|
|
13326
13326
|
* Sets a value in this document. For `!!set`, `value` needs to be a
|
|
13327
13327
|
* boolean to add/remove the item from the set.
|
|
13328
13328
|
*/
|
|
13329
13329
|
setIn(t, n) {
|
|
13330
|
-
Oo(t) ? this.contents = n : this.contents == null ? this.contents = Js(this.schema, Array.from(t), n) :
|
|
13330
|
+
Oo(t) ? this.contents = n : this.contents == null ? this.contents = Js(this.schema, Array.from(t), n) : pr(this.contents) && this.contents.setIn(t, n);
|
|
13331
13331
|
}
|
|
13332
13332
|
/**
|
|
13333
13333
|
* Change the YAML version and schema used by the document.
|
|
@@ -13397,7 +13397,7 @@ class ja {
|
|
|
13397
13397
|
return _3(this, t);
|
|
13398
13398
|
}
|
|
13399
13399
|
}
|
|
13400
|
-
function
|
|
13400
|
+
function pr(e) {
|
|
13401
13401
|
if (he(e))
|
|
13402
13402
|
return !0;
|
|
13403
13403
|
throw new Error("Expected a YAML collection as document contents");
|
|
@@ -13591,7 +13591,7 @@ function y3({ composeNode: e, composeEmptyNode: t }, n, r, o, i) {
|
|
|
13591
13591
|
return u && u < l && o(u, "IMPOSSIBLE", "Map comment with trailing content"), a.range = [r.offset, l, u ?? l], a;
|
|
13592
13592
|
}
|
|
13593
13593
|
function b3({ composeNode: e, composeEmptyNode: t }, n, r, o, i) {
|
|
13594
|
-
const s = (i == null ? void 0 : i.nodeClass) ??
|
|
13594
|
+
const s = (i == null ? void 0 : i.nodeClass) ?? or, a = new s(n.schema);
|
|
13595
13595
|
n.atRoot && (n.atRoot = !1), n.atKey && (n.atKey = !1);
|
|
13596
13596
|
let l = r.offset, u = null;
|
|
13597
13597
|
for (const { start: c, value: d } of r.items) {
|
|
@@ -13645,7 +13645,7 @@ function Ei(e, t, n, r) {
|
|
|
13645
13645
|
const El = "Block collections are not allowed within flow collections", Tl = (e) => e && (e.type === "block-map" || e.type === "block-seq");
|
|
13646
13646
|
function w3({ composeNode: e, composeEmptyNode: t }, n, r, o, i) {
|
|
13647
13647
|
var b;
|
|
13648
|
-
const s = r.start.source === "{", a = s ? "flow map" : "flow sequence", l = (i == null ? void 0 : i.nodeClass) ?? (s ? pt :
|
|
13648
|
+
const s = r.start.source === "{", a = s ? "flow map" : "flow sequence", l = (i == null ? void 0 : i.nodeClass) ?? (s ? pt : or), u = new l(n.schema);
|
|
13649
13649
|
u.flow = !0;
|
|
13650
13650
|
const c = n.atRoot;
|
|
13651
13651
|
c && (n.atRoot = !1), n.atKey && (n.atKey = !1);
|
|
@@ -13768,7 +13768,7 @@ function v3(e, t, n, r, o) {
|
|
|
13768
13768
|
_ && (!m || m.offset < _.offset) && o(_, "MISSING_CHAR", "Missing newline after block sequence props");
|
|
13769
13769
|
}
|
|
13770
13770
|
const a = n.type === "block-map" ? "map" : n.type === "block-seq" ? "seq" : n.start.source === "{" ? "map" : "seq";
|
|
13771
|
-
if (!i || !s || s === "!" || s === pt.tagName && a === "map" || s ===
|
|
13771
|
+
if (!i || !s || s === "!" || s === pt.tagName && a === "map" || s === or.tagName && a === "seq")
|
|
13772
13772
|
return zl(e, t, n, o, s);
|
|
13773
13773
|
let l = t.schema.tags.find((p) => p.tag === s && p.collection === a);
|
|
13774
13774
|
if (!l) {
|
|
@@ -14913,7 +14913,7 @@ function ts(e) {
|
|
|
14913
14913
|
return [];
|
|
14914
14914
|
}
|
|
14915
14915
|
}
|
|
14916
|
-
function
|
|
14916
|
+
function hr(e) {
|
|
14917
14917
|
var n;
|
|
14918
14918
|
if (e.length === 0)
|
|
14919
14919
|
return [];
|
|
@@ -15156,7 +15156,7 @@ class W3 {
|
|
|
15156
15156
|
}
|
|
15157
15157
|
*scalar(t) {
|
|
15158
15158
|
if (this.type === "map-value-ind") {
|
|
15159
|
-
const n = ts(this.peek(2)), r =
|
|
15159
|
+
const n = ts(this.peek(2)), r = hr(n);
|
|
15160
15160
|
let o;
|
|
15161
15161
|
t.end ? (o = t.end, o.push(this.sourceToken), delete t.end) : o = [this.sourceToken];
|
|
15162
15162
|
const i = {
|
|
@@ -15266,7 +15266,7 @@ class W3 {
|
|
|
15266
15266
|
items: [{ start: s, key: null, sep: [this.sourceToken] }]
|
|
15267
15267
|
});
|
|
15268
15268
|
else if (Eg(n.key) && !mn(n.sep, "newline")) {
|
|
15269
|
-
const a =
|
|
15269
|
+
const a = hr(n.start), l = n.key, u = n.sep;
|
|
15270
15270
|
u.push(this.sourceToken), delete n.key, delete n.sep, this.stack.push({
|
|
15271
15271
|
type: "block-map",
|
|
15272
15272
|
offset: this.offset,
|
|
@@ -15277,7 +15277,7 @@ class W3 {
|
|
|
15277
15277
|
else if (mn(n.start, "newline"))
|
|
15278
15278
|
Object.assign(n, { key: null, sep: [this.sourceToken] });
|
|
15279
15279
|
else {
|
|
15280
|
-
const a =
|
|
15280
|
+
const a = hr(n.start);
|
|
15281
15281
|
this.stack.push({
|
|
15282
15282
|
type: "block-map",
|
|
15283
15283
|
offset: this.offset,
|
|
@@ -15414,7 +15414,7 @@ class W3 {
|
|
|
15414
15414
|
if (r.type === "block-map" && (this.type === "map-value-ind" && r.indent === t.indent || this.type === "newline" && !r.items[r.items.length - 1].sep))
|
|
15415
15415
|
yield* this.pop(), yield* this.step();
|
|
15416
15416
|
else if (this.type === "map-value-ind" && r.type !== "flow-collection") {
|
|
15417
|
-
const o = ts(r), i =
|
|
15417
|
+
const o = ts(r), i = hr(o);
|
|
15418
15418
|
pp(t);
|
|
15419
15419
|
const s = t.end.splice(1, t.end.length);
|
|
15420
15420
|
s.push(this.sourceToken);
|
|
@@ -15478,7 +15478,7 @@ class W3 {
|
|
|
15478
15478
|
};
|
|
15479
15479
|
case "explicit-key-ind": {
|
|
15480
15480
|
this.onKeyLine = !0;
|
|
15481
|
-
const n = ts(t), r =
|
|
15481
|
+
const n = ts(t), r = hr(n);
|
|
15482
15482
|
return r.push(this.sourceToken), {
|
|
15483
15483
|
type: "block-map",
|
|
15484
15484
|
offset: this.offset,
|
|
@@ -15488,7 +15488,7 @@ class W3 {
|
|
|
15488
15488
|
}
|
|
15489
15489
|
case "map-value-ind": {
|
|
15490
15490
|
this.onKeyLine = !0;
|
|
15491
|
-
const n = ts(t), r =
|
|
15491
|
+
const n = ts(t), r = hr(n);
|
|
15492
15492
|
return {
|
|
15493
15493
|
type: "block-map",
|
|
15494
15494
|
offset: this.offset,
|
|
@@ -15807,7 +15807,7 @@ class Ig extends Error {
|
|
|
15807
15807
|
}
|
|
15808
15808
|
(bp = globalThis).__zod_globalConfig ?? (bp.__zod_globalConfig = {});
|
|
15809
15809
|
const fd = globalThis.__zod_globalConfig;
|
|
15810
|
-
function
|
|
15810
|
+
function ir(e) {
|
|
15811
15811
|
return fd;
|
|
15812
15812
|
}
|
|
15813
15813
|
function Og(e) {
|
|
@@ -15855,7 +15855,7 @@ function J(e, t, n) {
|
|
|
15855
15855
|
configurable: !0
|
|
15856
15856
|
});
|
|
15857
15857
|
}
|
|
15858
|
-
function
|
|
15858
|
+
function cr(e, t, n) {
|
|
15859
15859
|
Object.defineProperty(e, t, {
|
|
15860
15860
|
value: n,
|
|
15861
15861
|
writable: !0,
|
|
@@ -15948,7 +15948,7 @@ function w5(e, t) {
|
|
|
15948
15948
|
throw new Error(`Unrecognized key: "${a}"`);
|
|
15949
15949
|
t[a] && (s[a] = n.shape[a]);
|
|
15950
15950
|
}
|
|
15951
|
-
return
|
|
15951
|
+
return cr(this, "shape", s), s;
|
|
15952
15952
|
},
|
|
15953
15953
|
checks: []
|
|
15954
15954
|
});
|
|
@@ -15966,7 +15966,7 @@ function v5(e, t) {
|
|
|
15966
15966
|
throw new Error(`Unrecognized key: "${a}"`);
|
|
15967
15967
|
t[a] && delete s[a];
|
|
15968
15968
|
}
|
|
15969
|
-
return
|
|
15969
|
+
return cr(this, "shape", s), s;
|
|
15970
15970
|
},
|
|
15971
15971
|
checks: []
|
|
15972
15972
|
});
|
|
@@ -15985,7 +15985,7 @@ function k5(e, t) {
|
|
|
15985
15985
|
const o = Ln(e._zod.def, {
|
|
15986
15986
|
get shape() {
|
|
15987
15987
|
const i = { ...e._zod.def.shape, ...t };
|
|
15988
|
-
return
|
|
15988
|
+
return cr(this, "shape", i), i;
|
|
15989
15989
|
}
|
|
15990
15990
|
});
|
|
15991
15991
|
return Mn(e, o);
|
|
@@ -15996,7 +15996,7 @@ function x5(e, t) {
|
|
|
15996
15996
|
const n = Ln(e._zod.def, {
|
|
15997
15997
|
get shape() {
|
|
15998
15998
|
const r = { ...e._zod.def.shape, ...t };
|
|
15999
|
-
return
|
|
15999
|
+
return cr(this, "shape", r), r;
|
|
16000
16000
|
}
|
|
16001
16001
|
});
|
|
16002
16002
|
return Mn(e, n);
|
|
@@ -16008,7 +16008,7 @@ function S5(e, t) {
|
|
|
16008
16008
|
const n = Ln(e._zod.def, {
|
|
16009
16009
|
get shape() {
|
|
16010
16010
|
const o = { ...e._zod.def.shape, ...t._zod.def.shape };
|
|
16011
|
-
return
|
|
16011
|
+
return cr(this, "shape", o), o;
|
|
16012
16012
|
},
|
|
16013
16013
|
get catchall() {
|
|
16014
16014
|
return t._zod.def.catchall;
|
|
@@ -16039,7 +16039,7 @@ function C5(e, t, n) {
|
|
|
16039
16039
|
type: "optional",
|
|
16040
16040
|
innerType: a[u]
|
|
16041
16041
|
}) : a[u];
|
|
16042
|
-
return
|
|
16042
|
+
return cr(this, "shape", l), l;
|
|
16043
16043
|
},
|
|
16044
16044
|
checks: []
|
|
16045
16045
|
});
|
|
@@ -16064,7 +16064,7 @@ function E5(e, t, n) {
|
|
|
16064
16064
|
type: "nonoptional",
|
|
16065
16065
|
innerType: o[s]
|
|
16066
16066
|
});
|
|
16067
|
-
return
|
|
16067
|
+
return cr(this, "shape", i), i;
|
|
16068
16068
|
}
|
|
16069
16069
|
});
|
|
16070
16070
|
return Mn(t, r);
|
|
@@ -16096,7 +16096,7 @@ function Pg(e, t) {
|
|
|
16096
16096
|
function ns(e) {
|
|
16097
16097
|
return typeof e == "string" ? e : e == null ? void 0 : e.message;
|
|
16098
16098
|
}
|
|
16099
|
-
function
|
|
16099
|
+
function sr(e, t, n) {
|
|
16100
16100
|
var l, u, c, d, f, p;
|
|
16101
16101
|
const r = e.message ? e.message : ns((c = (u = (l = e.inst) == null ? void 0 : l._zod.def) == null ? void 0 : u.error) == null ? void 0 : c.call(u, e)) ?? ns((d = t == null ? void 0 : t.error) == null ? void 0 : d.call(t, e)) ?? ns((f = n.customError) == null ? void 0 : f.call(n, e)) ?? ns((p = n.localeError) == null ? void 0 : p.call(n, e)) ?? "Invalid input", { inst: o, continue: i, input: s, ...a } = e;
|
|
16102
16102
|
return a.path ?? (a.path = []), a.message = r, t != null && t.reportInput && (a.input = s), a;
|
|
@@ -16160,7 +16160,7 @@ const gd = (e) => (t, n, r, o) => {
|
|
|
16160
16160
|
if (s instanceof Promise)
|
|
16161
16161
|
throw new Br();
|
|
16162
16162
|
if (s.issues.length) {
|
|
16163
|
-
const a = new ((o == null ? void 0 : o.Err) ?? e)(s.issues.map((l) =>
|
|
16163
|
+
const a = new ((o == null ? void 0 : o.Err) ?? e)(s.issues.map((l) => sr(l, i, ir())));
|
|
16164
16164
|
throw Ag(a, o == null ? void 0 : o.callee), a;
|
|
16165
16165
|
}
|
|
16166
16166
|
return s.value;
|
|
@@ -16168,7 +16168,7 @@ const gd = (e) => (t, n, r, o) => {
|
|
|
16168
16168
|
const i = r ? { ...r, async: !0 } : { async: !0 };
|
|
16169
16169
|
let s = t._zod.run({ value: n, issues: [] }, i);
|
|
16170
16170
|
if (s instanceof Promise && (s = await s), s.issues.length) {
|
|
16171
|
-
const a = new ((o == null ? void 0 : o.Err) ?? e)(s.issues.map((l) =>
|
|
16171
|
+
const a = new ((o == null ? void 0 : o.Err) ?? e)(s.issues.map((l) => sr(l, i, ir())));
|
|
16172
16172
|
throw Ag(a, o == null ? void 0 : o.callee), a;
|
|
16173
16173
|
}
|
|
16174
16174
|
return s.value;
|
|
@@ -16178,14 +16178,14 @@ const gd = (e) => (t, n, r, o) => {
|
|
|
16178
16178
|
throw new Br();
|
|
16179
16179
|
return i.issues.length ? {
|
|
16180
16180
|
success: !1,
|
|
16181
|
-
error: new (e ?? Lg)(i.issues.map((s) =>
|
|
16181
|
+
error: new (e ?? Lg)(i.issues.map((s) => sr(s, o, ir())))
|
|
16182
16182
|
} : { success: !0, data: i.value };
|
|
16183
16183
|
}, I5 = /* @__PURE__ */ Ma(Mg), Fa = (e) => async (t, n, r) => {
|
|
16184
16184
|
const o = r ? { ...r, async: !0 } : { async: !0 };
|
|
16185
16185
|
let i = t._zod.run({ value: n, issues: [] }, o);
|
|
16186
16186
|
return i instanceof Promise && (i = await i), i.issues.length ? {
|
|
16187
16187
|
success: !1,
|
|
16188
|
-
error: new e(i.issues.map((s) =>
|
|
16188
|
+
error: new e(i.issues.map((s) => sr(s, o, ir())))
|
|
16189
16189
|
} : { success: !0, data: i.value };
|
|
16190
16190
|
}, O5 = /* @__PURE__ */ Fa(Mg), A5 = (e) => (t, n, r) => {
|
|
16191
16191
|
const o = r ? { ...r, direction: "backward" } : { direction: "backward" };
|
|
@@ -17092,7 +17092,7 @@ function Sp(e, t, n, r) {
|
|
|
17092
17092
|
code: "invalid_union",
|
|
17093
17093
|
input: t.value,
|
|
17094
17094
|
inst: n,
|
|
17095
|
-
errors: e.map((i) => i.issues.map((s) =>
|
|
17095
|
+
errors: e.map((i) => i.issues.map((s) => sr(s, r, ir())))
|
|
17096
17096
|
}), t);
|
|
17097
17097
|
}
|
|
17098
17098
|
const iC = /* @__PURE__ */ E("$ZodUnion", (e, t) => {
|
|
@@ -17276,13 +17276,13 @@ const hC = /* @__PURE__ */ E("$ZodCatch", (e, t) => {
|
|
|
17276
17276
|
return o instanceof Promise ? o.then((i) => (n.value = i.value, i.issues.length && (n.value = t.catchValue({
|
|
17277
17277
|
...n,
|
|
17278
17278
|
error: {
|
|
17279
|
-
issues: i.issues.map((s) =>
|
|
17279
|
+
issues: i.issues.map((s) => sr(s, r, ir()))
|
|
17280
17280
|
},
|
|
17281
17281
|
input: n.value
|
|
17282
17282
|
}), n.issues = [], n.fallback = !0), n)) : (n.value = o.value, o.issues.length && (n.value = t.catchValue({
|
|
17283
17283
|
...n,
|
|
17284
17284
|
error: {
|
|
17285
|
-
issues: o.issues.map((i) =>
|
|
17285
|
+
issues: o.issues.map((i) => sr(i, r, ir()))
|
|
17286
17286
|
},
|
|
17287
17287
|
input: n.value
|
|
17288
17288
|
}), n.issues = [], n.fallback = !0), n);
|
|
@@ -18864,7 +18864,7 @@ function KE(e, t) {
|
|
|
18864
18864
|
out: t
|
|
18865
18865
|
});
|
|
18866
18866
|
}
|
|
18867
|
-
const
|
|
18867
|
+
const Dn = KE(
|
|
18868
18868
|
(e) => typeof e == "string" ? { agent: e } : e,
|
|
18869
18869
|
it({
|
|
18870
18870
|
agent: ze(_i),
|
|
@@ -18984,12 +18984,13 @@ it({
|
|
|
18984
18984
|
}).optional(),
|
|
18985
18985
|
defaultAgent: ze(_i).optional(),
|
|
18986
18986
|
defaultAgents: it({
|
|
18987
|
-
phase:
|
|
18988
|
-
planDraft:
|
|
18989
|
-
ideaExtend:
|
|
18990
|
-
commitSuggest:
|
|
18991
|
-
feedback:
|
|
18992
|
-
codeReview:
|
|
18987
|
+
phase: Dn,
|
|
18988
|
+
planDraft: Dn,
|
|
18989
|
+
ideaExtend: Dn,
|
|
18990
|
+
commitSuggest: Dn,
|
|
18991
|
+
feedback: Dn,
|
|
18992
|
+
codeReview: Dn,
|
|
18993
|
+
deskDiscovery: Dn
|
|
18993
18994
|
}).optional(),
|
|
18994
18995
|
desk: JE.optional()
|
|
18995
18996
|
});
|
|
@@ -20297,11 +20298,11 @@ function nT() {
|
|
|
20297
20298
|
const e = document.createElement("link");
|
|
20298
20299
|
e.id = Xp, e.rel = "stylesheet", e.href = tT, document.head.appendChild(e);
|
|
20299
20300
|
}
|
|
20300
|
-
var
|
|
20301
|
+
var Yn;
|
|
20301
20302
|
class rT extends HTMLElement {
|
|
20302
20303
|
constructor() {
|
|
20303
20304
|
super(...arguments);
|
|
20304
|
-
Sd(this,
|
|
20305
|
+
Sd(this, Yn, null);
|
|
20305
20306
|
}
|
|
20306
20307
|
connectedCallback() {
|
|
20307
20308
|
nT();
|
|
@@ -20314,14 +20315,14 @@ class rT extends HTMLElement {
|
|
|
20314
20315
|
const i = document.createElement("style");
|
|
20315
20316
|
i.textContent = W0.replaceAll(":root", ":root, :host"), r.appendChild(i);
|
|
20316
20317
|
const s = document.createElement("div");
|
|
20317
|
-
s.style.fontFamily = '"Cormorant Garamond", Georgia, serif', r.appendChild(s), Ba(this,
|
|
20318
|
+
s.style.fontFamily = '"Cormorant Garamond", Georgia, serif', r.appendChild(s), Ba(this, Yn, m_(s)), Da(this, Yn).render(/* @__PURE__ */ v.jsx(eT, { route: n ?? void 0 }));
|
|
20318
20319
|
}
|
|
20319
20320
|
disconnectedCallback() {
|
|
20320
20321
|
var n;
|
|
20321
|
-
(n = Da(this,
|
|
20322
|
+
(n = Da(this, Yn)) == null || n.unmount(), Ba(this, Yn, null);
|
|
20322
20323
|
}
|
|
20323
20324
|
}
|
|
20324
|
-
|
|
20325
|
+
Yn = new WeakMap();
|
|
20325
20326
|
customElements.get(aa) || customElements.define(aa, rT);
|
|
20326
20327
|
var eh;
|
|
20327
20328
|
if (!document.querySelector(aa)) {
|