vite-plugin-norg 1.2.10 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/napi/index.js +52 -52
- package/dist/napi/index.linux-x64-gnu.node +0 -0
- package/dist/plugin/index.d.ts +9 -0
- package/dist/plugin/index.js +363 -369
- package/package.json +14 -9
- package/dist/plugin/html.d.ts +0 -5
- package/dist/plugin/react.d.ts +0 -5
- package/dist/plugin/svelte.d.ts +0 -6
package/dist/plugin/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createFilter as Er } from "vite";
|
|
2
2
|
import { parseNorg as Gt } from "../napi/index.js";
|
|
3
|
-
function
|
|
3
|
+
function S(t, e, n) {
|
|
4
4
|
function r(a, l) {
|
|
5
5
|
if (a._zod || Object.defineProperty(a, "_zod", {
|
|
6
6
|
value: {
|
|
@@ -143,7 +143,7 @@ function Z(t, e, n) {
|
|
|
143
143
|
const r = new t._zod.constr(e ?? t._zod.def);
|
|
144
144
|
return (!e || n?.parent) && (r._zod.parent = t), r;
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function D(t) {
|
|
147
147
|
const e = t;
|
|
148
148
|
if (!e)
|
|
149
149
|
return {};
|
|
@@ -329,7 +329,7 @@ const In = (t, e) => {
|
|
|
329
329
|
value: () => t.message,
|
|
330
330
|
enumerable: !1
|
|
331
331
|
});
|
|
332
|
-
}, zn =
|
|
332
|
+
}, zn = S("$ZodError", In), $n = S("$ZodError", In, { Parent: Error });
|
|
333
333
|
function Fr(t, e = (n) => n.message) {
|
|
334
334
|
const n = {}, r = [];
|
|
335
335
|
for (const o of t.issues)
|
|
@@ -401,10 +401,10 @@ const Pt = (t) => (e, n, r, o) => {
|
|
|
401
401
|
}, Xr = (t) => (e, n, r) => He(t)(e, n, r), Qr = (t) => async (e, n, r) => {
|
|
402
402
|
const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
403
403
|
return We(t)(e, n, o);
|
|
404
|
-
}, eo = (t) => async (e, n, r) => We(t)(e, n, r), le = /* @__PURE__ */
|
|
404
|
+
}, eo = (t) => async (e, n, r) => We(t)(e, n, r), le = /* @__PURE__ */ S("$ZodCheck", (t, e) => {
|
|
405
405
|
var n;
|
|
406
406
|
t._zod ?? (t._zod = {}), t._zod.def = e, (n = t._zod).onattach ?? (n.onattach = []);
|
|
407
|
-
}), to = /* @__PURE__ */
|
|
407
|
+
}), to = /* @__PURE__ */ S("$ZodCheckMaxLength", (t, e) => {
|
|
408
408
|
var n;
|
|
409
409
|
le.init(t, e), (n = t._zod.def).when ?? (n.when = (r) => {
|
|
410
410
|
const o = r.value;
|
|
@@ -427,7 +427,7 @@ const Pt = (t) => (e, n, r, o) => {
|
|
|
427
427
|
continue: !e.abort
|
|
428
428
|
});
|
|
429
429
|
};
|
|
430
|
-
}), no = /* @__PURE__ */
|
|
430
|
+
}), no = /* @__PURE__ */ S("$ZodCheckMinLength", (t, e) => {
|
|
431
431
|
var n;
|
|
432
432
|
le.init(t, e), (n = t._zod.def).when ?? (n.when = (r) => {
|
|
433
433
|
const o = r.value;
|
|
@@ -450,7 +450,7 @@ const Pt = (t) => (e, n, r, o) => {
|
|
|
450
450
|
continue: !e.abort
|
|
451
451
|
});
|
|
452
452
|
};
|
|
453
|
-
}), ro = /* @__PURE__ */
|
|
453
|
+
}), ro = /* @__PURE__ */ S("$ZodCheckLengthEquals", (t, e) => {
|
|
454
454
|
var n;
|
|
455
455
|
le.init(t, e), (n = t._zod.def).when ?? (n.when = (r) => {
|
|
456
456
|
const o = r.value;
|
|
@@ -473,7 +473,7 @@ const Pt = (t) => (e, n, r, o) => {
|
|
|
473
473
|
continue: !e.abort
|
|
474
474
|
});
|
|
475
475
|
};
|
|
476
|
-
}), oo = /* @__PURE__ */
|
|
476
|
+
}), oo = /* @__PURE__ */ S("$ZodCheckOverwrite", (t, e) => {
|
|
477
477
|
le.init(t, e), t._zod.check = (n) => {
|
|
478
478
|
n.value = e.tx(n.value);
|
|
479
479
|
};
|
|
@@ -505,7 +505,7 @@ const so = {
|
|
|
505
505
|
major: 4,
|
|
506
506
|
minor: 1,
|
|
507
507
|
patch: 13
|
|
508
|
-
}, E = /* @__PURE__ */
|
|
508
|
+
}, E = /* @__PURE__ */ S("$ZodType", (t, e) => {
|
|
509
509
|
var n;
|
|
510
510
|
t ?? (t = {}), t._zod.def = e, t._zod.bag = t._zod.bag || {}, t._zod.version = so;
|
|
511
511
|
const r = [...t._zod.def.checks ?? []];
|
|
@@ -579,11 +579,11 @@ const so = {
|
|
|
579
579
|
vendor: "zod",
|
|
580
580
|
version: 1
|
|
581
581
|
};
|
|
582
|
-
}), ao = /* @__PURE__ */
|
|
582
|
+
}), ao = /* @__PURE__ */ S("$ZodAny", (t, e) => {
|
|
583
583
|
E.init(t, e), t._zod.parse = (n) => n;
|
|
584
|
-
}), lo = /* @__PURE__ */
|
|
584
|
+
}), lo = /* @__PURE__ */ S("$ZodUnknown", (t, e) => {
|
|
585
585
|
E.init(t, e), t._zod.parse = (n) => n;
|
|
586
|
-
}), co = /* @__PURE__ */
|
|
586
|
+
}), co = /* @__PURE__ */ S("$ZodNever", (t, e) => {
|
|
587
587
|
E.init(t, e), t._zod.parse = (n, r) => (n.issues.push({
|
|
588
588
|
expected: "never",
|
|
589
589
|
code: "invalid_type",
|
|
@@ -594,7 +594,7 @@ const so = {
|
|
|
594
594
|
function Ht(t, e, n) {
|
|
595
595
|
t.issues.length && e.issues.push(...On(n, t.issues)), e.value[n] = t.value;
|
|
596
596
|
}
|
|
597
|
-
const uo = /* @__PURE__ */
|
|
597
|
+
const uo = /* @__PURE__ */ S("$ZodArray", (t, e) => {
|
|
598
598
|
E.init(t, e), t._zod.parse = (n, r) => {
|
|
599
599
|
const o = n.value;
|
|
600
600
|
if (!Array.isArray(o))
|
|
@@ -652,7 +652,7 @@ function jn(t, e, n, r, o, i) {
|
|
|
652
652
|
inst: i
|
|
653
653
|
}), t.length ? Promise.all(t).then(() => n) : n;
|
|
654
654
|
}
|
|
655
|
-
const po = /* @__PURE__ */
|
|
655
|
+
const po = /* @__PURE__ */ S("$ZodObject", (t, e) => {
|
|
656
656
|
if (E.init(t, e), !Object.getOwnPropertyDescriptor(e, "shape")?.get) {
|
|
657
657
|
const a = e.shape;
|
|
658
658
|
Object.defineProperty(e, "shape", {
|
|
@@ -693,47 +693,47 @@ const po = /* @__PURE__ */ v("$ZodObject", (t, e) => {
|
|
|
693
693
|
const u = [], p = s.shape;
|
|
694
694
|
for (const h of s.keys) {
|
|
695
695
|
const m = p[h]._zod.run({ value: c[h], issues: [] }, l);
|
|
696
|
-
m instanceof Promise ? u.push(m.then((
|
|
696
|
+
m instanceof Promise ? u.push(m.then((_) => xe(_, a, h, c))) : xe(m, a, h, c);
|
|
697
697
|
}
|
|
698
698
|
return i ? jn(u, c, a, l, r.value, t) : u.length ? Promise.all(u).then(() => a) : a;
|
|
699
699
|
};
|
|
700
|
-
}), ho = /* @__PURE__ */
|
|
700
|
+
}), ho = /* @__PURE__ */ S("$ZodObjectJIT", (t, e) => {
|
|
701
701
|
po.init(t, e);
|
|
702
702
|
const n = t._zod.parse, r = St(() => Mn(e)), o = (h) => {
|
|
703
|
-
const d = new io(["shape", "payload", "ctx"]), m = r.value,
|
|
704
|
-
const
|
|
705
|
-
return `shape[${
|
|
703
|
+
const d = new io(["shape", "payload", "ctx"]), m = r.value, _ = (f) => {
|
|
704
|
+
const v = Ft(f);
|
|
705
|
+
return `shape[${v}]._zod.run({ value: input[${v}], issues: [] }, ctx)`;
|
|
706
706
|
};
|
|
707
707
|
d.write("const input = payload.value;");
|
|
708
708
|
const w = /* @__PURE__ */ Object.create(null);
|
|
709
709
|
let y = 0;
|
|
710
|
-
for (const
|
|
711
|
-
w[
|
|
710
|
+
for (const f of m.keys)
|
|
711
|
+
w[f] = `key_${y++}`;
|
|
712
712
|
d.write("const newResult = {};");
|
|
713
|
-
for (const
|
|
714
|
-
const
|
|
715
|
-
d.write(`const ${
|
|
716
|
-
if (${
|
|
717
|
-
payload.issues = payload.issues.concat(${
|
|
713
|
+
for (const f of m.keys) {
|
|
714
|
+
const v = w[f], C = Ft(f);
|
|
715
|
+
d.write(`const ${v} = ${_(f)};`), d.write(`
|
|
716
|
+
if (${v}.issues.length) {
|
|
717
|
+
payload.issues = payload.issues.concat(${v}.issues.map(iss => ({
|
|
718
718
|
...iss,
|
|
719
719
|
path: iss.path ? [${C}, ...iss.path] : [${C}]
|
|
720
720
|
})));
|
|
721
721
|
}
|
|
722
722
|
|
|
723
723
|
|
|
724
|
-
if (${
|
|
724
|
+
if (${v}.value === undefined) {
|
|
725
725
|
if (${C} in input) {
|
|
726
726
|
newResult[${C}] = undefined;
|
|
727
727
|
}
|
|
728
728
|
} else {
|
|
729
|
-
newResult[${C}] = ${
|
|
729
|
+
newResult[${C}] = ${v}.value;
|
|
730
730
|
}
|
|
731
731
|
|
|
732
732
|
`);
|
|
733
733
|
}
|
|
734
734
|
d.write("payload.value = newResult;"), d.write("return payload;");
|
|
735
|
-
const
|
|
736
|
-
return (
|
|
735
|
+
const b = d.compile();
|
|
736
|
+
return (f, v) => b(h, f, v);
|
|
737
737
|
};
|
|
738
738
|
let i;
|
|
739
739
|
const s = Le, a = !En.jitless, c = a && xr.value, u = e.catchall;
|
|
@@ -761,7 +761,7 @@ function Wt(t, e, n, r) {
|
|
|
761
761
|
errors: t.map((i) => i.issues.map((s) => Y(s, r, J())))
|
|
762
762
|
}), e);
|
|
763
763
|
}
|
|
764
|
-
const mo = /* @__PURE__ */
|
|
764
|
+
const mo = /* @__PURE__ */ S("$ZodUnion", (t, e) => {
|
|
765
765
|
E.init(t, e), P(t._zod, "optin", () => e.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), P(t._zod, "optout", () => e.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), P(t._zod, "values", () => {
|
|
766
766
|
if (e.options.every((o) => o._zod.values))
|
|
767
767
|
return new Set(e.options.flatMap((o) => Array.from(o._zod.values)));
|
|
@@ -792,7 +792,7 @@ const mo = /* @__PURE__ */ v("$ZodUnion", (t, e) => {
|
|
|
792
792
|
}
|
|
793
793
|
return s ? Promise.all(a).then((l) => Wt(l, o, t, i)) : Wt(a, o, t, i);
|
|
794
794
|
};
|
|
795
|
-
}), fo = /* @__PURE__ */
|
|
795
|
+
}), fo = /* @__PURE__ */ S("$ZodIntersection", (t, e) => {
|
|
796
796
|
E.init(t, e), t._zod.parse = (n, r) => {
|
|
797
797
|
const o = n.value, i = e.left._zod.run({ value: o, issues: [] }, r), s = e.right._zod.run({ value: o, issues: [] }, r);
|
|
798
798
|
return i instanceof Promise || s instanceof Promise ? Promise.all([i, s]).then(([l, c]) => Zt(n, l, c)) : Zt(n, i, s);
|
|
@@ -841,7 +841,7 @@ function Zt(t, e, n) {
|
|
|
841
841
|
throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);
|
|
842
842
|
return t.value = r.data, t;
|
|
843
843
|
}
|
|
844
|
-
const go = /* @__PURE__ */
|
|
844
|
+
const go = /* @__PURE__ */ S("$ZodEnum", (t, e) => {
|
|
845
845
|
E.init(t, e);
|
|
846
846
|
const n = Lr(e.entries), r = new Set(n);
|
|
847
847
|
t._zod.values = r, t._zod.pattern = new RegExp(`^(${n.filter((o) => Or.has(typeof o)).map((o) => typeof o == "string" ? Ir(o) : o.toString()).join("|")})$`), t._zod.parse = (o, i) => {
|
|
@@ -853,7 +853,7 @@ const go = /* @__PURE__ */ v("$ZodEnum", (t, e) => {
|
|
|
853
853
|
inst: t
|
|
854
854
|
}), o;
|
|
855
855
|
};
|
|
856
|
-
}), yo = /* @__PURE__ */
|
|
856
|
+
}), yo = /* @__PURE__ */ S("$ZodTransform", (t, e) => {
|
|
857
857
|
E.init(t, e), t._zod.parse = (n, r) => {
|
|
858
858
|
if (r.direction === "backward")
|
|
859
859
|
throw new Nn(t.constructor.name);
|
|
@@ -868,7 +868,7 @@ const go = /* @__PURE__ */ v("$ZodEnum", (t, e) => {
|
|
|
868
868
|
function qt(t, e) {
|
|
869
869
|
return t.issues.length && e === void 0 ? { issues: [], value: void 0 } : t;
|
|
870
870
|
}
|
|
871
|
-
const _o = /* @__PURE__ */
|
|
871
|
+
const _o = /* @__PURE__ */ S("$ZodOptional", (t, e) => {
|
|
872
872
|
E.init(t, e), t._zod.optin = "optional", t._zod.optout = "optional", P(t._zod, "values", () => e.innerType._zod.values ? /* @__PURE__ */ new Set([...e.innerType._zod.values, void 0]) : void 0), P(t._zod, "pattern", () => {
|
|
873
873
|
const n = e.innerType._zod.pattern;
|
|
874
874
|
return n ? new RegExp(`^(${Ct(n.source)})?$`) : void 0;
|
|
@@ -879,12 +879,12 @@ const _o = /* @__PURE__ */ v("$ZodOptional", (t, e) => {
|
|
|
879
879
|
}
|
|
880
880
|
return n.value === void 0 ? n : e.innerType._zod.run(n, r);
|
|
881
881
|
};
|
|
882
|
-
}), bo = /* @__PURE__ */
|
|
882
|
+
}), bo = /* @__PURE__ */ S("$ZodNullable", (t, e) => {
|
|
883
883
|
E.init(t, e), P(t._zod, "optin", () => e.innerType._zod.optin), P(t._zod, "optout", () => e.innerType._zod.optout), P(t._zod, "pattern", () => {
|
|
884
884
|
const n = e.innerType._zod.pattern;
|
|
885
885
|
return n ? new RegExp(`^(${Ct(n.source)}|null)$`) : void 0;
|
|
886
886
|
}), P(t._zod, "values", () => e.innerType._zod.values ? /* @__PURE__ */ new Set([...e.innerType._zod.values, null]) : void 0), t._zod.parse = (n, r) => n.value === null ? n : e.innerType._zod.run(n, r);
|
|
887
|
-
}), wo = /* @__PURE__ */
|
|
887
|
+
}), wo = /* @__PURE__ */ S("$ZodDefault", (t, e) => {
|
|
888
888
|
E.init(t, e), t._zod.optin = "optional", P(t._zod, "values", () => e.innerType._zod.values), t._zod.parse = (n, r) => {
|
|
889
889
|
if (r.direction === "backward")
|
|
890
890
|
return e.innerType._zod.run(n, r);
|
|
@@ -897,9 +897,9 @@ const _o = /* @__PURE__ */ v("$ZodOptional", (t, e) => {
|
|
|
897
897
|
function Vt(t, e) {
|
|
898
898
|
return t.value === void 0 && (t.value = e.defaultValue), t;
|
|
899
899
|
}
|
|
900
|
-
const vo = /* @__PURE__ */
|
|
900
|
+
const vo = /* @__PURE__ */ S("$ZodPrefault", (t, e) => {
|
|
901
901
|
E.init(t, e), t._zod.optin = "optional", P(t._zod, "values", () => e.innerType._zod.values), t._zod.parse = (n, r) => (r.direction === "backward" || n.value === void 0 && (n.value = e.defaultValue), e.innerType._zod.run(n, r));
|
|
902
|
-
}), So = /* @__PURE__ */
|
|
902
|
+
}), So = /* @__PURE__ */ S("$ZodNonOptional", (t, e) => {
|
|
903
903
|
E.init(t, e), P(t._zod, "values", () => {
|
|
904
904
|
const n = e.innerType._zod.values;
|
|
905
905
|
return n ? new Set([...n].filter((r) => r !== void 0)) : void 0;
|
|
@@ -916,7 +916,7 @@ function Kt(t, e) {
|
|
|
916
916
|
inst: e
|
|
917
917
|
}), t;
|
|
918
918
|
}
|
|
919
|
-
const ko = /* @__PURE__ */
|
|
919
|
+
const ko = /* @__PURE__ */ S("$ZodCatch", (t, e) => {
|
|
920
920
|
E.init(t, e), P(t._zod, "optin", () => e.innerType._zod.optin), P(t._zod, "optout", () => e.innerType._zod.optout), P(t._zod, "values", () => e.innerType._zod.values), t._zod.parse = (n, r) => {
|
|
921
921
|
if (r.direction === "backward")
|
|
922
922
|
return e.innerType._zod.run(n, r);
|
|
@@ -935,7 +935,7 @@ const ko = /* @__PURE__ */ v("$ZodCatch", (t, e) => {
|
|
|
935
935
|
input: n.value
|
|
936
936
|
}), n.issues = []), n);
|
|
937
937
|
};
|
|
938
|
-
}), Co = /* @__PURE__ */
|
|
938
|
+
}), Co = /* @__PURE__ */ S("$ZodPipe", (t, e) => {
|
|
939
939
|
E.init(t, e), P(t._zod, "values", () => e.in._zod.values), P(t._zod, "optin", () => e.in._zod.optin), P(t._zod, "optout", () => e.out._zod.optout), P(t._zod, "propValues", () => e.in._zod.propValues), t._zod.parse = (n, r) => {
|
|
940
940
|
if (r.direction === "backward") {
|
|
941
941
|
const i = e.out._zod.run(n, r);
|
|
@@ -948,7 +948,7 @@ const ko = /* @__PURE__ */ v("$ZodCatch", (t, e) => {
|
|
|
948
948
|
function ke(t, e, n) {
|
|
949
949
|
return t.issues.length ? (t.aborted = !0, t) : e._zod.run({ value: t.value, issues: t.issues }, n);
|
|
950
950
|
}
|
|
951
|
-
const To = /* @__PURE__ */
|
|
951
|
+
const To = /* @__PURE__ */ S("$ZodReadonly", (t, e) => {
|
|
952
952
|
E.init(t, e), P(t._zod, "propValues", () => e.innerType._zod.propValues), P(t._zod, "values", () => e.innerType._zod.values), P(t._zod, "optin", () => e.innerType?._zod?.optin), P(t._zod, "optout", () => e.innerType?._zod?.optout), t._zod.parse = (n, r) => {
|
|
953
953
|
if (r.direction === "backward")
|
|
954
954
|
return e.innerType._zod.run(n, r);
|
|
@@ -959,7 +959,7 @@ const To = /* @__PURE__ */ v("$ZodReadonly", (t, e) => {
|
|
|
959
959
|
function Jt(t) {
|
|
960
960
|
return t.value = Object.freeze(t.value), t;
|
|
961
961
|
}
|
|
962
|
-
const Po = /* @__PURE__ */
|
|
962
|
+
const Po = /* @__PURE__ */ S("$ZodCustom", (t, e) => {
|
|
963
963
|
le.init(t, e), E.init(t, e), t._zod.parse = (n, r) => n, t._zod.check = (n) => {
|
|
964
964
|
const r = n.value, o = e.fn(r);
|
|
965
965
|
if (o instanceof Promise)
|
|
@@ -1035,27 +1035,27 @@ function Eo(t) {
|
|
|
1035
1035
|
function Lo(t, e) {
|
|
1036
1036
|
return new t({
|
|
1037
1037
|
type: "never",
|
|
1038
|
-
...
|
|
1038
|
+
...D(e)
|
|
1039
1039
|
});
|
|
1040
1040
|
}
|
|
1041
1041
|
function xo(t, e) {
|
|
1042
1042
|
return new to({
|
|
1043
1043
|
check: "max_length",
|
|
1044
|
-
...
|
|
1044
|
+
...D(e),
|
|
1045
1045
|
maximum: t
|
|
1046
1046
|
});
|
|
1047
1047
|
}
|
|
1048
1048
|
function Qt(t, e) {
|
|
1049
1049
|
return new no({
|
|
1050
1050
|
check: "min_length",
|
|
1051
|
-
...
|
|
1051
|
+
...D(e),
|
|
1052
1052
|
minimum: t
|
|
1053
1053
|
});
|
|
1054
1054
|
}
|
|
1055
1055
|
function Oo(t, e) {
|
|
1056
1056
|
return new ro({
|
|
1057
1057
|
check: "length_equals",
|
|
1058
|
-
...
|
|
1058
|
+
...D(e),
|
|
1059
1059
|
length: t
|
|
1060
1060
|
});
|
|
1061
1061
|
}
|
|
@@ -1072,7 +1072,7 @@ function zo(t, e, n) {
|
|
|
1072
1072
|
// get element() {
|
|
1073
1073
|
// return element;
|
|
1074
1074
|
// },
|
|
1075
|
-
...
|
|
1075
|
+
...D(n)
|
|
1076
1076
|
});
|
|
1077
1077
|
}
|
|
1078
1078
|
function $o(t, e, n) {
|
|
@@ -1080,7 +1080,7 @@ function $o(t, e, n) {
|
|
|
1080
1080
|
type: "custom",
|
|
1081
1081
|
check: "custom",
|
|
1082
1082
|
fn: e,
|
|
1083
|
-
...
|
|
1083
|
+
...D(n)
|
|
1084
1084
|
});
|
|
1085
1085
|
}
|
|
1086
1086
|
function Mo(t) {
|
|
@@ -1097,7 +1097,7 @@ function Mo(t) {
|
|
|
1097
1097
|
function jo(t, e) {
|
|
1098
1098
|
const n = new le({
|
|
1099
1099
|
check: "custom",
|
|
1100
|
-
...
|
|
1100
|
+
...D(e)
|
|
1101
1101
|
});
|
|
1102
1102
|
return n._zod.check = t, n;
|
|
1103
1103
|
}
|
|
@@ -1130,9 +1130,9 @@ const Do = (t, e) => {
|
|
|
1130
1130
|
// enumerable: false,
|
|
1131
1131
|
}
|
|
1132
1132
|
});
|
|
1133
|
-
},
|
|
1133
|
+
}, G = S("ZodError", Do, {
|
|
1134
1134
|
Parent: Error
|
|
1135
|
-
}), Bo = /* @__PURE__ */ Pt(
|
|
1135
|
+
}), Bo = /* @__PURE__ */ Pt(G), Go = /* @__PURE__ */ Rt(G), Uo = /* @__PURE__ */ He(G), Fo = /* @__PURE__ */ We(G), Ho = /* @__PURE__ */ qr(G), Wo = /* @__PURE__ */ Vr(G), Zo = /* @__PURE__ */ Kr(G), qo = /* @__PURE__ */ Jr(G), Vo = /* @__PURE__ */ Yr(G), Ko = /* @__PURE__ */ Xr(G), Jo = /* @__PURE__ */ Qr(G), Yo = /* @__PURE__ */ eo(G), O = /* @__PURE__ */ S("ZodType", (t, e) => (E.init(t, e), t.def = e, t.type = e.type, Object.defineProperty(t, "_def", { value: e }), t.check = (...n) => t.clone(Q(e, {
|
|
1136
1136
|
checks: [
|
|
1137
1137
|
...e.checks ?? [],
|
|
1138
1138
|
...n.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
|
|
@@ -1150,52 +1150,52 @@ const Do = (t, e) => {
|
|
|
1150
1150
|
return Ce.get(t);
|
|
1151
1151
|
const r = t.clone();
|
|
1152
1152
|
return Ce.add(r, n[0]), r;
|
|
1153
|
-
}, t.isOptional = () => t.safeParse(void 0).success, t.isNullable = () => t.safeParse(null).success, t)), Xo = /* @__PURE__ */
|
|
1153
|
+
}, t.isOptional = () => t.safeParse(void 0).success, t.isNullable = () => t.safeParse(null).success, t)), Xo = /* @__PURE__ */ S("ZodAny", (t, e) => {
|
|
1154
1154
|
ao.init(t, e), O.init(t, e);
|
|
1155
1155
|
});
|
|
1156
1156
|
function Xe() {
|
|
1157
1157
|
return No(Xo);
|
|
1158
1158
|
}
|
|
1159
|
-
const Qo = /* @__PURE__ */
|
|
1159
|
+
const Qo = /* @__PURE__ */ S("ZodUnknown", (t, e) => {
|
|
1160
1160
|
lo.init(t, e), O.init(t, e);
|
|
1161
1161
|
});
|
|
1162
1162
|
function en() {
|
|
1163
1163
|
return Eo(Qo);
|
|
1164
1164
|
}
|
|
1165
|
-
const ei = /* @__PURE__ */
|
|
1165
|
+
const ei = /* @__PURE__ */ S("ZodNever", (t, e) => {
|
|
1166
1166
|
co.init(t, e), O.init(t, e);
|
|
1167
1167
|
});
|
|
1168
1168
|
function ti(t) {
|
|
1169
1169
|
return Lo(ei, t);
|
|
1170
1170
|
}
|
|
1171
|
-
const ni = /* @__PURE__ */
|
|
1171
|
+
const ni = /* @__PURE__ */ S("ZodArray", (t, e) => {
|
|
1172
1172
|
uo.init(t, e), O.init(t, e), t.element = e.element, t.min = (n, r) => t.check(Qt(n, r)), t.nonempty = (n) => t.check(Qt(1, n)), t.max = (n, r) => t.check(xo(n, r)), t.length = (n, r) => t.check(Oo(n, r)), t.unwrap = () => t.element;
|
|
1173
1173
|
});
|
|
1174
1174
|
function ri(t, e) {
|
|
1175
1175
|
return zo(ni, t, e);
|
|
1176
1176
|
}
|
|
1177
|
-
const oi = /* @__PURE__ */
|
|
1177
|
+
const oi = /* @__PURE__ */ S("ZodObject", (t, e) => {
|
|
1178
1178
|
ho.init(t, e), O.init(t, e), P(t, "shape", () => e.shape), t.keyof = () => Dn(Object.keys(t._zod.def.shape)), t.catchall = (n) => t.clone({ ...t._zod.def, catchall: n }), t.passthrough = () => t.clone({ ...t._zod.def, catchall: en() }), t.loose = () => t.clone({ ...t._zod.def, catchall: en() }), t.strict = () => t.clone({ ...t._zod.def, catchall: ti() }), t.strip = () => t.clone({ ...t._zod.def, catchall: void 0 }), t.extend = (n) => jr(t, n), t.safeExtend = (n) => Dr(t, n), t.merge = (n) => Br(t, n), t.pick = (n) => $r(t, n), t.omit = (n) => Mr(t, n), t.partial = (...n) => Gr(Bn, t, n[0]), t.required = (...n) => Ur(Gn, t, n[0]);
|
|
1179
1179
|
});
|
|
1180
1180
|
function ii(t, e) {
|
|
1181
1181
|
const n = {
|
|
1182
1182
|
type: "object",
|
|
1183
1183
|
shape: t ?? {},
|
|
1184
|
-
...
|
|
1184
|
+
...D(e)
|
|
1185
1185
|
};
|
|
1186
1186
|
return new oi(n);
|
|
1187
1187
|
}
|
|
1188
|
-
const si = /* @__PURE__ */
|
|
1188
|
+
const si = /* @__PURE__ */ S("ZodUnion", (t, e) => {
|
|
1189
1189
|
mo.init(t, e), O.init(t, e), t.options = e.options;
|
|
1190
1190
|
});
|
|
1191
1191
|
function ai(t, e) {
|
|
1192
1192
|
return new si({
|
|
1193
1193
|
type: "union",
|
|
1194
1194
|
options: t,
|
|
1195
|
-
...
|
|
1195
|
+
...D(e)
|
|
1196
1196
|
});
|
|
1197
1197
|
}
|
|
1198
|
-
const li = /* @__PURE__ */
|
|
1198
|
+
const li = /* @__PURE__ */ S("ZodIntersection", (t, e) => {
|
|
1199
1199
|
fo.init(t, e), O.init(t, e);
|
|
1200
1200
|
});
|
|
1201
1201
|
function ci(t, e) {
|
|
@@ -1205,7 +1205,7 @@ function ci(t, e) {
|
|
|
1205
1205
|
right: e
|
|
1206
1206
|
});
|
|
1207
1207
|
}
|
|
1208
|
-
const ct = /* @__PURE__ */
|
|
1208
|
+
const ct = /* @__PURE__ */ S("ZodEnum", (t, e) => {
|
|
1209
1209
|
go.init(t, e), O.init(t, e), t.enum = e.entries, t.options = Object.values(e.entries);
|
|
1210
1210
|
const n = new Set(Object.keys(e.entries));
|
|
1211
1211
|
t.extract = (r, o) => {
|
|
@@ -1218,7 +1218,7 @@ const ct = /* @__PURE__ */ v("ZodEnum", (t, e) => {
|
|
|
1218
1218
|
return new ct({
|
|
1219
1219
|
...e,
|
|
1220
1220
|
checks: [],
|
|
1221
|
-
...
|
|
1221
|
+
...D(o),
|
|
1222
1222
|
entries: i
|
|
1223
1223
|
});
|
|
1224
1224
|
}, t.exclude = (r, o) => {
|
|
@@ -1231,7 +1231,7 @@ const ct = /* @__PURE__ */ v("ZodEnum", (t, e) => {
|
|
|
1231
1231
|
return new ct({
|
|
1232
1232
|
...e,
|
|
1233
1233
|
checks: [],
|
|
1234
|
-
...
|
|
1234
|
+
...D(o),
|
|
1235
1235
|
entries: i
|
|
1236
1236
|
});
|
|
1237
1237
|
};
|
|
@@ -1241,10 +1241,10 @@ function Dn(t, e) {
|
|
|
1241
1241
|
return new ct({
|
|
1242
1242
|
type: "enum",
|
|
1243
1243
|
entries: n,
|
|
1244
|
-
...
|
|
1244
|
+
...D(e)
|
|
1245
1245
|
});
|
|
1246
1246
|
}
|
|
1247
|
-
const ui = /* @__PURE__ */
|
|
1247
|
+
const ui = /* @__PURE__ */ S("ZodTransform", (t, e) => {
|
|
1248
1248
|
yo.init(t, e), O.init(t, e), t._zod.parse = (n, r) => {
|
|
1249
1249
|
if (r.direction === "backward")
|
|
1250
1250
|
throw new Nn(t.constructor.name);
|
|
@@ -1266,7 +1266,7 @@ function pi(t) {
|
|
|
1266
1266
|
transform: t
|
|
1267
1267
|
});
|
|
1268
1268
|
}
|
|
1269
|
-
const Bn = /* @__PURE__ */
|
|
1269
|
+
const Bn = /* @__PURE__ */ S("ZodOptional", (t, e) => {
|
|
1270
1270
|
_o.init(t, e), O.init(t, e), t.unwrap = () => t._zod.def.innerType;
|
|
1271
1271
|
});
|
|
1272
1272
|
function tn(t) {
|
|
@@ -1275,7 +1275,7 @@ function tn(t) {
|
|
|
1275
1275
|
innerType: t
|
|
1276
1276
|
});
|
|
1277
1277
|
}
|
|
1278
|
-
const hi = /* @__PURE__ */
|
|
1278
|
+
const hi = /* @__PURE__ */ S("ZodNullable", (t, e) => {
|
|
1279
1279
|
bo.init(t, e), O.init(t, e), t.unwrap = () => t._zod.def.innerType;
|
|
1280
1280
|
});
|
|
1281
1281
|
function nn(t) {
|
|
@@ -1284,7 +1284,7 @@ function nn(t) {
|
|
|
1284
1284
|
innerType: t
|
|
1285
1285
|
});
|
|
1286
1286
|
}
|
|
1287
|
-
const di = /* @__PURE__ */
|
|
1287
|
+
const di = /* @__PURE__ */ S("ZodDefault", (t, e) => {
|
|
1288
1288
|
wo.init(t, e), O.init(t, e), t.unwrap = () => t._zod.def.innerType, t.removeDefault = t.unwrap;
|
|
1289
1289
|
});
|
|
1290
1290
|
function mi(t, e) {
|
|
@@ -1296,7 +1296,7 @@ function mi(t, e) {
|
|
|
1296
1296
|
}
|
|
1297
1297
|
});
|
|
1298
1298
|
}
|
|
1299
|
-
const fi = /* @__PURE__ */
|
|
1299
|
+
const fi = /* @__PURE__ */ S("ZodPrefault", (t, e) => {
|
|
1300
1300
|
vo.init(t, e), O.init(t, e), t.unwrap = () => t._zod.def.innerType;
|
|
1301
1301
|
});
|
|
1302
1302
|
function gi(t, e) {
|
|
@@ -1308,17 +1308,17 @@ function gi(t, e) {
|
|
|
1308
1308
|
}
|
|
1309
1309
|
});
|
|
1310
1310
|
}
|
|
1311
|
-
const Gn = /* @__PURE__ */
|
|
1311
|
+
const Gn = /* @__PURE__ */ S("ZodNonOptional", (t, e) => {
|
|
1312
1312
|
So.init(t, e), O.init(t, e), t.unwrap = () => t._zod.def.innerType;
|
|
1313
1313
|
});
|
|
1314
1314
|
function yi(t, e) {
|
|
1315
1315
|
return new Gn({
|
|
1316
1316
|
type: "nonoptional",
|
|
1317
1317
|
innerType: t,
|
|
1318
|
-
...
|
|
1318
|
+
...D(e)
|
|
1319
1319
|
});
|
|
1320
1320
|
}
|
|
1321
|
-
const _i = /* @__PURE__ */
|
|
1321
|
+
const _i = /* @__PURE__ */ S("ZodCatch", (t, e) => {
|
|
1322
1322
|
ko.init(t, e), O.init(t, e), t.unwrap = () => t._zod.def.innerType, t.removeCatch = t.unwrap;
|
|
1323
1323
|
});
|
|
1324
1324
|
function bi(t, e) {
|
|
@@ -1328,7 +1328,7 @@ function bi(t, e) {
|
|
|
1328
1328
|
catchValue: typeof e == "function" ? e : () => e
|
|
1329
1329
|
});
|
|
1330
1330
|
}
|
|
1331
|
-
const wi = /* @__PURE__ */
|
|
1331
|
+
const wi = /* @__PURE__ */ S("ZodPipe", (t, e) => {
|
|
1332
1332
|
Co.init(t, e), O.init(t, e), t.in = e.in, t.out = e.out;
|
|
1333
1333
|
});
|
|
1334
1334
|
function rn(t, e) {
|
|
@@ -1339,7 +1339,7 @@ function rn(t, e) {
|
|
|
1339
1339
|
// ...util.normalizeParams(params),
|
|
1340
1340
|
});
|
|
1341
1341
|
}
|
|
1342
|
-
const vi = /* @__PURE__ */
|
|
1342
|
+
const vi = /* @__PURE__ */ S("ZodReadonly", (t, e) => {
|
|
1343
1343
|
To.init(t, e), O.init(t, e), t.unwrap = () => t._zod.def.innerType;
|
|
1344
1344
|
});
|
|
1345
1345
|
function Si(t) {
|
|
@@ -1348,7 +1348,7 @@ function Si(t) {
|
|
|
1348
1348
|
innerType: t
|
|
1349
1349
|
});
|
|
1350
1350
|
}
|
|
1351
|
-
const ki = /* @__PURE__ */
|
|
1351
|
+
const ki = /* @__PURE__ */ S("ZodCustom", (t, e) => {
|
|
1352
1352
|
Po.init(t, e), O.init(t, e);
|
|
1353
1353
|
});
|
|
1354
1354
|
function Ci(t, e = {}) {
|
|
@@ -1622,9 +1622,9 @@ function Ii(t) {
|
|
|
1622
1622
|
let u = null;
|
|
1623
1623
|
typeof s.settings.background == "string" && on(s.settings.background) && (u = s.settings.background);
|
|
1624
1624
|
for (let p = 0, h = a.length; p < h; p++) {
|
|
1625
|
-
let m = a[p].trim().split(" "),
|
|
1625
|
+
let m = a[p].trim().split(" "), _ = m[m.length - 1], w = null;
|
|
1626
1626
|
m.length > 1 && (w = m.slice(0, m.length - 1), w.reverse()), n[r++] = new zi(
|
|
1627
|
-
|
|
1627
|
+
_,
|
|
1628
1628
|
w,
|
|
1629
1629
|
o,
|
|
1630
1630
|
l,
|
|
@@ -1755,12 +1755,12 @@ var Mi = class {
|
|
|
1755
1755
|
}
|
|
1756
1756
|
r === -1 && (r = this._mainRule.fontStyle), o === 0 && (o = this._mainRule.foreground), i === 0 && (i = this._mainRule.background), this._rulesWithParentScopes.push(new ut(e, n, r, o, i));
|
|
1757
1757
|
}
|
|
1758
|
-
}, ae = class
|
|
1758
|
+
}, ae = class B {
|
|
1759
1759
|
static toBinaryStr(e) {
|
|
1760
1760
|
return e.toString(2).padStart(32, "0");
|
|
1761
1761
|
}
|
|
1762
1762
|
static print(e) {
|
|
1763
|
-
const n =
|
|
1763
|
+
const n = B.getLanguageId(e), r = B.getTokenType(e), o = B.getFontStyle(e), i = B.getForeground(e), s = B.getBackground(e);
|
|
1764
1764
|
console.log({
|
|
1765
1765
|
languageId: n,
|
|
1766
1766
|
tokenType: r,
|
|
@@ -1792,7 +1792,7 @@ var Mi = class {
|
|
|
1792
1792
|
* A value of `0`, `NotSet` or `null` indicates that the corresponding field should be left as is.
|
|
1793
1793
|
*/
|
|
1794
1794
|
static set(e, n, r, o, i, s, a) {
|
|
1795
|
-
let l =
|
|
1795
|
+
let l = B.getLanguageId(e), c = B.getTokenType(e), u = B.containsBalancedBrackets(e) ? 1 : 0, p = B.getFontStyle(e), h = B.getForeground(e), d = B.getBackground(e);
|
|
1796
1796
|
return n !== 0 && (l = n), r !== 8 && (c = r), o !== null && (u = o ? 1 : 0), i !== -1 && (p = i), s !== 0 && (h = s), a !== 0 && (d = a), (l << 0 | c << 8 | u << 10 | p << 11 | h << 15 | d << 24) >>> 0;
|
|
1797
1797
|
}
|
|
1798
1798
|
};
|
|
@@ -2551,8 +2551,8 @@ function tr(t, e, n, r, o, i, s, a) {
|
|
|
2551
2551
|
i.produce(o, l), c = !0;
|
|
2552
2552
|
return;
|
|
2553
2553
|
}
|
|
2554
|
-
const m = d.captureIndices,
|
|
2555
|
-
if (
|
|
2554
|
+
const m = d.captureIndices, _ = d.matchedRuleId, w = m && m.length > 0 ? m[0].end > r : !1;
|
|
2555
|
+
if (_ === Yi) {
|
|
2556
2556
|
const y = o.getRule(t);
|
|
2557
2557
|
i.produce(o, m[0].start), o = o.withContentNameScopesList(o.nameScopesList), he(
|
|
2558
2558
|
t,
|
|
@@ -2563,26 +2563,26 @@ function tr(t, e, n, r, o, i, s, a) {
|
|
|
2563
2563
|
y.endCaptures,
|
|
2564
2564
|
m
|
|
2565
2565
|
), i.produce(o, m[0].end);
|
|
2566
|
-
const
|
|
2567
|
-
if (o = o.parent, u =
|
|
2568
|
-
o =
|
|
2566
|
+
const b = o;
|
|
2567
|
+
if (o = o.parent, u = b.getAnchorPos(), !w && b.getEnterPos() === r) {
|
|
2568
|
+
o = b, i.produce(o, l), c = !0;
|
|
2569
2569
|
return;
|
|
2570
2570
|
}
|
|
2571
2571
|
} else {
|
|
2572
|
-
const y = t.getRule(
|
|
2572
|
+
const y = t.getRule(_);
|
|
2573
2573
|
i.produce(o, m[0].start);
|
|
2574
|
-
const
|
|
2575
|
-
|
|
2574
|
+
const b = o, f = y.getName(e.content, m), v = o.contentNameScopesList.pushAttributed(
|
|
2575
|
+
f,
|
|
2576
2576
|
t
|
|
2577
2577
|
);
|
|
2578
2578
|
if (o = o.push(
|
|
2579
|
-
|
|
2579
|
+
_,
|
|
2580
2580
|
r,
|
|
2581
2581
|
u,
|
|
2582
2582
|
m[0].end === l,
|
|
2583
2583
|
null,
|
|
2584
|
-
|
|
2585
|
-
|
|
2584
|
+
v,
|
|
2585
|
+
v
|
|
2586
2586
|
), y instanceof dt) {
|
|
2587
2587
|
const C = y;
|
|
2588
2588
|
he(
|
|
@@ -2594,11 +2594,11 @@ function tr(t, e, n, r, o, i, s, a) {
|
|
|
2594
2594
|
C.beginCaptures,
|
|
2595
2595
|
m
|
|
2596
2596
|
), i.produce(o, m[0].end), u = m[0].end;
|
|
2597
|
-
const
|
|
2597
|
+
const M = C.getContentName(
|
|
2598
2598
|
e.content,
|
|
2599
2599
|
m
|
|
2600
|
-
), q =
|
|
2601
|
-
|
|
2600
|
+
), q = v.pushAttributed(
|
|
2601
|
+
M,
|
|
2602
2602
|
t
|
|
2603
2603
|
);
|
|
2604
2604
|
if (o = o.withContentNameScopesList(q), C.endHasBackReferences && (o = o.withEndRule(
|
|
@@ -2606,7 +2606,7 @@ function tr(t, e, n, r, o, i, s, a) {
|
|
|
2606
2606
|
e.content,
|
|
2607
2607
|
m
|
|
2608
2608
|
)
|
|
2609
|
-
)), !w &&
|
|
2609
|
+
)), !w && b.hasSameRuleAs(o)) {
|
|
2610
2610
|
o = o.pop(), i.produce(o, l), c = !0;
|
|
2611
2611
|
return;
|
|
2612
2612
|
}
|
|
@@ -2621,11 +2621,11 @@ function tr(t, e, n, r, o, i, s, a) {
|
|
|
2621
2621
|
C.beginCaptures,
|
|
2622
2622
|
m
|
|
2623
2623
|
), i.produce(o, m[0].end), u = m[0].end;
|
|
2624
|
-
const
|
|
2624
|
+
const M = C.getContentName(
|
|
2625
2625
|
e.content,
|
|
2626
2626
|
m
|
|
2627
|
-
), q =
|
|
2628
|
-
|
|
2627
|
+
), q = v.pushAttributed(
|
|
2628
|
+
M,
|
|
2629
2629
|
t
|
|
2630
2630
|
);
|
|
2631
2631
|
if (o = o.withContentNameScopesList(q), C.whileHasBackReferences && (o = o.withEndRule(
|
|
@@ -2633,7 +2633,7 @@ function tr(t, e, n, r, o, i, s, a) {
|
|
|
2633
2633
|
e.content,
|
|
2634
2634
|
m
|
|
2635
2635
|
)
|
|
2636
|
-
)), !w &&
|
|
2636
|
+
)), !w && b.hasSameRuleAs(o)) {
|
|
2637
2637
|
o = o.pop(), i.produce(o, l), c = !0;
|
|
2638
2638
|
return;
|
|
2639
2639
|
}
|
|
@@ -2704,11 +2704,11 @@ function is(t, e, n, r, o, i, s) {
|
|
|
2704
2704
|
const m = t[h];
|
|
2705
2705
|
if (!m.matcher(p))
|
|
2706
2706
|
continue;
|
|
2707
|
-
const
|
|
2708
|
-
if (!
|
|
2707
|
+
const _ = e.getRule(m.ruleId), { ruleScanner: w, findOptions: y } = nr(_, e, null, r, o === s), b = w.findNextMatchSync(n, o, y);
|
|
2708
|
+
if (!b)
|
|
2709
2709
|
continue;
|
|
2710
|
-
const
|
|
2711
|
-
if (!(
|
|
2710
|
+
const f = b.captureIndices[0].start;
|
|
2711
|
+
if (!(f >= a) && (a = f, l = b.captureIndices, c = b.ruleId, u = m.priority, a === o))
|
|
2712
2712
|
break;
|
|
2713
2713
|
}
|
|
2714
2714
|
return l ? {
|
|
@@ -2747,18 +2747,18 @@ function he(t, e, n, r, o, i, s) {
|
|
|
2747
2747
|
for (; c.length > 0 && c[c.length - 1].endPos <= d.start; )
|
|
2748
2748
|
o.produceFromScopes(c[c.length - 1].scopes, c[c.length - 1].endPos), c.pop();
|
|
2749
2749
|
if (c.length > 0 ? o.produceFromScopes(c[c.length - 1].scopes, d.start) : o.produce(r, d.start), h.retokenizeCapturedWithRuleId) {
|
|
2750
|
-
const
|
|
2750
|
+
const _ = h.getName(a, s), w = r.contentNameScopesList.pushAttributed(_, t), y = h.getContentName(a, s), b = w.pushAttributed(y, t), f = r.push(h.retokenizeCapturedWithRuleId, d.start, -1, !1, null, w, b), v = t.createOnigString(a.substring(0, d.end));
|
|
2751
2751
|
tr(
|
|
2752
2752
|
t,
|
|
2753
|
-
|
|
2753
|
+
v,
|
|
2754
2754
|
n && d.start === 0,
|
|
2755
2755
|
d.start,
|
|
2756
|
-
|
|
2756
|
+
f,
|
|
2757
2757
|
o,
|
|
2758
2758
|
!1,
|
|
2759
2759
|
/* no time limit */
|
|
2760
2760
|
0
|
|
2761
|
-
), Jn(
|
|
2761
|
+
), Jn(v);
|
|
2762
2762
|
continue;
|
|
2763
2763
|
}
|
|
2764
2764
|
const m = h.getName(a, s);
|
|
@@ -3593,7 +3593,7 @@ $.prototype.property = "";
|
|
|
3593
3593
|
$.prototype.spaceSeparated = !1;
|
|
3594
3594
|
$.prototype.space = void 0;
|
|
3595
3595
|
let gs = 0;
|
|
3596
|
-
const k = ee(), R = ee(), _t = ee(),
|
|
3596
|
+
const k = ee(), R = ee(), _t = ee(), g = ee(), T = ee(), ie = ee(), j = ee();
|
|
3597
3597
|
function ee() {
|
|
3598
3598
|
return 2 ** ++gs;
|
|
3599
3599
|
}
|
|
@@ -3601,9 +3601,9 @@ const bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3601
3601
|
__proto__: null,
|
|
3602
3602
|
boolean: k,
|
|
3603
3603
|
booleanish: R,
|
|
3604
|
-
commaOrSpaceSeparated:
|
|
3604
|
+
commaOrSpaceSeparated: j,
|
|
3605
3605
|
commaSeparated: ie,
|
|
3606
|
-
number:
|
|
3606
|
+
number: g,
|
|
3607
3607
|
overloadedBoolean: _t,
|
|
3608
3608
|
spaceSeparated: T
|
|
3609
3609
|
}, Symbol.toStringTag, { value: "Module" })), nt = (
|
|
@@ -3657,9 +3657,9 @@ const or = ce({
|
|
|
3657
3657
|
ariaAutoComplete: null,
|
|
3658
3658
|
ariaBusy: R,
|
|
3659
3659
|
ariaChecked: R,
|
|
3660
|
-
ariaColCount:
|
|
3661
|
-
ariaColIndex:
|
|
3662
|
-
ariaColSpan:
|
|
3660
|
+
ariaColCount: g,
|
|
3661
|
+
ariaColIndex: g,
|
|
3662
|
+
ariaColSpan: g,
|
|
3663
3663
|
ariaControls: T,
|
|
3664
3664
|
ariaCurrent: null,
|
|
3665
3665
|
ariaDescribedBy: T,
|
|
@@ -3676,7 +3676,7 @@ const or = ce({
|
|
|
3676
3676
|
ariaKeyShortcuts: null,
|
|
3677
3677
|
ariaLabel: null,
|
|
3678
3678
|
ariaLabelledBy: T,
|
|
3679
|
-
ariaLevel:
|
|
3679
|
+
ariaLevel: g,
|
|
3680
3680
|
ariaLive: null,
|
|
3681
3681
|
ariaModal: R,
|
|
3682
3682
|
ariaMultiLine: R,
|
|
@@ -3684,21 +3684,21 @@ const or = ce({
|
|
|
3684
3684
|
ariaOrientation: null,
|
|
3685
3685
|
ariaOwns: T,
|
|
3686
3686
|
ariaPlaceholder: null,
|
|
3687
|
-
ariaPosInSet:
|
|
3687
|
+
ariaPosInSet: g,
|
|
3688
3688
|
ariaPressed: R,
|
|
3689
3689
|
ariaReadOnly: R,
|
|
3690
3690
|
ariaRelevant: null,
|
|
3691
3691
|
ariaRequired: R,
|
|
3692
3692
|
ariaRoleDescription: T,
|
|
3693
|
-
ariaRowCount:
|
|
3694
|
-
ariaRowIndex:
|
|
3695
|
-
ariaRowSpan:
|
|
3693
|
+
ariaRowCount: g,
|
|
3694
|
+
ariaRowIndex: g,
|
|
3695
|
+
ariaRowSpan: g,
|
|
3696
3696
|
ariaSelected: R,
|
|
3697
|
-
ariaSetSize:
|
|
3697
|
+
ariaSetSize: g,
|
|
3698
3698
|
ariaSort: null,
|
|
3699
|
-
ariaValueMax:
|
|
3700
|
-
ariaValueMin:
|
|
3701
|
-
ariaValueNow:
|
|
3699
|
+
ariaValueMax: g,
|
|
3700
|
+
ariaValueMin: g,
|
|
3701
|
+
ariaValueNow: g,
|
|
3702
3702
|
ariaValueText: null,
|
|
3703
3703
|
role: null
|
|
3704
3704
|
},
|
|
@@ -3744,13 +3744,13 @@ const ys = ce({
|
|
|
3744
3744
|
checked: k,
|
|
3745
3745
|
cite: null,
|
|
3746
3746
|
className: T,
|
|
3747
|
-
cols:
|
|
3747
|
+
cols: g,
|
|
3748
3748
|
colSpan: null,
|
|
3749
3749
|
content: null,
|
|
3750
3750
|
contentEditable: R,
|
|
3751
3751
|
controls: k,
|
|
3752
3752
|
controlsList: T,
|
|
3753
|
-
coords:
|
|
3753
|
+
coords: g | ie,
|
|
3754
3754
|
crossOrigin: null,
|
|
3755
3755
|
data: null,
|
|
3756
3756
|
dateTime: null,
|
|
@@ -3772,9 +3772,9 @@ const ys = ce({
|
|
|
3772
3772
|
formNoValidate: k,
|
|
3773
3773
|
formTarget: null,
|
|
3774
3774
|
headers: T,
|
|
3775
|
-
height:
|
|
3775
|
+
height: g,
|
|
3776
3776
|
hidden: _t,
|
|
3777
|
-
high:
|
|
3777
|
+
high: g,
|
|
3778
3778
|
href: null,
|
|
3779
3779
|
hrefLang: null,
|
|
3780
3780
|
htmlFor: T,
|
|
@@ -3799,14 +3799,14 @@ const ys = ce({
|
|
|
3799
3799
|
list: null,
|
|
3800
3800
|
loading: null,
|
|
3801
3801
|
loop: k,
|
|
3802
|
-
low:
|
|
3802
|
+
low: g,
|
|
3803
3803
|
manifest: null,
|
|
3804
3804
|
max: null,
|
|
3805
|
-
maxLength:
|
|
3805
|
+
maxLength: g,
|
|
3806
3806
|
media: null,
|
|
3807
3807
|
method: null,
|
|
3808
3808
|
min: null,
|
|
3809
|
-
minLength:
|
|
3809
|
+
minLength: g,
|
|
3810
3810
|
multiple: k,
|
|
3811
3811
|
muted: k,
|
|
3812
3812
|
name: null,
|
|
@@ -3902,7 +3902,7 @@ const ys = ce({
|
|
|
3902
3902
|
onWaiting: null,
|
|
3903
3903
|
onWheel: null,
|
|
3904
3904
|
open: k,
|
|
3905
|
-
optimum:
|
|
3905
|
+
optimum: g,
|
|
3906
3906
|
pattern: null,
|
|
3907
3907
|
ping: T,
|
|
3908
3908
|
placeholder: null,
|
|
@@ -3917,8 +3917,8 @@ const ys = ce({
|
|
|
3917
3917
|
rel: T,
|
|
3918
3918
|
required: k,
|
|
3919
3919
|
reversed: k,
|
|
3920
|
-
rows:
|
|
3921
|
-
rowSpan:
|
|
3920
|
+
rows: g,
|
|
3921
|
+
rowSpan: g,
|
|
3922
3922
|
sandbox: T,
|
|
3923
3923
|
scope: null,
|
|
3924
3924
|
scoped: k,
|
|
@@ -3928,19 +3928,19 @@ const ys = ce({
|
|
|
3928
3928
|
shadowRootDelegatesFocus: k,
|
|
3929
3929
|
shadowRootMode: null,
|
|
3930
3930
|
shape: null,
|
|
3931
|
-
size:
|
|
3931
|
+
size: g,
|
|
3932
3932
|
sizes: null,
|
|
3933
3933
|
slot: null,
|
|
3934
|
-
span:
|
|
3934
|
+
span: g,
|
|
3935
3935
|
spellCheck: R,
|
|
3936
3936
|
src: null,
|
|
3937
3937
|
srcDoc: null,
|
|
3938
3938
|
srcLang: null,
|
|
3939
3939
|
srcSet: null,
|
|
3940
|
-
start:
|
|
3940
|
+
start: g,
|
|
3941
3941
|
step: null,
|
|
3942
3942
|
style: null,
|
|
3943
|
-
tabIndex:
|
|
3943
|
+
tabIndex: g,
|
|
3944
3944
|
target: null,
|
|
3945
3945
|
title: null,
|
|
3946
3946
|
translate: null,
|
|
@@ -3948,7 +3948,7 @@ const ys = ce({
|
|
|
3948
3948
|
typeMustMatch: k,
|
|
3949
3949
|
useMap: null,
|
|
3950
3950
|
value: R,
|
|
3951
|
-
width:
|
|
3951
|
+
width: g,
|
|
3952
3952
|
wrap: null,
|
|
3953
3953
|
writingSuggestions: null,
|
|
3954
3954
|
// Legacy.
|
|
@@ -3965,11 +3965,11 @@ const ys = ce({
|
|
|
3965
3965
|
// `<body>`. Use CSS `background-image` instead
|
|
3966
3966
|
bgColor: null,
|
|
3967
3967
|
// `<body>` and table elements. Use CSS `background-color` instead
|
|
3968
|
-
border:
|
|
3968
|
+
border: g,
|
|
3969
3969
|
// `<table>`. Use CSS `border-width` instead,
|
|
3970
3970
|
borderColor: null,
|
|
3971
3971
|
// `<table>`. Use CSS `border-color` instead,
|
|
3972
|
-
bottomMargin:
|
|
3972
|
+
bottomMargin: g,
|
|
3973
3973
|
// `<body>`
|
|
3974
3974
|
cellPadding: null,
|
|
3975
3975
|
// `<table>`
|
|
@@ -4003,9 +4003,9 @@ const ys = ce({
|
|
|
4003
4003
|
// `<table>`
|
|
4004
4004
|
frameBorder: null,
|
|
4005
4005
|
// `<iframe>`. Use CSS `border` instead
|
|
4006
|
-
hSpace:
|
|
4006
|
+
hSpace: g,
|
|
4007
4007
|
// `<img>` and `<object>`
|
|
4008
|
-
leftMargin:
|
|
4008
|
+
leftMargin: g,
|
|
4009
4009
|
// `<body>`
|
|
4010
4010
|
link: null,
|
|
4011
4011
|
// `<body>`. Use CSS `a:link {color: *}` instead
|
|
@@ -4013,9 +4013,9 @@ const ys = ce({
|
|
|
4013
4013
|
// `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
|
|
4014
4014
|
lowSrc: null,
|
|
4015
4015
|
// `<img>`. Use a `<picture>`
|
|
4016
|
-
marginHeight:
|
|
4016
|
+
marginHeight: g,
|
|
4017
4017
|
// `<body>`
|
|
4018
|
-
marginWidth:
|
|
4018
|
+
marginWidth: g,
|
|
4019
4019
|
// `<body>`
|
|
4020
4020
|
noResize: k,
|
|
4021
4021
|
// `<frame>`
|
|
@@ -4033,7 +4033,7 @@ const ys = ce({
|
|
|
4033
4033
|
// `<isindex>`
|
|
4034
4034
|
rev: null,
|
|
4035
4035
|
// `<link>`
|
|
4036
|
-
rightMargin:
|
|
4036
|
+
rightMargin: g,
|
|
4037
4037
|
// `<body>`
|
|
4038
4038
|
rules: null,
|
|
4039
4039
|
// `<table>`
|
|
@@ -4047,7 +4047,7 @@ const ys = ce({
|
|
|
4047
4047
|
// `<table>`
|
|
4048
4048
|
text: null,
|
|
4049
4049
|
// `<body>`. Use CSS `color` instead
|
|
4050
|
-
topMargin:
|
|
4050
|
+
topMargin: g,
|
|
4051
4051
|
// `<body>`
|
|
4052
4052
|
valueType: null,
|
|
4053
4053
|
// `<param>`
|
|
@@ -4057,7 +4057,7 @@ const ys = ce({
|
|
|
4057
4057
|
// Several. Use CSS `vertical-align` instead
|
|
4058
4058
|
vLink: null,
|
|
4059
4059
|
// `<body>`. Use CSS `a:visited {color}` instead
|
|
4060
|
-
vSpace:
|
|
4060
|
+
vSpace: g,
|
|
4061
4061
|
// `<img>` and `<object>`
|
|
4062
4062
|
// Non-standard Properties.
|
|
4063
4063
|
allowTransparency: null,
|
|
@@ -4067,7 +4067,7 @@ const ys = ce({
|
|
|
4067
4067
|
disableRemotePlayback: k,
|
|
4068
4068
|
prefix: null,
|
|
4069
4069
|
property: null,
|
|
4070
|
-
results:
|
|
4070
|
+
results: g,
|
|
4071
4071
|
security: null,
|
|
4072
4072
|
unselectable: null
|
|
4073
4073
|
},
|
|
@@ -4250,28 +4250,28 @@ const ys = ce({
|
|
|
4250
4250
|
timelineBegin: "timelinebegin"
|
|
4251
4251
|
},
|
|
4252
4252
|
properties: {
|
|
4253
|
-
about:
|
|
4254
|
-
accentHeight:
|
|
4253
|
+
about: j,
|
|
4254
|
+
accentHeight: g,
|
|
4255
4255
|
accumulate: null,
|
|
4256
4256
|
additive: null,
|
|
4257
4257
|
alignmentBaseline: null,
|
|
4258
|
-
alphabetic:
|
|
4259
|
-
amplitude:
|
|
4258
|
+
alphabetic: g,
|
|
4259
|
+
amplitude: g,
|
|
4260
4260
|
arabicForm: null,
|
|
4261
|
-
ascent:
|
|
4261
|
+
ascent: g,
|
|
4262
4262
|
attributeName: null,
|
|
4263
4263
|
attributeType: null,
|
|
4264
|
-
azimuth:
|
|
4264
|
+
azimuth: g,
|
|
4265
4265
|
bandwidth: null,
|
|
4266
4266
|
baselineShift: null,
|
|
4267
4267
|
baseFrequency: null,
|
|
4268
4268
|
baseProfile: null,
|
|
4269
4269
|
bbox: null,
|
|
4270
4270
|
begin: null,
|
|
4271
|
-
bias:
|
|
4271
|
+
bias: g,
|
|
4272
4272
|
by: null,
|
|
4273
4273
|
calcMode: null,
|
|
4274
|
-
capHeight:
|
|
4274
|
+
capHeight: g,
|
|
4275
4275
|
className: T,
|
|
4276
4276
|
clip: null,
|
|
4277
4277
|
clipPath: null,
|
|
@@ -4292,26 +4292,26 @@ const ys = ce({
|
|
|
4292
4292
|
d: null,
|
|
4293
4293
|
dataType: null,
|
|
4294
4294
|
defaultAction: null,
|
|
4295
|
-
descent:
|
|
4296
|
-
diffuseConstant:
|
|
4295
|
+
descent: g,
|
|
4296
|
+
diffuseConstant: g,
|
|
4297
4297
|
direction: null,
|
|
4298
4298
|
display: null,
|
|
4299
4299
|
dur: null,
|
|
4300
|
-
divisor:
|
|
4300
|
+
divisor: g,
|
|
4301
4301
|
dominantBaseline: null,
|
|
4302
4302
|
download: k,
|
|
4303
4303
|
dx: null,
|
|
4304
4304
|
dy: null,
|
|
4305
4305
|
edgeMode: null,
|
|
4306
4306
|
editable: null,
|
|
4307
|
-
elevation:
|
|
4307
|
+
elevation: g,
|
|
4308
4308
|
enableBackground: null,
|
|
4309
4309
|
end: null,
|
|
4310
4310
|
event: null,
|
|
4311
|
-
exponent:
|
|
4311
|
+
exponent: g,
|
|
4312
4312
|
externalResourcesRequired: null,
|
|
4313
4313
|
fill: null,
|
|
4314
|
-
fillOpacity:
|
|
4314
|
+
fillOpacity: g,
|
|
4315
4315
|
fillRule: null,
|
|
4316
4316
|
filter: null,
|
|
4317
4317
|
filterRes: null,
|
|
@@ -4341,28 +4341,28 @@ const ys = ce({
|
|
|
4341
4341
|
gradientTransform: null,
|
|
4342
4342
|
gradientUnits: null,
|
|
4343
4343
|
handler: null,
|
|
4344
|
-
hanging:
|
|
4344
|
+
hanging: g,
|
|
4345
4345
|
hatchContentUnits: null,
|
|
4346
4346
|
hatchUnits: null,
|
|
4347
4347
|
height: null,
|
|
4348
4348
|
href: null,
|
|
4349
4349
|
hrefLang: null,
|
|
4350
|
-
horizAdvX:
|
|
4351
|
-
horizOriginX:
|
|
4352
|
-
horizOriginY:
|
|
4350
|
+
horizAdvX: g,
|
|
4351
|
+
horizOriginX: g,
|
|
4352
|
+
horizOriginY: g,
|
|
4353
4353
|
id: null,
|
|
4354
|
-
ideographic:
|
|
4354
|
+
ideographic: g,
|
|
4355
4355
|
imageRendering: null,
|
|
4356
4356
|
initialVisibility: null,
|
|
4357
4357
|
in: null,
|
|
4358
4358
|
in2: null,
|
|
4359
|
-
intercept:
|
|
4360
|
-
k:
|
|
4361
|
-
k1:
|
|
4362
|
-
k2:
|
|
4363
|
-
k3:
|
|
4364
|
-
k4:
|
|
4365
|
-
kernelMatrix:
|
|
4359
|
+
intercept: g,
|
|
4360
|
+
k: g,
|
|
4361
|
+
k1: g,
|
|
4362
|
+
k2: g,
|
|
4363
|
+
k3: g,
|
|
4364
|
+
k4: g,
|
|
4365
|
+
kernelMatrix: j,
|
|
4366
4366
|
kernelUnitLength: null,
|
|
4367
4367
|
keyPoints: null,
|
|
4368
4368
|
// SEMI_COLON_SEPARATED
|
|
@@ -4375,7 +4375,7 @@ const ys = ce({
|
|
|
4375
4375
|
lengthAdjust: null,
|
|
4376
4376
|
letterSpacing: null,
|
|
4377
4377
|
lightingColor: null,
|
|
4378
|
-
limitingConeAngle:
|
|
4378
|
+
limitingConeAngle: g,
|
|
4379
4379
|
local: null,
|
|
4380
4380
|
markerEnd: null,
|
|
4381
4381
|
markerMid: null,
|
|
@@ -4391,7 +4391,7 @@ const ys = ce({
|
|
|
4391
4391
|
media: null,
|
|
4392
4392
|
mediaCharacterEncoding: null,
|
|
4393
4393
|
mediaContentEncodings: null,
|
|
4394
|
-
mediaSize:
|
|
4394
|
+
mediaSize: g,
|
|
4395
4395
|
mediaTime: null,
|
|
4396
4396
|
method: null,
|
|
4397
4397
|
min: null,
|
|
@@ -4497,12 +4497,12 @@ const ys = ce({
|
|
|
4497
4497
|
origin: null,
|
|
4498
4498
|
overflow: null,
|
|
4499
4499
|
overlay: null,
|
|
4500
|
-
overlinePosition:
|
|
4501
|
-
overlineThickness:
|
|
4500
|
+
overlinePosition: g,
|
|
4501
|
+
overlineThickness: g,
|
|
4502
4502
|
paintOrder: null,
|
|
4503
4503
|
panose1: null,
|
|
4504
4504
|
path: null,
|
|
4505
|
-
pathLength:
|
|
4505
|
+
pathLength: g,
|
|
4506
4506
|
patternContentUnits: null,
|
|
4507
4507
|
patternTransform: null,
|
|
4508
4508
|
patternUnits: null,
|
|
@@ -4512,28 +4512,28 @@ const ys = ce({
|
|
|
4512
4512
|
playbackOrder: null,
|
|
4513
4513
|
pointerEvents: null,
|
|
4514
4514
|
points: null,
|
|
4515
|
-
pointsAtX:
|
|
4516
|
-
pointsAtY:
|
|
4517
|
-
pointsAtZ:
|
|
4515
|
+
pointsAtX: g,
|
|
4516
|
+
pointsAtY: g,
|
|
4517
|
+
pointsAtZ: g,
|
|
4518
4518
|
preserveAlpha: null,
|
|
4519
4519
|
preserveAspectRatio: null,
|
|
4520
4520
|
primitiveUnits: null,
|
|
4521
4521
|
propagate: null,
|
|
4522
|
-
property:
|
|
4522
|
+
property: j,
|
|
4523
4523
|
r: null,
|
|
4524
4524
|
radius: null,
|
|
4525
4525
|
referrerPolicy: null,
|
|
4526
4526
|
refX: null,
|
|
4527
4527
|
refY: null,
|
|
4528
|
-
rel:
|
|
4529
|
-
rev:
|
|
4528
|
+
rel: j,
|
|
4529
|
+
rev: j,
|
|
4530
4530
|
renderingIntent: null,
|
|
4531
4531
|
repeatCount: null,
|
|
4532
4532
|
repeatDur: null,
|
|
4533
|
-
requiredExtensions:
|
|
4534
|
-
requiredFeatures:
|
|
4535
|
-
requiredFonts:
|
|
4536
|
-
requiredFormats:
|
|
4533
|
+
requiredExtensions: j,
|
|
4534
|
+
requiredFeatures: j,
|
|
4535
|
+
requiredFonts: j,
|
|
4536
|
+
requiredFormats: j,
|
|
4537
4537
|
resource: null,
|
|
4538
4538
|
restart: null,
|
|
4539
4539
|
result: null,
|
|
@@ -4546,8 +4546,8 @@ const ys = ce({
|
|
|
4546
4546
|
side: null,
|
|
4547
4547
|
slope: null,
|
|
4548
4548
|
snapshotTime: null,
|
|
4549
|
-
specularConstant:
|
|
4550
|
-
specularExponent:
|
|
4549
|
+
specularConstant: g,
|
|
4550
|
+
specularExponent: g,
|
|
4551
4551
|
spreadMethod: null,
|
|
4552
4552
|
spacing: null,
|
|
4553
4553
|
startOffset: null,
|
|
@@ -4557,30 +4557,30 @@ const ys = ce({
|
|
|
4557
4557
|
stitchTiles: null,
|
|
4558
4558
|
stopColor: null,
|
|
4559
4559
|
stopOpacity: null,
|
|
4560
|
-
strikethroughPosition:
|
|
4561
|
-
strikethroughThickness:
|
|
4560
|
+
strikethroughPosition: g,
|
|
4561
|
+
strikethroughThickness: g,
|
|
4562
4562
|
string: null,
|
|
4563
4563
|
stroke: null,
|
|
4564
|
-
strokeDashArray:
|
|
4564
|
+
strokeDashArray: j,
|
|
4565
4565
|
strokeDashOffset: null,
|
|
4566
4566
|
strokeLineCap: null,
|
|
4567
4567
|
strokeLineJoin: null,
|
|
4568
|
-
strokeMiterLimit:
|
|
4569
|
-
strokeOpacity:
|
|
4568
|
+
strokeMiterLimit: g,
|
|
4569
|
+
strokeOpacity: g,
|
|
4570
4570
|
strokeWidth: null,
|
|
4571
4571
|
style: null,
|
|
4572
|
-
surfaceScale:
|
|
4572
|
+
surfaceScale: g,
|
|
4573
4573
|
syncBehavior: null,
|
|
4574
4574
|
syncBehaviorDefault: null,
|
|
4575
4575
|
syncMaster: null,
|
|
4576
4576
|
syncTolerance: null,
|
|
4577
4577
|
syncToleranceDefault: null,
|
|
4578
|
-
systemLanguage:
|
|
4579
|
-
tabIndex:
|
|
4578
|
+
systemLanguage: j,
|
|
4579
|
+
tabIndex: g,
|
|
4580
4580
|
tableValues: null,
|
|
4581
4581
|
target: null,
|
|
4582
|
-
targetX:
|
|
4583
|
-
targetY:
|
|
4582
|
+
targetX: g,
|
|
4583
|
+
targetY: g,
|
|
4584
4584
|
textAnchor: null,
|
|
4585
4585
|
textDecoration: null,
|
|
4586
4586
|
textRendering: null,
|
|
@@ -4589,28 +4589,28 @@ const ys = ce({
|
|
|
4589
4589
|
title: null,
|
|
4590
4590
|
transformBehavior: null,
|
|
4591
4591
|
type: null,
|
|
4592
|
-
typeOf:
|
|
4592
|
+
typeOf: j,
|
|
4593
4593
|
to: null,
|
|
4594
4594
|
transform: null,
|
|
4595
4595
|
transformOrigin: null,
|
|
4596
4596
|
u1: null,
|
|
4597
4597
|
u2: null,
|
|
4598
|
-
underlinePosition:
|
|
4599
|
-
underlineThickness:
|
|
4598
|
+
underlinePosition: g,
|
|
4599
|
+
underlineThickness: g,
|
|
4600
4600
|
unicode: null,
|
|
4601
4601
|
unicodeBidi: null,
|
|
4602
4602
|
unicodeRange: null,
|
|
4603
|
-
unitsPerEm:
|
|
4603
|
+
unitsPerEm: g,
|
|
4604
4604
|
values: null,
|
|
4605
|
-
vAlphabetic:
|
|
4606
|
-
vMathematical:
|
|
4605
|
+
vAlphabetic: g,
|
|
4606
|
+
vMathematical: g,
|
|
4607
4607
|
vectorEffect: null,
|
|
4608
|
-
vHanging:
|
|
4609
|
-
vIdeographic:
|
|
4608
|
+
vHanging: g,
|
|
4609
|
+
vIdeographic: g,
|
|
4610
4610
|
version: null,
|
|
4611
|
-
vertAdvY:
|
|
4612
|
-
vertOriginX:
|
|
4613
|
-
vertOriginY:
|
|
4611
|
+
vertAdvY: g,
|
|
4612
|
+
vertOriginX: g,
|
|
4613
|
+
vertOriginY: g,
|
|
4614
4614
|
viewBox: null,
|
|
4615
4615
|
viewTarget: null,
|
|
4616
4616
|
visibility: null,
|
|
@@ -4622,7 +4622,7 @@ const ys = ce({
|
|
|
4622
4622
|
x1: null,
|
|
4623
4623
|
x2: null,
|
|
4624
4624
|
xChannelSelector: null,
|
|
4625
|
-
xHeight:
|
|
4625
|
+
xHeight: g,
|
|
4626
4626
|
y: null,
|
|
4627
4627
|
y1: null,
|
|
4628
4628
|
y2: null,
|
|
@@ -5620,10 +5620,10 @@ function Ma(t, e, n, r, o = "css-vars") {
|
|
|
5620
5620
|
const d = u[h] || "inherit";
|
|
5621
5621
|
if (p === 0 && r && Ia.includes(h))
|
|
5622
5622
|
if (r === It && s.length > 1) {
|
|
5623
|
-
const m = e.findIndex((
|
|
5624
|
-
if (m === -1 ||
|
|
5623
|
+
const m = e.findIndex((b) => b === "light"), _ = e.findIndex((b) => b === "dark");
|
|
5624
|
+
if (m === -1 || _ === -1)
|
|
5625
5625
|
throw new A('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');
|
|
5626
|
-
const w = s[m][h] || "inherit", y = s[
|
|
5626
|
+
const w = s[m][h] || "inherit", y = s[_][h] || "inherit";
|
|
5627
5627
|
l[h] = `light-dark(${w}, ${y})`, o === "css-vars" && (l[c(p, h)] = d);
|
|
5628
5628
|
} else
|
|
5629
5629
|
l[h] = d;
|
|
@@ -5774,34 +5774,34 @@ function Ba() {
|
|
|
5774
5774
|
throw new A(`Number of lines in code element (${o.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);
|
|
5775
5775
|
function i(u, p, h, d) {
|
|
5776
5776
|
const m = o[u];
|
|
5777
|
-
let
|
|
5777
|
+
let _ = "", w = -1, y = -1;
|
|
5778
5778
|
if (p === 0 && (w = 0), h === 0 && (y = 0), h === Number.POSITIVE_INFINITY && (y = m.children.length), w === -1 || y === -1)
|
|
5779
|
-
for (let
|
|
5780
|
-
|
|
5779
|
+
for (let f = 0; f < m.children.length; f++)
|
|
5780
|
+
_ += vr(m.children[f]), w === -1 && _.length === p && (w = f + 1), y === -1 && _.length === h && (y = f + 1);
|
|
5781
5781
|
if (w === -1)
|
|
5782
5782
|
throw new A(`Failed to find start index for decoration ${JSON.stringify(d.start)}`);
|
|
5783
5783
|
if (y === -1)
|
|
5784
5784
|
throw new A(`Failed to find end index for decoration ${JSON.stringify(d.end)}`);
|
|
5785
|
-
const
|
|
5786
|
-
if (!d.alwaysWrap &&
|
|
5785
|
+
const b = m.children.slice(w, y);
|
|
5786
|
+
if (!d.alwaysWrap && b.length === m.children.length)
|
|
5787
5787
|
a(m, d, "line");
|
|
5788
|
-
else if (!d.alwaysWrap &&
|
|
5789
|
-
a(
|
|
5788
|
+
else if (!d.alwaysWrap && b.length === 1 && b[0].type === "element")
|
|
5789
|
+
a(b[0], d, "token");
|
|
5790
5790
|
else {
|
|
5791
|
-
const
|
|
5791
|
+
const f = {
|
|
5792
5792
|
type: "element",
|
|
5793
5793
|
tagName: "span",
|
|
5794
5794
|
properties: {},
|
|
5795
|
-
children:
|
|
5795
|
+
children: b
|
|
5796
5796
|
};
|
|
5797
|
-
a(
|
|
5797
|
+
a(f, d, "wrapper"), m.children.splice(w, b.length, f);
|
|
5798
5798
|
}
|
|
5799
5799
|
}
|
|
5800
5800
|
function s(u, p) {
|
|
5801
5801
|
o[u] = a(o[u], p, "line");
|
|
5802
5802
|
}
|
|
5803
5803
|
function a(u, p, h) {
|
|
5804
|
-
const d = p.properties || {}, m = p.transform || ((
|
|
5804
|
+
const d = p.properties || {}, m = p.transform || ((_) => _);
|
|
5805
5805
|
return u.tagName = p.tagName || "span", u.properties = {
|
|
5806
5806
|
...u.properties,
|
|
5807
5807
|
...d,
|
|
@@ -6202,7 +6202,7 @@ function Ge(t, e, n, r, o) {
|
|
|
6202
6202
|
).stateStack : gt, u = [];
|
|
6203
6203
|
const p = [];
|
|
6204
6204
|
for (let h = 0, d = l.length; h < d; h++) {
|
|
6205
|
-
const [m,
|
|
6205
|
+
const [m, _] = l[h];
|
|
6206
6206
|
if (m === "") {
|
|
6207
6207
|
u = [], p.push([]);
|
|
6208
6208
|
continue;
|
|
@@ -6210,25 +6210,25 @@ function Ge(t, e, n, r, o) {
|
|
|
6210
6210
|
if (s > 0 && m.length >= s) {
|
|
6211
6211
|
u = [], p.push([{
|
|
6212
6212
|
content: m,
|
|
6213
|
-
offset:
|
|
6213
|
+
offset: _,
|
|
6214
6214
|
color: "",
|
|
6215
6215
|
fontStyle: 0
|
|
6216
6216
|
}]);
|
|
6217
6217
|
continue;
|
|
6218
6218
|
}
|
|
6219
|
-
let w, y,
|
|
6220
|
-
o.includeExplanation && (w = e.tokenizeLine(m, c, a), y = w.tokens,
|
|
6221
|
-
const
|
|
6222
|
-
for (let C = 0; C <
|
|
6223
|
-
const
|
|
6224
|
-
if (
|
|
6219
|
+
let w, y, b;
|
|
6220
|
+
o.includeExplanation && (w = e.tokenizeLine(m, c, a), y = w.tokens, b = 0);
|
|
6221
|
+
const f = e.tokenizeLine2(m, c, a), v = f.tokens.length / 2;
|
|
6222
|
+
for (let C = 0; C < v; C++) {
|
|
6223
|
+
const M = f.tokens[2 * C], q = C + 1 < v ? f.tokens[2 * C + 2] : m.length;
|
|
6224
|
+
if (M === q)
|
|
6225
6225
|
continue;
|
|
6226
|
-
const jt =
|
|
6226
|
+
const jt = f.tokens[2 * C + 1], Ar = W(
|
|
6227
6227
|
r[ae.getForeground(jt)],
|
|
6228
6228
|
i
|
|
6229
6229
|
), Nr = ae.getFontStyle(jt), Je = {
|
|
6230
|
-
content: m.substring(
|
|
6231
|
-
offset:
|
|
6230
|
+
content: m.substring(M, q),
|
|
6231
|
+
offset: _ + M,
|
|
6232
6232
|
color: Ar,
|
|
6233
6233
|
fontStyle: Nr
|
|
6234
6234
|
};
|
|
@@ -6254,8 +6254,8 @@ function Ge(t, e, n, r, o) {
|
|
|
6254
6254
|
}
|
|
6255
6255
|
Je.explanation = [];
|
|
6256
6256
|
let Bt = 0;
|
|
6257
|
-
for (;
|
|
6258
|
-
const H = y[
|
|
6257
|
+
for (; M + Bt < q; ) {
|
|
6258
|
+
const H = y[b], te = m.substring(
|
|
6259
6259
|
H.startIndex,
|
|
6260
6260
|
H.endIndex
|
|
6261
6261
|
);
|
|
@@ -6267,12 +6267,12 @@ function Ge(t, e, n, r, o) {
|
|
|
6267
6267
|
Dt,
|
|
6268
6268
|
H.scopes
|
|
6269
6269
|
)
|
|
6270
|
-
}),
|
|
6270
|
+
}), b += 1;
|
|
6271
6271
|
}
|
|
6272
6272
|
}
|
|
6273
6273
|
u.push(Je);
|
|
6274
6274
|
}
|
|
6275
|
-
p.push(u), u = [], c =
|
|
6275
|
+
p.push(u), u = [], c = f.ruleStack;
|
|
6276
6276
|
}
|
|
6277
6277
|
return {
|
|
6278
6278
|
tokens: p,
|
|
@@ -6336,12 +6336,12 @@ function Sr(t, e, n) {
|
|
|
6336
6336
|
};
|
|
6337
6337
|
return "includeExplanation" in n && n.includeExplanation && (h.explanation = u.explanation), i.forEach((d, m) => {
|
|
6338
6338
|
const {
|
|
6339
|
-
content:
|
|
6339
|
+
content: _,
|
|
6340
6340
|
explanation: w,
|
|
6341
6341
|
offset: y,
|
|
6342
|
-
...
|
|
6342
|
+
...b
|
|
6343
6343
|
} = d[c][p];
|
|
6344
|
-
h.variants[r[m].color] =
|
|
6344
|
+
h.variants[r[m].color] = b;
|
|
6345
6345
|
}), h;
|
|
6346
6346
|
})
|
|
6347
6347
|
), a = o[0].state ? new ue(
|
|
@@ -6380,7 +6380,7 @@ function Ue(t, e, n) {
|
|
|
6380
6380
|
defaultColor: c = "light",
|
|
6381
6381
|
cssVariablePrefix: u = "--shiki-",
|
|
6382
6382
|
colorsRendering: p = "css-vars"
|
|
6383
|
-
} = n, h = Object.entries(n.themes).filter((y) => y[1]).map((y) => ({ color: y[0], theme: y[1] })).sort((y,
|
|
6383
|
+
} = n, h = Object.entries(n.themes).filter((y) => y[1]).map((y) => ({ color: y[0], theme: y[1] })).sort((y, b) => y.color === c ? -1 : b.color === c ? 1 : 0);
|
|
6384
6384
|
if (h.length === 0)
|
|
6385
6385
|
throw new A("`themes` option must not be empty");
|
|
6386
6386
|
const d = Sr(
|
|
@@ -6390,8 +6390,8 @@ function Ue(t, e, n) {
|
|
|
6390
6390
|
);
|
|
6391
6391
|
if (l = be(d), c && It !== c && !h.find((y) => y.color === c))
|
|
6392
6392
|
throw new A(`\`themes\` option must contain the defaultColor key \`${c}\``);
|
|
6393
|
-
const m = h.map((y) => t.getTheme(y.theme)),
|
|
6394
|
-
i = d.map((y) => y.map((
|
|
6393
|
+
const m = h.map((y) => t.getTheme(y.theme)), _ = h.map((y) => y.color);
|
|
6394
|
+
i = d.map((y) => y.map((b) => Ma(b, _, u, c, p))), l && qe(i, l);
|
|
6395
6395
|
const w = h.map((y) => je(y.theme, n));
|
|
6396
6396
|
o = kn(h, m, w, u, c, "fg", p), r = kn(h, m, w, u, c, "bg", p), s = `shiki-themes ${m.map((y) => y.name).join(" ")}`, a = c ? void 0 : [o, r].join(";");
|
|
6397
6397
|
} else if ("theme" in n) {
|
|
@@ -6419,7 +6419,7 @@ function kn(t, e, n, r, o, i, s) {
|
|
|
6419
6419
|
const c = W(e[l][i], n[l]) || "inherit", u = `${r + a.color}${i === "bg" ? "-bg" : ""}:${c}`;
|
|
6420
6420
|
if (l === 0 && o) {
|
|
6421
6421
|
if (o === It && t.length > 1) {
|
|
6422
|
-
const p = t.findIndex((
|
|
6422
|
+
const p = t.findIndex((_) => _.color === "light"), h = t.findIndex((_) => _.color === "dark");
|
|
6423
6423
|
if (p === -1 || h === -1)
|
|
6424
6424
|
throw new A('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');
|
|
6425
6425
|
const d = W(e[p][i], n[p]) || "inherit", m = W(e[h][i], n[h]) || "inherit";
|
|
@@ -6467,7 +6467,7 @@ function Fe(t, e, n, r = {
|
|
|
6467
6467
|
fg: s,
|
|
6468
6468
|
bg: a,
|
|
6469
6469
|
themeName: l,
|
|
6470
|
-
rootStyle: c
|
|
6470
|
+
rootStyle: n.rootStyle === !1 ? !1 : n.rootStyle ?? c
|
|
6471
6471
|
},
|
|
6472
6472
|
d,
|
|
6473
6473
|
u
|
|
@@ -6480,30 +6480,24 @@ function il(t, e, n, r = be(t)) {
|
|
|
6480
6480
|
}, {
|
|
6481
6481
|
structure: a = "classic",
|
|
6482
6482
|
tabindex: l = "0"
|
|
6483
|
-
} = e
|
|
6484
|
-
|
|
6483
|
+
} = e, c = {
|
|
6484
|
+
class: `shiki ${e.themeName || ""}`
|
|
6485
|
+
};
|
|
6486
|
+
e.rootStyle !== !1 && (e.rootStyle != null ? c.style = e.rootStyle : c.style = `background-color:${e.bg};color:${e.fg}`), l !== !1 && l != null && (c.tabindex = l.toString());
|
|
6487
|
+
for (const [_, w] of Object.entries(e.meta || {}))
|
|
6488
|
+
_.startsWith("_") || (c[_] = w);
|
|
6489
|
+
let u = {
|
|
6485
6490
|
type: "element",
|
|
6486
6491
|
tagName: "pre",
|
|
6487
|
-
properties:
|
|
6488
|
-
class: `shiki ${e.themeName || ""}`,
|
|
6489
|
-
style: e.rootStyle || `background-color:${e.bg};color:${e.fg}`,
|
|
6490
|
-
...l !== !1 && l != null ? {
|
|
6491
|
-
tabindex: l.toString()
|
|
6492
|
-
} : {},
|
|
6493
|
-
...Object.fromEntries(
|
|
6494
|
-
Array.from(
|
|
6495
|
-
Object.entries(e.meta || {})
|
|
6496
|
-
).filter(([m]) => !m.startsWith("_"))
|
|
6497
|
-
)
|
|
6498
|
-
},
|
|
6492
|
+
properties: c,
|
|
6499
6493
|
children: []
|
|
6500
|
-
},
|
|
6494
|
+
}, p = {
|
|
6501
6495
|
type: "element",
|
|
6502
6496
|
tagName: "code",
|
|
6503
6497
|
properties: {},
|
|
6504
6498
|
children: i
|
|
6505
6499
|
};
|
|
6506
|
-
const
|
|
6500
|
+
const h = [], d = {
|
|
6507
6501
|
...n,
|
|
6508
6502
|
structure: a,
|
|
6509
6503
|
addClassToHast: br,
|
|
@@ -6520,86 +6514,86 @@ function il(t, e, n, r = be(t)) {
|
|
|
6520
6514
|
return s;
|
|
6521
6515
|
},
|
|
6522
6516
|
get pre() {
|
|
6523
|
-
return
|
|
6517
|
+
return u;
|
|
6524
6518
|
},
|
|
6525
6519
|
get code() {
|
|
6526
|
-
return
|
|
6520
|
+
return p;
|
|
6527
6521
|
},
|
|
6528
6522
|
get lines() {
|
|
6529
|
-
return
|
|
6523
|
+
return h;
|
|
6530
6524
|
}
|
|
6531
6525
|
};
|
|
6532
|
-
if (t.forEach((
|
|
6533
|
-
|
|
6526
|
+
if (t.forEach((_, w) => {
|
|
6527
|
+
w && (a === "inline" ? s.children.push({ type: "element", tagName: "br", properties: {}, children: [] }) : a === "classic" && i.push({ type: "text", value: `
|
|
6534
6528
|
` }));
|
|
6535
|
-
let
|
|
6529
|
+
let y = {
|
|
6536
6530
|
type: "element",
|
|
6537
6531
|
tagName: "span",
|
|
6538
6532
|
properties: { class: "line" },
|
|
6539
6533
|
children: []
|
|
6540
|
-
},
|
|
6541
|
-
for (const
|
|
6542
|
-
let
|
|
6534
|
+
}, b = 0;
|
|
6535
|
+
for (const f of _) {
|
|
6536
|
+
let v = {
|
|
6543
6537
|
type: "element",
|
|
6544
6538
|
tagName: "span",
|
|
6545
6539
|
properties: {
|
|
6546
|
-
...
|
|
6540
|
+
...f.htmlAttrs
|
|
6547
6541
|
},
|
|
6548
|
-
children: [{ type: "text", value:
|
|
6542
|
+
children: [{ type: "text", value: f.content }]
|
|
6549
6543
|
};
|
|
6550
|
-
const
|
|
6551
|
-
|
|
6552
|
-
for (const
|
|
6553
|
-
|
|
6554
|
-
a === "inline" ? s.children.push(
|
|
6544
|
+
const C = vt(f.htmlStyle || De(f));
|
|
6545
|
+
C && (v.properties.style = C);
|
|
6546
|
+
for (const M of o)
|
|
6547
|
+
v = M?.span?.call(d, v, w + 1, b, y, f) || v;
|
|
6548
|
+
a === "inline" ? s.children.push(v) : a === "classic" && y.children.push(v), b += f.content.length;
|
|
6555
6549
|
}
|
|
6556
6550
|
if (a === "classic") {
|
|
6557
|
-
for (const
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
} else a === "inline" &&
|
|
6551
|
+
for (const f of o)
|
|
6552
|
+
y = f?.line?.call(d, y, w + 1) || y;
|
|
6553
|
+
h.push(y), i.push(y);
|
|
6554
|
+
} else a === "inline" && h.push(y);
|
|
6561
6555
|
}), a === "classic") {
|
|
6562
|
-
for (const
|
|
6563
|
-
|
|
6564
|
-
|
|
6565
|
-
for (const
|
|
6566
|
-
|
|
6567
|
-
s.children.push(
|
|
6556
|
+
for (const _ of o)
|
|
6557
|
+
p = _?.code?.call(d, p) || p;
|
|
6558
|
+
u.children.push(p);
|
|
6559
|
+
for (const _ of o)
|
|
6560
|
+
u = _?.pre?.call(d, u) || u;
|
|
6561
|
+
s.children.push(u);
|
|
6568
6562
|
} else if (a === "inline") {
|
|
6569
|
-
const
|
|
6570
|
-
let
|
|
6563
|
+
const _ = [];
|
|
6564
|
+
let w = {
|
|
6571
6565
|
type: "element",
|
|
6572
6566
|
tagName: "span",
|
|
6573
6567
|
properties: { class: "line" },
|
|
6574
6568
|
children: []
|
|
6575
6569
|
};
|
|
6576
|
-
for (const
|
|
6577
|
-
|
|
6570
|
+
for (const f of s.children)
|
|
6571
|
+
f.type === "element" && f.tagName === "br" ? (_.push(w), w = {
|
|
6578
6572
|
type: "element",
|
|
6579
6573
|
tagName: "span",
|
|
6580
6574
|
properties: { class: "line" },
|
|
6581
6575
|
children: []
|
|
6582
|
-
}) : (
|
|
6583
|
-
|
|
6584
|
-
let
|
|
6576
|
+
}) : (f.type === "element" || f.type === "text") && w.children.push(f);
|
|
6577
|
+
_.push(w);
|
|
6578
|
+
let b = {
|
|
6585
6579
|
type: "element",
|
|
6586
6580
|
tagName: "code",
|
|
6587
6581
|
properties: {},
|
|
6588
|
-
children:
|
|
6582
|
+
children: _
|
|
6589
6583
|
};
|
|
6590
|
-
for (const
|
|
6591
|
-
|
|
6584
|
+
for (const f of o)
|
|
6585
|
+
b = f?.code?.call(d, b) || b;
|
|
6592
6586
|
s.children = [];
|
|
6593
|
-
for (let
|
|
6594
|
-
|
|
6595
|
-
const
|
|
6596
|
-
|
|
6587
|
+
for (let f = 0; f < b.children.length; f++) {
|
|
6588
|
+
f > 0 && s.children.push({ type: "element", tagName: "br", properties: {}, children: [] });
|
|
6589
|
+
const v = b.children[f];
|
|
6590
|
+
v.type === "element" && s.children.push(...v.children);
|
|
6597
6591
|
}
|
|
6598
6592
|
}
|
|
6599
|
-
let
|
|
6600
|
-
for (const
|
|
6601
|
-
|
|
6602
|
-
return r && qe(
|
|
6593
|
+
let m = s;
|
|
6594
|
+
for (const _ of o)
|
|
6595
|
+
m = _?.root?.call(d, m) || m;
|
|
6596
|
+
return r && qe(m, r), m;
|
|
6603
6597
|
}
|
|
6604
6598
|
function sl(t) {
|
|
6605
6599
|
return t.map((e) => {
|
|
@@ -6825,7 +6819,7 @@ class dl extends ms {
|
|
|
6825
6819
|
this.resolveEmbeddedLanguages(o);
|
|
6826
6820
|
const n = Array.from(this._langGraph.entries()), r = n.filter(([o, i]) => !i);
|
|
6827
6821
|
if (r.length) {
|
|
6828
|
-
const o = n.filter(([i, s]) => s
|
|
6822
|
+
const o = n.filter(([i, s]) => s ? (s.embeddedLanguages || s.embeddedLangs)?.some((l) => r.map(([c]) => c).includes(l)) : !1).filter((i) => !r.includes(i));
|
|
6829
6823
|
throw new re(`Missing languages ${r.map(([i]) => `\`${i}\``).join(", ")}, required by ${o.map(([i]) => `\`${i}\``).join(", ")}`);
|
|
6830
6824
|
}
|
|
6831
6825
|
for (const [o, i] of n)
|
|
@@ -6891,32 +6885,32 @@ function fl(t) {
|
|
|
6891
6885
|
throw new re("`engine` option is required for synchronous mode");
|
|
6892
6886
|
const n = (t.langs || []).flat(1), r = (t.themes || []).flat(1).map($t), o = new ml(t.engine, n), i = new dl(o, r, n, t.langAlias);
|
|
6893
6887
|
let s;
|
|
6894
|
-
function a(
|
|
6895
|
-
return Tr(
|
|
6888
|
+
function a(f) {
|
|
6889
|
+
return Tr(f, t.langAlias);
|
|
6896
6890
|
}
|
|
6897
|
-
function l(
|
|
6891
|
+
function l(f) {
|
|
6898
6892
|
y();
|
|
6899
|
-
const
|
|
6900
|
-
if (!
|
|
6901
|
-
throw new re(`Language \`${
|
|
6902
|
-
return
|
|
6893
|
+
const v = i.getGrammar(typeof f == "string" ? f : f.name);
|
|
6894
|
+
if (!v)
|
|
6895
|
+
throw new re(`Language \`${f}\` not found, you may need to load it first`);
|
|
6896
|
+
return v;
|
|
6903
6897
|
}
|
|
6904
|
-
function c(
|
|
6905
|
-
if (
|
|
6898
|
+
function c(f) {
|
|
6899
|
+
if (f === "none")
|
|
6906
6900
|
return { bg: "", fg: "", name: "none", settings: [], type: "dark" };
|
|
6907
6901
|
y();
|
|
6908
|
-
const
|
|
6909
|
-
if (!
|
|
6910
|
-
throw new re(`Theme \`${
|
|
6911
|
-
return
|
|
6902
|
+
const v = i.getTheme(f);
|
|
6903
|
+
if (!v)
|
|
6904
|
+
throw new re(`Theme \`${f}\` not found, you may need to load it first`);
|
|
6905
|
+
return v;
|
|
6912
6906
|
}
|
|
6913
|
-
function u(
|
|
6907
|
+
function u(f) {
|
|
6914
6908
|
y();
|
|
6915
|
-
const
|
|
6916
|
-
s !==
|
|
6909
|
+
const v = c(f);
|
|
6910
|
+
s !== f && (i.setTheme(v), s = f);
|
|
6917
6911
|
const C = i.getColorMap();
|
|
6918
6912
|
return {
|
|
6919
|
-
theme:
|
|
6913
|
+
theme: v,
|
|
6920
6914
|
colorMap: C
|
|
6921
6915
|
};
|
|
6922
6916
|
}
|
|
@@ -6926,25 +6920,25 @@ function fl(t) {
|
|
|
6926
6920
|
function h() {
|
|
6927
6921
|
return y(), i.getLoadedLanguages();
|
|
6928
6922
|
}
|
|
6929
|
-
function d(...
|
|
6930
|
-
y(), i.loadLanguages(
|
|
6923
|
+
function d(...f) {
|
|
6924
|
+
y(), i.loadLanguages(f.flat(1));
|
|
6931
6925
|
}
|
|
6932
|
-
async function m(...
|
|
6933
|
-
return d(await kr(
|
|
6926
|
+
async function m(...f) {
|
|
6927
|
+
return d(await kr(f));
|
|
6934
6928
|
}
|
|
6935
|
-
function
|
|
6929
|
+
function _(...f) {
|
|
6936
6930
|
y();
|
|
6937
|
-
for (const
|
|
6938
|
-
i.loadTheme(
|
|
6931
|
+
for (const v of f.flat(1))
|
|
6932
|
+
i.loadTheme(v);
|
|
6939
6933
|
}
|
|
6940
|
-
async function w(...
|
|
6941
|
-
return y(),
|
|
6934
|
+
async function w(...f) {
|
|
6935
|
+
return y(), _(await Cr(f));
|
|
6942
6936
|
}
|
|
6943
6937
|
function y() {
|
|
6944
6938
|
if (e)
|
|
6945
6939
|
throw new re("Shiki instance has been disposed");
|
|
6946
6940
|
}
|
|
6947
|
-
function
|
|
6941
|
+
function b() {
|
|
6948
6942
|
e || (e = !0, i.dispose(), pe -= 1);
|
|
6949
6943
|
}
|
|
6950
6944
|
return {
|
|
@@ -6957,9 +6951,9 @@ function fl(t) {
|
|
|
6957
6951
|
loadLanguage: m,
|
|
6958
6952
|
loadLanguageSync: d,
|
|
6959
6953
|
loadTheme: w,
|
|
6960
|
-
loadThemeSync:
|
|
6961
|
-
dispose:
|
|
6962
|
-
[Symbol.dispose]:
|
|
6954
|
+
loadThemeSync: _,
|
|
6955
|
+
dispose: b,
|
|
6956
|
+
[Symbol.dispose]: b
|
|
6963
6957
|
};
|
|
6964
6958
|
}
|
|
6965
6959
|
async function gl(t) {
|
|
@@ -8846,8 +8840,8 @@ async function Nl(t) {
|
|
|
8846
8840
|
function o(d) {
|
|
8847
8841
|
n = d, r.HEAPU8 = new Uint8Array(d), r.HEAPU32 = new Uint32Array(d);
|
|
8848
8842
|
}
|
|
8849
|
-
function i(d, m,
|
|
8850
|
-
r.HEAPU8.copyWithin(d, m, m +
|
|
8843
|
+
function i(d, m, _) {
|
|
8844
|
+
r.HEAPU8.copyWithin(d, m, m + _);
|
|
8851
8845
|
}
|
|
8852
8846
|
function s(d) {
|
|
8853
8847
|
try {
|
|
@@ -8858,46 +8852,46 @@ async function Nl(t) {
|
|
|
8858
8852
|
function a(d) {
|
|
8859
8853
|
const m = r.HEAPU8.length;
|
|
8860
8854
|
d = d >>> 0;
|
|
8861
|
-
const
|
|
8862
|
-
if (d >
|
|
8855
|
+
const _ = Pl();
|
|
8856
|
+
if (d > _)
|
|
8863
8857
|
return !1;
|
|
8864
8858
|
for (let w = 1; w <= 4; w *= 2) {
|
|
8865
8859
|
let y = m * (1 + 0.2 / w);
|
|
8866
8860
|
y = Math.min(y, d + 100663296);
|
|
8867
|
-
const
|
|
8868
|
-
if (s(
|
|
8861
|
+
const b = Math.min(_, Al(Math.max(d, y), 65536));
|
|
8862
|
+
if (s(b))
|
|
8869
8863
|
return !0;
|
|
8870
8864
|
}
|
|
8871
8865
|
return !1;
|
|
8872
8866
|
}
|
|
8873
8867
|
const l = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0;
|
|
8874
|
-
function c(d, m,
|
|
8875
|
-
const w = m +
|
|
8868
|
+
function c(d, m, _ = 1024) {
|
|
8869
|
+
const w = m + _;
|
|
8876
8870
|
let y = m;
|
|
8877
8871
|
for (; d[y] && !(y >= w); ) ++y;
|
|
8878
8872
|
if (y - m > 16 && d.buffer && l)
|
|
8879
8873
|
return l.decode(d.subarray(m, y));
|
|
8880
|
-
let
|
|
8874
|
+
let b = "";
|
|
8881
8875
|
for (; m < y; ) {
|
|
8882
|
-
let
|
|
8883
|
-
if (!(
|
|
8884
|
-
|
|
8876
|
+
let f = d[m++];
|
|
8877
|
+
if (!(f & 128)) {
|
|
8878
|
+
b += String.fromCharCode(f);
|
|
8885
8879
|
continue;
|
|
8886
8880
|
}
|
|
8887
|
-
const
|
|
8888
|
-
if ((
|
|
8889
|
-
|
|
8881
|
+
const v = d[m++] & 63;
|
|
8882
|
+
if ((f & 224) === 192) {
|
|
8883
|
+
b += String.fromCharCode((f & 31) << 6 | v);
|
|
8890
8884
|
continue;
|
|
8891
8885
|
}
|
|
8892
8886
|
const C = d[m++] & 63;
|
|
8893
|
-
if ((
|
|
8894
|
-
|
|
8887
|
+
if ((f & 240) === 224 ? f = (f & 15) << 12 | v << 6 | C : f = (f & 7) << 18 | v << 12 | C << 6 | d[m++] & 63, f < 65536)
|
|
8888
|
+
b += String.fromCharCode(f);
|
|
8895
8889
|
else {
|
|
8896
|
-
const
|
|
8897
|
-
|
|
8890
|
+
const M = f - 65536;
|
|
8891
|
+
b += String.fromCharCode(55296 | M >> 10, 56320 | M & 1023);
|
|
8898
8892
|
}
|
|
8899
8893
|
}
|
|
8900
|
-
return
|
|
8894
|
+
return b;
|
|
8901
8895
|
}
|
|
8902
8896
|
function u(d, m) {
|
|
8903
8897
|
return d ? c(r.HEAPU8, d, m) : "";
|
|
@@ -9107,17 +9101,17 @@ function Jl(t) {
|
|
|
9107
9101
|
...i
|
|
9108
9102
|
}, l = (u) => u.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&").replace(/"/g, '"').replace(/'/g, "'").replace(/'/g, "'").replace(///g, "/").replace(/`/g, "`").replace(/&#(\d+);/g, (p, h) => String.fromCharCode(h)).replace(/&#x([0-9a-fA-F]+);/g, (p, h) => String.fromCharCode(parseInt(h, 16))), c = async (u) => {
|
|
9109
9103
|
const p = /<pre(?:\s+class="lang-(\w+)")?><code(?:\s+class="lang-\w+")?>([^]*?)<\/code><\/pre>/g, h = await Promise.all(
|
|
9110
|
-
Array.from(u.matchAll(p), async ([m,
|
|
9111
|
-
const y = l(w),
|
|
9104
|
+
Array.from(u.matchAll(p), async ([m, _, w]) => {
|
|
9105
|
+
const y = l(w), b = _ ? _.toLowerCase() : "text";
|
|
9112
9106
|
try {
|
|
9113
9107
|
return {
|
|
9114
9108
|
original: m,
|
|
9115
9109
|
replacement: await Rn(y, {
|
|
9116
9110
|
...a,
|
|
9117
|
-
lang:
|
|
9111
|
+
lang: b
|
|
9118
9112
|
})
|
|
9119
9113
|
};
|
|
9120
|
-
} catch (
|
|
9114
|
+
} catch (f) {
|
|
9121
9115
|
try {
|
|
9122
9116
|
return {
|
|
9123
9117
|
original: m,
|
|
@@ -9126,15 +9120,15 @@ function Jl(t) {
|
|
|
9126
9120
|
lang: "text"
|
|
9127
9121
|
})
|
|
9128
9122
|
};
|
|
9129
|
-
} catch (
|
|
9130
|
-
return console.warn(`Failed to highlight code block with language "${
|
|
9123
|
+
} catch (v) {
|
|
9124
|
+
return console.warn(`Failed to highlight code block with language "${b}":`, f), console.warn("Fallback to 'text' also failed:", v), { original: m, replacement: m };
|
|
9131
9125
|
}
|
|
9132
9126
|
}
|
|
9133
9127
|
})
|
|
9134
9128
|
);
|
|
9135
9129
|
let d = u;
|
|
9136
|
-
for (const { original: m, replacement:
|
|
9137
|
-
d = d.replace(m, () =>
|
|
9130
|
+
for (const { original: m, replacement: _ } of h)
|
|
9131
|
+
d = d.replace(m, () => _);
|
|
9138
9132
|
return d;
|
|
9139
9133
|
};
|
|
9140
9134
|
return {
|