adminizer 5.2.0-build.33 → 5.2.0-build.35
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/assets/{abnfDiagram-VCTEODGH-BnsIqosm.js → abnfDiagram-VCTEODGH-VlwaoUTb.js} +1 -1
- package/assets/{add-LtDQwU4b.js → add-CqSZIEWV.js} +1 -1
- package/assets/{add-group-B7P_c4C8.js → add-group-BOsQ0Q3j.js} +1 -1
- package/assets/{add-user-BsX7SMOH.js → add-user-L2wD_b_T.js} +1 -1
- package/assets/ai-assistant/agent.es.js +20488 -19277
- package/assets/app-Bon67K9l.css +1 -0
- package/assets/app-CWlMJiPe.js +138 -0
- package/assets/{architectureDiagram-5GKGNRK7-CHxPdttY.js → architectureDiagram-5GKGNRK7-u57qIB-M.js} +2 -2
- package/assets/{blockDiagram-I7D4REHJ-BYTzbRFE.js → blockDiagram-I7D4REHJ-DV90TjcV.js} +4 -4
- package/assets/{c4Diagram-7LVT6UL2-CI7dW3xq.js → c4Diagram-7LVT6UL2-t5nM_yE6.js} +1 -1
- package/assets/{catalog-BiMamMLN.js → catalog-D6aEgpu7.js} +1 -1
- package/assets/channel-BObXBllO.js +1 -0
- package/assets/{chunk-2Q5K7J3B-Hi-aK_Ha.js → chunk-2Q5K7J3B-Bvean9Oy.js} +1 -1
- package/assets/{chunk-5VM5RSS4-DgcY5Qji.js → chunk-5VM5RSS4-C4yczpcm.js} +1 -1
- package/assets/{chunk-F27PBJKO-DKXOt00w.js → chunk-F27PBJKO-CZQTtsTa.js} +1 -1
- package/assets/{chunk-IMKFNOWR-D4WeUgcs.js → chunk-IMKFNOWR-CvCLehQX.js} +1 -1
- package/assets/{chunk-JWPE2WC7-Ce6Rxa30.js → chunk-JWPE2WC7-BEsqzX-T.js} +1 -1
- package/assets/{chunk-POPQ4Y6H-D0kDsnoE.js → chunk-POPQ4Y6H-BPKiJml-.js} +1 -1
- package/assets/{chunk-SVP7TREG-CYirWYWz.js → chunk-SVP7TREG-BVkc4_Yf.js} +4 -4
- package/assets/{chunk-TICWLB2K-HEf09VbM.js → chunk-TICWLB2K-nbzNG2Lg.js} +1 -1
- package/assets/{chunk-XXDRQBXY-_0ZRO4MZ.js → chunk-XXDRQBXY-BAn4BRVo.js} +1 -1
- package/assets/classDiagram-ZZMXUADV-Dyvh9xeB.js +1 -0
- package/assets/classDiagram-v2-VYDZK3BY-Dyvh9xeB.js +1 -0
- package/assets/controls/ckeditor.es.js +9602 -9418
- package/assets/controls/jsoneditor.es.js +672 -674
- package/assets/controls/toast-ui.es.js +14597 -14596
- package/assets/{cose-bilkent-JH36ORCC-Btol7060.js → cose-bilkent-JH36ORCC-DjIWkId6.js} +1 -1
- package/assets/{cynefin-OW5HDTMX-Olv1bWeO.js → cynefin-OW5HDTMX-DA3WSPz5.js} +1 -1
- package/assets/{cynefinDiagram-5FMLGOSQ-CK0ep8mN.js → cynefinDiagram-5FMLGOSQ-CctOa4fE.js} +2 -2
- package/assets/cytoscape.esm-BHa1VTXv.js +321 -0
- package/assets/d3-scale-4DPf7zan.js +1 -0
- package/assets/{dagre-GXQ25YYZ-D_Tgq3Xg.js → dagre-GXQ25YYZ-BeP3E0b5.js} +2 -2
- package/assets/{dashboard-D7Vrpy3X.js → dashboard-C0pXUDqP.js} +1 -1
- package/assets/{diagram-S7CK7UJ4-Cylxlvfi.js → diagram-S7CK7UJ4-B85fwkaf.js} +3 -3
- package/assets/diagram-UQ7AKVKN-CqkEko9N.js +41 -0
- package/assets/{diagram-VSXAHHWV-DBLNVtPt.js → diagram-VSXAHHWV-x-PrtWHy.js} +1 -1
- package/assets/diagram-VX7I27RA-BYJBRYa8.js +24 -0
- package/assets/{diagram-Z3DM3KII-B6K8hUqN.js → diagram-Z3DM3KII-DCiL-xro.js} +1 -1
- package/assets/{docs-Ce8UYCsn.js → docs-Db-NexCf.js} +1 -1
- package/assets/{ebnfDiagram-PWID7BFC-D5fzOhJr.js → ebnfDiagram-PWID7BFC-CwM3RllY.js} +1 -1
- package/assets/{erDiagram-RLTQ6QDP-B1b5aX0r.js → erDiagram-RLTQ6QDP-D_h8KziD.js} +1 -1
- package/assets/{flowDiagram-HODETNUW-DUt4TmGE.js → flowDiagram-HODETNUW-DGimFqFm.js} +4 -4
- package/assets/ganttDiagram-EL5Y4UJY-CJpR4o0I.js +292 -0
- package/assets/{gitGraphDiagram-WWUBYQGX-BCagtg-j.js → gitGraphDiagram-WWUBYQGX-Dg_f7BHs.js} +1 -1
- package/assets/{history-Bq0XZ13j.js → history-DXiUYmwU.js} +1 -1
- package/assets/{infoDiagram-27XIBGKW-CtqP-RaE.js → infoDiagram-27XIBGKW-wV9lWzkf.js} +1 -1
- package/assets/{init-user-BCb4NPxa.js → init-user-pCW_Q05s.js} +1 -1
- package/assets/{ishikawaDiagram-5VMMS53U-CU7tu3i5.js → ishikawaDiagram-5VMMS53U-BsTDr38x.js} +3 -3
- package/assets/{journeyDiagram-3NMN7TZE-DcGtNnor.js → journeyDiagram-3NMN7TZE-CNHbwqwc.js} +2 -2
- package/assets/{kanban-definition-UXKFOSKX-Da1vwxDK.js → kanban-definition-UXKFOSKX-CVhJsHlN.js} +6 -6
- package/assets/layout-BfAIponG.js +1 -0
- package/assets/{list-Co2Yh_RS.js → list-DUvMtSpV.js} +1 -1
- package/assets/login-E_Y7wut5.js +1 -0
- package/assets/manifest.json +285 -326
- package/assets/{media-manager-BhrlfUDZ.js → media-manager-SrUV61oz.js} +1 -1
- package/assets/mermaid.core-dItKH28w.js +310 -0
- package/assets/{mindmap-definition-YA3MSWOX-DwC--3ep.js → mindmap-definition-YA3MSWOX-CeNd0CHT.js} +1 -1
- package/assets/{module-CBCiLH2M.js → module-BLZcWhbK.js} +1 -1
- package/assets/{notification-Dv_yjwYp.js → notification-Dud_cS95.js} +1 -1
- package/assets/{pegDiagram-XKGWAZYB-Bfjta7he.js → pegDiagram-XKGWAZYB-XkpCeLx7.js} +1 -1
- package/assets/pieDiagram-E7YTZNPT-IfctYNg6.js +39 -0
- package/assets/{quadrantDiagram-AXDQQJYC-DMsQ6bx3.js → quadrantDiagram-AXDQQJYC-Dl71kVWH.js} +4 -4
- package/assets/{railroadDiagram-O6MQD6OU-OMQR6DgW.js → railroadDiagram-O6MQD6OU-DFZCwxEi.js} +1 -1
- package/assets/{register-bvLgzRnh.js → register-CLXNA3RH.js} +1 -1
- package/assets/{requirementDiagram-BXWQKSXE-4eXUH2nw.js → requirementDiagram-BXWQKSXE-gwMr2hhN.js} +1 -1
- package/assets/{ru-GghByIKs.js → ru-BuRkfrV3.js} +1 -1
- package/assets/sankeyDiagram-P5KCCOFB-D4m9TUBM.js +40 -0
- package/assets/{sequenceDiagram-WJ2MYXX4-Cb-fxQnC.js → sequenceDiagram-WJ2MYXX4-JrZmoS_N.js} +1 -1
- package/assets/{sizeCapture-INFHLROL-DgQ7-zHE.js → sizeCapture-INFHLROL-Bi7VDSTt.js} +1 -1
- package/assets/stateDiagram-D77RDMKH-CoOTX1h8.js +1 -0
- package/assets/stateDiagram-v2-MP3YSRHH-DSV0uD3M.js +1 -0
- package/assets/{swimlanes-42K2YHIH-yCzVS5Kf.js → swimlanes-42K2YHIH-CgtKaw_1.js} +1 -1
- package/assets/swimlanesDiagram-VR7AAH4N-tGoQkrWA.js +8 -0
- package/assets/{timeline-definition-24CTP7MA-DZ-J8WVk.js → timeline-definition-24CTP7MA-DrSuUziH.js} +2 -2
- package/assets/{use-appearance-CNzjRFkO.js → use-appearance-CSP6Ml4F.js} +1 -1
- package/assets/{user-filters-list-XZQeWIcY.js → user-filters-list-Cv2Z3Fwm.js} +1 -1
- package/assets/{vennDiagram-4TSXK5OY-DmJwiSA5.js → vennDiagram-4TSXK5OY-BIeLKAIy.js} +5 -5
- package/assets/{wardleyDiagram-VM6X3IG4-CBtPOf2I.js → wardleyDiagram-VM6X3IG4-CwmxxXr9.js} +2 -2
- package/assets/{welcome-hJX9AsIB.js → welcome-CXTRhMo9.js} +1 -1
- package/assets/with-app-layout-DVk7VpSG.js +37 -0
- package/assets/xychartDiagram-S5SC5T6Z-DCx2Vin2.js +7 -0
- package/controllers/login.d.ts +1 -1
- package/controllers/login.js +18 -17
- package/interfaces/adminpanelConfig.d.ts +7 -0
- package/interfaces/global.d.ts +0 -1
- package/lib/app-manager/ContextHandler.d.ts +12 -1
- package/lib/app-manager/ContextHandler.js +9 -0
- package/lib/helper/pretend.d.ts +4 -0
- package/lib/helper/pretend.js +27 -0
- package/package.json +1 -1
- package/system/bindInertia.js +6 -1
- package/system/bindReqFunctions.js +13 -4
- package/translations/ru.json +1 -0
- package/assets/app-DM8KzeFz.css +0 -1
- package/assets/app-D_WEQ9Ix.js +0 -138
- package/assets/arc-CqLlrEwa.js +0 -1
- package/assets/channel-TXm2e8eJ.js +0 -1
- package/assets/classDiagram-ZZMXUADV-DhaqWTWz.js +0 -1
- package/assets/classDiagram-v2-VYDZK3BY-DhaqWTWz.js +0 -1
- package/assets/cytoscape.esm-BDkkwuE4.js +0 -321
- package/assets/defaultLocale-DX6XiGOO.js +0 -1
- package/assets/diagram-UQ7AKVKN-DTi2F_20.js +0 -41
- package/assets/diagram-VX7I27RA-CahscuCU.js +0 -24
- package/assets/ganttDiagram-EL5Y4UJY-CK-rD_6X.js +0 -292
- package/assets/init-Gi6I4Gst.js +0 -1
- package/assets/layout-wE9NXraK.js +0 -1
- package/assets/linear-Cl40xh64.js +0 -1
- package/assets/login-Cl1b-jvN.js +0 -1
- package/assets/mermaid.core-DFiCyHcW.js +0 -310
- package/assets/ordinal-Cboi1Yqb.js +0 -1
- package/assets/pieDiagram-E7YTZNPT-DR6xKA3p.js +0 -39
- package/assets/sankeyDiagram-P5KCCOFB-Cl9Yn7o4.js +0 -40
- package/assets/stateDiagram-D77RDMKH-BIK_kLM3.js +0 -1
- package/assets/stateDiagram-v2-MP3YSRHH-B6Bu0mpm.js +0 -1
- package/assets/swimlanesDiagram-VR7AAH4N-DFHYvxlZ.js +0 -8
- package/assets/with-app-layout-ORRLIlc0.js +0 -34
- package/assets/xychartDiagram-S5SC5T6Z-Drb6_i6k.js +0 -7
|
@@ -373,7 +373,7 @@ function n6() {
|
|
|
373
373
|
}
|
|
374
374
|
function M() {
|
|
375
375
|
var _ = "", S = !0;
|
|
376
|
-
m[k] == "-" && (_ += G()), _ += m[k] == "0" ? G() :
|
|
376
|
+
m[k] == "-" && (_ += G()), _ += m[k] == "0" ? G() : Se(), m[k] == "." && (_ += G() + Se(), S = !1), (m[k] == "e" || m[k] == "E") && (_ += G(), (m[k] == "+" || m[k] == "-") && (_ += G()), _ += Se(), S = !1);
|
|
377
377
|
var C = +_;
|
|
378
378
|
return b && S && (C > Number.MAX_SAFE_INTEGER || C < Number.MIN_SAFE_INTEGER) ? BigInt(_) : C;
|
|
379
379
|
}
|
|
@@ -410,7 +410,7 @@ function n6() {
|
|
|
410
410
|
G() !== _[S] && R();
|
|
411
411
|
}
|
|
412
412
|
function G() {
|
|
413
|
-
|
|
413
|
+
B();
|
|
414
414
|
var _ = m[k];
|
|
415
415
|
return k++, w++, _;
|
|
416
416
|
}
|
|
@@ -425,11 +425,11 @@ function n6() {
|
|
|
425
425
|
}
|
|
426
426
|
return String.fromCharCode(S);
|
|
427
427
|
}
|
|
428
|
-
function
|
|
428
|
+
function Se() {
|
|
429
429
|
for (var _ = ""; m[k] >= "0" && m[k] <= "9"; )
|
|
430
430
|
_ += G();
|
|
431
431
|
if (_.length) return _;
|
|
432
|
-
|
|
432
|
+
B(), te();
|
|
433
433
|
}
|
|
434
434
|
function ge(_, S) {
|
|
435
435
|
le(_, S, ne());
|
|
@@ -450,7 +450,7 @@ function n6() {
|
|
|
450
450
|
function R() {
|
|
451
451
|
Q(), te();
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function B() {
|
|
454
454
|
if (k >= m.length)
|
|
455
455
|
throw new SyntaxError("Unexpected end of JSON input");
|
|
456
456
|
}
|
|
@@ -505,18 +505,18 @@ function n6() {
|
|
|
505
505
|
pe(d(ne));
|
|
506
506
|
break;
|
|
507
507
|
case "object":
|
|
508
|
-
ne === null ? pe("null") : typeof ne.toJSON == "function" ? pe(d(ne.toJSON())) : Array.isArray(ne) ?
|
|
508
|
+
ne === null ? pe("null") : typeof ne.toJSON == "function" ? pe(d(ne.toJSON())) : Array.isArray(ne) ? B() : G ? ne.constructor.BYTES_PER_ELEMENT ? B() : ne instanceof Map ? S() : ne instanceof Set ? S(!0) : _() : _();
|
|
509
509
|
}
|
|
510
510
|
ge(R, "valueEnd");
|
|
511
|
-
function
|
|
511
|
+
function B() {
|
|
512
512
|
if (ne.length) {
|
|
513
513
|
pe("[");
|
|
514
514
|
for (var C = te + 1, $ = 0; $ < ne.length; $++) {
|
|
515
|
-
$ && pe(","),
|
|
515
|
+
$ && pe(","), Se(C);
|
|
516
516
|
var U = r(ne[$]) ? ne[$] : null, J = R + "/" + $;
|
|
517
517
|
Q(U, C, J);
|
|
518
518
|
}
|
|
519
|
-
|
|
519
|
+
Se(te), pe("]");
|
|
520
520
|
} else
|
|
521
521
|
pe("[]");
|
|
522
522
|
}
|
|
@@ -529,10 +529,10 @@ function n6() {
|
|
|
529
529
|
if (r(de)) {
|
|
530
530
|
U && pe(",");
|
|
531
531
|
var Ne = R + "/" + p(J);
|
|
532
|
-
|
|
532
|
+
Se($), ge(Ne, "key"), pe(d(J)), ge(Ne, "keyEnd"), pe(":"), k && pe(" "), Q(de, $, Ne);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
|
-
|
|
535
|
+
Se(te), pe("}");
|
|
536
536
|
} else
|
|
537
537
|
pe("{}");
|
|
538
538
|
}
|
|
@@ -540,15 +540,15 @@ function n6() {
|
|
|
540
540
|
if (ne.size) {
|
|
541
541
|
pe("{");
|
|
542
542
|
for (var $ = te + 1, U = !0, J = ne.entries(), de = J.next(); !de.done; ) {
|
|
543
|
-
var Ne = de.value, D = Ne[0],
|
|
544
|
-
if (r(
|
|
543
|
+
var Ne = de.value, D = Ne[0], q = C ? !0 : Ne[1];
|
|
544
|
+
if (r(q)) {
|
|
545
545
|
U || pe(","), U = !1;
|
|
546
546
|
var P = R + "/" + p(D);
|
|
547
|
-
|
|
547
|
+
Se($), ge(P, "key"), pe(d(D)), ge(P, "keyEnd"), pe(":"), k && pe(" "), Q(q, $, P);
|
|
548
548
|
}
|
|
549
549
|
de = J.next();
|
|
550
550
|
}
|
|
551
|
-
|
|
551
|
+
Se(te), pe("}");
|
|
552
552
|
} else
|
|
553
553
|
pe("{}");
|
|
554
554
|
}
|
|
@@ -556,7 +556,7 @@ function n6() {
|
|
|
556
556
|
function pe(ne) {
|
|
557
557
|
H += ne.length, V += ne.length, N += ne;
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function Se(ne) {
|
|
560
560
|
if (k) {
|
|
561
561
|
for (N += `
|
|
562
562
|
` + le(ne, k), z++, H = 0; ne--; )
|
|
@@ -839,8 +839,8 @@ function Fs(t) {
|
|
|
839
839
|
break;
|
|
840
840
|
}
|
|
841
841
|
s();
|
|
842
|
-
const R = f(":"),
|
|
843
|
-
R || (Rx(t[e]) ||
|
|
842
|
+
const R = f(":"), B = e >= t.length;
|
|
843
|
+
R || (Rx(t[e]) || B ? n = is(n, ":") : Se()), o() || (R || B ? n += "null" : Se()), le = !1;
|
|
844
844
|
}
|
|
845
845
|
return t[e] === "}" ? (n += "}", e++) : n = is(n, "}"), !0;
|
|
846
846
|
}
|
|
@@ -873,18 +873,18 @@ ${n}
|
|
|
873
873
|
let le = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, ne = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : -1;
|
|
874
874
|
const te = t[e] === "\\";
|
|
875
875
|
te && (e++, Md(t[e]) || G());
|
|
876
|
-
const R = t[e] === "&" ? Lx(t.slice(e, e + Dx)) : null,
|
|
877
|
-
if (Md(t[e]) ||
|
|
876
|
+
const R = t[e] === "&" ? Lx(t.slice(e, e + Dx)) : null, B = w6(R) || j6(R);
|
|
877
|
+
if (Md(t[e]) || B) {
|
|
878
878
|
const _ = $x(t[e]) ? $x : Ix(t[e]) ? Ix : H0(t[e]) ? H0 : dC, S = e, C = n.length;
|
|
879
879
|
let $ = '"';
|
|
880
|
-
for (e +=
|
|
880
|
+
for (e += B && R ? R.length : 1; ; ) {
|
|
881
881
|
if (e >= t.length) {
|
|
882
882
|
const de = M(e - 1);
|
|
883
883
|
return !le && ud(t.charAt(de)) ? (e = S, n = n.substring(0, C), x(!0)) : ($ = is($, '"'), n += $, !0);
|
|
884
884
|
}
|
|
885
885
|
if (e === ne)
|
|
886
886
|
return $ = is($, '"'), n += $, !0;
|
|
887
|
-
const U =
|
|
887
|
+
const U = B && t[e] === "&" ? Lx(t.slice(e, e + Dx)) : null;
|
|
888
888
|
if (U && R ? U.char === R.char : _(t[e])) {
|
|
889
889
|
const de = e, Ne = $.length;
|
|
890
890
|
if ($ += '"', e += U ? U.length : 1, n += $, s(!1), le || e >= t.length || ud(t[e]) && // only count the brackets inside the string when actually needed,
|
|
@@ -892,10 +892,10 @@ ${n}
|
|
|
892
892
|
!k6($, t[e]) || Md(t[e]) && !z(e) || Ba(t[e]))
|
|
893
893
|
return w(), !0;
|
|
894
894
|
t[e] === "\\" && G();
|
|
895
|
-
const D = M(de - 1),
|
|
896
|
-
if (
|
|
895
|
+
const D = M(de - 1), q = t.charAt(D);
|
|
896
|
+
if (q === ",")
|
|
897
897
|
return e = S, n = n.substring(0, C), x(!1, D);
|
|
898
|
-
if (ud(
|
|
898
|
+
if (ud(q))
|
|
899
899
|
return e = S, n = n.substring(0, C), x(!0);
|
|
900
900
|
n = n.substring(0, C), e = de + (U ? U.length : 1), $ = `${$.substring(0, Ne)}\\${$.substring(Ne)}`;
|
|
901
901
|
} else if (le && Px(t[e])) {
|
|
@@ -1016,7 +1016,7 @@ ${n}
|
|
|
1016
1016
|
function pe() {
|
|
1017
1017
|
throw new Pc("Object key expected", e);
|
|
1018
1018
|
}
|
|
1019
|
-
function
|
|
1019
|
+
function Se() {
|
|
1020
1020
|
throw new Pc("Colon expected", e);
|
|
1021
1021
|
}
|
|
1022
1022
|
function ge() {
|
|
@@ -2525,12 +2525,12 @@ function WC(t, e) {
|
|
|
2525
2525
|
const Q = N, pe = l(H);
|
|
2526
2526
|
if (!pe)
|
|
2527
2527
|
break;
|
|
2528
|
-
const
|
|
2528
|
+
const Se = a(z - 1), ge = G[0], le = pe === ge && !V;
|
|
2529
2529
|
if (le && !s.includes(i[pe])) {
|
|
2530
2530
|
N = Q;
|
|
2531
2531
|
break;
|
|
2532
2532
|
}
|
|
2533
|
-
G = le && o.includes(i[pe]) ? [...G,
|
|
2533
|
+
G = le && o.includes(i[pe]) ? [...G, Se] : [pe, G, Se];
|
|
2534
2534
|
}
|
|
2535
2535
|
return G;
|
|
2536
2536
|
}, l = (z) => {
|
|
@@ -3342,7 +3342,7 @@ function Tn() {
|
|
|
3342
3342
|
C = this.else = Array.isArray($) ? new v($) : $;
|
|
3343
3343
|
}
|
|
3344
3344
|
if (C)
|
|
3345
|
-
return S === !1 ? C instanceof y ? C : C.nodes : this.nodes.length ? this : new y(
|
|
3345
|
+
return S === !1 ? C instanceof y ? C : C.nodes : this.nodes.length ? this : new y(Se(S), C instanceof y ? [C] : C.nodes);
|
|
3346
3346
|
if (!(S === !1 || !this.nodes.length))
|
|
3347
3347
|
return this;
|
|
3348
3348
|
}
|
|
@@ -3688,10 +3688,10 @@ function Tn() {
|
|
|
3688
3688
|
for (const C in S)
|
|
3689
3689
|
_[C] = (_[C] || 0) - (S[C] || 0);
|
|
3690
3690
|
}
|
|
3691
|
-
function
|
|
3692
|
-
return typeof _ == "boolean" || typeof _ == "number" || _ === null ? !_ : (0, e._)`!${
|
|
3691
|
+
function Se(_) {
|
|
3692
|
+
return typeof _ == "boolean" || typeof _ == "number" || _ === null ? !_ : (0, e._)`!${B(_)}`;
|
|
3693
3693
|
}
|
|
3694
|
-
t.not =
|
|
3694
|
+
t.not = Se;
|
|
3695
3695
|
const ge = R(t.operators.AND);
|
|
3696
3696
|
function le(..._) {
|
|
3697
3697
|
return _.reduce(ge);
|
|
@@ -3703,9 +3703,9 @@ function Tn() {
|
|
|
3703
3703
|
}
|
|
3704
3704
|
t.or = te;
|
|
3705
3705
|
function R(_) {
|
|
3706
|
-
return (S, C) => S === e.nil ? C : C === e.nil ? S : (0, e._)`${
|
|
3706
|
+
return (S, C) => S === e.nil ? C : C === e.nil ? S : (0, e._)`${B(S)} ${_} ${B(C)}`;
|
|
3707
3707
|
}
|
|
3708
|
-
function
|
|
3708
|
+
function B(_) {
|
|
3709
3709
|
return _ instanceof e.Name ? _ : (0, e._)`(${_})`;
|
|
3710
3710
|
}
|
|
3711
3711
|
})(Cv)), Cv;
|
|
@@ -4653,8 +4653,8 @@ function _g() {
|
|
|
4653
4653
|
return;
|
|
4654
4654
|
const Q = b + H;
|
|
4655
4655
|
let pe = k[G];
|
|
4656
|
-
typeof z[y] == "string" && (pe =
|
|
4657
|
-
function
|
|
4656
|
+
typeof z[y] == "string" && (pe = Se.call(this, z[y])), ge.call(this, z.$anchor), ge.call(this, z.$dynamicAnchor), k[H] = pe;
|
|
4657
|
+
function Se(le) {
|
|
4658
4658
|
const ne = this.opts.uriResolver.resolve;
|
|
4659
4659
|
if (le = f(pe ? ne(pe, le) : le), O.has(le))
|
|
4660
4660
|
throw M(le);
|
|
@@ -4666,7 +4666,7 @@ function _g() {
|
|
|
4666
4666
|
if (typeof le == "string") {
|
|
4667
4667
|
if (!p.test(le))
|
|
4668
4668
|
throw new Error(`invalid anchor "${le}"`);
|
|
4669
|
-
|
|
4669
|
+
Se.call(this, `#${le}`);
|
|
4670
4670
|
}
|
|
4671
4671
|
}
|
|
4672
4672
|
}), j;
|
|
@@ -4693,204 +4693,204 @@ function Pg() {
|
|
|
4693
4693
|
p(D, () => (0, t.topBoolOrEmptySchema)(D));
|
|
4694
4694
|
}
|
|
4695
4695
|
ea.validateFunctionCode = h;
|
|
4696
|
-
function p({ gen: D, validateName:
|
|
4697
|
-
ie.code.es5 ? D.func(
|
|
4696
|
+
function p({ gen: D, validateName: q, schema: P, schemaEnv: Y, opts: ie }, Ae) {
|
|
4697
|
+
ie.code.es5 ? D.func(q, (0, a._)`${l.default.data}, ${l.default.valCxt}`, Y.$async, () => {
|
|
4698
4698
|
D.code((0, a._)`"use strict"; ${x(P, ie)}`), g(D, ie), D.code(Ae);
|
|
4699
|
-
}) : D.func(
|
|
4699
|
+
}) : D.func(q, (0, a._)`${l.default.data}, ${m(ie)}`, Y.$async, () => D.code(x(P, ie)).code(Ae));
|
|
4700
4700
|
}
|
|
4701
4701
|
function m(D) {
|
|
4702
4702
|
return (0, a._)`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${D.dynamicRef ? (0, a._)`, ${l.default.dynamicAnchors}={}` : a.nil}}={}`;
|
|
4703
4703
|
}
|
|
4704
|
-
function g(D,
|
|
4704
|
+
function g(D, q) {
|
|
4705
4705
|
D.if(l.default.valCxt, () => {
|
|
4706
|
-
D.var(l.default.instancePath, (0, a._)`${l.default.valCxt}.${l.default.instancePath}`), D.var(l.default.parentData, (0, a._)`${l.default.valCxt}.${l.default.parentData}`), D.var(l.default.parentDataProperty, (0, a._)`${l.default.valCxt}.${l.default.parentDataProperty}`), D.var(l.default.rootData, (0, a._)`${l.default.valCxt}.${l.default.rootData}`),
|
|
4706
|
+
D.var(l.default.instancePath, (0, a._)`${l.default.valCxt}.${l.default.instancePath}`), D.var(l.default.parentData, (0, a._)`${l.default.valCxt}.${l.default.parentData}`), D.var(l.default.parentDataProperty, (0, a._)`${l.default.valCxt}.${l.default.parentDataProperty}`), D.var(l.default.rootData, (0, a._)`${l.default.valCxt}.${l.default.rootData}`), q.dynamicRef && D.var(l.default.dynamicAnchors, (0, a._)`${l.default.valCxt}.${l.default.dynamicAnchors}`);
|
|
4707
4707
|
}, () => {
|
|
4708
|
-
D.var(l.default.instancePath, (0, a._)`""`), D.var(l.default.parentData, (0, a._)`undefined`), D.var(l.default.parentDataProperty, (0, a._)`undefined`), D.var(l.default.rootData, l.default.data),
|
|
4708
|
+
D.var(l.default.instancePath, (0, a._)`""`), D.var(l.default.parentData, (0, a._)`undefined`), D.var(l.default.parentDataProperty, (0, a._)`undefined`), D.var(l.default.rootData, l.default.data), q.dynamicRef && D.var(l.default.dynamicAnchors, (0, a._)`{}`);
|
|
4709
4709
|
});
|
|
4710
4710
|
}
|
|
4711
4711
|
function v(D) {
|
|
4712
|
-
const { schema:
|
|
4712
|
+
const { schema: q, opts: P, gen: Y } = D;
|
|
4713
4713
|
p(D, () => {
|
|
4714
|
-
P.$comment &&
|
|
4714
|
+
P.$comment && q.$comment && G(D), z(D), Y.let(l.default.vErrors, null), Y.let(l.default.errors, 0), P.unevaluated && y(D), N(D), Q(D);
|
|
4715
4715
|
});
|
|
4716
4716
|
}
|
|
4717
4717
|
function y(D) {
|
|
4718
|
-
const { gen:
|
|
4719
|
-
D.evaluated =
|
|
4718
|
+
const { gen: q, validateName: P } = D;
|
|
4719
|
+
D.evaluated = q.const("evaluated", (0, a._)`${P}.evaluated`), q.if((0, a._)`${D.evaluated}.dynamicProps`, () => q.assign((0, a._)`${D.evaluated}.props`, (0, a._)`undefined`)), q.if((0, a._)`${D.evaluated}.dynamicItems`, () => q.assign((0, a._)`${D.evaluated}.items`, (0, a._)`undefined`));
|
|
4720
4720
|
}
|
|
4721
|
-
function x(D,
|
|
4722
|
-
const P = typeof D == "object" && D[
|
|
4723
|
-
return P && (
|
|
4721
|
+
function x(D, q) {
|
|
4722
|
+
const P = typeof D == "object" && D[q.schemaId];
|
|
4723
|
+
return P && (q.code.source || q.code.process) ? (0, a._)`/*# sourceURL=${P} */` : a.nil;
|
|
4724
4724
|
}
|
|
4725
|
-
function w(D,
|
|
4725
|
+
function w(D, q) {
|
|
4726
4726
|
if (b(D) && (O(D), k(D))) {
|
|
4727
|
-
j(D,
|
|
4727
|
+
j(D, q);
|
|
4728
4728
|
return;
|
|
4729
4729
|
}
|
|
4730
|
-
(0, t.boolOrEmptySchema)(D,
|
|
4730
|
+
(0, t.boolOrEmptySchema)(D, q);
|
|
4731
4731
|
}
|
|
4732
|
-
function k({ schema: D, self:
|
|
4732
|
+
function k({ schema: D, self: q }) {
|
|
4733
4733
|
if (typeof D == "boolean")
|
|
4734
4734
|
return !D;
|
|
4735
4735
|
for (const P in D)
|
|
4736
|
-
if (
|
|
4736
|
+
if (q.RULES.all[P])
|
|
4737
4737
|
return !0;
|
|
4738
4738
|
return !1;
|
|
4739
4739
|
}
|
|
4740
4740
|
function b(D) {
|
|
4741
4741
|
return typeof D.schema != "boolean";
|
|
4742
4742
|
}
|
|
4743
|
-
function j(D,
|
|
4743
|
+
function j(D, q) {
|
|
4744
4744
|
const { schema: P, gen: Y, opts: ie } = D;
|
|
4745
4745
|
ie.$comment && P.$comment && G(D), H(D), V(D);
|
|
4746
4746
|
const Ae = Y.const("_errs", l.default.errors);
|
|
4747
|
-
N(D, Ae), Y.var(
|
|
4747
|
+
N(D, Ae), Y.var(q, (0, a._)`${Ae} === ${l.default.errors}`);
|
|
4748
4748
|
}
|
|
4749
4749
|
function O(D) {
|
|
4750
4750
|
(0, d.checkUnknownRules)(D), M(D);
|
|
4751
4751
|
}
|
|
4752
|
-
function N(D,
|
|
4752
|
+
function N(D, q) {
|
|
4753
4753
|
if (D.opts.jtd)
|
|
4754
|
-
return
|
|
4754
|
+
return Se(D, [], !1, q);
|
|
4755
4755
|
const P = (0, e.getSchemaTypes)(D.schema), Y = (0, e.coerceAndCheckDataType)(D, P);
|
|
4756
|
-
|
|
4756
|
+
Se(D, P, !Y, q);
|
|
4757
4757
|
}
|
|
4758
4758
|
function M(D) {
|
|
4759
|
-
const { schema:
|
|
4760
|
-
|
|
4759
|
+
const { schema: q, errSchemaPath: P, opts: Y, self: ie } = D;
|
|
4760
|
+
q.$ref && Y.ignoreKeywordsWithRef && (0, d.schemaHasRulesButRef)(q, ie.RULES) && ie.logger.warn(`$ref: keywords ignored in schema at path "${P}"`);
|
|
4761
4761
|
}
|
|
4762
4762
|
function z(D) {
|
|
4763
|
-
const { schema:
|
|
4764
|
-
|
|
4763
|
+
const { schema: q, opts: P } = D;
|
|
4764
|
+
q.default !== void 0 && P.useDefaults && P.strictSchema && (0, d.checkStrictMode)(D, "default is ignored in the schema root");
|
|
4765
4765
|
}
|
|
4766
4766
|
function H(D) {
|
|
4767
|
-
const
|
|
4768
|
-
|
|
4767
|
+
const q = D.schema[D.opts.schemaId];
|
|
4768
|
+
q && (D.baseId = (0, u.resolveUrl)(D.opts.uriResolver, D.baseId, q));
|
|
4769
4769
|
}
|
|
4770
4770
|
function V(D) {
|
|
4771
4771
|
if (D.schema.$async && !D.schemaEnv.$async)
|
|
4772
4772
|
throw new Error("async schema in sync schema");
|
|
4773
4773
|
}
|
|
4774
|
-
function G({ gen: D, schemaEnv:
|
|
4774
|
+
function G({ gen: D, schemaEnv: q, schema: P, errSchemaPath: Y, opts: ie }) {
|
|
4775
4775
|
const Ae = P.$comment;
|
|
4776
4776
|
if (ie.$comment === !0)
|
|
4777
4777
|
D.code((0, a._)`${l.default.self}.logger.log(${Ae})`);
|
|
4778
4778
|
else if (typeof ie.$comment == "function") {
|
|
4779
|
-
const me = (0, a.str)`${Y}/$comment`, re = D.scopeValue("root", { ref:
|
|
4779
|
+
const me = (0, a.str)`${Y}/$comment`, re = D.scopeValue("root", { ref: q.root });
|
|
4780
4780
|
D.code((0, a._)`${l.default.self}.opts.$comment(${Ae}, ${me}, ${re}.schema)`);
|
|
4781
4781
|
}
|
|
4782
4782
|
}
|
|
4783
4783
|
function Q(D) {
|
|
4784
|
-
const { gen:
|
|
4785
|
-
P.$async ?
|
|
4784
|
+
const { gen: q, schemaEnv: P, validateName: Y, ValidationError: ie, opts: Ae } = D;
|
|
4785
|
+
P.$async ? q.if((0, a._)`${l.default.errors} === 0`, () => q.return(l.default.data), () => q.throw((0, a._)`new ${ie}(${l.default.vErrors})`)) : (q.assign((0, a._)`${Y}.errors`, l.default.vErrors), Ae.unevaluated && pe(D), q.return((0, a._)`${l.default.errors} === 0`));
|
|
4786
4786
|
}
|
|
4787
|
-
function pe({ gen: D, evaluated:
|
|
4788
|
-
P instanceof a.Name && D.assign((0, a._)`${
|
|
4787
|
+
function pe({ gen: D, evaluated: q, props: P, items: Y }) {
|
|
4788
|
+
P instanceof a.Name && D.assign((0, a._)`${q}.props`, P), Y instanceof a.Name && D.assign((0, a._)`${q}.items`, Y);
|
|
4789
4789
|
}
|
|
4790
|
-
function
|
|
4790
|
+
function Se(D, q, P, Y) {
|
|
4791
4791
|
const { gen: ie, schema: Ae, data: me, allErrors: re, opts: ke, self: tt } = D, { RULES: $e } = tt;
|
|
4792
4792
|
if (Ae.$ref && (ke.ignoreKeywordsWithRef || !(0, d.schemaHasRulesButRef)(Ae, $e))) {
|
|
4793
4793
|
ie.block(() => U(D, "$ref", $e.all.$ref.definition));
|
|
4794
4794
|
return;
|
|
4795
4795
|
}
|
|
4796
|
-
ke.jtd || le(D,
|
|
4796
|
+
ke.jtd || le(D, q), ie.block(() => {
|
|
4797
4797
|
for (const Ye of $e.rules)
|
|
4798
4798
|
it(Ye);
|
|
4799
4799
|
it($e.post);
|
|
4800
4800
|
});
|
|
4801
4801
|
function it(Ye) {
|
|
4802
|
-
(0, n.shouldUseGroup)(Ae, Ye) && (Ye.type ? (ie.if((0, r.checkDataType)(Ye.type, me, ke.strictNumbers)), ge(D, Ye),
|
|
4802
|
+
(0, n.shouldUseGroup)(Ae, Ye) && (Ye.type ? (ie.if((0, r.checkDataType)(Ye.type, me, ke.strictNumbers)), ge(D, Ye), q.length === 1 && q[0] === Ye.type && P && (ie.else(), (0, r.reportTypeError)(D)), ie.endIf()) : ge(D, Ye), re || ie.if((0, a._)`${l.default.errors} === ${Y || 0}`));
|
|
4803
4803
|
}
|
|
4804
4804
|
}
|
|
4805
|
-
function ge(D,
|
|
4805
|
+
function ge(D, q) {
|
|
4806
4806
|
const { gen: P, schema: Y, opts: { useDefaults: ie } } = D;
|
|
4807
|
-
ie && (0, i.assignDefaults)(D,
|
|
4808
|
-
for (const Ae of
|
|
4809
|
-
(0, n.shouldUseRule)(Y, Ae) && U(D, Ae.keyword, Ae.definition,
|
|
4807
|
+
ie && (0, i.assignDefaults)(D, q.type), P.block(() => {
|
|
4808
|
+
for (const Ae of q.rules)
|
|
4809
|
+
(0, n.shouldUseRule)(Y, Ae) && U(D, Ae.keyword, Ae.definition, q.type);
|
|
4810
4810
|
});
|
|
4811
4811
|
}
|
|
4812
|
-
function le(D,
|
|
4813
|
-
D.schemaEnv.meta || !D.opts.strictTypes || (ne(D,
|
|
4812
|
+
function le(D, q) {
|
|
4813
|
+
D.schemaEnv.meta || !D.opts.strictTypes || (ne(D, q), D.opts.allowUnionTypes || te(D, q), R(D, D.dataTypes));
|
|
4814
4814
|
}
|
|
4815
|
-
function ne(D,
|
|
4816
|
-
if (
|
|
4815
|
+
function ne(D, q) {
|
|
4816
|
+
if (q.length) {
|
|
4817
4817
|
if (!D.dataTypes.length) {
|
|
4818
|
-
D.dataTypes =
|
|
4818
|
+
D.dataTypes = q;
|
|
4819
4819
|
return;
|
|
4820
4820
|
}
|
|
4821
|
-
|
|
4821
|
+
q.forEach((P) => {
|
|
4822
4822
|
_(D.dataTypes, P) || C(D, `type "${P}" not allowed by context "${D.dataTypes.join(",")}"`);
|
|
4823
|
-
}), S(D,
|
|
4823
|
+
}), S(D, q);
|
|
4824
4824
|
}
|
|
4825
4825
|
}
|
|
4826
|
-
function te(D,
|
|
4827
|
-
|
|
4826
|
+
function te(D, q) {
|
|
4827
|
+
q.length > 1 && !(q.length === 2 && q.includes("null")) && C(D, "use allowUnionTypes to allow union type keyword");
|
|
4828
4828
|
}
|
|
4829
|
-
function R(D,
|
|
4829
|
+
function R(D, q) {
|
|
4830
4830
|
const P = D.self.RULES.all;
|
|
4831
4831
|
for (const Y in P) {
|
|
4832
4832
|
const ie = P[Y];
|
|
4833
4833
|
if (typeof ie == "object" && (0, n.shouldUseRule)(D.schema, ie)) {
|
|
4834
4834
|
const { type: Ae } = ie.definition;
|
|
4835
|
-
Ae.length && !Ae.some((me) => q
|
|
4835
|
+
Ae.length && !Ae.some((me) => B(q, me)) && C(D, `missing type "${Ae.join(",")}" for keyword "${Y}"`);
|
|
4836
4836
|
}
|
|
4837
4837
|
}
|
|
4838
4838
|
}
|
|
4839
|
-
function
|
|
4840
|
-
return D.includes(
|
|
4839
|
+
function B(D, q) {
|
|
4840
|
+
return D.includes(q) || q === "number" && D.includes("integer");
|
|
4841
4841
|
}
|
|
4842
|
-
function _(D,
|
|
4843
|
-
return D.includes(
|
|
4842
|
+
function _(D, q) {
|
|
4843
|
+
return D.includes(q) || q === "integer" && D.includes("number");
|
|
4844
4844
|
}
|
|
4845
|
-
function S(D,
|
|
4845
|
+
function S(D, q) {
|
|
4846
4846
|
const P = [];
|
|
4847
4847
|
for (const Y of D.dataTypes)
|
|
4848
|
-
_(
|
|
4848
|
+
_(q, Y) ? P.push(Y) : q.includes("integer") && Y === "number" && P.push("integer");
|
|
4849
4849
|
D.dataTypes = P;
|
|
4850
4850
|
}
|
|
4851
|
-
function C(D,
|
|
4851
|
+
function C(D, q) {
|
|
4852
4852
|
const P = D.schemaEnv.baseId + D.errSchemaPath;
|
|
4853
|
-
|
|
4853
|
+
q += ` at "${P}" (strictTypes)`, (0, d.checkStrictMode)(D, q, D.opts.strictTypes);
|
|
4854
4854
|
}
|
|
4855
4855
|
class $ {
|
|
4856
|
-
constructor(
|
|
4857
|
-
if ((0, o.validateKeywordUsage)(
|
|
4858
|
-
this.schemaCode =
|
|
4856
|
+
constructor(q, P, Y) {
|
|
4857
|
+
if ((0, o.validateKeywordUsage)(q, P, Y), this.gen = q.gen, this.allErrors = q.allErrors, this.keyword = Y, this.data = q.data, this.schema = q.schema[Y], this.$data = P.$data && q.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, d.schemaRefOrVal)(q, this.schema, Y, this.$data), this.schemaType = P.schemaType, this.parentSchema = q.schema, this.params = {}, this.it = q, this.def = P, this.$data)
|
|
4858
|
+
this.schemaCode = q.gen.const("vSchema", Ne(this.$data, q));
|
|
4859
4859
|
else if (this.schemaCode = this.schemaValue, !(0, o.validSchemaType)(this.schema, P.schemaType, P.allowUndefined))
|
|
4860
4860
|
throw new Error(`${Y} value must be ${JSON.stringify(P.schemaType)}`);
|
|
4861
|
-
("code" in P ? P.trackErrors : P.errors !== !1) && (this.errsCount =
|
|
4861
|
+
("code" in P ? P.trackErrors : P.errors !== !1) && (this.errsCount = q.gen.const("_errs", l.default.errors));
|
|
4862
4862
|
}
|
|
4863
|
-
result(
|
|
4864
|
-
this.failResult((0, a.not)(
|
|
4863
|
+
result(q, P, Y) {
|
|
4864
|
+
this.failResult((0, a.not)(q), P, Y);
|
|
4865
4865
|
}
|
|
4866
|
-
failResult(
|
|
4867
|
-
this.gen.if(
|
|
4866
|
+
failResult(q, P, Y) {
|
|
4867
|
+
this.gen.if(q), Y ? Y() : this.error(), P ? (this.gen.else(), P(), this.allErrors && this.gen.endIf()) : this.allErrors ? this.gen.endIf() : this.gen.else();
|
|
4868
4868
|
}
|
|
4869
|
-
pass(
|
|
4870
|
-
this.failResult((0, a.not)(
|
|
4869
|
+
pass(q, P) {
|
|
4870
|
+
this.failResult((0, a.not)(q), void 0, P);
|
|
4871
4871
|
}
|
|
4872
|
-
fail(
|
|
4873
|
-
if (
|
|
4872
|
+
fail(q) {
|
|
4873
|
+
if (q === void 0) {
|
|
4874
4874
|
this.error(), this.allErrors || this.gen.if(!1);
|
|
4875
4875
|
return;
|
|
4876
4876
|
}
|
|
4877
|
-
this.gen.if(
|
|
4877
|
+
this.gen.if(q), this.error(), this.allErrors ? this.gen.endIf() : this.gen.else();
|
|
4878
4878
|
}
|
|
4879
|
-
fail$data(
|
|
4879
|
+
fail$data(q) {
|
|
4880
4880
|
if (!this.$data)
|
|
4881
|
-
return this.fail(
|
|
4881
|
+
return this.fail(q);
|
|
4882
4882
|
const { schemaCode: P } = this;
|
|
4883
|
-
this.fail((0, a._)`${P} !== undefined && (${(0, a.or)(this.invalid$data(),
|
|
4883
|
+
this.fail((0, a._)`${P} !== undefined && (${(0, a.or)(this.invalid$data(), q)})`);
|
|
4884
4884
|
}
|
|
4885
|
-
error(
|
|
4885
|
+
error(q, P, Y) {
|
|
4886
4886
|
if (P) {
|
|
4887
|
-
this.setParams(P), this._error(
|
|
4887
|
+
this.setParams(P), this._error(q, Y), this.setParams({});
|
|
4888
4888
|
return;
|
|
4889
4889
|
}
|
|
4890
|
-
this._error(
|
|
4890
|
+
this._error(q, Y);
|
|
4891
4891
|
}
|
|
4892
|
-
_error(
|
|
4893
|
-
(
|
|
4892
|
+
_error(q, P) {
|
|
4893
|
+
(q ? f.reportExtraError : f.reportError)(this, this.def.error, P);
|
|
4894
4894
|
}
|
|
4895
4895
|
$dataError() {
|
|
4896
4896
|
(0, f.reportError)(this, this.def.$dataError || f.keyword$DataError);
|
|
@@ -4900,25 +4900,25 @@ function Pg() {
|
|
|
4900
4900
|
throw new Error('add "trackErrors" to keyword definition');
|
|
4901
4901
|
(0, f.resetErrorsCount)(this.gen, this.errsCount);
|
|
4902
4902
|
}
|
|
4903
|
-
ok(
|
|
4904
|
-
this.allErrors || this.gen.if(
|
|
4903
|
+
ok(q) {
|
|
4904
|
+
this.allErrors || this.gen.if(q);
|
|
4905
4905
|
}
|
|
4906
|
-
setParams(
|
|
4907
|
-
P ? Object.assign(this.params,
|
|
4906
|
+
setParams(q, P) {
|
|
4907
|
+
P ? Object.assign(this.params, q) : this.params = q;
|
|
4908
4908
|
}
|
|
4909
|
-
block$data(
|
|
4909
|
+
block$data(q, P, Y = a.nil) {
|
|
4910
4910
|
this.gen.block(() => {
|
|
4911
|
-
this.check$data(
|
|
4911
|
+
this.check$data(q, Y), P();
|
|
4912
4912
|
});
|
|
4913
4913
|
}
|
|
4914
|
-
check$data(
|
|
4914
|
+
check$data(q = a.nil, P = a.nil) {
|
|
4915
4915
|
if (!this.$data)
|
|
4916
4916
|
return;
|
|
4917
4917
|
const { gen: Y, schemaCode: ie, schemaType: Ae, def: me } = this;
|
|
4918
|
-
Y.if((0, a.or)((0, a._)`${ie} === undefined`, P)),
|
|
4918
|
+
Y.if((0, a.or)((0, a._)`${ie} === undefined`, P)), q !== a.nil && Y.assign(q, !0), (Ae.length || me.validateSchema) && (Y.elseIf(this.invalid$data()), this.$dataError(), q !== a.nil && Y.assign(q, !1)), Y.else();
|
|
4919
4919
|
}
|
|
4920
4920
|
invalid$data() {
|
|
4921
|
-
const { gen:
|
|
4921
|
+
const { gen: q, schemaCode: P, schemaType: Y, def: ie, it: Ae } = this;
|
|
4922
4922
|
return (0, a.or)(me(), re());
|
|
4923
4923
|
function me() {
|
|
4924
4924
|
if (Y.length) {
|
|
@@ -4931,35 +4931,35 @@ function Pg() {
|
|
|
4931
4931
|
}
|
|
4932
4932
|
function re() {
|
|
4933
4933
|
if (ie.validateSchema) {
|
|
4934
|
-
const ke =
|
|
4934
|
+
const ke = q.scopeValue("validate$data", { ref: ie.validateSchema });
|
|
4935
4935
|
return (0, a._)`!${ke}(${P})`;
|
|
4936
4936
|
}
|
|
4937
4937
|
return a.nil;
|
|
4938
4938
|
}
|
|
4939
4939
|
}
|
|
4940
|
-
subschema(
|
|
4941
|
-
const Y = (0, s.getSubschema)(this.it,
|
|
4942
|
-
(0, s.extendSubschemaData)(Y, this.it,
|
|
4940
|
+
subschema(q, P) {
|
|
4941
|
+
const Y = (0, s.getSubschema)(this.it, q);
|
|
4942
|
+
(0, s.extendSubschemaData)(Y, this.it, q), (0, s.extendSubschemaMode)(Y, q);
|
|
4943
4943
|
const ie = { ...this.it, ...Y, items: void 0, props: void 0 };
|
|
4944
4944
|
return w(ie, P), ie;
|
|
4945
4945
|
}
|
|
4946
|
-
mergeEvaluated(
|
|
4946
|
+
mergeEvaluated(q, P) {
|
|
4947
4947
|
const { it: Y, gen: ie } = this;
|
|
4948
|
-
Y.opts.unevaluated && (Y.props !== !0 &&
|
|
4948
|
+
Y.opts.unevaluated && (Y.props !== !0 && q.props !== void 0 && (Y.props = d.mergeEvaluated.props(ie, q.props, Y.props, P)), Y.items !== !0 && q.items !== void 0 && (Y.items = d.mergeEvaluated.items(ie, q.items, Y.items, P)));
|
|
4949
4949
|
}
|
|
4950
|
-
mergeValidEvaluated(
|
|
4950
|
+
mergeValidEvaluated(q, P) {
|
|
4951
4951
|
const { it: Y, gen: ie } = this;
|
|
4952
4952
|
if (Y.opts.unevaluated && (Y.props !== !0 || Y.items !== !0))
|
|
4953
|
-
return ie.if(P, () => this.mergeEvaluated(
|
|
4953
|
+
return ie.if(P, () => this.mergeEvaluated(q, a.Name)), !0;
|
|
4954
4954
|
}
|
|
4955
4955
|
}
|
|
4956
4956
|
ea.KeywordCxt = $;
|
|
4957
|
-
function U(D,
|
|
4958
|
-
const ie = new $(D, P,
|
|
4957
|
+
function U(D, q, P, Y) {
|
|
4958
|
+
const ie = new $(D, P, q);
|
|
4959
4959
|
"code" in P ? P.code(ie, Y) : ie.$data && P.validate ? (0, o.funcKeywordCode)(ie, P) : "macro" in P ? (0, o.macroKeywordCode)(ie, P) : (P.compile || P.validate) && (0, o.funcKeywordCode)(ie, P);
|
|
4960
4960
|
}
|
|
4961
4961
|
const J = /^\/(?:[^~]|~0|~1)*$/, de = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
|
|
4962
|
-
function Ne(D, { dataLevel:
|
|
4962
|
+
function Ne(D, { dataLevel: q, dataNames: P, dataPathArr: Y }) {
|
|
4963
4963
|
let ie, Ae;
|
|
4964
4964
|
if (D === "")
|
|
4965
4965
|
return l.default.rootData;
|
|
@@ -4973,13 +4973,13 @@ function Pg() {
|
|
|
4973
4973
|
throw new Error(`Invalid JSON-pointer: ${D}`);
|
|
4974
4974
|
const $e = +tt[1];
|
|
4975
4975
|
if (ie = tt[2], ie === "#") {
|
|
4976
|
-
if ($e >=
|
|
4976
|
+
if ($e >= q)
|
|
4977
4977
|
throw new Error(ke("property/index", $e));
|
|
4978
|
-
return Y[
|
|
4978
|
+
return Y[q - $e];
|
|
4979
4979
|
}
|
|
4980
|
-
if ($e >
|
|
4980
|
+
if ($e > q)
|
|
4981
4981
|
throw new Error(ke("data", $e));
|
|
4982
|
-
if (Ae = P[
|
|
4982
|
+
if (Ae = P[q - $e], !ie)
|
|
4983
4983
|
return Ae;
|
|
4984
4984
|
}
|
|
4985
4985
|
let me = Ae;
|
|
@@ -4988,7 +4988,7 @@ function Pg() {
|
|
|
4988
4988
|
tt && (Ae = (0, a._)`${Ae}${(0, a.getProperty)((0, d.unescapeJsonPointer)(tt))}`, me = (0, a._)`${me} && ${Ae}`);
|
|
4989
4989
|
return me;
|
|
4990
4990
|
function ke(tt, $e) {
|
|
4991
|
-
return `Cannot access ${tt} ${$e} levels up, current level is ${
|
|
4991
|
+
return `Cannot access ${tt} ${$e} levels up, current level is ${q}`;
|
|
4992
4992
|
}
|
|
4993
4993
|
}
|
|
4994
4994
|
return ea.getData = Ne, ea;
|
|
@@ -5189,35 +5189,35 @@ function i4() {
|
|
|
5189
5189
|
const t = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu), e = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u), n = RegExp.prototype.test.bind(/^\d*$/u), r = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu), i = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu), o = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u), s = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u), a = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u), l = new Array(256);
|
|
5190
5190
|
{
|
|
5191
5191
|
const R = "0123456789ABCDEF";
|
|
5192
|
-
for (let
|
|
5193
|
-
l[
|
|
5192
|
+
for (let B = 0; B < 256; B++)
|
|
5193
|
+
l[B] = "%" + R[B >> 4] + R[B & 15];
|
|
5194
5194
|
}
|
|
5195
5195
|
function u(R) {
|
|
5196
5196
|
return R < 2048 ? l[192 | R >> 6] + l[128 | R & 63] : R < 65536 ? l[224 | R >> 12] + l[128 | R >> 6 & 63] + l[128 | R & 63] : l[240 | R >> 18] + l[128 | R >> 12 & 63] + l[128 | R >> 6 & 63] + l[128 | R & 63];
|
|
5197
5197
|
}
|
|
5198
5198
|
function d(R) {
|
|
5199
|
-
let
|
|
5199
|
+
let B = "", _ = 0, S = 0;
|
|
5200
5200
|
for (S = 0; S < R.length; S++)
|
|
5201
5201
|
if (_ = R[S].charCodeAt(0), _ !== 48) {
|
|
5202
5202
|
if (!(_ >= 48 && _ <= 57 || _ >= 65 && _ <= 70 || _ >= 97 && _ <= 102))
|
|
5203
5203
|
return "";
|
|
5204
|
-
|
|
5204
|
+
B += R[S];
|
|
5205
5205
|
break;
|
|
5206
5206
|
}
|
|
5207
5207
|
for (S += 1; S < R.length; S++) {
|
|
5208
5208
|
if (_ = R[S].charCodeAt(0), !(_ >= 48 && _ <= 57 || _ >= 65 && _ <= 70 || _ >= 97 && _ <= 102))
|
|
5209
5209
|
return "";
|
|
5210
|
-
|
|
5210
|
+
B += R[S];
|
|
5211
5211
|
}
|
|
5212
|
-
return
|
|
5212
|
+
return B;
|
|
5213
5213
|
}
|
|
5214
5214
|
const f = RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/), h = RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/), p = RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/), m = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
|
|
5215
5215
|
function g(R) {
|
|
5216
5216
|
if (R.length === 0) return !1;
|
|
5217
|
-
for (let
|
|
5218
|
-
if (!p(R[
|
|
5219
|
-
if (R[
|
|
5220
|
-
|
|
5217
|
+
for (let B = 0; B < R.length; B++)
|
|
5218
|
+
if (!p(R[B])) {
|
|
5219
|
+
if (R[B] === "%" && B + 2 < R.length && r(R.slice(B + 1, B + 3))) {
|
|
5220
|
+
B += 2;
|
|
5221
5221
|
continue;
|
|
5222
5222
|
}
|
|
5223
5223
|
return !1;
|
|
@@ -5225,32 +5225,32 @@ function i4() {
|
|
|
5225
5225
|
return !0;
|
|
5226
5226
|
}
|
|
5227
5227
|
function v(R) {
|
|
5228
|
-
let
|
|
5228
|
+
let B = -1, _ = 0, S = -1, C = 0;
|
|
5229
5229
|
for (let J = 0; J < R.length; J++)
|
|
5230
|
-
R[J] === "0" ? (S === -1 && (S = J), C++, C > _ && (_ = C,
|
|
5230
|
+
R[J] === "0" ? (S === -1 && (S = J), C++, C > _ && (_ = C, B = S)) : (S = -1, C = 0);
|
|
5231
5231
|
if (_ < 2) return R.join(":");
|
|
5232
|
-
const $ = R.slice(0,
|
|
5232
|
+
const $ = R.slice(0, B).join(":"), U = R.slice(B + _).join(":");
|
|
5233
5233
|
return $ + "::" + U;
|
|
5234
5234
|
}
|
|
5235
5235
|
function y(R) {
|
|
5236
|
-
const
|
|
5237
|
-
if (
|
|
5238
|
-
const _ =
|
|
5239
|
-
|
|
5236
|
+
const B = R.indexOf("::");
|
|
5237
|
+
if (B !== -1 && R.indexOf("::", B + 1) !== -1) return;
|
|
5238
|
+
const _ = B === -1 ? R.split(":") : R.slice(0, B).split(":"), S = B === -1 ? [] : R.slice(B + 2).split(":");
|
|
5239
|
+
B !== -1 && (_.length === 1 && _[0] === "" && (_.length = 0), S.length === 1 && S[0] === "" && (S.length = 0));
|
|
5240
5240
|
const C = _.concat(S);
|
|
5241
5241
|
let $ = 0;
|
|
5242
5242
|
for (let J = 0; J < C.length; J++) {
|
|
5243
5243
|
const de = C[J];
|
|
5244
5244
|
if (de === "") return;
|
|
5245
5245
|
if (de.indexOf(".") !== -1) {
|
|
5246
|
-
if (J !== C.length - 1 ||
|
|
5246
|
+
if (J !== C.length - 1 || B !== -1 && S.length === 0 || !e(de)) return;
|
|
5247
5247
|
$ += 2;
|
|
5248
5248
|
continue;
|
|
5249
5249
|
}
|
|
5250
5250
|
if (!f(de)) return;
|
|
5251
5251
|
C[J] = parseInt(de, 16).toString(16), $++;
|
|
5252
5252
|
}
|
|
5253
|
-
if (
|
|
5253
|
+
if (B === -1)
|
|
5254
5254
|
return $ !== 8 ? void 0 : v(C);
|
|
5255
5255
|
if ($ >= 8) return;
|
|
5256
5256
|
const U = C.slice(0, _.length);
|
|
@@ -5259,13 +5259,13 @@ function i4() {
|
|
|
5259
5259
|
return v(U);
|
|
5260
5260
|
}
|
|
5261
5261
|
function x(R) {
|
|
5262
|
-
const
|
|
5263
|
-
if ((R[0] === "[" || R[R.length - 1] === "]") && !
|
|
5264
|
-
let S =
|
|
5265
|
-
if (
|
|
5262
|
+
const B = R[0] === "[" && R[R.length - 1] === "]";
|
|
5263
|
+
if ((R[0] === "[" || R[R.length - 1] === "]") && !B) return { host: R, isIPV6: !1, error: !0 };
|
|
5264
|
+
let S = B ? R.slice(1, -1) : R;
|
|
5265
|
+
if (B && h(S))
|
|
5266
5266
|
return S = S.toLowerCase(), { host: `[${S}]`, escapedHost: S, isIPV6: !1, isIPVFuture: !0 };
|
|
5267
5267
|
if (w(S, ":") < 2)
|
|
5268
|
-
return { host: R, isIPV6: !1, error:
|
|
5268
|
+
return { host: R, isIPV6: !1, error: B };
|
|
5269
5269
|
let C = "";
|
|
5270
5270
|
const $ = S.indexOf("%");
|
|
5271
5271
|
if ($ !== -1) {
|
|
@@ -5280,87 +5280,87 @@ function i4() {
|
|
|
5280
5280
|
isIPV6: !0
|
|
5281
5281
|
};
|
|
5282
5282
|
}
|
|
5283
|
-
function w(R,
|
|
5283
|
+
function w(R, B) {
|
|
5284
5284
|
let _ = 0;
|
|
5285
5285
|
for (let S = 0; S < R.length; S++)
|
|
5286
|
-
R[S] ===
|
|
5286
|
+
R[S] === B && _++;
|
|
5287
5287
|
return _;
|
|
5288
5288
|
}
|
|
5289
5289
|
function k(R) {
|
|
5290
|
-
let
|
|
5290
|
+
let B = R;
|
|
5291
5291
|
const _ = [];
|
|
5292
5292
|
let S = -1, C = 0;
|
|
5293
|
-
for (; C =
|
|
5293
|
+
for (; C = B.length; ) {
|
|
5294
5294
|
if (C === 1) {
|
|
5295
|
-
if (
|
|
5295
|
+
if (B === ".")
|
|
5296
5296
|
break;
|
|
5297
|
-
if (
|
|
5297
|
+
if (B === "/") {
|
|
5298
5298
|
_.push("/");
|
|
5299
5299
|
break;
|
|
5300
5300
|
} else {
|
|
5301
|
-
_.push(
|
|
5301
|
+
_.push(B);
|
|
5302
5302
|
break;
|
|
5303
5303
|
}
|
|
5304
5304
|
} else if (C === 2) {
|
|
5305
|
-
if (
|
|
5306
|
-
if (
|
|
5305
|
+
if (B[0] === ".") {
|
|
5306
|
+
if (B[1] === ".")
|
|
5307
5307
|
break;
|
|
5308
|
-
if (
|
|
5309
|
-
|
|
5308
|
+
if (B[1] === "/") {
|
|
5309
|
+
B = B.slice(2);
|
|
5310
5310
|
continue;
|
|
5311
5311
|
}
|
|
5312
|
-
} else if (
|
|
5312
|
+
} else if (B[0] === "/" && (B[1] === "." || B[1] === "/")) {
|
|
5313
5313
|
_.push("/");
|
|
5314
5314
|
break;
|
|
5315
5315
|
}
|
|
5316
|
-
} else if (C === 3 &&
|
|
5316
|
+
} else if (C === 3 && B === "/..") {
|
|
5317
5317
|
_.length !== 0 && _.pop(), _.push("/");
|
|
5318
5318
|
break;
|
|
5319
5319
|
}
|
|
5320
|
-
if (
|
|
5321
|
-
if (
|
|
5322
|
-
if (
|
|
5323
|
-
|
|
5320
|
+
if (B[0] === ".") {
|
|
5321
|
+
if (B[1] === ".") {
|
|
5322
|
+
if (B[2] === "/") {
|
|
5323
|
+
B = B.slice(3);
|
|
5324
5324
|
continue;
|
|
5325
5325
|
}
|
|
5326
|
-
} else if (
|
|
5327
|
-
|
|
5326
|
+
} else if (B[1] === "/") {
|
|
5327
|
+
B = B.slice(2);
|
|
5328
5328
|
continue;
|
|
5329
5329
|
}
|
|
5330
|
-
} else if (
|
|
5331
|
-
if (
|
|
5332
|
-
|
|
5330
|
+
} else if (B[0] === "/" && B[1] === ".") {
|
|
5331
|
+
if (B[2] === "/") {
|
|
5332
|
+
B = B.slice(2);
|
|
5333
5333
|
continue;
|
|
5334
|
-
} else if (
|
|
5335
|
-
|
|
5334
|
+
} else if (B[2] === "." && B[3] === "/") {
|
|
5335
|
+
B = B.slice(3), _.length !== 0 && _.pop();
|
|
5336
5336
|
continue;
|
|
5337
5337
|
}
|
|
5338
5338
|
}
|
|
5339
|
-
if ((S =
|
|
5340
|
-
_.push(
|
|
5339
|
+
if ((S = B.indexOf("/", 1)) === -1) {
|
|
5340
|
+
_.push(B);
|
|
5341
5341
|
break;
|
|
5342
5342
|
} else
|
|
5343
|
-
_.push(
|
|
5343
|
+
_.push(B.slice(0, S)), B = B.slice(S);
|
|
5344
5344
|
}
|
|
5345
5345
|
return _.join("");
|
|
5346
5346
|
}
|
|
5347
5347
|
function b(R) {
|
|
5348
5348
|
if (R === "" || R[0] === "/")
|
|
5349
5349
|
return k(R);
|
|
5350
|
-
const
|
|
5350
|
+
const B = R.split("/"), _ = B.length - 1, S = [];
|
|
5351
5351
|
let C = !1;
|
|
5352
5352
|
for (let $ = 0; $ <= _; $++) {
|
|
5353
|
-
const U =
|
|
5353
|
+
const U = B[$];
|
|
5354
5354
|
U === "." || U === ".." ? (U === ".." && (S.length !== 0 && S[S.length - 1] !== ".." ? S.pop() : S.push("..")), C = $ === _) : S.push(U);
|
|
5355
5355
|
}
|
|
5356
5356
|
return C && S[S.length - 1] !== ".." && S.push(""), (S.length === 0 || S[0] === "" || S[0].includes(":")) && S.unshift("."), S.join("/");
|
|
5357
5357
|
}
|
|
5358
5358
|
const j = { "@": "%40", "/": "%2F", "?": "%3F", "#": "%23", ":": "%3A" }, O = /[@/?#:]/g, N = /[@/?#]/g;
|
|
5359
|
-
function M(R,
|
|
5360
|
-
const _ =
|
|
5359
|
+
function M(R, B) {
|
|
5360
|
+
const _ = B ? N : O;
|
|
5361
5361
|
return _.lastIndex = 0, R.replace(_, (S) => j[S]);
|
|
5362
5362
|
}
|
|
5363
|
-
function z(R,
|
|
5363
|
+
function z(R, B = !1) {
|
|
5364
5364
|
if (R.indexOf("%") === -1)
|
|
5365
5365
|
return R;
|
|
5366
5366
|
let _ = "";
|
|
@@ -5369,7 +5369,7 @@ function i4() {
|
|
|
5369
5369
|
const C = R.slice(S + 1, S + 3);
|
|
5370
5370
|
if (r(C)) {
|
|
5371
5371
|
const $ = C.toUpperCase(), U = String.fromCharCode(parseInt($, 16));
|
|
5372
|
-
|
|
5372
|
+
B && i(U) ? _ += U : _ += "%" + $, S += 2;
|
|
5373
5373
|
continue;
|
|
5374
5374
|
}
|
|
5375
5375
|
}
|
|
@@ -5378,36 +5378,36 @@ function i4() {
|
|
|
5378
5378
|
return _;
|
|
5379
5379
|
}
|
|
5380
5380
|
function H(R) {
|
|
5381
|
-
let
|
|
5381
|
+
let B = "";
|
|
5382
5382
|
for (let _ = 0; _ < R.length; _++) {
|
|
5383
5383
|
const S = R[_];
|
|
5384
5384
|
if (S === "%" && _ + 2 < R.length) {
|
|
5385
5385
|
const C = R.slice(_ + 1, _ + 3);
|
|
5386
5386
|
if (r(C)) {
|
|
5387
5387
|
const $ = C.toUpperCase(), U = String.fromCharCode(parseInt($, 16));
|
|
5388
|
-
U !== "." && i(U) ?
|
|
5388
|
+
U !== "." && i(U) ? B += U : B += "%" + $, _ += 2;
|
|
5389
5389
|
continue;
|
|
5390
5390
|
}
|
|
5391
5391
|
}
|
|
5392
5392
|
if (o(S))
|
|
5393
|
-
|
|
5393
|
+
B += S;
|
|
5394
5394
|
else {
|
|
5395
5395
|
const C = R.charCodeAt(_);
|
|
5396
5396
|
if (C < 128)
|
|
5397
|
-
|
|
5397
|
+
B += ge(C) ? S : l[C];
|
|
5398
5398
|
else if (C < 55296 || C > 57343)
|
|
5399
|
-
|
|
5399
|
+
B += u(C);
|
|
5400
5400
|
else if (C <= 56319 && _ + 1 < R.length) {
|
|
5401
5401
|
const $ = R.charCodeAt(_ + 1);
|
|
5402
|
-
$ >= 56320 && $ <= 57343 ? (
|
|
5402
|
+
$ >= 56320 && $ <= 57343 ? (B += u(65536 + (C - 55296 << 10) + ($ - 56320)), _++) : B += u(65533);
|
|
5403
5403
|
} else
|
|
5404
|
-
|
|
5404
|
+
B += u(65533);
|
|
5405
5405
|
}
|
|
5406
5406
|
}
|
|
5407
|
-
return
|
|
5407
|
+
return B;
|
|
5408
5408
|
}
|
|
5409
|
-
function V(R,
|
|
5410
|
-
let _ = "", S =
|
|
5409
|
+
function V(R, B = !1) {
|
|
5410
|
+
let _ = "", S = B && R[0] !== "/";
|
|
5411
5411
|
for (let C = 0; C < R.length; C++) {
|
|
5412
5412
|
const $ = R[C];
|
|
5413
5413
|
if ($ === "%" && C + 2 < R.length) {
|
|
@@ -5434,7 +5434,7 @@ function i4() {
|
|
|
5434
5434
|
}
|
|
5435
5435
|
return _;
|
|
5436
5436
|
}
|
|
5437
|
-
function G(R,
|
|
5437
|
+
function G(R, B) {
|
|
5438
5438
|
let _ = "";
|
|
5439
5439
|
for (let S = 0; S < R.length; S++) {
|
|
5440
5440
|
const C = R[S];
|
|
@@ -5445,7 +5445,7 @@ function i4() {
|
|
|
5445
5445
|
continue;
|
|
5446
5446
|
}
|
|
5447
5447
|
}
|
|
5448
|
-
if (
|
|
5448
|
+
if (B(C))
|
|
5449
5449
|
_ += C;
|
|
5450
5450
|
else {
|
|
5451
5451
|
const $ = R.charCodeAt(S);
|
|
@@ -5468,72 +5468,72 @@ function i4() {
|
|
|
5468
5468
|
function pe(R) {
|
|
5469
5469
|
return G(R, s);
|
|
5470
5470
|
}
|
|
5471
|
-
function
|
|
5471
|
+
function Se(R) {
|
|
5472
5472
|
return G(R, s);
|
|
5473
5473
|
}
|
|
5474
5474
|
function ge(R) {
|
|
5475
5475
|
return R >= 48 && R <= 57 || R >= 65 && R <= 90 || R >= 97 && R <= 122 || R === 42 || R === 43 || R === 45 || R === 46 || R === 47 || R === 64 || R === 95;
|
|
5476
5476
|
}
|
|
5477
5477
|
function le(R) {
|
|
5478
|
-
let
|
|
5478
|
+
let B = "";
|
|
5479
5479
|
for (let _ = 0; _ < R.length; _++) {
|
|
5480
5480
|
const S = R[_];
|
|
5481
5481
|
if (S === "%" && _ + 2 < R.length) {
|
|
5482
5482
|
const C = R.slice(_ + 1, _ + 3);
|
|
5483
5483
|
if (r(C)) {
|
|
5484
5484
|
const $ = C.toUpperCase(), U = String.fromCharCode(parseInt($, 16));
|
|
5485
|
-
i(U) ?
|
|
5485
|
+
i(U) ? B += U : B += "%" + $, _ += 2;
|
|
5486
5486
|
continue;
|
|
5487
5487
|
}
|
|
5488
5488
|
}
|
|
5489
5489
|
if (s(S))
|
|
5490
|
-
|
|
5490
|
+
B += S;
|
|
5491
5491
|
else {
|
|
5492
5492
|
const C = R.charCodeAt(_);
|
|
5493
5493
|
if (C < 128)
|
|
5494
|
-
|
|
5494
|
+
B += ge(C) ? S : l[C];
|
|
5495
5495
|
else if (C < 55296 || C > 57343)
|
|
5496
|
-
|
|
5496
|
+
B += u(C);
|
|
5497
5497
|
else if (C <= 56319 && _ + 1 < R.length) {
|
|
5498
5498
|
const $ = R.charCodeAt(_ + 1);
|
|
5499
|
-
$ >= 56320 && $ <= 57343 ? (
|
|
5499
|
+
$ >= 56320 && $ <= 57343 ? (B += u(65536 + (C - 55296 << 10) + ($ - 56320)), _++) : B += u(65533);
|
|
5500
5500
|
} else
|
|
5501
|
-
|
|
5501
|
+
B += u(65533);
|
|
5502
5502
|
}
|
|
5503
5503
|
}
|
|
5504
|
-
return
|
|
5504
|
+
return B;
|
|
5505
5505
|
}
|
|
5506
5506
|
function ne(R) {
|
|
5507
|
-
let
|
|
5507
|
+
let B = "";
|
|
5508
5508
|
for (let _ = 0; _ < R.length; _++) {
|
|
5509
5509
|
if (R[_] === "%" && _ + 2 < R.length) {
|
|
5510
5510
|
const S = R.slice(_ + 1, _ + 3);
|
|
5511
5511
|
if (r(S)) {
|
|
5512
|
-
|
|
5512
|
+
B += "%" + S.toUpperCase(), _ += 2;
|
|
5513
5513
|
continue;
|
|
5514
5514
|
}
|
|
5515
5515
|
}
|
|
5516
|
-
|
|
5516
|
+
B += escape(R[_]);
|
|
5517
5517
|
}
|
|
5518
|
-
return
|
|
5518
|
+
return B;
|
|
5519
5519
|
}
|
|
5520
5520
|
function te(R) {
|
|
5521
|
-
const
|
|
5522
|
-
if (R.userinfo !== void 0 && (
|
|
5521
|
+
const B = [];
|
|
5522
|
+
if (R.userinfo !== void 0 && (B.push(Q(R.userinfo)), B.push("@")), R.host !== void 0) {
|
|
5523
5523
|
let _ = R.host;
|
|
5524
5524
|
if (!e(_)) {
|
|
5525
5525
|
let S = x(_);
|
|
5526
5526
|
S.isIPV6 !== !0 && S.isIPVFuture !== !0 && (_ = z(_, !0), S = x(_)), S.isIPV6 === !0 || S.isIPVFuture === !0 ? _ = `[${S.escapedHost}]` : _ = M(_, !1);
|
|
5527
5527
|
}
|
|
5528
|
-
|
|
5528
|
+
B.push(_);
|
|
5529
5529
|
}
|
|
5530
5530
|
if (typeof R.port == "number" || typeof R.port == "string") {
|
|
5531
5531
|
const _ = String(R.port);
|
|
5532
5532
|
if (!n(_))
|
|
5533
5533
|
throw new TypeError("URI port is malformed.");
|
|
5534
|
-
|
|
5534
|
+
B.push(":"), B.push(_);
|
|
5535
5535
|
}
|
|
5536
|
-
return
|
|
5536
|
+
return B.length ? B.join("") : void 0;
|
|
5537
5537
|
}
|
|
5538
5538
|
return Tv = {
|
|
5539
5539
|
nonSimpleDomain: m,
|
|
@@ -5545,7 +5545,7 @@ function i4() {
|
|
|
5545
5545
|
normalizeQueryFragmentEncoding: le,
|
|
5546
5546
|
encodeUserinfo: Q,
|
|
5547
5547
|
encodeQuery: pe,
|
|
5548
|
-
encodeFragment:
|
|
5548
|
+
encodeFragment: Se,
|
|
5549
5549
|
escapePreservingEscapes: ne,
|
|
5550
5550
|
removeDotSegments: k,
|
|
5551
5551
|
removeDotSegmentsRelative: b,
|
|
@@ -5722,7 +5722,7 @@ function l9() {
|
|
|
5722
5722
|
parsed: de,
|
|
5723
5723
|
malformedAuthorityOrPort: Ne,
|
|
5724
5724
|
malformedPercentEncoding: D,
|
|
5725
|
-
malformedSchemeSpecific:
|
|
5725
|
+
malformedSchemeSpecific: q,
|
|
5726
5726
|
malformedHost: P,
|
|
5727
5727
|
malformedScheme: Y
|
|
5728
5728
|
} = ne(C, J), {
|
|
@@ -5733,12 +5733,12 @@ function l9() {
|
|
|
5733
5733
|
malformedHost: ke,
|
|
5734
5734
|
malformedScheme: tt
|
|
5735
5735
|
} = ne($, J);
|
|
5736
|
-
if (Ne || Ae || D || me ||
|
|
5736
|
+
if (Ne || Ae || D || me || q || re || P || ke || Y || tt)
|
|
5737
5737
|
throw new Error(de.error || ie.error || "URI is malformed.");
|
|
5738
5738
|
const $e = j(de, ie, J, !0), it = m(U && U.scheme || $e.scheme), Ye = $e.host, Le = Ye !== void 0 && Ye !== "" && (f(Ye) || t(Ye).isIPV6);
|
|
5739
5739
|
if (ge($e, U || {}, it, Le))
|
|
5740
5740
|
throw new Error(y);
|
|
5741
|
-
|
|
5741
|
+
Se($e, U || {}, it, Le);
|
|
5742
5742
|
const pt = Ye && Ye.indexOf("%") !== -1 && !new RegExp("\\P{ASCII}", "u").test(Ye);
|
|
5743
5743
|
if ($e.error && !pt)
|
|
5744
5744
|
throw new Error($e.error);
|
|
@@ -5793,12 +5793,12 @@ function l9() {
|
|
|
5793
5793
|
U.scheme && (U.scheme = w(U.scheme));
|
|
5794
5794
|
const Ne = m(J.scheme || U.scheme);
|
|
5795
5795
|
Ne && Ne.serialize && Ne.serialize(U, J);
|
|
5796
|
-
const D = U.userinfo !== void 0 || U.host !== void 0 || U.port !== void 0,
|
|
5796
|
+
const D = U.userinfo !== void 0 || U.host !== void 0 || U.port !== void 0, q = (U.scheme === void 0 || J.reference === "suffix") && !D, P = !J.skipEscape && q;
|
|
5797
5797
|
U.path !== void 0 && (J.skipEscape ? U.path = i(U.path) : U.path = s(U.path, P)), J.reference !== "suffix" && U.scheme && (U.scheme = w(U.scheme), de.push(U.scheme, ":"));
|
|
5798
5798
|
const Y = r(U);
|
|
5799
5799
|
if (Y !== void 0 && (J.reference !== "suffix" && de.push("//"), de.push(Y), U.path && U.path[0] !== "/" && de.push("/")), U.path !== void 0) {
|
|
5800
5800
|
let ie = U.path;
|
|
5801
|
-
!J.absolutePath && (!Ne || !Ne.absolutePath) && (ie =
|
|
5801
|
+
!J.absolutePath && (!Ne || !Ne.absolutePath) && (ie = q && ie[0] !== "/" ? n(ie) : e(ie)), q && (ie = s(ie, !0)), Y === void 0 && ie[0] === "/" && ie[1] === "/" && (ie = "/%2F" + ie.slice(2)), de.push(ie);
|
|
5802
5802
|
}
|
|
5803
5803
|
return U.query !== void 0 && de.push("?", l(U.query)), U.fragment !== void 0 && de.push("#", u(U.fragment)), de.join("");
|
|
5804
5804
|
}
|
|
@@ -5826,7 +5826,7 @@ function l9() {
|
|
|
5826
5826
|
const $ = C[4];
|
|
5827
5827
|
return G(C[3]) || $ !== void 0 && !Q($) && G($) || G(C[6]) || G(C[7]) || G(C[8]);
|
|
5828
5828
|
}
|
|
5829
|
-
function
|
|
5829
|
+
function Se(C, $, U, J) {
|
|
5830
5830
|
if (ge(C, $, U, J))
|
|
5831
5831
|
return C.error = C.error || y, !0;
|
|
5832
5832
|
if (!$.unicodeSupport && (!U || !U.unicodeSupport) && C.host && !Q(C.host) && ($.domainHost || U && U.domainHost) && J === !1 && h(C.host)) {
|
|
@@ -5858,7 +5858,7 @@ function l9() {
|
|
|
5858
5858
|
query: void 0,
|
|
5859
5859
|
fragment: void 0
|
|
5860
5860
|
};
|
|
5861
|
-
let de = !1, Ne = !1, D = !1,
|
|
5861
|
+
let de = !1, Ne = !1, D = !1, q = !1, P = !1, Y = !1, ie = !1;
|
|
5862
5862
|
U.reference === "suffix" && (U.scheme ? C = U.scheme + ":" + C : C = "//" + C);
|
|
5863
5863
|
const Ae = C.match(z);
|
|
5864
5864
|
Ae !== null && Ae[1].indexOf("\\") !== -1 && (J.error = "URI authority must not contain a literal backslash.", de = !0);
|
|
@@ -5879,30 +5879,30 @@ function l9() {
|
|
|
5879
5879
|
ie = !0;
|
|
5880
5880
|
J.scheme === void 0 && J.userinfo === void 0 && J.host === void 0 && J.port === void 0 && J.query === void 0 && !J.path ? J.reference = "same-document" : J.scheme === void 0 ? J.reference = "relative" : J.fragment === void 0 ? J.reference = "absolute" : J.reference = "uri", U.reference && U.reference !== "suffix" && U.reference !== J.reference && (J.error = J.error || "URI is not a " + U.reference + " reference.");
|
|
5881
5881
|
const tt = m(U.scheme || J.scheme);
|
|
5882
|
-
if (P || (
|
|
5882
|
+
if (P || (q = Se(J, U, tt, ie)), C.indexOf("%") !== -1 && J.host !== void 0 && !P) {
|
|
5883
5883
|
let $e = ie ? J.host : i(J.host, !0);
|
|
5884
5884
|
ie || ($e = i($e.toLowerCase())), J.host = ie || U.scheme !== "null" ? d($e, ie) : $e;
|
|
5885
5885
|
}
|
|
5886
5886
|
(!tt || tt && !tt.skipNormalize) && (J.path && (J.path = o(J.path)), J.query && (J.query = a(J.query)), J.fragment && (J.fragment = a(J.fragment))), tt && tt.parse && (tt.parse(J, U), tt === p.urn && J.nid === void 0 && (D = !0));
|
|
5887
5887
|
} else
|
|
5888
5888
|
J.error = J.error || "URI can not be parsed.";
|
|
5889
|
-
return { parsed: J, malformedAuthorityOrPort: de, malformedPercentEncoding: Ne, malformedSchemeSpecific: D, malformedHost:
|
|
5889
|
+
return { parsed: J, malformedAuthorityOrPort: de, malformedPercentEncoding: Ne, malformedSchemeSpecific: D, malformedHost: q, malformedScheme: Y };
|
|
5890
5890
|
}
|
|
5891
5891
|
function te(C, $) {
|
|
5892
5892
|
return ne(C, $).parsed;
|
|
5893
5893
|
}
|
|
5894
5894
|
function R(C, $) {
|
|
5895
|
-
return
|
|
5895
|
+
return B(C, $).normalized;
|
|
5896
5896
|
}
|
|
5897
|
-
function
|
|
5898
|
-
const { parsed: U, malformedAuthorityOrPort: J, malformedPercentEncoding: de, malformedSchemeSpecific: Ne, malformedHost: D, malformedScheme:
|
|
5897
|
+
function B(C, $) {
|
|
5898
|
+
const { parsed: U, malformedAuthorityOrPort: J, malformedPercentEncoding: de, malformedSchemeSpecific: Ne, malformedHost: D, malformedScheme: q } = ne(C, $);
|
|
5899
5899
|
return {
|
|
5900
|
-
normalized: J || de || Ne || D ||
|
|
5900
|
+
normalized: J || de || Ne || D || q ? C : N(U, $),
|
|
5901
5901
|
malformedAuthorityOrPort: J,
|
|
5902
5902
|
malformedPercentEncoding: de,
|
|
5903
5903
|
malformedSchemeSpecific: Ne,
|
|
5904
5904
|
malformedHost: D,
|
|
5905
|
-
malformedScheme:
|
|
5905
|
+
malformedScheme: q
|
|
5906
5906
|
};
|
|
5907
5907
|
}
|
|
5908
5908
|
function _(C, $) {
|
|
@@ -5914,8 +5914,8 @@ function l9() {
|
|
|
5914
5914
|
} catch {
|
|
5915
5915
|
return;
|
|
5916
5916
|
}
|
|
5917
|
-
const { normalized: J, malformedAuthorityOrPort: de, malformedPercentEncoding: Ne, malformedSchemeSpecific: D, malformedHost:
|
|
5918
|
-
return de || Ne || D ||
|
|
5917
|
+
const { normalized: J, malformedAuthorityOrPort: de, malformedPercentEncoding: Ne, malformedSchemeSpecific: D, malformedHost: q, malformedScheme: P } = B(U, $);
|
|
5918
|
+
return de || Ne || D || q || P ? void 0 : J;
|
|
5919
5919
|
}
|
|
5920
5920
|
const S = {
|
|
5921
5921
|
SCHEMES: p,
|
|
@@ -5995,13 +5995,13 @@ function u9() {
|
|
|
5995
5995
|
unicode: '"minLength"/"maxLength" account for unicode characters by default.'
|
|
5996
5996
|
}, x = 200;
|
|
5997
5997
|
function w(te) {
|
|
5998
|
-
var R,
|
|
5999
|
-
const I = te.strict, K = (R = te.code) === null || R === void 0 ? void 0 : R.optimize, X = K === !0 || K === void 0 ? 1 : K || 0, ue = (_ = (
|
|
5998
|
+
var R, B, _, S, C, $, U, J, de, Ne, D, q, P, Y, ie, Ae, me, re, ke, tt, $e, it, Ye, Le, pt;
|
|
5999
|
+
const I = te.strict, K = (R = te.code) === null || R === void 0 ? void 0 : R.optimize, X = K === !0 || K === void 0 ? 1 : K || 0, ue = (_ = (B = te.code) === null || B === void 0 ? void 0 : B.regExp) !== null && _ !== void 0 ? _ : p, xe = (S = te.uriResolver) !== null && S !== void 0 ? S : h.default;
|
|
6000
6000
|
return {
|
|
6001
6001
|
strictSchema: ($ = (C = te.strictSchema) !== null && C !== void 0 ? C : I) !== null && $ !== void 0 ? $ : !0,
|
|
6002
6002
|
strictNumbers: (J = (U = te.strictNumbers) !== null && U !== void 0 ? U : I) !== null && J !== void 0 ? J : !0,
|
|
6003
6003
|
strictTypes: (Ne = (de = te.strictTypes) !== null && de !== void 0 ? de : I) !== null && Ne !== void 0 ? Ne : "log",
|
|
6004
|
-
strictTuples: (
|
|
6004
|
+
strictTuples: (q = (D = te.strictTuples) !== null && D !== void 0 ? D : I) !== null && q !== void 0 ? q : "log",
|
|
6005
6005
|
strictRequired: (Y = (P = te.strictRequired) !== null && P !== void 0 ? P : I) !== null && Y !== void 0 ? Y : !1,
|
|
6006
6006
|
code: te.code ? { ...te.code, optimize: X, regExp: ue } : { optimize: X, regExp: ue },
|
|
6007
6007
|
loopRequired: (ie = te.loopRequired) !== null && ie !== void 0 ? ie : x,
|
|
@@ -6021,8 +6021,8 @@ function u9() {
|
|
|
6021
6021
|
class k {
|
|
6022
6022
|
constructor(R = {}) {
|
|
6023
6023
|
this.schemas = {}, this.refs = {}, this.formats = /* @__PURE__ */ Object.create(null), this._compilations = /* @__PURE__ */ new Set(), this._loading = {}, this._cache = /* @__PURE__ */ new Map(), R = this.opts = { ...R, ...w(R) };
|
|
6024
|
-
const { es5:
|
|
6025
|
-
this.scope = new a.ValueScope({ scope: {}, prefixes: g, es5:
|
|
6024
|
+
const { es5: B, lines: _ } = this.opts.code;
|
|
6025
|
+
this.scope = new a.ValueScope({ scope: {}, prefixes: g, es5: B, lines: _ }), this.logger = V(R.logger);
|
|
6026
6026
|
const S = R.validateFormats;
|
|
6027
6027
|
R.validateFormats = !1, this.RULES = (0, o.getRules)(), b.call(this, v, R, "NOT SUPPORTED"), b.call(this, y, R, "DEPRECATED", "warn"), this._metaOpts = z.call(this), R.formats && N.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), R.keywords && M.call(this, R.keywords), typeof R.meta == "object" && this.addMetaSchema(R.meta), O.call(this), R.validateFormats = S;
|
|
6028
6028
|
}
|
|
@@ -6030,37 +6030,37 @@ function u9() {
|
|
|
6030
6030
|
this.addKeyword("$async");
|
|
6031
6031
|
}
|
|
6032
6032
|
_addDefaultMetaSchema() {
|
|
6033
|
-
const { $data: R, meta:
|
|
6033
|
+
const { $data: R, meta: B, schemaId: _ } = this.opts;
|
|
6034
6034
|
let S = f;
|
|
6035
|
-
_ === "id" && (S = { ...f }, S.id = S.$id, delete S.$id),
|
|
6035
|
+
_ === "id" && (S = { ...f }, S.id = S.$id, delete S.$id), B && R && this.addMetaSchema(S, S[_], !1);
|
|
6036
6036
|
}
|
|
6037
6037
|
defaultMeta() {
|
|
6038
|
-
const { meta: R, schemaId:
|
|
6039
|
-
return this.opts.defaultMeta = typeof R == "object" ? R[
|
|
6038
|
+
const { meta: R, schemaId: B } = this.opts;
|
|
6039
|
+
return this.opts.defaultMeta = typeof R == "object" ? R[B] || R : void 0;
|
|
6040
6040
|
}
|
|
6041
|
-
validate(R,
|
|
6041
|
+
validate(R, B) {
|
|
6042
6042
|
let _;
|
|
6043
6043
|
if (typeof R == "string") {
|
|
6044
6044
|
if (_ = this.getSchema(R), !_)
|
|
6045
6045
|
throw new Error(`no schema with key or ref "${R}"`);
|
|
6046
6046
|
} else
|
|
6047
6047
|
_ = this.compile(R);
|
|
6048
|
-
const S = _(
|
|
6048
|
+
const S = _(B);
|
|
6049
6049
|
return "$async" in _ || (this.errors = _.errors), S;
|
|
6050
6050
|
}
|
|
6051
|
-
compile(R,
|
|
6052
|
-
const _ = this._addSchema(R,
|
|
6051
|
+
compile(R, B) {
|
|
6052
|
+
const _ = this._addSchema(R, B);
|
|
6053
6053
|
return _.validate || this._compileSchemaEnv(_);
|
|
6054
6054
|
}
|
|
6055
|
-
compileAsync(R,
|
|
6055
|
+
compileAsync(R, B) {
|
|
6056
6056
|
if (typeof this.opts.loadSchema != "function")
|
|
6057
6057
|
throw new Error("options.loadSchema should be a function");
|
|
6058
6058
|
const { loadSchema: _ } = this.opts;
|
|
6059
|
-
return S.call(this, R,
|
|
6059
|
+
return S.call(this, R, B);
|
|
6060
6060
|
async function S(Ne, D) {
|
|
6061
6061
|
await C.call(this, Ne.$schema);
|
|
6062
|
-
const
|
|
6063
|
-
return
|
|
6062
|
+
const q = this._addSchema(Ne, D);
|
|
6063
|
+
return q.validate || $.call(this, q);
|
|
6064
6064
|
}
|
|
6065
6065
|
async function C(Ne) {
|
|
6066
6066
|
Ne && !this.getSchema(Ne) && await S.call(this, { $ref: Ne }, !0);
|
|
@@ -6080,7 +6080,7 @@ function u9() {
|
|
|
6080
6080
|
}
|
|
6081
6081
|
async function J(Ne) {
|
|
6082
6082
|
const D = await de.call(this, Ne);
|
|
6083
|
-
this.refs[Ne] || await C.call(this, D.$schema), this.refs[Ne] || this.addSchema(D, Ne,
|
|
6083
|
+
this.refs[Ne] || await C.call(this, D.$schema), this.refs[Ne] || this.addSchema(D, Ne, B);
|
|
6084
6084
|
}
|
|
6085
6085
|
async function de(Ne) {
|
|
6086
6086
|
const D = this._loading[Ne];
|
|
@@ -6094,7 +6094,7 @@ function u9() {
|
|
|
6094
6094
|
}
|
|
6095
6095
|
}
|
|
6096
6096
|
// Adds schema to the instance
|
|
6097
|
-
addSchema(R,
|
|
6097
|
+
addSchema(R, B, _, S = this.opts.validateSchema) {
|
|
6098
6098
|
if (Array.isArray(R)) {
|
|
6099
6099
|
for (const $ of R)
|
|
6100
6100
|
this.addSchema($, void 0, _, S);
|
|
@@ -6106,15 +6106,15 @@ function u9() {
|
|
|
6106
6106
|
if (C = R[$], C !== void 0 && typeof C != "string")
|
|
6107
6107
|
throw new Error(`schema ${$} must be string`);
|
|
6108
6108
|
}
|
|
6109
|
-
return
|
|
6109
|
+
return B = (0, l.normalizeId)(B || C), this._checkUnique(B), this.schemas[B] = this._addSchema(R, _, B, S, !0), this;
|
|
6110
6110
|
}
|
|
6111
6111
|
// Add schema that will be used to validate other schemas
|
|
6112
6112
|
// options in META_IGNORE_OPTIONS are alway set to false
|
|
6113
|
-
addMetaSchema(R,
|
|
6114
|
-
return this.addSchema(R,
|
|
6113
|
+
addMetaSchema(R, B, _ = this.opts.validateSchema) {
|
|
6114
|
+
return this.addSchema(R, B, !0, _), this;
|
|
6115
6115
|
}
|
|
6116
6116
|
// Validate schema against its meta-schema
|
|
6117
|
-
validateSchema(R,
|
|
6117
|
+
validateSchema(R, B) {
|
|
6118
6118
|
if (typeof R == "boolean")
|
|
6119
6119
|
return !0;
|
|
6120
6120
|
let _;
|
|
@@ -6123,7 +6123,7 @@ function u9() {
|
|
|
6123
6123
|
if (_ = _ || this.opts.defaultMeta || this.defaultMeta(), !_)
|
|
6124
6124
|
return this.logger.warn("meta-schema not available"), this.errors = null, !0;
|
|
6125
6125
|
const S = this.validate(_, R);
|
|
6126
|
-
if (!S &&
|
|
6126
|
+
if (!S && B) {
|
|
6127
6127
|
const C = "schema is invalid: " + this.errorsText();
|
|
6128
6128
|
if (this.opts.validateSchema === "log")
|
|
6129
6129
|
this.logger.error(C);
|
|
@@ -6135,16 +6135,16 @@ function u9() {
|
|
|
6135
6135
|
// Get compiled schema by `key` or `ref`.
|
|
6136
6136
|
// (`key` that was passed to `addSchema` or full schema reference - `schema.$id` or resolved id)
|
|
6137
6137
|
getSchema(R) {
|
|
6138
|
-
let
|
|
6139
|
-
for (; typeof (
|
|
6140
|
-
R =
|
|
6141
|
-
if (
|
|
6138
|
+
let B;
|
|
6139
|
+
for (; typeof (B = j.call(this, R)) == "string"; )
|
|
6140
|
+
R = B;
|
|
6141
|
+
if (B === void 0) {
|
|
6142
6142
|
const { schemaId: _ } = this.opts, S = new s.SchemaEnv({ schema: {}, schemaId: _ });
|
|
6143
|
-
if (
|
|
6143
|
+
if (B = s.resolveSchema.call(this, S, R), !B)
|
|
6144
6144
|
return;
|
|
6145
|
-
this.refs[R] =
|
|
6145
|
+
this.refs[R] = B;
|
|
6146
6146
|
}
|
|
6147
|
-
return
|
|
6147
|
+
return B.validate || this._compileSchemaEnv(B);
|
|
6148
6148
|
}
|
|
6149
6149
|
// Remove cached schema(s).
|
|
6150
6150
|
// If no parameter is passed all schemas but meta-schemas are removed.
|
|
@@ -6157,12 +6157,12 @@ function u9() {
|
|
|
6157
6157
|
case "undefined":
|
|
6158
6158
|
return this._removeAllSchemas(this.schemas), this._removeAllSchemas(this.refs), this._cache.clear(), this;
|
|
6159
6159
|
case "string": {
|
|
6160
|
-
const
|
|
6161
|
-
return typeof
|
|
6160
|
+
const B = j.call(this, R);
|
|
6161
|
+
return typeof B == "object" && this._cache.delete(B.schema), delete this.schemas[R], delete this.refs[R], this;
|
|
6162
6162
|
}
|
|
6163
6163
|
case "object": {
|
|
6164
|
-
const
|
|
6165
|
-
this._cache.delete(
|
|
6164
|
+
const B = R;
|
|
6165
|
+
this._cache.delete(B);
|
|
6166
6166
|
let _ = R[this.opts.schemaId];
|
|
6167
6167
|
return _ && (_ = (0, l.normalizeId)(_), delete this.schemas[_], delete this.refs[_]), this;
|
|
6168
6168
|
}
|
|
@@ -6172,54 +6172,54 @@ function u9() {
|
|
|
6172
6172
|
}
|
|
6173
6173
|
// add "vocabulary" - a collection of keywords
|
|
6174
6174
|
addVocabulary(R) {
|
|
6175
|
-
for (const
|
|
6176
|
-
this.addKeyword(
|
|
6175
|
+
for (const B of R)
|
|
6176
|
+
this.addKeyword(B);
|
|
6177
6177
|
return this;
|
|
6178
6178
|
}
|
|
6179
|
-
addKeyword(R,
|
|
6179
|
+
addKeyword(R, B) {
|
|
6180
6180
|
let _;
|
|
6181
6181
|
if (typeof R == "string")
|
|
6182
|
-
_ = R, typeof
|
|
6183
|
-
else if (typeof R == "object" &&
|
|
6184
|
-
if (
|
|
6182
|
+
_ = R, typeof B == "object" && (this.logger.warn("these parameters are deprecated, see docs for addKeyword"), B.keyword = _);
|
|
6183
|
+
else if (typeof R == "object" && B === void 0) {
|
|
6184
|
+
if (B = R, _ = B.keyword, Array.isArray(_) && !_.length)
|
|
6185
6185
|
throw new Error("addKeywords: keyword must be string or non-empty array");
|
|
6186
6186
|
} else
|
|
6187
6187
|
throw new Error("invalid addKeywords parameters");
|
|
6188
|
-
if (Q.call(this, _,
|
|
6188
|
+
if (Q.call(this, _, B), !B)
|
|
6189
6189
|
return (0, d.eachItem)(_, (C) => pe.call(this, C)), this;
|
|
6190
|
-
ge.call(this,
|
|
6190
|
+
ge.call(this, B);
|
|
6191
6191
|
const S = {
|
|
6192
|
-
...
|
|
6193
|
-
type: (0, u.getJSONTypes)(
|
|
6194
|
-
schemaType: (0, u.getJSONTypes)(
|
|
6192
|
+
...B,
|
|
6193
|
+
type: (0, u.getJSONTypes)(B.type),
|
|
6194
|
+
schemaType: (0, u.getJSONTypes)(B.schemaType)
|
|
6195
6195
|
};
|
|
6196
6196
|
return (0, d.eachItem)(_, S.type.length === 0 ? (C) => pe.call(this, C, S) : (C) => S.type.forEach(($) => pe.call(this, C, S, $))), this;
|
|
6197
6197
|
}
|
|
6198
6198
|
getKeyword(R) {
|
|
6199
|
-
const
|
|
6200
|
-
return typeof
|
|
6199
|
+
const B = this.RULES.all[R];
|
|
6200
|
+
return typeof B == "object" ? B.definition : !!B;
|
|
6201
6201
|
}
|
|
6202
6202
|
// Remove keyword
|
|
6203
6203
|
removeKeyword(R) {
|
|
6204
|
-
const { RULES:
|
|
6205
|
-
delete
|
|
6206
|
-
for (const _ of
|
|
6204
|
+
const { RULES: B } = this;
|
|
6205
|
+
delete B.keywords[R], delete B.all[R];
|
|
6206
|
+
for (const _ of B.rules) {
|
|
6207
6207
|
const S = _.rules.findIndex((C) => C.keyword === R);
|
|
6208
6208
|
S >= 0 && _.rules.splice(S, 1);
|
|
6209
6209
|
}
|
|
6210
6210
|
return this;
|
|
6211
6211
|
}
|
|
6212
6212
|
// Add format
|
|
6213
|
-
addFormat(R,
|
|
6214
|
-
return typeof
|
|
6213
|
+
addFormat(R, B) {
|
|
6214
|
+
return typeof B == "string" && (B = new RegExp(B)), this.formats[R] = B, this;
|
|
6215
6215
|
}
|
|
6216
|
-
errorsText(R = this.errors, { separator:
|
|
6217
|
-
return !R || R.length === 0 ? "No errors" : R.map((S) => `${_}${S.instancePath} ${S.message}`).reduce((S, C) => S +
|
|
6216
|
+
errorsText(R = this.errors, { separator: B = ", ", dataVar: _ = "data" } = {}) {
|
|
6217
|
+
return !R || R.length === 0 ? "No errors" : R.map((S) => `${_}${S.instancePath} ${S.message}`).reduce((S, C) => S + B + C);
|
|
6218
6218
|
}
|
|
6219
|
-
$dataMetaSchema(R,
|
|
6219
|
+
$dataMetaSchema(R, B) {
|
|
6220
6220
|
const _ = this.RULES.all;
|
|
6221
6221
|
R = JSON.parse(JSON.stringify(R));
|
|
6222
|
-
for (const S of
|
|
6222
|
+
for (const S of B) {
|
|
6223
6223
|
const C = S.split("/").slice(1);
|
|
6224
6224
|
let $ = R;
|
|
6225
6225
|
for (const U of C)
|
|
@@ -6234,13 +6234,13 @@ function u9() {
|
|
|
6234
6234
|
}
|
|
6235
6235
|
return R;
|
|
6236
6236
|
}
|
|
6237
|
-
_removeAllSchemas(R,
|
|
6237
|
+
_removeAllSchemas(R, B) {
|
|
6238
6238
|
for (const _ in R) {
|
|
6239
6239
|
const S = R[_];
|
|
6240
|
-
(!
|
|
6240
|
+
(!B || B.test(_)) && (typeof S == "string" ? delete R[_] : S && !S.meta && (this._cache.delete(S.schema), delete R[_]));
|
|
6241
6241
|
}
|
|
6242
6242
|
}
|
|
6243
|
-
_addSchema(R,
|
|
6243
|
+
_addSchema(R, B, _, S = this.opts.validateSchema, C = this.opts.addUsedSchema) {
|
|
6244
6244
|
let $;
|
|
6245
6245
|
const { schemaId: U } = this.opts;
|
|
6246
6246
|
if (typeof R == "object")
|
|
@@ -6256,7 +6256,7 @@ function u9() {
|
|
|
6256
6256
|
return J;
|
|
6257
6257
|
_ = (0, l.normalizeId)($ || _);
|
|
6258
6258
|
const de = l.getSchemaRefs.call(this, R, _);
|
|
6259
|
-
return J = new s.SchemaEnv({ schema: R, schemaId: U, meta:
|
|
6259
|
+
return J = new s.SchemaEnv({ schema: R, schemaId: U, meta: B, baseId: _, localRefs: de }), this._cache.set(J.schema, J), C && !_.startsWith("#") && (_ && this._checkUnique(_), this.refs[_] = J), S && this.validateSchema(R, !0), J;
|
|
6260
6260
|
}
|
|
6261
6261
|
_checkUnique(R) {
|
|
6262
6262
|
if (this.schemas[R] || this.refs[R])
|
|
@@ -6268,20 +6268,20 @@ function u9() {
|
|
|
6268
6268
|
return R.validate;
|
|
6269
6269
|
}
|
|
6270
6270
|
_compileMetaSchema(R) {
|
|
6271
|
-
const
|
|
6271
|
+
const B = this.opts;
|
|
6272
6272
|
this.opts = this._metaOpts;
|
|
6273
6273
|
try {
|
|
6274
6274
|
s.compileSchema.call(this, R);
|
|
6275
6275
|
} finally {
|
|
6276
|
-
this.opts =
|
|
6276
|
+
this.opts = B;
|
|
6277
6277
|
}
|
|
6278
6278
|
}
|
|
6279
6279
|
}
|
|
6280
6280
|
k.ValidationError = r.default, k.MissingRefError = i.default, t.default = k;
|
|
6281
|
-
function b(te, R,
|
|
6281
|
+
function b(te, R, B, _ = "error") {
|
|
6282
6282
|
for (const S in te) {
|
|
6283
6283
|
const C = S;
|
|
6284
|
-
C in R && this.logger[_](`${
|
|
6284
|
+
C in R && this.logger[_](`${B}: option ${S}. ${te[C]}`);
|
|
6285
6285
|
}
|
|
6286
6286
|
}
|
|
6287
6287
|
function j(te) {
|
|
@@ -6309,8 +6309,8 @@ function u9() {
|
|
|
6309
6309
|
}
|
|
6310
6310
|
this.logger.warn("keywords option as map is deprecated, pass array");
|
|
6311
6311
|
for (const R in te) {
|
|
6312
|
-
const
|
|
6313
|
-
|
|
6312
|
+
const B = te[R];
|
|
6313
|
+
B.keyword || (B.keyword = R), this.addKeyword(B);
|
|
6314
6314
|
}
|
|
6315
6315
|
}
|
|
6316
6316
|
function z() {
|
|
@@ -6334,23 +6334,23 @@ function u9() {
|
|
|
6334
6334
|
}
|
|
6335
6335
|
const G = /^[a-z_$][a-z0-9_$:-]*$/i;
|
|
6336
6336
|
function Q(te, R) {
|
|
6337
|
-
const { RULES:
|
|
6337
|
+
const { RULES: B } = this;
|
|
6338
6338
|
if ((0, d.eachItem)(te, (_) => {
|
|
6339
|
-
if (
|
|
6339
|
+
if (B.keywords[_])
|
|
6340
6340
|
throw new Error(`Keyword ${_} is already defined`);
|
|
6341
6341
|
if (!G.test(_))
|
|
6342
6342
|
throw new Error(`Keyword ${_} has invalid name`);
|
|
6343
6343
|
}), !!R && R.$data && !("code" in R || "validate" in R))
|
|
6344
6344
|
throw new Error('$data keyword must have "code" or "validate" function');
|
|
6345
6345
|
}
|
|
6346
|
-
function pe(te, R,
|
|
6346
|
+
function pe(te, R, B) {
|
|
6347
6347
|
var _;
|
|
6348
6348
|
const S = R?.post;
|
|
6349
|
-
if (
|
|
6349
|
+
if (B && S)
|
|
6350
6350
|
throw new Error('keyword with "post" flag cannot have "type"');
|
|
6351
6351
|
const { RULES: C } = this;
|
|
6352
|
-
let $ = S ? C.post : C.rules.find(({ type: J }) => J ===
|
|
6353
|
-
if ($ || ($ = { type:
|
|
6352
|
+
let $ = S ? C.post : C.rules.find(({ type: J }) => J === B);
|
|
6353
|
+
if ($ || ($ = { type: B, rules: [] }, C.rules.push($)), C.keywords[te] = !0, !R)
|
|
6354
6354
|
return;
|
|
6355
6355
|
const U = {
|
|
6356
6356
|
keyword: te,
|
|
@@ -6360,11 +6360,11 @@ function u9() {
|
|
|
6360
6360
|
schemaType: (0, u.getJSONTypes)(R.schemaType)
|
|
6361
6361
|
}
|
|
6362
6362
|
};
|
|
6363
|
-
R.before ?
|
|
6363
|
+
R.before ? Se.call(this, $, U, R.before) : $.rules.push(U), C.all[te] = U, (_ = R.implements) === null || _ === void 0 || _.forEach((J) => this.addKeyword(J));
|
|
6364
6364
|
}
|
|
6365
|
-
function
|
|
6366
|
-
const _ = te.rules.findIndex((S) => S.keyword ===
|
|
6367
|
-
_ >= 0 ? te.rules.splice(_, 0, R) : (te.rules.push(R), this.logger.warn(`rule ${
|
|
6365
|
+
function Se(te, R, B) {
|
|
6366
|
+
const _ = te.rules.findIndex((S) => S.keyword === B);
|
|
6367
|
+
_ >= 0 ? te.rules.splice(_, 0, R) : (te.rules.push(R), this.logger.warn(`rule ${B} is not defined`));
|
|
6368
6368
|
}
|
|
6369
6369
|
function ge(te) {
|
|
6370
6370
|
let { metaSchema: R } = te;
|
|
@@ -7763,7 +7763,7 @@ function nN() {
|
|
|
7763
7763
|
7: "null",
|
|
7764
7764
|
8: "Array<number>",
|
|
7765
7765
|
9: "Array<string>"
|
|
7766
|
-
}, w = "EOF", k = "UnquotedIdentifier", b = "QuotedIdentifier", j = "Rbracket", O = "Rparen", N = "Comma", M = "Colon", z = "Rbrace", H = "Number", V = "Current", G = "Expref", Q = "Pipe", pe = "Or",
|
|
7766
|
+
}, w = "EOF", k = "UnquotedIdentifier", b = "QuotedIdentifier", j = "Rbracket", O = "Rparen", N = "Comma", M = "Colon", z = "Rbrace", H = "Number", V = "Current", G = "Expref", Q = "Pipe", pe = "Or", Se = "And", ge = "EQ", le = "GT", ne = "LT", te = "GTE", R = "LTE", B = "NE", _ = "Flatten", S = "Star", C = "Filter", $ = "Dot", U = "Not", J = "Lbrace", de = "Lbracket", Ne = "Lparen", D = "Literal", q = {
|
|
7767
7767
|
".": $,
|
|
7768
7768
|
"*": S,
|
|
7769
7769
|
",": N,
|
|
@@ -7806,9 +7806,9 @@ function nN() {
|
|
|
7806
7806
|
value: ue,
|
|
7807
7807
|
start: X
|
|
7808
7808
|
});
|
|
7809
|
-
else if (
|
|
7809
|
+
else if (q[I[this._current]] !== void 0)
|
|
7810
7810
|
K.push({
|
|
7811
|
-
type:
|
|
7811
|
+
type: q[I[this._current]],
|
|
7812
7812
|
value: I[this._current],
|
|
7813
7813
|
start: this._current
|
|
7814
7814
|
}), this._current++;
|
|
@@ -7841,7 +7841,7 @@ function nN() {
|
|
|
7841
7841
|
else if (Y[I[this._current]] !== void 0)
|
|
7842
7842
|
this._current++;
|
|
7843
7843
|
else if (I[this._current] === "&")
|
|
7844
|
-
X = this._current, this._current++, I[this._current] === "&" ? (this._current++, K.push({ type:
|
|
7844
|
+
X = this._current, this._current++, I[this._current] === "&" ? (this._current++, K.push({ type: Se, value: "&&", start: X })) : K.push({ type: G, value: "&", start: X });
|
|
7845
7845
|
else if (I[this._current] === "|")
|
|
7846
7846
|
X = this._current, this._current++, I[this._current] === "|" ? (this._current++, K.push({ type: pe, value: "||", start: X })) : K.push({ type: Q, value: "|", start: X });
|
|
7847
7847
|
else {
|
|
@@ -7891,7 +7891,7 @@ function nN() {
|
|
|
7891
7891
|
_consumeOperator: function(I) {
|
|
7892
7892
|
var K = this._current, X = I[K];
|
|
7893
7893
|
if (this._current++, X === "!")
|
|
7894
|
-
return I[this._current] === "=" ? (this._current++, { type:
|
|
7894
|
+
return I[this._current] === "=" ? (this._current++, { type: B, value: "!=", start: K }) : { type: U, value: "!", start: K };
|
|
7895
7895
|
if (X === "<")
|
|
7896
7896
|
return I[this._current] === "=" ? (this._current++, { type: R, value: "<=", start: K }) : { type: ne, value: "<", start: K };
|
|
7897
7897
|
if (X === ">")
|
|
@@ -7927,7 +7927,7 @@ function nN() {
|
|
|
7927
7927
|
}
|
|
7928
7928
|
};
|
|
7929
7929
|
var ke = {};
|
|
7930
|
-
ke[w] = 0, ke[k] = 0, ke[b] = 0, ke[j] = 0, ke[O] = 0, ke[N] = 0, ke[z] = 0, ke[H] = 0, ke[V] = 0, ke[G] = 0, ke[Q] = 1, ke[pe] = 2, ke[
|
|
7930
|
+
ke[w] = 0, ke[k] = 0, ke[b] = 0, ke[j] = 0, ke[O] = 0, ke[N] = 0, ke[z] = 0, ke[H] = 0, ke[V] = 0, ke[G] = 0, ke[Q] = 1, ke[pe] = 2, ke[Se] = 3, ke[ge] = 5, ke[le] = 5, ke[ne] = 5, ke[te] = 5, ke[R] = 5, ke[B] = 5, ke[_] = 9, ke[S] = 20, ke[C] = 21, ke[$] = 40, ke[U] = 45, ke[J] = 50, ke[de] = 55, ke[Ne] = 60;
|
|
7931
7931
|
function tt() {
|
|
7932
7932
|
}
|
|
7933
7933
|
tt.prototype = {
|
|
@@ -8011,7 +8011,7 @@ function nN() {
|
|
|
8011
8011
|
return X = this.expression(ke.Pipe), { type: Q, children: [K, X] };
|
|
8012
8012
|
case pe:
|
|
8013
8013
|
return X = this.expression(ke.Or), { type: "OrExpression", children: [K, X] };
|
|
8014
|
-
case
|
|
8014
|
+
case Se:
|
|
8015
8015
|
return X = this.expression(ke.And), { type: "AndExpression", children: [K, X] };
|
|
8016
8016
|
case Ne:
|
|
8017
8017
|
for (var xe = K.name, ve = [], Ie, qe; this._lookahead(0) !== O; )
|
|
@@ -8024,7 +8024,7 @@ function nN() {
|
|
|
8024
8024
|
var Qe = { type: _, children: [K] }, je = this._parseProjectionRHS(ke.Flatten);
|
|
8025
8025
|
return { type: "Projection", children: [Qe, je] };
|
|
8026
8026
|
case ge:
|
|
8027
|
-
case
|
|
8027
|
+
case B:
|
|
8028
8028
|
case le:
|
|
8029
8029
|
case te:
|
|
8030
8030
|
case ne:
|
|
@@ -8197,7 +8197,7 @@ function nN() {
|
|
|
8197
8197
|
case ge:
|
|
8198
8198
|
xe = i(ve, Ie);
|
|
8199
8199
|
break;
|
|
8200
|
-
case
|
|
8200
|
+
case B:
|
|
8201
8201
|
xe = !i(ve, Ie);
|
|
8202
8202
|
break;
|
|
8203
8203
|
case le:
|
|
@@ -18338,22 +18338,22 @@ function bI(t, e, n) {
|
|
|
18338
18338
|
}
|
|
18339
18339
|
function w(b, j, O) {
|
|
18340
18340
|
let N = 1e9, M = -1e9, z = [];
|
|
18341
|
-
function H(Q, pe,
|
|
18342
|
-
let ne = t.coordsAtPos(Q, Q == O.to ? -2 : 2), te = t.coordsAtPos(
|
|
18341
|
+
function H(Q, pe, Se, ge, le) {
|
|
18342
|
+
let ne = t.coordsAtPos(Q, Q == O.to ? -2 : 2), te = t.coordsAtPos(Se, Se == O.from ? 2 : -2);
|
|
18343
18343
|
!ne || !te || (N = Math.min(ne.top, te.top, N), M = Math.max(ne.bottom, te.bottom, M), le == mr.LTR ? z.push(o && pe ? f : ne.left, o && ge ? h : te.right) : z.push(!o && ge ? f : te.left, !o && pe ? h : ne.right));
|
|
18344
18344
|
}
|
|
18345
18345
|
let V = b ?? O.from, G = j ?? O.to;
|
|
18346
18346
|
for (let Q of t.visibleRanges)
|
|
18347
18347
|
if (Q.to > V && Q.from < G)
|
|
18348
|
-
for (let pe = Math.max(Q.from, V),
|
|
18348
|
+
for (let pe = Math.max(Q.from, V), Se = Math.min(Q.to, G); ; ) {
|
|
18349
18349
|
let ge = t.state.doc.lineAt(pe);
|
|
18350
18350
|
for (let le of t.bidiSpans(ge)) {
|
|
18351
18351
|
let ne = le.from + ge.from, te = le.to + ge.from;
|
|
18352
|
-
if (ne >=
|
|
18352
|
+
if (ne >= Se)
|
|
18353
18353
|
break;
|
|
18354
|
-
te > pe && H(Math.max(ne, pe), b == null && ne <= V, Math.min(te,
|
|
18354
|
+
te > pe && H(Math.max(ne, pe), b == null && ne <= V, Math.min(te, Se), j == null && te >= G, le.dir);
|
|
18355
18355
|
}
|
|
18356
|
-
if (pe = ge.to + 1, pe >=
|
|
18356
|
+
if (pe = ge.to + 1, pe >= Se)
|
|
18357
18357
|
break;
|
|
18358
18358
|
}
|
|
18359
18359
|
return z.length == 0 && H(V, b == null, G, j == null, t.textDirection), { top: N, bottom: M, horizontal: z };
|
|
@@ -20962,7 +20962,7 @@ function CD(t) {
|
|
|
20962
20962
|
var e;
|
|
20963
20963
|
let { buffer: n, nodeSet: r, maxBufferLength: i = z3, reused: o = [], minRepeatType: s = r.types.length } = t, a = Array.isArray(n) ? new Ey(n, n.length) : n, l = r.types, u = 0, d = 0;
|
|
20964
20964
|
function f(b, j, O, N, M, z) {
|
|
20965
|
-
let { id: H, start: V, end: G, size: Q } = a, pe = d,
|
|
20965
|
+
let { id: H, start: V, end: G, size: Q } = a, pe = d, Se = u;
|
|
20966
20966
|
if (Q < 0)
|
|
20967
20967
|
if (a.next(), Q == -1) {
|
|
20968
20968
|
let R = o[H];
|
|
@@ -20978,21 +20978,21 @@ function CD(t) {
|
|
|
20978
20978
|
throw new RangeError(`Unrecognized record size: ${Q}`);
|
|
20979
20979
|
let ge = l[H], le, ne, te = V - b;
|
|
20980
20980
|
if (G - V <= i && (ne = v(a.pos - j, M))) {
|
|
20981
|
-
let R = new Uint16Array(ne.size - ne.skip),
|
|
20982
|
-
for (; a.pos >
|
|
20981
|
+
let R = new Uint16Array(ne.size - ne.skip), B = a.pos - ne.size, _ = R.length;
|
|
20982
|
+
for (; a.pos > B; )
|
|
20983
20983
|
_ = y(ne.start, R, _);
|
|
20984
20984
|
le = new bl(R, G - ne.start, r), te = ne.start - b;
|
|
20985
20985
|
} else {
|
|
20986
20986
|
let R = a.pos - Q;
|
|
20987
20987
|
a.next();
|
|
20988
|
-
let
|
|
20988
|
+
let B = [], _ = [], S = H >= s ? H : -1, C = 0, $ = G, U = pe;
|
|
20989
20989
|
for (; a.pos > R; )
|
|
20990
|
-
S >= 0 && a.id == S && a.size >= 0 ? (a.end <= $ - i && (m(
|
|
20991
|
-
if (S >= 0 && C > 0 && C <
|
|
20992
|
-
let J = p(ge,
|
|
20993
|
-
le = My(ge,
|
|
20990
|
+
S >= 0 && a.id == S && a.size >= 0 ? (a.end <= $ - i && (m(B, _, V, C, a.end, $, S, U, Se), C = B.length, $ = a.end, U = d), a.next()) : z > 2500 ? h(V, R, B, _) : (S >= 0 && a.size == -1 && o[a.id].type == r.types[S] && (C < B.length && m(B, _, V, C, a.end, $, S, U, Se), C = B.length + 1, $ = a.start, U = d), f(V, R, B, _, S, z + 1));
|
|
20991
|
+
if (S >= 0 && C > 0 && C < B.length && m(B, _, V, C, V, $, S, U, Se), B.reverse(), _.reverse(), S > -1 && C > 0) {
|
|
20992
|
+
let J = p(ge, Se);
|
|
20993
|
+
le = My(ge, B, _, 0, B.length, 0, G - V, J, J);
|
|
20994
20994
|
} else
|
|
20995
|
-
le = g(ge,
|
|
20995
|
+
le = g(ge, B, _, G - V, pe - G, Se);
|
|
20996
20996
|
}
|
|
20997
20997
|
O.push(le), N.push(te);
|
|
20998
20998
|
}
|
|
@@ -21054,17 +21054,17 @@ function CD(t) {
|
|
|
21054
21054
|
let pe = O.pos - Q;
|
|
21055
21055
|
if (Q < 0 || pe < G || O.start < H)
|
|
21056
21056
|
break;
|
|
21057
|
-
let
|
|
21057
|
+
let Se = O.id >= s ? 4 : 0, ge = O.start;
|
|
21058
21058
|
for (O.next(); O.pos > pe; ) {
|
|
21059
21059
|
if (O.size < 0)
|
|
21060
21060
|
if (O.size == -3 || O.size == -4)
|
|
21061
|
-
|
|
21061
|
+
Se += 4;
|
|
21062
21062
|
else
|
|
21063
21063
|
break e;
|
|
21064
|
-
else O.id >= s && (
|
|
21064
|
+
else O.id >= s && (Se += 4);
|
|
21065
21065
|
O.next();
|
|
21066
21066
|
}
|
|
21067
|
-
M = ge, N += Q, z +=
|
|
21067
|
+
M = ge, N += Q, z += Se;
|
|
21068
21068
|
}
|
|
21069
21069
|
return (j < 0 || N == b) && (V.size = N, V.start = M, V.skip = z), V.size > 4 ? V : void 0;
|
|
21070
21070
|
}
|
|
@@ -23966,12 +23966,11 @@ function VO(t, e, n) {
|
|
|
23966
23966
|
var r;
|
|
23967
23967
|
let i = n ? UO(e.actions) : [];
|
|
23968
23968
|
return pr("li", { class: "cm-diagnostic cm-diagnostic-" + e.severity }, pr("span", { class: "cm-diagnosticText" }, e.renderMessage ? e.renderMessage(t) : e.message), (r = e.actions) === null || r === void 0 ? void 0 : r.map((o, s) => {
|
|
23969
|
-
let a =
|
|
23970
|
-
if (p.preventDefault(), a)
|
|
23969
|
+
let a = 0, l = (p) => {
|
|
23970
|
+
if (p.preventDefault(), a > Date.now() - 100)
|
|
23971
23971
|
return;
|
|
23972
|
-
a = !0;
|
|
23973
23972
|
let m = wl(t.state.field(To).diagnostics, e);
|
|
23974
|
-
m && o.apply(t, m.from, m.to);
|
|
23973
|
+
m && o.apply(t, m.from, m.to), a = Date.now();
|
|
23975
23974
|
}, { name: u } = o, d = i[s] ? u.indexOf(i[s]) : -1, f = d < 0 ? u : [
|
|
23976
23975
|
u.slice(0, d),
|
|
23977
23976
|
pr("u", u.slice(d, d + 1)),
|
|
@@ -25056,6 +25055,8 @@ class K7 {
|
|
|
25056
25055
|
let n = this.trees.length - 1;
|
|
25057
25056
|
if (n < 0)
|
|
25058
25057
|
return this.nextFragment(), null;
|
|
25058
|
+
if (e < this.safeFrom)
|
|
25059
|
+
return null;
|
|
25059
25060
|
let r = this.trees[n], i = this.index[n];
|
|
25060
25061
|
if (i == r.children.length) {
|
|
25061
25062
|
this.trees.pop(), this.start.pop(), this.index.pop();
|
|
@@ -25068,11 +25069,8 @@ class K7 {
|
|
|
25068
25069
|
let a = s > this.lastRepeatPos && o.type.id >= this.minRepeat;
|
|
25069
25070
|
if (s == e || a) {
|
|
25070
25071
|
let l = s + o.length, u;
|
|
25071
|
-
if (s >= this.safeFrom && l <= this.safeTo && (!(u = o.prop(Sn.lookAhead)) || l + u < this.fragment.to))
|
|
25072
|
-
|
|
25073
|
-
return o;
|
|
25074
|
-
} else if (s == e)
|
|
25075
|
-
return null;
|
|
25072
|
+
if (s >= this.safeFrom && l <= this.safeTo && (!(u = o.prop(Sn.lookAhead)) || l + u < this.fragment.to) && (a && (this.lastRepeat = o, this.lastRepeatPos = s), s == e))
|
|
25073
|
+
return o;
|
|
25076
25074
|
}
|
|
25077
25075
|
this.index[n]++, s + o.length >= Math.max(this.safeFrom, e) && (this.trees.push(o), this.start.push(s), this.index.push(0));
|
|
25078
25076
|
} else
|
|
@@ -28068,7 +28066,7 @@ function wn(t, e, n) {
|
|
|
28068
28066
|
function bE(t, e) {
|
|
28069
28067
|
if (e.has(t)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
28070
28068
|
}
|
|
28071
|
-
function
|
|
28069
|
+
function Ce(t, e) {
|
|
28072
28070
|
return t.get(ur(t, e));
|
|
28073
28071
|
}
|
|
28074
28072
|
function Bn(t, e, n) {
|
|
@@ -28082,8 +28080,8 @@ function Oo(t, e, n) {
|
|
|
28082
28080
|
return (e = (function(r) {
|
|
28083
28081
|
var i = (function(o, s) {
|
|
28084
28082
|
if (typeof o != "object" || !o) return o;
|
|
28085
|
-
var a
|
|
28086
|
-
if (a !== void 0) {
|
|
28083
|
+
var a;
|
|
28084
|
+
if (typeof Symbol < "u" && (a = o[Symbol.toPrimitive]) !== void 0) {
|
|
28087
28085
|
var l = a.call(o, s);
|
|
28088
28086
|
if (typeof l != "object") return l;
|
|
28089
28087
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
@@ -28242,7 +28240,7 @@ var $u = /* @__PURE__ */ new WeakMap(), DB = /* @__PURE__ */ new WeakMap(), Xa =
|
|
|
28242
28240
|
class LB {
|
|
28243
28241
|
constructor(e, n, r, i) {
|
|
28244
28242
|
var o, s, a, l, u, d;
|
|
28245
|
-
vE(this, ls), Oo(this, "parent", void 0), Oo(this, "is_pending", !1), Oo(this, "transform_error", void 0), wn(this, $u, void 0), wn(this, DB, null), wn(this, Xa, void 0), wn(this, s1, void 0), wn(this, zo, void 0), wn(this, cl, null), wn(this, Hs, null), wn(this, _s, null), wn(this, Qd, null), wn(this, Kc, 0), wn(this, bu, 0), wn(this, yp, !1), wn(this, a1, /* @__PURE__ */ new Set()), wn(this, l1, /* @__PURE__ */ new Set()), wn(this, Ul, null), wn(this, N2, (a = () => (Bn(Ul, this, Ma(
|
|
28243
|
+
vE(this, ls), Oo(this, "parent", void 0), Oo(this, "is_pending", !1), Oo(this, "transform_error", void 0), wn(this, $u, void 0), wn(this, DB, null), wn(this, Xa, void 0), wn(this, s1, void 0), wn(this, zo, void 0), wn(this, cl, null), wn(this, Hs, null), wn(this, _s, null), wn(this, Qd, null), wn(this, Kc, 0), wn(this, bu, 0), wn(this, yp, !1), wn(this, a1, /* @__PURE__ */ new Set()), wn(this, l1, /* @__PURE__ */ new Set()), wn(this, Ul, null), wn(this, N2, (a = () => (Bn(Ul, this, Ma(Ce(Kc, this))), () => {
|
|
28246
28244
|
Bn(Ul, this, null);
|
|
28247
28245
|
}), u = 0, d = Ma(0), () => {
|
|
28248
28246
|
Xy() && (c(d), rd(() => (u === 0 && (l = se(() => a(() => Xd(d)))), u += 1, () => {
|
|
@@ -28259,26 +28257,26 @@ class LB {
|
|
|
28259
28257
|
}, 589824));
|
|
28260
28258
|
}
|
|
28261
28259
|
defer_effect(e) {
|
|
28262
|
-
RE(e,
|
|
28260
|
+
RE(e, Ce(a1, this), Ce(l1, this));
|
|
28263
28261
|
}
|
|
28264
28262
|
is_rendered() {
|
|
28265
28263
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
28266
28264
|
}
|
|
28267
28265
|
has_pending_snippet() {
|
|
28268
|
-
return !!
|
|
28266
|
+
return !!Ce(Xa, this).pending;
|
|
28269
28267
|
}
|
|
28270
28268
|
update_pending_count(e, n) {
|
|
28271
|
-
ur(ls, this, IE).call(this, e, n), Bn(Kc, this,
|
|
28272
|
-
Bn(yp, this, !1),
|
|
28269
|
+
ur(ls, this, IE).call(this, e, n), Bn(Kc, this, Ce(Kc, this) + e), Ce(Ul, this) && !Ce(yp, this) && (Bn(yp, this, !0), kl(() => {
|
|
28270
|
+
Bn(yp, this, !1), Ce(Ul, this) && Bu(Ce(Ul, this), Ce(Kc, this));
|
|
28273
28271
|
}));
|
|
28274
28272
|
}
|
|
28275
28273
|
get_effect_pending() {
|
|
28276
|
-
return
|
|
28274
|
+
return Ce(N2, this).call(this), c(Ce(Ul, this));
|
|
28277
28275
|
}
|
|
28278
28276
|
error(e) {
|
|
28279
28277
|
var n;
|
|
28280
|
-
if (!
|
|
28281
|
-
(n = Mn) !== null && n !== void 0 && n.is_fork ? (
|
|
28278
|
+
if (!Ce(Xa, this).onerror && !Ce(Xa, this).failed) throw e;
|
|
28279
|
+
(n = Mn) !== null && n !== void 0 && n.is_fork ? (Ce(cl, this) && Mn.skip_effect(Ce(cl, this)), Ce(Hs, this) && Mn.skip_effect(Ce(Hs, this)), Ce(_s, this) && Mn.skip_effect(Ce(_s, this)), Mn.oncommit(() => {
|
|
28282
28280
|
ur(ls, this, I2).call(this, e);
|
|
28283
28281
|
})) : ur(ls, this, I2).call(this, e);
|
|
28284
28282
|
}
|
|
@@ -28286,23 +28284,23 @@ class LB {
|
|
|
28286
28284
|
function NE() {
|
|
28287
28285
|
try {
|
|
28288
28286
|
if (this.is_pending = this.has_pending_snippet(), Bn(bu, this, 0), Bn(Kc, this, 0), Bn(cl, this, Ta(() => {
|
|
28289
|
-
|
|
28290
|
-
})),
|
|
28287
|
+
Ce(s1, this).call(this, Ce($u, this));
|
|
28288
|
+
})), Ce(bu, this) > 0) {
|
|
28291
28289
|
var t = Bn(Qd, this, document.createDocumentFragment());
|
|
28292
|
-
ex(
|
|
28293
|
-
var e =
|
|
28294
|
-
Bn(Hs, this, Ta(() => e(
|
|
28290
|
+
ex(Ce(cl, this), t);
|
|
28291
|
+
var e = Ce(Xa, this).pending;
|
|
28292
|
+
Bn(Hs, this, Ta(() => e(Ce($u, this))));
|
|
28295
28293
|
} else ur(ls, this, $E).call(this, Mn);
|
|
28296
28294
|
} catch (n) {
|
|
28297
28295
|
this.error(n);
|
|
28298
28296
|
}
|
|
28299
28297
|
}
|
|
28300
28298
|
function $E(t) {
|
|
28301
|
-
this.is_pending = !1, t.transfer_effects(
|
|
28299
|
+
this.is_pending = !1, t.transfer_effects(Ce(a1, this), Ce(l1, this));
|
|
28302
28300
|
}
|
|
28303
28301
|
function $2(t) {
|
|
28304
28302
|
var e = dn, n = Dn, r = qn;
|
|
28305
|
-
bo(
|
|
28303
|
+
bo(Ce(zo, this)), Zo(Ce(zo, this)), Ru(Ce(zo, this).ctx);
|
|
28306
28304
|
try {
|
|
28307
28305
|
return Rl.ensure(), t();
|
|
28308
28306
|
} catch (i) {
|
|
@@ -28313,16 +28311,16 @@ function $2(t) {
|
|
|
28313
28311
|
}
|
|
28314
28312
|
function IE(t, e) {
|
|
28315
28313
|
var n;
|
|
28316
|
-
this.has_pending_snippet() ? (Bn(bu, this,
|
|
28314
|
+
this.has_pending_snippet() ? (Bn(bu, this, Ce(bu, this) + t), Ce(bu, this) === 0 && (ur(ls, this, $E).call(this, e), Ce(Hs, this) && qu(Ce(Hs, this), () => {
|
|
28317
28315
|
Bn(Hs, this, null);
|
|
28318
|
-
}),
|
|
28316
|
+
}), Ce(Qd, this) && (Ce($u, this).before(Ce(Qd, this)), Bn(Qd, this, null)))) : this.parent && ur(ls, n = this.parent, IE).call(n, t, e);
|
|
28319
28317
|
}
|
|
28320
28318
|
function I2(t) {
|
|
28321
|
-
|
|
28322
|
-
var e =
|
|
28319
|
+
Ce(cl, this) && (Ii(Ce(cl, this)), Bn(cl, this, null)), Ce(Hs, this) && (Ii(Ce(Hs, this)), Bn(Hs, this, null)), Ce(_s, this) && (Ii(Ce(_s, this)), Bn(_s, this, null));
|
|
28320
|
+
var e = Ce(Xa, this).onerror, n = Ce(Xa, this).failed, r = !1, i = !1, o = () => {
|
|
28323
28321
|
r ? console.warn("https://svelte.dev/e/svelte_boundary_reset_noop") : (r = !0, i && (function() {
|
|
28324
28322
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
28325
|
-
})(),
|
|
28323
|
+
})(), Ce(_s, this) !== null && qu(Ce(_s, this), () => {
|
|
28326
28324
|
Bn(_s, this, null);
|
|
28327
28325
|
}), ur(ls, this, $2).call(this, () => {
|
|
28328
28326
|
ur(ls, this, NE).call(this);
|
|
@@ -28331,16 +28329,16 @@ function I2(t) {
|
|
|
28331
28329
|
try {
|
|
28332
28330
|
i = !0, e?.(a, o), i = !1;
|
|
28333
28331
|
} catch (l) {
|
|
28334
|
-
rl(l,
|
|
28332
|
+
rl(l, Ce(zo, this) && Ce(zo, this).parent);
|
|
28335
28333
|
}
|
|
28336
28334
|
n && Bn(_s, this, ur(ls, this, $2).call(this, () => {
|
|
28337
28335
|
try {
|
|
28338
28336
|
return Ta(() => {
|
|
28339
28337
|
var l = dn;
|
|
28340
|
-
l.b = this, l.f |= 128, n(
|
|
28338
|
+
l.b = this, l.f |= 128, n(Ce($u, this), () => a, () => o);
|
|
28341
28339
|
});
|
|
28342
28340
|
} catch (l) {
|
|
28343
|
-
return rl(l,
|
|
28341
|
+
return rl(l, Ce(zo, this).parent), null;
|
|
28344
28342
|
}
|
|
28345
28343
|
}));
|
|
28346
28344
|
};
|
|
@@ -28349,9 +28347,9 @@ function I2(t) {
|
|
|
28349
28347
|
try {
|
|
28350
28348
|
a = this.transform_error(t);
|
|
28351
28349
|
} catch (l) {
|
|
28352
|
-
return void rl(l,
|
|
28350
|
+
return void rl(l, Ce(zo, this) && Ce(zo, this).parent);
|
|
28353
28351
|
}
|
|
28354
|
-
a !== null && typeof a == "object" && typeof a.then == "function" ? a.then(s, (l) => rl(l,
|
|
28352
|
+
a !== null && typeof a == "object" && typeof a.then == "function" ? a.then(s, (l) => rl(l, Ce(zo, this) && Ce(zo, this).parent)) : s(a);
|
|
28355
28353
|
});
|
|
28356
28354
|
}
|
|
28357
28355
|
function DE(t, e, n, r) {
|
|
@@ -28481,15 +28479,15 @@ class Rl {
|
|
|
28481
28479
|
vE(this, Oi), Oo(this, "id", zB++), wn(this, d1, !1), Oo(this, "linked", !0), wn(this, Lu, null), wn(this, Ym, null), Oo(this, "async_deriveds", /* @__PURE__ */ new Map()), Oo(this, "current", /* @__PURE__ */ new Map()), Oo(this, "previous", /* @__PURE__ */ new Map()), wn(this, Xm, /* @__PURE__ */ new Set()), wn(this, wp, /* @__PURE__ */ new Set()), wn(this, Gc, 0), wn(this, Gl, /* @__PURE__ */ new Map()), wn(this, $d, null), wn(this, sa, []), wn(this, L2, []), wn(this, zu, /* @__PURE__ */ new Set()), wn(this, xa, /* @__PURE__ */ new Set()), wn(this, Za, /* @__PURE__ */ new Map()), wn(this, p0, /* @__PURE__ */ new Set()), Oo(this, "is_fork", !1), wn(this, jp, !1), Jc === null ? Jc = this : (Bn(Ym, Jc, this), Bn(Lu, this, Jc)), Jc = this;
|
|
28482
28480
|
}
|
|
28483
28481
|
skip_effect(e) {
|
|
28484
|
-
|
|
28482
|
+
Ce(Za, this).has(e) || Ce(Za, this).set(e, { d: [], m: [] }), Ce(p0, this).delete(e);
|
|
28485
28483
|
}
|
|
28486
28484
|
unskip_effect(e) {
|
|
28487
|
-
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : (o) => this.schedule(o), r =
|
|
28485
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : (o) => this.schedule(o), r = Ce(Za, this).get(e);
|
|
28488
28486
|
if (r) {
|
|
28489
|
-
for (var i of (
|
|
28487
|
+
for (var i of (Ce(Za, this).delete(e), r.d)) ci(i, Po), n(i);
|
|
28490
28488
|
for (i of r.m) ci(i, Ys), n(i);
|
|
28491
28489
|
}
|
|
28492
|
-
|
|
28490
|
+
Ce(p0, this).add(e);
|
|
28493
28491
|
}
|
|
28494
28492
|
capture(e, n) {
|
|
28495
28493
|
var r, i = arguments.length > 2 && arguments[2] !== void 0 && arguments[2];
|
|
@@ -28510,48 +28508,48 @@ class Rl {
|
|
|
28510
28508
|
}
|
|
28511
28509
|
discard() {
|
|
28512
28510
|
var e;
|
|
28513
|
-
for (var n of
|
|
28514
|
-
for (var r of (
|
|
28515
|
-
ur(Oi, this, eg).call(this), (e =
|
|
28511
|
+
for (var n of Ce(wp, this)) n(this);
|
|
28512
|
+
for (var r of (Ce(wp, this).clear(), this.async_deriveds.values())) r.reject(Nd);
|
|
28513
|
+
ur(Oi, this, eg).call(this), (e = Ce($d, this)) === null || e === void 0 || e.resolve();
|
|
28516
28514
|
}
|
|
28517
28515
|
register_created_effect(e) {
|
|
28518
|
-
|
|
28516
|
+
Ce(L2, this).push(e);
|
|
28519
28517
|
}
|
|
28520
28518
|
increment(e, n) {
|
|
28521
|
-
if (Bn(Gc, this,
|
|
28522
|
-
var r, i = (r =
|
|
28523
|
-
|
|
28519
|
+
if (Bn(Gc, this, Ce(Gc, this) + 1), e) {
|
|
28520
|
+
var r, i = (r = Ce(Gl, this).get(n)) !== null && r !== void 0 ? r : 0;
|
|
28521
|
+
Ce(Gl, this).set(n, i + 1);
|
|
28524
28522
|
}
|
|
28525
28523
|
}
|
|
28526
28524
|
decrement(e, n) {
|
|
28527
|
-
if (Bn(Gc, this,
|
|
28528
|
-
var r, i = (r =
|
|
28529
|
-
i === 1 ?
|
|
28525
|
+
if (Bn(Gc, this, Ce(Gc, this) - 1), e) {
|
|
28526
|
+
var r, i = (r = Ce(Gl, this).get(n)) !== null && r !== void 0 ? r : 0;
|
|
28527
|
+
i === 1 ? Ce(Gl, this).delete(n) : Ce(Gl, this).set(n, i - 1);
|
|
28530
28528
|
}
|
|
28531
|
-
|
|
28529
|
+
Ce(jp, this) || (Bn(jp, this, !0), kl(() => {
|
|
28532
28530
|
Bn(jp, this, !1), this.linked && this.flush();
|
|
28533
28531
|
}));
|
|
28534
28532
|
}
|
|
28535
28533
|
transfer_effects(e, n) {
|
|
28536
|
-
for (var r of e)
|
|
28537
|
-
for (var i of n)
|
|
28534
|
+
for (var r of e) Ce(zu, this).add(r);
|
|
28535
|
+
for (var i of n) Ce(xa, this).add(i);
|
|
28538
28536
|
e.clear(), n.clear();
|
|
28539
28537
|
}
|
|
28540
28538
|
oncommit(e) {
|
|
28541
|
-
|
|
28539
|
+
Ce(Xm, this).add(e);
|
|
28542
28540
|
}
|
|
28543
28541
|
ondiscard(e) {
|
|
28544
|
-
|
|
28542
|
+
Ce(wp, this).add(e);
|
|
28545
28543
|
}
|
|
28546
28544
|
settled() {
|
|
28547
28545
|
var e;
|
|
28548
|
-
return ((e =
|
|
28546
|
+
return ((e = Ce($d, this)) !== null && e !== void 0 ? e : Bn($d, this, jE())).promise;
|
|
28549
28547
|
}
|
|
28550
28548
|
static ensure() {
|
|
28551
28549
|
if (Mn === null) {
|
|
28552
28550
|
var e = Mn = new Rl();
|
|
28553
28551
|
h0 || Yd || kl(() => {
|
|
28554
|
-
|
|
28552
|
+
Ce(d1, e) || e.flush();
|
|
28555
28553
|
});
|
|
28556
28554
|
}
|
|
28557
28555
|
return Mn;
|
|
@@ -28571,15 +28569,15 @@ class Rl {
|
|
|
28571
28569
|
r.f ^= yi;
|
|
28572
28570
|
}
|
|
28573
28571
|
}
|
|
28574
|
-
|
|
28572
|
+
Ce(sa, this).push(r);
|
|
28575
28573
|
}
|
|
28576
28574
|
}
|
|
28577
28575
|
}
|
|
28578
28576
|
function z2() {
|
|
28579
28577
|
if (this.is_fork) return !0;
|
|
28580
|
-
for (var t of
|
|
28578
|
+
for (var t of Ce(Gl, this).keys()) {
|
|
28581
28579
|
for (var e = t, n = !1; e.parent !== null; ) {
|
|
28582
|
-
if (
|
|
28580
|
+
if (Ce(Za, this).has(e)) {
|
|
28583
28581
|
n = !0;
|
|
28584
28582
|
break;
|
|
28585
28583
|
}
|
|
@@ -28599,9 +28597,9 @@ function Zm() {
|
|
|
28599
28597
|
} catch (x) {
|
|
28600
28598
|
rl(x, u1);
|
|
28601
28599
|
}
|
|
28602
|
-
})()),
|
|
28603
|
-
for (var n of
|
|
28604
|
-
var r =
|
|
28600
|
+
})()), Ce(zu, this))) Ce(xa, this).delete(e), ci(e, Po), this.schedule(e);
|
|
28601
|
+
for (var n of Ce(xa, this)) ci(n, Ys), this.schedule(n);
|
|
28602
|
+
var r = Ce(sa, this);
|
|
28605
28603
|
Bn(sa, this, []), this.apply();
|
|
28606
28604
|
var i = Du = [], o = [], s = Qm = [];
|
|
28607
28605
|
for (var a of r) try {
|
|
@@ -28614,7 +28612,7 @@ function Zm() {
|
|
|
28614
28612
|
for (var u of s) l.schedule(u);
|
|
28615
28613
|
}
|
|
28616
28614
|
if (Du = null, Qm = null, ur(Oi, this, z2).call(this)) {
|
|
28617
|
-
for (var d of (ur(Oi, this, kp).call(this, o), ur(Oi, this, kp).call(this, i),
|
|
28615
|
+
for (var d of (ur(Oi, this, kp).call(this, o), ur(Oi, this, kp).call(this, i), Ce(Za, this))) {
|
|
28618
28616
|
var f = go(d, 2);
|
|
28619
28617
|
FE(f[0], f[1]);
|
|
28620
28618
|
}
|
|
@@ -28623,12 +28621,12 @@ function Zm() {
|
|
|
28623
28621
|
} else {
|
|
28624
28622
|
var p = ur(Oi, this, qB).call(this);
|
|
28625
28623
|
if (p) return ur(Oi, this, kp).call(this, o), ur(Oi, this, kp).call(this, i), void ur(Oi, p, FB).call(p, this);
|
|
28626
|
-
for (var m of (
|
|
28627
|
-
|
|
28624
|
+
for (var m of (Ce(zu, this).clear(), Ce(xa, this).clear(), Ce(Xm, this))) m(this);
|
|
28625
|
+
Ce(Xm, this).clear(), c1 = this, B2(o), B2(i), c1 = null, (t = Ce($d, this)) === null || t === void 0 || t.resolve();
|
|
28628
28626
|
var g, v = Mn;
|
|
28629
|
-
if (
|
|
28627
|
+
if (Ce(Gc, this) !== 0 || Ce(sa, this).length !== 0 && v === null || ur(Oi, this, eg).call(this), Ce(sa, this).length > 0) if (v !== null) {
|
|
28630
28628
|
var y = v;
|
|
28631
|
-
|
|
28629
|
+
Ce(sa, y).push(...Ce(sa, this).filter((x) => !Ce(sa, y).includes(x)));
|
|
28632
28630
|
} else v = this;
|
|
28633
28631
|
v !== null && ur(Oi, g = v, Zm).call(g);
|
|
28634
28632
|
}
|
|
@@ -28637,8 +28635,8 @@ function BB(t, e, n) {
|
|
|
28637
28635
|
t.f ^= yi;
|
|
28638
28636
|
for (var r = t.first; r !== null; ) {
|
|
28639
28637
|
var i = r.f, o = !!(96 & i);
|
|
28640
|
-
if (!(o && (i & yi) !== 0 || (i & Vs) !== 0 ||
|
|
28641
|
-
o ? r.f ^= yi : 4 & i ? e.push(r) : od(r) && ((i & Wf) !== 0 &&
|
|
28638
|
+
if (!(o && (i & yi) !== 0 || (i & Vs) !== 0 || Ce(Za, this).has(r)) && r.fn !== null) {
|
|
28639
|
+
o ? r.f ^= yi : 4 & i ? e.push(r) : od(r) && ((i & Wf) !== 0 && Ce(xa, this).add(r), jc(r));
|
|
28642
28640
|
var s = r.first;
|
|
28643
28641
|
if (s !== null) {
|
|
28644
28642
|
r = s;
|
|
@@ -28656,12 +28654,12 @@ function BB(t, e, n) {
|
|
|
28656
28654
|
}
|
|
28657
28655
|
}
|
|
28658
28656
|
function qB() {
|
|
28659
|
-
for (var t =
|
|
28657
|
+
for (var t = Ce(Lu, this); t !== null; ) {
|
|
28660
28658
|
if (!t.is_fork) for (var e of this.current) {
|
|
28661
28659
|
var n = go(e, 2), r = n[0], i = go(n[1], 2)[1];
|
|
28662
28660
|
if (t.current.has(r) && !i) return t;
|
|
28663
28661
|
}
|
|
28664
|
-
t =
|
|
28662
|
+
t = Ce(Lu, t);
|
|
28665
28663
|
}
|
|
28666
28664
|
return null;
|
|
28667
28665
|
}
|
|
@@ -28674,7 +28672,7 @@ function FB(t) {
|
|
|
28674
28672
|
var s = go(o, 2), a = s[0], l = s[1], u = this.async_deriveds.get(a);
|
|
28675
28673
|
u && l.promise.then(u.resolve).catch(u.reject);
|
|
28676
28674
|
}
|
|
28677
|
-
t.async_deriveds.clear(), this.transfer_effects(
|
|
28675
|
+
t.async_deriveds.clear(), this.transfer_effects(Ce(zu, t), Ce(xa, t));
|
|
28678
28676
|
var d = (h) => {
|
|
28679
28677
|
var p = h.reactions;
|
|
28680
28678
|
if (p !== null && (!(2 & h.f) || 6144 & h.f)) for (var m of p) {
|
|
@@ -28682,7 +28680,7 @@ function FB(t) {
|
|
|
28682
28680
|
if (2 & g) d(m);
|
|
28683
28681
|
else {
|
|
28684
28682
|
var v = m;
|
|
28685
|
-
4194320 & g && !this.async_deriveds.has(v) && (
|
|
28683
|
+
4194320 & g && !this.async_deriveds.has(v) && (Ce(xa, this).delete(v), ci(v, Po), this.schedule(v));
|
|
28686
28684
|
}
|
|
28687
28685
|
}
|
|
28688
28686
|
};
|
|
@@ -28690,11 +28688,11 @@ function FB(t) {
|
|
|
28690
28688
|
this.oncommit(() => t.discard()), ur(Oi, t, eg).call(t), Mn = this, ur(Oi, this, Zm).call(this);
|
|
28691
28689
|
}
|
|
28692
28690
|
function kp(t) {
|
|
28693
|
-
for (var e = 0; e < t.length; e += 1) RE(t[e],
|
|
28691
|
+
for (var e = 0; e < t.length; e += 1) RE(t[e], Ce(zu, this), Ce(xa, this));
|
|
28694
28692
|
}
|
|
28695
28693
|
function eg() {
|
|
28696
28694
|
if (this.linked) {
|
|
28697
|
-
var t =
|
|
28695
|
+
var t = Ce(Lu, this), e = Ce(Ym, this);
|
|
28698
28696
|
t === null || Bn(Ym, t, e), e === null ? Jc = t : Bn(Lu, e, t), this.linked = !1;
|
|
28699
28697
|
}
|
|
28700
28698
|
}
|
|
@@ -29500,45 +29498,45 @@ class Xg {
|
|
|
29500
29498
|
constructor(e) {
|
|
29501
29499
|
var n = this, r = !(arguments.length > 1 && arguments[1] !== void 0) || arguments[1];
|
|
29502
29500
|
Oo(this, "anchor", void 0), wn(this, ra, /* @__PURE__ */ new Map()), wn(this, Vl, /* @__PURE__ */ new Map()), wn(this, ia, /* @__PURE__ */ new Map()), wn(this, kd, /* @__PURE__ */ new Set()), wn(this, m0, !0), wn(this, K2, (i) => {
|
|
29503
|
-
if (
|
|
29504
|
-
var o =
|
|
29505
|
-
if (s) tg(s),
|
|
29501
|
+
if (Ce(ra, this).has(i)) {
|
|
29502
|
+
var o = Ce(ra, this).get(i), s = Ce(Vl, this).get(o);
|
|
29503
|
+
if (s) tg(s), Ce(kd, this).delete(o);
|
|
29506
29504
|
else {
|
|
29507
|
-
var a =
|
|
29508
|
-
a && (tg(a.effect),
|
|
29505
|
+
var a = Ce(ia, this).get(o);
|
|
29506
|
+
a && (tg(a.effect), Ce(Vl, this).set(o, a.effect), Ce(ia, this).delete(o), a.fragment.lastChild.remove(), this.anchor.before(a.fragment), s = a.effect);
|
|
29509
29507
|
}
|
|
29510
|
-
for (var l of
|
|
29508
|
+
for (var l of Ce(ra, this)) {
|
|
29511
29509
|
var u = go(l, 2), d = u[0], f = u[1];
|
|
29512
|
-
if (
|
|
29513
|
-
var h =
|
|
29514
|
-
h && (Ii(h.effect),
|
|
29510
|
+
if (Ce(ra, this).delete(d), d === i) break;
|
|
29511
|
+
var h = Ce(ia, this).get(f);
|
|
29512
|
+
h && (Ii(h.effect), Ce(ia, this).delete(f));
|
|
29515
29513
|
}
|
|
29516
29514
|
var p, m = function() {
|
|
29517
29515
|
var v = (p = go(g, 2))[0], y = p[1];
|
|
29518
|
-
if (v === o ||
|
|
29516
|
+
if (v === o || Ce(kd, n).has(v)) return 1;
|
|
29519
29517
|
var x = () => {
|
|
29520
|
-
if (Array.from(
|
|
29518
|
+
if (Array.from(Ce(ra, n).values()).includes(v)) {
|
|
29521
29519
|
var w = document.createDocumentFragment();
|
|
29522
|
-
ex(y, w), w.append(dc()),
|
|
29520
|
+
ex(y, w), w.append(dc()), Ce(ia, n).set(v, { effect: y, fragment: w });
|
|
29523
29521
|
} else Ii(y);
|
|
29524
|
-
|
|
29522
|
+
Ce(kd, n).delete(v), Ce(Vl, n).delete(v);
|
|
29525
29523
|
};
|
|
29526
|
-
|
|
29524
|
+
Ce(m0, n) || !s ? (Ce(kd, n).add(v), qu(y, x, !1)) : x();
|
|
29527
29525
|
};
|
|
29528
|
-
for (var g of
|
|
29526
|
+
for (var g of Ce(Vl, this)) m();
|
|
29529
29527
|
}
|
|
29530
29528
|
}), wn(this, QB, (i) => {
|
|
29531
|
-
|
|
29532
|
-
var o = Array.from(
|
|
29533
|
-
for (var s of
|
|
29529
|
+
Ce(ra, this).delete(i);
|
|
29530
|
+
var o = Array.from(Ce(ra, this).values());
|
|
29531
|
+
for (var s of Ce(ia, this)) {
|
|
29534
29532
|
var a = go(s, 2), l = a[0], u = a[1];
|
|
29535
|
-
o.includes(l) || (Ii(u.effect),
|
|
29533
|
+
o.includes(l) || (Ii(u.effect), Ce(ia, this).delete(l));
|
|
29536
29534
|
}
|
|
29537
29535
|
}), this.anchor = e, Bn(m0, this, r);
|
|
29538
29536
|
}
|
|
29539
29537
|
ensure(e, n) {
|
|
29540
29538
|
var r = Mn;
|
|
29541
|
-
!n ||
|
|
29539
|
+
!n || Ce(Vl, this).has(e) || Ce(ia, this).has(e) || Ce(Vl, this).set(e, Ta(() => n(this.anchor))), Ce(ra, this).set(r, e), Ce(K2, this).call(this, r);
|
|
29542
29540
|
}
|
|
29543
29541
|
}
|
|
29544
29542
|
function Di(t) {
|
|
@@ -29614,7 +29612,7 @@ function Dr(t, e, n, r, i) {
|
|
|
29614
29612
|
}), f = /* @__PURE__ */ new Map(), h = !0;
|
|
29615
29613
|
function p(v) {
|
|
29616
29614
|
(g.effect.f & jl) === 0 && (g.pending.delete(v), g.fallback = u, (function(y, x, w, k, b) {
|
|
29617
|
-
var j, O, N, M, z, H = !!(8 & k), V = x.length, G = y.items, Q = Sd(y.effect.first), pe = null,
|
|
29615
|
+
var j, O, N, M, z, H = !!(8 & k), V = x.length, G = y.items, Q = Sd(y.effect.first), pe = null, Se = [], ge = [];
|
|
29618
29616
|
if (H) for (z = 0; z < V; z += 1) {
|
|
29619
29617
|
var le;
|
|
29620
29618
|
N = b(x[z], z), ((M = G.get(N).e).f & Ts) === 0 && ((le = M.nodes) === null || le === void 0 || (le = le.a) === null || le === void 0 || le.measure(), (O ?? (O = /* @__PURE__ */ new Set())).add(M));
|
|
@@ -29625,27 +29623,27 @@ function Dr(t, e, n, r, i) {
|
|
|
29625
29623
|
if ((M.f & Vs) !== 0 && (tg(M), H && ((te = M.nodes) === null || te === void 0 || (te = te.a) === null || te === void 0 || te.unfix(), (O ?? (O = /* @__PURE__ */ new Set())).delete(M))), (M.f & Ts) !== 0) {
|
|
29626
29624
|
if (M.f ^= Ts, M !== Q) {
|
|
29627
29625
|
var R = pe ? pe.next : Q;
|
|
29628
|
-
M === y.effect.last && (y.effect.last = M.prev), M.prev && (M.prev.next = M.next), M.next && (M.next.prev = M.prev), Fa(y, pe, M), Fa(y, M, R), Cd(M, R, w),
|
|
29626
|
+
M === y.effect.last && (y.effect.last = M.prev), M.prev && (M.prev.next = M.next), M.next && (M.next.prev = M.prev), Fa(y, pe, M), Fa(y, M, R), Cd(M, R, w), Se = [], ge = [], Q = Sd((pe = M).next);
|
|
29629
29627
|
continue;
|
|
29630
29628
|
}
|
|
29631
29629
|
Cd(M, null, w);
|
|
29632
29630
|
}
|
|
29633
29631
|
if (M !== Q) {
|
|
29634
29632
|
if (j !== void 0 && j.has(M)) {
|
|
29635
|
-
if (
|
|
29636
|
-
var
|
|
29633
|
+
if (Se.length < ge.length) {
|
|
29634
|
+
var B, _ = ge[0];
|
|
29637
29635
|
pe = _.prev;
|
|
29638
|
-
var S =
|
|
29639
|
-
for (
|
|
29640
|
-
for (
|
|
29641
|
-
Fa(y, S.prev, C.next), Fa(y, pe, S), Fa(y, C, _), Q = _, pe = C, z -= 1,
|
|
29636
|
+
var S = Se[0], C = Se[Se.length - 1];
|
|
29637
|
+
for (B = 0; B < Se.length; B += 1) Cd(Se[B], _, w);
|
|
29638
|
+
for (B = 0; B < ge.length; B += 1) j.delete(ge[B]);
|
|
29639
|
+
Fa(y, S.prev, C.next), Fa(y, pe, S), Fa(y, C, _), Q = _, pe = C, z -= 1, Se = [], ge = [];
|
|
29642
29640
|
} else j.delete(M), Cd(M, Q, w), Fa(y, M.prev, M.next), Fa(y, M, pe === null ? y.effect.first : pe.next), Fa(y, pe, M), pe = M;
|
|
29643
29641
|
continue;
|
|
29644
29642
|
}
|
|
29645
|
-
for (
|
|
29643
|
+
for (Se = [], ge = []; Q !== null && Q !== M; ) (j ?? (j = /* @__PURE__ */ new Set())).add(Q), ge.push(Q), Q = Sd(Q.next);
|
|
29646
29644
|
if (Q === null) continue;
|
|
29647
29645
|
}
|
|
29648
|
-
(M.f & Ts) === 0 &&
|
|
29646
|
+
(M.f & Ts) === 0 && Se.push(M), pe = M, Q = Sd(M.next);
|
|
29649
29647
|
}
|
|
29650
29648
|
if (y.outrogroups !== null) {
|
|
29651
29649
|
for (var $ of y.outrogroups) {
|
|
@@ -29667,8 +29665,8 @@ function Dr(t, e, n, r, i) {
|
|
|
29667
29665
|
(D = J[z].nodes) === null || D === void 0 || (D = D.a) === null || D === void 0 || D.measure();
|
|
29668
29666
|
}
|
|
29669
29667
|
for (z = 0; z < de; z += 1) {
|
|
29670
|
-
var
|
|
29671
|
-
(
|
|
29668
|
+
var q;
|
|
29669
|
+
(q = J[z].nodes) === null || q === void 0 || (q = q.a) === null || q === void 0 || q.fix();
|
|
29672
29670
|
}
|
|
29673
29671
|
}
|
|
29674
29672
|
(function(P, Y, ie) {
|
|
@@ -29941,9 +29939,9 @@ function aq(t, e, n, r) {
|
|
|
29941
29939
|
} else if (b === "style") kn(t, b, j);
|
|
29942
29940
|
else if (b === "autofocus") (function(Q, pe) {
|
|
29943
29941
|
if (pe) {
|
|
29944
|
-
var
|
|
29942
|
+
var Se = document.body;
|
|
29945
29943
|
Q.autofocus = !0, kl(() => {
|
|
29946
|
-
document.activeElement ===
|
|
29944
|
+
document.activeElement === Se && Q.focus();
|
|
29947
29945
|
});
|
|
29948
29946
|
}
|
|
29949
29947
|
})(t, !!j);
|
|
@@ -30656,8 +30654,8 @@ function Rq(t, e) {
|
|
|
30656
30654
|
}), We((m) => Qo(h, m), [() => (c(i), T(n()), se(() => (function(m, g) {
|
|
30657
30655
|
var v = m.getBoundingClientRect(), y = (function() {
|
|
30658
30656
|
if (g.anchor) {
|
|
30659
|
-
var j = g.anchor, O = g.width, N = O === void 0 ? 0 : O, M = g.height, z = M === void 0 ? 0 : M, H = g.offsetTop, V = H === void 0 ? 0 : H, G = g.offsetLeft, Q = G === void 0 ? 0 : G, pe = g.position,
|
|
30660
|
-
return { left:
|
|
30657
|
+
var j = g.anchor, O = g.width, N = O === void 0 ? 0 : O, M = g.height, z = M === void 0 ? 0 : M, H = g.offsetTop, V = H === void 0 ? 0 : H, G = g.offsetLeft, Q = G === void 0 ? 0 : G, pe = g.position, Se = j.getBoundingClientRect(), ge = Se.left, le = Se.top, ne = Se.bottom, te = Se.right, R = pe === "top" || le + z > window.innerHeight && le > z, B = pe === "left" || ge + N > window.innerWidth && ge > N;
|
|
30658
|
+
return { left: B ? te - Q : ge + Q, top: R ? le - V : ne + V, positionAbove: R, positionLeft: B };
|
|
30661
30659
|
}
|
|
30662
30660
|
if (typeof g.left == "number" && typeof g.top == "number") {
|
|
30663
30661
|
var _ = g.left, S = g.top, C = g.width, $ = C === void 0 ? 0 : C, U = g.height, J = U === void 0 ? 0 : U;
|
|
@@ -30829,10 +30827,10 @@ function pn(t, e) {
|
|
|
30829
30827
|
return b === 1 ? k.length === 0 ? "" : k : (k === "" || k.endsWith(";") || (k += "; "), "".concat(k, "font-size: ").concat(b, "em"));
|
|
30830
30828
|
})()), E(y, c(s) ? "0 0 ".concat(c(s).width, " ").concat(c(s).height) : "0 0 ".concat(c(m), " ").concat(c(g)));
|
|
30831
30829
|
}), Ln(), Ut(), (function(k, b) {
|
|
30832
|
-
var j = Cp(b, ["children", "$$slots", "$$events", "$$legacy"]), O = Cp(j, ["class", "width", "height", "box", "spin", "inverse", "pulse", "flip", "style", "label"]), N = A(b, "class", 8, ""), M = A(b, "width", 8), z = A(b, "height", 8), H = A(b, "box", 8, "0 0 0 0"), V = A(b, "spin", 8, !1), G = A(b, "inverse", 8, !1), Q = A(b, "pulse", 8, !1), pe = A(b, "flip", 8, "none"),
|
|
30830
|
+
var j = Cp(b, ["children", "$$slots", "$$events", "$$legacy"]), O = Cp(j, ["class", "width", "height", "box", "spin", "inverse", "pulse", "flip", "style", "label"]), N = A(b, "class", 8, ""), M = A(b, "width", 8), z = A(b, "height", 8), H = A(b, "box", 8, "0 0 0 0"), V = A(b, "spin", 8, !1), G = A(b, "inverse", 8, !1), Q = A(b, "pulse", 8, !1), pe = A(b, "flip", 8, "none"), Se = A(b, "style", 8, ""), ge = A(b, "label", 8, ""), le = zq();
|
|
30833
30831
|
sm(le, () => {
|
|
30834
30832
|
var ne;
|
|
30835
|
-
return Ve(Ve({ version: "1.1", class: "fa-icon ".concat((ne = N()) !== null && ne !== void 0 ? ne : ""), width: M(), height: z(), "aria-label": ge(), role: ge() ? "img" : "presentation", viewBox: H(), style:
|
|
30833
|
+
return Ve(Ve({ version: "1.1", class: "fa-icon ".concat((ne = N()) !== null && ne !== void 0 ? ne : ""), width: M(), height: z(), "aria-label": ge(), role: ge() ? "img" : "presentation", viewBox: H(), style: Se() }, O), {}, { [Qc]: { "fa-spin": V(), "fa-pulse": Q(), "fa-inverse": G(), "fa-flip-horizontal": pe() === "horizontal", "fa-flip-vertical": pe() === "vertical" } });
|
|
30836
30834
|
}, void 0, void 0, void 0, "svelte-v67cny"), $r(ee(le), b, "default", {}, null), oe(k, le);
|
|
30837
30835
|
})(t, ul({ get label() {
|
|
30838
30836
|
return h();
|
|
@@ -31862,13 +31860,13 @@ function QA(t, e, n, r) {
|
|
|
31862
31860
|
var M = ga(O), z = hn(M), H = ot(j, z);
|
|
31863
31861
|
if (Ir(H)) {
|
|
31864
31862
|
var V = ga(O), G = V ? _i(rn(V)) : 0;
|
|
31865
|
-
return [...cg(O), ...N.map((R,
|
|
31863
|
+
return [...cg(O), ...N.map((R, B) => ({ op: "add", path: Et(z.concat(String(B + G))), value: R.value }))];
|
|
31866
31864
|
}
|
|
31867
31865
|
if (Vr(H)) {
|
|
31868
|
-
var Q = rn(O), pe = hn(Q),
|
|
31866
|
+
var Q = rn(O), pe = hn(Q), Se = rn(Q), ge = Object.keys(H), le = Se !== void 0 ? Zf(ge, Se, !1) : [], ne = new Set(O.map((R) => rn(R))), te = ge.filter((R) => !ne.has(R));
|
|
31869
31867
|
return [...cg(O), ...N.map((R) => {
|
|
31870
|
-
var
|
|
31871
|
-
return { op: "add", path: Et(pe.concat(
|
|
31868
|
+
var B = Xf(R.key, te);
|
|
31869
|
+
return { op: "add", path: Et(pe.concat(B)), value: R.value };
|
|
31872
31870
|
}), ...le.map((R) => El(pe, R))];
|
|
31873
31871
|
}
|
|
31874
31872
|
throw new Error("Cannot create replace operations: parent must be an Object or Array");
|
|
@@ -32770,14 +32768,14 @@ function PF(t, e, n, r) {
|
|
|
32770
32768
|
var y, x = g && h ? (function(j, O, N) {
|
|
32771
32769
|
var M, z = null, H = $a(j);
|
|
32772
32770
|
function V() {
|
|
32773
|
-
var
|
|
32774
|
-
clearTimeout(M), (
|
|
32775
|
-
}
|
|
32776
|
-
function G(
|
|
32777
|
-
|
|
32778
|
-
var le = j.getBoundingClientRect(), ne = le.left, te = le.top, R = le.width,
|
|
32779
|
-
if (
|
|
32780
|
-
var _ = { rootMargin: -Pp(te) + "px " + -Pp(H.clientWidth - (ne + R)) + "px " + -Pp(H.clientHeight - (te +
|
|
32771
|
+
var Se;
|
|
32772
|
+
clearTimeout(M), (Se = z) == null || Se.disconnect(), z = null;
|
|
32773
|
+
}
|
|
32774
|
+
function G(Se, ge) {
|
|
32775
|
+
Se === void 0 && (Se = !1), ge === void 0 && (ge = 1), V();
|
|
32776
|
+
var le = j.getBoundingClientRect(), ne = le.left, te = le.top, R = le.width, B = le.height;
|
|
32777
|
+
if (Se || O(), R && B) {
|
|
32778
|
+
var _ = { rootMargin: -Pp(te) + "px " + -Pp(H.clientWidth - (ne + R)) + "px " + -Pp(H.clientHeight - (te + B)) + "px " + -Pp(ne) + "px", threshold: pc(0, dg(1, ge)) || 1 }, S = !0;
|
|
32781
32779
|
try {
|
|
32782
32780
|
z = new IntersectionObserver(C, Ve(Ve({}, _), {}, { root: H.ownerDocument }));
|
|
32783
32781
|
} catch {
|
|
@@ -32846,7 +32844,7 @@ var RF = function(t) {
|
|
|
32846
32844
|
return [T1(C), $, T1($)];
|
|
32847
32845
|
})(a)), V = w !== "none";
|
|
32848
32846
|
!g && V && H.push(...jF(a, b, w, z));
|
|
32849
|
-
var G = [a, ...H], Q = yield l.detectOverflow(e, j), pe = [],
|
|
32847
|
+
var G = [a, ...H], Q = yield l.detectOverflow(e, j), pe = [], Se = ((r = o.flip) == null ? void 0 : r.overflows) || [];
|
|
32850
32848
|
if (h && pe.push(Q[O]), m) {
|
|
32851
32849
|
var ge = (function(C, $, U) {
|
|
32852
32850
|
U === void 0 && (U = !1);
|
|
@@ -32855,25 +32853,25 @@ var RF = function(t) {
|
|
|
32855
32853
|
})(i, s, z);
|
|
32856
32854
|
pe.push(Q[ge[0]], Q[ge[1]]);
|
|
32857
32855
|
}
|
|
32858
|
-
if (
|
|
32856
|
+
if (Se = [...Se, { placement: i, overflows: pe }], !pe.every((C) => C <= 0)) {
|
|
32859
32857
|
var le, ne, te = (((le = o.flip) == null ? void 0 : le.index) || 0) + 1, R = G[te];
|
|
32860
|
-
if (R && (!(m === "alignment" && N !== ol(R)) ||
|
|
32861
|
-
var
|
|
32862
|
-
if (!
|
|
32858
|
+
if (R && (!(m === "alignment" && N !== ol(R)) || Se.every((C) => ol(C.placement) !== N || C.overflows[0] > 0))) return { data: { index: te, overflows: Se }, reset: { placement: R } };
|
|
32859
|
+
var B = (ne = Se.filter((C) => C.overflows[0] <= 0).sort((C, $) => C.overflows[1] - $.overflows[1])[0]) == null ? void 0 : ne.placement;
|
|
32860
|
+
if (!B) switch (y) {
|
|
32863
32861
|
case "bestFit":
|
|
32864
|
-
var _, S = (_ =
|
|
32862
|
+
var _, S = (_ = Se.filter((C) => {
|
|
32865
32863
|
if (V) {
|
|
32866
32864
|
var $ = ol(C.placement);
|
|
32867
32865
|
return $ === N || $ === "y";
|
|
32868
32866
|
}
|
|
32869
32867
|
return !0;
|
|
32870
32868
|
}).map((C) => [C.placement, C.overflows.filter(($) => $ > 0).reduce(($, U) => $ + U, 0)]).sort((C, $) => C[1] - $[1])[0]) == null ? void 0 : _[0];
|
|
32871
|
-
S && (
|
|
32869
|
+
S && (B = S);
|
|
32872
32870
|
break;
|
|
32873
32871
|
case "initialPlacement":
|
|
32874
|
-
|
|
32872
|
+
B = a;
|
|
32875
32873
|
}
|
|
32876
|
-
if (i !==
|
|
32874
|
+
if (i !== B) return { reset: { placement: B } };
|
|
32877
32875
|
}
|
|
32878
32876
|
return {};
|
|
32879
32877
|
})() };
|
|
@@ -33375,7 +33373,7 @@ function Xl(t, e) {
|
|
|
33375
33373
|
return ae;
|
|
33376
33374
|
})(e);
|
|
33377
33375
|
St(e, !1);
|
|
33378
|
-
var r, i = Z(), o = Z(), s = Z(), a = Z(), l = Z(), u = Z(), d = Z(), f = Z(), h = Z(), p = YB(), m = A(e, "justValue", 12, null), g = A(e, "filter", 8, DF), v = A(e, "getItems", 8, LF), y = A(e, "id", 8, null), x = A(e, "name", 8, null), w = A(e, "container", 12, void 0), k = A(e, "input", 12, void 0), b = A(e, "multiple", 8, !1), j = A(e, "multiFullItemClearable", 8, !1), O = A(e, "disabled", 8, !1), N = A(e, "focused", 12, !1), M = A(e, "value", 12, null), z = A(e, "filterText", 12, ""), H = A(e, "placeholder", 8, "Please select"), V = A(e, "placeholderAlwaysShow", 8, !1), G = A(e, "items", 12, null), Q = A(e, "label", 8, "label"), pe = A(e, "itemFilter", 8, (L, ae, ye) => "".concat(L).toLowerCase().includes(ae.toLowerCase())),
|
|
33376
|
+
var r, i = Z(), o = Z(), s = Z(), a = Z(), l = Z(), u = Z(), d = Z(), f = Z(), h = Z(), p = YB(), m = A(e, "justValue", 12, null), g = A(e, "filter", 8, DF), v = A(e, "getItems", 8, LF), y = A(e, "id", 8, null), x = A(e, "name", 8, null), w = A(e, "container", 12, void 0), k = A(e, "input", 12, void 0), b = A(e, "multiple", 8, !1), j = A(e, "multiFullItemClearable", 8, !1), O = A(e, "disabled", 8, !1), N = A(e, "focused", 12, !1), M = A(e, "value", 12, null), z = A(e, "filterText", 12, ""), H = A(e, "placeholder", 8, "Please select"), V = A(e, "placeholderAlwaysShow", 8, !1), G = A(e, "items", 12, null), Q = A(e, "label", 8, "label"), pe = A(e, "itemFilter", 8, (L, ae, ye) => "".concat(L).toLowerCase().includes(ae.toLowerCase())), Se = A(e, "groupBy", 8, void 0), ge = A(e, "groupFilter", 8, (L) => L), le = A(e, "groupHeaderSelectable", 8, !1), ne = A(e, "itemId", 8, "value"), te = A(e, "loadOptions", 8, void 0), R = A(e, "containerStyles", 8, ""), B = A(e, "hasError", 8, !1), _ = A(e, "filterSelectedItems", 8, !0), S = A(e, "required", 8, !1), C = A(e, "closeListOnChange", 8, !0), $ = A(e, "clearFilterTextOnBlur", 8, !0), U = A(e, "createGroupHeaderItem", 8, (L, ae) => ({ value: L, [Q()]: L })), J = () => c(d), de = A(e, "searchable", 8, !0), Ne = A(e, "inputStyles", 8, ""), D = A(e, "clearable", 8, !0), q = A(e, "loading", 12, !1), P = A(e, "listOpen", 12, !1), Y = A(e, "debounce", 8, function(L) {
|
|
33379
33377
|
var ae = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
33380
33378
|
clearTimeout(r), r = setTimeout(L, ae);
|
|
33381
33379
|
}), ie = A(e, "debounceWait", 8, 300), Ae = A(e, "hideEmptyState", 8, !1), me = A(e, "inputAttributes", 24, () => ({})), re = A(e, "listAutoWidth", 8, !0), ke = A(e, "showChevron", 8, !1), tt = A(e, "listOffset", 8, 5), $e = A(e, "hoverItemIndex", 12, 0), it = A(e, "floatingConfig", 24, () => ({})), Ye = A(e, "class", 8, ""), Le = Z(), pt = Z(), I = Z(), K = Z(), X = Z();
|
|
@@ -33385,7 +33383,7 @@ function Xl(t, e) {
|
|
|
33385
33383
|
function xe(L) {
|
|
33386
33384
|
var ae = [], ye = {};
|
|
33387
33385
|
L.forEach((Xe) => {
|
|
33388
|
-
var et =
|
|
33386
|
+
var et = Se()(Xe);
|
|
33389
33387
|
ae.includes(et) || (ae.push(et), ye[et] = [], et && ye[et].push(Object.assign(U()(et, Xe), { id: et, groupHeader: !0, selectable: le() }))), ye[et].push(Object.assign({ groupItem: !!et }, Xe));
|
|
33390
33388
|
});
|
|
33391
33389
|
var Ge = [];
|
|
@@ -33395,7 +33393,7 @@ function Xl(t, e) {
|
|
|
33395
33393
|
}
|
|
33396
33394
|
function ve() {
|
|
33397
33395
|
var L = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, ae = arguments.length > 1 ? arguments[1] : void 0;
|
|
33398
|
-
$e(L < 0 ? 0 : L), !ae &&
|
|
33396
|
+
$e(L < 0 ? 0 : L), !ae && Se() && c(d)[$e()] && !c(d)[$e()].selectable && It(1);
|
|
33399
33397
|
}
|
|
33400
33398
|
function Ie() {
|
|
33401
33399
|
var L = !0;
|
|
@@ -33556,12 +33554,12 @@ function Xl(t, e) {
|
|
|
33556
33554
|
!N() && k() && tn();
|
|
33557
33555
|
}), he(() => (T(z()), c(I)), () => {
|
|
33558
33556
|
z() !== c(I) && (te() || z().length !== 0) && (te() ? Y()(Rt(function* () {
|
|
33559
|
-
|
|
33557
|
+
q(!0);
|
|
33560
33558
|
var L = yield v()({ dispatch: p, loadOptions: te(), convertStringItemsToObjects: ue, filterText: z() });
|
|
33561
|
-
L ? (
|
|
33559
|
+
L ? (q(L.loading), P(P() ? L.listOpen : z().length > 0), N(P() && L.focused), G(Se() ? xe(L.filteredItems) : L.filteredItems)) : (q(!1), N(!0), P(!0));
|
|
33562
33560
|
}), ie()) : (P(!0), b() && E(Le, void 0)));
|
|
33563
|
-
}), he(() => (T(g()), T(te()), T(z()), T(G()), T(b()), T(M()), T(ne()), T(
|
|
33564
|
-
E(d, g()({ loadOptions: te(), filterText: z(), items: G(), multiple: b(), value: M(), itemId: ne(), groupBy:
|
|
33561
|
+
}), he(() => (T(g()), T(te()), T(z()), T(G()), T(b()), T(M()), T(ne()), T(Se()), T(Q()), T(_()), T(pe())), () => {
|
|
33562
|
+
E(d, g()({ loadOptions: te(), filterText: z(), items: G(), multiple: b(), value: M(), itemId: ne(), groupBy: Se(), label: Q(), filterSelectedItems: _(), itemFilter: pe(), convertStringItemsToObjects: ue, filterGroupedItems: xe }));
|
|
33565
33563
|
}), he(() => (T(b()), T(P()), T(M()), c(d)), () => {
|
|
33566
33564
|
!b() && P() && M() && c(d) && ve(c(d).findIndex((L) => L[ne()] === M()[ne()]), !0);
|
|
33567
33565
|
}), he(() => (T(P()), T(b())), () => {
|
|
@@ -33575,8 +33573,8 @@ function Xl(t, e) {
|
|
|
33575
33573
|
E(i, b() ? M() && M().length > 0 : M());
|
|
33576
33574
|
}), he(() => (c(i), T(z())), () => {
|
|
33577
33575
|
E(o, c(i) && z().length > 0);
|
|
33578
|
-
}), he(() => (c(i), T(D()), T(O()), T(
|
|
33579
|
-
E(s, c(i) && D() && !O() && !
|
|
33576
|
+
}), he(() => (c(i), T(D()), T(O()), T(q())), () => {
|
|
33577
|
+
E(s, c(i) && D() && !O() && !q());
|
|
33580
33578
|
}), he(() => (T(V()), T(b()), T(H()), T(M())), () => {
|
|
33581
33579
|
var L;
|
|
33582
33580
|
E(a, V() && b() || b() && ((L = M()) === null || L === void 0 ? void 0 : L.length) === 0 ? H() : M() ? "" : H());
|
|
@@ -33758,7 +33756,7 @@ function Xl(t, e) {
|
|
|
33758
33756
|
}), oe(L, ae);
|
|
33759
33757
|
};
|
|
33760
33758
|
Ee(di, (L) => {
|
|
33761
|
-
|
|
33759
|
+
q() && L(ni);
|
|
33762
33760
|
});
|
|
33763
33761
|
var Br = ce(di, 2), ar = (L) => {
|
|
33764
33762
|
var ae = QF();
|
|
@@ -33803,7 +33801,7 @@ function Xl(t, e) {
|
|
|
33803
33801
|
T(S()), T(M()), se(() => S() && (!M() || M().length === 0)) && L(sn);
|
|
33804
33802
|
}), Mi(() => Be("pointerup", or, Ua(Nn))), gr(or, (L) => w(L), () => w()), Wi(or, (L) => er?.(L)), We(() => {
|
|
33805
33803
|
var L;
|
|
33806
|
-
Yn = Ft(or, 1, "svelte-select ".concat((L = Ye()) !== null && L !== void 0 ? L : ""), "svelte-1ul7oo4", Yn, { multi: b(), disabled: O(), focused: N(), "list-open": P(), "show-chevron": ke(), error:
|
|
33804
|
+
Yn = Ft(or, 1, "svelte-select ".concat((L = Ye()) !== null && L !== void 0 ? L : ""), "svelte-1ul7oo4", Yn, { multi: b(), disabled: O(), focused: N(), "list-open": P(), "show-chevron": ke(), error: B() }), Qo(or, R());
|
|
33807
33805
|
}), Be("keydown", yr, je), Be("blur", yr, Te), Be("focus", yr, Ke), ng(yr, z), oe(t, or), $t(e, "getFilteredItems", J), $t(e, "handleClear", ir), Ct(zr);
|
|
33808
33806
|
}
|
|
33809
33807
|
zt(`/* over all fonts, sizes, and colors */
|
|
@@ -33945,7 +33943,7 @@ function nU(t, e) {
|
|
|
33945
33943
|
}, set value(_) {
|
|
33946
33944
|
E(k, _);
|
|
33947
33945
|
}, $$legacy: !0 });
|
|
33948
|
-
var pe = ce(Q, 2),
|
|
33946
|
+
var pe = ce(Q, 2), Se = ce(z), ge = ce(ee(Se)), le = ee(ge), ne = ee(le);
|
|
33949
33947
|
Xl(ne, { class: "jse-sort-path", showChevron: !0, get items() {
|
|
33950
33948
|
return c(d);
|
|
33951
33949
|
}, get value() {
|
|
@@ -33959,8 +33957,8 @@ function nU(t, e) {
|
|
|
33959
33957
|
}, set value(_) {
|
|
33960
33958
|
E(O, _);
|
|
33961
33959
|
}, $$legacy: !0 });
|
|
33962
|
-
var te = ce(
|
|
33963
|
-
Xl(ee(
|
|
33960
|
+
var te = ce(Se), R = ce(ee(te)), B = ee(R);
|
|
33961
|
+
Xl(ee(B), { class: "jse-projection-paths", multiple: !0, showChevron: !0, get items() {
|
|
33964
33962
|
return c(f);
|
|
33965
33963
|
}, get value() {
|
|
33966
33964
|
return c(h);
|
|
@@ -34490,13 +34488,13 @@ function jx(t, e) {
|
|
|
34490
34488
|
pn(ee(H), { get data() {
|
|
34491
34489
|
return vc;
|
|
34492
34490
|
} });
|
|
34493
|
-
var V = ce(H), G = ee(V), Q = ce(V), pe = ee(Q),
|
|
34491
|
+
var V = ce(H), G = ee(V), Q = ce(V), pe = ee(Q), Se = ee(ce(Q)), ge = (le) => {
|
|
34494
34492
|
var ne = pU();
|
|
34495
34493
|
pn(ee(ne), { get data() {
|
|
34496
34494
|
return D5;
|
|
34497
34495
|
} }), Be("click", ne, ca(s)), oe(le, ne);
|
|
34498
34496
|
};
|
|
34499
|
-
Ee(
|
|
34497
|
+
Ee(Se, (le) => {
|
|
34500
34498
|
T(r()), se(() => M === 0 && r().length > 1) && le(ge);
|
|
34501
34499
|
}), We((le) => {
|
|
34502
34500
|
var ne;
|
|
@@ -35604,33 +35602,33 @@ var hr = Zg(() => IU), L0 = we('<div class="jse-separator svelte-1qi6rc1">:</div
|
|
|
35604
35602
|
function $1(t, e) {
|
|
35605
35603
|
St(e, !1);
|
|
35606
35604
|
var n = Z(void 0, !0), r = Z(void 0, !0), i = A(e, "pointer", 9), o = A(e, "value", 9), s = A(e, "state", 9), a = A(e, "validationErrors", 9), l = A(e, "searchResults", 9), u = A(e, "selection", 9), d = A(e, "context", 9), f = A(e, "onDragSelectionStart", 9), h = xi("jsoneditor:JSONNode"), p = Z(void 0, !0), m = void 0, g = Z(void 0, !0), v = Z(void 0, !0), y = Z(void 0, !0), x = Z(void 0, !0), w = Z(void 0, !0), k = Z(void 0, !0), b = Z(void 0, !0);
|
|
35607
|
-
function j(
|
|
35608
|
-
|
|
35609
|
-
var P = lx(
|
|
35605
|
+
function j(q) {
|
|
35606
|
+
q.stopPropagation();
|
|
35607
|
+
var P = lx(q);
|
|
35610
35608
|
d().onExpand(c(v), !c(y), P);
|
|
35611
35609
|
}
|
|
35612
35610
|
function O() {
|
|
35613
35611
|
d().onExpand(c(v), !0);
|
|
35614
35612
|
}
|
|
35615
|
-
function N(
|
|
35616
|
-
var Y = eh(c(v), Object.keys(o()),
|
|
35613
|
+
function N(q, P) {
|
|
35614
|
+
var Y = eh(c(v), Object.keys(o()), q, P);
|
|
35617
35615
|
return d().onPatch(Y), rn(po(Y[0].path));
|
|
35618
35616
|
}
|
|
35619
|
-
function M(
|
|
35620
|
-
d().onDrag(
|
|
35617
|
+
function M(q) {
|
|
35618
|
+
d().onDrag(q);
|
|
35621
35619
|
}
|
|
35622
|
-
function z(
|
|
35623
|
-
hr().selecting && (hr(hr().selecting = !1),
|
|
35620
|
+
function z(q) {
|
|
35621
|
+
hr().selecting && (hr(hr().selecting = !1), q.stopPropagation()), d().onDragEnd(), document.removeEventListener("mousemove", M, !0), document.removeEventListener("mouseup", z);
|
|
35624
35622
|
}
|
|
35625
35623
|
function H() {
|
|
35626
|
-
var
|
|
35627
|
-
return ((
|
|
35624
|
+
var q;
|
|
35625
|
+
return ((q = d().findElement([])) === null || q === void 0 || (q = q.getBoundingClientRect()) === null || q === void 0 ? void 0 : q.top) || 0;
|
|
35628
35626
|
}
|
|
35629
|
-
function V(
|
|
35630
|
-
var Y = H() -
|
|
35631
|
-
return P.clientY -
|
|
35627
|
+
function V(q, P) {
|
|
35628
|
+
var Y = H() - q.initialContentTop;
|
|
35629
|
+
return P.clientY - q.initialClientY - Y;
|
|
35632
35630
|
}
|
|
35633
|
-
function G(
|
|
35631
|
+
function G(q) {
|
|
35634
35632
|
if (!d().readOnly && u()) {
|
|
35635
35633
|
var P = hn(mt(u()));
|
|
35636
35634
|
if (en(c(v), P)) {
|
|
@@ -35654,44 +35652,44 @@ function $1(t, e) {
|
|
|
35654
35652
|
var ie = d().getJson();
|
|
35655
35653
|
if (ie !== void 0) {
|
|
35656
35654
|
var Ae = ma(ie, u()), me = Y.findIndex((ke) => en(ke.path, Ae)), re = D0({ json: ie, selection: d().getSelection(), deltaY: 0, items: Y }).offset;
|
|
35657
|
-
E(g, { initialTarget:
|
|
35655
|
+
E(g, { initialTarget: q.target, initialClientY: q.clientY, initialContentTop: H(), selectionStartIndex: me, selectionItemsCount: Ol(ie, u()).length, items: Y, offset: re, didMoveItems: !1 }), hr(hr().dragging = !0), document.addEventListener("mousemove", Q, !0), document.addEventListener("mouseup", pe);
|
|
35658
35656
|
}
|
|
35659
35657
|
} else h("Cannot drag the current selection (probably spread over multiple sections)");
|
|
35660
|
-
} else f()(
|
|
35658
|
+
} else f()(q);
|
|
35661
35659
|
}
|
|
35662
35660
|
}
|
|
35663
|
-
function Q(
|
|
35661
|
+
function Q(q) {
|
|
35664
35662
|
if (c(g)) {
|
|
35665
35663
|
var P = d().getJson();
|
|
35666
35664
|
if (P === void 0) return;
|
|
35667
|
-
var Y = V(c(g),
|
|
35665
|
+
var Y = V(c(g), q), ie = D0({ json: P, selection: d().getSelection(), deltaY: Y, items: c(g).items }).offset;
|
|
35668
35666
|
ie !== c(g).offset && (h("drag selection", ie, Y), E(g, Ve(Ve({}, c(g)), {}, { offset: ie, didMoveItems: !0 })));
|
|
35669
35667
|
}
|
|
35670
35668
|
}
|
|
35671
|
-
function pe(
|
|
35669
|
+
function pe(q) {
|
|
35672
35670
|
if (c(g)) {
|
|
35673
35671
|
var P = d().getJson();
|
|
35674
35672
|
if (P === void 0) return;
|
|
35675
|
-
var Y = V(c(g),
|
|
35673
|
+
var Y = V(c(g), q), ie = D0({ json: P, selection: d().getSelection(), deltaY: Y, items: c(g).items }), Ae = ie.operations, me = ie.updatedSelection;
|
|
35676
35674
|
if (Ae) d().onPatch(Ae, (tt, $e) => ({ state: $e, selection: me ?? u() }));
|
|
35677
|
-
else if (
|
|
35678
|
-
var re = S0(
|
|
35675
|
+
else if (q.target === c(g).initialTarget && !c(g).didMoveItems) {
|
|
35676
|
+
var re = S0(q.target), ke = IA(q.target);
|
|
35679
35677
|
ke && d().onSelect(jS(re, ke));
|
|
35680
35678
|
}
|
|
35681
35679
|
E(g, void 0), hr(hr().dragging = !1), document.removeEventListener("mousemove", Q, !0), document.removeEventListener("mouseup", pe);
|
|
35682
35680
|
}
|
|
35683
35681
|
}
|
|
35684
|
-
function
|
|
35685
|
-
|
|
35682
|
+
function Se(q) {
|
|
35683
|
+
q.shiftKey || (q.stopPropagation(), q.preventDefault(), d().onSelect(Na(c(v))));
|
|
35686
35684
|
}
|
|
35687
|
-
function ge(
|
|
35688
|
-
|
|
35685
|
+
function ge(q) {
|
|
35686
|
+
q.shiftKey || (q.stopPropagation(), q.preventDefault(), d().onSelect(ja(c(v))));
|
|
35689
35687
|
}
|
|
35690
|
-
function le(
|
|
35691
|
-
d().onSelect(Na(c(v))), cr(), d().onContextMenu(
|
|
35688
|
+
function le(q) {
|
|
35689
|
+
d().onSelect(Na(c(v))), cr(), d().onContextMenu(q);
|
|
35692
35690
|
}
|
|
35693
|
-
function ne(
|
|
35694
|
-
d().onSelect(ja(c(v))), cr(), d().onContextMenu(
|
|
35691
|
+
function ne(q) {
|
|
35692
|
+
d().onSelect(ja(c(v))), cr(), d().onContextMenu(q);
|
|
35695
35693
|
}
|
|
35696
35694
|
he(() => T(i()), () => {
|
|
35697
35695
|
E(v, po(i()));
|
|
@@ -35704,14 +35702,14 @@ function $1(t, e) {
|
|
|
35704
35702
|
}), he(() => T(s()), () => {
|
|
35705
35703
|
E(w, gi(s()) ? s().visibleSections : void 0);
|
|
35706
35704
|
}), he(() => T(a()), () => {
|
|
35707
|
-
var
|
|
35708
|
-
E(k, (
|
|
35705
|
+
var q;
|
|
35706
|
+
E(k, (q = a()) === null || q === void 0 ? void 0 : q.validationError);
|
|
35709
35707
|
}), he(() => (T(d()), T(u()), c(v)), () => {
|
|
35710
35708
|
E(b, Ef(d().getJson(), u(), c(v)));
|
|
35711
35709
|
}), he(() => c(v), () => {
|
|
35712
35710
|
E(r, c(v).length === 0);
|
|
35713
35711
|
}), Ln(), Ut(!0);
|
|
35714
|
-
var te, R,
|
|
35712
|
+
var te, R, B = YU(), _ = ee(B), S = (q) => {
|
|
35715
35713
|
var P = UU(), Y = Mt(P), ie = ee(Y), Ae = ee(ie), me = ee(Ae), re = (Te) => {
|
|
35716
35714
|
pn(Te, { get data() {
|
|
35717
35715
|
return Oa;
|
|
@@ -35777,7 +35775,7 @@ function $1(t, e) {
|
|
|
35777
35775
|
});
|
|
35778
35776
|
var qe = ce(ve, 2), Ze = (Te) => {
|
|
35779
35777
|
var Tt = qS();
|
|
35780
|
-
Be("click", Tt,
|
|
35778
|
+
Be("click", Tt, Se), oe(Te, Tt);
|
|
35781
35779
|
}, Qe = (Te) => {
|
|
35782
35780
|
var Tt = Ed();
|
|
35783
35781
|
Be("click", Tt, ge), oe(Te, Tt);
|
|
@@ -35852,8 +35850,8 @@ function $1(t, e) {
|
|
|
35852
35850
|
};
|
|
35853
35851
|
Ee(je, (Te) => {
|
|
35854
35852
|
c(y) && Te(Ke);
|
|
35855
|
-
}), Be("click", Ae, j), oe(
|
|
35856
|
-
}, C = Xt(() => (T(o()), se(() => Array.isArray(o())))), $ = (
|
|
35853
|
+
}), Be("click", Ae, j), oe(q, P);
|
|
35854
|
+
}, C = Xt(() => (T(o()), se(() => Array.isArray(o())))), $ = (q) => {
|
|
35857
35855
|
var P = JU(), Y = Mt(P), ie = ee(Y), Ae = ee(ie), me = ee(Ae), re = (Te) => {
|
|
35858
35856
|
pn(Te, { get data() {
|
|
35859
35857
|
return Oa;
|
|
@@ -35908,7 +35906,7 @@ function $1(t, e) {
|
|
|
35908
35906
|
});
|
|
35909
35907
|
var qe = ce(ve, 2), Ze = (Te) => {
|
|
35910
35908
|
var Tt = qS();
|
|
35911
|
-
Be("click", Tt,
|
|
35909
|
+
Be("click", Tt, Se), oe(Te, Tt);
|
|
35912
35910
|
}, Qe = (Te) => {
|
|
35913
35911
|
var Tt = Ed();
|
|
35914
35912
|
Be("click", Tt, ge), oe(Te, Tt);
|
|
@@ -36027,8 +36025,8 @@ function $1(t, e) {
|
|
|
36027
36025
|
};
|
|
36028
36026
|
Ee(je, (Te) => {
|
|
36029
36027
|
c(y) && Te(Ke);
|
|
36030
|
-
}), Be("click", Ae, j), oe(
|
|
36031
|
-
}, U = Xt(() => (T(Rn), T(o()), se(() => Rn(o())))), J = (
|
|
36028
|
+
}), Be("click", Ae, j), oe(q, P);
|
|
36029
|
+
}, U = Xt(() => (T(Rn), T(o()), se(() => Rn(o())))), J = (q) => {
|
|
36032
36030
|
var P = GU(), Y = ee(P), ie = ee(Y);
|
|
36033
36031
|
$r(ie, e, "identifier", {}, null);
|
|
36034
36032
|
var Ae = ce(ie, 2), me = (ue) => {
|
|
@@ -36076,49 +36074,49 @@ function $1(t, e) {
|
|
|
36076
36074
|
};
|
|
36077
36075
|
Ee(K, (ue) => {
|
|
36078
36076
|
c(r) || ue(X);
|
|
36079
|
-
}), oe(
|
|
36077
|
+
}), oe(q, P);
|
|
36080
36078
|
};
|
|
36081
|
-
Ee(_, (
|
|
36082
|
-
c(C) ?
|
|
36079
|
+
Ee(_, (q) => {
|
|
36080
|
+
c(C) ? q(S) : c(U) ? q($, 1) : q(J, -1);
|
|
36083
36081
|
});
|
|
36084
|
-
var de = ce(_, 2), Ne = (
|
|
36082
|
+
var de = ce(_, 2), Ne = (q) => {
|
|
36085
36083
|
var P, Y = QU(), ie = ee(Y), Ae = lt(() => (c(b), T(uo), T(u()), se(() => c(b) && uo(u()))));
|
|
36086
36084
|
Va(ie, { insert: !0, get selected() {
|
|
36087
36085
|
return c(Ae);
|
|
36088
36086
|
}, onContextMenu: ne }), We((me) => {
|
|
36089
36087
|
P = Ft(Y, 1, "jse-insert-area jse-after svelte-1qi6rc1", null, P, me), kn(Y, "title", O0);
|
|
36090
|
-
}, [() => ({ "jse-hovered": c(p) === Mp, "jse-selected": c(b) && uo(u()) })]), oe(
|
|
36088
|
+
}, [() => ({ "jse-hovered": c(p) === Mp, "jse-selected": c(b) && uo(u()) })]), oe(q, Y);
|
|
36091
36089
|
}, D = Xt(() => (T(d()), c(p), T(Mp), c(b), T(uo), T(u()), se(() => !d().readOnly && (c(p) === Mp || c(b) && uo(u())))));
|
|
36092
|
-
Ee(de, (
|
|
36093
|
-
c(D) &&
|
|
36094
|
-
}), We((
|
|
36095
|
-
te = Ft(
|
|
36096
|
-
}, [() => Cl((T(vs), c(y), T(d()), c(v), T(o()), se(() => vs("jse-json-node", { "jse-expanded": c(y) }, d().onClassName(c(v), o()))))), () => ({ "jse-root": c(r), "jse-selected": c(b) && Xn(u()), "jse-selected-value": c(b) && An(u()), "jse-readonly": d().readOnly, "jse-hovered": c(p) === sS })]), Be("mousedown",
|
|
36097
|
-
if ((
|
|
36090
|
+
Ee(de, (q) => {
|
|
36091
|
+
c(D) && q(Ne);
|
|
36092
|
+
}), We((q, P) => {
|
|
36093
|
+
te = Ft(B, 1, q, "svelte-1qi6rc1", te, P), kn(B, "data-path", c(n)), kn(B, "aria-selected", c(b)), R = Qo(B, "", R, { "--level": (c(v), se(() => c(v).length)) });
|
|
36094
|
+
}, [() => Cl((T(vs), c(y), T(d()), c(v), T(o()), se(() => vs("jse-json-node", { "jse-expanded": c(y) }, d().onClassName(c(v), o()))))), () => ({ "jse-root": c(r), "jse-selected": c(b) && Xn(u()), "jse-selected-value": c(b) && An(u()), "jse-readonly": d().readOnly, "jse-hovered": c(p) === sS })]), Be("mousedown", B, function(q) {
|
|
36095
|
+
if ((q.buttons === 1 || q.buttons === 2) && !((P = q.target).nodeName === "DIV" && P.contentEditable === "true" || q.buttons === 1 && NA(q.target, "BUTTON"))) {
|
|
36098
36096
|
var P;
|
|
36099
|
-
|
|
36100
|
-
var Y = S0(
|
|
36101
|
-
if (!u() || Y === Gn.after || Y === Gn.inside || u().type !== Y && u().type !== Gn.multi || !Ef(ie, u(), c(v))) if (hr(hr().selecting = !0), hr(hr().selectionAnchor = c(v)), hr(hr().selectionAnchorType = Y), hr(hr().selectionFocus = c(v)),
|
|
36097
|
+
q.stopPropagation(), q.preventDefault(), d().focus(), document.addEventListener("mousemove", M, !0), document.addEventListener("mouseup", z);
|
|
36098
|
+
var Y = S0(q.target), ie = d().getJson(), Ae = d().getDocumentState();
|
|
36099
|
+
if (!u() || Y === Gn.after || Y === Gn.inside || u().type !== Y && u().type !== Gn.multi || !Ef(ie, u(), c(v))) if (hr(hr().selecting = !0), hr(hr().selectionAnchor = c(v)), hr(hr().selectionAnchorType = Y), hr(hr().selectionFocus = c(v)), q.shiftKey) {
|
|
36102
36100
|
var me = d().getSelection();
|
|
36103
36101
|
me && d().onSelect(Fi(hc(me), c(v)));
|
|
36104
|
-
} else if (Y === Gn.multi) if (c(r) &&
|
|
36102
|
+
} else if (Y === Gn.multi) if (c(r) && q.target.hasAttribute("data-path")) {
|
|
36105
36103
|
var re = rn(FA(o(), Ae));
|
|
36106
36104
|
d().onSelect(E1(re));
|
|
36107
36105
|
} else d().onSelect(Fi(c(v), c(v)));
|
|
36108
36106
|
else ie !== void 0 && d().onSelect(jS(Y, c(v)));
|
|
36109
|
-
else
|
|
36107
|
+
else q.button === 0 && f()(q);
|
|
36110
36108
|
}
|
|
36111
|
-
}), Be("mousemove",
|
|
36109
|
+
}), Be("mousemove", B, function(q) {
|
|
36112
36110
|
if (hr().selecting) {
|
|
36113
|
-
|
|
36114
|
-
var P = S0(
|
|
36111
|
+
q.preventDefault(), q.stopPropagation(), hr().selectionFocus === void 0 && window.getSelection && window.getSelection().empty();
|
|
36112
|
+
var P = S0(q.target);
|
|
36115
36113
|
en(c(v), hr().selectionFocus) && P === hr().selectionAnchorType || (hr(hr().selectionFocus = c(v)), hr(hr().selectionAnchorType = P), d().onSelect(Fi(hr().selectionAnchor || hr().selectionFocus, hr().selectionFocus)));
|
|
36116
36114
|
}
|
|
36117
|
-
}), Be("mouseover",
|
|
36118
|
-
hr().selecting || hr().dragging || (
|
|
36119
|
-
}), Be("mouseout",
|
|
36120
|
-
|
|
36121
|
-
}), oe(t,
|
|
36115
|
+
}), Be("mouseover", B, function(q) {
|
|
36116
|
+
hr().selecting || hr().dragging || (q.stopPropagation(), il(q.target, "data-type", "selectable-value") ? E(p, sS) : il(q.target, "data-type", "selectable-key") ? E(p, void 0) : il(q.target, "data-type", "insert-selection-area-inside") ? E(p, Wl) : il(q.target, "data-type", "insert-selection-area-after") && E(p, Mp), clearTimeout(m));
|
|
36117
|
+
}), Be("mouseout", B, function(q) {
|
|
36118
|
+
q.stopPropagation(), m = window.setTimeout(() => E(p, void 0));
|
|
36119
|
+
}), oe(t, B), Ct();
|
|
36122
36120
|
}
|
|
36123
36121
|
var mM = { prefix: "fas", iconName: "jsoneditor-expand", icon: [512, 512, [], "", "M 0,448 V 512 h 512 v -64 z M 0,0 V 64 H 512 V 0 Z M 256,96 128,224 h 256 z M 256,416 384,288 H 128 Z"] }, gM = { prefix: "fas", iconName: "jsoneditor-collapse", icon: [512, 512, [], "", "m 0,224 v 64 h 512 v -64 z M 256,192 384,64 H 128 Z M 256,320 128,448 h 256 z"] }, US = { prefix: "fas", iconName: "jsoneditor-format", icon: [512, 512, [], "", "M 0,32 v 64 h 416 v -64 z M 160,160 v 64 h 352 v -64 z M 160,288 v 64 h 288 v -64 z M 0,416 v 64 h 320 v -64 z"] }, XU = { prefix: "fas", iconName: "jsoneditor-compact", icon: [512, 512, [], "", "M 0,32 v 64 h 512 v -64 z M 0,160 v 64 h 512 v -64 z M 0,288 v 64 h 352 v -64 z"] };
|
|
36124
36122
|
zt(`/* over all fonts, sizes, and colors */
|
|
@@ -36613,20 +36611,20 @@ function hV(t, e) {
|
|
|
36613
36611
|
}), Ln(), Ut(!0);
|
|
36614
36612
|
var y = fV(), x = ee(y), w = (H) => {
|
|
36615
36613
|
var V = dV(), G = Mt(V);
|
|
36616
|
-
Dr(G, 1, () => c(n), Kr, (
|
|
36617
|
-
VS(
|
|
36614
|
+
Dr(G, 1, () => c(n), Kr, (Se, ge, le) => {
|
|
36615
|
+
VS(Se, { getItems: h, get path() {
|
|
36618
36616
|
return c(n);
|
|
36619
36617
|
}, index: le, onSelect: m });
|
|
36620
36618
|
});
|
|
36621
|
-
var Q = ce(G, 2), pe = (
|
|
36622
|
-
VS(
|
|
36619
|
+
var Q = ce(G, 2), pe = (Se) => {
|
|
36620
|
+
VS(Se, { getItems: h, get path() {
|
|
36623
36621
|
return c(n);
|
|
36624
36622
|
}, get index() {
|
|
36625
36623
|
return c(n), se(() => c(n).length);
|
|
36626
36624
|
}, onSelect: m });
|
|
36627
36625
|
};
|
|
36628
|
-
Ee(Q, (
|
|
36629
|
-
c(r) &&
|
|
36626
|
+
Ee(Q, (Se) => {
|
|
36627
|
+
c(r) && Se(pe);
|
|
36630
36628
|
}), oe(H, V);
|
|
36631
36629
|
}, k = (H) => {
|
|
36632
36630
|
uV(H, { get path() {
|
|
@@ -36803,16 +36801,16 @@ function bM(t, e) {
|
|
|
36803
36801
|
if (o("handleReplace", { replaceText: c(w), activeItem: Y }), c(b) && Y && s() !== void 0) {
|
|
36804
36802
|
E(b, Ve(Ve({}, SS(c(b))), {}, { activeIndex: c(r) }));
|
|
36805
36803
|
var ie = iF(s(), a(), c(w), Y, l()), Ae = ie.operations, me = ie.newSelection;
|
|
36806
|
-
g()(Ae, (re, ke) => ({ state: ke, selection: me })), cr(), yield O.flush(), yield
|
|
36804
|
+
g()(Ae, (re, ke) => ({ state: ke, selection: me })), cr(), yield O.flush(), yield B();
|
|
36807
36805
|
}
|
|
36808
36806
|
}
|
|
36809
36807
|
})).apply(this, arguments);
|
|
36810
36808
|
}
|
|
36811
36809
|
function pe() {
|
|
36812
|
-
return
|
|
36810
|
+
return Se.apply(this, arguments);
|
|
36813
36811
|
}
|
|
36814
|
-
function
|
|
36815
|
-
return (
|
|
36812
|
+
function Se() {
|
|
36813
|
+
return (Se = Rt(function* () {
|
|
36816
36814
|
if (!f()) {
|
|
36817
36815
|
o("handleReplaceAll", { text: c(y), replaceText: c(w) });
|
|
36818
36816
|
var P = (function(Ae, me, re, ke, tt) {
|
|
@@ -36836,7 +36834,7 @@ function bM(t, e) {
|
|
|
36836
36834
|
}
|
|
36837
36835
|
}), { operations: K, newSelection: I };
|
|
36838
36836
|
})(s(), a(), c(y), c(w), l()), Y = P.operations, ie = P.newSelection;
|
|
36839
|
-
g()(Y, (Ae, me) => ({ state: me, selection: ie })), yield
|
|
36837
|
+
g()(Y, (Ae, me) => ({ state: me, selection: ie })), yield B();
|
|
36840
36838
|
}
|
|
36841
36839
|
})).apply(this, arguments);
|
|
36842
36840
|
}
|
|
@@ -36848,7 +36846,7 @@ function bM(t, e) {
|
|
|
36848
36846
|
}
|
|
36849
36847
|
function ne() {
|
|
36850
36848
|
return (ne = Rt(function* () {
|
|
36851
|
-
E(b, c(b) ? SS(c(b)) : void 0), yield
|
|
36849
|
+
E(b, c(b) ? SS(c(b)) : void 0), yield B();
|
|
36852
36850
|
})).apply(this, arguments);
|
|
36853
36851
|
}
|
|
36854
36852
|
function te() {
|
|
@@ -36859,10 +36857,10 @@ function bM(t, e) {
|
|
|
36859
36857
|
E(b, c(b) ? (function(P) {
|
|
36860
36858
|
var Y = P.activeIndex > 0 ? P.activeIndex - 1 : P.items.length - 1, ie = P.items[Y], Ae = P.items.map((me, re) => Ve(Ve({}, me), {}, { active: re === Y }));
|
|
36861
36859
|
return Ve(Ve({}, P), {}, { items: Ae, activeItem: ie, activeIndex: Y });
|
|
36862
|
-
})(c(b)) : void 0), yield
|
|
36860
|
+
})(c(b)) : void 0), yield B();
|
|
36863
36861
|
}), R.apply(this, arguments);
|
|
36864
36862
|
}
|
|
36865
|
-
function
|
|
36863
|
+
function B() {
|
|
36866
36864
|
return _.apply(this, arguments);
|
|
36867
36865
|
}
|
|
36868
36866
|
function _() {
|
|
@@ -36880,7 +36878,7 @@ function bM(t, e) {
|
|
|
36880
36878
|
}
|
|
36881
36879
|
function C() {
|
|
36882
36880
|
return C = Rt(function* (P) {
|
|
36883
|
-
yield U(u(), P, s()), yield
|
|
36881
|
+
yield U(u(), P, s()), yield B();
|
|
36884
36882
|
}), C.apply(this, arguments);
|
|
36885
36883
|
}
|
|
36886
36884
|
function $() {
|
|
@@ -36926,7 +36924,7 @@ function bM(t, e) {
|
|
|
36926
36924
|
}), he(() => T(s()), () => {
|
|
36927
36925
|
O(s());
|
|
36928
36926
|
}), Ln(), Ut(!0);
|
|
36929
|
-
var Ne = _r(), D = Mt(Ne),
|
|
36927
|
+
var Ne = _r(), D = Mt(Ne), q = (P) => {
|
|
36930
36928
|
var Y = gV(), ie = ee(Y), Ae = ee(ie), me = (qe) => {
|
|
36931
36929
|
var Ze = pV(), Qe = ee(Ze), je = lt(() => d() ? Oa : rf);
|
|
36932
36930
|
pn(Qe, { get data() {
|
|
@@ -36974,7 +36972,7 @@ function bM(t, e) {
|
|
|
36974
36972
|
}), Be("click", X, le), Be("click", ue, te), Be("click", xe, de), Be("keydown", ie, M), oe(P, Y);
|
|
36975
36973
|
};
|
|
36976
36974
|
Ee(D, (P) => {
|
|
36977
|
-
u() && P(
|
|
36975
|
+
u() && P(q);
|
|
36978
36976
|
}), oe(t, Ne), Ct();
|
|
36979
36977
|
}
|
|
36980
36978
|
var Tf = /* @__PURE__ */ Symbol("path");
|
|
@@ -37638,7 +37636,7 @@ function EM(t, e) {
|
|
|
37638
37636
|
}, get onRequestClose() {
|
|
37639
37637
|
return r();
|
|
37640
37638
|
} });
|
|
37641
|
-
},
|
|
37639
|
+
}, Se = Xt(() => (T(ua), c(V), se(() => ua(c(V))))), ge = (S) => {
|
|
37642
37640
|
q0(S, { get item() {
|
|
37643
37641
|
return c(V);
|
|
37644
37642
|
}, get onRequestClose() {
|
|
@@ -37653,7 +37651,7 @@ function EM(t, e) {
|
|
|
37653
37651
|
}, get onRequestClose() {
|
|
37654
37652
|
return r();
|
|
37655
37653
|
} });
|
|
37656
|
-
}, D = Xt(() => (T(ua), c(U), se(() => ua(c(U))))),
|
|
37654
|
+
}, D = Xt(() => (T(ua), c(U), se(() => ua(c(U))))), q = (ke) => {
|
|
37657
37655
|
q0(ke, { className: "left", get item() {
|
|
37658
37656
|
return c(U);
|
|
37659
37657
|
}, get onRequestClose() {
|
|
@@ -37669,17 +37667,17 @@ function EM(t, e) {
|
|
|
37669
37667
|
We(($e) => Ot(tt, $e), [() => (c(U), se(() => a(c(U))))]), oe(ke, tt);
|
|
37670
37668
|
};
|
|
37671
37669
|
Ee(de, (ke) => {
|
|
37672
|
-
c(D) ? ke(Ne) : c(P) ? ke(
|
|
37670
|
+
c(D) ? ke(Ne) : c(P) ? ke(q, 1) : c(ie) ? ke(Y, 2) : c(me) ? ke(Ae, 3) : ke(re, -1);
|
|
37673
37671
|
}), oe($, J);
|
|
37674
37672
|
}), oe(S, C);
|
|
37675
37673
|
}, te = Xt(() => (T(dS), c(V), se(() => dS(c(V))))), R = (S) => {
|
|
37676
37674
|
oe(S, F0());
|
|
37677
|
-
},
|
|
37675
|
+
}, B = Xt(() => (T(Ja), c(V), se(() => Ja(c(V))))), _ = (S) => {
|
|
37678
37676
|
var C = Si();
|
|
37679
37677
|
We(($) => Ot(C, $), [() => (c(V), se(() => a(c(V))))]), oe(S, C);
|
|
37680
37678
|
};
|
|
37681
37679
|
Ee(Q, (S) => {
|
|
37682
|
-
c(
|
|
37680
|
+
c(Se) ? S(pe) : c(le) ? S(ge, 1) : c(te) ? S(ne, 2) : c(B) ? S(R, 3) : S(_, -1);
|
|
37683
37681
|
}), oe(H, G);
|
|
37684
37682
|
}), oe(M, z);
|
|
37685
37683
|
}, b = Xt(() => (T(uS), c(p), se(() => uS(c(p))))), j = (M) => {
|
|
@@ -37906,7 +37904,7 @@ function q1(t, e) {
|
|
|
37906
37904
|
St(e, !1);
|
|
37907
37905
|
var n = Z(void 0, !0), r = xi("jsoneditor:TreeMode"), i = typeof window > "u";
|
|
37908
37906
|
r("isSSR:", i);
|
|
37909
|
-
var o = ku(), s = ku(), a = Pl("absolute-popup"), l = a.openAbsolutePopup, u = a.closeAbsolutePopup, d = Z(void 0, !0), f = Z(void 0, !0), h = Z(void 0, !0), p = !1, m = uM(), g = A(e, "readOnly", 9), v = A(e, "ariaLabel", 9, void 0), y = A(e, "externalContent", 9), x = A(e, "externalSelection", 9), w = A(e, "history", 9), k = A(e, "truncateTextSize", 9), b = A(e, "mainMenuBar", 9), j = A(e, "navigationBar", 9), O = A(e, "escapeControlCharacters", 9), N = A(e, "escapeUnicodeCharacters", 9), M = A(e, "parser", 9), z = A(e, "parseMemoizeOne", 9), H = A(e, "validator", 9), V = A(e, "validationParser", 9), G = A(e, "pathParser", 9), Q = A(e, "indentation", 9), pe = A(e, "onError", 9),
|
|
37907
|
+
var o = ku(), s = ku(), a = Pl("absolute-popup"), l = a.openAbsolutePopup, u = a.closeAbsolutePopup, d = Z(void 0, !0), f = Z(void 0, !0), h = Z(void 0, !0), p = !1, m = uM(), g = A(e, "readOnly", 9), v = A(e, "ariaLabel", 9, void 0), y = A(e, "externalContent", 9), x = A(e, "externalSelection", 9), w = A(e, "history", 9), k = A(e, "truncateTextSize", 9), b = A(e, "mainMenuBar", 9), j = A(e, "navigationBar", 9), O = A(e, "escapeControlCharacters", 9), N = A(e, "escapeUnicodeCharacters", 9), M = A(e, "parser", 9), z = A(e, "parseMemoizeOne", 9), H = A(e, "validator", 9), V = A(e, "validationParser", 9), G = A(e, "pathParser", 9), Q = A(e, "indentation", 9), pe = A(e, "onError", 9), Se = A(e, "onChange", 9), ge = A(e, "onChangeMode", 9), le = A(e, "onSelect", 9), ne = A(e, "onUndo", 9), te = A(e, "onRedo", 9), R = A(e, "onRenderValue", 9), B = A(e, "onRenderMenu", 9), _ = A(e, "onRenderContextMenu", 9), S = A(e, "onClassName", 9), C = A(e, "onFocus", 9), $ = A(e, "onBlur", 9), U = A(e, "onSortModal", 9), J = A(e, "onTransformModal", 9), de = A(e, "onJSONEditorModal", 9), Ne = !1, D = Z(!1, !0), q = Z(void 0, !0);
|
|
37910
37908
|
wx({ onMount: Di, onDestroy: es, getWindow: () => Yf(c(h)), hasFocus: () => Ne && document.hasFocus() || sx(c(h)), onFocus: () => {
|
|
37911
37909
|
p = !0, C() && C()();
|
|
37912
37910
|
}, onBlur: () => {
|
|
@@ -38088,10 +38086,10 @@ function q1(t, e) {
|
|
|
38088
38086
|
W !== void 0 && kM({ clipboardText: W, json: c(P), selection: c(re), readOnly: g(), parser: M(), onPatch: sn, onChangeText: ae, onPasteMultilineText: Vt, openRepairModal: tr });
|
|
38089
38087
|
}
|
|
38090
38088
|
function tr(W, fe) {
|
|
38091
|
-
E(
|
|
38089
|
+
E(q, { text: W, onParse: (De) => Qf(De, (ut) => Gf(ut, M())), onRepair: OA, onApply: fe, onClose: _t });
|
|
38092
38090
|
}
|
|
38093
38091
|
function Lr() {
|
|
38094
|
-
SM({ json: c(P), text: c(Y), selection: c(re), keepSelection: !1, readOnly: g(), onChange:
|
|
38092
|
+
SM({ json: c(P), text: c(Y), selection: c(re), keepSelection: !1, readOnly: g(), onChange: Se(), onPatch: sn });
|
|
38095
38093
|
}
|
|
38096
38094
|
function Hr() {
|
|
38097
38095
|
!g() && c(P) !== void 0 && c(re) && su && !jn(mt(c(re))) && (r("duplicate", { selection: c(re) }), sn(JA(c(P), Ol(c(P), c(re)))));
|
|
@@ -38253,10 +38251,10 @@ function q1(t, e) {
|
|
|
38253
38251
|
if (W.json !== void 0 || W?.text !== void 0) {
|
|
38254
38252
|
if (c(Y) !== void 0) {
|
|
38255
38253
|
var De, ut = { text: c(Y), json: void 0 };
|
|
38256
|
-
(De =
|
|
38254
|
+
(De = Se()) === null || De === void 0 || De(ut, W, { contentErrors: Tt(), patchResult: fe });
|
|
38257
38255
|
} else if (c(P) !== void 0) {
|
|
38258
38256
|
var Pe, Fe = { text: void 0, json: c(P) };
|
|
38259
|
-
(Pe =
|
|
38257
|
+
(Pe = Se()) === null || Pe === void 0 || Pe(Fe, W, { contentErrors: Tt(), patchResult: fe });
|
|
38260
38258
|
}
|
|
38261
38259
|
}
|
|
38262
38260
|
}
|
|
@@ -38459,7 +38457,7 @@ function q1(t, e) {
|
|
|
38459
38457
|
}, get history() {
|
|
38460
38458
|
return w();
|
|
38461
38459
|
}, onExpandAll: Ge, onCollapseAll: Xe, onUndo: Cr, onRedo: Qt, onSort: yr, onTransform: ni, onContextMenu: kt, onCopy: $n, get onRenderMenu() {
|
|
38462
|
-
return
|
|
38460
|
+
return B();
|
|
38463
38461
|
}, get showSearch() {
|
|
38464
38462
|
return c(pt);
|
|
38465
38463
|
}, set showSearch(fe) {
|
|
@@ -38616,13 +38614,13 @@ function q1(t, e) {
|
|
|
38616
38614
|
c(D) && W(Lt);
|
|
38617
38615
|
});
|
|
38618
38616
|
var yn = ce(vt, 2), Pr = (W) => {
|
|
38619
|
-
hM(W, ul(() => c(
|
|
38617
|
+
hM(W, ul(() => c(q), { onClose: () => {
|
|
38620
38618
|
var fe;
|
|
38621
|
-
(fe = c(
|
|
38619
|
+
(fe = c(q)) === null || fe === void 0 || fe.onClose(), E(q, void 0);
|
|
38622
38620
|
} }));
|
|
38623
38621
|
};
|
|
38624
38622
|
return Ee(yn, (W) => {
|
|
38625
|
-
c(
|
|
38623
|
+
c(q) && W(Pr);
|
|
38626
38624
|
}), We(() => {
|
|
38627
38625
|
kn(be, "aria-label", v()), F = Ft(be, 1, "jse-tree-mode svelte-10mlrw4", null, F, { "no-main-menu": !b() });
|
|
38628
38626
|
}), Be("keydown", be, function(W) {
|
|
@@ -38943,16 +38941,16 @@ var Ad = Zg(() => vF), Bc = Zg(() => bF), qV = we('<div class="query-error svelt
|
|
|
38943
38941
|
function HV(t, e) {
|
|
38944
38942
|
var n, r, i;
|
|
38945
38943
|
St(e, !1);
|
|
38946
|
-
var o = xi("jsoneditor:TransformModal"), s = A(e, "id", 25, () => "transform-modal-" + ou()), a = A(e, "json", 9), l = A(e, "rootPath", 25, () => []), u = A(e, "indentation", 9), d = A(e, "truncateTextSize", 9), f = A(e, "escapeControlCharacters", 9), h = A(e, "escapeUnicodeCharacters", 9), p = A(e, "parser", 9), m = A(e, "parseMemoizeOne", 9), g = A(e, "validationParser", 9), v = A(e, "pathParser", 9), y = A(e, "queryLanguages", 9), x = A(e, "queryLanguageId", 13), w = A(e, "onChangeQueryLanguage", 9), k = A(e, "onRenderValue", 9), b = A(e, "onRenderMenu", 9), j = A(e, "onRenderContextMenu", 9), O = A(e, "onClassName", 9), N = A(e, "onTransform", 9), M = A(e, "onClose", 9), z = Z(void 0, !0), H = Z(MM({ onChange: (ie) => E(H, ie) }).get(), !0), V = Z(void 0, !0), G = Z(void 0, !0), Q = Z(!1, !0), pe = "".concat(s(), ":").concat(Et(l())),
|
|
38944
|
+
var o = xi("jsoneditor:TransformModal"), s = A(e, "id", 25, () => "transform-modal-" + ou()), a = A(e, "json", 9), l = A(e, "rootPath", 25, () => []), u = A(e, "indentation", 9), d = A(e, "truncateTextSize", 9), f = A(e, "escapeControlCharacters", 9), h = A(e, "escapeUnicodeCharacters", 9), p = A(e, "parser", 9), m = A(e, "parseMemoizeOne", 9), g = A(e, "validationParser", 9), v = A(e, "pathParser", 9), y = A(e, "queryLanguages", 9), x = A(e, "queryLanguageId", 13), w = A(e, "onChangeQueryLanguage", 9), k = A(e, "onRenderValue", 9), b = A(e, "onRenderMenu", 9), j = A(e, "onRenderContextMenu", 9), O = A(e, "onClassName", 9), N = A(e, "onTransform", 9), M = A(e, "onClose", 9), z = Z(void 0, !0), H = Z(MM({ onChange: (ie) => E(H, ie) }).get(), !0), V = Z(void 0, !0), G = Z(void 0, !0), Q = Z(!1, !0), pe = "".concat(s(), ":").concat(Et(l())), Se = (n = Ad()[pe]) !== null && n !== void 0 ? n : {}, ge = Z(Bc().showWizard !== !1, !0), le = Z(Bc().showOriginal !== !1, !0), ne = Z((r = Se.queryOptions) !== null && r !== void 0 ? r : {}, !0), te = Z(x() === Se.queryLanguageId && Se.query ? Se.query : "", !0), R = Z((i = Se.isManual) !== null && i !== void 0 && i, !0), B = Z(void 0, !0), _ = Z(void 0, !0), S = Z({ text: "" }, !0);
|
|
38947
38945
|
function C(ie) {
|
|
38948
38946
|
var Ae;
|
|
38949
38947
|
return (Ae = y().find((me) => me.id === ie)) !== null && Ae !== void 0 ? Ae : y()[0];
|
|
38950
38948
|
}
|
|
38951
38949
|
function $(ie) {
|
|
38952
38950
|
try {
|
|
38953
|
-
E(ne, ie), E(te, C(x()).createQuery(c(V), ie)), E(
|
|
38951
|
+
E(ne, ie), E(te, C(x()).createQuery(c(V), ie)), E(B, void 0), E(R, !1), o("updateQueryByWizard", { queryOptions: c(ne), query: c(te), isManual: c(R) });
|
|
38954
38952
|
} catch (Ae) {
|
|
38955
|
-
E(
|
|
38953
|
+
E(B, String(Ae));
|
|
38956
38954
|
}
|
|
38957
38955
|
}
|
|
38958
38956
|
function U(ie) {
|
|
@@ -38989,7 +38987,7 @@ function HV(t, e) {
|
|
|
38989
38987
|
function D() {
|
|
38990
38988
|
E(le, !c(le)), Bc(Bc().showOriginal = c(le));
|
|
38991
38989
|
}
|
|
38992
|
-
function
|
|
38990
|
+
function q(ie) {
|
|
38993
38991
|
ie.focus();
|
|
38994
38992
|
}
|
|
38995
38993
|
function P(ie) {
|
|
@@ -39062,10 +39060,10 @@ function HV(t, e) {
|
|
|
39062
39060
|
}, onChange: $ });
|
|
39063
39061
|
var er = ce(Qn, 2), tr = (Lr) => {
|
|
39064
39062
|
var Hr = qV(), zr = ee(Hr);
|
|
39065
|
-
We(() => Ot(zr, c(
|
|
39063
|
+
We(() => Ot(zr, c(B))), oe(Lr, Hr);
|
|
39066
39064
|
};
|
|
39067
39065
|
Ee(er, (Lr) => {
|
|
39068
|
-
c(
|
|
39066
|
+
c(B) && Lr(tr);
|
|
39069
39067
|
}), oe(_n, br);
|
|
39070
39068
|
}, $n = Xt(() => (c(V), se(() => Array.isArray(c(V))))), Jt = (_n) => {
|
|
39071
39069
|
oe(_n, Si("(Only available for arrays, not for objects)"));
|
|
@@ -39195,7 +39193,7 @@ function HV(t, e) {
|
|
|
39195
39193
|
c(_) ? xt(jt, -1) : xt(bt);
|
|
39196
39194
|
});
|
|
39197
39195
|
var zn = ee(ce(it, 2));
|
|
39198
|
-
Mi(() => Be("click", zn, de)), Wi(zn, (xt) =>
|
|
39196
|
+
Mi(() => Be("click", zn, de)), Wi(zn, (xt) => q?.(xt)), We((xt) => {
|
|
39199
39197
|
kc(pt, xt), kc(qe, c(te)), Ze = Ft(je, 1, "jse-data-contents svelte-lta8xm", null, Ze, { "jse-hide-original-data": !c(le) }), Qe = Ft(Ke, 1, "jse-original-data svelte-lta8xm", null, Qe, { "jse-hide": !c(le) }), zn.disabled = !!c(_);
|
|
39200
39198
|
}, [() => (T(jn), T(l()), T(fo), se(() => jn(l()) ? "(document root)" : fo(l())))]), Be("click", X, Ne), Be("input", qe, U), Be("click", Nn, D), oe(re, tt);
|
|
39201
39199
|
}, $$slots: { default: !0 } }), Wi(me, (re, ke) => vg?.(re, ke), () => Y), oe(ie, me);
|
|
@@ -39587,9 +39585,9 @@ zt(`/* over all fonts, sizes, and colors */
|
|
|
39587
39585
|
var ZV = we('<div class="jse-fold-progress svelte-k2b9e6"><span class="jse-fold-tip svelte-k2b9e6">Collapsing</span> <div class="jse-fold-progress-track svelte-k2b9e6"><div class="jse-fold-progress-fill svelte-k2b9e6"></div></div> <button class="jse-fold-cancel-button svelte-k2b9e6" type="button" title="Cancel folding">Cancel</button></div>'), eW = we('<!> <div class="jse-contents jse-preview svelte-k2b9e6"> </div>', 1), tW = we("<!> <!> <!> <!>", 1), nW = we("<div></div> <!> <!>", 1), rW = we('<div class="jse-contents svelte-k2b9e6"><div class="jse-loading-space svelte-k2b9e6"></div> <div class="jse-loading svelte-k2b9e6">loading...</div></div>'), iW = we("<div><!> <!> <!></div>");
|
|
39588
39586
|
function oW(t, e) {
|
|
39589
39587
|
St(e, !1);
|
|
39590
|
-
var n = Z(void 0, !0), r = Z(void 0, !0), i = A(e, "readOnly", 9), o = A(e, "ariaLabel", 9, void 0), s = A(e, "mainMenuBar", 9), a = A(e, "statusBar", 9), l = A(e, "askToFormat", 9), u = A(e, "externalContent", 9), d = A(e, "externalSelection", 9), f = A(e, "history", 9), h = A(e, "indentation", 9), p = A(e, "tabSize", 9), m = A(e, "escapeUnicodeCharacters", 9), g = A(e, "maxDocumentSize", 9), v = A(e, "parser", 9), y = A(e, "validator", 9), x = A(e, "validationParser", 9), w = A(e, "onChange", 9), k = A(e, "onChangeMode", 9), b = A(e, "onSelect", 9), j = A(e, "onUndo", 9), O = A(e, "onRedo", 9), N = A(e, "onError", 9), M = A(e, "onFocus", 9), z = A(e, "onBlur", 9), H = A(e, "onRenderMenu", 9), V = A(e, "onSortModal", 9), G = A(e, "onTransformModal", 9), Q = xi("jsoneditor:TextMode"), pe = { key: "Mod-i", run: Qe, shift: je, preventDefault: !0 },
|
|
39591
|
-
Q("isSSR:",
|
|
39592
|
-
var ge, le = Z(void 0, !0), ne = Z(void 0, !0), te = Z(void 0, !0), R = Z(!1, !0),
|
|
39588
|
+
var n = Z(void 0, !0), r = Z(void 0, !0), i = A(e, "readOnly", 9), o = A(e, "ariaLabel", 9, void 0), s = A(e, "mainMenuBar", 9), a = A(e, "statusBar", 9), l = A(e, "askToFormat", 9), u = A(e, "externalContent", 9), d = A(e, "externalSelection", 9), f = A(e, "history", 9), h = A(e, "indentation", 9), p = A(e, "tabSize", 9), m = A(e, "escapeUnicodeCharacters", 9), g = A(e, "maxDocumentSize", 9), v = A(e, "parser", 9), y = A(e, "validator", 9), x = A(e, "validationParser", 9), w = A(e, "onChange", 9), k = A(e, "onChangeMode", 9), b = A(e, "onSelect", 9), j = A(e, "onUndo", 9), O = A(e, "onRedo", 9), N = A(e, "onError", 9), M = A(e, "onFocus", 9), z = A(e, "onBlur", 9), H = A(e, "onRenderMenu", 9), V = A(e, "onSortModal", 9), G = A(e, "onTransformModal", 9), Q = xi("jsoneditor:TextMode"), pe = { key: "Mod-i", run: Qe, shift: je, preventDefault: !0 }, Se = typeof window > "u";
|
|
39589
|
+
Q("isSSR:", Se);
|
|
39590
|
+
var ge, le = Z(void 0, !0), ne = Z(void 0, !0), te = Z(void 0, !0), R = Z(!1, !0), B = Z(l(), !0), _ = Z([], !0), S = Z(!1, !0), C = Z(0, !0), $ = Z(0, !0), U = null, J = new Ps(), de = new Ps(), Ne = new Ps(), D = new Ps(), q = new Ps(), P = new Ps(), Y = u(), ie = Z(w1(Y, h(), v()), !0), Ae = Tl.define(), me = null;
|
|
39593
39591
|
function re() {
|
|
39594
39592
|
if (!me || me.length === 0) return !1;
|
|
39595
39593
|
var L = me[0].startState, ae = me[me.length - 1].state, ye = me.map((Xe) => Xe.changes).reduce((Xe, et) => Xe.compose(et)), Ge = { type: "text", undo: { changes: ye.invert(L.doc).toJSON(), selection: wi(L.selection) }, redo: { changes: ye.toJSON(), selection: wi(ae.selection) } };
|
|
@@ -39597,7 +39595,7 @@ function oW(t, e) {
|
|
|
39597
39595
|
}
|
|
39598
39596
|
var ke = Z(m(), !0);
|
|
39599
39597
|
Di(Rt(function* () {
|
|
39600
|
-
if (!
|
|
39598
|
+
if (!Se) try {
|
|
39601
39599
|
ge = (function(L) {
|
|
39602
39600
|
var ae = L.target, ye = L.initialText, Ge = L.readOnly, Xe = L.indentation;
|
|
39603
39601
|
Q("Create CodeMirror editor", { readOnly: Ge, indentation: Xe });
|
|
@@ -39605,7 +39603,7 @@ function oW(t, e) {
|
|
|
39605
39603
|
return T0(Nt) ? Nt.ranges.every((yt) => yt.anchor < Vt.length && yt.head < Vt.length) : !1;
|
|
39606
39604
|
})(d(), ye) ? _n(d()) : void 0, ct = En.create({ doc: ye, selection: et, extensions: [_m.of([S7, pe]), J.of(xt()), F7(), gD(), yD(), RI(), sL(), Le(), wI(), EI(), En.allowMultipleSelections.of(!0), GD(), aO(uL, { fallback: !0 }), vL(), iB(), mB(), WI(), JI(), zI(), sz(), _m.of([...lB, ...k7, ...Az, { key: "Mod-z", run: tn, preventDefault: !0 }, { key: "Mod-y", mac: "Mod-Shift-z", run: Fn, preventDefault: !0 }, { key: "Ctrl-Shift-z", run: Fn, preventDefault: !0 }, ...nL, ...dE, ...T7]), QV, jB({ hideFirstIndent: !0 }), at.domEventHandlers({ dblclick: zn }), at.updateListener.of((Nt) => {
|
|
39607
39605
|
E(te, Nt.state), Nt.docChanged && (Nt.transactions.some((Vt) => !!Vt.annotation(Ae)) || (me = [...me ?? [], Nt]), zr()), Nt.selectionSet && Sr();
|
|
39608
|
-
}), tz(), mz({ top: !0 }), at.lineWrapping, de.of(En.readOnly.of(Ge)), D.of(En.tabSize.of(p())), Ne.of(Hr(Xe)),
|
|
39606
|
+
}), tz(), mz({ top: !0 }), at.lineWrapping, de.of(En.readOnly.of(Ge)), D.of(En.tabSize.of(p())), Ne.of(Hr(Xe)), q.of(at.theme({}, { dark: cn() })), P.of(tr(o()))] });
|
|
39609
39607
|
return ge = new at({ state: ct, parent: ae }), et && ge.dispatch(ge.state.update({ selection: et.main, scrollIntoView: !0 })), ge;
|
|
39610
39608
|
})({ target: c(le), initialText: Jr(c(ie), g(), c(R)) ? "" : c(n).escapeValue(c(ie)), readOnly: i(), indentation: h() });
|
|
39611
39609
|
} catch (L) {
|
|
@@ -39726,7 +39724,7 @@ function oW(t, e) {
|
|
|
39726
39724
|
if (Q("format"), i()) return !1;
|
|
39727
39725
|
try {
|
|
39728
39726
|
var L = v().parse(c(ie));
|
|
39729
|
-
return Jt({ text: v().stringify(L, null, h()) }, !0, !1), E(
|
|
39727
|
+
return Jt({ text: v().stringify(L, null, h()) }, !0, !1), E(B, l()), !0;
|
|
39730
39728
|
} catch (ae) {
|
|
39731
39729
|
N()(ae);
|
|
39732
39730
|
}
|
|
@@ -39736,7 +39734,7 @@ function oW(t, e) {
|
|
|
39736
39734
|
if (Q("compact"), i()) return !1;
|
|
39737
39735
|
try {
|
|
39738
39736
|
var L = v().parse(c(ie));
|
|
39739
|
-
return Jt({ text: v().stringify(L) }, !0, !1), E(
|
|
39737
|
+
return Jt({ text: v().stringify(L) }, !0, !1), E(B, !1), !0;
|
|
39740
39738
|
} catch (ae) {
|
|
39741
39739
|
N()(ae);
|
|
39742
39740
|
}
|
|
@@ -39875,7 +39873,7 @@ function oW(t, e) {
|
|
|
39875
39873
|
return (Lr = Rt(function* () {
|
|
39876
39874
|
if (cr(), ge) {
|
|
39877
39875
|
var L = cn();
|
|
39878
|
-
return Q("updateTheme", { dark: L }), ge.dispatch({ effects: [
|
|
39876
|
+
return Q("updateTheme", { dark: L }), ge.dispatch({ effects: [q.reconfigure(at.theme({}, { dark: L }))] }), new Promise((ae) => setTimeout(ae));
|
|
39879
39877
|
}
|
|
39880
39878
|
return Promise.resolve();
|
|
39881
39879
|
})).apply(this, arguments);
|
|
@@ -40094,11 +40092,11 @@ function oW(t, e) {
|
|
|
40094
40092
|
c(Zt) && ft(Wn);
|
|
40095
40093
|
});
|
|
40096
40094
|
var In = ce(nr, 2), dr = (ft) => {
|
|
40097
|
-
var bn = lt(() => [{ icon: US, text: "Format", title: "Format JSON: add proper indentation and new lines (Ctrl+I)", onClick: Qe }, { icon: Mg, text: "No thanks", title: "Close this message", onClick: () => E(
|
|
40095
|
+
var bn = lt(() => [{ icon: US, text: "Format", title: "Format JSON: add proper indentation and new lines (Ctrl+I)", onClick: Qe }, { icon: Mg, text: "No thanks", title: "Close this message", onClick: () => E(B, !1) }]);
|
|
40098
40096
|
_o(ft, { type: "success", message: "Do you want to format the JSON?", get actions() {
|
|
40099
40097
|
return c(bn);
|
|
40100
40098
|
}, onClose: it });
|
|
40101
|
-
}, fn = Xt(() => (c(Zt), c(
|
|
40099
|
+
}, fn = Xt(() => (c(Zt), c(B), T(oS), c(ie), se(() => !c(Zt) && c(B) && oS(c(ie)))));
|
|
40102
40100
|
Ee(In, (ft) => {
|
|
40103
40101
|
c(fn) && ft(dr);
|
|
40104
40102
|
}), jx(ce(In, 2), { get validationErrors() {
|
|
@@ -40112,7 +40110,7 @@ function oW(t, e) {
|
|
|
40112
40110
|
oe(L, rW());
|
|
40113
40111
|
};
|
|
40114
40112
|
return Ee(Yt, (L) => {
|
|
40115
|
-
|
|
40113
|
+
Se ? L(sn, -1) : L(Kn);
|
|
40116
40114
|
}), gr(ni, (L) => E(ne, L), () => c(ne)), We(() => di = Ft(ni, 1, "jse-text-mode svelte-k2b9e6", null, di, { "no-main-menu": !s() })), oe(t, ni), $t(e, "focus", it), $t(e, "collapse", Ye), $t(e, "expand", ue), $t(e, "patch", qe), $t(e, "handlePatch", Ze), $t(e, "openTransformModal", Tt), $t(e, "refresh", br), $t(e, "flush", Yn), $t(e, "validate", Qt), Ct(ti);
|
|
40117
40115
|
}
|
|
40118
40116
|
zt(`/* over all fonts, sizes, and colors */
|
|
@@ -40504,13 +40502,13 @@ function OW(t, e) {
|
|
|
40504
40502
|
St(e, !1);
|
|
40505
40503
|
var n = Z(void 0, !0), r = Z(void 0, !0), i = Z(void 0, !0), o = xi("jsoneditor:TableMode"), s = Pl("absolute-popup"), a = s.openAbsolutePopup, l = s.closeAbsolutePopup, u = uM(), d = ku(), f = ku(), h = typeof window > "u";
|
|
40506
40504
|
o("isSSR:", h);
|
|
40507
|
-
var p = A(e, "readOnly", 9), m = A(e, "ariaLabel", 9, void 0), g = A(e, "externalContent", 9), v = A(e, "externalSelection", 9), y = A(e, "history", 9), x = A(e, "truncateTextSize", 9), w = A(e, "mainMenuBar", 9), k = A(e, "escapeControlCharacters", 9), b = A(e, "escapeUnicodeCharacters", 9), j = A(e, "flattenColumns", 9), O = A(e, "parser", 9), N = A(e, "parseMemoizeOne", 9), M = A(e, "validator", 9), z = A(e, "validationParser", 9), H = A(e, "indentation", 9), V = A(e, "onChange", 9), G = A(e, "onChangeMode", 9), Q = A(e, "onSelect", 9), pe = A(e, "onUndo", 9),
|
|
40505
|
+
var p = A(e, "readOnly", 9), m = A(e, "ariaLabel", 9, void 0), g = A(e, "externalContent", 9), v = A(e, "externalSelection", 9), y = A(e, "history", 9), x = A(e, "truncateTextSize", 9), w = A(e, "mainMenuBar", 9), k = A(e, "escapeControlCharacters", 9), b = A(e, "escapeUnicodeCharacters", 9), j = A(e, "flattenColumns", 9), O = A(e, "parser", 9), N = A(e, "parseMemoizeOne", 9), M = A(e, "validator", 9), z = A(e, "validationParser", 9), H = A(e, "indentation", 9), V = A(e, "onChange", 9), G = A(e, "onChangeMode", 9), Q = A(e, "onSelect", 9), pe = A(e, "onUndo", 9), Se = A(e, "onRedo", 9), ge = A(e, "onRenderValue", 9), le = A(e, "onRenderMenu", 9), ne = A(e, "onRenderContextMenu", 9), te = A(e, "onFocus", 9), R = A(e, "onBlur", 9), B = A(e, "onSortModal", 9), _ = A(e, "onTransformModal", 9), S = A(e, "onJSONEditorModal", 9), C = Z(void 0, !0), $ = Z(void 0, !0), U = Z(void 0, !0), J = Z(void 0, !0), de = Z(void 0, !0);
|
|
40508
40506
|
wx({ onMount: Di, onDestroy: es, getWindow: () => Yf(c($)), hasFocus: () => I && document.hasFocus() || sx(c($)), onFocus: () => {
|
|
40509
40507
|
K = !0, te() && te()();
|
|
40510
40508
|
}, onBlur: () => {
|
|
40511
40509
|
K = !1, R() && R()();
|
|
40512
40510
|
} });
|
|
40513
|
-
var Ne, D = Z(void 0, !0),
|
|
40511
|
+
var Ne, D = Z(void 0, !0), q = Z(void 0, !0), P = Z(void 0, !0), Y = Z(void 0, !0), ie = Z(void 0, !0), Ae = Z(void 0, !0), me = Z(!1, !0), re = Z(!1, !0);
|
|
40514
40512
|
function ke(F) {
|
|
40515
40513
|
E(Ae, (Ne = F) ? ZA(c(D), Ne.items) : void 0);
|
|
40516
40514
|
}
|
|
@@ -40547,7 +40545,7 @@ function OW(t, e) {
|
|
|
40547
40545
|
function ir(F) {
|
|
40548
40546
|
if (F.json !== void 0 || F.text !== void 0) {
|
|
40549
40547
|
var be = c(D) !== void 0 && F.json !== void 0;
|
|
40550
|
-
y().add({ type: "tree", undo: { patch: be ? [{ op: "replace", path: "", value: F.json }] : void 0, json: F.json, text: F.text, documentState: F.documentState, textIsRepaired: F.textIsRepaired, selection: Ds(F.selection), sortedColumn: F.sortedColumn }, redo: { patch: be ? [{ op: "replace", path: "", value: c(D) }] : void 0, json: c(D), text: c(
|
|
40548
|
+
y().add({ type: "tree", undo: { patch: be ? [{ op: "replace", path: "", value: F.json }] : void 0, json: F.json, text: F.text, documentState: F.documentState, textIsRepaired: F.textIsRepaired, selection: Ds(F.selection), sortedColumn: F.sortedColumn }, redo: { patch: be ? [{ op: "replace", path: "", value: c(D) }] : void 0, json: c(D), text: c(q), documentState: c(Qe), textIsRepaired: c(Te), selection: Ds(c(je)), sortedColumn: c(Ke) } });
|
|
40551
40549
|
}
|
|
40552
40550
|
}
|
|
40553
40551
|
var tn = Z([], !0), Fn = of(dM);
|
|
@@ -40567,18 +40565,18 @@ function OW(t, e) {
|
|
|
40567
40565
|
}
|
|
40568
40566
|
function kr(F, be) {
|
|
40569
40567
|
if (o("patch", F, be), c(D) === void 0) throw new Error("Cannot apply patch: no JSON");
|
|
40570
|
-
var ze = c(D), He = { json: void 0, text: c(
|
|
40571
|
-
return E(D, Ue?.json !== void 0 ? Ue.json : st.json), E(Qe, Ue?.state !== void 0 ? Ue.state : st.documentState), E(je, Ue?.selection !== void 0 ? Ue.selection : c(je)), E(Ke, Ue?.sortedColumn !== void 0 ? Ue.sortedColumn : Dt), E(
|
|
40568
|
+
var ze = c(D), He = { json: void 0, text: c(q), documentState: c(Qe), selection: Ds(c(je)), sortedColumn: c(Ke), textIsRepaired: c(Te) }, Re = XA(c(D), F), st = BA(c(D), c(Qe), F), Dt = wV(c(Ke), F, c(Le)), Ue = typeof be == "function" ? be(st.json, st.documentState, c(je)) : void 0;
|
|
40569
|
+
return E(D, Ue?.json !== void 0 ? Ue.json : st.json), E(Qe, Ue?.state !== void 0 ? Ue.state : st.documentState), E(je, Ue?.selection !== void 0 ? Ue.selection : c(je)), E(Ke, Ue?.sortedColumn !== void 0 ? Ue.sortedColumn : Dt), E(q, void 0), E(Te, !1), E(Y, void 0), E(ie, void 0), E(P, void 0), y().add({ type: "tree", undo: Ve({ patch: Re }, He), redo: { patch: F, json: void 0, text: void 0, documentState: c(Qe), selection: Ds(c(je)), sortedColumn: c(Ke), textIsRepaired: c(Te) } }), { json: c(D), previousJson: ze, undo: Re, redo: F };
|
|
40572
40570
|
}
|
|
40573
40571
|
function bt(F, be) {
|
|
40574
40572
|
o("handlePatch", F, be);
|
|
40575
|
-
var ze = { json: c(D), text: c(
|
|
40573
|
+
var ze = { json: c(D), text: c(q) }, He = kr(F, be);
|
|
40576
40574
|
return jt(ze, He), He;
|
|
40577
40575
|
}
|
|
40578
40576
|
function jt(F, be) {
|
|
40579
40577
|
if ((F.json !== void 0 || F?.text !== void 0) && V()) {
|
|
40580
|
-
if (c(
|
|
40581
|
-
var ze = { text: c(
|
|
40578
|
+
if (c(q) !== void 0) {
|
|
40579
|
+
var ze = { text: c(q), json: void 0 };
|
|
40582
40580
|
V()(ze, F, { contentErrors: vr(), patchResult: be });
|
|
40583
40581
|
} else if (c(D) !== void 0) {
|
|
40584
40582
|
var He = { text: void 0, json: c(D) };
|
|
@@ -40609,10 +40607,10 @@ function OW(t, e) {
|
|
|
40609
40607
|
}
|
|
40610
40608
|
function Jt() {
|
|
40611
40609
|
if (c(Te) && c(D) !== void 0) {
|
|
40612
|
-
var F = { json: c(D), text: c(
|
|
40613
|
-
E(
|
|
40610
|
+
var F = { json: c(D), text: c(q) }, be = { json: c(D), documentState: c(Qe), selection: c(je), sortedColumn: c(Ke), text: c(q), textIsRepaired: c(Te) };
|
|
40611
|
+
E(q, void 0), E(Te, !1), Ze(c(D)), ir(be), jt(F, void 0);
|
|
40614
40612
|
}
|
|
40615
|
-
return { json: c(D), text: c(
|
|
40613
|
+
return { json: c(D), text: c(q) };
|
|
40616
40614
|
}
|
|
40617
40615
|
function _n(F) {
|
|
40618
40616
|
var be = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}).scrollToWhenVisible, ze = be === void 0 || be, He = c(me) ? Dd : 0, Re = WS(F, c(Le), ue, Ie), st = Re - c(ve) + He + Ie, Dt = er(F);
|
|
@@ -40765,7 +40763,7 @@ function OW(t, e) {
|
|
|
40765
40763
|
}), ni.apply(this, arguments);
|
|
40766
40764
|
}
|
|
40767
40765
|
function Br() {
|
|
40768
|
-
SM({ json: c(D), text: c(
|
|
40766
|
+
SM({ json: c(D), text: c(q), selection: c(je), keepSelection: !0, readOnly: p(), onChange: V(), onPatch: bt });
|
|
40769
40767
|
}
|
|
40770
40768
|
function ar(F) {
|
|
40771
40769
|
p() || (o("extract", { path: F }), bt(GA(c(D), ln(F))));
|
|
@@ -40826,19 +40824,19 @@ function OW(t, e) {
|
|
|
40826
40824
|
F !== void 0 && kM({ clipboardText: F, json: c(D), selection: c(je), readOnly: p(), parser: O(), onPatch: bt, onChangeText: Ge, onPasteMultilineText: xt, openRepairModal: Nt });
|
|
40827
40825
|
}
|
|
40828
40826
|
function ye(F, be) {
|
|
40829
|
-
var ze = { json: c(D), text: c(
|
|
40830
|
-
E(D, st?.json !== void 0 ? st.json : F), E(Qe, st?.state !== void 0 ? st.state : Re), E(je, st?.selection !== void 0 ? st.selection : c(je)), E(Ke, void 0), E(
|
|
40827
|
+
var ze = { json: c(D), text: c(q) }, He = { json: c(D), documentState: c(Qe), selection: c(je), sortedColumn: c(Ke), text: c(q), textIsRepaired: c(Te) }, Re = Eo(F, c(Qe)), st = typeof be == "function" ? be(F, Re, c(je)) : void 0;
|
|
40828
|
+
E(D, st?.json !== void 0 ? st.json : F), E(Qe, st?.state !== void 0 ? st.state : Re), E(je, st?.selection !== void 0 ? st.selection : c(je)), E(Ke, void 0), E(q, void 0), E(Te, !1), E(P, void 0), Ze(c(D)), ir(He), jt(ze, void 0);
|
|
40831
40829
|
}
|
|
40832
40830
|
function Ge(F, be) {
|
|
40833
40831
|
o("handleChangeText");
|
|
40834
|
-
var ze = { json: c(D), text: c(
|
|
40832
|
+
var ze = { json: c(D), text: c(q) }, He = { json: c(D), documentState: c(Qe), selection: c(je), sortedColumn: c(Ke), text: c(q), textIsRepaired: c(Te) };
|
|
40835
40833
|
try {
|
|
40836
|
-
E(D, N()(F)), E(Qe, Eo(c(D), c(Qe))), E(
|
|
40834
|
+
E(D, N()(F)), E(Qe, Eo(c(D), c(Qe))), E(q, void 0), E(Te, !1), E(P, void 0);
|
|
40837
40835
|
} catch (st) {
|
|
40838
40836
|
try {
|
|
40839
|
-
E(D, N()(Fs(F))), E(Qe, Eo(c(D), c(Qe))), E(
|
|
40837
|
+
E(D, N()(Fs(F))), E(Qe, Eo(c(D), c(Qe))), E(q, F), E(Te, !0), E(P, void 0);
|
|
40840
40838
|
} catch {
|
|
40841
|
-
E(D, void 0), E(Qe, void 0), E(
|
|
40839
|
+
E(D, void 0), E(Qe, void 0), E(q, F), E(Te, !1), E(P, c(q) !== "" ? Fu(c(q), st.message || String(st)) : void 0);
|
|
40842
40840
|
}
|
|
40843
40841
|
}
|
|
40844
40842
|
if (typeof be == "function") {
|
|
@@ -40870,7 +40868,7 @@ function OW(t, e) {
|
|
|
40870
40868
|
}
|
|
40871
40869
|
function Vt() {
|
|
40872
40870
|
(function(F) {
|
|
40873
|
-
p() || c(D) === void 0 || (I = !0,
|
|
40871
|
+
p() || c(D) === void 0 || (I = !0, B()({ id: d, json: c(D), rootPath: F, onSort: (be) => {
|
|
40874
40872
|
var ze = be.operations, He = be.itemPath, Re = be.direction;
|
|
40875
40873
|
o("onSort", ze, F, He, Re), bt(ze, (st, Dt) => ({ state: Dt, sortedColumn: { path: He, sortDirection: Re === -1 ? Lo.desc : Lo.asc } }));
|
|
40876
40874
|
}, onClose: () => {
|
|
@@ -40888,8 +40886,8 @@ function OW(t, e) {
|
|
|
40888
40886
|
if (!p() && y().canUndo) {
|
|
40889
40887
|
var F = y().undo();
|
|
40890
40888
|
if (sg(F)) {
|
|
40891
|
-
var be = { json: c(D), text: c(
|
|
40892
|
-
E(D, F.undo.patch ? ps(c(D), F.undo.patch) : F.undo.json), E(Qe, F.undo.documentState), E(je, F.undo.selection), E(Ke, F.undo.sortedColumn), E(
|
|
40889
|
+
var be = { json: c(D), text: c(q) };
|
|
40890
|
+
E(D, F.undo.patch ? ps(c(D), F.undo.patch) : F.undo.json), E(Qe, F.undo.documentState), E(je, F.undo.selection), E(Ke, F.undo.sortedColumn), E(q, F.undo.text), E(Te, F.undo.textIsRepaired), E(P, void 0), o("undo", { item: F, json: c(D) }), jt(be, F.undo.patch && F.redo.patch ? { json: c(D), previousJson: be.json, redo: F.undo.patch, undo: F.redo.patch } : void 0), It(), c(je) && _n(mt(c(je)), { scrollToWhenVisible: !1 });
|
|
40893
40891
|
} else pe()(F);
|
|
40894
40892
|
}
|
|
40895
40893
|
}
|
|
@@ -40897,9 +40895,9 @@ function OW(t, e) {
|
|
|
40897
40895
|
if (!p() && y().canRedo) {
|
|
40898
40896
|
var F = y().redo();
|
|
40899
40897
|
if (sg(F)) {
|
|
40900
|
-
var be = { json: c(D), text: c(
|
|
40901
|
-
E(D, F.redo.patch ? ps(c(D), F.redo.patch) : F.redo.json), E(Qe, F.redo.documentState), E(je, F.redo.selection), E(Ke, F.redo.sortedColumn), E(
|
|
40902
|
-
} else
|
|
40898
|
+
var be = { json: c(D), text: c(q) };
|
|
40899
|
+
E(D, F.redo.patch ? ps(c(D), F.redo.patch) : F.redo.json), E(Qe, F.redo.documentState), E(je, F.redo.selection), E(Ke, F.redo.sortedColumn), E(q, F.redo.text), E(Te, F.redo.textIsRepaired), E(P, void 0), o("redo", { item: F, json: c(D) }), jt(be, F.undo.patch && F.redo.patch ? { json: c(D), previousJson: be.json, redo: F.redo.patch, undo: F.undo.patch } : void 0), It(), c(je) && _n(mt(c(je)), { scrollToWhenVisible: !1 });
|
|
40900
|
+
} else Se()(F);
|
|
40903
40901
|
}
|
|
40904
40902
|
}
|
|
40905
40903
|
function nr(F) {
|
|
@@ -40916,19 +40914,19 @@ function OW(t, e) {
|
|
|
40916
40914
|
})(c(me));
|
|
40917
40915
|
}), he(() => T(g()), () => {
|
|
40918
40916
|
(function(F) {
|
|
40919
|
-
var be = { json: c(D) }, ze = Uu(F) ? F.text !== c(
|
|
40917
|
+
var be = { json: c(D) }, ze = Uu(F) ? F.text !== c(q) : !en(be.json, F.json);
|
|
40920
40918
|
if (o("update external content", { isChanged: ze }), ze) {
|
|
40921
|
-
var He = { json: c(D), documentState: c(Qe), selection: c(je), sortedColumn: c(Ke), text: c(
|
|
40919
|
+
var He = { json: c(D), documentState: c(Qe), selection: c(je), sortedColumn: c(Ke), text: c(q), textIsRepaired: c(Te) };
|
|
40922
40920
|
if (Uu(F)) try {
|
|
40923
|
-
E(D, N()(F.text)), E(Qe, Eo(c(D), c(Qe))), E(
|
|
40921
|
+
E(D, N()(F.text)), E(Qe, Eo(c(D), c(Qe))), E(q, F.text), E(Te, !1), E(P, void 0);
|
|
40924
40922
|
} catch (Re) {
|
|
40925
40923
|
try {
|
|
40926
|
-
E(D, N()(Fs(F.text))), E(Qe, Eo(c(D), c(Qe))), E(
|
|
40924
|
+
E(D, N()(Fs(F.text))), E(Qe, Eo(c(D), c(Qe))), E(q, F.text), E(Te, !0), E(P, void 0);
|
|
40927
40925
|
} catch {
|
|
40928
|
-
E(D, void 0), E(Qe, void 0), E(
|
|
40926
|
+
E(D, void 0), E(Qe, void 0), E(q, F.text), E(Te, !1), E(P, c(q) !== "" ? Fu(c(q), Re.message || String(Re)) : void 0);
|
|
40929
40927
|
}
|
|
40930
40928
|
}
|
|
40931
|
-
else E(D, F.json), E(Qe, Eo(c(D), c(Qe))), E(
|
|
40929
|
+
else E(D, F.json), E(Qe, Eo(c(D), c(Qe))), E(q, void 0), E(Te, !1), E(P, void 0);
|
|
40932
40930
|
Ze(c(D)), E(Ke, void 0), ir(He);
|
|
40933
40931
|
}
|
|
40934
40932
|
})(g());
|
|
@@ -41253,7 +41251,7 @@ function OW(t, e) {
|
|
|
41253
41251
|
_o(Lt, { type: "error", message: "The loaded JSON document is invalid and could not be repaired automatically.", get actions() {
|
|
41254
41252
|
return c(yn);
|
|
41255
41253
|
} }), OM(ce(Lt, 2), { get text() {
|
|
41256
|
-
return c(
|
|
41254
|
+
return c(q);
|
|
41257
41255
|
}, get json() {
|
|
41258
41256
|
return c(D);
|
|
41259
41257
|
}, get indentation() {
|
|
@@ -41263,7 +41261,7 @@ function OW(t, e) {
|
|
|
41263
41261
|
} }), oe(ht, vt);
|
|
41264
41262
|
}, Ue = (ht) => {
|
|
41265
41263
|
hW(ht, { get text() {
|
|
41266
|
-
return c(
|
|
41264
|
+
return c(q);
|
|
41267
41265
|
}, get json() {
|
|
41268
41266
|
return c(D);
|
|
41269
41267
|
}, get readOnly() {
|
|
@@ -41277,7 +41275,7 @@ function OW(t, e) {
|
|
|
41277
41275
|
} });
|
|
41278
41276
|
};
|
|
41279
41277
|
Ee(Re, (ht) => {
|
|
41280
|
-
c(pt) ? ht(st) : c(P) && c(
|
|
41278
|
+
c(pt) ? ht(st) : c(P) && c(q) !== void 0 && c(q) !== "" ? ht(Dt, 1) : ht(Ue, -1);
|
|
41281
41279
|
}), Be("paste", He, L), oe(F, be);
|
|
41282
41280
|
}, Er = (F) => {
|
|
41283
41281
|
oe(F, SW());
|
|
@@ -41359,7 +41357,7 @@ function OW(t, e) {
|
|
|
41359
41357
|
}
|
|
41360
41358
|
function GS(t, e) {
|
|
41361
41359
|
St(e, !1);
|
|
41362
|
-
var n = A(e, "content", 8), r = A(e, "selection", 12), i = A(e, "readOnly", 8), o = A(e, "indentation", 8), s = A(e, "tabSize", 8), a = A(e, "truncateTextSize", 8), l = A(e, "externalMode", 8), u = A(e, "ariaLabel", 8, void 0), d = A(e, "mainMenuBar", 8), f = A(e, "navigationBar", 8), h = A(e, "statusBar", 8), p = A(e, "askToFormat", 8), m = A(e, "escapeControlCharacters", 8), g = A(e, "escapeUnicodeCharacters", 8), v = A(e, "maxDocumentSizeTextMode", 8), y = A(e, "flattenColumns", 8), x = A(e, "parser", 8), w = A(e, "parseMemoizeOne", 8), k = A(e, "validator", 8), b = A(e, "validationParser", 8), j = A(e, "pathParser", 8), O = A(e, "insideModal", 8), N = A(e, "onChange", 8), M = A(e, "onChangeMode", 8), z = A(e, "onSelect", 8), H = A(e, "onRenderValue", 8), V = A(e, "onClassName", 8), G = A(e, "onRenderMenu", 8), Q = A(e, "onRenderContextMenu", 8), pe = A(e, "onError", 8),
|
|
41360
|
+
var n = A(e, "content", 8), r = A(e, "selection", 12), i = A(e, "readOnly", 8), o = A(e, "indentation", 8), s = A(e, "tabSize", 8), a = A(e, "truncateTextSize", 8), l = A(e, "externalMode", 8), u = A(e, "ariaLabel", 8, void 0), d = A(e, "mainMenuBar", 8), f = A(e, "navigationBar", 8), h = A(e, "statusBar", 8), p = A(e, "askToFormat", 8), m = A(e, "escapeControlCharacters", 8), g = A(e, "escapeUnicodeCharacters", 8), v = A(e, "maxDocumentSizeTextMode", 8), y = A(e, "flattenColumns", 8), x = A(e, "parser", 8), w = A(e, "parseMemoizeOne", 8), k = A(e, "validator", 8), b = A(e, "validationParser", 8), j = A(e, "pathParser", 8), O = A(e, "insideModal", 8), N = A(e, "onChange", 8), M = A(e, "onChangeMode", 8), z = A(e, "onSelect", 8), H = A(e, "onRenderValue", 8), V = A(e, "onClassName", 8), G = A(e, "onRenderMenu", 8), Q = A(e, "onRenderContextMenu", 8), pe = A(e, "onError", 8), Se = A(e, "onFocus", 8), ge = A(e, "onBlur", 8), le = A(e, "onSortModal", 8), ne = A(e, "onTransformModal", 8), te = A(e, "onJSONEditorModal", 8), R = Z(), B = Z(), _ = Z(), S = xi("jsoneditor:JSONEditorRoot"), C = Z(MM({ onChange: (ve) => E(C, ve) }).get()), $ = Z(l());
|
|
41363
41361
|
function U(ve) {
|
|
41364
41362
|
if (pS(ve)) {
|
|
41365
41363
|
E($, ve.undo.mode);
|
|
@@ -41374,10 +41372,10 @@ function GS(t, e) {
|
|
|
41374
41372
|
S("handleRedo", { index: qe, item: ve, items: Ie, nextItem: Ze }), Ze && r(Ze.undo.selection), M()(c($));
|
|
41375
41373
|
}
|
|
41376
41374
|
}
|
|
41377
|
-
var de = Z(), Ne = { type: "separator" }, D = Z(),
|
|
41375
|
+
var de = Z(), Ne = { type: "separator" }, D = Z(), q = Z();
|
|
41378
41376
|
function P(ve) {
|
|
41379
41377
|
if (c(R)) return c(R).patch(ve);
|
|
41380
|
-
if (c(
|
|
41378
|
+
if (c(B)) return c(B).patch(ve);
|
|
41381
41379
|
if (c(_)) return c(_).patch(ve);
|
|
41382
41380
|
throw new Error('Method patch is not available in mode "'.concat(c($), '"'));
|
|
41383
41381
|
}
|
|
@@ -41395,14 +41393,14 @@ function GS(t, e) {
|
|
|
41395
41393
|
if (c(_)) c(_).openTransformModal(ve);
|
|
41396
41394
|
else if (c(R)) c(R).openTransformModal(ve);
|
|
41397
41395
|
else {
|
|
41398
|
-
if (!c(
|
|
41399
|
-
c(
|
|
41396
|
+
if (!c(B)) throw new Error('Method transform is not available in mode "'.concat(c($), '"'));
|
|
41397
|
+
c(B).openTransformModal(ve);
|
|
41400
41398
|
}
|
|
41401
41399
|
}
|
|
41402
41400
|
function me() {
|
|
41403
41401
|
if (c(_)) return c(_).validate();
|
|
41404
41402
|
if (c(R)) return c(R).validate();
|
|
41405
|
-
if (c(
|
|
41403
|
+
if (c(B)) return c(B).validate();
|
|
41406
41404
|
throw new Error('Method validate is not available in mode "'.concat(c($), '"'));
|
|
41407
41405
|
}
|
|
41408
41406
|
function re() {
|
|
@@ -41410,16 +41408,16 @@ function GS(t, e) {
|
|
|
41410
41408
|
}
|
|
41411
41409
|
function ke(ve) {
|
|
41412
41410
|
if (c(R)) return c(R).scrollTo(ve);
|
|
41413
|
-
if (c(
|
|
41411
|
+
if (c(B)) return c(B).scrollTo(ve);
|
|
41414
41412
|
throw new Error('Method scrollTo is not available in mode "'.concat(c($), '"'));
|
|
41415
41413
|
}
|
|
41416
41414
|
function tt(ve) {
|
|
41417
41415
|
if (c(R)) return c(R).findElement(ve);
|
|
41418
|
-
if (c(
|
|
41416
|
+
if (c(B)) return c(B).findElement(ve);
|
|
41419
41417
|
throw new Error('Method findElement is not available in mode "'.concat(c($), '"'));
|
|
41420
41418
|
}
|
|
41421
41419
|
function $e() {
|
|
41422
|
-
c(_) ? c(_).focus() : c(R) ? c(R).focus() : c(
|
|
41420
|
+
c(_) ? c(_).focus() : c(R) ? c(R).focus() : c(B) && c(B).focus();
|
|
41423
41421
|
}
|
|
41424
41422
|
function it() {
|
|
41425
41423
|
return Ye.apply(this, arguments);
|
|
@@ -41444,7 +41442,7 @@ function GS(t, e) {
|
|
|
41444
41442
|
return G()(Ie, { mode: c($), modal: O(), readOnly: i() }) || qe;
|
|
41445
41443
|
});
|
|
41446
41444
|
}), he(() => (T(Q()), c($), T(O()), T(i()), T(r())), () => {
|
|
41447
|
-
E(
|
|
41445
|
+
E(q, (ve) => {
|
|
41448
41446
|
var Ie, qe = eb(ve);
|
|
41449
41447
|
return (Ie = Q()(ve, { mode: c($), modal: O(), readOnly: i(), selection: r() })) !== null && Ie !== void 0 ? Ie : !i() && qe;
|
|
41450
41448
|
});
|
|
@@ -41491,7 +41489,7 @@ function GS(t, e) {
|
|
|
41491
41489
|
}, onUndo: U, onRedo: J, get onError() {
|
|
41492
41490
|
return pe();
|
|
41493
41491
|
}, get onFocus() {
|
|
41494
|
-
return
|
|
41492
|
+
return Se();
|
|
41495
41493
|
}, get onBlur() {
|
|
41496
41494
|
return ge();
|
|
41497
41495
|
}, get onRenderMenu() {
|
|
@@ -41541,20 +41539,20 @@ function GS(t, e) {
|
|
|
41541
41539
|
}, onUndo: U, onRedo: J, get onRenderValue() {
|
|
41542
41540
|
return H();
|
|
41543
41541
|
}, get onFocus() {
|
|
41544
|
-
return
|
|
41542
|
+
return Se();
|
|
41545
41543
|
}, get onBlur() {
|
|
41546
41544
|
return ge();
|
|
41547
41545
|
}, get onRenderMenu() {
|
|
41548
41546
|
return c(D);
|
|
41549
41547
|
}, get onRenderContextMenu() {
|
|
41550
|
-
return c(
|
|
41548
|
+
return c(q);
|
|
41551
41549
|
}, get onSortModal() {
|
|
41552
41550
|
return le();
|
|
41553
41551
|
}, get onTransformModal() {
|
|
41554
41552
|
return ne();
|
|
41555
41553
|
}, get onJSONEditorModal() {
|
|
41556
41554
|
return te();
|
|
41557
|
-
}, $$legacy: !0 }), (Ie) => E(
|
|
41555
|
+
}, $$legacy: !0 }), (Ie) => E(B, Ie), () => c(B));
|
|
41558
41556
|
}, xe = (ve) => {
|
|
41559
41557
|
gr(q1(ve, { get externalContent() {
|
|
41560
41558
|
return n();
|
|
@@ -41601,13 +41599,13 @@ function GS(t, e) {
|
|
|
41601
41599
|
}, get onClassName() {
|
|
41602
41600
|
return V();
|
|
41603
41601
|
}, get onFocus() {
|
|
41604
|
-
return
|
|
41602
|
+
return Se();
|
|
41605
41603
|
}, get onBlur() {
|
|
41606
41604
|
return ge();
|
|
41607
41605
|
}, get onRenderMenu() {
|
|
41608
41606
|
return c(D);
|
|
41609
41607
|
}, get onRenderContextMenu() {
|
|
41610
|
-
return c(
|
|
41608
|
+
return c(q);
|
|
41611
41609
|
}, get onSortModal() {
|
|
41612
41610
|
return le();
|
|
41613
41611
|
}, get onTransformModal() {
|
|
@@ -41874,7 +41872,7 @@ function LW(t, e) {
|
|
|
41874
41872
|
St(e, !1);
|
|
41875
41873
|
var n = Z(void 0, !0), r = xi("jsoneditor:JSONEditor"), i = { text: "" }, o = void 0, s = !1, a = Xr.tree, l = "JSON editor", u = !0, d = !0, f = !0, h = !0, p = !1, m = !1, g = 10485760, v = !0, y = JSON, x = void 0, w = JSON, k = { parse: mF, stringify: fo }, b = [Iq], j = b[0].id, O = Do, N = void 0, M = void 0, z = pF, H = Do, V = Do, G = Do, Q = Do, pe = (_e) => {
|
|
41876
41874
|
console.error(_e), alert(_e.toString());
|
|
41877
|
-
},
|
|
41875
|
+
}, Se = Do, ge = Do, le = A(e, "content", 13, i), ne = A(e, "selection", 13, o), te = A(e, "readOnly", 13, s), R = A(e, "indentation", 13, 2), B = A(e, "tabSize", 13, 4), _ = A(e, "truncateTextSize", 13, 1e3), S = A(e, "mode", 13, a), C = A(e, "ariaLabel", 13, l), $ = A(e, "mainMenuBar", 13, u), U = A(e, "navigationBar", 13, d), J = A(e, "statusBar", 13, f), de = A(e, "askToFormat", 13, h), Ne = A(e, "escapeControlCharacters", 13, p), D = A(e, "escapeUnicodeCharacters", 13, m), q = A(e, "maxDocumentSizeTextMode", 13, g), P = A(e, "flattenColumns", 13, v), Y = A(e, "parser", 13, y), ie = A(e, "validator", 13, x), Ae = A(e, "validationParser", 13, w), me = A(e, "pathParser", 13, k), re = A(e, "queryLanguages", 13, b), ke = A(e, "queryLanguageId", 13, j), tt = A(e, "onChangeQueryLanguage", 13, O), $e = A(e, "onChange", 13, N), it = A(e, "onSelect", 13, M), Ye = A(e, "onRenderValue", 13, z), Le = A(e, "onClassName", 13, H), pt = A(e, "onRenderMenu", 13, V), I = A(e, "onRenderContextMenu", 13, G), K = A(e, "onChangeMode", 13, Q), X = A(e, "onError", 13, pe), ue = A(e, "onFocus", 13, Se), xe = A(e, "onBlur", 13, ge), ve = Z(ou(), !0), Ie = Z(!1, !0), qe = Z(void 0, !0), Ze = Z(void 0, !0), Qe = Z(void 0, !0), je = Z(void 0, !0), Ke = Z(Y(), !0);
|
|
41878
41876
|
function Te() {
|
|
41879
41877
|
return le();
|
|
41880
41878
|
}
|
|
@@ -41953,7 +41951,7 @@ function LW(t, e) {
|
|
|
41953
41951
|
R((sr = _e[ft]) !== null && sr !== void 0 ? sr : 2);
|
|
41954
41952
|
break;
|
|
41955
41953
|
case "tabSize":
|
|
41956
|
-
|
|
41954
|
+
B((ui = _e[ft]) !== null && ui !== void 0 ? ui : 4);
|
|
41957
41955
|
break;
|
|
41958
41956
|
case "truncateTextSize":
|
|
41959
41957
|
_((yr = _e[ft]) !== null && yr !== void 0 ? yr : 1e3);
|
|
@@ -41983,7 +41981,7 @@ function LW(t, e) {
|
|
|
41983
41981
|
D((Yt = _e[ft]) !== null && Yt !== void 0 ? Yt : m);
|
|
41984
41982
|
break;
|
|
41985
41983
|
case "maxDocumentSizeTextMode":
|
|
41986
|
-
|
|
41984
|
+
q((Kn = _e[ft]) !== null && Kn !== void 0 ? Kn : g);
|
|
41987
41985
|
break;
|
|
41988
41986
|
case "flattenColumns":
|
|
41989
41987
|
P((sn = _e[ft]) !== null && sn !== void 0 ? sn : v);
|
|
@@ -42034,7 +42032,7 @@ function LW(t, e) {
|
|
|
42034
42032
|
X((Wn = _e[ft]) !== null && Wn !== void 0 ? Wn : pe);
|
|
42035
42033
|
break;
|
|
42036
42034
|
case "onFocus":
|
|
42037
|
-
ue((In = _e[ft]) !== null && In !== void 0 ? In :
|
|
42035
|
+
ue((In = _e[ft]) !== null && In !== void 0 ? In : Se);
|
|
42038
42036
|
break;
|
|
42039
42037
|
case "onBlur":
|
|
42040
42038
|
xe((dr = _e[ft]) !== null && dr !== void 0 ? dr : ge);
|
|
@@ -42087,7 +42085,7 @@ function LW(t, e) {
|
|
|
42087
42085
|
}
|
|
42088
42086
|
function Sr(_e) {
|
|
42089
42087
|
var Zt = _e.content, Cr = _e.path, Qt = _e.onPatch, sr = _e.onClose;
|
|
42090
|
-
r("onJSONEditorModal", { content: Zt, path: Cr }), E(Ze, { content: Zt, path: Cr, onPatch: Qt, readOnly: te(), indentation: R(), tabSize:
|
|
42088
|
+
r("onJSONEditorModal", { content: Zt, path: Cr }), E(Ze, { content: Zt, path: Cr, onPatch: Qt, readOnly: te(), indentation: R(), tabSize: B(), truncateTextSize: _(), mainMenuBar: $(), navigationBar: U(), statusBar: J(), askToFormat: de(), escapeControlCharacters: Ne(), escapeUnicodeCharacters: D(), maxDocumentSizeTextMode: q(), flattenColumns: P(), parser: Y(), validator: void 0, validationParser: Ae(), pathParser: me(), onRenderValue: Ye(), onClassName: Le(), onRenderMenu: pt(), onRenderContextMenu: I(), onSortModal: or, onTransformModal: Yn, onClose: sr });
|
|
42091
42089
|
}
|
|
42092
42090
|
function wi(_e) {
|
|
42093
42091
|
_e.stopPropagation();
|
|
@@ -42125,7 +42123,7 @@ function LW(t, e) {
|
|
|
42125
42123
|
}, get indentation() {
|
|
42126
42124
|
return R();
|
|
42127
42125
|
}, get tabSize() {
|
|
42128
|
-
return
|
|
42126
|
+
return B();
|
|
42129
42127
|
}, get truncateTextSize() {
|
|
42130
42128
|
return _();
|
|
42131
42129
|
}, get ariaLabel() {
|
|
@@ -42139,7 +42137,7 @@ function LW(t, e) {
|
|
|
42139
42137
|
}, get navigationBar() {
|
|
42140
42138
|
return U();
|
|
42141
42139
|
}, get maxDocumentSizeTextMode() {
|
|
42142
|
-
return
|
|
42140
|
+
return q();
|
|
42143
42141
|
}, get escapeControlCharacters() {
|
|
42144
42142
|
return Ne();
|
|
42145
42143
|
}, get escapeUnicodeCharacters() {
|