@shotstack/shotstack-studio 2.12.1 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +74 -17
- package/dist/internal.d.ts +76 -19
- package/dist/internal.es.js +531 -477
- package/dist/internal.umd.js +12 -12
- package/dist/shotstack-studio.es.js +1275 -1221
- package/dist/shotstack-studio.umd.js +23 -23
- package/package.json +1 -1
package/dist/internal.es.js
CHANGED
|
@@ -1291,7 +1291,7 @@ var B6 = Object.create, Xu = Object.defineProperty, N6 = Object.getOwnPropertyDe
|
|
|
1291
1291
|
if (e && typeof e == "object" || typeof e == "function")
|
|
1292
1292
|
for (let i of xg(e)) !P6.call(t, i) && i !== r && Xu(t, i, { get: () => e[i], enumerable: !(n = N6(e, i)) || n.enumerable });
|
|
1293
1293
|
return t;
|
|
1294
|
-
}, Cn = (t, e, r) => (r = t != null ? B6(T6(t)) : {}, z6(Xu(r, "default", { value: t, enumerable: !0 }), t)), Tt = (t, e, r) => M6(t, typeof e != "symbol" ? e + "" : e, r), q0 = (t, e, r) => e.has(t) || Cg("Cannot " + r), E = (t, e, r) => (q0(t, e, "read from private field"), r ? r.call(t) : e.get(t)),
|
|
1294
|
+
}, Cn = (t, e, r) => (r = t != null ? B6(T6(t)) : {}, z6(Xu(r, "default", { value: t, enumerable: !0 }), t)), Tt = (t, e, r) => M6(t, typeof e != "symbol" ? e + "" : e, r), q0 = (t, e, r) => e.has(t) || Cg("Cannot " + r), E = (t, e, r) => (q0(t, e, "read from private field"), r ? r.call(t) : e.get(t)), re = (t, e, r) => e.has(t) ? Cg("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), Nt = (t, e, r, n) => (q0(t, e, "write to private field"), e.set(t, r), r), _t = (t, e, r) => (q0(t, e, "access private method"), r), xc = (t, e, r, n) => ({ set _(i) {
|
|
1295
1295
|
Nt(t, e, i);
|
|
1296
1296
|
}, get _() {
|
|
1297
1297
|
return E(t, e, n);
|
|
@@ -1373,7 +1373,7 @@ function O6(t, e) {
|
|
|
1373
1373
|
return Math.abs(r - n) < i ? 0 : r - n;
|
|
1374
1374
|
}
|
|
1375
1375
|
const Hd = /* @__PURE__ */ Symbol("evaluating");
|
|
1376
|
-
function
|
|
1376
|
+
function ge(t, e, r) {
|
|
1377
1377
|
let n;
|
|
1378
1378
|
Object.defineProperty(t, e, {
|
|
1379
1379
|
get() {
|
|
@@ -2114,7 +2114,7 @@ const X_ = {
|
|
|
2114
2114
|
return i(u, n, o);
|
|
2115
2115
|
};
|
|
2116
2116
|
}
|
|
2117
|
-
|
|
2117
|
+
ge(t, "~standard", () => ({
|
|
2118
2118
|
validate: (i) => {
|
|
2119
2119
|
try {
|
|
2120
2120
|
const a = t_(t, i);
|
|
@@ -2484,7 +2484,7 @@ const D5 = /* @__PURE__ */ G("$ZodObject", (t, e) => {
|
|
|
2484
2484
|
});
|
|
2485
2485
|
}
|
|
2486
2486
|
const n = Ku(() => Lg(e));
|
|
2487
|
-
|
|
2487
|
+
ge(t._zod, "propValues", () => {
|
|
2488
2488
|
const o = e.shape, u = {};
|
|
2489
2489
|
for (const l in o) {
|
|
2490
2490
|
const c = o[l]._zod;
|
|
@@ -2623,10 +2623,10 @@ function Kd(t, e, r, n) {
|
|
|
2623
2623
|
}), e);
|
|
2624
2624
|
}
|
|
2625
2625
|
const Ug = /* @__PURE__ */ G("$ZodUnion", (t, e) => {
|
|
2626
|
-
Ne.init(t, e),
|
|
2626
|
+
Ne.init(t, e), ge(t._zod, "optin", () => e.options.some((n) => n._zod.optin === "optional") ? "optional" : void 0), ge(t._zod, "optout", () => e.options.some((n) => n._zod.optout === "optional") ? "optional" : void 0), ge(t._zod, "values", () => {
|
|
2627
2627
|
if (e.options.every((n) => n._zod.values))
|
|
2628
2628
|
return new Set(e.options.flatMap((n) => Array.from(n._zod.values)));
|
|
2629
|
-
}),
|
|
2629
|
+
}), ge(t._zod, "pattern", () => {
|
|
2630
2630
|
if (e.options.every((n) => n._zod.pattern)) {
|
|
2631
2631
|
const n = e.options.map((i) => i._zod.pattern);
|
|
2632
2632
|
return new RegExp(`^(${n.map((i) => J0(i.source)).join("|")})$`);
|
|
@@ -2656,7 +2656,7 @@ const Ug = /* @__PURE__ */ G("$ZodUnion", (t, e) => {
|
|
|
2656
2656
|
}), I5 = /* @__PURE__ */ G("$ZodDiscriminatedUnion", (t, e) => {
|
|
2657
2657
|
e.inclusive = !1, Ug.init(t, e);
|
|
2658
2658
|
const r = t._zod.parse;
|
|
2659
|
-
|
|
2659
|
+
ge(t._zod, "propValues", () => {
|
|
2660
2660
|
const i = {};
|
|
2661
2661
|
for (const a of e.options) {
|
|
2662
2662
|
const s = a._zod.propValues;
|
|
@@ -2889,7 +2889,7 @@ function Qd(t, e) {
|
|
|
2889
2889
|
return e === void 0 && (t.issues.length || t.fallback) ? { issues: [], value: void 0 } : t;
|
|
2890
2890
|
}
|
|
2891
2891
|
const Zg = /* @__PURE__ */ G("$ZodOptional", (t, e) => {
|
|
2892
|
-
Ne.init(t, e), t._zod.optin = "optional", t._zod.optout = "optional",
|
|
2892
|
+
Ne.init(t, e), t._zod.optin = "optional", t._zod.optout = "optional", ge(t._zod, "values", () => e.innerType._zod.values ? /* @__PURE__ */ new Set([...e.innerType._zod.values, void 0]) : void 0), ge(t._zod, "pattern", () => {
|
|
2893
2893
|
const r = e.innerType._zod.pattern;
|
|
2894
2894
|
return r ? new RegExp(`^(${J0(r.source)})?$`) : void 0;
|
|
2895
2895
|
}), t._zod.parse = (r, n) => {
|
|
@@ -2900,14 +2900,14 @@ const Zg = /* @__PURE__ */ G("$ZodOptional", (t, e) => {
|
|
|
2900
2900
|
return r.value === void 0 ? r : e.innerType._zod.run(r, n);
|
|
2901
2901
|
};
|
|
2902
2902
|
}), V5 = /* @__PURE__ */ G("$ZodExactOptional", (t, e) => {
|
|
2903
|
-
Zg.init(t, e),
|
|
2903
|
+
Zg.init(t, e), ge(t._zod, "values", () => e.innerType._zod.values), ge(t._zod, "pattern", () => e.innerType._zod.pattern), t._zod.parse = (r, n) => e.innerType._zod.run(r, n);
|
|
2904
2904
|
}), z5 = /* @__PURE__ */ G("$ZodNullable", (t, e) => {
|
|
2905
|
-
Ne.init(t, e),
|
|
2905
|
+
Ne.init(t, e), ge(t._zod, "optin", () => e.innerType._zod.optin), ge(t._zod, "optout", () => e.innerType._zod.optout), ge(t._zod, "pattern", () => {
|
|
2906
2906
|
const r = e.innerType._zod.pattern;
|
|
2907
2907
|
return r ? new RegExp(`^(${J0(r.source)}|null)$`) : void 0;
|
|
2908
|
-
}),
|
|
2908
|
+
}), ge(t._zod, "values", () => e.innerType._zod.values ? /* @__PURE__ */ new Set([...e.innerType._zod.values, null]) : void 0), t._zod.parse = (r, n) => r.value === null ? r : e.innerType._zod.run(r, n);
|
|
2909
2909
|
}), O5 = /* @__PURE__ */ G("$ZodDefault", (t, e) => {
|
|
2910
|
-
Ne.init(t, e), t._zod.optin = "optional",
|
|
2910
|
+
Ne.init(t, e), t._zod.optin = "optional", ge(t._zod, "values", () => e.innerType._zod.values), t._zod.parse = (r, n) => {
|
|
2911
2911
|
if (n.direction === "backward")
|
|
2912
2912
|
return e.innerType._zod.run(r, n);
|
|
2913
2913
|
if (r.value === void 0)
|
|
@@ -2920,9 +2920,9 @@ function tp(t, e) {
|
|
|
2920
2920
|
return t.value === void 0 && (t.value = e.defaultValue), t;
|
|
2921
2921
|
}
|
|
2922
2922
|
const R5 = /* @__PURE__ */ G("$ZodPrefault", (t, e) => {
|
|
2923
|
-
Ne.init(t, e), t._zod.optin = "optional",
|
|
2923
|
+
Ne.init(t, e), t._zod.optin = "optional", ge(t._zod, "values", () => e.innerType._zod.values), t._zod.parse = (r, n) => (n.direction === "backward" || r.value === void 0 && (r.value = e.defaultValue), e.innerType._zod.run(r, n));
|
|
2924
2924
|
}), L5 = /* @__PURE__ */ G("$ZodNonOptional", (t, e) => {
|
|
2925
|
-
Ne.init(t, e),
|
|
2925
|
+
Ne.init(t, e), ge(t._zod, "values", () => {
|
|
2926
2926
|
const r = e.innerType._zod.values;
|
|
2927
2927
|
return r ? new Set([...r].filter((n) => n !== void 0)) : void 0;
|
|
2928
2928
|
}), t._zod.parse = (r, n) => {
|
|
@@ -2939,7 +2939,7 @@ function ep(t, e) {
|
|
|
2939
2939
|
}), t;
|
|
2940
2940
|
}
|
|
2941
2941
|
const $5 = /* @__PURE__ */ G("$ZodCatch", (t, e) => {
|
|
2942
|
-
Ne.init(t, e), t._zod.optin = "optional",
|
|
2942
|
+
Ne.init(t, e), t._zod.optin = "optional", ge(t._zod, "optout", () => e.innerType._zod.optout), ge(t._zod, "values", () => e.innerType._zod.values), t._zod.parse = (r, n) => {
|
|
2943
2943
|
if (n.direction === "backward")
|
|
2944
2944
|
return e.innerType._zod.run(r, n);
|
|
2945
2945
|
const i = e.innerType._zod.run(r, n);
|
|
@@ -2958,7 +2958,7 @@ const $5 = /* @__PURE__ */ G("$ZodCatch", (t, e) => {
|
|
|
2958
2958
|
}), r.issues = [], r.fallback = !0), r);
|
|
2959
2959
|
};
|
|
2960
2960
|
}), jg = /* @__PURE__ */ G("$ZodPipe", (t, e) => {
|
|
2961
|
-
Ne.init(t, e),
|
|
2961
|
+
Ne.init(t, e), ge(t._zod, "values", () => e.in._zod.values), ge(t._zod, "optin", () => e.in._zod.optin), ge(t._zod, "optout", () => e.out._zod.optout), ge(t._zod, "propValues", () => e.in._zod.propValues), t._zod.parse = (r, n) => {
|
|
2962
2962
|
if (n.direction === "backward") {
|
|
2963
2963
|
const a = e.out._zod.run(r, n);
|
|
2964
2964
|
return a instanceof Promise ? a.then((s) => zo(s, e.in, n)) : zo(a, e.in, n);
|
|
@@ -2973,7 +2973,7 @@ function zo(t, e, r) {
|
|
|
2973
2973
|
const U5 = /* @__PURE__ */ G("$ZodPreprocess", (t, e) => {
|
|
2974
2974
|
jg.init(t, e);
|
|
2975
2975
|
}), Z5 = /* @__PURE__ */ G("$ZodReadonly", (t, e) => {
|
|
2976
|
-
Ne.init(t, e),
|
|
2976
|
+
Ne.init(t, e), ge(t._zod, "propValues", () => e.innerType._zod.propValues), ge(t._zod, "values", () => e.innerType._zod.values), ge(t._zod, "optin", () => e.innerType?._zod?.optin), ge(t._zod, "optout", () => e.innerType?._zod?.optout), t._zod.parse = (r, n) => {
|
|
2977
2977
|
if (n.direction === "backward")
|
|
2978
2978
|
return e.innerType._zod.run(r, n);
|
|
2979
2979
|
const i = e.innerType._zod.run(r, n);
|
|
@@ -4086,7 +4086,7 @@ const Pe = /* @__PURE__ */ G("ZodType", (t, e) => (Ne.init(t, e), Object.assign(
|
|
|
4086
4086
|
return mE(this, r);
|
|
4087
4087
|
},
|
|
4088
4088
|
array() {
|
|
4089
|
-
return
|
|
4089
|
+
return be(this);
|
|
4090
4090
|
},
|
|
4091
4091
|
or(r) {
|
|
4092
4092
|
return M([this, r]);
|
|
@@ -4335,11 +4335,11 @@ const tE = /* @__PURE__ */ G("ZodArray", (t, e) => {
|
|
|
4335
4335
|
}
|
|
4336
4336
|
});
|
|
4337
4337
|
});
|
|
4338
|
-
function
|
|
4338
|
+
function be(t, e) {
|
|
4339
4339
|
return /* @__PURE__ */ Vx(tE, t, e);
|
|
4340
4340
|
}
|
|
4341
4341
|
const eE = /* @__PURE__ */ G("ZodObject", (t, e) => {
|
|
4342
|
-
F5.init(t, e), Pe.init(t, e), t._zod.processJSONSchema = (r, n, i) => Qx(t, r, n, i),
|
|
4342
|
+
F5.init(t, e), Pe.init(t, e), t._zod.processJSONSchema = (r, n, i) => Qx(t, r, n, i), ge(t, "shape", () => e.shape), Hs(t, "ZodObject", {
|
|
4343
4343
|
keyof() {
|
|
4344
4344
|
return ht(Object.keys(this._zod.def.shape));
|
|
4345
4345
|
},
|
|
@@ -4484,7 +4484,7 @@ const sE = /* @__PURE__ */ G("ZodLiteral", (t, e) => {
|
|
|
4484
4484
|
}
|
|
4485
4485
|
});
|
|
4486
4486
|
});
|
|
4487
|
-
function
|
|
4487
|
+
function fe(t, e) {
|
|
4488
4488
|
return new sE({
|
|
4489
4489
|
type: "literal",
|
|
4490
4490
|
values: Array.isArray(t) ? t : [t],
|
|
@@ -4724,7 +4724,7 @@ const EE = {
|
|
|
4724
4724
|
Ba()
|
|
4725
4725
|
]))
|
|
4726
4726
|
}).strict(), BE = V({
|
|
4727
|
-
provider:
|
|
4727
|
+
provider: fe("akamai-netstorage"),
|
|
4728
4728
|
options: g(IE)
|
|
4729
4729
|
}).strict(), NE = V({
|
|
4730
4730
|
accountName: b(),
|
|
@@ -4738,26 +4738,26 @@ const EE = {
|
|
|
4738
4738
|
Ba()
|
|
4739
4739
|
]))
|
|
4740
4740
|
}).strict(), TE = V({
|
|
4741
|
-
provider:
|
|
4741
|
+
provider: fe("azure-blob-storage"),
|
|
4742
4742
|
options: g(NE)
|
|
4743
4743
|
}).strict(), PE = V({
|
|
4744
4744
|
bucket: b(),
|
|
4745
4745
|
prefix: g(b()),
|
|
4746
4746
|
filename: g(b())
|
|
4747
4747
|
}).strict(), ME = V({
|
|
4748
|
-
provider:
|
|
4748
|
+
provider: fe("google-cloud-storage"),
|
|
4749
4749
|
options: g(PE)
|
|
4750
4750
|
}).strict(), VE = V({
|
|
4751
4751
|
folderId: b(),
|
|
4752
4752
|
filename: g(b())
|
|
4753
4753
|
}).strict(), zE = V({
|
|
4754
|
-
provider:
|
|
4754
|
+
provider: fe("google-drive"),
|
|
4755
4755
|
options: VE
|
|
4756
4756
|
}).strict(), OE = V({
|
|
4757
|
-
playbackPolicy: g(
|
|
4757
|
+
playbackPolicy: g(be(ht(["public", "signed"]))),
|
|
4758
4758
|
passthrough: g(b().max(255))
|
|
4759
4759
|
}).strict(), RE = V({
|
|
4760
|
-
provider:
|
|
4760
|
+
provider: fe("mux"),
|
|
4761
4761
|
options: g(OE)
|
|
4762
4762
|
}).strict(), LE = V({
|
|
4763
4763
|
region: b(),
|
|
@@ -4766,10 +4766,10 @@ const EE = {
|
|
|
4766
4766
|
filename: g(b()),
|
|
4767
4767
|
acl: g(b())
|
|
4768
4768
|
}).strict(), $E = V({
|
|
4769
|
-
provider:
|
|
4769
|
+
provider: fe("s3"),
|
|
4770
4770
|
options: g(LE)
|
|
4771
4771
|
}).strict(), UE = V({
|
|
4772
|
-
provider:
|
|
4772
|
+
provider: fe("shotstack"),
|
|
4773
4773
|
exclude: g(Ee())
|
|
4774
4774
|
}).strict(), ZE = V({
|
|
4775
4775
|
title: g(b().max(150)),
|
|
@@ -4782,7 +4782,7 @@ const EE = {
|
|
|
4782
4782
|
disableStitch: g(Ee()).default(!1),
|
|
4783
4783
|
disableComment: g(Ee()).default(!1)
|
|
4784
4784
|
}).strict(), jE = V({
|
|
4785
|
-
provider:
|
|
4785
|
+
provider: fe("tiktok"),
|
|
4786
4786
|
options: g(ZE)
|
|
4787
4787
|
}).strict(), GE = V({
|
|
4788
4788
|
view: g(ht([
|
|
@@ -4810,7 +4810,7 @@ const EE = {
|
|
|
4810
4810
|
privacy: g(GE),
|
|
4811
4811
|
folderUri: g(b())
|
|
4812
4812
|
}).strict(), HE = V({
|
|
4813
|
-
provider:
|
|
4813
|
+
provider: fe("vimeo"),
|
|
4814
4814
|
options: g(WE)
|
|
4815
4815
|
}).strict(), rl = t1("provider", [
|
|
4816
4816
|
UE,
|
|
@@ -4894,7 +4894,7 @@ const EE = {
|
|
|
4894
4894
|
provider: b().default("dolby"),
|
|
4895
4895
|
options: eA
|
|
4896
4896
|
}).strict(), iA = V({
|
|
4897
|
-
enhancement:
|
|
4897
|
+
enhancement: fe("dolbyEnhancement_DolbyEnhancement")
|
|
4898
4898
|
}).strict().and(rA), nA = V({
|
|
4899
4899
|
audio: g(iA)
|
|
4900
4900
|
}).strict(), aA = V({
|
|
@@ -4903,7 +4903,7 @@ const EE = {
|
|
|
4903
4903
|
detail: b()
|
|
4904
4904
|
}).strict();
|
|
4905
4905
|
V({
|
|
4906
|
-
errors:
|
|
4906
|
+
errors: be(aA)
|
|
4907
4907
|
}).strict();
|
|
4908
4908
|
const sA = V({
|
|
4909
4909
|
type: b(),
|
|
@@ -4977,7 +4977,7 @@ const lA = V({
|
|
|
4977
4977
|
attributes: pA
|
|
4978
4978
|
}).strict();
|
|
4979
4979
|
V({
|
|
4980
|
-
data:
|
|
4980
|
+
data: be(o1)
|
|
4981
4981
|
}).strict();
|
|
4982
4982
|
V({
|
|
4983
4983
|
data: o1
|
|
@@ -5003,7 +5003,7 @@ const gA = V({
|
|
|
5003
5003
|
updated: g(b())
|
|
5004
5004
|
}).strict(), yA = V({
|
|
5005
5005
|
owner: b(),
|
|
5006
|
-
templates:
|
|
5006
|
+
templates: be(gA)
|
|
5007
5007
|
}).strict();
|
|
5008
5008
|
V({
|
|
5009
5009
|
success: Ee(),
|
|
@@ -5129,7 +5129,7 @@ const bA = V({
|
|
|
5129
5129
|
if (!(t === "" || t === null || t === void 0))
|
|
5130
5130
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
5131
5131
|
}, W().gte(0).lte(360)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
5132
|
-
stops:
|
|
5132
|
+
stops: be(V({
|
|
5133
5133
|
offset: M([H((t) => {
|
|
5134
5134
|
if (!(t === "" || t === null || t === void 0))
|
|
5135
5135
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
@@ -5307,7 +5307,7 @@ V({
|
|
|
5307
5307
|
const PA = V({
|
|
5308
5308
|
url: b(),
|
|
5309
5309
|
id: b(),
|
|
5310
|
-
destinations:
|
|
5310
|
+
destinations: be(rl)
|
|
5311
5311
|
}).strict(), MA = V({
|
|
5312
5312
|
type: ht(["shape"]),
|
|
5313
5313
|
shape: ht([
|
|
@@ -5412,17 +5412,17 @@ const PA = V({
|
|
|
5412
5412
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
5413
5413
|
}, W().int().gte(1).lte(100)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
5414
5414
|
fps: g(M([
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5415
|
+
fe(12),
|
|
5416
|
+
fe(15),
|
|
5417
|
+
fe(23.976),
|
|
5418
|
+
fe(24),
|
|
5419
|
+
fe(25),
|
|
5420
|
+
fe(29.97),
|
|
5421
|
+
fe(30),
|
|
5422
|
+
fe(48),
|
|
5423
|
+
fe(50),
|
|
5424
|
+
fe(59.94),
|
|
5425
|
+
fe(60)
|
|
5426
5426
|
])),
|
|
5427
5427
|
speed: g(lA),
|
|
5428
5428
|
keyframeInterval: g(M([H((t) => {
|
|
@@ -5434,7 +5434,7 @@ const PA = V({
|
|
|
5434
5434
|
enhance: g(nA),
|
|
5435
5435
|
filename: g(b())
|
|
5436
5436
|
}).strict(), zA = V({
|
|
5437
|
-
renditions: g(
|
|
5437
|
+
renditions: g(be(v1)),
|
|
5438
5438
|
transcription: g(cA)
|
|
5439
5439
|
}).strict(), OA = V({
|
|
5440
5440
|
id: b(),
|
|
@@ -5469,7 +5469,7 @@ const PA = V({
|
|
|
5469
5469
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
5470
5470
|
}, W()), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
5471
5471
|
}).strict(), RA = V({
|
|
5472
|
-
renditions: g(
|
|
5472
|
+
renditions: g(be(OA))
|
|
5473
5473
|
}).strict(), LA = V({
|
|
5474
5474
|
id: b(),
|
|
5475
5475
|
owner: b(),
|
|
@@ -5508,7 +5508,7 @@ const PA = V({
|
|
|
5508
5508
|
attributes: LA
|
|
5509
5509
|
}).strict();
|
|
5510
5510
|
V({
|
|
5511
|
-
data:
|
|
5511
|
+
data: be(b1)
|
|
5512
5512
|
}).strict();
|
|
5513
5513
|
V({
|
|
5514
5514
|
data: b1
|
|
@@ -5534,7 +5534,7 @@ const $A = V({
|
|
|
5534
5534
|
src: b().min(1).max(5e5)
|
|
5535
5535
|
}).strict(), _1 = w1, ZA = V({
|
|
5536
5536
|
id: b(),
|
|
5537
|
-
merge: g(
|
|
5537
|
+
merge: g(be(s1))
|
|
5538
5538
|
}).strict(), jA = V({
|
|
5539
5539
|
horizontal: g(ht([
|
|
5540
5540
|
"left",
|
|
@@ -5662,17 +5662,17 @@ const $A = V({
|
|
|
5662
5662
|
])),
|
|
5663
5663
|
size: g(sf),
|
|
5664
5664
|
fps: g(M([
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5665
|
+
fe(12),
|
|
5666
|
+
fe(15),
|
|
5667
|
+
fe(23.976),
|
|
5668
|
+
fe(24),
|
|
5669
|
+
fe(25),
|
|
5670
|
+
fe(29.97),
|
|
5671
|
+
fe(30),
|
|
5672
|
+
fe(48),
|
|
5673
|
+
fe(50),
|
|
5674
|
+
fe(59.94),
|
|
5675
|
+
fe(60)
|
|
5676
5676
|
])),
|
|
5677
5677
|
scaleTo: g(ht([
|
|
5678
5678
|
"preview",
|
|
@@ -5694,7 +5694,7 @@ const $A = V({
|
|
|
5694
5694
|
range: g(dA),
|
|
5695
5695
|
poster: g(hA),
|
|
5696
5696
|
thumbnail: g(KA),
|
|
5697
|
-
destinations: g(
|
|
5697
|
+
destinations: g(be(rl))
|
|
5698
5698
|
}).strict(), nl = x1, JA = V({
|
|
5699
5699
|
in: g(ht([
|
|
5700
5700
|
"none",
|
|
@@ -5882,7 +5882,7 @@ const $A = V({
|
|
|
5882
5882
|
if (!(t === "" || t === null || t === void 0))
|
|
5883
5883
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
5884
5884
|
}, W().gte(0).lte(1)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
5885
|
-
|
|
5885
|
+
be(Si)
|
|
5886
5886
|
])),
|
|
5887
5887
|
speed: g(M([H((t) => {
|
|
5888
5888
|
if (!(t === "" || t === null || t === void 0))
|
|
@@ -5900,14 +5900,14 @@ const $A = V({
|
|
|
5900
5900
|
if (!(t === "" || t === null || t === void 0))
|
|
5901
5901
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
5902
5902
|
}, W().gte(-10).lte(10)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
5903
|
-
|
|
5903
|
+
be(Si)
|
|
5904
5904
|
])),
|
|
5905
5905
|
y: g(M([
|
|
5906
5906
|
M([H((t) => {
|
|
5907
5907
|
if (!(t === "" || t === null || t === void 0))
|
|
5908
5908
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
5909
5909
|
}, W().gte(-10).lte(10)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
5910
|
-
|
|
5910
|
+
be(Si)
|
|
5911
5911
|
]))
|
|
5912
5912
|
}).strict(), tk = V({
|
|
5913
5913
|
angle: g(M([
|
|
@@ -5915,7 +5915,7 @@ const $A = V({
|
|
|
5915
5915
|
if (!(t === "" || t === null || t === void 0))
|
|
5916
5916
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
5917
5917
|
}, W().gte(-360).lte(360)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
5918
|
-
|
|
5918
|
+
be(Si)
|
|
5919
5919
|
]))
|
|
5920
5920
|
}).strict(), ek = V({
|
|
5921
5921
|
x: g(M([
|
|
@@ -5923,14 +5923,14 @@ const $A = V({
|
|
|
5923
5923
|
if (!(t === "" || t === null || t === void 0))
|
|
5924
5924
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
5925
5925
|
}, W().gte(-100).lte(100)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
5926
|
-
|
|
5926
|
+
be(Si)
|
|
5927
5927
|
])),
|
|
5928
5928
|
y: g(M([
|
|
5929
5929
|
M([H((t) => {
|
|
5930
5930
|
if (!(t === "" || t === null || t === void 0))
|
|
5931
5931
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
5932
5932
|
}, W().gte(-100).lte(100)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
5933
|
-
|
|
5933
|
+
be(Si)
|
|
5934
5934
|
]))
|
|
5935
5935
|
}).strict(), rk = V({
|
|
5936
5936
|
type: ht(["text-to-speech"]),
|
|
@@ -5947,7 +5947,7 @@ const $A = V({
|
|
|
5947
5947
|
if (!(t === "" || t === null || t === void 0))
|
|
5948
5948
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
5949
5949
|
}, W().gte(0).lte(1)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
5950
|
-
|
|
5950
|
+
be(Si)
|
|
5951
5951
|
])),
|
|
5952
5952
|
speed: g(M([H((t) => {
|
|
5953
5953
|
if (!(t === "" || t === null || t === void 0))
|
|
@@ -6014,7 +6014,7 @@ const $A = V({
|
|
|
6014
6014
|
if (!(t === "" || t === null || t === void 0))
|
|
6015
6015
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
6016
6016
|
}, W().gte(0).lte(1)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
6017
|
-
|
|
6017
|
+
be(Si)
|
|
6018
6018
|
])),
|
|
6019
6019
|
volumeEffect: g(ht([
|
|
6020
6020
|
"none",
|
|
@@ -6072,7 +6072,7 @@ const $A = V({
|
|
|
6072
6072
|
if (!(t === "" || t === null || t === void 0))
|
|
6073
6073
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
6074
6074
|
}, W()), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
6075
|
-
|
|
6075
|
+
be(Si)
|
|
6076
6076
|
])),
|
|
6077
6077
|
width: g(M([H((t) => {
|
|
6078
6078
|
if (!(t === "" || t === null || t === void 0))
|
|
@@ -6131,7 +6131,7 @@ const $A = V({
|
|
|
6131
6131
|
if (!(t === "" || t === null || t === void 0))
|
|
6132
6132
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
6133
6133
|
}, W()), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
6134
|
-
|
|
6134
|
+
be(Si)
|
|
6135
6135
|
])),
|
|
6136
6136
|
transform: g(nk),
|
|
6137
6137
|
alias: g(M([b().regex(/^[A-Za-z0-9_-]+$/), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
@@ -6142,17 +6142,17 @@ const $A = V({
|
|
|
6142
6142
|
}
|
|
6143
6143
|
return t;
|
|
6144
6144
|
}), A1 = V({
|
|
6145
|
-
clips:
|
|
6145
|
+
clips: be(ok).min(1)
|
|
6146
6146
|
}).strict(), of = A1, k1 = V({
|
|
6147
6147
|
soundtrack: g(UA),
|
|
6148
6148
|
background: g(b()),
|
|
6149
|
-
fonts: g(
|
|
6150
|
-
tracks:
|
|
6149
|
+
fonts: g(be(XE)),
|
|
6150
|
+
tracks: be(A1).min(1),
|
|
6151
6151
|
cache: g(Ee())
|
|
6152
6152
|
}).strict(), uk = k1, qs = V({
|
|
6153
6153
|
timeline: k1,
|
|
6154
6154
|
output: x1,
|
|
6155
|
-
merge: g(
|
|
6155
|
+
merge: g(be(s1)),
|
|
6156
6156
|
callback: g(b()),
|
|
6157
6157
|
disk: g(ht(["local", "mount"])),
|
|
6158
6158
|
instance: g(ht([
|
|
@@ -6895,7 +6895,7 @@ var fk = je({ "node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-e
|
|
|
6895
6895
|
var Zt = rt - 14, kt, Ft, wt = 0;
|
|
6896
6896
|
if (rt === f && (wt = xt), Ct !== wt && (yt = 0, Ct = wt), kt = yt, yt > 0 && (yt -= 2, yt <<= Zt), yt += Z.readBits(Zt) + 3, Ft = yt - kt, gt + Ft > L)
|
|
6897
6897
|
throw new Error("[ReadHuffmanCodeLengths] symbol + repeat_delta > num_symbols");
|
|
6898
|
-
for (var
|
|
6898
|
+
for (var ie = 0; ie < Ft; ie++) Q[gt + ie] = Ct;
|
|
6899
6899
|
gt += Ft, Ct !== 0 && (It -= Ft << 15 - Ct);
|
|
6900
6900
|
}
|
|
6901
6901
|
}
|
|
@@ -6931,8 +6931,8 @@ var fk = je({ "node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-e
|
|
|
6931
6931
|
} else {
|
|
6932
6932
|
var Ct, rt = new Uint8Array(x), Zt = 32, kt = 0, Ft = [new a(2, 0), new a(2, 4), new a(2, 3), new a(3, 2), new a(2, 0), new a(2, 4), new a(2, 3), new a(4, 1), new a(2, 0), new a(2, 4), new a(2, 3), new a(3, 2), new a(2, 0), new a(2, 4), new a(2, 3), new a(4, 5)];
|
|
6933
6933
|
for (Ct = xt; Ct < x && Zt > 0; ++Ct) {
|
|
6934
|
-
var wt = A[Ct],
|
|
6935
|
-
Z.fillBitWindow(),
|
|
6934
|
+
var wt = A[Ct], ie = 0, le;
|
|
6935
|
+
Z.fillBitWindow(), ie += Z.val_ >>> Z.bit_pos_ & 15, Z.bit_pos_ += Ft[ie].bits, le = Ft[ie].value, rt[wt] = le, le !== 0 && (Zt -= 32 >> le, ++kt);
|
|
6936
6936
|
}
|
|
6937
6937
|
if (!(kt === 1 || Zt === 0)) throw new Error("[ReadHuffmanCode] invalid num_codes or space");
|
|
6938
6938
|
at(rt, j, yt, Z);
|
|
@@ -6997,7 +6997,7 @@ var fk = je({ "node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-e
|
|
|
6997
6997
|
var Ct = Q * 2, It = Q, X = q(L, Q * w, yt), nt;
|
|
6998
6998
|
X === 0 ? nt = gt[Ct + (xt[It] & 1)] : X === 1 ? nt = gt[Ct + (xt[It] - 1 & 1)] + 1 : nt = X - 2, nt >= j && (nt -= j), Z[Q] = nt, gt[Ct + (xt[It] & 1)] = nt, ++xt[It];
|
|
6999
6999
|
}
|
|
7000
|
-
function
|
|
7000
|
+
function ae(j, L, Q, Z, gt, xt) {
|
|
7001
7001
|
var yt = gt + 1, Ct = Q & gt, It = xt.pos_ & n.IBUF_MASK, X;
|
|
7002
7002
|
if (L < 8 || xt.bit_pos_ + (L << 3) < xt.bit_end_pos_) {
|
|
7003
7003
|
for (; L-- > 0; )
|
|
@@ -7026,7 +7026,7 @@ var fk = je({ "node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-e
|
|
|
7026
7026
|
throw new Error("[CopyUncompressedBlockToOutput] not enough bytes");
|
|
7027
7027
|
xt.reset();
|
|
7028
7028
|
}
|
|
7029
|
-
function
|
|
7029
|
+
function ue(j) {
|
|
7030
7030
|
var L = j.bit_pos_ + 7 & -8, Q = j.readBits(L - j.bit_pos_);
|
|
7031
7031
|
return Q == 0;
|
|
7032
7032
|
}
|
|
@@ -7041,36 +7041,36 @@ var fk = je({ "node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-e
|
|
|
7041
7041
|
var Q = new e(j);
|
|
7042
7042
|
L == null && (L = Jt(j));
|
|
7043
7043
|
var Z = new Uint8Array(L), gt = new r(Z);
|
|
7044
|
-
return
|
|
7044
|
+
return se(Q, gt), gt.pos < gt.buffer.length && (gt.buffer = gt.buffer.subarray(0, gt.pos)), gt.buffer;
|
|
7045
7045
|
}
|
|
7046
7046
|
t.BrotliDecompressBuffer = Ue;
|
|
7047
|
-
function
|
|
7048
|
-
var Q, Z = 0, gt = 0, xt = 0, yt, Ct = 0, It, X, nt, vt, rt = [16, 15, 11, 4], Zt = 0, kt = 0, Ft = 0, wt = [new Et(0, 0), new Et(0, 0), new Et(0, 0)],
|
|
7049
|
-
mt = new n(j), xt = S(mt), yt = (1 << xt) - 16, It = 1 << xt, X = It - 1, nt = new Uint8Array(It + Ve + i.maxDictionaryWordLength), vt = It,
|
|
7047
|
+
function se(j, L) {
|
|
7048
|
+
var Q, Z = 0, gt = 0, xt = 0, yt, Ct = 0, It, X, nt, vt, rt = [16, 15, 11, 4], Zt = 0, kt = 0, Ft = 0, wt = [new Et(0, 0), new Et(0, 0), new Et(0, 0)], ie, le, mt, Ve = 128 + n.READ_SIZE;
|
|
7049
|
+
mt = new n(j), xt = S(mt), yt = (1 << xt) - 16, It = 1 << xt, X = It - 1, nt = new Uint8Array(It + Ve + i.maxDictionaryWordLength), vt = It, ie = [], le = [];
|
|
7050
7050
|
for (var Je = 0; Je < 3 * w; Je++)
|
|
7051
|
-
|
|
7051
|
+
ie[Je] = new a(0, 0), le[Je] = new a(0, 0);
|
|
7052
7052
|
for (; !gt; ) {
|
|
7053
|
-
var
|
|
7053
|
+
var ye = 0, Tr, Oe = [1 << 28, 1 << 28, 1 << 28], Ht = [0], jt = [1, 1, 1], or = [0, 1, 0, 1, 0, 1], hr = [0], qe, Ae, Fe, Dn, Ii = null, Bi = null, Qi, Ur = null, dr, Pr = 0, ur = null, Ni = 0, Fn = 0, D = null, pt = 0, Gt = 0, ce = 0, ee, Le;
|
|
7054
7054
|
for (Q = 0; Q < 3; ++Q)
|
|
7055
7055
|
wt[Q].codes = null, wt[Q].htrees = null;
|
|
7056
7056
|
mt.readMoreInput();
|
|
7057
7057
|
var Mr = tt(mt);
|
|
7058
|
-
if (
|
|
7059
|
-
var ei = new Uint8Array(Z +
|
|
7058
|
+
if (ye = Mr.meta_block_length, Z + ye > L.buffer.length) {
|
|
7059
|
+
var ei = new Uint8Array(Z + ye);
|
|
7060
7060
|
ei.set(L.buffer), L.buffer = ei;
|
|
7061
7061
|
}
|
|
7062
7062
|
if (gt = Mr.input_end, Tr = Mr.is_uncompressed, Mr.is_metadata) {
|
|
7063
|
-
for (
|
|
7063
|
+
for (ue(mt); ye > 0; --ye)
|
|
7064
7064
|
mt.readMoreInput(), mt.readBits(8);
|
|
7065
7065
|
continue;
|
|
7066
7066
|
}
|
|
7067
|
-
if (
|
|
7067
|
+
if (ye !== 0) {
|
|
7068
7068
|
if (Tr) {
|
|
7069
|
-
mt.bit_pos_ = mt.bit_pos_ + 7 & -8,
|
|
7069
|
+
mt.bit_pos_ = mt.bit_pos_ + 7 & -8, ae(L, ye, Z, nt, X, mt), Z += ye;
|
|
7070
7070
|
continue;
|
|
7071
7071
|
}
|
|
7072
7072
|
for (Q = 0; Q < 3; ++Q)
|
|
7073
|
-
jt[Q] = U(mt) + 1, jt[Q] >= 2 && (dt(jt[Q] + 2,
|
|
7073
|
+
jt[Q] = U(mt) + 1, jt[Q] >= 2 && (dt(jt[Q] + 2, ie, Q * w, mt), dt(m, le, Q * w, mt), Oe[Q] = ct(le, Q * w, mt), hr[Q] = 1);
|
|
7074
7074
|
for (mt.readMoreInput(), qe = mt.readBits(2), Ae = v + (mt.readBits(4) << qe), Fe = (1 << qe) - 1, Dn = Ae + (48 << qe), Bi = new Uint8Array(jt[0]), Q = 0; Q < jt[0]; ++Q)
|
|
7075
7075
|
mt.readMoreInput(), Bi[Q] = mt.readBits(2) << 1;
|
|
7076
7076
|
var In = zt(jt[0] << C, mt);
|
|
@@ -7078,14 +7078,14 @@ var fk = je({ "node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-e
|
|
|
7078
7078
|
var Xa = zt(jt[2] << y, mt);
|
|
7079
7079
|
for (dr = Xa.num_htrees, Ur = Xa.context_map, wt[0] = new Et(h, Qi), wt[1] = new Et(p, jt[1]), wt[2] = new Et(Dn, dr), Q = 0; Q < 3; ++Q)
|
|
7080
7080
|
wt[Q].decode(mt);
|
|
7081
|
-
for (ur = 0, D = 0,
|
|
7081
|
+
for (ur = 0, D = 0, ee = Bi[Ht[0]], Gt = o.lookupOffsets[ee], ce = o.lookupOffsets[ee + 1], Le = wt[1].htrees[0]; ye > 0; ) {
|
|
7082
7082
|
var tn, Bn, sa, en, Nn, lr, cr, br, Ti, li, At;
|
|
7083
|
-
for (mt.readMoreInput(), Oe[1] === 0 && (Lt(jt[1],
|
|
7084
|
-
mt.readMoreInput(), Oe[0] === 0 && (Lt(jt[0],
|
|
7085
|
-
if (
|
|
7083
|
+
for (mt.readMoreInput(), Oe[1] === 0 && (Lt(jt[1], ie, 1, Ht, or, hr, mt), Oe[1] = ct(le, w, mt), Le = wt[1].htrees[Ht[1]]), --Oe[1], tn = q(wt[1].codes, Le, mt), Bn = tn >> 6, Bn >= 2 ? (Bn -= 2, cr = -1) : cr = 0, sa = u.kInsertRangeLut[Bn] + (tn >> 3 & 7), en = u.kCopyRangeLut[Bn] + (tn & 7), Nn = u.kInsertLengthPrefixCode[sa].offset + mt.readBits(u.kInsertLengthPrefixCode[sa].nbits), lr = u.kCopyLengthPrefixCode[en].offset + mt.readBits(u.kCopyLengthPrefixCode[en].nbits), kt = nt[Z - 1 & X], Ft = nt[Z - 2 & X], li = 0; li < Nn; ++li)
|
|
7084
|
+
mt.readMoreInput(), Oe[0] === 0 && (Lt(jt[0], ie, 0, Ht, or, hr, mt), Oe[0] = ct(le, 0, mt), Pr = Ht[0] << C, ur = Pr, ee = Bi[Ht[0]], Gt = o.lookupOffsets[ee], ce = o.lookupOffsets[ee + 1]), Ti = o.lookup[Gt + kt] | o.lookup[ce + Ft], Ni = Ii[ur + Ti], --Oe[0], Ft = kt, kt = q(wt[0].codes, wt[0].htrees[Ni], mt), nt[Z & X] = kt, (Z & X) === X && L.write(nt, It), ++Z;
|
|
7085
|
+
if (ye -= Nn, ye <= 0) break;
|
|
7086
7086
|
if (cr < 0) {
|
|
7087
7087
|
var Ti;
|
|
7088
|
-
if (mt.readMoreInput(), Oe[2] === 0 && (Lt(jt[2],
|
|
7088
|
+
if (mt.readMoreInput(), Oe[2] === 0 && (Lt(jt[2], ie, 2, Ht, or, hr, mt), Oe[2] = ct(le, 2 * w, mt), Fn = Ht[2] << y, D = Fn), --Oe[2], Ti = (lr > 4 ? 3 : lr - 2) & 255, pt = Ur[D + Ti], cr = q(wt[2].codes, wt[2].htrees[pt], mt), cr >= Ae) {
|
|
7089
7089
|
var Pi, Do, Zr;
|
|
7090
7090
|
cr -= Ae, Do = cr & Fe, cr >>= qe, Pi = (cr >> 1) + 1, Zr = (2 + (cr & 1) << Pi) - 4, cr = Ae + (Zr + mt.readBits(Pi) << qe) + Do;
|
|
7091
7091
|
}
|
|
@@ -7097,19 +7097,19 @@ var fk = je({ "node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-e
|
|
|
7097
7097
|
var Zr = i.offsetsByLength[lr], Tn = br - Ct - 1, Ka = i.sizeBitsByLength[lr], Ja = (1 << Ka) - 1, oa = Tn & Ja, Pn = Tn >> Ka;
|
|
7098
7098
|
if (Zr += oa * lr, Pn < l.kNumTransforms) {
|
|
7099
7099
|
var ua = l.transformDictionaryWord(nt, At, Zr, lr, Pn);
|
|
7100
|
-
if (At += ua, Z += ua,
|
|
7100
|
+
if (At += ua, Z += ua, ye -= ua, At >= vt) {
|
|
7101
7101
|
L.write(nt, It);
|
|
7102
7102
|
for (var Mi = 0; Mi < At - vt; Mi++) nt[Mi] = nt[vt + Mi];
|
|
7103
7103
|
}
|
|
7104
7104
|
} else
|
|
7105
|
-
throw new Error("Invalid backward reference. pos: " + Z + " distance: " + br + " len: " + lr + " bytes left: " +
|
|
7105
|
+
throw new Error("Invalid backward reference. pos: " + Z + " distance: " + br + " len: " + lr + " bytes left: " + ye);
|
|
7106
7106
|
} else
|
|
7107
|
-
throw new Error("Invalid backward reference. pos: " + Z + " distance: " + br + " len: " + lr + " bytes left: " +
|
|
7107
|
+
throw new Error("Invalid backward reference. pos: " + Z + " distance: " + br + " len: " + lr + " bytes left: " + ye);
|
|
7108
7108
|
else {
|
|
7109
|
-
if (cr > 0 && (rt[Zt & 3] = br, ++Zt), lr >
|
|
7110
|
-
throw new Error("Invalid backward reference. pos: " + Z + " distance: " + br + " len: " + lr + " bytes left: " +
|
|
7109
|
+
if (cr > 0 && (rt[Zt & 3] = br, ++Zt), lr > ye)
|
|
7110
|
+
throw new Error("Invalid backward reference. pos: " + Z + " distance: " + br + " len: " + lr + " bytes left: " + ye);
|
|
7111
7111
|
for (li = 0; li < lr; ++li)
|
|
7112
|
-
nt[Z & X] = nt[Z - br & X], (Z & X) === X && L.write(nt, It), ++Z, --
|
|
7112
|
+
nt[Z & X] = nt[Z - br & X], (Z & X) === X && L.write(nt, It), ++Z, --ye;
|
|
7113
7113
|
}
|
|
7114
7114
|
kt = nt[Z - 1 & X], Ft = nt[Z - 2 & X];
|
|
7115
7115
|
}
|
|
@@ -7118,13 +7118,13 @@ var fk = je({ "node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-e
|
|
|
7118
7118
|
}
|
|
7119
7119
|
L.write(nt, Z & X);
|
|
7120
7120
|
}
|
|
7121
|
-
t.BrotliDecompress =
|
|
7121
|
+
t.BrotliDecompress = se, i.init();
|
|
7122
7122
|
} }), _k = je({ "node_modules/.pnpm/brotli@1.3.3/node_modules/brotli/decompress.js"(t, e) {
|
|
7123
7123
|
e.exports = N1().BrotliDecompressBuffer;
|
|
7124
7124
|
} }), Y = {};
|
|
7125
|
-
qi(Y, { $brand: () => M1, $input: () => m4, $output: () => p4, NEVER: () => P1, TimePrecision: () => w4, ZodAny: () => wh, ZodArray: () => Eh, ZodBase64: () => Vl, ZodBase64URL: () => zl, ZodBigInt: () => mo, ZodBigIntFormat: () => Ll, ZodBoolean: () => po, ZodCIDRv4: () => Pl, ZodCIDRv6: () => Ml, ZodCUID: () => Sl, ZodCUID2: () => Dl, ZodCatch: () => Wh, ZodCodec: () => wo, ZodCustom: () => _o, ZodCustomStringFormat: () => Ya, ZodDate: () => Ul, ZodDefault: () => Lh, ZodDiscriminatedUnion: () => kh, ZodE164: () => Ol, ZodEmail: () => El, ZodEmoji: () => Al, ZodEnum: () => La, ZodError: () => W8, ZodExactOptional: () => zh, ZodFile: () => Mh, ZodFirstPartyTypeKind: () => m0, ZodFunction: () => rd, ZodGUID: () => Rs, ZodIPv4: () => Nl, ZodIPv6: () => Tl, ZodISODate: () => ch, ZodISODateTime: () => lh, ZodISODuration: () => hh, ZodISOTime: () => fh, ZodIntersection: () => Sh, ZodIssueCode: () => H8, ZodJWT: () => Rl, ZodKSUID: () => Bl, ZodLazy: () => Qh, ZodLiteral: () => Ph, ZodMAC: () => dh, ZodMap: () => Nh, ZodNaN: () => Yh, ZodNanoID: () => kl, ZodNever: () => xh, ZodNonOptional: () => Hl, ZodNull: () => vh, ZodNullable: () => Rh, ZodNumber: () => ho, ZodNumberFormat: () => ra, ZodObject: () => yo, ZodOptional: () => Wl, ZodPipe: () => bo, ZodPrefault: () => Uh, ZodPreprocess: () => qh, ZodPromise: () => ed, ZodReadonly: () => Xh, ZodRealError: () => $r, ZodRecord: () => Ra, ZodSet: () => Th, ZodString: () => co, ZodStringFormat: () =>
|
|
7125
|
+
qi(Y, { $brand: () => M1, $input: () => m4, $output: () => p4, NEVER: () => P1, TimePrecision: () => w4, ZodAny: () => wh, ZodArray: () => Eh, ZodBase64: () => Vl, ZodBase64URL: () => zl, ZodBigInt: () => mo, ZodBigIntFormat: () => Ll, ZodBoolean: () => po, ZodCIDRv4: () => Pl, ZodCIDRv6: () => Ml, ZodCUID: () => Sl, ZodCUID2: () => Dl, ZodCatch: () => Wh, ZodCodec: () => wo, ZodCustom: () => _o, ZodCustomStringFormat: () => Ya, ZodDate: () => Ul, ZodDefault: () => Lh, ZodDiscriminatedUnion: () => kh, ZodE164: () => Ol, ZodEmail: () => El, ZodEmoji: () => Al, ZodEnum: () => La, ZodError: () => W8, ZodExactOptional: () => zh, ZodFile: () => Mh, ZodFirstPartyTypeKind: () => m0, ZodFunction: () => rd, ZodGUID: () => Rs, ZodIPv4: () => Nl, ZodIPv6: () => Tl, ZodISODate: () => ch, ZodISODateTime: () => lh, ZodISODuration: () => hh, ZodISOTime: () => fh, ZodIntersection: () => Sh, ZodIssueCode: () => H8, ZodJWT: () => Rl, ZodKSUID: () => Bl, ZodLazy: () => Qh, ZodLiteral: () => Ph, ZodMAC: () => dh, ZodMap: () => Nh, ZodNaN: () => Yh, ZodNanoID: () => kl, ZodNever: () => xh, ZodNonOptional: () => Hl, ZodNull: () => vh, ZodNullable: () => Rh, ZodNumber: () => ho, ZodNumberFormat: () => ra, ZodObject: () => yo, ZodOptional: () => Wl, ZodPipe: () => bo, ZodPrefault: () => Uh, ZodPreprocess: () => qh, ZodPromise: () => ed, ZodReadonly: () => Xh, ZodRealError: () => $r, ZodRecord: () => Ra, ZodSet: () => Th, ZodString: () => co, ZodStringFormat: () => xe, ZodSuccess: () => Gh, ZodSymbol: () => gh, ZodTemplateLiteral: () => Jh, ZodTransform: () => Vh, ZodTuple: () => Fh, ZodType: () => Ut, ZodULID: () => Fl, ZodURL: () => fo, ZodUUID: () => Ci, ZodUndefined: () => yh, ZodUnion: () => vo, ZodUnknown: () => _h, ZodVoid: () => Ch, ZodXID: () => Il, ZodXor: () => Ah, _ZodString: () => Cl, _default: () => $h, _function: () => Au, any: () => j3, array: () => go, base64: () => S3, base64url: () => D3, bigint: () => R3, boolean: () => mh, catch: () => Hh, check: () => dw, cidrv4: () => A3, cidrv6: () => k3, clone: () => ti, codec: () => lw, coerce: () => xw, config: () => ir, core: () => T1, cuid: () => y3, cuid2: () => v3, custom: () => pw, date: () => W3, decode: () => t3, decodeAsync: () => r3, describe: () => mw, discriminatedUnion: () => J3, e164: () => F3, email: () => o3, emoji: () => m3, encode: () => Qb, encodeAsync: () => e3, endsWith: () => gl, enum: () => jl, exactOptional: () => Oh, file: () => aw, flattenError: () => ff, float32: () => M3, float64: () => V3, formatError: () => hf, fromJSONSchema: () => Q8, function: () => Au, getErrorMap: () => q8, globalRegistry: () => Kr, gt: () => bn, gte: () => Sr, guid: () => u3, hash: () => P3, hex: () => T3, hostname: () => N3, httpUrl: () => p3, includes: () => pl, instanceof: () => yw, int: () => Cu, int32: () => z3, int64: () => L3, intersection: () => Dh, invertCodec: () => cw, ipv4: () => x3, ipv6: () => E3, iso: () => uh, json: () => bw, jwt: () => I3, keyof: () => H3, ksuid: () => _3, lazy: () => td, length: () => oo, literal: () => nw, locales: () => Tf, looseObject: () => X3, looseRecord: () => tw, lowercase: () => hl, lt: () => vn, lte: () => Jr, mac: () => C3, map: () => ew, maxLength: () => so, maxSize: () => Ha, meta: () => gw, mime: () => yl, minLength: () => Jn, minSize: () => wn, multipleOf: () => Ma, nan: () => uw, nanoid: () => g3, nativeEnum: () => iw, negative: () => rh, never: () => $l, nonnegative: () => nh, nonoptional: () => jh, nonpositive: () => ih, normalize: () => vl, null: () => bh, nullable: () => $s, nullish: () => sw, number: () => ph, object: () => Y3, optional: () => Ls, overwrite: () => Ki, parse: () => qb, parseAsync: () => Xb, partialRecord: () => Q3, pipe: () => Eu, positive: () => eh, prefault: () => Zh, preprocess: () => ww, prettifyError: () => X1, promise: () => hw, property: () => ah, readonly: () => Kh, record: () => Bh, refine: () => id, regex: () => fl, regexes: () => yn, registry: () => Pf, safeDecode: () => n3, safeDecodeAsync: () => s3, safeEncode: () => i3, safeEncodeAsync: () => a3, safeParse: () => Kb, safeParseAsync: () => Jb, set: () => rw, setErrorMap: () => Y8, size: () => ao, slugify: () => xl, startsWith: () => ml, strictObject: () => q3, string: () => Os, stringFormat: () => B3, stringbool: () => vw, success: () => ow, superRefine: () => nd, symbol: () => U3, templateLiteral: () => fw, toJSONSchema: () => $b, toLowerCase: () => wl, toUpperCase: () => _l, transform: () => Gl, treeifyError: () => Y1, trim: () => bl, tuple: () => Ih, uint32: () => O3, uint64: () => $3, ulid: () => b3, undefined: () => Z3, union: () => Zl, unknown: () => Qn, uppercase: () => dl, url: () => d3, util: () => qt, uuid: () => l3, uuidv4: () => c3, uuidv6: () => f3, uuidv7: () => h3, void: () => G3, xid: () => w3, xor: () => K3 });
|
|
7126
7126
|
var T1 = {};
|
|
7127
|
-
qi(T1, { $ZodAny: () => Iv, $ZodArray: () => Mv, $ZodAsyncError: () => Gn, $ZodBase64: () => vv, $ZodBase64URL: () => wv, $ZodBigInt: () => Df, $ZodBigIntFormat: () => kv, $ZodBoolean: () => Sf, $ZodCIDRv4: () => gv, $ZodCIDRv6: () => yv, $ZodCUID: () => nv, $ZodCUID2: () => av, $ZodCatch: () => r4, $ZodCheck: () => Me, $ZodCheckBigIntFormat: () => Py, $ZodCheckEndsWith: () => Wy, $ZodCheckGreaterThan: () => Ef, $ZodCheckIncludes: () => jy, $ZodCheckLengthEquals: () => Ly, $ZodCheckLessThan: () => Cf, $ZodCheckLowerCase: () => Uy, $ZodCheckMaxLength: () => Oy, $ZodCheckMaxSize: () => My, $ZodCheckMimeType: () => Yy, $ZodCheckMinLength: () => Ry, $ZodCheckMinSize: () => Vy, $ZodCheckMultipleOf: () => Ny, $ZodCheckNumberFormat: () => Ty, $ZodCheckOverwrite: () => qy, $ZodCheckProperty: () => Hy, $ZodCheckRegex: () => $y, $ZodCheckSizeEquals: () => zy, $ZodCheckStartsWith: () => Gy, $ZodCheckStringFormat: () => io, $ZodCheckUpperCase: () => Zy, $ZodCodec: () => Nf, $ZodCustom: () => c4, $ZodCustomStringFormat: () => Ev, $ZodDate: () => Pv, $ZodDefault: () => Jv, $ZodDiscriminatedUnion: () => $v, $ZodE164: () => _v, $ZodEmail: () => tv, $ZodEmoji: () => rv, $ZodEncodeError: () => al, $ZodEnum: () => Wv, $ZodError: () => cf, $ZodExactOptional: () => Xv, $ZodFile: () => Yv, $ZodFunction: () => o4, $ZodGUID: () => Jy, $ZodIPv4: () => dv, $ZodIPv6: () => pv, $ZodISODate: () => cv, $ZodISODateTime: () => lv, $ZodISODuration: () => hv, $ZodISOTime: () => fv, $ZodIntersection: () => Uv, $ZodJWT: () => Cv, $ZodKSUID: () => uv, $ZodLazy: () => l4, $ZodLiteral: () => Hv, $ZodMAC: () => mv, $ZodMap: () => jv, $ZodNaN: () => i4, $ZodNanoID: () => iv, $ZodNever: () => Nv, $ZodNonOptional: () => t4, $ZodNull: () => Fv, $ZodNullable: () => Kv, $ZodNumber: () => kf, $ZodNumberFormat: () => Av, $ZodObject: () => Ov, $ZodObjectJIT: () => Rv, $ZodOptional: () => If, $ZodPipe: () => Bf, $ZodPrefault: () => Qv, $ZodPreprocess: () => n4, $ZodPromise: () => u4, $ZodReadonly: () => a4, $ZodRealError: () => Lr, $ZodRecord: () => Zv, $ZodRegistry: () => g4, $ZodSet: () => Gv, $ZodString: () => no, $ZodStringFormat: () =>
|
|
7127
|
+
qi(T1, { $ZodAny: () => Iv, $ZodArray: () => Mv, $ZodAsyncError: () => Gn, $ZodBase64: () => vv, $ZodBase64URL: () => wv, $ZodBigInt: () => Df, $ZodBigIntFormat: () => kv, $ZodBoolean: () => Sf, $ZodCIDRv4: () => gv, $ZodCIDRv6: () => yv, $ZodCUID: () => nv, $ZodCUID2: () => av, $ZodCatch: () => r4, $ZodCheck: () => Me, $ZodCheckBigIntFormat: () => Py, $ZodCheckEndsWith: () => Wy, $ZodCheckGreaterThan: () => Ef, $ZodCheckIncludes: () => jy, $ZodCheckLengthEquals: () => Ly, $ZodCheckLessThan: () => Cf, $ZodCheckLowerCase: () => Uy, $ZodCheckMaxLength: () => Oy, $ZodCheckMaxSize: () => My, $ZodCheckMimeType: () => Yy, $ZodCheckMinLength: () => Ry, $ZodCheckMinSize: () => Vy, $ZodCheckMultipleOf: () => Ny, $ZodCheckNumberFormat: () => Ty, $ZodCheckOverwrite: () => qy, $ZodCheckProperty: () => Hy, $ZodCheckRegex: () => $y, $ZodCheckSizeEquals: () => zy, $ZodCheckStartsWith: () => Gy, $ZodCheckStringFormat: () => io, $ZodCheckUpperCase: () => Zy, $ZodCodec: () => Nf, $ZodCustom: () => c4, $ZodCustomStringFormat: () => Ev, $ZodDate: () => Pv, $ZodDefault: () => Jv, $ZodDiscriminatedUnion: () => $v, $ZodE164: () => _v, $ZodEmail: () => tv, $ZodEmoji: () => rv, $ZodEncodeError: () => al, $ZodEnum: () => Wv, $ZodError: () => cf, $ZodExactOptional: () => Xv, $ZodFile: () => Yv, $ZodFunction: () => o4, $ZodGUID: () => Jy, $ZodIPv4: () => dv, $ZodIPv6: () => pv, $ZodISODate: () => cv, $ZodISODateTime: () => lv, $ZodISODuration: () => hv, $ZodISOTime: () => fv, $ZodIntersection: () => Uv, $ZodJWT: () => Cv, $ZodKSUID: () => uv, $ZodLazy: () => l4, $ZodLiteral: () => Hv, $ZodMAC: () => mv, $ZodMap: () => jv, $ZodNaN: () => i4, $ZodNanoID: () => iv, $ZodNever: () => Nv, $ZodNonOptional: () => t4, $ZodNull: () => Fv, $ZodNullable: () => Kv, $ZodNumber: () => kf, $ZodNumberFormat: () => Av, $ZodObject: () => Ov, $ZodObjectJIT: () => Rv, $ZodOptional: () => If, $ZodPipe: () => Bf, $ZodPrefault: () => Qv, $ZodPreprocess: () => n4, $ZodPromise: () => u4, $ZodReadonly: () => a4, $ZodRealError: () => Lr, $ZodRecord: () => Zv, $ZodRegistry: () => g4, $ZodSet: () => Gv, $ZodString: () => no, $ZodStringFormat: () => _e, $ZodSuccess: () => e4, $ZodSymbol: () => Sv, $ZodTemplateLiteral: () => s4, $ZodTransform: () => qv, $ZodTuple: () => Ff, $ZodType: () => Rt, $ZodULID: () => sv, $ZodURL: () => ev, $ZodUUID: () => Qy, $ZodUndefined: () => Dv, $ZodUnion: () => ll, $ZodUnknown: () => Bv, $ZodVoid: () => Tv, $ZodXID: () => ov, $ZodXor: () => Lv, $brand: () => M1, $constructor: () => P, $input: () => m4, $output: () => p4, Doc: () => Xy, JSONSchema: () => G8, JSONSchemaGenerator: () => j8, NEVER: () => P1, TimePrecision: () => w4, _any: () => $4, _array: () => Y4, _base64: () => Kf, _base64url: () => Jf, _bigint: () => P4, _boolean: () => N4, _catch: () => z8, _check: () => Q4, _cidrv4: () => qf, _cidrv6: () => Xf, _coercedBigint: () => M4, _coercedBoolean: () => T4, _coercedDate: () => W4, _coercedNumber: () => k4, _coercedString: () => v4, _cuid: () => Uf, _cuid2: () => Zf, _custom: () => X4, _date: () => G4, _decode: () => pf, _decodeAsync: () => gf, _default: () => P8, _discriminatedUnion: () => x8, _e164: () => Qf, _email: () => Mf, _emoji: () => Lf, _encode: () => df, _encodeAsync: () => mf, _endsWith: () => gl, _enum: () => D8, _file: () => q4, _float32: () => D4, _float64: () => F4, _gt: () => bn, _gte: () => Sr, _guid: () => xu, _includes: () => pl, _int: () => S4, _int32: () => I4, _int64: () => V4, _intersection: () => C8, _ipv4: () => Hf, _ipv6: () => Yf, _isoDate: () => x4, _isoDateTime: () => _4, _isoDuration: () => E4, _isoTime: () => C4, _jwt: () => th, _ksuid: () => Wf, _lazy: () => $8, _length: () => oo, _literal: () => I8, _lowercase: () => hl, _lt: () => vn, _lte: () => Jr, _mac: () => b4, _map: () => k8, _max: () => Jr, _maxLength: () => so, _maxSize: () => Ha, _mime: () => yl, _min: () => Sr, _minLength: () => Jn, _minSize: () => wn, _multipleOf: () => Ma, _nan: () => H4, _nanoid: () => $f, _nativeEnum: () => F8, _negative: () => rh, _never: () => Z4, _nonnegative: () => nh, _nonoptional: () => M8, _nonpositive: () => ih, _normalize: () => vl, _null: () => L4, _nullable: () => T8, _number: () => A4, _optional: () => N8, _overwrite: () => Ki, _parse: () => Ks, _parseAsync: () => Js, _pipe: () => O8, _positive: () => eh, _promise: () => U8, _property: () => ah, _readonly: () => R8, _record: () => A8, _refine: () => K4, _regex: () => fl, _safeDecode: () => vf, _safeDecodeAsync: () => wf, _safeEncode: () => yf, _safeEncodeAsync: () => bf, _safeParse: () => Qs, _safeParseAsync: () => to, _set: () => S8, _size: () => ao, _slugify: () => xl, _startsWith: () => ml, _string: () => y4, _stringFormat: () => uo, _stringbool: () => rb, _success: () => V8, _superRefine: () => J4, _symbol: () => O4, _templateLiteral: () => L8, _toLowerCase: () => wl, _toUpperCase: () => _l, _transform: () => B8, _trim: () => bl, _tuple: () => E8, _uint32: () => B4, _uint64: () => z4, _ulid: () => jf, _undefined: () => R4, _union: () => w8, _unknown: () => U4, _uppercase: () => dl, _url: () => cl, _uuid: () => Vf, _uuidv4: () => zf, _uuidv6: () => Of, _uuidv7: () => Rf, _void: () => j4, _xid: () => Gf, _xor: () => _8, clone: () => ti, config: () => ir, createStandardJSONSchemaMethod: () => zs, createToJSONSchemaMethod: () => ib, decode: () => qk, decodeAsync: () => Kk, describe: () => tb, encode: () => Yk, encodeAsync: () => Xk, extractDefs: () => za, finalize: () => Oa, flattenError: () => ff, formatError: () => hf, globalConfig: () => Vs, globalRegistry: () => Kr, initializeContext: () => Va, isValidBase64: () => Af, isValidBase64URL: () => bv, isValidJWT: () => xv, locales: () => Tf, meta: () => eb, parse: () => f0, parseAsync: () => h0, prettifyError: () => X1, process: () => ve, regexes: () => yn, registry: () => Pf, safeDecode: () => Qk, safeDecodeAsync: () => e7, safeEncode: () => Jk, safeEncodeAsync: () => t7, safeParse: () => K1, safeParseAsync: () => J1, toDotPath: () => q1, toJSONSchema: () => $b, treeifyError: () => Y1, util: () => qt, version: () => Ky });
|
|
7128
7128
|
var yp, P1 = Object.freeze({ status: "aborted" });
|
|
7129
7129
|
function P(t, e, r) {
|
|
7130
7130
|
function n(o, u) {
|
|
@@ -7993,21 +7993,21 @@ var Hy = P("$ZodCheckProperty", (t, e) => {
|
|
|
7993
7993
|
}
|
|
7994
7994
|
return typeof r.value == "string" || r.issues.push({ expected: "string", code: "invalid_type", input: r.value, inst: t }), r;
|
|
7995
7995
|
};
|
|
7996
|
-
}),
|
|
7996
|
+
}), _e = P("$ZodStringFormat", (t, e) => {
|
|
7997
7997
|
io.init(t, e), no.init(t, e);
|
|
7998
7998
|
}), Jy = P("$ZodGUID", (t, e) => {
|
|
7999
|
-
e.pattern ?? (e.pattern = sy),
|
|
7999
|
+
e.pattern ?? (e.pattern = sy), _e.init(t, e);
|
|
8000
8000
|
}), Qy = P("$ZodUUID", (t, e) => {
|
|
8001
8001
|
if (e.version) {
|
|
8002
8002
|
const n = { v1: 1, v2: 2, v3: 3, v4: 4, v5: 5, v6: 6, v7: 7, v8: 8 }[e.version];
|
|
8003
8003
|
if (n === void 0) throw new Error(`Invalid UUID version: "${e.version}"`);
|
|
8004
8004
|
e.pattern ?? (e.pattern = Pa(n));
|
|
8005
8005
|
} else e.pattern ?? (e.pattern = Pa());
|
|
8006
|
-
|
|
8006
|
+
_e.init(t, e);
|
|
8007
8007
|
}), tv = P("$ZodEmail", (t, e) => {
|
|
8008
|
-
e.pattern ?? (e.pattern = oy),
|
|
8008
|
+
e.pattern ?? (e.pattern = oy), _e.init(t, e);
|
|
8009
8009
|
}), ev = P("$ZodURL", (t, e) => {
|
|
8010
|
-
|
|
8010
|
+
_e.init(t, e), t._zod.check = (r) => {
|
|
8011
8011
|
try {
|
|
8012
8012
|
const n = r.value.trim();
|
|
8013
8013
|
if (!e.normalize && e.protocol?.source === gy.source && !/^https?:\/\//i.test(n)) {
|
|
@@ -8022,31 +8022,31 @@ var Hy = P("$ZodCheckProperty", (t, e) => {
|
|
|
8022
8022
|
}
|
|
8023
8023
|
};
|
|
8024
8024
|
}), rv = P("$ZodEmoji", (t, e) => {
|
|
8025
|
-
e.pattern ?? (e.pattern = ly()),
|
|
8025
|
+
e.pattern ?? (e.pattern = ly()), _e.init(t, e);
|
|
8026
8026
|
}), iv = P("$ZodNanoID", (t, e) => {
|
|
8027
|
-
e.pattern ?? (e.pattern = ny),
|
|
8027
|
+
e.pattern ?? (e.pattern = ny), _e.init(t, e);
|
|
8028
8028
|
}), nv = P("$ZodCUID", (t, e) => {
|
|
8029
|
-
e.pattern ?? (e.pattern = Q1),
|
|
8029
|
+
e.pattern ?? (e.pattern = Q1), _e.init(t, e);
|
|
8030
8030
|
}), av = P("$ZodCUID2", (t, e) => {
|
|
8031
|
-
e.pattern ?? (e.pattern = ty),
|
|
8031
|
+
e.pattern ?? (e.pattern = ty), _e.init(t, e);
|
|
8032
8032
|
}), sv = P("$ZodULID", (t, e) => {
|
|
8033
|
-
e.pattern ?? (e.pattern = ey),
|
|
8033
|
+
e.pattern ?? (e.pattern = ey), _e.init(t, e);
|
|
8034
8034
|
}), ov = P("$ZodXID", (t, e) => {
|
|
8035
|
-
e.pattern ?? (e.pattern = ry),
|
|
8035
|
+
e.pattern ?? (e.pattern = ry), _e.init(t, e);
|
|
8036
8036
|
}), uv = P("$ZodKSUID", (t, e) => {
|
|
8037
|
-
e.pattern ?? (e.pattern = iy),
|
|
8037
|
+
e.pattern ?? (e.pattern = iy), _e.init(t, e);
|
|
8038
8038
|
}), lv = P("$ZodISODateTime", (t, e) => {
|
|
8039
|
-
e.pattern ?? (e.pattern = xy(e)),
|
|
8039
|
+
e.pattern ?? (e.pattern = xy(e)), _e.init(t, e);
|
|
8040
8040
|
}), cv = P("$ZodISODate", (t, e) => {
|
|
8041
|
-
e.pattern ?? (e.pattern = by),
|
|
8041
|
+
e.pattern ?? (e.pattern = by), _e.init(t, e);
|
|
8042
8042
|
}), fv = P("$ZodISOTime", (t, e) => {
|
|
8043
|
-
e.pattern ?? (e.pattern = _y(e)),
|
|
8043
|
+
e.pattern ?? (e.pattern = _y(e)), _e.init(t, e);
|
|
8044
8044
|
}), hv = P("$ZodISODuration", (t, e) => {
|
|
8045
|
-
e.pattern ?? (e.pattern = ay),
|
|
8045
|
+
e.pattern ?? (e.pattern = ay), _e.init(t, e);
|
|
8046
8046
|
}), dv = P("$ZodIPv4", (t, e) => {
|
|
8047
|
-
e.pattern ?? (e.pattern = cy),
|
|
8047
|
+
e.pattern ?? (e.pattern = cy), _e.init(t, e), t._zod.bag.format = "ipv4";
|
|
8048
8048
|
}), pv = P("$ZodIPv6", (t, e) => {
|
|
8049
|
-
e.pattern ?? (e.pattern = fy),
|
|
8049
|
+
e.pattern ?? (e.pattern = fy), _e.init(t, e), t._zod.bag.format = "ipv6", t._zod.check = (r) => {
|
|
8050
8050
|
try {
|
|
8051
8051
|
new URL(`http://[${r.value}]`);
|
|
8052
8052
|
} catch {
|
|
@@ -8054,11 +8054,11 @@ var Hy = P("$ZodCheckProperty", (t, e) => {
|
|
|
8054
8054
|
}
|
|
8055
8055
|
};
|
|
8056
8056
|
}), mv = P("$ZodMAC", (t, e) => {
|
|
8057
|
-
e.pattern ?? (e.pattern = hy(e.delimiter)),
|
|
8057
|
+
e.pattern ?? (e.pattern = hy(e.delimiter)), _e.init(t, e), t._zod.bag.format = "mac";
|
|
8058
8058
|
}), gv = P("$ZodCIDRv4", (t, e) => {
|
|
8059
|
-
e.pattern ?? (e.pattern = dy),
|
|
8059
|
+
e.pattern ?? (e.pattern = dy), _e.init(t, e);
|
|
8060
8060
|
}), yv = P("$ZodCIDRv6", (t, e) => {
|
|
8061
|
-
e.pattern ?? (e.pattern = py),
|
|
8061
|
+
e.pattern ?? (e.pattern = py), _e.init(t, e), t._zod.check = (r) => {
|
|
8062
8062
|
const n = r.value.split("/");
|
|
8063
8063
|
try {
|
|
8064
8064
|
if (n.length !== 2) throw new Error();
|
|
@@ -8083,7 +8083,7 @@ function Af(t) {
|
|
|
8083
8083
|
}
|
|
8084
8084
|
}
|
|
8085
8085
|
var vv = P("$ZodBase64", (t, e) => {
|
|
8086
|
-
e.pattern ?? (e.pattern = my),
|
|
8086
|
+
e.pattern ?? (e.pattern = my), _e.init(t, e), t._zod.bag.contentEncoding = "base64", t._zod.check = (r) => {
|
|
8087
8087
|
Af(r.value) || r.issues.push({ code: "invalid_format", format: "base64", input: r.value, inst: t, continue: !e.abort });
|
|
8088
8088
|
};
|
|
8089
8089
|
});
|
|
@@ -8093,11 +8093,11 @@ function bv(t) {
|
|
|
8093
8093
|
return Af(r);
|
|
8094
8094
|
}
|
|
8095
8095
|
var wv = P("$ZodBase64URL", (t, e) => {
|
|
8096
|
-
e.pattern ?? (e.pattern = _f),
|
|
8096
|
+
e.pattern ?? (e.pattern = _f), _e.init(t, e), t._zod.bag.contentEncoding = "base64url", t._zod.check = (r) => {
|
|
8097
8097
|
bv(r.value) || r.issues.push({ code: "invalid_format", format: "base64url", input: r.value, inst: t, continue: !e.abort });
|
|
8098
8098
|
};
|
|
8099
8099
|
}), _v = P("$ZodE164", (t, e) => {
|
|
8100
|
-
e.pattern ?? (e.pattern = yy),
|
|
8100
|
+
e.pattern ?? (e.pattern = yy), _e.init(t, e);
|
|
8101
8101
|
});
|
|
8102
8102
|
function xv(t, e = null) {
|
|
8103
8103
|
try {
|
|
@@ -8112,11 +8112,11 @@ function xv(t, e = null) {
|
|
|
8112
8112
|
}
|
|
8113
8113
|
}
|
|
8114
8114
|
var Cv = P("$ZodJWT", (t, e) => {
|
|
8115
|
-
|
|
8115
|
+
_e.init(t, e), t._zod.check = (r) => {
|
|
8116
8116
|
xv(r.value, e.alg) || r.issues.push({ code: "invalid_format", format: "jwt", input: r.value, inst: t, continue: !e.abort });
|
|
8117
8117
|
};
|
|
8118
8118
|
}), Ev = P("$ZodCustomStringFormat", (t, e) => {
|
|
8119
|
-
|
|
8119
|
+
_e.init(t, e), t._zod.check = (r) => {
|
|
8120
8120
|
e.fn(r.value) || r.issues.push({ code: "invalid_format", format: e.format, input: r.value, inst: t, continue: !e.abort });
|
|
8121
8121
|
};
|
|
8122
8122
|
}), kf = P("$ZodNumber", (t, e) => {
|
|
@@ -11579,7 +11579,7 @@ function Va(t) {
|
|
|
11579
11579
|
return e === "draft-4" && (e = "draft-04"), e === "draft-7" && (e = "draft-07"), { processors: t.processors ?? {}, metadataRegistry: t?.metadata ?? Kr, target: e, unrepresentable: t?.unrepresentable ?? "throw", override: t?.override ?? (() => {
|
|
11580
11580
|
}), io: t?.io ?? "output", counter: 0, seen: /* @__PURE__ */ new Map(), cycles: t?.cycles ?? "ref", reused: t?.reused ?? "inline", external: t?.external ?? void 0 };
|
|
11581
11581
|
}
|
|
11582
|
-
function
|
|
11582
|
+
function ve(t, e, r = { path: [], schemaPath: [] }) {
|
|
11583
11583
|
var n;
|
|
11584
11584
|
const i = t._zod.def, a = e.seen.get(t);
|
|
11585
11585
|
if (a)
|
|
@@ -11600,7 +11600,7 @@ function ye(t, e, r = { path: [], schemaPath: [] }) {
|
|
|
11600
11600
|
p(t, e, h, c);
|
|
11601
11601
|
}
|
|
11602
11602
|
const f = t._zod.parent;
|
|
11603
|
-
f && (s.ref || (s.ref = f),
|
|
11603
|
+
f && (s.ref || (s.ref = f), ve(f, e, c), e.seen.get(f).isParent = !0);
|
|
11604
11604
|
}
|
|
11605
11605
|
const u = e.metadataRegistry.get(t);
|
|
11606
11606
|
return u && Object.assign(s.schema, u), e.io === "input" && yr(t) && (delete s.schema.examples, delete s.schema.default), e.io === "input" && "_prefault" in s.schema && ((n = s.schema).default ?? (n.default = s.schema._prefault)), delete s.schema._prefault, e.seen.get(t).schema;
|
|
@@ -11763,10 +11763,10 @@ function yr(t, e) {
|
|
|
11763
11763
|
}
|
|
11764
11764
|
var ib = (t, e = {}) => (r) => {
|
|
11765
11765
|
const n = Va({ ...r, processors: e });
|
|
11766
|
-
return
|
|
11766
|
+
return ve(t, n), za(n, t), Oa(n, t);
|
|
11767
11767
|
}, zs = (t, e, r = {}) => (n) => {
|
|
11768
11768
|
const { libraryOptions: i, target: a } = n ?? {}, s = Va({ ...i ?? {}, target: a, io: e, processors: r });
|
|
11769
|
-
return
|
|
11769
|
+
return ve(t, s), za(s, t), Oa(s, t);
|
|
11770
11770
|
}, Z8 = { guid: "uuid", url: "uri", datetime: "date-time", json_string: "json-string", regex: "" }, nb = (t, e, r, n) => {
|
|
11771
11771
|
const i = r;
|
|
11772
11772
|
i.type = "string";
|
|
@@ -11852,28 +11852,28 @@ var ib = (t, e = {}) => (r) => {
|
|
|
11852
11852
|
throw new Error("Set cannot be represented in JSON Schema");
|
|
11853
11853
|
}, Sb = (t, e, r, n) => {
|
|
11854
11854
|
const i = r, a = t._zod.def, { minimum: s, maximum: o } = t._zod.bag;
|
|
11855
|
-
typeof s == "number" && (i.minItems = s), typeof o == "number" && (i.maxItems = o), i.type = "array", i.items =
|
|
11855
|
+
typeof s == "number" && (i.minItems = s), typeof o == "number" && (i.maxItems = o), i.type = "array", i.items = ve(a.element, e, { ...n, path: [...n.path, "items"] });
|
|
11856
11856
|
}, Db = (t, e, r, n) => {
|
|
11857
11857
|
const i = r, a = t._zod.def;
|
|
11858
11858
|
i.type = "object", i.properties = {};
|
|
11859
11859
|
const s = a.shape;
|
|
11860
11860
|
for (const l in s)
|
|
11861
|
-
i.properties[l] =
|
|
11861
|
+
i.properties[l] = ve(s[l], e, { ...n, path: [...n.path, "properties", l] });
|
|
11862
11862
|
const o = new Set(Object.keys(s)), u = new Set([...o].filter((l) => {
|
|
11863
11863
|
const c = a.shape[l]._zod;
|
|
11864
11864
|
return e.io === "input" ? c.optin === void 0 : c.optout === void 0;
|
|
11865
11865
|
}));
|
|
11866
|
-
u.size > 0 && (i.required = Array.from(u)), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties =
|
|
11866
|
+
u.size > 0 && (i.required = Array.from(u)), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties = ve(a.catchall, e, { ...n, path: [...n.path, "additionalProperties"] })) : e.io === "output" && (i.additionalProperties = !1);
|
|
11867
11867
|
}, sh = (t, e, r, n) => {
|
|
11868
|
-
const i = t._zod.def, a = i.inclusive === !1, s = i.options.map((o, u) =>
|
|
11868
|
+
const i = t._zod.def, a = i.inclusive === !1, s = i.options.map((o, u) => ve(o, e, { ...n, path: [...n.path, a ? "oneOf" : "anyOf", u] }));
|
|
11869
11869
|
a ? r.oneOf = s : r.anyOf = s;
|
|
11870
11870
|
}, Fb = (t, e, r, n) => {
|
|
11871
|
-
const i = t._zod.def, a =
|
|
11871
|
+
const i = t._zod.def, a = ve(i.left, e, { ...n, path: [...n.path, "allOf", 0] }), s = ve(i.right, e, { ...n, path: [...n.path, "allOf", 1] }), o = (l) => "allOf" in l && Object.keys(l).length === 1, u = [...o(a) ? a.allOf : [a], ...o(s) ? s.allOf : [s]];
|
|
11872
11872
|
r.allOf = u;
|
|
11873
11873
|
}, Ib = (t, e, r, n) => {
|
|
11874
11874
|
const i = r, a = t._zod.def;
|
|
11875
11875
|
i.type = "array";
|
|
11876
|
-
const s = e.target === "draft-2020-12" ? "prefixItems" : "items", o = e.target === "draft-2020-12" || e.target === "openapi-3.0" ? "items" : "additionalItems", u = a.items.map((h, p) =>
|
|
11876
|
+
const s = e.target === "draft-2020-12" ? "prefixItems" : "items", o = e.target === "draft-2020-12" || e.target === "openapi-3.0" ? "items" : "additionalItems", u = a.items.map((h, p) => ve(h, e, { ...n, path: [...n.path, s, p] })), l = a.rest ? ve(a.rest, e, { ...n, path: [...n.path, o, ...e.target === "openapi-3.0" ? [a.items.length] : []] }) : null;
|
|
11877
11877
|
e.target === "draft-2020-12" ? (i.prefixItems = u, l && (i.items = l)) : e.target === "openapi-3.0" ? (i.items = { anyOf: u }, l && i.items.anyOf.push(l), i.minItems = u.length, l || (i.maxItems = u.length)) : (i.items = u, l && (i.additionalItems = l));
|
|
11878
11878
|
const { minimum: c, maximum: f } = t._zod.bag;
|
|
11879
11879
|
typeof c == "number" && (i.minItems = c), typeof f == "number" && (i.maxItems = f);
|
|
@@ -11882,38 +11882,38 @@ var ib = (t, e = {}) => (r) => {
|
|
|
11882
11882
|
i.type = "object";
|
|
11883
11883
|
const s = a.keyType, u = s._zod.bag?.patterns;
|
|
11884
11884
|
if (a.mode === "loose" && u && u.size > 0) {
|
|
11885
|
-
const c =
|
|
11885
|
+
const c = ve(a.valueType, e, { ...n, path: [...n.path, "patternProperties", "*"] });
|
|
11886
11886
|
i.patternProperties = {};
|
|
11887
11887
|
for (const f of u)
|
|
11888
11888
|
i.patternProperties[f.source] = c;
|
|
11889
11889
|
} else
|
|
11890
|
-
(e.target === "draft-07" || e.target === "draft-2020-12") && (i.propertyNames =
|
|
11890
|
+
(e.target === "draft-07" || e.target === "draft-2020-12") && (i.propertyNames = ve(a.keyType, e, { ...n, path: [...n.path, "propertyNames"] })), i.additionalProperties = ve(a.valueType, e, { ...n, path: [...n.path, "additionalProperties"] });
|
|
11891
11891
|
const l = s._zod.values;
|
|
11892
11892
|
if (l) {
|
|
11893
11893
|
const c = [...l].filter((f) => typeof f == "string" || typeof f == "number");
|
|
11894
11894
|
c.length > 0 && (i.required = c);
|
|
11895
11895
|
}
|
|
11896
11896
|
}, Nb = (t, e, r, n) => {
|
|
11897
|
-
const i = t._zod.def, a =
|
|
11897
|
+
const i = t._zod.def, a = ve(i.innerType, e, n), s = e.seen.get(t);
|
|
11898
11898
|
e.target === "openapi-3.0" ? (s.ref = i.innerType, r.nullable = !0) : r.anyOf = [a, { type: "null" }];
|
|
11899
11899
|
}, Tb = (t, e, r, n) => {
|
|
11900
11900
|
const i = t._zod.def;
|
|
11901
|
-
|
|
11901
|
+
ve(i.innerType, e, n);
|
|
11902
11902
|
const a = e.seen.get(t);
|
|
11903
11903
|
a.ref = i.innerType;
|
|
11904
11904
|
}, Pb = (t, e, r, n) => {
|
|
11905
11905
|
const i = t._zod.def;
|
|
11906
|
-
|
|
11906
|
+
ve(i.innerType, e, n);
|
|
11907
11907
|
const a = e.seen.get(t);
|
|
11908
11908
|
a.ref = i.innerType, r.default = JSON.parse(JSON.stringify(i.defaultValue));
|
|
11909
11909
|
}, Mb = (t, e, r, n) => {
|
|
11910
11910
|
const i = t._zod.def;
|
|
11911
|
-
|
|
11911
|
+
ve(i.innerType, e, n);
|
|
11912
11912
|
const a = e.seen.get(t);
|
|
11913
11913
|
a.ref = i.innerType, e.io === "input" && (r._prefault = JSON.parse(JSON.stringify(i.defaultValue)));
|
|
11914
11914
|
}, Vb = (t, e, r, n) => {
|
|
11915
11915
|
const i = t._zod.def;
|
|
11916
|
-
|
|
11916
|
+
ve(i.innerType, e, n);
|
|
11917
11917
|
const a = e.seen.get(t);
|
|
11918
11918
|
a.ref = i.innerType;
|
|
11919
11919
|
let s;
|
|
@@ -11925,27 +11925,27 @@ var ib = (t, e = {}) => (r) => {
|
|
|
11925
11925
|
r.default = s;
|
|
11926
11926
|
}, zb = (t, e, r, n) => {
|
|
11927
11927
|
const i = t._zod.def, a = i.in._zod.traits.has("$ZodTransform"), s = e.io === "input" ? a ? i.out : i.in : i.out;
|
|
11928
|
-
|
|
11928
|
+
ve(s, e, n);
|
|
11929
11929
|
const o = e.seen.get(t);
|
|
11930
11930
|
o.ref = s;
|
|
11931
11931
|
}, Ob = (t, e, r, n) => {
|
|
11932
11932
|
const i = t._zod.def;
|
|
11933
|
-
|
|
11933
|
+
ve(i.innerType, e, n);
|
|
11934
11934
|
const a = e.seen.get(t);
|
|
11935
11935
|
a.ref = i.innerType, r.readOnly = !0;
|
|
11936
11936
|
}, Rb = (t, e, r, n) => {
|
|
11937
11937
|
const i = t._zod.def;
|
|
11938
|
-
|
|
11938
|
+
ve(i.innerType, e, n);
|
|
11939
11939
|
const a = e.seen.get(t);
|
|
11940
11940
|
a.ref = i.innerType;
|
|
11941
11941
|
}, oh = (t, e, r, n) => {
|
|
11942
11942
|
const i = t._zod.def;
|
|
11943
|
-
|
|
11943
|
+
ve(i.innerType, e, n);
|
|
11944
11944
|
const a = e.seen.get(t);
|
|
11945
11945
|
a.ref = i.innerType;
|
|
11946
11946
|
}, Lb = (t, e, r, n) => {
|
|
11947
11947
|
const i = t._zod.innerType;
|
|
11948
|
-
|
|
11948
|
+
ve(i, e, n);
|
|
11949
11949
|
const a = e.seen.get(t);
|
|
11950
11950
|
a.ref = i;
|
|
11951
11951
|
}, p0 = { string: nb, number: ab, boolean: sb, bigint: ob, symbol: ub, null: lb, undefined: cb, void: fb, never: hb, any: db, unknown: pb, date: mb, enum: gb, literal: yb, nan: vb, template_literal: bb, file: wb, success: _b, custom: xb, function: Cb, transform: Eb, map: Ab, set: kb, array: Sb, object: Db, union: sh, intersection: Fb, tuple: Ib, record: Bb, nullable: Nb, nonoptional: Tb, default: Pb, prefault: Mb, catch: Vb, pipe: zb, readonly: Ob, promise: Rb, optional: oh, lazy: Lb };
|
|
@@ -11954,7 +11954,7 @@ function $b(t, e) {
|
|
|
11954
11954
|
const n = t, i = Va({ ...e, processors: p0 }), a = {};
|
|
11955
11955
|
for (const u of n._idmap.entries()) {
|
|
11956
11956
|
const [l, c] = u;
|
|
11957
|
-
|
|
11957
|
+
ve(c, i);
|
|
11958
11958
|
}
|
|
11959
11959
|
const s = {}, o = { registry: n, uri: e?.uri, defs: a };
|
|
11960
11960
|
i.external = o;
|
|
@@ -11969,7 +11969,7 @@ function $b(t, e) {
|
|
|
11969
11969
|
return { schemas: s };
|
|
11970
11970
|
}
|
|
11971
11971
|
const r = Va({ ...e, processors: p0 });
|
|
11972
|
-
return
|
|
11972
|
+
return ve(t, r), za(r, t), Oa(r, t);
|
|
11973
11973
|
}
|
|
11974
11974
|
var j8 = class {
|
|
11975
11975
|
get metadataRegistry() {
|
|
@@ -12001,7 +12001,7 @@ var j8 = class {
|
|
|
12001
12001
|
e === "draft-4" && (e = "draft-04"), e === "draft-7" && (e = "draft-07"), this.ctx = Va({ processors: p0, target: e, ...t?.metadata && { metadata: t.metadata }, ...t?.unrepresentable && { unrepresentable: t.unrepresentable }, ...t?.override && { override: t.override }, ...t?.io && { io: t.io } });
|
|
12002
12002
|
}
|
|
12003
12003
|
process(t, e = { path: [], schemaPath: [] }) {
|
|
12004
|
-
return
|
|
12004
|
+
return ve(t, this.ctx, e);
|
|
12005
12005
|
}
|
|
12006
12006
|
emit(t, e) {
|
|
12007
12007
|
e && (e.cycles && (this.ctx.cycles = e.cycles), e.reused && (this.ctx.reused = e.reused), e.external && (this.ctx.external = e.external)), za(this.ctx, t);
|
|
@@ -12009,31 +12009,31 @@ var j8 = class {
|
|
|
12009
12009
|
return i;
|
|
12010
12010
|
}
|
|
12011
12011
|
}, G8 = {}, Ub = {};
|
|
12012
|
-
qi(Ub, { ZodAny: () => wh, ZodArray: () => Eh, ZodBase64: () => Vl, ZodBase64URL: () => zl, ZodBigInt: () => mo, ZodBigIntFormat: () => Ll, ZodBoolean: () => po, ZodCIDRv4: () => Pl, ZodCIDRv6: () => Ml, ZodCUID: () => Sl, ZodCUID2: () => Dl, ZodCatch: () => Wh, ZodCodec: () => wo, ZodCustom: () => _o, ZodCustomStringFormat: () => Ya, ZodDate: () => Ul, ZodDefault: () => Lh, ZodDiscriminatedUnion: () => kh, ZodE164: () => Ol, ZodEmail: () => El, ZodEmoji: () => Al, ZodEnum: () => La, ZodExactOptional: () => zh, ZodFile: () => Mh, ZodFunction: () => rd, ZodGUID: () => Rs, ZodIPv4: () => Nl, ZodIPv6: () => Tl, ZodIntersection: () => Sh, ZodJWT: () => Rl, ZodKSUID: () => Bl, ZodLazy: () => Qh, ZodLiteral: () => Ph, ZodMAC: () => dh, ZodMap: () => Nh, ZodNaN: () => Yh, ZodNanoID: () => kl, ZodNever: () => xh, ZodNonOptional: () => Hl, ZodNull: () => vh, ZodNullable: () => Rh, ZodNumber: () => ho, ZodNumberFormat: () => ra, ZodObject: () => yo, ZodOptional: () => Wl, ZodPipe: () => bo, ZodPrefault: () => Uh, ZodPreprocess: () => qh, ZodPromise: () => ed, ZodReadonly: () => Xh, ZodRecord: () => Ra, ZodSet: () => Th, ZodString: () => co, ZodStringFormat: () =>
|
|
12012
|
+
qi(Ub, { ZodAny: () => wh, ZodArray: () => Eh, ZodBase64: () => Vl, ZodBase64URL: () => zl, ZodBigInt: () => mo, ZodBigIntFormat: () => Ll, ZodBoolean: () => po, ZodCIDRv4: () => Pl, ZodCIDRv6: () => Ml, ZodCUID: () => Sl, ZodCUID2: () => Dl, ZodCatch: () => Wh, ZodCodec: () => wo, ZodCustom: () => _o, ZodCustomStringFormat: () => Ya, ZodDate: () => Ul, ZodDefault: () => Lh, ZodDiscriminatedUnion: () => kh, ZodE164: () => Ol, ZodEmail: () => El, ZodEmoji: () => Al, ZodEnum: () => La, ZodExactOptional: () => zh, ZodFile: () => Mh, ZodFunction: () => rd, ZodGUID: () => Rs, ZodIPv4: () => Nl, ZodIPv6: () => Tl, ZodIntersection: () => Sh, ZodJWT: () => Rl, ZodKSUID: () => Bl, ZodLazy: () => Qh, ZodLiteral: () => Ph, ZodMAC: () => dh, ZodMap: () => Nh, ZodNaN: () => Yh, ZodNanoID: () => kl, ZodNever: () => xh, ZodNonOptional: () => Hl, ZodNull: () => vh, ZodNullable: () => Rh, ZodNumber: () => ho, ZodNumberFormat: () => ra, ZodObject: () => yo, ZodOptional: () => Wl, ZodPipe: () => bo, ZodPrefault: () => Uh, ZodPreprocess: () => qh, ZodPromise: () => ed, ZodReadonly: () => Xh, ZodRecord: () => Ra, ZodSet: () => Th, ZodString: () => co, ZodStringFormat: () => xe, ZodSuccess: () => Gh, ZodSymbol: () => gh, ZodTemplateLiteral: () => Jh, ZodTransform: () => Vh, ZodTuple: () => Fh, ZodType: () => Ut, ZodULID: () => Fl, ZodURL: () => fo, ZodUUID: () => Ci, ZodUndefined: () => yh, ZodUnion: () => vo, ZodUnknown: () => _h, ZodVoid: () => Ch, ZodXID: () => Il, ZodXor: () => Ah, _ZodString: () => Cl, _default: () => $h, _function: () => Au, any: () => j3, array: () => go, base64: () => S3, base64url: () => D3, bigint: () => R3, boolean: () => mh, catch: () => Hh, check: () => dw, cidrv4: () => A3, cidrv6: () => k3, codec: () => lw, cuid: () => y3, cuid2: () => v3, custom: () => pw, date: () => W3, describe: () => mw, discriminatedUnion: () => J3, e164: () => F3, email: () => o3, emoji: () => m3, enum: () => jl, exactOptional: () => Oh, file: () => aw, float32: () => M3, float64: () => V3, function: () => Au, guid: () => u3, hash: () => P3, hex: () => T3, hostname: () => N3, httpUrl: () => p3, instanceof: () => yw, int: () => Cu, int32: () => z3, int64: () => L3, intersection: () => Dh, invertCodec: () => cw, ipv4: () => x3, ipv6: () => E3, json: () => bw, jwt: () => I3, keyof: () => H3, ksuid: () => _3, lazy: () => td, literal: () => nw, looseObject: () => X3, looseRecord: () => tw, mac: () => C3, map: () => ew, meta: () => gw, nan: () => uw, nanoid: () => g3, nativeEnum: () => iw, never: () => $l, nonoptional: () => jh, null: () => bh, nullable: () => $s, nullish: () => sw, number: () => ph, object: () => Y3, optional: () => Ls, partialRecord: () => Q3, pipe: () => Eu, prefault: () => Zh, preprocess: () => ww, promise: () => hw, readonly: () => Kh, record: () => Bh, refine: () => id, set: () => rw, strictObject: () => q3, string: () => Os, stringFormat: () => B3, stringbool: () => vw, success: () => ow, superRefine: () => nd, symbol: () => U3, templateLiteral: () => fw, transform: () => Gl, tuple: () => Ih, uint32: () => O3, uint64: () => $3, ulid: () => b3, undefined: () => Z3, union: () => Zl, unknown: () => Qn, url: () => d3, uuid: () => l3, uuidv4: () => c3, uuidv6: () => f3, uuidv7: () => h3, void: () => G3, xid: () => w3, xor: () => K3 });
|
|
12013
12013
|
var Zb = {};
|
|
12014
12014
|
qi(Zb, { endsWith: () => gl, gt: () => bn, gte: () => Sr, includes: () => pl, length: () => oo, lowercase: () => hl, lt: () => vn, lte: () => Jr, maxLength: () => so, maxSize: () => Ha, mime: () => yl, minLength: () => Jn, minSize: () => wn, multipleOf: () => Ma, negative: () => rh, nonnegative: () => nh, nonpositive: () => ih, normalize: () => vl, overwrite: () => Ki, positive: () => eh, property: () => ah, regex: () => fl, size: () => ao, slugify: () => xl, startsWith: () => ml, toLowerCase: () => wl, toUpperCase: () => _l, trim: () => bl, uppercase: () => dl });
|
|
12015
12015
|
var uh = {};
|
|
12016
12016
|
qi(uh, { ZodISODate: () => ch, ZodISODateTime: () => lh, ZodISODuration: () => hh, ZodISOTime: () => fh, date: () => Gb, datetime: () => jb, duration: () => Hb, time: () => Wb });
|
|
12017
12017
|
var lh = P("ZodISODateTime", (t, e) => {
|
|
12018
|
-
lv.init(t, e),
|
|
12018
|
+
lv.init(t, e), xe.init(t, e);
|
|
12019
12019
|
});
|
|
12020
12020
|
function jb(t) {
|
|
12021
12021
|
return _4(lh, t);
|
|
12022
12022
|
}
|
|
12023
12023
|
var ch = P("ZodISODate", (t, e) => {
|
|
12024
|
-
cv.init(t, e),
|
|
12024
|
+
cv.init(t, e), xe.init(t, e);
|
|
12025
12025
|
});
|
|
12026
12026
|
function Gb(t) {
|
|
12027
12027
|
return x4(ch, t);
|
|
12028
12028
|
}
|
|
12029
12029
|
var fh = P("ZodISOTime", (t, e) => {
|
|
12030
|
-
fv.init(t, e),
|
|
12030
|
+
fv.init(t, e), xe.init(t, e);
|
|
12031
12031
|
});
|
|
12032
12032
|
function Wb(t) {
|
|
12033
12033
|
return C4(fh, t);
|
|
12034
12034
|
}
|
|
12035
12035
|
var hh = P("ZodISODuration", (t, e) => {
|
|
12036
|
-
hv.init(t, e),
|
|
12036
|
+
hv.init(t, e), xe.init(t, e);
|
|
12037
12037
|
});
|
|
12038
12038
|
function Hb(t) {
|
|
12039
12039
|
return E4(hh, t);
|
|
@@ -12163,22 +12163,22 @@ var Ut = P("ZodType", (t, e) => (Rt.init(t, e), Object.assign(t["~standard"], {
|
|
|
12163
12163
|
function Os(t) {
|
|
12164
12164
|
return y4(co, t);
|
|
12165
12165
|
}
|
|
12166
|
-
var
|
|
12167
|
-
|
|
12166
|
+
var xe = P("ZodStringFormat", (t, e) => {
|
|
12167
|
+
_e.init(t, e), Cl.init(t, e);
|
|
12168
12168
|
}), El = P("ZodEmail", (t, e) => {
|
|
12169
|
-
tv.init(t, e),
|
|
12169
|
+
tv.init(t, e), xe.init(t, e);
|
|
12170
12170
|
});
|
|
12171
12171
|
function o3(t) {
|
|
12172
12172
|
return Mf(El, t);
|
|
12173
12173
|
}
|
|
12174
12174
|
var Rs = P("ZodGUID", (t, e) => {
|
|
12175
|
-
Jy.init(t, e),
|
|
12175
|
+
Jy.init(t, e), xe.init(t, e);
|
|
12176
12176
|
});
|
|
12177
12177
|
function u3(t) {
|
|
12178
12178
|
return xu(Rs, t);
|
|
12179
12179
|
}
|
|
12180
12180
|
var Ci = P("ZodUUID", (t, e) => {
|
|
12181
|
-
Qy.init(t, e),
|
|
12181
|
+
Qy.init(t, e), xe.init(t, e);
|
|
12182
12182
|
});
|
|
12183
12183
|
function l3(t) {
|
|
12184
12184
|
return Vf(Ci, t);
|
|
@@ -12193,7 +12193,7 @@ function h3(t) {
|
|
|
12193
12193
|
return Rf(Ci, t);
|
|
12194
12194
|
}
|
|
12195
12195
|
var fo = P("ZodURL", (t, e) => {
|
|
12196
|
-
ev.init(t, e),
|
|
12196
|
+
ev.init(t, e), xe.init(t, e);
|
|
12197
12197
|
});
|
|
12198
12198
|
function d3(t) {
|
|
12199
12199
|
return cl(fo, t);
|
|
@@ -12202,103 +12202,103 @@ function p3(t) {
|
|
|
12202
12202
|
return cl(fo, { protocol: yn.httpProtocol, hostname: yn.domain, ...qt.normalizeParams(t) });
|
|
12203
12203
|
}
|
|
12204
12204
|
var Al = P("ZodEmoji", (t, e) => {
|
|
12205
|
-
rv.init(t, e),
|
|
12205
|
+
rv.init(t, e), xe.init(t, e);
|
|
12206
12206
|
});
|
|
12207
12207
|
function m3(t) {
|
|
12208
12208
|
return Lf(Al, t);
|
|
12209
12209
|
}
|
|
12210
12210
|
var kl = P("ZodNanoID", (t, e) => {
|
|
12211
|
-
iv.init(t, e),
|
|
12211
|
+
iv.init(t, e), xe.init(t, e);
|
|
12212
12212
|
});
|
|
12213
12213
|
function g3(t) {
|
|
12214
12214
|
return $f(kl, t);
|
|
12215
12215
|
}
|
|
12216
12216
|
var Sl = P("ZodCUID", (t, e) => {
|
|
12217
|
-
nv.init(t, e),
|
|
12217
|
+
nv.init(t, e), xe.init(t, e);
|
|
12218
12218
|
});
|
|
12219
12219
|
function y3(t) {
|
|
12220
12220
|
return Uf(Sl, t);
|
|
12221
12221
|
}
|
|
12222
12222
|
var Dl = P("ZodCUID2", (t, e) => {
|
|
12223
|
-
av.init(t, e),
|
|
12223
|
+
av.init(t, e), xe.init(t, e);
|
|
12224
12224
|
});
|
|
12225
12225
|
function v3(t) {
|
|
12226
12226
|
return Zf(Dl, t);
|
|
12227
12227
|
}
|
|
12228
12228
|
var Fl = P("ZodULID", (t, e) => {
|
|
12229
|
-
sv.init(t, e),
|
|
12229
|
+
sv.init(t, e), xe.init(t, e);
|
|
12230
12230
|
});
|
|
12231
12231
|
function b3(t) {
|
|
12232
12232
|
return jf(Fl, t);
|
|
12233
12233
|
}
|
|
12234
12234
|
var Il = P("ZodXID", (t, e) => {
|
|
12235
|
-
ov.init(t, e),
|
|
12235
|
+
ov.init(t, e), xe.init(t, e);
|
|
12236
12236
|
});
|
|
12237
12237
|
function w3(t) {
|
|
12238
12238
|
return Gf(Il, t);
|
|
12239
12239
|
}
|
|
12240
12240
|
var Bl = P("ZodKSUID", (t, e) => {
|
|
12241
|
-
uv.init(t, e),
|
|
12241
|
+
uv.init(t, e), xe.init(t, e);
|
|
12242
12242
|
});
|
|
12243
12243
|
function _3(t) {
|
|
12244
12244
|
return Wf(Bl, t);
|
|
12245
12245
|
}
|
|
12246
12246
|
var Nl = P("ZodIPv4", (t, e) => {
|
|
12247
|
-
dv.init(t, e),
|
|
12247
|
+
dv.init(t, e), xe.init(t, e);
|
|
12248
12248
|
});
|
|
12249
12249
|
function x3(t) {
|
|
12250
12250
|
return Hf(Nl, t);
|
|
12251
12251
|
}
|
|
12252
12252
|
var dh = P("ZodMAC", (t, e) => {
|
|
12253
|
-
mv.init(t, e),
|
|
12253
|
+
mv.init(t, e), xe.init(t, e);
|
|
12254
12254
|
});
|
|
12255
12255
|
function C3(t) {
|
|
12256
12256
|
return b4(dh, t);
|
|
12257
12257
|
}
|
|
12258
12258
|
var Tl = P("ZodIPv6", (t, e) => {
|
|
12259
|
-
pv.init(t, e),
|
|
12259
|
+
pv.init(t, e), xe.init(t, e);
|
|
12260
12260
|
});
|
|
12261
12261
|
function E3(t) {
|
|
12262
12262
|
return Yf(Tl, t);
|
|
12263
12263
|
}
|
|
12264
12264
|
var Pl = P("ZodCIDRv4", (t, e) => {
|
|
12265
|
-
gv.init(t, e),
|
|
12265
|
+
gv.init(t, e), xe.init(t, e);
|
|
12266
12266
|
});
|
|
12267
12267
|
function A3(t) {
|
|
12268
12268
|
return qf(Pl, t);
|
|
12269
12269
|
}
|
|
12270
12270
|
var Ml = P("ZodCIDRv6", (t, e) => {
|
|
12271
|
-
yv.init(t, e),
|
|
12271
|
+
yv.init(t, e), xe.init(t, e);
|
|
12272
12272
|
});
|
|
12273
12273
|
function k3(t) {
|
|
12274
12274
|
return Xf(Ml, t);
|
|
12275
12275
|
}
|
|
12276
12276
|
var Vl = P("ZodBase64", (t, e) => {
|
|
12277
|
-
vv.init(t, e),
|
|
12277
|
+
vv.init(t, e), xe.init(t, e);
|
|
12278
12278
|
});
|
|
12279
12279
|
function S3(t) {
|
|
12280
12280
|
return Kf(Vl, t);
|
|
12281
12281
|
}
|
|
12282
12282
|
var zl = P("ZodBase64URL", (t, e) => {
|
|
12283
|
-
wv.init(t, e),
|
|
12283
|
+
wv.init(t, e), xe.init(t, e);
|
|
12284
12284
|
});
|
|
12285
12285
|
function D3(t) {
|
|
12286
12286
|
return Jf(zl, t);
|
|
12287
12287
|
}
|
|
12288
12288
|
var Ol = P("ZodE164", (t, e) => {
|
|
12289
|
-
_v.init(t, e),
|
|
12289
|
+
_v.init(t, e), xe.init(t, e);
|
|
12290
12290
|
});
|
|
12291
12291
|
function F3(t) {
|
|
12292
12292
|
return Qf(Ol, t);
|
|
12293
12293
|
}
|
|
12294
12294
|
var Rl = P("ZodJWT", (t, e) => {
|
|
12295
|
-
Cv.init(t, e),
|
|
12295
|
+
Cv.init(t, e), xe.init(t, e);
|
|
12296
12296
|
});
|
|
12297
12297
|
function I3(t) {
|
|
12298
12298
|
return th(Rl, t);
|
|
12299
12299
|
}
|
|
12300
12300
|
var Ya = P("ZodCustomStringFormat", (t, e) => {
|
|
12301
|
-
Ev.init(t, e),
|
|
12301
|
+
Ev.init(t, e), xe.init(t, e);
|
|
12302
12302
|
});
|
|
12303
12303
|
function B3(t, e, r = {}) {
|
|
12304
12304
|
return uo(Ya, t, e, r);
|
|
@@ -13749,7 +13749,7 @@ var Ji = class {
|
|
|
13749
13749
|
let e = this.size(t), r = new Uint8Array(e), n = new Su(r);
|
|
13750
13750
|
return this.encode(n, t), r;
|
|
13751
13751
|
}
|
|
13752
|
-
},
|
|
13752
|
+
}, he = class extends Ji {
|
|
13753
13753
|
constructor(t, e = "BE") {
|
|
13754
13754
|
super(), this.type = t, this.endian = e, this.fn = this.type, this.type[this.type.length - 1] !== "8" && (this.fn += this.endian);
|
|
13755
13755
|
}
|
|
@@ -13762,23 +13762,23 @@ var Ji = class {
|
|
|
13762
13762
|
encode(t, e) {
|
|
13763
13763
|
return t[`write${this.fn}`](e);
|
|
13764
13764
|
}
|
|
13765
|
-
}, lt = new
|
|
13766
|
-
new
|
|
13767
|
-
var nD = new
|
|
13768
|
-
new
|
|
13769
|
-
var aD = new
|
|
13770
|
-
new
|
|
13771
|
-
var We = new
|
|
13772
|
-
new
|
|
13773
|
-
new
|
|
13774
|
-
new
|
|
13775
|
-
var oD = new
|
|
13776
|
-
new
|
|
13777
|
-
new
|
|
13778
|
-
new
|
|
13779
|
-
new
|
|
13780
|
-
new
|
|
13781
|
-
var ia = class extends
|
|
13765
|
+
}, lt = new he("UInt8"), iD = new he("UInt16", "BE"), d = iD;
|
|
13766
|
+
new he("UInt16", "LE");
|
|
13767
|
+
var nD = new he("UInt24", "BE"), mn = nD;
|
|
13768
|
+
new he("UInt24", "LE");
|
|
13769
|
+
var aD = new he("UInt32", "BE"), T = aD;
|
|
13770
|
+
new he("UInt32", "LE");
|
|
13771
|
+
var We = new he("Int8"), sD = new he("Int16", "BE"), J = sD;
|
|
13772
|
+
new he("Int16", "LE");
|
|
13773
|
+
new he("Int24", "BE");
|
|
13774
|
+
new he("Int24", "LE");
|
|
13775
|
+
var oD = new he("Int32", "BE"), $n = oD;
|
|
13776
|
+
new he("Int32", "LE");
|
|
13777
|
+
new he("Float", "BE");
|
|
13778
|
+
new he("Float", "LE");
|
|
13779
|
+
new he("Double", "BE");
|
|
13780
|
+
new he("Double", "LE");
|
|
13781
|
+
var ia = class extends he {
|
|
13782
13782
|
constructor(t, e, r = t >> 1) {
|
|
13783
13783
|
super(`Int${t}`, e), this._point = 1 << r;
|
|
13784
13784
|
}
|
|
@@ -13794,7 +13794,7 @@ var cD = new ia(32, "BE"), Re = cD;
|
|
|
13794
13794
|
new ia(32, "LE");
|
|
13795
13795
|
function Di(t, e, r) {
|
|
13796
13796
|
let n;
|
|
13797
|
-
if (typeof t == "number" ? n = t : typeof t == "function" ? n = t.call(r, r) : r && typeof t == "string" ? n = r[t] : e && t instanceof
|
|
13797
|
+
if (typeof t == "number" ? n = t : typeof t == "function" ? n = t.call(r, r) : r && typeof t == "string" ? n = r[t] : e && t instanceof he && (n = t.decode(e)), isNaN(n))
|
|
13798
13798
|
throw new Error("Not a fixed size");
|
|
13799
13799
|
return n;
|
|
13800
13800
|
}
|
|
@@ -13814,7 +13814,7 @@ var sd = class {
|
|
|
13814
13814
|
let r;
|
|
13815
13815
|
const { pos: n } = t, i = [];
|
|
13816
13816
|
let a = e;
|
|
13817
|
-
if (this.length != null && (r = Di(this.length, t, e)), this.length instanceof
|
|
13817
|
+
if (this.length != null && (r = Di(this.length, t, e)), this.length instanceof he && (Object.defineProperties(i, { parent: { value: e }, _startOffset: { value: n }, _currentOffset: { value: 0, writable: !0 }, _length: { value: r } }), a = i), r == null || this.lengthType === "bytes") {
|
|
13818
13818
|
const s = r != null ? t.pos + r : e?._length ? e._startOffset + e._length : t.length;
|
|
13819
13819
|
for (; t.pos < s; )
|
|
13820
13820
|
i.push(this.type.decode(t, a));
|
|
@@ -13827,17 +13827,17 @@ var sd = class {
|
|
|
13827
13827
|
if (!t)
|
|
13828
13828
|
return this.type.size(null, e) * Di(this.length, null, e);
|
|
13829
13829
|
let n = 0;
|
|
13830
|
-
this.length instanceof
|
|
13830
|
+
this.length instanceof he && (n += this.length.size(), e = { parent: e, pointerSize: 0 });
|
|
13831
13831
|
for (let i of t)
|
|
13832
13832
|
n += this.type.size(i, e);
|
|
13833
|
-
return e && r && this.length instanceof
|
|
13833
|
+
return e && r && this.length instanceof he && (n += e.pointerSize), n;
|
|
13834
13834
|
}
|
|
13835
13835
|
encode(t, e, r) {
|
|
13836
13836
|
let n = r;
|
|
13837
|
-
this.length instanceof
|
|
13837
|
+
this.length instanceof he && (n = { pointers: [], startOffset: t.pos, parent: r }, n.pointerOffset = t.pos + this.size(e, n, !1), this.length.encode(t, e.length));
|
|
13838
13838
|
for (let i of e)
|
|
13839
13839
|
this.type.encode(t, i, n);
|
|
13840
|
-
if (this.length instanceof
|
|
13840
|
+
if (this.length instanceof he) {
|
|
13841
13841
|
let i = 0;
|
|
13842
13842
|
for (; i < n.pointers.length; ) {
|
|
13843
13843
|
const a = n.pointers[i++];
|
|
@@ -13845,10 +13845,10 @@ var sd = class {
|
|
|
13845
13845
|
}
|
|
13846
13846
|
}
|
|
13847
13847
|
}
|
|
13848
|
-
},
|
|
13848
|
+
}, me = class extends I {
|
|
13849
13849
|
decode(t, e) {
|
|
13850
13850
|
const { pos: r } = t, n = Di(this.length, t, e);
|
|
13851
|
-
this.length instanceof
|
|
13851
|
+
this.length instanceof he && (e = { parent: e, _startOffset: r, _currentOffset: 0, _length: n });
|
|
13852
13852
|
const i = new kc(this.type, n, t, e);
|
|
13853
13853
|
return t.pos += n * this.type.size(null, e), i;
|
|
13854
13854
|
}
|
|
@@ -13912,10 +13912,10 @@ var sd = class {
|
|
|
13912
13912
|
if (!t)
|
|
13913
13913
|
return Di(this.length, null, e);
|
|
13914
13914
|
let r = t.length;
|
|
13915
|
-
return this.length instanceof
|
|
13915
|
+
return this.length instanceof he && (r += this.length.size()), r;
|
|
13916
13916
|
}
|
|
13917
13917
|
encode(t, e, r) {
|
|
13918
|
-
return this.length instanceof
|
|
13918
|
+
return this.length instanceof he && this.length.encode(t, e.length), t.writeBuffer(e);
|
|
13919
13919
|
}
|
|
13920
13920
|
}, Du = class extends Ji {
|
|
13921
13921
|
constructor(t, e = !0) {
|
|
@@ -13949,7 +13949,7 @@ var sd = class {
|
|
|
13949
13949
|
encode(t, e, r) {
|
|
13950
13950
|
return t.fill(0, this.size(e, r));
|
|
13951
13951
|
}
|
|
13952
|
-
},
|
|
13952
|
+
}, pe = class extends Ji {
|
|
13953
13953
|
constructor(t, e = "ascii") {
|
|
13954
13954
|
super(), this.length = t, this.encoding = e;
|
|
13955
13955
|
}
|
|
@@ -13974,11 +13974,11 @@ var sd = class {
|
|
|
13974
13974
|
let { encoding: r } = this;
|
|
13975
13975
|
typeof r == "function" && (r = r.call(e?.val, e?.val) || "ascii"), r === "utf16be" && (r = "utf16le");
|
|
13976
13976
|
let n = Wp(t, r);
|
|
13977
|
-
return this.length instanceof
|
|
13977
|
+
return this.length instanceof he && (n += this.length.size()), this.length == null && (n += Sc(r)), n;
|
|
13978
13978
|
}
|
|
13979
13979
|
encode(t, e, r) {
|
|
13980
13980
|
let { encoding: n } = this;
|
|
13981
|
-
if (typeof n == "function" && (n = n.call(r?.val, r?.val) || "ascii"), this.length instanceof
|
|
13981
|
+
if (typeof n == "function" && (n = n.call(r?.val, r?.val) || "ascii"), this.length instanceof he && this.length.encode(t, Wp(e, n)), t.writeString(e, n), this.length == null)
|
|
13982
13982
|
return Sc(n) == 2 ? t.writeUInt16LE(0) : t.writeUInt8(0);
|
|
13983
13983
|
}
|
|
13984
13984
|
};
|
|
@@ -14067,7 +14067,7 @@ var z = class extends Ji {
|
|
|
14067
14067
|
s.type.encode(t, s.val, s.parent);
|
|
14068
14068
|
}
|
|
14069
14069
|
}
|
|
14070
|
-
}, fD = (t, e) => e.reduce((r, n) => r && r[n], t),
|
|
14070
|
+
}, fD = (t, e) => e.reduce((r, n) => r && r[n], t), te = class Pw extends z {
|
|
14071
14071
|
constructor(e, r = {}) {
|
|
14072
14072
|
super(), this.type = e, this.versions = r, typeof e == "string" && (this.versionPath = e.split("."));
|
|
14073
14073
|
}
|
|
@@ -14301,7 +14301,7 @@ function sr(t, e, r) {
|
|
|
14301
14301
|
} };
|
|
14302
14302
|
}
|
|
14303
14303
|
}
|
|
14304
|
-
var SD = new z({ firstCode: d, entryCount: d, idDelta: J, idRangeOffset: d }), Fc = new z({ startCharCode: T, endCharCode: T, glyphID: T }), DD = new z({ startUnicodeValue: mn, additionalCount: lt }), FD = new z({ unicodeValue: mn, glyphID: d }), ID = new I(DD, T), BD = new I(FD, T), ND = new z({ varSelector: mn, defaultUVS: new B(T, ID, { type: "parent" }), nonDefaultUVS: new B(T, BD, { type: "parent" }) }), TD = new
|
|
14304
|
+
var SD = new z({ firstCode: d, entryCount: d, idDelta: J, idRangeOffset: d }), Fc = new z({ startCharCode: T, endCharCode: T, glyphID: T }), DD = new z({ startUnicodeValue: mn, additionalCount: lt }), FD = new z({ unicodeValue: mn, glyphID: d }), ID = new I(DD, T), BD = new I(FD, T), ND = new z({ varSelector: mn, defaultUVS: new B(T, ID, { type: "parent" }), nonDefaultUVS: new B(T, BD, { type: "parent" }) }), TD = new te(d, { 0: { length: d, language: d, codeMap: new me(lt, 256) }, 2: { length: d, language: d, subHeaderKeys: new I(d, 256), subHeaderCount: (t) => Math.max.apply(Math, t.subHeaderKeys), subHeaders: new me(SD, "subHeaderCount"), glyphIndexArray: new me(d, "subHeaderCount") }, 4: { length: d, language: d, segCountX2: d, segCount: (t) => t.segCountX2 >> 1, searchRange: d, entrySelector: d, rangeShift: d, endCode: new me(d, "segCount"), reservedPad: new De(d), startCode: new me(d, "segCount"), idDelta: new me(J, "segCount"), idRangeOffset: new me(d, "segCount"), glyphIndexArray: new me(d, (t) => (t.length - t._currentOffset) / 2) }, 6: { length: d, language: d, firstCode: d, entryCount: d, glyphIndices: new me(d, "entryCount") }, 8: { reserved: new De(d), length: T, language: d, is32: new me(lt, 8192), nGroups: T, groups: new me(Fc, "nGroups") }, 10: { reserved: new De(d), length: T, language: T, firstCode: T, entryCount: T, glyphIndices: new me(d, "numChars") }, 12: { reserved: new De(d), length: T, language: T, nGroups: T, groups: new me(Fc, "nGroups") }, 13: { reserved: new De(d), length: T, language: T, nGroups: T, groups: new me(Fc, "nGroups") }, 14: { length: T, numRecords: T, varSelectors: new me(ND, "numRecords") } }), PD = new z({ platformID: d, encodingID: d, table: new B(T, TD, { type: "parent", lazy: !0 }) }), MD = new z({ version: d, numSubtables: d, tables: new I(PD, "numSubtables") }), VD = new z({ version: $n, revision: $n, checkSumAdjustment: T, magicNumber: T, flags: d, unitsPerEm: d, created: new I($n, 2), modified: new I($n, 2), xMin: J, yMin: J, xMax: J, yMax: J, macStyle: new ui(d, ["bold", "italic", "underline", "outline", "shadow", "condensed", "extended"]), lowestRecPPEM: d, fontDirectionHint: J, indexToLocFormat: J, glyphDataFormat: J }), zD = new z({ version: $n, ascent: J, descent: J, lineGap: J, advanceWidthMax: d, minLeftSideBearing: J, minRightSideBearing: J, xMaxExtent: J, caretSlopeRise: J, caretSlopeRun: J, caretOffset: J, reserved: new De(J, 4), metricDataFormat: J, numberOfMetrics: d }), OD = new z({ advance: d, bearing: J }), RD = new z({ metrics: new me(OD, (t) => t.parent.hhea.numberOfMetrics), bearings: new me(J, (t) => t.parent.maxp.numGlyphs - t.parent.hhea.numberOfMetrics) }), LD = new z({ version: $n, numGlyphs: d, maxPoints: d, maxContours: d, maxComponentPoints: d, maxComponentContours: d, maxZones: d, maxTwilightPoints: d, maxStorage: d, maxFunctionDefs: d, maxInstructionDefs: d, maxStackElements: d, maxSizeOfInstructions: d, maxComponentElements: d, maxComponentDepth: d });
|
|
14305
14305
|
function Lw(t, e, r = 0) {
|
|
14306
14306
|
return t === 1 && qp[r] ? qp[r] : jD[t][e];
|
|
14307
14307
|
}
|
|
@@ -14323,7 +14323,7 @@ function ZD(t) {
|
|
|
14323
14323
|
return Ic.set(t, a), a;
|
|
14324
14324
|
}
|
|
14325
14325
|
}
|
|
14326
|
-
var jD = [["utf-16be", "utf-16be", "utf-16be", "utf-16be", "utf-16be", "utf-16be", "utf-16be"], ["x-mac-roman", "shift-jis", "big5", "euc-kr", "iso-8859-6", "iso-8859-8", "x-mac-greek", "x-mac-cyrillic", "x-mac-symbol", "x-mac-devanagari", "x-mac-gurmukhi", "x-mac-gujarati", "Oriya", "Bengali", "Tamil", "Telugu", "Kannada", "Malayalam", "Sinhalese", "Burmese", "Khmer", "iso-8859-11", "Laotian", "Georgian", "Armenian", "gbk", "Tibetan", "Mongolian", "Geez", "x-mac-ce", "Vietnamese", "Sindhi"], ["ascii", null, "iso-8859-1"], ["symbol", "utf-16be", "shift-jis", "gb18030", "big5", "euc-kr", "johab", null, null, null, "utf-16be"]], qp = { 15: "x-mac-icelandic", 17: "x-mac-turkish", 18: "x-mac-croatian", 24: "x-mac-ce", 25: "x-mac-ce", 26: "x-mac-ce", 27: "x-mac-ce", 28: "x-mac-ce", 30: "x-mac-icelandic", 37: "x-mac-romanian", 38: "x-mac-ce", 39: "x-mac-ce", 40: "x-mac-ce", 143: "x-mac-inuit", 146: "x-mac-gaelic" }, GD = [[], { 0: "en", 30: "fo", 60: "ks", 90: "rw", 1: "fr", 31: "fa", 61: "ku", 91: "rn", 2: "de", 32: "ru", 62: "sd", 92: "ny", 3: "it", 33: "zh", 63: "bo", 93: "mg", 4: "nl", 34: "nl-BE", 64: "ne", 94: "eo", 5: "sv", 35: "ga", 65: "sa", 128: "cy", 6: "es", 36: "sq", 66: "mr", 129: "eu", 7: "da", 37: "ro", 67: "bn", 130: "ca", 8: "pt", 38: "cz", 68: "as", 131: "la", 9: "no", 39: "sk", 69: "gu", 132: "qu", 10: "he", 40: "si", 70: "pa", 133: "gn", 11: "ja", 41: "yi", 71: "or", 134: "ay", 12: "ar", 42: "sr", 72: "ml", 135: "tt", 13: "fi", 43: "mk", 73: "kn", 136: "ug", 14: "el", 44: "bg", 74: "ta", 137: "dz", 15: "is", 45: "uk", 75: "te", 138: "jv", 16: "mt", 46: "be", 76: "si", 139: "su", 17: "tr", 47: "uz", 77: "my", 140: "gl", 18: "hr", 48: "kk", 78: "km", 141: "af", 19: "zh-Hant", 49: "az-Cyrl", 79: "lo", 142: "br", 20: "ur", 50: "az-Arab", 80: "vi", 143: "iu", 21: "hi", 51: "hy", 81: "id", 144: "gd", 22: "th", 52: "ka", 82: "tl", 145: "gv", 23: "ko", 53: "mo", 83: "ms", 146: "ga", 24: "lt", 54: "ky", 84: "ms-Arab", 147: "to", 25: "pl", 55: "tg", 85: "am", 148: "el-polyton", 26: "hu", 56: "tk", 86: "ti", 149: "kl", 27: "es", 57: "mn-CN", 87: "om", 150: "az", 28: "lv", 58: "mn", 88: "so", 151: "nn", 29: "se", 59: "ps", 89: "sw" }, [], { 1078: "af", 16393: "en-IN", 1159: "rw", 1074: "tn", 1052: "sq", 6153: "en-IE", 1089: "sw", 1115: "si", 1156: "gsw", 8201: "en-JM", 1111: "kok", 1051: "sk", 1118: "am", 17417: "en-MY", 1042: "ko", 1060: "sl", 5121: "ar-DZ", 5129: "en-NZ", 1088: "ky", 11274: "es-AR", 15361: "ar-BH", 13321: "en-PH", 1108: "lo", 16394: "es-BO", 3073: "ar", 18441: "en-SG", 1062: "lv", 13322: "es-CL", 2049: "ar-IQ", 7177: "en-ZA", 1063: "lt", 9226: "es-CO", 11265: "ar-JO", 11273: "en-TT", 2094: "dsb", 5130: "es-CR", 13313: "ar-KW", 2057: "en-GB", 1134: "lb", 7178: "es-DO", 12289: "ar-LB", 1033: "en", 1071: "mk", 12298: "es-EC", 4097: "ar-LY", 12297: "en-ZW", 2110: "ms-BN", 17418: "es-SV", 6145: "ary", 1061: "et", 1086: "ms", 4106: "es-GT", 8193: "ar-OM", 1080: "fo", 1100: "ml", 18442: "es-HN", 16385: "ar-QA", 1124: "fil", 1082: "mt", 2058: "es-MX", 1025: "ar-SA", 1035: "fi", 1153: "mi", 19466: "es-NI", 10241: "ar-SY", 2060: "fr-BE", 1146: "arn", 6154: "es-PA", 7169: "aeb", 3084: "fr-CA", 1102: "mr", 15370: "es-PY", 14337: "ar-AE", 1036: "fr", 1148: "moh", 10250: "es-PE", 9217: "ar-YE", 5132: "fr-LU", 1104: "mn", 20490: "es-PR", 1067: "hy", 6156: "fr-MC", 2128: "mn-CN", 3082: "es", 1101: "as", 4108: "fr-CH", 1121: "ne", 1034: "es", 2092: "az-Cyrl", 1122: "fy", 1044: "nb", 21514: "es-US", 1068: "az", 1110: "gl", 2068: "nn", 14346: "es-UY", 1133: "ba", 1079: "ka", 1154: "oc", 8202: "es-VE", 1069: "eu", 3079: "de-AT", 1096: "or", 2077: "sv-FI", 1059: "be", 1031: "de", 1123: "ps", 1053: "sv", 2117: "bn", 5127: "de-LI", 1045: "pl", 1114: "syr", 1093: "bn-IN", 4103: "de-LU", 1046: "pt", 1064: "tg", 8218: "bs-Cyrl", 2055: "de-CH", 2070: "pt-PT", 2143: "tzm", 5146: "bs", 1032: "el", 1094: "pa", 1097: "ta", 1150: "br", 1135: "kl", 1131: "qu-BO", 1092: "tt", 1026: "bg", 1095: "gu", 2155: "qu-EC", 1098: "te", 1027: "ca", 1128: "ha", 3179: "qu", 1054: "th", 3076: "zh-HK", 1037: "he", 1048: "ro", 1105: "bo", 5124: "zh-MO", 1081: "hi", 1047: "rm", 1055: "tr", 2052: "zh", 1038: "hu", 1049: "ru", 1090: "tk", 4100: "zh-SG", 1039: "is", 9275: "smn", 1152: "ug", 1028: "zh-TW", 1136: "ig", 4155: "smj-NO", 1058: "uk", 1155: "co", 1057: "id", 5179: "smj", 1070: "hsb", 1050: "hr", 1117: "iu", 3131: "se-FI", 1056: "ur", 4122: "hr-BA", 2141: "iu-Latn", 1083: "se", 2115: "uz-Cyrl", 1029: "cs", 2108: "ga", 2107: "se-SE", 1091: "uz", 1030: "da", 1076: "xh", 8251: "sms", 1066: "vi", 1164: "prs", 1077: "zu", 6203: "sma-NO", 1106: "cy", 1125: "dv", 1040: "it", 7227: "sms", 1160: "wo", 2067: "nl-BE", 2064: "it-CH", 1103: "sa", 1157: "sah", 1043: "nl", 1041: "ja", 7194: "sr-Cyrl-BA", 1144: "ii", 3081: "en-AU", 1099: "kn", 3098: "sr", 1130: "yo", 10249: "en-BZ", 1087: "kk", 6170: "sr-Latn-BA", 4105: "en-CA", 1107: "km", 2074: "sr-Latn", 9225: "en-029", 1158: "quc", 1132: "nso" }], Xp = new z({ platformID: d, encodingID: d, languageID: d, nameID: d, length: d, string: new B(d, new
|
|
14326
|
+
var jD = [["utf-16be", "utf-16be", "utf-16be", "utf-16be", "utf-16be", "utf-16be", "utf-16be"], ["x-mac-roman", "shift-jis", "big5", "euc-kr", "iso-8859-6", "iso-8859-8", "x-mac-greek", "x-mac-cyrillic", "x-mac-symbol", "x-mac-devanagari", "x-mac-gurmukhi", "x-mac-gujarati", "Oriya", "Bengali", "Tamil", "Telugu", "Kannada", "Malayalam", "Sinhalese", "Burmese", "Khmer", "iso-8859-11", "Laotian", "Georgian", "Armenian", "gbk", "Tibetan", "Mongolian", "Geez", "x-mac-ce", "Vietnamese", "Sindhi"], ["ascii", null, "iso-8859-1"], ["symbol", "utf-16be", "shift-jis", "gb18030", "big5", "euc-kr", "johab", null, null, null, "utf-16be"]], qp = { 15: "x-mac-icelandic", 17: "x-mac-turkish", 18: "x-mac-croatian", 24: "x-mac-ce", 25: "x-mac-ce", 26: "x-mac-ce", 27: "x-mac-ce", 28: "x-mac-ce", 30: "x-mac-icelandic", 37: "x-mac-romanian", 38: "x-mac-ce", 39: "x-mac-ce", 40: "x-mac-ce", 143: "x-mac-inuit", 146: "x-mac-gaelic" }, GD = [[], { 0: "en", 30: "fo", 60: "ks", 90: "rw", 1: "fr", 31: "fa", 61: "ku", 91: "rn", 2: "de", 32: "ru", 62: "sd", 92: "ny", 3: "it", 33: "zh", 63: "bo", 93: "mg", 4: "nl", 34: "nl-BE", 64: "ne", 94: "eo", 5: "sv", 35: "ga", 65: "sa", 128: "cy", 6: "es", 36: "sq", 66: "mr", 129: "eu", 7: "da", 37: "ro", 67: "bn", 130: "ca", 8: "pt", 38: "cz", 68: "as", 131: "la", 9: "no", 39: "sk", 69: "gu", 132: "qu", 10: "he", 40: "si", 70: "pa", 133: "gn", 11: "ja", 41: "yi", 71: "or", 134: "ay", 12: "ar", 42: "sr", 72: "ml", 135: "tt", 13: "fi", 43: "mk", 73: "kn", 136: "ug", 14: "el", 44: "bg", 74: "ta", 137: "dz", 15: "is", 45: "uk", 75: "te", 138: "jv", 16: "mt", 46: "be", 76: "si", 139: "su", 17: "tr", 47: "uz", 77: "my", 140: "gl", 18: "hr", 48: "kk", 78: "km", 141: "af", 19: "zh-Hant", 49: "az-Cyrl", 79: "lo", 142: "br", 20: "ur", 50: "az-Arab", 80: "vi", 143: "iu", 21: "hi", 51: "hy", 81: "id", 144: "gd", 22: "th", 52: "ka", 82: "tl", 145: "gv", 23: "ko", 53: "mo", 83: "ms", 146: "ga", 24: "lt", 54: "ky", 84: "ms-Arab", 147: "to", 25: "pl", 55: "tg", 85: "am", 148: "el-polyton", 26: "hu", 56: "tk", 86: "ti", 149: "kl", 27: "es", 57: "mn-CN", 87: "om", 150: "az", 28: "lv", 58: "mn", 88: "so", 151: "nn", 29: "se", 59: "ps", 89: "sw" }, [], { 1078: "af", 16393: "en-IN", 1159: "rw", 1074: "tn", 1052: "sq", 6153: "en-IE", 1089: "sw", 1115: "si", 1156: "gsw", 8201: "en-JM", 1111: "kok", 1051: "sk", 1118: "am", 17417: "en-MY", 1042: "ko", 1060: "sl", 5121: "ar-DZ", 5129: "en-NZ", 1088: "ky", 11274: "es-AR", 15361: "ar-BH", 13321: "en-PH", 1108: "lo", 16394: "es-BO", 3073: "ar", 18441: "en-SG", 1062: "lv", 13322: "es-CL", 2049: "ar-IQ", 7177: "en-ZA", 1063: "lt", 9226: "es-CO", 11265: "ar-JO", 11273: "en-TT", 2094: "dsb", 5130: "es-CR", 13313: "ar-KW", 2057: "en-GB", 1134: "lb", 7178: "es-DO", 12289: "ar-LB", 1033: "en", 1071: "mk", 12298: "es-EC", 4097: "ar-LY", 12297: "en-ZW", 2110: "ms-BN", 17418: "es-SV", 6145: "ary", 1061: "et", 1086: "ms", 4106: "es-GT", 8193: "ar-OM", 1080: "fo", 1100: "ml", 18442: "es-HN", 16385: "ar-QA", 1124: "fil", 1082: "mt", 2058: "es-MX", 1025: "ar-SA", 1035: "fi", 1153: "mi", 19466: "es-NI", 10241: "ar-SY", 2060: "fr-BE", 1146: "arn", 6154: "es-PA", 7169: "aeb", 3084: "fr-CA", 1102: "mr", 15370: "es-PY", 14337: "ar-AE", 1036: "fr", 1148: "moh", 10250: "es-PE", 9217: "ar-YE", 5132: "fr-LU", 1104: "mn", 20490: "es-PR", 1067: "hy", 6156: "fr-MC", 2128: "mn-CN", 3082: "es", 1101: "as", 4108: "fr-CH", 1121: "ne", 1034: "es", 2092: "az-Cyrl", 1122: "fy", 1044: "nb", 21514: "es-US", 1068: "az", 1110: "gl", 2068: "nn", 14346: "es-UY", 1133: "ba", 1079: "ka", 1154: "oc", 8202: "es-VE", 1069: "eu", 3079: "de-AT", 1096: "or", 2077: "sv-FI", 1059: "be", 1031: "de", 1123: "ps", 1053: "sv", 2117: "bn", 5127: "de-LI", 1045: "pl", 1114: "syr", 1093: "bn-IN", 4103: "de-LU", 1046: "pt", 1064: "tg", 8218: "bs-Cyrl", 2055: "de-CH", 2070: "pt-PT", 2143: "tzm", 5146: "bs", 1032: "el", 1094: "pa", 1097: "ta", 1150: "br", 1135: "kl", 1131: "qu-BO", 1092: "tt", 1026: "bg", 1095: "gu", 2155: "qu-EC", 1098: "te", 1027: "ca", 1128: "ha", 3179: "qu", 1054: "th", 3076: "zh-HK", 1037: "he", 1048: "ro", 1105: "bo", 5124: "zh-MO", 1081: "hi", 1047: "rm", 1055: "tr", 2052: "zh", 1038: "hu", 1049: "ru", 1090: "tk", 4100: "zh-SG", 1039: "is", 9275: "smn", 1152: "ug", 1028: "zh-TW", 1136: "ig", 4155: "smj-NO", 1058: "uk", 1155: "co", 1057: "id", 5179: "smj", 1070: "hsb", 1050: "hr", 1117: "iu", 3131: "se-FI", 1056: "ur", 4122: "hr-BA", 2141: "iu-Latn", 1083: "se", 2115: "uz-Cyrl", 1029: "cs", 2108: "ga", 2107: "se-SE", 1091: "uz", 1030: "da", 1076: "xh", 8251: "sms", 1066: "vi", 1164: "prs", 1077: "zu", 6203: "sma-NO", 1106: "cy", 1125: "dv", 1040: "it", 7227: "sms", 1160: "wo", 2067: "nl-BE", 2064: "it-CH", 1103: "sa", 1157: "sah", 1043: "nl", 1041: "ja", 7194: "sr-Cyrl-BA", 1144: "ii", 3081: "en-AU", 1099: "kn", 3098: "sr", 1130: "yo", 10249: "en-BZ", 1087: "kk", 6170: "sr-Latn-BA", 4105: "en-CA", 1107: "km", 2074: "sr-Latn", 9225: "en-029", 1158: "quc", 1132: "nso" }], Xp = new z({ platformID: d, encodingID: d, languageID: d, nameID: d, length: d, string: new B(d, new pe("length", (t) => Lw(t.platformID, t.encodingID, t.languageID)), { type: "parent", relativeTo: (t) => t.parent.stringOffset, allowNull: !1 }) }), WD = new z({ length: d, tag: new B(d, new pe("length", "utf16be"), { type: "parent", relativeTo: (t) => t.stringOffset }) }), Iu = new te(d, { 0: { count: d, stringOffset: d, records: new I(Xp, "count") }, 1: { count: d, stringOffset: d, records: new I(Xp, "count"), langTagCount: d, langTags: new I(WD, "langTagCount") } }), HD = Iu, v0 = ["copyright", "fontFamily", "fontSubfamily", "uniqueSubfamily", "fullName", "version", "postscriptName", "trademark", "manufacturer", "designer", "description", "vendorURL", "designerURL", "license", "licenseURL", null, "preferredFamily", "preferredSubfamily", "compatibleFull", "sampleText", "postscriptCIDFontName", "wwsFamilyName", "wwsSubfamilyName"];
|
|
14327
14327
|
Iu.process = function(t) {
|
|
14328
14328
|
var e = {};
|
|
14329
14329
|
for (let r of this.records) {
|
|
@@ -14346,9 +14346,9 @@ Iu.preEncode = function() {
|
|
|
14346
14346
|
}
|
|
14347
14347
|
this.records = t, this.count = t.length, this.stringOffset = Iu.size(this, null, !1);
|
|
14348
14348
|
};
|
|
14349
|
-
var $w = new
|
|
14349
|
+
var $w = new te(d, { header: { xAvgCharWidth: J, usWeightClass: d, usWidthClass: d, fsType: new ui(d, [null, "noEmbedding", "viewOnly", "editable", null, null, null, null, "noSubsetting", "bitmapOnly"]), ySubscriptXSize: J, ySubscriptYSize: J, ySubscriptXOffset: J, ySubscriptYOffset: J, ySuperscriptXSize: J, ySuperscriptYSize: J, ySuperscriptXOffset: J, ySuperscriptYOffset: J, yStrikeoutSize: J, yStrikeoutPosition: J, sFamilyClass: J, panose: new I(lt, 10), ulCharRange: new I(T, 4), vendorID: new pe(4), fsSelection: new ui(d, ["italic", "underscore", "negative", "outlined", "strikeout", "bold", "regular", "useTypoMetrics", "wws", "oblique"]), usFirstCharIndex: d, usLastCharIndex: d }, 0: {}, 1: { typoAscender: J, typoDescender: J, typoLineGap: J, winAscent: d, winDescent: d, codePageRange: new I(T, 2) }, 2: { typoAscender: J, typoDescender: J, typoLineGap: J, winAscent: d, winDescent: d, codePageRange: new I(T, 2), xHeight: J, capHeight: J, defaultChar: d, breakChar: d, maxContent: d }, 5: { typoAscender: J, typoDescender: J, typoLineGap: J, winAscent: d, winDescent: d, codePageRange: new I(T, 2), xHeight: J, capHeight: J, defaultChar: d, breakChar: d, maxContent: d, usLowerOpticalPointSize: d, usUpperOpticalPointSize: d } }), Bc = $w.versions;
|
|
14350
14350
|
Bc[3] = Bc[4] = Bc[2];
|
|
14351
|
-
var YD = $w, qD = new
|
|
14351
|
+
var YD = $w, qD = new te(Re, { header: { italicAngle: Re, underlinePosition: J, underlineThickness: J, isFixedPitch: T, minMemType42: T, maxMemType42: T, minMemType1: T, maxMemType1: T }, 1: {}, 2: { numberOfGlyphs: d, glyphNameIndex: new I(d, "numberOfGlyphs"), names: new I(new pe(lt)) }, 2.5: { numberOfGlyphs: d, offsets: new I(lt, "numberOfGlyphs") }, 3: {}, 4: { map: new I(T, (t) => t.parent.maxp.numGlyphs) } }), XD = new z({ controlValues: new I(J) }), KD = new z({ instructions: new I(lt) }), hd = new te("head.indexToLocFormat", { 0: { offsets: new I(d) }, 1: { offsets: new I(T) } });
|
|
14352
14352
|
hd.process = function() {
|
|
14353
14353
|
if (this.version === 0 && !this._processed) {
|
|
14354
14354
|
for (let t = 0; t < this.offsets.length; t++) this.offsets[t] <<= 1;
|
|
@@ -14567,12 +14567,12 @@ var JD = hd, QD = new z({ controlValueProgram: new I(lt) }), tF = new I(new ki()
|
|
|
14567
14567
|
let n = r.pop();
|
|
14568
14568
|
for (; r.length > n; ) r.pop();
|
|
14569
14569
|
}
|
|
14570
|
-
}, b0 = new Kl([[6, "BlueValues", "delta", null], [7, "OtherBlues", "delta", null], [8, "FamilyBlues", "delta", null], [9, "FamilyOtherBlues", "delta", null], [[12, 9], "BlueScale", "number", 0.039625], [[12, 10], "BlueShift", "number", 7], [[12, 11], "BlueFuzz", "number", 1], [10, "StdHW", "number", null], [11, "StdVW", "number", null], [[12, 12], "StemSnapH", "delta", null], [[12, 13], "StemSnapV", "delta", null], [[12, 14], "ForceBold", "boolean", !1], [[12, 17], "LanguageGroup", "number", 0], [[12, 18], "ExpansionFactor", "number", 0.06], [[12, 19], "initialRandomSeed", "number", 0], [20, "defaultWidthX", "number", 0], [21, "nominalWidthX", "number", 0], [22, "vsindex", "number", 0], [23, "blend", eF, null], [19, "Subrs", new oi(new xi(), { type: "local" }), null]]), nu = [".notdef", "space", "exclam", "quotedbl", "numbersign", "dollar", "percent", "ampersand", "quoteright", "parenleft", "parenright", "asterisk", "plus", "comma", "hyphen", "period", "slash", "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "colon", "semicolon", "less", "equal", "greater", "question", "at", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "bracketleft", "backslash", "bracketright", "asciicircum", "underscore", "quoteleft", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "braceleft", "bar", "braceright", "asciitilde", "exclamdown", "cent", "sterling", "fraction", "yen", "florin", "section", "currency", "quotesingle", "quotedblleft", "guillemotleft", "guilsinglleft", "guilsinglright", "fi", "fl", "endash", "dagger", "daggerdbl", "periodcentered", "paragraph", "bullet", "quotesinglbase", "quotedblbase", "quotedblright", "guillemotright", "ellipsis", "perthousand", "questiondown", "grave", "acute", "circumflex", "tilde", "macron", "breve", "dotaccent", "dieresis", "ring", "cedilla", "hungarumlaut", "ogonek", "caron", "emdash", "AE", "ordfeminine", "Lslash", "Oslash", "OE", "ordmasculine", "ae", "dotlessi", "lslash", "oslash", "oe", "germandbls", "onesuperior", "logicalnot", "mu", "trademark", "Eth", "onehalf", "plusminus", "Thorn", "onequarter", "divide", "brokenbar", "degree", "thorn", "threequarters", "twosuperior", "registered", "minus", "eth", "multiply", "threesuperior", "copyright", "Aacute", "Acircumflex", "Adieresis", "Agrave", "Aring", "Atilde", "Ccedilla", "Eacute", "Ecircumflex", "Edieresis", "Egrave", "Iacute", "Icircumflex", "Idieresis", "Igrave", "Ntilde", "Oacute", "Ocircumflex", "Odieresis", "Ograve", "Otilde", "Scaron", "Uacute", "Ucircumflex", "Udieresis", "Ugrave", "Yacute", "Ydieresis", "Zcaron", "aacute", "acircumflex", "adieresis", "agrave", "aring", "atilde", "ccedilla", "eacute", "ecircumflex", "edieresis", "egrave", "iacute", "icircumflex", "idieresis", "igrave", "ntilde", "oacute", "ocircumflex", "odieresis", "ograve", "otilde", "scaron", "uacute", "ucircumflex", "udieresis", "ugrave", "yacute", "ydieresis", "zcaron", "exclamsmall", "Hungarumlautsmall", "dollaroldstyle", "dollarsuperior", "ampersandsmall", "Acutesmall", "parenleftsuperior", "parenrightsuperior", "twodotenleader", "onedotenleader", "zerooldstyle", "oneoldstyle", "twooldstyle", "threeoldstyle", "fouroldstyle", "fiveoldstyle", "sixoldstyle", "sevenoldstyle", "eightoldstyle", "nineoldstyle", "commasuperior", "threequartersemdash", "periodsuperior", "questionsmall", "asuperior", "bsuperior", "centsuperior", "dsuperior", "esuperior", "isuperior", "lsuperior", "msuperior", "nsuperior", "osuperior", "rsuperior", "ssuperior", "tsuperior", "ff", "ffi", "ffl", "parenleftinferior", "parenrightinferior", "Circumflexsmall", "hyphensuperior", "Gravesmall", "Asmall", "Bsmall", "Csmall", "Dsmall", "Esmall", "Fsmall", "Gsmall", "Hsmall", "Ismall", "Jsmall", "Ksmall", "Lsmall", "Msmall", "Nsmall", "Osmall", "Psmall", "Qsmall", "Rsmall", "Ssmall", "Tsmall", "Usmall", "Vsmall", "Wsmall", "Xsmall", "Ysmall", "Zsmall", "colonmonetary", "onefitted", "rupiah", "Tildesmall", "exclamdownsmall", "centoldstyle", "Lslashsmall", "Scaronsmall", "Zcaronsmall", "Dieresissmall", "Brevesmall", "Caronsmall", "Dotaccentsmall", "Macronsmall", "figuredash", "hypheninferior", "Ogoneksmall", "Ringsmall", "Cedillasmall", "questiondownsmall", "oneeighth", "threeeighths", "fiveeighths", "seveneighths", "onethird", "twothirds", "zerosuperior", "foursuperior", "fivesuperior", "sixsuperior", "sevensuperior", "eightsuperior", "ninesuperior", "zeroinferior", "oneinferior", "twoinferior", "threeinferior", "fourinferior", "fiveinferior", "sixinferior", "seveninferior", "eightinferior", "nineinferior", "centinferior", "dollarinferior", "periodinferior", "commainferior", "Agravesmall", "Aacutesmall", "Acircumflexsmall", "Atildesmall", "Adieresissmall", "Aringsmall", "AEsmall", "Ccedillasmall", "Egravesmall", "Eacutesmall", "Ecircumflexsmall", "Edieresissmall", "Igravesmall", "Iacutesmall", "Icircumflexsmall", "Idieresissmall", "Ethsmall", "Ntildesmall", "Ogravesmall", "Oacutesmall", "Ocircumflexsmall", "Otildesmall", "Odieresissmall", "OEsmall", "Oslashsmall", "Ugravesmall", "Uacutesmall", "Ucircumflexsmall", "Udieresissmall", "Yacutesmall", "Thornsmall", "Ydieresissmall", "001.000", "001.001", "001.002", "001.003", "Black", "Bold", "Book", "Light", "Medium", "Regular", "Roman", "Semibold"], Uw = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "space", "exclam", "quotedbl", "numbersign", "dollar", "percent", "ampersand", "quoteright", "parenleft", "parenright", "asterisk", "plus", "comma", "hyphen", "period", "slash", "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "colon", "semicolon", "less", "equal", "greater", "question", "at", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "bracketleft", "backslash", "bracketright", "asciicircum", "underscore", "quoteleft", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "braceleft", "bar", "braceright", "asciitilde", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "exclamdown", "cent", "sterling", "fraction", "yen", "florin", "section", "currency", "quotesingle", "quotedblleft", "guillemotleft", "guilsinglleft", "guilsinglright", "fi", "fl", "", "endash", "dagger", "daggerdbl", "periodcentered", "", "paragraph", "bullet", "quotesinglbase", "quotedblbase", "quotedblright", "guillemotright", "ellipsis", "perthousand", "", "questiondown", "", "grave", "acute", "circumflex", "tilde", "macron", "breve", "dotaccent", "dieresis", "", "ring", "cedilla", "", "hungarumlaut", "ogonek", "caron", "emdash", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "AE", "", "ordfeminine", "", "", "", "", "Lslash", "Oslash", "OE", "ordmasculine", "", "", "", "", "", "ae", "", "", "", "dotlessi", "", "", "lslash", "oslash", "oe", "germandbls"], rF = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "space", "exclamsmall", "Hungarumlautsmall", "", "dollaroldstyle", "dollarsuperior", "ampersandsmall", "Acutesmall", "parenleftsuperior", "parenrightsuperior", "twodotenleader", "onedotenleader", "comma", "hyphen", "period", "fraction", "zerooldstyle", "oneoldstyle", "twooldstyle", "threeoldstyle", "fouroldstyle", "fiveoldstyle", "sixoldstyle", "sevenoldstyle", "eightoldstyle", "nineoldstyle", "colon", "semicolon", "commasuperior", "threequartersemdash", "periodsuperior", "questionsmall", "", "asuperior", "bsuperior", "centsuperior", "dsuperior", "esuperior", "", "", "isuperior", "", "", "lsuperior", "msuperior", "nsuperior", "osuperior", "", "", "rsuperior", "ssuperior", "tsuperior", "", "ff", "fi", "fl", "ffi", "ffl", "parenleftinferior", "", "parenrightinferior", "Circumflexsmall", "hyphensuperior", "Gravesmall", "Asmall", "Bsmall", "Csmall", "Dsmall", "Esmall", "Fsmall", "Gsmall", "Hsmall", "Ismall", "Jsmall", "Ksmall", "Lsmall", "Msmall", "Nsmall", "Osmall", "Psmall", "Qsmall", "Rsmall", "Ssmall", "Tsmall", "Usmall", "Vsmall", "Wsmall", "Xsmall", "Ysmall", "Zsmall", "colonmonetary", "onefitted", "rupiah", "Tildesmall", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "exclamdownsmall", "centoldstyle", "Lslashsmall", "", "", "Scaronsmall", "Zcaronsmall", "Dieresissmall", "Brevesmall", "Caronsmall", "", "Dotaccentsmall", "", "", "Macronsmall", "", "", "figuredash", "hypheninferior", "", "", "Ogoneksmall", "Ringsmall", "Cedillasmall", "", "", "", "onequarter", "onehalf", "threequarters", "questiondownsmall", "oneeighth", "threeeighths", "fiveeighths", "seveneighths", "onethird", "twothirds", "", "", "zerosuperior", "onesuperior", "twosuperior", "threesuperior", "foursuperior", "fivesuperior", "sixsuperior", "sevensuperior", "eightsuperior", "ninesuperior", "zeroinferior", "oneinferior", "twoinferior", "threeinferior", "fourinferior", "fiveinferior", "sixinferior", "seveninferior", "eightinferior", "nineinferior", "centinferior", "dollarinferior", "periodinferior", "commainferior", "Agravesmall", "Aacutesmall", "Acircumflexsmall", "Atildesmall", "Adieresissmall", "Aringsmall", "AEsmall", "Ccedillasmall", "Egravesmall", "Eacutesmall", "Ecircumflexsmall", "Edieresissmall", "Igravesmall", "Iacutesmall", "Icircumflexsmall", "Idieresissmall", "Ethsmall", "Ntildesmall", "Ogravesmall", "Oacutesmall", "Ocircumflexsmall", "Otildesmall", "Odieresissmall", "OEsmall", "Oslashsmall", "Ugravesmall", "Uacutesmall", "Ucircumflexsmall", "Udieresissmall", "Yacutesmall", "Thornsmall", "Ydieresissmall"], Zw = [".notdef", "space", "exclam", "quotedbl", "numbersign", "dollar", "percent", "ampersand", "quoteright", "parenleft", "parenright", "asterisk", "plus", "comma", "hyphen", "period", "slash", "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "colon", "semicolon", "less", "equal", "greater", "question", "at", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "bracketleft", "backslash", "bracketright", "asciicircum", "underscore", "quoteleft", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "braceleft", "bar", "braceright", "asciitilde", "exclamdown", "cent", "sterling", "fraction", "yen", "florin", "section", "currency", "quotesingle", "quotedblleft", "guillemotleft", "guilsinglleft", "guilsinglright", "fi", "fl", "endash", "dagger", "daggerdbl", "periodcentered", "paragraph", "bullet", "quotesinglbase", "quotedblbase", "quotedblright", "guillemotright", "ellipsis", "perthousand", "questiondown", "grave", "acute", "circumflex", "tilde", "macron", "breve", "dotaccent", "dieresis", "ring", "cedilla", "hungarumlaut", "ogonek", "caron", "emdash", "AE", "ordfeminine", "Lslash", "Oslash", "OE", "ordmasculine", "ae", "dotlessi", "lslash", "oslash", "oe", "germandbls", "onesuperior", "logicalnot", "mu", "trademark", "Eth", "onehalf", "plusminus", "Thorn", "onequarter", "divide", "brokenbar", "degree", "thorn", "threequarters", "twosuperior", "registered", "minus", "eth", "multiply", "threesuperior", "copyright", "Aacute", "Acircumflex", "Adieresis", "Agrave", "Aring", "Atilde", "Ccedilla", "Eacute", "Ecircumflex", "Edieresis", "Egrave", "Iacute", "Icircumflex", "Idieresis", "Igrave", "Ntilde", "Oacute", "Ocircumflex", "Odieresis", "Ograve", "Otilde", "Scaron", "Uacute", "Ucircumflex", "Udieresis", "Ugrave", "Yacute", "Ydieresis", "Zcaron", "aacute", "acircumflex", "adieresis", "agrave", "aring", "atilde", "ccedilla", "eacute", "ecircumflex", "edieresis", "egrave", "iacute", "icircumflex", "idieresis", "igrave", "ntilde", "oacute", "ocircumflex", "odieresis", "ograve", "otilde", "scaron", "uacute", "ucircumflex", "udieresis", "ugrave", "yacute", "ydieresis", "zcaron"], iF = [".notdef", "space", "exclamsmall", "Hungarumlautsmall", "dollaroldstyle", "dollarsuperior", "ampersandsmall", "Acutesmall", "parenleftsuperior", "parenrightsuperior", "twodotenleader", "onedotenleader", "comma", "hyphen", "period", "fraction", "zerooldstyle", "oneoldstyle", "twooldstyle", "threeoldstyle", "fouroldstyle", "fiveoldstyle", "sixoldstyle", "sevenoldstyle", "eightoldstyle", "nineoldstyle", "colon", "semicolon", "commasuperior", "threequartersemdash", "periodsuperior", "questionsmall", "asuperior", "bsuperior", "centsuperior", "dsuperior", "esuperior", "isuperior", "lsuperior", "msuperior", "nsuperior", "osuperior", "rsuperior", "ssuperior", "tsuperior", "ff", "fi", "fl", "ffi", "ffl", "parenleftinferior", "parenrightinferior", "Circumflexsmall", "hyphensuperior", "Gravesmall", "Asmall", "Bsmall", "Csmall", "Dsmall", "Esmall", "Fsmall", "Gsmall", "Hsmall", "Ismall", "Jsmall", "Ksmall", "Lsmall", "Msmall", "Nsmall", "Osmall", "Psmall", "Qsmall", "Rsmall", "Ssmall", "Tsmall", "Usmall", "Vsmall", "Wsmall", "Xsmall", "Ysmall", "Zsmall", "colonmonetary", "onefitted", "rupiah", "Tildesmall", "exclamdownsmall", "centoldstyle", "Lslashsmall", "Scaronsmall", "Zcaronsmall", "Dieresissmall", "Brevesmall", "Caronsmall", "Dotaccentsmall", "Macronsmall", "figuredash", "hypheninferior", "Ogoneksmall", "Ringsmall", "Cedillasmall", "onequarter", "onehalf", "threequarters", "questiondownsmall", "oneeighth", "threeeighths", "fiveeighths", "seveneighths", "onethird", "twothirds", "zerosuperior", "onesuperior", "twosuperior", "threesuperior", "foursuperior", "fivesuperior", "sixsuperior", "sevensuperior", "eightsuperior", "ninesuperior", "zeroinferior", "oneinferior", "twoinferior", "threeinferior", "fourinferior", "fiveinferior", "sixinferior", "seveninferior", "eightinferior", "nineinferior", "centinferior", "dollarinferior", "periodinferior", "commainferior", "Agravesmall", "Aacutesmall", "Acircumflexsmall", "Atildesmall", "Adieresissmall", "Aringsmall", "AEsmall", "Ccedillasmall", "Egravesmall", "Eacutesmall", "Ecircumflexsmall", "Edieresissmall", "Igravesmall", "Iacutesmall", "Icircumflexsmall", "Idieresissmall", "Ethsmall", "Ntildesmall", "Ogravesmall", "Oacutesmall", "Ocircumflexsmall", "Otildesmall", "Odieresissmall", "OEsmall", "Oslashsmall", "Ugravesmall", "Uacutesmall", "Ucircumflexsmall", "Udieresissmall", "Yacutesmall", "Thornsmall", "Ydieresissmall"], nF = [".notdef", "space", "dollaroldstyle", "dollarsuperior", "parenleftsuperior", "parenrightsuperior", "twodotenleader", "onedotenleader", "comma", "hyphen", "period", "fraction", "zerooldstyle", "oneoldstyle", "twooldstyle", "threeoldstyle", "fouroldstyle", "fiveoldstyle", "sixoldstyle", "sevenoldstyle", "eightoldstyle", "nineoldstyle", "colon", "semicolon", "commasuperior", "threequartersemdash", "periodsuperior", "asuperior", "bsuperior", "centsuperior", "dsuperior", "esuperior", "isuperior", "lsuperior", "msuperior", "nsuperior", "osuperior", "rsuperior", "ssuperior", "tsuperior", "ff", "fi", "fl", "ffi", "ffl", "parenleftinferior", "parenrightinferior", "hyphensuperior", "colonmonetary", "onefitted", "rupiah", "centoldstyle", "figuredash", "hypheninferior", "onequarter", "onehalf", "threequarters", "oneeighth", "threeeighths", "fiveeighths", "seveneighths", "onethird", "twothirds", "zerosuperior", "onesuperior", "twosuperior", "threesuperior", "foursuperior", "fivesuperior", "sixsuperior", "sevensuperior", "eightsuperior", "ninesuperior", "zeroinferior", "oneinferior", "twoinferior", "threeinferior", "fourinferior", "fiveinferior", "sixinferior", "seveninferior", "eightinferior", "nineinferior", "centinferior", "dollarinferior", "periodinferior", "commainferior"], jw = new z({ reserved: new De(d), reqFeatureIndex: d, featureCount: d, featureIndexes: new I(d, "featureCount") }), aF = new z({ tag: new de(4), langSys: new B(d, jw, { type: "parent" }) }), sF = new z({ defaultLangSys: new B(d, jw), count: d, langSysRecords: new I(aF, "count") }), oF = new z({ tag: new de(4), script: new B(d, sF, { type: "parent" }) }), Gw = new I(oF, d), uF = new z({ version: d, nameID: d }), Ww = new z({ featureParams: new B(d, uF), lookupCount: d, lookupListIndexes: new I(d, "lookupCount") }), lF = new z({ tag: new de(4), feature: new B(d, Ww, { type: "parent" }) }), Hw = new I(lF, d), cF = new z({ markAttachmentType: lt, flags: new ui(lt, ["rightToLeft", "ignoreBaseGlyphs", "ignoreLigatures", "ignoreMarks", "useMarkFilteringSet"]) });
|
|
14570
|
+
}, b0 = new Kl([[6, "BlueValues", "delta", null], [7, "OtherBlues", "delta", null], [8, "FamilyBlues", "delta", null], [9, "FamilyOtherBlues", "delta", null], [[12, 9], "BlueScale", "number", 0.039625], [[12, 10], "BlueShift", "number", 7], [[12, 11], "BlueFuzz", "number", 1], [10, "StdHW", "number", null], [11, "StdVW", "number", null], [[12, 12], "StemSnapH", "delta", null], [[12, 13], "StemSnapV", "delta", null], [[12, 14], "ForceBold", "boolean", !1], [[12, 17], "LanguageGroup", "number", 0], [[12, 18], "ExpansionFactor", "number", 0.06], [[12, 19], "initialRandomSeed", "number", 0], [20, "defaultWidthX", "number", 0], [21, "nominalWidthX", "number", 0], [22, "vsindex", "number", 0], [23, "blend", eF, null], [19, "Subrs", new oi(new xi(), { type: "local" }), null]]), nu = [".notdef", "space", "exclam", "quotedbl", "numbersign", "dollar", "percent", "ampersand", "quoteright", "parenleft", "parenright", "asterisk", "plus", "comma", "hyphen", "period", "slash", "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "colon", "semicolon", "less", "equal", "greater", "question", "at", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "bracketleft", "backslash", "bracketright", "asciicircum", "underscore", "quoteleft", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "braceleft", "bar", "braceright", "asciitilde", "exclamdown", "cent", "sterling", "fraction", "yen", "florin", "section", "currency", "quotesingle", "quotedblleft", "guillemotleft", "guilsinglleft", "guilsinglright", "fi", "fl", "endash", "dagger", "daggerdbl", "periodcentered", "paragraph", "bullet", "quotesinglbase", "quotedblbase", "quotedblright", "guillemotright", "ellipsis", "perthousand", "questiondown", "grave", "acute", "circumflex", "tilde", "macron", "breve", "dotaccent", "dieresis", "ring", "cedilla", "hungarumlaut", "ogonek", "caron", "emdash", "AE", "ordfeminine", "Lslash", "Oslash", "OE", "ordmasculine", "ae", "dotlessi", "lslash", "oslash", "oe", "germandbls", "onesuperior", "logicalnot", "mu", "trademark", "Eth", "onehalf", "plusminus", "Thorn", "onequarter", "divide", "brokenbar", "degree", "thorn", "threequarters", "twosuperior", "registered", "minus", "eth", "multiply", "threesuperior", "copyright", "Aacute", "Acircumflex", "Adieresis", "Agrave", "Aring", "Atilde", "Ccedilla", "Eacute", "Ecircumflex", "Edieresis", "Egrave", "Iacute", "Icircumflex", "Idieresis", "Igrave", "Ntilde", "Oacute", "Ocircumflex", "Odieresis", "Ograve", "Otilde", "Scaron", "Uacute", "Ucircumflex", "Udieresis", "Ugrave", "Yacute", "Ydieresis", "Zcaron", "aacute", "acircumflex", "adieresis", "agrave", "aring", "atilde", "ccedilla", "eacute", "ecircumflex", "edieresis", "egrave", "iacute", "icircumflex", "idieresis", "igrave", "ntilde", "oacute", "ocircumflex", "odieresis", "ograve", "otilde", "scaron", "uacute", "ucircumflex", "udieresis", "ugrave", "yacute", "ydieresis", "zcaron", "exclamsmall", "Hungarumlautsmall", "dollaroldstyle", "dollarsuperior", "ampersandsmall", "Acutesmall", "parenleftsuperior", "parenrightsuperior", "twodotenleader", "onedotenleader", "zerooldstyle", "oneoldstyle", "twooldstyle", "threeoldstyle", "fouroldstyle", "fiveoldstyle", "sixoldstyle", "sevenoldstyle", "eightoldstyle", "nineoldstyle", "commasuperior", "threequartersemdash", "periodsuperior", "questionsmall", "asuperior", "bsuperior", "centsuperior", "dsuperior", "esuperior", "isuperior", "lsuperior", "msuperior", "nsuperior", "osuperior", "rsuperior", "ssuperior", "tsuperior", "ff", "ffi", "ffl", "parenleftinferior", "parenrightinferior", "Circumflexsmall", "hyphensuperior", "Gravesmall", "Asmall", "Bsmall", "Csmall", "Dsmall", "Esmall", "Fsmall", "Gsmall", "Hsmall", "Ismall", "Jsmall", "Ksmall", "Lsmall", "Msmall", "Nsmall", "Osmall", "Psmall", "Qsmall", "Rsmall", "Ssmall", "Tsmall", "Usmall", "Vsmall", "Wsmall", "Xsmall", "Ysmall", "Zsmall", "colonmonetary", "onefitted", "rupiah", "Tildesmall", "exclamdownsmall", "centoldstyle", "Lslashsmall", "Scaronsmall", "Zcaronsmall", "Dieresissmall", "Brevesmall", "Caronsmall", "Dotaccentsmall", "Macronsmall", "figuredash", "hypheninferior", "Ogoneksmall", "Ringsmall", "Cedillasmall", "questiondownsmall", "oneeighth", "threeeighths", "fiveeighths", "seveneighths", "onethird", "twothirds", "zerosuperior", "foursuperior", "fivesuperior", "sixsuperior", "sevensuperior", "eightsuperior", "ninesuperior", "zeroinferior", "oneinferior", "twoinferior", "threeinferior", "fourinferior", "fiveinferior", "sixinferior", "seveninferior", "eightinferior", "nineinferior", "centinferior", "dollarinferior", "periodinferior", "commainferior", "Agravesmall", "Aacutesmall", "Acircumflexsmall", "Atildesmall", "Adieresissmall", "Aringsmall", "AEsmall", "Ccedillasmall", "Egravesmall", "Eacutesmall", "Ecircumflexsmall", "Edieresissmall", "Igravesmall", "Iacutesmall", "Icircumflexsmall", "Idieresissmall", "Ethsmall", "Ntildesmall", "Ogravesmall", "Oacutesmall", "Ocircumflexsmall", "Otildesmall", "Odieresissmall", "OEsmall", "Oslashsmall", "Ugravesmall", "Uacutesmall", "Ucircumflexsmall", "Udieresissmall", "Yacutesmall", "Thornsmall", "Ydieresissmall", "001.000", "001.001", "001.002", "001.003", "Black", "Bold", "Book", "Light", "Medium", "Regular", "Roman", "Semibold"], Uw = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "space", "exclam", "quotedbl", "numbersign", "dollar", "percent", "ampersand", "quoteright", "parenleft", "parenright", "asterisk", "plus", "comma", "hyphen", "period", "slash", "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "colon", "semicolon", "less", "equal", "greater", "question", "at", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "bracketleft", "backslash", "bracketright", "asciicircum", "underscore", "quoteleft", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "braceleft", "bar", "braceright", "asciitilde", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "exclamdown", "cent", "sterling", "fraction", "yen", "florin", "section", "currency", "quotesingle", "quotedblleft", "guillemotleft", "guilsinglleft", "guilsinglright", "fi", "fl", "", "endash", "dagger", "daggerdbl", "periodcentered", "", "paragraph", "bullet", "quotesinglbase", "quotedblbase", "quotedblright", "guillemotright", "ellipsis", "perthousand", "", "questiondown", "", "grave", "acute", "circumflex", "tilde", "macron", "breve", "dotaccent", "dieresis", "", "ring", "cedilla", "", "hungarumlaut", "ogonek", "caron", "emdash", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "AE", "", "ordfeminine", "", "", "", "", "Lslash", "Oslash", "OE", "ordmasculine", "", "", "", "", "", "ae", "", "", "", "dotlessi", "", "", "lslash", "oslash", "oe", "germandbls"], rF = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "space", "exclamsmall", "Hungarumlautsmall", "", "dollaroldstyle", "dollarsuperior", "ampersandsmall", "Acutesmall", "parenleftsuperior", "parenrightsuperior", "twodotenleader", "onedotenleader", "comma", "hyphen", "period", "fraction", "zerooldstyle", "oneoldstyle", "twooldstyle", "threeoldstyle", "fouroldstyle", "fiveoldstyle", "sixoldstyle", "sevenoldstyle", "eightoldstyle", "nineoldstyle", "colon", "semicolon", "commasuperior", "threequartersemdash", "periodsuperior", "questionsmall", "", "asuperior", "bsuperior", "centsuperior", "dsuperior", "esuperior", "", "", "isuperior", "", "", "lsuperior", "msuperior", "nsuperior", "osuperior", "", "", "rsuperior", "ssuperior", "tsuperior", "", "ff", "fi", "fl", "ffi", "ffl", "parenleftinferior", "", "parenrightinferior", "Circumflexsmall", "hyphensuperior", "Gravesmall", "Asmall", "Bsmall", "Csmall", "Dsmall", "Esmall", "Fsmall", "Gsmall", "Hsmall", "Ismall", "Jsmall", "Ksmall", "Lsmall", "Msmall", "Nsmall", "Osmall", "Psmall", "Qsmall", "Rsmall", "Ssmall", "Tsmall", "Usmall", "Vsmall", "Wsmall", "Xsmall", "Ysmall", "Zsmall", "colonmonetary", "onefitted", "rupiah", "Tildesmall", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "exclamdownsmall", "centoldstyle", "Lslashsmall", "", "", "Scaronsmall", "Zcaronsmall", "Dieresissmall", "Brevesmall", "Caronsmall", "", "Dotaccentsmall", "", "", "Macronsmall", "", "", "figuredash", "hypheninferior", "", "", "Ogoneksmall", "Ringsmall", "Cedillasmall", "", "", "", "onequarter", "onehalf", "threequarters", "questiondownsmall", "oneeighth", "threeeighths", "fiveeighths", "seveneighths", "onethird", "twothirds", "", "", "zerosuperior", "onesuperior", "twosuperior", "threesuperior", "foursuperior", "fivesuperior", "sixsuperior", "sevensuperior", "eightsuperior", "ninesuperior", "zeroinferior", "oneinferior", "twoinferior", "threeinferior", "fourinferior", "fiveinferior", "sixinferior", "seveninferior", "eightinferior", "nineinferior", "centinferior", "dollarinferior", "periodinferior", "commainferior", "Agravesmall", "Aacutesmall", "Acircumflexsmall", "Atildesmall", "Adieresissmall", "Aringsmall", "AEsmall", "Ccedillasmall", "Egravesmall", "Eacutesmall", "Ecircumflexsmall", "Edieresissmall", "Igravesmall", "Iacutesmall", "Icircumflexsmall", "Idieresissmall", "Ethsmall", "Ntildesmall", "Ogravesmall", "Oacutesmall", "Ocircumflexsmall", "Otildesmall", "Odieresissmall", "OEsmall", "Oslashsmall", "Ugravesmall", "Uacutesmall", "Ucircumflexsmall", "Udieresissmall", "Yacutesmall", "Thornsmall", "Ydieresissmall"], Zw = [".notdef", "space", "exclam", "quotedbl", "numbersign", "dollar", "percent", "ampersand", "quoteright", "parenleft", "parenright", "asterisk", "plus", "comma", "hyphen", "period", "slash", "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "colon", "semicolon", "less", "equal", "greater", "question", "at", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "bracketleft", "backslash", "bracketright", "asciicircum", "underscore", "quoteleft", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "braceleft", "bar", "braceright", "asciitilde", "exclamdown", "cent", "sterling", "fraction", "yen", "florin", "section", "currency", "quotesingle", "quotedblleft", "guillemotleft", "guilsinglleft", "guilsinglright", "fi", "fl", "endash", "dagger", "daggerdbl", "periodcentered", "paragraph", "bullet", "quotesinglbase", "quotedblbase", "quotedblright", "guillemotright", "ellipsis", "perthousand", "questiondown", "grave", "acute", "circumflex", "tilde", "macron", "breve", "dotaccent", "dieresis", "ring", "cedilla", "hungarumlaut", "ogonek", "caron", "emdash", "AE", "ordfeminine", "Lslash", "Oslash", "OE", "ordmasculine", "ae", "dotlessi", "lslash", "oslash", "oe", "germandbls", "onesuperior", "logicalnot", "mu", "trademark", "Eth", "onehalf", "plusminus", "Thorn", "onequarter", "divide", "brokenbar", "degree", "thorn", "threequarters", "twosuperior", "registered", "minus", "eth", "multiply", "threesuperior", "copyright", "Aacute", "Acircumflex", "Adieresis", "Agrave", "Aring", "Atilde", "Ccedilla", "Eacute", "Ecircumflex", "Edieresis", "Egrave", "Iacute", "Icircumflex", "Idieresis", "Igrave", "Ntilde", "Oacute", "Ocircumflex", "Odieresis", "Ograve", "Otilde", "Scaron", "Uacute", "Ucircumflex", "Udieresis", "Ugrave", "Yacute", "Ydieresis", "Zcaron", "aacute", "acircumflex", "adieresis", "agrave", "aring", "atilde", "ccedilla", "eacute", "ecircumflex", "edieresis", "egrave", "iacute", "icircumflex", "idieresis", "igrave", "ntilde", "oacute", "ocircumflex", "odieresis", "ograve", "otilde", "scaron", "uacute", "ucircumflex", "udieresis", "ugrave", "yacute", "ydieresis", "zcaron"], iF = [".notdef", "space", "exclamsmall", "Hungarumlautsmall", "dollaroldstyle", "dollarsuperior", "ampersandsmall", "Acutesmall", "parenleftsuperior", "parenrightsuperior", "twodotenleader", "onedotenleader", "comma", "hyphen", "period", "fraction", "zerooldstyle", "oneoldstyle", "twooldstyle", "threeoldstyle", "fouroldstyle", "fiveoldstyle", "sixoldstyle", "sevenoldstyle", "eightoldstyle", "nineoldstyle", "colon", "semicolon", "commasuperior", "threequartersemdash", "periodsuperior", "questionsmall", "asuperior", "bsuperior", "centsuperior", "dsuperior", "esuperior", "isuperior", "lsuperior", "msuperior", "nsuperior", "osuperior", "rsuperior", "ssuperior", "tsuperior", "ff", "fi", "fl", "ffi", "ffl", "parenleftinferior", "parenrightinferior", "Circumflexsmall", "hyphensuperior", "Gravesmall", "Asmall", "Bsmall", "Csmall", "Dsmall", "Esmall", "Fsmall", "Gsmall", "Hsmall", "Ismall", "Jsmall", "Ksmall", "Lsmall", "Msmall", "Nsmall", "Osmall", "Psmall", "Qsmall", "Rsmall", "Ssmall", "Tsmall", "Usmall", "Vsmall", "Wsmall", "Xsmall", "Ysmall", "Zsmall", "colonmonetary", "onefitted", "rupiah", "Tildesmall", "exclamdownsmall", "centoldstyle", "Lslashsmall", "Scaronsmall", "Zcaronsmall", "Dieresissmall", "Brevesmall", "Caronsmall", "Dotaccentsmall", "Macronsmall", "figuredash", "hypheninferior", "Ogoneksmall", "Ringsmall", "Cedillasmall", "onequarter", "onehalf", "threequarters", "questiondownsmall", "oneeighth", "threeeighths", "fiveeighths", "seveneighths", "onethird", "twothirds", "zerosuperior", "onesuperior", "twosuperior", "threesuperior", "foursuperior", "fivesuperior", "sixsuperior", "sevensuperior", "eightsuperior", "ninesuperior", "zeroinferior", "oneinferior", "twoinferior", "threeinferior", "fourinferior", "fiveinferior", "sixinferior", "seveninferior", "eightinferior", "nineinferior", "centinferior", "dollarinferior", "periodinferior", "commainferior", "Agravesmall", "Aacutesmall", "Acircumflexsmall", "Atildesmall", "Adieresissmall", "Aringsmall", "AEsmall", "Ccedillasmall", "Egravesmall", "Eacutesmall", "Ecircumflexsmall", "Edieresissmall", "Igravesmall", "Iacutesmall", "Icircumflexsmall", "Idieresissmall", "Ethsmall", "Ntildesmall", "Ogravesmall", "Oacutesmall", "Ocircumflexsmall", "Otildesmall", "Odieresissmall", "OEsmall", "Oslashsmall", "Ugravesmall", "Uacutesmall", "Ucircumflexsmall", "Udieresissmall", "Yacutesmall", "Thornsmall", "Ydieresissmall"], nF = [".notdef", "space", "dollaroldstyle", "dollarsuperior", "parenleftsuperior", "parenrightsuperior", "twodotenleader", "onedotenleader", "comma", "hyphen", "period", "fraction", "zerooldstyle", "oneoldstyle", "twooldstyle", "threeoldstyle", "fouroldstyle", "fiveoldstyle", "sixoldstyle", "sevenoldstyle", "eightoldstyle", "nineoldstyle", "colon", "semicolon", "commasuperior", "threequartersemdash", "periodsuperior", "asuperior", "bsuperior", "centsuperior", "dsuperior", "esuperior", "isuperior", "lsuperior", "msuperior", "nsuperior", "osuperior", "rsuperior", "ssuperior", "tsuperior", "ff", "fi", "fl", "ffi", "ffl", "parenleftinferior", "parenrightinferior", "hyphensuperior", "colonmonetary", "onefitted", "rupiah", "centoldstyle", "figuredash", "hypheninferior", "onequarter", "onehalf", "threequarters", "oneeighth", "threeeighths", "fiveeighths", "seveneighths", "onethird", "twothirds", "zerosuperior", "onesuperior", "twosuperior", "threesuperior", "foursuperior", "fivesuperior", "sixsuperior", "sevensuperior", "eightsuperior", "ninesuperior", "zeroinferior", "oneinferior", "twoinferior", "threeinferior", "fourinferior", "fiveinferior", "sixinferior", "seveninferior", "eightinferior", "nineinferior", "centinferior", "dollarinferior", "periodinferior", "commainferior"], jw = new z({ reserved: new De(d), reqFeatureIndex: d, featureCount: d, featureIndexes: new I(d, "featureCount") }), aF = new z({ tag: new pe(4), langSys: new B(d, jw, { type: "parent" }) }), sF = new z({ defaultLangSys: new B(d, jw), count: d, langSysRecords: new I(aF, "count") }), oF = new z({ tag: new pe(4), script: new B(d, sF, { type: "parent" }) }), Gw = new I(oF, d), uF = new z({ version: d, nameID: d }), Ww = new z({ featureParams: new B(d, uF), lookupCount: d, lookupListIndexes: new I(d, "lookupCount") }), lF = new z({ tag: new pe(4), feature: new B(d, Ww, { type: "parent" }) }), Hw = new I(lF, d), cF = new z({ markAttachmentType: lt, flags: new ui(lt, ["rightToLeft", "ignoreBaseGlyphs", "ignoreLigatures", "ignoreMarks", "useMarkFilteringSet"]) });
|
|
14571
14571
|
function Bu(t) {
|
|
14572
14572
|
let e = new z({ lookupType: d, flags: cF, subTableCount: d, subTables: new I(new B(d, t), "subTableCount"), markFilteringSet: new Du(d, (r) => r.flags.flags.useMarkFilteringSet) });
|
|
14573
|
-
return new
|
|
14573
|
+
return new me(new B(d, e), d);
|
|
14574
14574
|
}
|
|
14575
|
-
var fF = new z({ start: d, end: d, startCoverageIndex: d }),
|
|
14575
|
+
var fF = new z({ start: d, end: d, startCoverageIndex: d }), de = new te(d, { 1: { glyphCount: d, glyphs: new I(d, "glyphCount") }, 2: { rangeCount: d, rangeRecords: new I(fF, "rangeCount") } }), hF = new z({ start: d, end: d, class: d }), gn = new te(d, { 1: { startGlyph: d, glyphCount: d, classValueArray: new I(d, "glyphCount") }, 2: { classRangeCount: d, classRangeRecord: new I(hF, "classRangeCount") } }), dn = new z({ a: d, b: d, deltaFormat: d }), Eo = new z({ sequenceIndex: d, lookupListIndex: d }), dF = new z({ glyphCount: d, lookupCount: d, input: new I(d, (t) => t.glyphCount - 1), lookupRecords: new I(Eo, "lookupCount") }), pF = new I(new B(d, dF), d), mF = new z({ glyphCount: d, lookupCount: d, classes: new I(d, (t) => t.glyphCount - 1), lookupRecords: new I(Eo, "lookupCount") }), gF = new I(new B(d, mF), d), Yw = new te(d, { 1: { coverage: new B(d, de), ruleSetCount: d, ruleSets: new I(new B(d, pF), "ruleSetCount") }, 2: { coverage: new B(d, de), classDef: new B(d, gn), classSetCnt: d, classSet: new I(new B(d, gF), "classSetCnt") }, 3: { glyphCount: d, lookupCount: d, coverages: new I(new B(d, de), "glyphCount"), lookupRecords: new I(Eo, "lookupCount") } }), yF = new z({ backtrackGlyphCount: d, backtrack: new I(d, "backtrackGlyphCount"), inputGlyphCount: d, input: new I(d, (t) => t.inputGlyphCount - 1), lookaheadGlyphCount: d, lookahead: new I(d, "lookaheadGlyphCount"), lookupCount: d, lookupRecords: new I(Eo, "lookupCount") }), tm = new I(new B(d, yF), d), qw = new te(d, { 1: { coverage: new B(d, de), chainCount: d, chainRuleSets: new I(new B(d, tm), "chainCount") }, 2: { coverage: new B(d, de), backtrackClassDef: new B(d, gn), inputClassDef: new B(d, gn), lookaheadClassDef: new B(d, gn), chainCount: d, chainClassSet: new I(new B(d, tm), "chainCount") }, 3: { backtrackGlyphCount: d, backtrackCoverage: new I(new B(d, de), "backtrackGlyphCount"), inputGlyphCount: d, inputCoverage: new I(new B(d, de), "inputGlyphCount"), lookaheadGlyphCount: d, lookaheadCoverage: new I(new B(d, de), "lookaheadGlyphCount"), lookupCount: d, lookupRecords: new I(Eo, "lookupCount") } }), As = new ia(16, "BE", 14), vF = new z({ startCoord: As, peakCoord: As, endCoord: As }), bF = new z({ axisCount: d, regionCount: d, variationRegions: new I(new I(vF, "axisCount"), "regionCount") }), wF = new z({ shortDeltas: new I(J, (t) => t.parent.shortDeltaCount), regionDeltas: new I(We, (t) => t.parent.regionIndexCount - t.parent.shortDeltaCount), deltas: (t) => t.shortDeltas.concat(t.regionDeltas) }), _F = new z({ itemCount: d, shortDeltaCount: d, regionIndexCount: d, regionIndexes: new I(d, "regionIndexCount"), deltaSets: new I(wF, "itemCount") }), Jl = new z({ format: d, variationRegionList: new B(T, bF), variationDataCount: d, itemVariationData: new I(new B(T, _F), "variationDataCount") }), xF = new te(d, { 1: { axisIndex: d, axisIndex: d, filterRangeMinValue: As, filterRangeMaxValue: As } }), CF = new z({ conditionCount: d, conditionTable: new I(new B(T, xF), "conditionCount") }), EF = new z({ featureIndex: d, alternateFeatureTable: new B(T, Ww, { type: "parent" }) }), AF = new z({ version: Re, substitutionCount: d, substitutions: new I(EF, "substitutionCount") }), kF = new z({ conditionSet: new B(T, CF, { type: "parent" }), featureTableSubstitution: new B(T, AF, { type: "parent" }) }), Xw = new z({ majorVersion: d, minorVersion: d, featureVariationRecordCount: T, featureVariationRecords: new I(kF, "featureVariationRecordCount") }), Kw = class {
|
|
14576
14576
|
decode(t, e, r) {
|
|
14577
14577
|
return this.predefinedOps[r[0]] ? this.predefinedOps[r[0]] : this.type.decode(t, e, r);
|
|
14578
14578
|
}
|
|
@@ -14586,14 +14586,14 @@ var fF = new z({ start: d, end: d, startCoverageIndex: d }), he = new Qt(d, { 1:
|
|
|
14586
14586
|
constructor(t, e) {
|
|
14587
14587
|
this.predefinedOps = t, this.type = e;
|
|
14588
14588
|
}
|
|
14589
|
-
}, SF = class extends
|
|
14589
|
+
}, SF = class extends he {
|
|
14590
14590
|
decode(t) {
|
|
14591
14591
|
return lt.decode(t) & 127;
|
|
14592
14592
|
}
|
|
14593
14593
|
constructor() {
|
|
14594
14594
|
super("UInt8");
|
|
14595
14595
|
}
|
|
14596
|
-
}, Jw = new z({ first: d, nLeft: lt }), DF = new z({ first: d, nLeft: d }), FF = new
|
|
14596
|
+
}, Jw = new z({ first: d, nLeft: lt }), DF = new z({ first: d, nLeft: d }), FF = new te(new SF(), { 0: { nCodes: lt, codes: new I(lt, "nCodes") }, 1: { nRanges: lt, ranges: new I(Jw, "nRanges") } }), IF = new Kw([Uw, rF], new oi(FF, { lazy: !0 })), em = class extends I {
|
|
14597
14597
|
decode(t, e) {
|
|
14598
14598
|
let r = Di(this.length, t, e), n = 0, i = [];
|
|
14599
14599
|
for (; n < r; ) {
|
|
@@ -14602,7 +14602,7 @@ var fF = new z({ start: d, end: d, startCoverageIndex: d }), he = new Qt(d, { 1:
|
|
|
14602
14602
|
}
|
|
14603
14603
|
return i;
|
|
14604
14604
|
}
|
|
14605
|
-
}, BF = new
|
|
14605
|
+
}, BF = new te(lt, { 0: { glyphs: new I(d, (t) => t.parent.CharStrings.length - 1) }, 1: { ranges: new em(Jw, (t) => t.parent.CharStrings.length - 1) }, 2: { ranges: new em(DF, (t) => t.parent.CharStrings.length - 1) } }), NF = new Kw([Zw, iF, nF], new oi(BF, { lazy: !0 })), TF = new z({ first: d, fd: lt }), PF = new z({ first: T, fd: d }), Qw = new te(lt, { 0: { fds: new I(lt, (t) => t.parent.CharStrings.length) }, 3: { nRanges: d, ranges: new I(TF, "nRanges"), sentinel: d }, 4: { nRanges: T, ranges: new I(PF, "nRanges"), sentinel: T } }), Tc = new oi(b0), t2 = class {
|
|
14606
14606
|
decode(t, e, r) {
|
|
14607
14607
|
return e.length = r[0], Tc.decode(t, e, [r[1]]);
|
|
14608
14608
|
}
|
|
@@ -14612,7 +14612,7 @@ var fF = new z({ start: d, end: d, startCoverageIndex: d }), he = new Qt(d, { 1:
|
|
|
14612
14612
|
encode(t, e, r) {
|
|
14613
14613
|
return [b0.size(e, r, !1), Tc.encode(t, e, r)[0]];
|
|
14614
14614
|
}
|
|
14615
|
-
}, e2 = new Kl([[18, "Private", new t2(), null], [[12, 38], "FontName", "sid", null], [[12, 7], "FontMatrix", "array", [1e-3, 0, 0, 1e-3, 0, 0]], [[12, 5], "PaintType", "number", 0]]), MF = new Kl([[[12, 30], "ROS", ["sid", "sid", "number"], null], [0, "version", "sid", null], [1, "Notice", "sid", null], [[12, 0], "Copyright", "sid", null], [2, "FullName", "sid", null], [3, "FamilyName", "sid", null], [4, "Weight", "sid", null], [[12, 1], "isFixedPitch", "boolean", !1], [[12, 2], "ItalicAngle", "number", 0], [[12, 3], "UnderlinePosition", "number", -100], [[12, 4], "UnderlineThickness", "number", 50], [[12, 5], "PaintType", "number", 0], [[12, 6], "CharstringType", "number", 2], [[12, 7], "FontMatrix", "array", [1e-3, 0, 0, 1e-3, 0, 0]], [13, "UniqueID", "number", null], [5, "FontBBox", "array", [0, 0, 0, 0]], [[12, 8], "StrokeWidth", "number", 0], [14, "XUID", "array", null], [15, "charset", NF, Zw], [16, "Encoding", IF, Uw], [17, "CharStrings", new oi(new xi()), null], [18, "Private", new t2(), null], [[12, 20], "SyntheticBase", "number", null], [[12, 21], "PostScript", "sid", null], [[12, 22], "BaseFontName", "sid", null], [[12, 23], "BaseFontBlend", "delta", null], [[12, 31], "CIDFontVersion", "number", 0], [[12, 32], "CIDFontRevision", "number", 0], [[12, 33], "CIDFontType", "number", 0], [[12, 34], "CIDCount", "number", 8720], [[12, 35], "UIDBase", "number", null], [[12, 37], "FDSelect", new oi(Qw), null], [[12, 36], "FDArray", new oi(new xi(e2)), null], [[12, 38], "FontName", "sid", null]]), VF = new z({ length: d, itemVariationStore: Jl }), zF = new Kl([[[12, 7], "FontMatrix", "array", [1e-3, 0, 0, 1e-3, 0, 0]], [17, "CharStrings", new oi(new xi()), null], [[12, 37], "FDSelect", new oi(Qw), null], [[12, 36], "FDArray", new oi(new xi(e2)), null], [24, "vstore", new oi(VF), null], [25, "maxstack", "number", 193]]), OF = new
|
|
14615
|
+
}, e2 = new Kl([[18, "Private", new t2(), null], [[12, 38], "FontName", "sid", null], [[12, 7], "FontMatrix", "array", [1e-3, 0, 0, 1e-3, 0, 0]], [[12, 5], "PaintType", "number", 0]]), MF = new Kl([[[12, 30], "ROS", ["sid", "sid", "number"], null], [0, "version", "sid", null], [1, "Notice", "sid", null], [[12, 0], "Copyright", "sid", null], [2, "FullName", "sid", null], [3, "FamilyName", "sid", null], [4, "Weight", "sid", null], [[12, 1], "isFixedPitch", "boolean", !1], [[12, 2], "ItalicAngle", "number", 0], [[12, 3], "UnderlinePosition", "number", -100], [[12, 4], "UnderlineThickness", "number", 50], [[12, 5], "PaintType", "number", 0], [[12, 6], "CharstringType", "number", 2], [[12, 7], "FontMatrix", "array", [1e-3, 0, 0, 1e-3, 0, 0]], [13, "UniqueID", "number", null], [5, "FontBBox", "array", [0, 0, 0, 0]], [[12, 8], "StrokeWidth", "number", 0], [14, "XUID", "array", null], [15, "charset", NF, Zw], [16, "Encoding", IF, Uw], [17, "CharStrings", new oi(new xi()), null], [18, "Private", new t2(), null], [[12, 20], "SyntheticBase", "number", null], [[12, 21], "PostScript", "sid", null], [[12, 22], "BaseFontName", "sid", null], [[12, 23], "BaseFontBlend", "delta", null], [[12, 31], "CIDFontVersion", "number", 0], [[12, 32], "CIDFontRevision", "number", 0], [[12, 33], "CIDFontType", "number", 0], [[12, 34], "CIDCount", "number", 8720], [[12, 35], "UIDBase", "number", null], [[12, 37], "FDSelect", new oi(Qw), null], [[12, 36], "FDArray", new oi(new xi(e2)), null], [[12, 38], "FontName", "sid", null]]), VF = new z({ length: d, itemVariationStore: Jl }), zF = new Kl([[[12, 7], "FontMatrix", "array", [1e-3, 0, 0, 1e-3, 0, 0]], [17, "CharStrings", new oi(new xi()), null], [[12, 37], "FDSelect", new oi(Qw), null], [[12, 36], "FDArray", new oi(new xi(e2)), null], [24, "vstore", new oi(VF), null], [25, "maxstack", "number", 193]]), OF = new te(lD, { 1: { hdrSize: lt, offSize: lt, nameIndex: new xi(new pe("length")), topDictIndex: new xi(MF), stringIndex: new xi(new pe("length")), globalSubrIndex: new xi() }, 2: { hdrSize: lt, length: d, topDict: zF, globalSubrIndex: new xi() } }), r2 = OF, RF = class i2 {
|
|
14616
14616
|
static decode(e) {
|
|
14617
14617
|
return new i2(e);
|
|
14618
14618
|
}
|
|
@@ -14693,8 +14693,8 @@ var fF = new z({ start: d, end: d, startCoverageIndex: d }), he = new Qt(d, { 1:
|
|
|
14693
14693
|
}, n2 = RF, LF = new z({ glyphIndex: d, vertOriginY: J }), $F = new z({ majorVersion: d, minorVersion: d, defaultVertOriginY: J, numVertOriginYMetrics: d, metrics: new I(LF, "numVertOriginYMetrics") }), xa = new z({ height: lt, width: lt, horiBearingX: We, horiBearingY: We, horiAdvance: lt, vertBearingX: We, vertBearingY: We, vertAdvance: lt }), Zo = new z({ height: lt, width: lt, bearingX: We, bearingY: We, advance: lt }), rm = new z({ glyph: d, xOffset: We, yOffset: We }), im = class {
|
|
14694
14694
|
}, Pc = class {
|
|
14695
14695
|
};
|
|
14696
|
-
new
|
|
14697
|
-
var nm = new z({ ascender: We, descender: We, widthMax: lt, caretSlopeNumerator: We, caretSlopeDenominator: We, caretOffset: We, minOriginSB: We, minAdvanceSB: We, maxBeforeBL: We, minAfterBL: We, pad: new De(We, 2) }), UF = new z({ glyphCode: d, offset: d }), ZF = new
|
|
14696
|
+
new te("version", { 1: { metrics: Zo, data: im }, 2: { metrics: Zo, data: Pc }, 5: { data: Pc }, 6: { metrics: xa, data: im }, 7: { metrics: xa, data: Pc }, 8: { metrics: Zo, pad: new De(lt), numComponents: d, components: new I(rm, "numComponents") }, 9: { metrics: xa, pad: new De(lt), numComponents: d, components: new I(rm, "numComponents") }, 17: { metrics: Zo, dataLen: T, data: new ki("dataLen") }, 18: { metrics: xa, dataLen: T, data: new ki("dataLen") }, 19: { dataLen: T, data: new ki("dataLen") } });
|
|
14697
|
+
var nm = new z({ ascender: We, descender: We, widthMax: lt, caretSlopeNumerator: We, caretSlopeDenominator: We, caretOffset: We, minOriginSB: We, minAdvanceSB: We, maxBeforeBL: We, minAfterBL: We, pad: new De(We, 2) }), UF = new z({ glyphCode: d, offset: d }), ZF = new te(d, { header: { imageFormat: d, imageDataOffset: T }, 1: { offsetArray: new I(T, (t) => t.parent.lastGlyphIndex - t.parent.firstGlyphIndex + 1) }, 2: { imageSize: T, bigMetrics: xa }, 3: { offsetArray: new I(d, (t) => t.parent.lastGlyphIndex - t.parent.firstGlyphIndex + 1) }, 4: { numGlyphs: T, glyphArray: new I(UF, (t) => t.numGlyphs + 1) }, 5: { imageSize: T, bigMetrics: xa, numGlyphs: T, glyphCodeArray: new I(d, "numGlyphs") } }), jF = new z({ firstGlyphIndex: d, lastGlyphIndex: d, subtable: new B(T, ZF) }), GF = new z({ indexSubTableArray: new B(T, new I(jF, 1), { type: "parent" }), indexTablesSize: T, numberOfIndexSubTables: T, colorRef: T, hori: nm, vert: nm, startGlyphIndex: d, endGlyphIndex: d, ppemX: lt, ppemY: lt, bitDepth: lt, flags: new ui(lt, ["horizontal", "vertical"]) }), WF = new z({ version: T, numSizes: T, sizes: new I(GF, "numSizes") }), HF = new z({ ppem: d, resolution: d, imageOffsets: new I(new B(T, "void"), (t) => t.parent.parent.maxp.numGlyphs + 1) }), YF = new z({ version: d, flags: new ui(d, ["renderOutlines"]), numImgTables: T, imageTables: new I(new B(T, HF), "numImgTables") }), qF = new z({ gid: d, paletteIndex: d }), XF = new z({ gid: d, firstLayerIndex: d, numLayers: d }), KF = new z({ version: d, numBaseGlyphRecords: d, baseGlyphRecord: new B(T, new I(XF, "numBaseGlyphRecords")), layerRecords: new B(T, new I(qF, "numLayerRecords"), { lazy: !0 }), numLayerRecords: d }), JF = new z({ blue: lt, green: lt, red: lt, alpha: lt }), QF = new te(d, { header: { numPaletteEntries: d, numPalettes: d, numColorRecords: d, colorRecords: new B(T, new I(JF, "numColorRecords")), colorRecordIndices: new I(d, "numPalettes") }, 0: {}, 1: { offsetPaletteTypeArray: new B(T, new I(T, "numPalettes")), offsetPaletteLabelArray: new B(T, new I(d, "numPalettes")), offsetPaletteEntryLabelArray: new B(T, new I(d, "numPaletteEntries")) } }), Us = new te(d, { 1: { coordinate: J }, 2: { coordinate: J, referenceGlyph: d, baseCoordPoint: d }, 3: { coordinate: J, deviceTable: new B(d, dn) } }), tI = new z({ defaultIndex: d, baseCoordCount: d, baseCoords: new I(new B(d, Us), "baseCoordCount") }), eI = new z({ tag: new pe(4), minCoord: new B(d, Us, { type: "parent" }), maxCoord: new B(d, Us, { type: "parent" }) }), a2 = new z({ minCoord: new B(d, Us), maxCoord: new B(d, Us), featMinMaxCount: d, featMinMaxRecords: new I(eI, "featMinMaxCount") }), rI = new z({ tag: new pe(4), minMax: new B(d, a2, { type: "parent" }) }), iI = new z({ baseValues: new B(d, tI), defaultMinMax: new B(d, a2), baseLangSysCount: d, baseLangSysRecords: new I(rI, "baseLangSysCount") }), nI = new z({ tag: new pe(4), script: new B(d, iI, { type: "parent" }) }), aI = new I(nI, d), sI = new I(new pe(4), d), am = new z({ baseTagList: new B(d, sI), baseScriptList: new B(d, aI) }), oI = new te(T, { header: { horizAxis: new B(d, am), vertAxis: new B(d, am) }, 65536: {}, 65537: { itemVariationStore: new B(T, Jl) } }), uI = new I(d, d), lI = new z({ coverage: new B(d, de), glyphCount: d, attachPoints: new I(new B(d, uI), "glyphCount") }), cI = new te(d, { 1: { coordinate: J }, 2: { caretValuePoint: d }, 3: { coordinate: J, deviceTable: new B(d, dn) } }), fI = new I(new B(d, cI), d), hI = new z({ coverage: new B(d, de), ligGlyphCount: d, ligGlyphs: new I(new B(d, fI), "ligGlyphCount") }), sm = new z({ markSetTableFormat: d, markSetCount: d, coverage: new I(new B(T, de), "markSetCount") }), dI = new te(T, { header: { glyphClassDef: new B(d, gn), attachList: new B(d, lI), ligCaretList: new B(d, hI), markAttachClassDef: new B(d, gn) }, 65536: {}, 65538: { markGlyphSetsDef: new B(d, sm) }, 65539: { markGlyphSetsDef: new B(d, sm), itemVariationStore: new B(T, Jl) } }), da = new ui(d, ["xPlacement", "yPlacement", "xAdvance", "yAdvance", "xPlaDevice", "yPlaDevice", "xAdvDevice", "yAdvDevice"]), pI = { xPlacement: J, yPlacement: J, xAdvance: J, yAdvance: J, xPlaDevice: new B(d, dn, { type: "global", relativeTo: (t) => t.rel }), yPlaDevice: new B(d, dn, { type: "global", relativeTo: (t) => t.rel }), xAdvDevice: new B(d, dn, { type: "global", relativeTo: (t) => t.rel }), yAdvDevice: new B(d, dn, { type: "global", relativeTo: (t) => t.rel }) }, $a = class {
|
|
14698
14698
|
buildStruct(t) {
|
|
14699
14699
|
let e = t;
|
|
14700
14700
|
for (; !e[this.key] && e.parent; ) e = e.parent;
|
|
@@ -14715,11 +14715,11 @@ var nm = new z({ ascender: We, descender: We, widthMax: lt, caretSlopeNumerator:
|
|
|
14715
14715
|
constructor(t = "valueFormat") {
|
|
14716
14716
|
this.key = t;
|
|
14717
14717
|
}
|
|
14718
|
-
}, mI = new z({ secondGlyph: d, value1: new $a("valueFormat1"), value2: new $a("valueFormat2") }), gI = new I(mI, d), yI = new z({ value1: new $a("valueFormat1"), value2: new $a("valueFormat2") }), Zs = new
|
|
14718
|
+
}, mI = new z({ secondGlyph: d, value1: new $a("valueFormat1"), value2: new $a("valueFormat2") }), gI = new I(mI, d), yI = new z({ value1: new $a("valueFormat1"), value2: new $a("valueFormat2") }), Zs = new te(d, { 1: { xCoordinate: J, yCoordinate: J }, 2: { xCoordinate: J, yCoordinate: J, anchorPoint: d }, 3: { xCoordinate: J, yCoordinate: J, xDeviceTable: new B(d, dn), yDeviceTable: new B(d, dn) } }), vI = new z({ entryAnchor: new B(d, Zs, { type: "parent" }), exitAnchor: new B(d, Zs, { type: "parent" }) }), bI = new z({ class: d, markAnchor: new B(d, Zs, { type: "parent" }) }), Mc = new I(bI, d), wI = new I(new B(d, Zs), (t) => t.parent.classCount), om = new I(wI, d), _I = new I(new B(d, Zs), (t) => t.parent.parent.classCount), xI = new I(_I, d), CI = new I(new B(d, xI), d), js = new te("lookupType", { 1: new te(d, { 1: { coverage: new B(d, de), valueFormat: da, value: new $a() }, 2: { coverage: new B(d, de), valueFormat: da, valueCount: d, values: new me(new $a(), "valueCount") } }), 2: new te(d, { 1: { coverage: new B(d, de), valueFormat1: da, valueFormat2: da, pairSetCount: d, pairSets: new me(new B(d, gI), "pairSetCount") }, 2: { coverage: new B(d, de), valueFormat1: da, valueFormat2: da, classDef1: new B(d, gn), classDef2: new B(d, gn), class1Count: d, class2Count: d, classRecords: new me(new me(yI, "class2Count"), "class1Count") } }), 3: { format: d, coverage: new B(d, de), entryExitCount: d, entryExitRecords: new I(vI, "entryExitCount") }, 4: { format: d, markCoverage: new B(d, de), baseCoverage: new B(d, de), classCount: d, markArray: new B(d, Mc), baseArray: new B(d, om) }, 5: { format: d, markCoverage: new B(d, de), ligatureCoverage: new B(d, de), classCount: d, markArray: new B(d, Mc), ligatureArray: new B(d, CI) }, 6: { format: d, mark1Coverage: new B(d, de), mark2Coverage: new B(d, de), classCount: d, mark1Array: new B(d, Mc), mark2Array: new B(d, om) }, 7: Yw, 8: qw, 9: { posFormat: d, lookupType: d, extension: new B(T, null) } });
|
|
14719
14719
|
js.versions[9].extension.type = js;
|
|
14720
|
-
var EI = new
|
|
14720
|
+
var EI = new te(T, { header: { scriptList: new B(d, Gw), featureList: new B(d, Hw), lookupList: new B(d, new Bu(js)) }, 65536: {}, 65537: { featureVariations: new B(T, Xw) } }), s2 = new I(d, d), AI = s2, kI = new z({ glyph: d, compCount: d, components: new I(d, (t) => t.compCount - 1) }), SI = new I(new B(d, kI), d), w0 = new te("lookupType", { 1: new te(d, { 1: { coverage: new B(d, de), deltaGlyphID: J }, 2: { coverage: new B(d, de), glyphCount: d, substitute: new me(d, "glyphCount") } }), 2: { substFormat: d, coverage: new B(d, de), count: d, sequences: new me(new B(d, s2), "count") }, 3: { substFormat: d, coverage: new B(d, de), count: d, alternateSet: new me(new B(d, AI), "count") }, 4: { substFormat: d, coverage: new B(d, de), count: d, ligatureSets: new me(new B(d, SI), "count") }, 5: Yw, 6: qw, 7: { substFormat: d, lookupType: d, extension: new B(T, null) }, 8: { substFormat: d, coverage: new B(d, de), backtrackCoverage: new I(new B(d, de), "backtrackGlyphCount"), lookaheadGlyphCount: d, lookaheadCoverage: new I(new B(d, de), "lookaheadGlyphCount"), glyphCount: d, substitutes: new I(d, "glyphCount") } });
|
|
14721
14721
|
w0.versions[7].extension.type = w0;
|
|
14722
|
-
var DI = new
|
|
14722
|
+
var DI = new te(T, { header: { scriptList: new B(d, Gw), featureList: new B(d, Hw), lookupList: new B(d, new Bu(w0)) }, 65536: {}, 65537: { featureVariations: new B(T, Xw) } }), an = new I(d, d), FI = new z({ shrinkageEnableGSUB: new B(d, an), shrinkageDisableGSUB: new B(d, an), shrinkageEnableGPOS: new B(d, an), shrinkageDisableGPOS: new B(d, an), shrinkageJstfMax: new B(d, new Bu(js)), extensionEnableGSUB: new B(d, an), extensionDisableGSUB: new B(d, an), extensionEnableGPOS: new B(d, an), extensionDisableGPOS: new B(d, an), extensionJstfMax: new B(d, new Bu(js)) }), o2 = new I(new B(d, FI), d), II = new z({ tag: new pe(4), jstfLangSys: new B(d, o2) }), BI = new z({ extenderGlyphs: new B(d, new I(d, d)), defaultLangSys: new B(d, o2), langSysCount: d, langSysRecords: new I(II, "langSysCount") }), NI = new z({ tag: new pe(4), script: new B(d, BI, { type: "parent" }) }), TI = new z({ version: T, scriptCount: d, scriptList: new I(NI, "scriptCount") }), PI = class {
|
|
14723
14723
|
decode(t, e) {
|
|
14724
14724
|
switch (this.size(0, e)) {
|
|
14725
14725
|
case 1:
|
|
@@ -14738,7 +14738,7 @@ var DI = new Qt(T, { header: { scriptList: new B(d, Gw), featureList: new B(d, H
|
|
|
14738
14738
|
constructor(t) {
|
|
14739
14739
|
this._size = t;
|
|
14740
14740
|
}
|
|
14741
|
-
}, MI = new z({ entry: new PI((t) => ((t.parent.entryFormat & 48) >> 4) + 1), outerIndex: (t) => t.entry >> (t.parent.entryFormat & 15) + 1, innerIndex: (t) => t.entry & (1 << (t.parent.entryFormat & 15) + 1) - 1 }), Vc = new z({ entryFormat: d, mapCount: d, mapData: new I(MI, "mapCount") }), VI = new z({ majorVersion: d, minorVersion: d, itemVariationStore: new B(T, Jl), advanceWidthMapping: new B(T, Vc), LSBMapping: new B(T, Vc), RSBMapping: new B(T, Vc) }), zI = new z({ format: T, length: T, offset: T }), OI = new z({ reserved: new De(d, 2), cbSignature: T, signature: new ki("cbSignature") }), RI = new z({ ulVersion: T, usNumSigs: d, usFlag: d, signatures: new I(zI, "usNumSigs"), signatureBlocks: new I(OI, "usNumSigs") }), LI = new z({ rangeMaxPPEM: d, rangeGaspBehavior: new ui(d, ["grayscale", "gridfit", "symmetricSmoothing", "symmetricGridfit"]) }), $I = new z({ version: d, numRanges: d, gaspRanges: new I(LI, "numRanges") }), UI = new z({ pixelSize: lt, maximumWidth: lt, widths: new I(lt, (t) => t.parent.parent.maxp.numGlyphs) }), ZI = new z({ version: d, numRecords: J, sizeDeviceRecord: $n, records: new I(UI, "numRecords") }), jI = new z({ left: d, right: d, value: J }), um = new z({ firstGlyph: d, nGlyphs: d, offsets: new I(d, "nGlyphs"), max: (t) => t.offsets.length && Math.max.apply(Math, t.offsets) }), GI = new z({ off: (t) => t._startOffset - t.parent.parent._startOffset, len: (t) => ((t.parent.leftTable.max - t.off) / t.parent.rowWidth + 1) * (t.parent.rowWidth / 2), values: new
|
|
14741
|
+
}, MI = new z({ entry: new PI((t) => ((t.parent.entryFormat & 48) >> 4) + 1), outerIndex: (t) => t.entry >> (t.parent.entryFormat & 15) + 1, innerIndex: (t) => t.entry & (1 << (t.parent.entryFormat & 15) + 1) - 1 }), Vc = new z({ entryFormat: d, mapCount: d, mapData: new I(MI, "mapCount") }), VI = new z({ majorVersion: d, minorVersion: d, itemVariationStore: new B(T, Jl), advanceWidthMapping: new B(T, Vc), LSBMapping: new B(T, Vc), RSBMapping: new B(T, Vc) }), zI = new z({ format: T, length: T, offset: T }), OI = new z({ reserved: new De(d, 2), cbSignature: T, signature: new ki("cbSignature") }), RI = new z({ ulVersion: T, usNumSigs: d, usFlag: d, signatures: new I(zI, "usNumSigs"), signatureBlocks: new I(OI, "usNumSigs") }), LI = new z({ rangeMaxPPEM: d, rangeGaspBehavior: new ui(d, ["grayscale", "gridfit", "symmetricSmoothing", "symmetricGridfit"]) }), $I = new z({ version: d, numRanges: d, gaspRanges: new I(LI, "numRanges") }), UI = new z({ pixelSize: lt, maximumWidth: lt, widths: new I(lt, (t) => t.parent.parent.maxp.numGlyphs) }), ZI = new z({ version: d, numRecords: J, sizeDeviceRecord: $n, records: new I(UI, "numRecords") }), jI = new z({ left: d, right: d, value: J }), um = new z({ firstGlyph: d, nGlyphs: d, offsets: new I(d, "nGlyphs"), max: (t) => t.offsets.length && Math.max.apply(Math, t.offsets) }), GI = new z({ off: (t) => t._startOffset - t.parent.parent._startOffset, len: (t) => ((t.parent.leftTable.max - t.off) / t.parent.rowWidth + 1) * (t.parent.rowWidth / 2), values: new me(J, "len") }), lm = new te("format", { 0: { nPairs: d, searchRange: d, entrySelector: d, rangeShift: d, pairs: new I(jI, "nPairs") }, 2: { rowWidth: d, leftTable: new B(d, um, { type: "parent" }), rightTable: new B(d, um, { type: "parent" }), array: new B(d, GI, { type: "parent" }) }, 3: { glyphCount: d, kernValueCount: lt, leftClassCount: lt, rightClassCount: lt, flags: lt, kernValue: new I(J, "kernValueCount"), leftClass: new I(lt, "glyphCount"), rightClass: new I(lt, "glyphCount"), kernIndex: new I(lt, (t) => t.leftClassCount * t.rightClassCount) } }), cm = new te("version", { 0: { subVersion: d, length: d, format: lt, coverage: new ui(lt, ["horizontal", "minimum", "crossStream", "override"]), subtable: lm, padding: new De(lt, (t) => t.length - t._currentOffset) }, 1: { length: T, coverage: new ui(lt, [null, null, null, null, null, "variation", "crossStream", "vertical"]), format: lt, tupleIndex: d, subtable: lm, padding: new De(lt, (t) => t.length - t._currentOffset) } }), WI = new te(d, { 0: { nTables: d, tables: new I(cm, "nTables") }, 1: { reserved: new De(d), nTables: T, tables: new I(cm, "nTables") } }), HI = new z({ version: d, numGlyphs: d, yPels: new I(lt, "numGlyphs") }), YI = new z({ version: d, fontNumber: T, pitch: d, xHeight: d, style: d, typeFamily: d, capHeight: d, symbolSet: d, typeface: new pe(16), characterComplement: new pe(8), fileName: new pe(6), strokeWeight: new pe(1), widthType: new pe(1), serifStyle: lt, reserved: new De(lt) }), qI = new z({ bCharSet: lt, xRatio: lt, yStartRatio: lt, yEndRatio: lt }), XI = new z({ yPelHeight: d, yMax: J, yMin: J }), KI = new z({ recs: d, startsz: lt, endsz: lt, entries: new I(XI, "recs") }), JI = new z({ version: d, numRecs: d, numRatios: d, ratioRanges: new I(qI, "numRatios"), offsets: new I(d, "numRatios"), groups: new I(KI, "numRecs") }), QI = new z({ version: d, ascent: J, descent: J, lineGap: J, advanceHeightMax: J, minTopSideBearing: J, minBottomSideBearing: J, yMaxExtent: J, caretSlopeRise: J, caretSlopeRun: J, caretOffset: J, reserved: new De(J, 4), metricDataFormat: J, numberOfMetrics: d }), tB = new z({ advance: d, bearing: J }), eB = new z({ metrics: new me(tB, (t) => t.parent.vhea.numberOfMetrics), bearings: new me(J, (t) => t.parent.maxp.numGlyphs - t.parent.vhea.numberOfMetrics) }), fm = new ia(16, "BE", 14), rB = new z({ fromCoord: fm, toCoord: fm }), iB = new z({ pairCount: d, correspondence: new I(rB, "pairCount") }), nB = new z({ version: Re, axisCount: T, segment: new I(iB, "axisCount") }), aB = class {
|
|
14742
14742
|
getItem(t) {
|
|
14743
14743
|
if (this._items[t] == null) {
|
|
14744
14744
|
let e = this.stream.pos;
|
|
@@ -14776,7 +14776,7 @@ var DI = new Qt(T, { header: { scriptList: new B(d, Gw), featureList: new B(d, H
|
|
|
14776
14776
|
}
|
|
14777
14777
|
t = new e(t);
|
|
14778
14778
|
let r = new z({ unitSize: d, nUnits: d, searchRange: d, entrySelector: d, rangeShift: d }), n = new z({ lastGlyph: d, firstGlyph: d, value: t }), i = new z({ lastGlyph: d, firstGlyph: d, values: new B(d, new I(t, (s) => s.lastGlyph - s.firstGlyph + 1), { type: "parent" }) }), a = new z({ glyph: d, value: t });
|
|
14779
|
-
return new
|
|
14779
|
+
return new te(d, { 0: { values: new Ei(t) }, 2: { binarySearchHeader: r, segments: new I(n, (s) => s.binarySearchHeader.nUnits) }, 4: { binarySearchHeader: r, segments: new I(i, (s) => s.binarySearchHeader.nUnits) }, 6: { binarySearchHeader: r, segments: new I(a, (s) => s.binarySearchHeader.nUnits) }, 8: { firstGlyph: d, count: d, values: new I(t, "count") } });
|
|
14780
14780
|
};
|
|
14781
14781
|
function jo(t = {}, e = d) {
|
|
14782
14782
|
let r = Object.assign({ newState: d, flags: d }, t), n = new z(r), i = new Ei(new I(d, (s) => s.nClasses));
|
|
@@ -14788,11 +14788,11 @@ function sB(t = {}, e = d) {
|
|
|
14788
14788
|
}, firstGlyph: d, values: new I(lt, d) }), n = Object.assign({ newStateOffset: d, newState: (o) => (o.newStateOffset - (o.parent.stateArray.base - o.parent._startOffset)) / o.parent.nClasses, flags: d }, t), i = new z(n), a = new Ei(new I(lt, (o) => o.nClasses));
|
|
14789
14789
|
return new z({ nClasses: d, classTable: new B(d, r), stateArray: new B(d, a), entryTable: new B(d, new Ei(i)) });
|
|
14790
14790
|
}
|
|
14791
|
-
var oB = new
|
|
14791
|
+
var oB = new te("format", { 0: { deltas: new I(J, 32) }, 1: { deltas: new I(J, 32), mappingData: new _n(d) }, 2: { standardGlyph: d, controlPoints: new I(d, 32) }, 3: { standardGlyph: d, controlPoints: new I(d, 32), mappingData: new _n(d) } }), uB = new z({ version: Re, format: d, defaultBaseline: d, subtable: oB }), lB = new z({ setting: d, nameIndex: J, name: (t) => t.parent.parent.parent.name.records.fontFeatures[t.nameIndex] }), cB = new z({ feature: d, nSettings: d, settingTable: new B(T, new I(lB, "nSettings"), { type: "parent" }), featureFlags: new ui(lt, [null, null, null, null, null, null, "hasDefault", "exclusive"]), defaultSetting: lt, nameIndex: J, name: (t) => t.parent.parent.name.records.fontFeatures[t.nameIndex] }), fB = new z({ version: Re, featureNameCount: d, reserved1: new De(d), reserved2: new De(T), featureNames: new I(cB, "featureNameCount") }), hB = new z({ axisTag: new pe(4), minValue: Re, defaultValue: Re, maxValue: Re, flags: d, nameID: d, name: (t) => t.parent.parent.name.records.fontFeatures[t.nameID] }), dB = new z({ nameID: d, name: (t) => t.parent.parent.name.records.fontFeatures[t.nameID], flags: d, coord: new I(Re, (t) => t.parent.axisCount), postscriptNameID: new Du(d, (t) => t.parent.instanceSize - t._currentOffset > 0) }), pB = new z({ version: Re, offsetToData: d, countSizePairs: d, axisCount: d, axisSize: d, instanceCount: d, instanceSize: d, axis: new I(hB, "axisCount"), instance: new I(dB, "instanceCount") }), mB = new ia(16, "BE", 14), gB = class {
|
|
14792
14792
|
static decode(t, e) {
|
|
14793
14793
|
return e.flags ? t.readUInt32BE() : t.readUInt16BE() * 2;
|
|
14794
14794
|
}
|
|
14795
|
-
}, yB = new z({ version: d, reserved: new De(d), axisCount: d, globalCoordCount: d, globalCoords: new B(T, new I(new I(mB, "axisCount"), "globalCoordCount")), glyphCount: d, flags: d, offsetToData: T, offsets: new I(new B(gB, "void", { relativeTo: (t) => t.offsetToData, allowNull: !1 }), (t) => t.glyphCount + 1) }), vB = yB, bB = new z({ length: d, coverage: d, subFeatureFlags: T, stateTable: new sB() }), wB = new z({ justClass: T, beforeGrowLimit: Re, beforeShrinkLimit: Re, afterGrowLimit: Re, afterShrinkLimit: Re, growFlags: d, shrinkFlags: d }), _B = new I(wB, T), xB = new
|
|
14795
|
+
}, yB = new z({ version: d, reserved: new De(d), axisCount: d, globalCoordCount: d, globalCoords: new B(T, new I(new I(mB, "axisCount"), "globalCoordCount")), glyphCount: d, flags: d, offsetToData: T, offsets: new I(new B(gB, "void", { relativeTo: (t) => t.offsetToData, allowNull: !1 }), (t) => t.glyphCount + 1) }), vB = yB, bB = new z({ length: d, coverage: d, subFeatureFlags: T, stateTable: new sB() }), wB = new z({ justClass: T, beforeGrowLimit: Re, beforeShrinkLimit: Re, afterGrowLimit: Re, afterShrinkLimit: Re, growFlags: d, shrinkFlags: d }), _B = new I(wB, T), xB = new te("actionType", { 0: { lowerLimit: Re, upperLimit: Re, order: d, glyphs: new I(d, d) }, 1: { addGlyph: d }, 2: { substThreshold: Re, addGlyph: d, substGlyph: d }, 3: {}, 4: { variationAxis: T, minimumLimit: Re, noStretchValue: Re, maximumLimit: Re }, 5: { flags: d, glyph: d } }), CB = new z({ actionClass: d, actionType: d, actionLength: T, actionData: xB, padding: new De(lt, (t) => t.actionLength - t._currentOffset) }), EB = new I(CB, T), AB = new z({ lookupTable: new _n(new B(d, EB)) }), hm = new z({ classTable: new B(d, bB, { type: "parent" }), wdcOffset: d, postCompensationTable: new B(d, AB, { type: "parent" }), widthDeltaClusters: new _n(new B(d, _B, { type: "parent", relativeTo: (t) => t.wdcOffset })) }), kB = new z({ version: T, format: d, horizontal: new B(d, hm), vertical: new B(d, hm) }), SB = { action: d }, DB = { markIndex: d, currentIndex: d }, FB = { currentInsertIndex: d, markedInsertIndex: d }, IB = new z({ items: new Ei(new B(T, new _n())) }), BB = new te("type", { 0: { stateTable: new jo() }, 1: { stateTable: new jo(DB), substitutionTable: new B(T, IB) }, 2: { stateTable: new jo(SB), ligatureActions: new B(T, new Ei(T)), components: new B(T, new Ei(d)), ligatureList: new B(T, new Ei(d)) }, 4: { lookupTable: new _n() }, 5: { stateTable: new jo(FB), insertionActions: new B(T, new Ei(d)) } }), NB = new z({ length: T, coverage: mn, type: lt, subFeatureFlags: T, table: BB, padding: new De(lt, (t) => t.length - t._currentOffset) }), TB = new z({ featureType: d, featureSetting: d, enableFlags: T, disableFlags: T }), PB = new z({ defaultFlags: T, chainLength: T, nFeatureEntries: T, nSubtables: T, features: new I(TB, "nFeatureEntries"), subtables: new I(NB, "nSubtables") }), MB = new z({ version: d, unused: new De(d), nChains: T, chains: new I(PB, "nChains") }), VB = new z({ left: J, top: J, right: J, bottom: J }), zB = new z({ version: Re, format: d, lookupTable: new _n(VB) }), Ot = {}, Nu = Ot;
|
|
14796
14796
|
Ot.cmap = MD;
|
|
14797
14797
|
Ot.head = VD;
|
|
14798
14798
|
Ot.hhea = zD;
|
|
@@ -14837,7 +14837,7 @@ Ot.gvar = vB;
|
|
|
14837
14837
|
Ot.just = kB;
|
|
14838
14838
|
Ot.morx = MB;
|
|
14839
14839
|
Ot.opbd = zB;
|
|
14840
|
-
var OB = new z({ tag: new
|
|
14840
|
+
var OB = new z({ tag: new pe(4), checkSum: T, offset: new B(T, "void", { type: "global" }), length: T }), dd = new z({ tag: new pe(4), numTables: d, searchRange: d, entrySelector: d, rangeShift: d, tables: new I(OB, "numTables") });
|
|
14841
14841
|
dd.process = function() {
|
|
14842
14842
|
let t = {};
|
|
14843
14843
|
for (let e of this.tables) t[e.tag] = e;
|
|
@@ -15687,7 +15687,7 @@ var fN = class {
|
|
|
15687
15687
|
}
|
|
15688
15688
|
};
|
|
15689
15689
|
Nr(xn, "zeroMarkWidths", "AFTER_GPOS");
|
|
15690
|
-
var vN = new fd.default(pd("APABAAAAAAAAOAAAAf0BAv7tmi1MxDAUx7vtvjhAgcDgkEgEAnmXEBIMCYaEcygEiqBQ4FAkCE4ikUgMiiBJSAgSiUQSDMn9L9eSl6bddddug9t7yS/trevre+3r27pcNxZiG+yCfdCVv/9LeQxOwRm4AJegD27ALbgD9+ABPJF+z+BN/h7yDj5k/VOWX6SdmU5+wLWknggxDxaS8u0qiiX4uiz9XamQ3wzDMAzDMAzDMAzDVI/h959V/v7BMAzDMAzDMLlyNTNiMSdewVxbiA44B4/guz1qW58VYlMI0WsJ0W+N6kXw0spvPtdwhtkwnGM6uLaV4Xyzg3v3PM9DPfQ/sOg4xPWjipy31P8LTqbU304c/cLCUmWJLNB2Uz2U1KTeRKNmKHVMfbJC+/0loTZRH/W5cvEvBJPMbREkWt3FD1NcqXZBSpuE2Ad0PBehPtNrPtIEdYP+hiRt/V1jIiE69X4NT/uVZI3PUHE9bm5M7ePGdZWy951v7Nn6j8v1WWKP3mt6ttnsigx6VN7Vc0VomSSGqW2mGNP1muZPl7LfjNUaKNFtDGVf2fvE9O7VlBS5j333c5p/eeoOqcs1R/hIqDWLJ7TTlksirVT1SI7l8k4Yp+g3jafGcrU1RM6l9th80XOpnlN97bDNY4i4s61B0Si/ipa0uHMl6zqEjlFfCZm/TM8KmzQDjmuTAQ==")), wm = ["isol", "fina", "fin2", "fin3", "medi", "med2", "init"], x0 = { Non_Joining: 0, Transparent: 6 },
|
|
15690
|
+
var vN = new fd.default(pd("APABAAAAAAAAOAAAAf0BAv7tmi1MxDAUx7vtvjhAgcDgkEgEAnmXEBIMCYaEcygEiqBQ4FAkCE4ikUgMiiBJSAgSiUQSDMn9L9eSl6bddddug9t7yS/trevre+3r27pcNxZiG+yCfdCVv/9LeQxOwRm4AJegD27ALbgD9+ABPJF+z+BN/h7yDj5k/VOWX6SdmU5+wLWknggxDxaS8u0qiiX4uiz9XamQ3wzDMAzDMAzDMAzDVI/h959V/v7BMAzDMAzDMLlyNTNiMSdewVxbiA44B4/guz1qW58VYlMI0WsJ0W+N6kXw0spvPtdwhtkwnGM6uLaV4Xyzg3v3PM9DPfQ/sOg4xPWjipy31P8LTqbU304c/cLCUmWJLNB2Uz2U1KTeRKNmKHVMfbJC+/0loTZRH/W5cvEvBJPMbREkWt3FD1NcqXZBSpuE2Ad0PBehPtNrPtIEdYP+hiRt/V1jIiE69X4NT/uVZI3PUHE9bm5M7ePGdZWy951v7Nn6j8v1WWKP3mt6ttnsigx6VN7Vc0VomSSGqW2mGNP1muZPl7LfjNUaKNFtDGVf2fvE9O7VlBS5j333c5p/eeoOqcs1R/hIqDWLJ7TTlksirVT1SI7l8k4Yp+g3jafGcrU1RM6l9th80XOpnlN97bDNY4i4s61B0Si/ipa0uHMl6zqEjlFfCZm/TM8KmzQDjmuTAQ==")), wm = ["isol", "fina", "fin2", "fin3", "medi", "med2", "init"], x0 = { Non_Joining: 0, Transparent: 6 }, we = "isol", sn = "fina", zc = "fin2", bN = "fin3", Go = "medi", Wo = "med2", Ho = "init", ne = null, wN = [[[ne, ne, 0], [ne, we, 2], [ne, we, 1], [ne, we, 2], [ne, we, 1], [ne, we, 6]], [[ne, ne, 0], [ne, we, 2], [ne, we, 1], [ne, we, 2], [ne, zc, 5], [ne, we, 6]], [[ne, ne, 0], [ne, we, 2], [Ho, sn, 1], [Ho, sn, 3], [Ho, sn, 4], [Ho, sn, 6]], [[ne, ne, 0], [ne, we, 2], [Go, sn, 1], [Go, sn, 3], [Go, sn, 4], [Go, sn, 6]], [[ne, ne, 0], [ne, we, 2], [Wo, we, 1], [Wo, we, 2], [Wo, zc, 5], [Wo, we, 6]], [[ne, ne, 0], [ne, we, 2], [we, we, 1], [we, we, 2], [we, zc, 5], [we, we, 6]], [[ne, ne, 0], [ne, we, 2], [ne, we, 1], [ne, we, 2], [ne, bN, 5], [ne, we, 6]]], on = class extends xn {
|
|
15691
15691
|
static planFeatures(t) {
|
|
15692
15692
|
t.add(["ccmp", "locl"]);
|
|
15693
15693
|
for (let e = 0; e < wm.length; e++) {
|
|
@@ -15704,10 +15704,10 @@ var vN = new fd.default(pd("APABAAAAAAAAOAAAAf0BAv7tmi1MxDAUx7vtvjhAgcDgkEgEAnmX
|
|
|
15704
15704
|
var a = e[s];
|
|
15705
15705
|
let l = _N(a.codePoints[0]);
|
|
15706
15706
|
if (l === x0.Transparent) {
|
|
15707
|
-
i[s] =
|
|
15707
|
+
i[s] = ne;
|
|
15708
15708
|
continue;
|
|
15709
15709
|
}
|
|
15710
|
-
[u, o, n] = wN[n][l], u !==
|
|
15710
|
+
[u, o, n] = wN[n][l], u !== ne && r !== -1 && (i[r] = u), i[s] = o, r = s;
|
|
15711
15711
|
}
|
|
15712
15712
|
for (let s = 0; s < e.length; s++) {
|
|
15713
15713
|
let o;
|
|
@@ -17104,7 +17104,7 @@ var Dm = new z({ numberOfContours: J, xMin: J, yMin: J, xMax: J, yMax: J }), mT
|
|
|
17104
17104
|
for (; e.pos < n; ) {
|
|
17105
17105
|
let N = e.readUInt8();
|
|
17106
17106
|
if (N < 32) {
|
|
17107
|
-
let tt, q, at, dt, ct, $, K, et, Et, zt, Lt,
|
|
17107
|
+
let tt, q, at, dt, ct, $, K, et, Et, zt, Lt, ae, ue, Jt, Ue, se;
|
|
17108
17108
|
switch (N) {
|
|
17109
17109
|
case 1:
|
|
17110
17110
|
case 3:
|
|
@@ -17277,23 +17277,23 @@ var Dm = new z({ numberOfContours: J, xMin: J, yMin: J, xMax: J, yMax: J }), mT
|
|
|
17277
17277
|
}
|
|
17278
17278
|
break;
|
|
17279
17279
|
case 34:
|
|
17280
|
-
dt = l + a.shift(), ct = c, $ = dt + a.shift(), K = ct + a.shift(), et = $ + a.shift(), Et = K, zt = et + a.shift(), Lt = Et,
|
|
17280
|
+
dt = l + a.shift(), ct = c, $ = dt + a.shift(), K = ct + a.shift(), et = $ + a.shift(), Et = K, zt = et + a.shift(), Lt = Et, ae = zt + a.shift(), ue = Lt, Jt = ae + a.shift(), Ue = ue, l = Jt, c = Ue, i.bezierCurveTo(dt, ct, $, K, et, Et), i.bezierCurveTo(zt, Lt, ae, ue, Jt, Ue);
|
|
17281
17281
|
break;
|
|
17282
17282
|
case 35:
|
|
17283
|
-
|
|
17283
|
+
se = [];
|
|
17284
17284
|
for (let rt = 0; rt <= 5; rt++)
|
|
17285
|
-
l += a.shift(), c += a.shift(),
|
|
17286
|
-
i.bezierCurveTo(...
|
|
17285
|
+
l += a.shift(), c += a.shift(), se.push(l, c);
|
|
17286
|
+
i.bezierCurveTo(...se.slice(0, 6)), i.bezierCurveTo(...se.slice(6)), a.shift();
|
|
17287
17287
|
break;
|
|
17288
17288
|
case 36:
|
|
17289
|
-
dt = l + a.shift(), ct = c + a.shift(), $ = dt + a.shift(), K = ct + a.shift(), et = $ + a.shift(), Et = K, zt = et + a.shift(), Lt = Et,
|
|
17289
|
+
dt = l + a.shift(), ct = c + a.shift(), $ = dt + a.shift(), K = ct + a.shift(), et = $ + a.shift(), Et = K, zt = et + a.shift(), Lt = Et, ae = zt + a.shift(), ue = Lt + a.shift(), Jt = ae + a.shift(), Ue = ue, l = Jt, c = Ue, i.bezierCurveTo(dt, ct, $, K, et, Et), i.bezierCurveTo(zt, Lt, ae, ue, Jt, Ue);
|
|
17290
17290
|
break;
|
|
17291
17291
|
case 37:
|
|
17292
17292
|
let nt = l, vt = c;
|
|
17293
|
-
|
|
17293
|
+
se = [];
|
|
17294
17294
|
for (let rt = 0; rt <= 4; rt++)
|
|
17295
|
-
l += a.shift(), c += a.shift(),
|
|
17296
|
-
Math.abs(l - nt) > Math.abs(c - vt) ? (l += a.shift(), c = vt) : (l = nt, c += a.shift()),
|
|
17295
|
+
l += a.shift(), c += a.shift(), se.push(l, c);
|
|
17296
|
+
Math.abs(l - nt) > Math.abs(c - vt) ? (l += a.shift(), c = vt) : (l = nt, c += a.shift()), se.push(l, c), i.bezierCurveTo(...se.slice(0, 6)), i.bezierCurveTo(...se.slice(6));
|
|
17297
17297
|
break;
|
|
17298
17298
|
default:
|
|
17299
17299
|
throw new Error(`Unknown op: 12 ${N}`);
|
|
@@ -17317,7 +17317,7 @@ var Dm = new z({ numberOfContours: J, xMin: J, yMin: J, xMax: J, yMax: J }), mT
|
|
|
17317
17317
|
constructor(...t) {
|
|
17318
17318
|
super(...t), Nr(this, "type", "CFF");
|
|
17319
17319
|
}
|
|
17320
|
-
}, DT = new z({ originX: d, originY: d, type: new
|
|
17320
|
+
}, DT = new z({ originX: d, originY: d, type: new pe(4), data: new ki((t) => t.parent.buflen - t._currentOffset) }), FT = class extends nc {
|
|
17321
17321
|
getImageForSize(t) {
|
|
17322
17322
|
for (let a = 0; a < this._font.sbix.imageTables.length; a++) {
|
|
17323
17323
|
var e = this._font.sbix.imageTables[a];
|
|
@@ -17890,7 +17890,7 @@ ar([sr], Ir.prototype, "_layoutEngine", null);
|
|
|
17890
17890
|
ar([sr], Ir.prototype, "variationAxes", null);
|
|
17891
17891
|
ar([sr], Ir.prototype, "namedVariations", null);
|
|
17892
17892
|
ar([sr], Ir.prototype, "_variationProcessor", null);
|
|
17893
|
-
var YT = new z({ tag: new
|
|
17893
|
+
var YT = new z({ tag: new pe(4), offset: new B(T, "void", { type: "global" }), compLength: T, length: T, origChecksum: T }), A2 = new z({ tag: new pe(4), flavor: T, length: T, numTables: d, reserved: new De(d), totalSfntSize: T, majorVersion: d, minorVersion: d, metaOffset: T, metaLength: T, metaOrigLength: T, privOffset: T, privLength: T, tables: new I(YT, "numTables") });
|
|
17894
17894
|
A2.process = function() {
|
|
17895
17895
|
let t = {};
|
|
17896
17896
|
for (let e of this.tables) t[e.tag] = e;
|
|
@@ -17934,7 +17934,7 @@ var qT = A2, XT = class extends Ir {
|
|
|
17934
17934
|
if (e = e << 7 | i & 127, !(i & 128)) return e;
|
|
17935
17935
|
}
|
|
17936
17936
|
throw new Error("Bad base 128 number");
|
|
17937
|
-
} }, JT = ["cmap", "head", "hhea", "hmtx", "maxp", "name", "OS/2", "post", "cvt ", "fpgm", "glyf", "loca", "prep", "CFF ", "VORG", "EBDT", "EBLC", "gasp", "hdmx", "kern", "LTSH", "PCLT", "VDMX", "vhea", "vmtx", "BASE", "GDEF", "GPOS", "GSUB", "EBSC", "JSTF", "MATH", "CBDT", "CBLC", "COLR", "CPAL", "SVG ", "sbix", "acnt", "avar", "bdat", "bloc", "bsln", "cvar", "fdsc", "feat", "fmtx", "fvar", "gvar", "hsty", "just", "lcar", "mort", "morx", "opbd", "prop", "trak", "Zapf", "Silf", "Glat", "Gloc", "Feat", "Sill"], QT = new z({ flags: lt, customTag: new Du(new
|
|
17937
|
+
} }, JT = ["cmap", "head", "hhea", "hmtx", "maxp", "name", "OS/2", "post", "cvt ", "fpgm", "glyf", "loca", "prep", "CFF ", "VORG", "EBDT", "EBLC", "gasp", "hdmx", "kern", "LTSH", "PCLT", "VDMX", "vhea", "vmtx", "BASE", "GDEF", "GPOS", "GSUB", "EBSC", "JSTF", "MATH", "CBDT", "CBLC", "COLR", "CPAL", "SVG ", "sbix", "acnt", "avar", "bdat", "bloc", "bsln", "cvar", "fdsc", "feat", "fmtx", "fvar", "gvar", "hsty", "just", "lcar", "mort", "morx", "opbd", "prop", "trak", "Zapf", "Silf", "Glat", "Gloc", "Feat", "Sill"], QT = new z({ flags: lt, customTag: new Du(new pe(4), (t) => (t.flags & 63) === 63), tag: (t) => t.customTag || JT[t.flags & 63], length: zm, transformVersion: (t) => t.flags >>> 6 & 3, transformed: (t) => t.tag === "glyf" || t.tag === "loca" ? t.transformVersion === 0 : t.transformVersion !== 0, transformLength: new Du(zm, (t) => t.transformed) }), k2 = new z({ tag: new pe(4), flavor: T, length: T, numTables: d, reserved: new De(d), totalSfntSize: T, totalCompressedSize: T, majorVersion: d, minorVersion: d, metaOffset: T, metaLength: T, metaOrigLength: T, privOffset: T, privLength: T, tables: new I(QT, "numTables") });
|
|
17938
17938
|
k2.process = function() {
|
|
17939
17939
|
let t = {};
|
|
17940
17940
|
for (let e = 0; e < this.tables.length; e++) {
|
|
@@ -18032,7 +18032,7 @@ function sP(t, e, r) {
|
|
|
18032
18032
|
}
|
|
18033
18033
|
return a;
|
|
18034
18034
|
}
|
|
18035
|
-
var oP = new
|
|
18035
|
+
var oP = new te(T, { 65536: { numFonts: T, offsets: new I(T, "numFonts") }, 131072: { numFonts: T, offsets: new I(T, "numFonts"), dsigTag: T, dsigLength: T, dsigOffset: T } }), uP = class {
|
|
18036
18036
|
static probe(t) {
|
|
18037
18037
|
return Ql.decode(t.slice(0, 4)) === "ttcf";
|
|
18038
18038
|
}
|
|
@@ -18057,9 +18057,9 @@ var oP = new Qt(T, { 65536: { numFonts: T, offsets: new I(T, "numFonts") }, 1310
|
|
|
18057
18057
|
if (Nr(this, "type", "TTC"), this.stream = t, t.readString(4) !== "ttcf") throw new Error("Not a TrueType collection");
|
|
18058
18058
|
this.header = oP.decode(t);
|
|
18059
18059
|
}
|
|
18060
|
-
}, lP = new
|
|
18060
|
+
}, lP = new pe(lt);
|
|
18061
18061
|
new z({ len: T, buf: new ki("len") });
|
|
18062
|
-
var cP = new z({ id: d, nameOffset: J, attr: lt, dataOffset: mn, handle: T }), fP = new z({ name: new
|
|
18062
|
+
var cP = new z({ id: d, nameOffset: J, attr: lt, dataOffset: mn, handle: T }), fP = new z({ name: new pe(4), maxTypeIndex: d, refList: new B(d, new I(cP, (t) => t.maxTypeIndex + 1), { type: "parent" }) }), hP = new z({ length: d, types: new I(fP, (t) => t.length + 1) }), dP = new z({ reserved: new De(lt, 24), typeList: new B(d, hP), nameListOffset: new B(d, "void") }), Rm = new z({ dataOffset: T, map: new B(T, dP), dataLength: T, mapLength: T }), pP = class {
|
|
18063
18063
|
static probe(t) {
|
|
18064
18064
|
let e = new rr(t);
|
|
18065
18065
|
try {
|
|
@@ -18131,45 +18131,45 @@ function yP(t, e) {
|
|
|
18131
18131
|
const r = e.filter((i) => i < t).sort((i, a) => a - i), n = e.filter((i) => i > t).sort((i, a) => i - a);
|
|
18132
18132
|
return t >= 400 && t <= 500 ? n.filter((a) => a <= 500)[0] ?? r[0] ?? n[0] : t < 400 ? r[0] ?? n[0] : n[0] ?? r[0];
|
|
18133
18133
|
}
|
|
18134
|
-
var Ao = class
|
|
18134
|
+
var Ao = class Ce {
|
|
18135
18135
|
constructor(e) {
|
|
18136
18136
|
Tt(this, "hb"), Tt(this, "faces", /* @__PURE__ */ new Map()), Tt(this, "fonts", /* @__PURE__ */ new Map()), Tt(this, "blobs", /* @__PURE__ */ new Map()), Tt(this, "fontkitFonts", /* @__PURE__ */ new Map()), Tt(this, "fontkitBaseFonts", /* @__PURE__ */ new Map()), Tt(this, "variants", /* @__PURE__ */ new Map()), Tt(this, "colorEmojiFonts", /* @__PURE__ */ new Set()), Tt(this, "colorEmojiFontBytes", /* @__PURE__ */ new Map()), Tt(this, "registeredCanvasFonts", /* @__PURE__ */ new Set()), Tt(this, "wasmBaseURL"), Tt(this, "initPromise"), Tt(this, "emojiFallbackDesc"), this.wasmBaseURL = e;
|
|
18137
18137
|
}
|
|
18138
18138
|
static setFallbackLoader(e) {
|
|
18139
|
-
|
|
18139
|
+
Ce.fallbackLoader = e;
|
|
18140
18140
|
}
|
|
18141
18141
|
static async getSharedInstance(e) {
|
|
18142
|
-
if (
|
|
18143
|
-
const r = await
|
|
18144
|
-
return
|
|
18145
|
-
}
|
|
18146
|
-
if (
|
|
18147
|
-
return
|
|
18148
|
-
|
|
18149
|
-
const r = new
|
|
18150
|
-
return await r.init(),
|
|
18142
|
+
if (Ce.sharedInitPromise) {
|
|
18143
|
+
const r = await Ce.sharedInitPromise;
|
|
18144
|
+
return Ce.refCount++, r;
|
|
18145
|
+
}
|
|
18146
|
+
if (Ce.sharedInstance)
|
|
18147
|
+
return Ce.refCount++, Ce.sharedInstance;
|
|
18148
|
+
Ce.sharedInitPromise = (async () => {
|
|
18149
|
+
const r = new Ce(e);
|
|
18150
|
+
return await r.init(), Ce.sharedInstance = r, Ce.refCount = 1, r;
|
|
18151
18151
|
})();
|
|
18152
18152
|
try {
|
|
18153
|
-
return await
|
|
18153
|
+
return await Ce.sharedInitPromise;
|
|
18154
18154
|
} finally {
|
|
18155
|
-
|
|
18155
|
+
Ce.sharedInitPromise = null;
|
|
18156
18156
|
}
|
|
18157
18157
|
}
|
|
18158
18158
|
static getRefCount() {
|
|
18159
|
-
return
|
|
18159
|
+
return Ce.refCount;
|
|
18160
18160
|
}
|
|
18161
18161
|
static hasSharedInstance() {
|
|
18162
|
-
return
|
|
18162
|
+
return Ce.sharedInstance !== null;
|
|
18163
18163
|
}
|
|
18164
18164
|
release() {
|
|
18165
|
-
if (this !==
|
|
18165
|
+
if (this !== Ce.sharedInstance) {
|
|
18166
18166
|
this.destroy();
|
|
18167
18167
|
return;
|
|
18168
18168
|
}
|
|
18169
|
-
|
|
18169
|
+
Ce.refCount > 0 && Ce.refCount--;
|
|
18170
18170
|
}
|
|
18171
18171
|
static resetSharedInstance() {
|
|
18172
|
-
|
|
18172
|
+
Ce.sharedInstance && (Ce.sharedInstance.destroy(), Ce.sharedInstance = null), Ce.refCount = 0, Ce.sharedInitPromise = null;
|
|
18173
18173
|
}
|
|
18174
18174
|
setEmojiFallback(e) {
|
|
18175
18175
|
this.emojiFallbackDesc = e;
|
|
@@ -18274,7 +18274,7 @@ var Ao = class xe {
|
|
|
18274
18274
|
}
|
|
18275
18275
|
}
|
|
18276
18276
|
async tryFallbackInstall(e) {
|
|
18277
|
-
const r =
|
|
18277
|
+
const r = Ce.fallbackLoader;
|
|
18278
18278
|
if (!r) return !1;
|
|
18279
18279
|
try {
|
|
18280
18280
|
const n = Ca(e.family, e.weight, e.style), i = await r({ family: n.family, weight: n.weight, style: n.style });
|
|
@@ -18291,7 +18291,7 @@ var Ao = class xe {
|
|
|
18291
18291
|
const c = this.fontkitFonts.get(n);
|
|
18292
18292
|
return c && this.fontkitFonts.set(r, c), u;
|
|
18293
18293
|
}
|
|
18294
|
-
const a =
|
|
18294
|
+
const a = Ce.fallbackLoader;
|
|
18295
18295
|
if (!a) return;
|
|
18296
18296
|
const s = await a({ family: $m, weight: "400", style: "normal" });
|
|
18297
18297
|
if (s)
|
|
@@ -18439,7 +18439,7 @@ function vP() {
|
|
|
18439
18439
|
r[vt].split(",").forEach(function(Zt) {
|
|
18440
18440
|
var kt = Zt.split("+"), Ft = kt[0], wt = kt[1];
|
|
18441
18441
|
Ft = parseInt(Ft, 36), wt = wt ? parseInt(wt, 36) : 0, c.set(rt += Ft, n[vt]);
|
|
18442
|
-
for (var
|
|
18442
|
+
for (var ie = 0; ie < wt; ie++)
|
|
18443
18443
|
c.set(++rt, n[vt]);
|
|
18444
18444
|
});
|
|
18445
18445
|
}
|
|
@@ -18456,13 +18456,13 @@ function vP() {
|
|
|
18456
18456
|
var m = { pairs: "14>1,1e>2,u>2,2wt>1,1>1,1ge>1,1wp>1,1j>1,f>1,hm>1,1>1,u>1,u6>1,1>1,+5,28>1,w>1,1>1,+3,b8>1,1>1,+3,1>3,-1>-1,3>1,1>1,+2,1s>1,1>1,x>1,th>1,1>1,+2,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,4q>1,1e>2,u>2,2>1,+1", canonical: "6f1>-6dx,6dy>-6dx,6ec>-6ed,6ee>-6ed,6ww>2jj,-2ji>2jj,14r4>-1e7l,1e7m>-1e7l,1e7m>-1e5c,1e5d>-1e5b,1e5c>-14qx,14qy>-14qx,14vn>-1ecg,1ech>-1ecg,1edu>-1ecg,1eci>-1ecg,1eda>-1ecg,1eci>-1ecg,1eci>-168q,168r>-168q,168s>-14ye,14yf>-14ye" };
|
|
18457
18457
|
function C(X, nt) {
|
|
18458
18458
|
var vt = 36, rt = 0, Zt = /* @__PURE__ */ new Map(), kt = nt && /* @__PURE__ */ new Map(), Ft;
|
|
18459
|
-
return X.split(",").forEach(function wt(
|
|
18460
|
-
if (
|
|
18461
|
-
for (var
|
|
18459
|
+
return X.split(",").forEach(function wt(ie) {
|
|
18460
|
+
if (ie.indexOf("+") !== -1)
|
|
18461
|
+
for (var le = +ie; le--; )
|
|
18462
18462
|
wt(Ft);
|
|
18463
18463
|
else {
|
|
18464
|
-
Ft =
|
|
18465
|
-
var mt =
|
|
18464
|
+
Ft = ie;
|
|
18465
|
+
var mt = ie.split(">"), Ve = mt[0], Je = mt[1];
|
|
18466
18466
|
Ve = String.fromCodePoint(rt += parseInt(Ve, vt)), Je = String.fromCodePoint(rt += parseInt(Je, vt)), Zt.set(Ve, Je), nt && kt.set(Je, Ve);
|
|
18467
18467
|
}
|
|
18468
18468
|
}), { map: Zt, reverseMap: kt };
|
|
@@ -18483,7 +18483,7 @@ function vP() {
|
|
|
18483
18483
|
function v(X) {
|
|
18484
18484
|
return w(), k.get(X) || null;
|
|
18485
18485
|
}
|
|
18486
|
-
var R = n.L, F = n.R, O = n.EN, S = n.ES, U = n.ET, N = n.AN, tt = n.CS, q = n.B, at = n.S, dt = n.ON, ct = n.BN, $ = n.NSM, K = n.AL, et = n.LRO, Et = n.RLO, zt = n.LRE, Lt = n.RLE,
|
|
18486
|
+
var R = n.L, F = n.R, O = n.EN, S = n.ES, U = n.ET, N = n.AN, tt = n.CS, q = n.B, at = n.S, dt = n.ON, ct = n.BN, $ = n.NSM, K = n.AL, et = n.LRO, Et = n.RLO, zt = n.LRE, Lt = n.RLE, ae = n.PDF, ue = n.LRI, Jt = n.RLI, Ue = n.FSI, se = n.PDI;
|
|
18487
18487
|
function j(X, nt) {
|
|
18488
18488
|
for (var vt = 125, rt = new Uint32Array(X.length), Zt = 0; Zt < X.length; Zt++)
|
|
18489
18489
|
rt[Zt] = h(X[Zt]);
|
|
@@ -18492,14 +18492,14 @@ function vP() {
|
|
|
18492
18492
|
var _r = rt[wr];
|
|
18493
18493
|
rt[wr] = ii, kt.set(_r, kt.get(_r) - 1), _r & o && kt.set(o, kt.get(o) - 1), kt.set(ii, (kt.get(ii) || 0) + 1), ii & o && kt.set(o, (kt.get(o) || 0) + 1);
|
|
18494
18494
|
}
|
|
18495
|
-
for (var wt = new Uint8Array(X.length),
|
|
18496
|
-
mt ||
|
|
18497
|
-
for (var Je = Lt | zt | Et | et | a |
|
|
18495
|
+
for (var wt = new Uint8Array(X.length), ie = /* @__PURE__ */ new Map(), le = [], mt = null, Ve = 0; Ve < X.length; Ve++)
|
|
18496
|
+
mt || le.push(mt = { start: Ve, end: X.length - 1, level: nt === "rtl" ? 1 : nt === "ltr" ? 0 : $d(Ve, !1) }), rt[Ve] & q && (mt.end = Ve, mt = null);
|
|
18497
|
+
for (var Je = Lt | zt | Et | et | a | se | ae | q, ye = function(wr) {
|
|
18498
18498
|
return wr + (wr & 1 ? 1 : 2);
|
|
18499
18499
|
}, Tr = function(wr) {
|
|
18500
18500
|
return wr + (wr & 1 ? 2 : 1);
|
|
18501
|
-
}, Oe = 0; Oe <
|
|
18502
|
-
mt =
|
|
18501
|
+
}, Oe = 0; Oe < le.length; Oe++) {
|
|
18502
|
+
mt = le[Oe];
|
|
18503
18503
|
var Ht = [{ _level: mt.level, _override: 0, _isolate: 0 }], jt = void 0, or = 0, hr = 0, qe = 0;
|
|
18504
18504
|
kt.clear();
|
|
18505
18505
|
for (var Ae = mt.start; Ae <= mt.end; Ae++) {
|
|
@@ -18507,48 +18507,48 @@ function vP() {
|
|
|
18507
18507
|
if (jt = Ht[Ht.length - 1], kt.set(Fe, (kt.get(Fe) || 0) + 1), Fe & o && kt.set(o, (kt.get(o) || 0) + 1), Fe & Je)
|
|
18508
18508
|
if (Fe & (Lt | zt)) {
|
|
18509
18509
|
wt[Ae] = jt._level;
|
|
18510
|
-
var Dn = (Fe === Lt ? Tr :
|
|
18510
|
+
var Dn = (Fe === Lt ? Tr : ye)(jt._level);
|
|
18511
18511
|
Dn <= vt && !or && !hr ? Ht.push({ _level: Dn, _override: 0, _isolate: 0 }) : or || hr++;
|
|
18512
18512
|
} else if (Fe & (Et | et)) {
|
|
18513
18513
|
wt[Ae] = jt._level;
|
|
18514
|
-
var Ii = (Fe === Et ? Tr :
|
|
18514
|
+
var Ii = (Fe === Et ? Tr : ye)(jt._level);
|
|
18515
18515
|
Ii <= vt && !or && !hr ? Ht.push({ _level: Ii, _override: Fe & Et ? F : R, _isolate: 0 }) : or || hr++;
|
|
18516
18516
|
} else if (Fe & a) {
|
|
18517
|
-
Fe & Ue && (Fe = $d(Ae + 1, !0) === 1 ? Jt :
|
|
18518
|
-
var Bi = (Fe === Jt ? Tr :
|
|
18517
|
+
Fe & Ue && (Fe = $d(Ae + 1, !0) === 1 ? Jt : ue), wt[Ae] = jt._level, jt._override && Ft(Ae, jt._override);
|
|
18518
|
+
var Bi = (Fe === Jt ? Tr : ye)(jt._level);
|
|
18519
18519
|
Bi <= vt && or === 0 && hr === 0 ? (qe++, Ht.push({ _level: Bi, _override: 0, _isolate: 1, _isolInitIndex: Ae })) : or++;
|
|
18520
|
-
} else if (Fe &
|
|
18520
|
+
} else if (Fe & se) {
|
|
18521
18521
|
if (or > 0)
|
|
18522
18522
|
or--;
|
|
18523
18523
|
else if (qe > 0) {
|
|
18524
18524
|
for (hr = 0; !Ht[Ht.length - 1]._isolate; )
|
|
18525
18525
|
Ht.pop();
|
|
18526
18526
|
var Qi = Ht[Ht.length - 1]._isolInitIndex;
|
|
18527
|
-
Qi != null && (
|
|
18527
|
+
Qi != null && (ie.set(Qi, Ae), ie.set(Ae, Qi)), Ht.pop(), qe--;
|
|
18528
18528
|
}
|
|
18529
18529
|
jt = Ht[Ht.length - 1], wt[Ae] = jt._level, jt._override && Ft(Ae, jt._override);
|
|
18530
|
-
} else Fe &
|
|
18530
|
+
} else Fe & ae ? (or === 0 && (hr > 0 ? hr-- : !jt._isolate && Ht.length > 1 && (Ht.pop(), jt = Ht[Ht.length - 1])), wt[Ae] = jt._level) : Fe & q && (wt[Ae] = mt.level);
|
|
18531
18531
|
else
|
|
18532
18532
|
wt[Ae] = jt._level, jt._override && Fe !== ct && Ft(Ae, jt._override);
|
|
18533
18533
|
}
|
|
18534
18534
|
for (var Ur = [], dr = null, Pr = mt.start; Pr <= mt.end; Pr++) {
|
|
18535
18535
|
var ur = rt[Pr];
|
|
18536
18536
|
if (!(ur & u)) {
|
|
18537
|
-
var Ni = wt[Pr], Fn = ur & a, D = ur ===
|
|
18537
|
+
var Ni = wt[Pr], Fn = ur & a, D = ur === se;
|
|
18538
18538
|
dr && Ni === dr._level ? (dr._end = Pr, dr._endsWithIsolInit = Fn) : Ur.push(dr = { _start: Pr, _end: Pr, _level: Ni, _startsWithPDI: D, _endsWithIsolInit: Fn });
|
|
18539
18539
|
}
|
|
18540
18540
|
}
|
|
18541
18541
|
for (var pt = [], Gt = 0; Gt < Ur.length; Gt++) {
|
|
18542
|
-
var
|
|
18543
|
-
if (!
|
|
18544
|
-
for (var
|
|
18542
|
+
var ce = Ur[Gt];
|
|
18543
|
+
if (!ce._startsWithPDI || ce._startsWithPDI && !ie.has(ce._start)) {
|
|
18544
|
+
for (var ee = [dr = ce], Le = void 0; dr && dr._endsWithIsolInit && (Le = ie.get(dr._end)) != null; )
|
|
18545
18545
|
for (var Mr = Gt + 1; Mr < Ur.length; Mr++)
|
|
18546
18546
|
if (Ur[Mr]._start === Le) {
|
|
18547
|
-
|
|
18547
|
+
ee.push(dr = Ur[Mr]);
|
|
18548
18548
|
break;
|
|
18549
18549
|
}
|
|
18550
|
-
for (var ei = [], In = 0; In <
|
|
18551
|
-
for (var Xa =
|
|
18550
|
+
for (var ei = [], In = 0; In < ee.length; In++)
|
|
18551
|
+
for (var Xa = ee[In], tn = Xa._start; tn <= Xa._end; tn++)
|
|
18552
18552
|
ei.push(tn);
|
|
18553
18553
|
for (var Bn = wt[ei[0]], sa = mt.level, en = ei[0] - 1; en >= 0; en--)
|
|
18554
18554
|
if (!(rt[en] & u)) {
|
|
@@ -18577,7 +18577,7 @@ function vP() {
|
|
|
18577
18577
|
Ja = rt[At[oa]];
|
|
18578
18578
|
break;
|
|
18579
18579
|
}
|
|
18580
|
-
Ft(Ka, Ja & (a |
|
|
18580
|
+
Ft(Ka, Ja & (a | se) ? dt : Ja);
|
|
18581
18581
|
}
|
|
18582
18582
|
}
|
|
18583
18583
|
if (kt.get(O))
|
|
@@ -18727,13 +18727,13 @@ function vP() {
|
|
|
18727
18727
|
wt[Mo] = mt.level;
|
|
18728
18728
|
}
|
|
18729
18729
|
}
|
|
18730
|
-
return { levels: wt, paragraphs:
|
|
18730
|
+
return { levels: wt, paragraphs: le };
|
|
18731
18731
|
function $d(wr, ii) {
|
|
18732
18732
|
for (var _r = wr; _r < X.length; _r++) {
|
|
18733
18733
|
var nn = rt[_r];
|
|
18734
18734
|
if (nn & (F | K))
|
|
18735
18735
|
return 1;
|
|
18736
|
-
if (nn & (q | R) || ii && nn ===
|
|
18736
|
+
if (nn & (q | R) || ii && nn === se)
|
|
18737
18737
|
return 0;
|
|
18738
18738
|
if (nn & a) {
|
|
18739
18739
|
var Ud = u6(_r);
|
|
@@ -18747,7 +18747,7 @@ function vP() {
|
|
|
18747
18747
|
var nn = rt[_r];
|
|
18748
18748
|
if (nn & q)
|
|
18749
18749
|
break;
|
|
18750
|
-
if (nn &
|
|
18750
|
+
if (nn & se) {
|
|
18751
18751
|
if (--ii === 0)
|
|
18752
18752
|
return _r;
|
|
18753
18753
|
} else nn & a && ii++;
|
|
@@ -18782,18 +18782,18 @@ function vP() {
|
|
|
18782
18782
|
vt = Math.max(0, vt == null ? 0 : +vt), rt = Math.min(Zt - 1, rt == null ? Zt - 1 : +rt);
|
|
18783
18783
|
var kt = [];
|
|
18784
18784
|
return nt.paragraphs.forEach(function(Ft) {
|
|
18785
|
-
var wt = Math.max(vt, Ft.start),
|
|
18786
|
-
if (wt <
|
|
18787
|
-
for (var
|
|
18788
|
-
|
|
18789
|
-
for (var Ve = Ft.level, Je = 1 / 0,
|
|
18790
|
-
var Tr =
|
|
18785
|
+
var wt = Math.max(vt, Ft.start), ie = Math.min(rt, Ft.end);
|
|
18786
|
+
if (wt < ie) {
|
|
18787
|
+
for (var le = nt.levels.slice(wt, ie + 1), mt = ie; mt >= wt && h(X[mt]) & l; mt--)
|
|
18788
|
+
le[mt] = Ft.level;
|
|
18789
|
+
for (var Ve = Ft.level, Je = 1 / 0, ye = 0; ye < le.length; ye++) {
|
|
18790
|
+
var Tr = le[ye];
|
|
18791
18791
|
Tr > Ve && (Ve = Tr), Tr < Je && (Je = Tr | 1);
|
|
18792
18792
|
}
|
|
18793
18793
|
for (var Oe = Ve; Oe >= Je; Oe--)
|
|
18794
|
-
for (var Ht = 0; Ht <
|
|
18795
|
-
if (
|
|
18796
|
-
for (var jt = Ht; Ht + 1 <
|
|
18794
|
+
for (var Ht = 0; Ht < le.length; Ht++)
|
|
18795
|
+
if (le[Ht] >= Oe) {
|
|
18796
|
+
for (var jt = Ht; Ht + 1 < le.length && le[Ht + 1] >= Oe; )
|
|
18797
18797
|
Ht++;
|
|
18798
18798
|
Ht > jt && kt.push([jt + wt, Ht + wt]);
|
|
18799
18799
|
}
|
|
@@ -18810,8 +18810,8 @@ function vP() {
|
|
|
18810
18810
|
for (var Zt = yt(X, nt, vt, rt), kt = [], Ft = 0; Ft < X.length; Ft++)
|
|
18811
18811
|
kt[Ft] = Ft;
|
|
18812
18812
|
return Zt.forEach(function(wt) {
|
|
18813
|
-
for (var
|
|
18814
|
-
kt[
|
|
18813
|
+
for (var ie = wt[0], le = wt[1], mt = kt.slice(ie, le + 1), Ve = mt.length; Ve--; )
|
|
18814
|
+
kt[le - Ve] = mt[Ve];
|
|
18815
18815
|
}), kt;
|
|
18816
18816
|
}
|
|
18817
18817
|
return e.closingToOpeningBracket = A, e.getBidiCharType = h, e.getBidiCharTypeName = p, e.getCanonicalBracket = v, e.getEmbeddingLevels = j, e.getMirroredCharacter = gt, e.getMirroredCharactersMap = xt, e.getReorderSegments = yt, e.getReorderedIndices = It, e.getReorderedString = Ct, e.openingToClosingBracket = x, Object.defineProperty(e, "__esModule", { value: !0 }), e;
|
|
@@ -20039,14 +20039,14 @@ var dM = (t) => !M2.has(t), hn = (t) => t && t === Math.floor(t) && t > 0 && isF
|
|
|
20039
20039
|
pop() {
|
|
20040
20040
|
return this.heap[--this.length];
|
|
20041
20041
|
}
|
|
20042
|
-
}, hs = /* @__PURE__ */ new WeakMap(),
|
|
20042
|
+
}, hs = /* @__PURE__ */ new WeakMap(), re(zn, hs, !1), zn), Xm, Km, ni, jr, hi, pa, di, ds, ps, pi, Xe, Gr, Ge, Ie, $t, Cr, Wr, mr, Qe, mi, tr, gi, yi, Hr, Yr, vi, On, Er, ms, bt, Uc, ma, un, qo, qr, Jm, ga, gs, Xo, ln, cn, Zc, Ko, Jo, ke, jc, ys, fn, Gc, Wc, mM = (Wc = class {
|
|
20043
20043
|
constructor(t) {
|
|
20044
|
-
|
|
20045
|
-
}),
|
|
20046
|
-
}),
|
|
20047
|
-
}),
|
|
20048
|
-
}),
|
|
20049
|
-
}),
|
|
20044
|
+
re(this, bt), re(this, ni), re(this, jr), re(this, hi), re(this, pa), re(this, di), re(this, ds), re(this, ps), re(this, pi), Tt(this, "ttl"), Tt(this, "ttlResolution"), Tt(this, "ttlAutopurge"), Tt(this, "updateAgeOnGet"), Tt(this, "updateAgeOnHas"), Tt(this, "allowStale"), Tt(this, "noDisposeOnSet"), Tt(this, "noUpdateTTL"), Tt(this, "maxEntrySize"), Tt(this, "sizeCalculation"), Tt(this, "noDeleteOnFetchRejection"), Tt(this, "noDeleteOnStaleGet"), Tt(this, "allowStaleOnFetchAbort"), Tt(this, "allowStaleOnFetchRejection"), Tt(this, "ignoreFetchAbort"), re(this, Xe), re(this, Gr), re(this, Ge), re(this, Ie), re(this, $t), re(this, Cr), re(this, Wr), re(this, mr), re(this, Qe), re(this, mi), re(this, tr), re(this, gi), re(this, yi), re(this, Hr), re(this, Yr), re(this, vi), re(this, On), re(this, Er), re(this, ms), re(this, ma, () => {
|
|
20045
|
+
}), re(this, un, () => {
|
|
20046
|
+
}), re(this, qo, () => {
|
|
20047
|
+
}), re(this, qr, () => !1), re(this, ga, (O) => {
|
|
20048
|
+
}), re(this, gs, (O, S, U) => {
|
|
20049
|
+
}), re(this, Xo, (O, S, U, N) => {
|
|
20050
20050
|
if (U || N) throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
|
|
20051
20051
|
return 0;
|
|
20052
20052
|
}), Tt(this, Xm, "LRUCache");
|
|
@@ -20929,8 +20929,8 @@ function lV(t, e, r, n, i, a) {
|
|
|
20929
20929
|
let K = _;
|
|
20930
20930
|
for (const et of p) {
|
|
20931
20931
|
if (S >= 0 && et.cluster >= S) break;
|
|
20932
|
-
const Et = K + et.xOffset * u, zt = k + et.yOffset * u, Lt = w + (Et - w) * C,
|
|
20933
|
-
N2(et.path, Lt,
|
|
20932
|
+
const Et = K + et.xOffset * u, zt = k + et.yOffset * u, Lt = w + (Et - w) * C, ae = k + (zt - k) * C;
|
|
20933
|
+
N2(et.path, Lt, ae, O, ct, a, $ ? void 0 : { stroke: v, shadow: R }), K += et.xAdvance * u;
|
|
20934
20934
|
}
|
|
20935
20935
|
}, N = n.baseColor === n.activeColor && n.baseOpacity === n.activeOpacity, tt = { kind: "solid", color: n.baseColor, opacity: ya(n.baseOpacity * y) }, q = { kind: "solid", color: n.activeColor, opacity: ya(n.activeOpacity * y) }, at = e.fillProgress;
|
|
20936
20936
|
if (N || at <= 0)
|
|
@@ -37971,11 +37971,11 @@ const Gu = (t) => {
|
|
|
37971
37971
|
base: n
|
|
37972
37972
|
};
|
|
37973
37973
|
}, H2 = (t) => t.includes("fonts.gstatic.com"), az = YE, sz = VA, oz = nl.shape.format, uz = nl.shape.fps.unwrap(), lz = nl.shape.resolution, cz = nl.shape.aspectRatio, fz = b().regex(/^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{8}$/), U0 = Na.extend({ id: b() }), hz = of.extend({
|
|
37974
|
-
clips:
|
|
37974
|
+
clips: be(U0).min(1)
|
|
37975
37975
|
});
|
|
37976
37976
|
ws.extend({
|
|
37977
37977
|
timeline: uk.extend({
|
|
37978
|
-
tracks:
|
|
37978
|
+
tracks: be(hz).min(1)
|
|
37979
37979
|
})
|
|
37980
37980
|
});
|
|
37981
37981
|
const lg = 1500, cg = 5e3, dz = 1e4;
|
|
@@ -39603,7 +39603,7 @@ function _z(t) {
|
|
|
39603
39603
|
const e = structuredClone(t);
|
|
39604
39604
|
return delete e.id, JSON.stringify(e, null, 2);
|
|
39605
39605
|
}
|
|
39606
|
-
const
|
|
39606
|
+
const oe = () => ({ status: "success" }), Qt = (t) => ({ status: "noop", message: t });
|
|
39607
39607
|
class xd {
|
|
39608
39608
|
name = "addTrack";
|
|
39609
39609
|
trackIdx;
|
|
@@ -39630,7 +39630,7 @@ class xd {
|
|
|
39630
39630
|
trackIndex: this.trackIdx,
|
|
39631
39631
|
clipIndex: n
|
|
39632
39632
|
});
|
|
39633
|
-
return
|
|
39633
|
+
return oe();
|
|
39634
39634
|
}
|
|
39635
39635
|
undo(e) {
|
|
39636
39636
|
if (!e) throw new Error("AddTrackCommand.undo: context is required");
|
|
@@ -39643,7 +39643,7 @@ class xd {
|
|
|
39643
39643
|
trackIndex: this.trackIdx,
|
|
39644
39644
|
clipIndex: a
|
|
39645
39645
|
});
|
|
39646
|
-
return e.emitEvent(St.TrackRemoved, { trackIndex: this.trackIdx }),
|
|
39646
|
+
return e.emitEvent(St.TrackRemoved, { trackIndex: this.trackIdx }), oe();
|
|
39647
39647
|
}
|
|
39648
39648
|
dispose() {
|
|
39649
39649
|
}
|
|
@@ -39776,16 +39776,16 @@ class Fz {
|
|
|
39776
39776
|
return e.emitEvent(St.ClipAdded, {
|
|
39777
39777
|
trackIndex: this.trackIdx,
|
|
39778
39778
|
clipIndex: s
|
|
39779
|
-
}),
|
|
39779
|
+
}), oe();
|
|
39780
39780
|
}
|
|
39781
39781
|
undo(e) {
|
|
39782
39782
|
if (!e) throw new Error("AddClipCommand.undo: context is required");
|
|
39783
|
-
if (!this.addedClipId) return
|
|
39783
|
+
if (!this.addedClipId) return Qt("No clip ID stored");
|
|
39784
39784
|
const r = e.getDocument();
|
|
39785
39785
|
if (!r) throw new Error("AddClipCommand.undo: no document");
|
|
39786
39786
|
const i = e.getDocumentTrack(this.trackIdx)?.clips, a = i?.findIndex((u) => u.id === this.addedClipId) ?? -1;
|
|
39787
39787
|
if (a === -1)
|
|
39788
|
-
return
|
|
39788
|
+
return Qt(`Clip ${this.addedClipId} not found in track ${this.trackIdx}`);
|
|
39789
39789
|
const s = i?.[a]?.alias;
|
|
39790
39790
|
if (s) {
|
|
39791
39791
|
const u = /* @__PURE__ */ new Set([`${this.trackIdx}:${a}`]);
|
|
@@ -39795,7 +39795,7 @@ class Fz {
|
|
|
39795
39795
|
return o && o.clipId === this.addedClipId && (e.setSelectedClip(null), e.emitEvent(St.SelectionCleared)), e.documentRemoveClip(this.trackIdx, a), e.resolve(), e.updateDuration(), e.emitEvent(St.ClipDeleted, {
|
|
39796
39796
|
trackIndex: this.trackIdx,
|
|
39797
39797
|
clipIndex: a
|
|
39798
|
-
}),
|
|
39798
|
+
}), oe();
|
|
39799
39799
|
}
|
|
39800
39800
|
dispose() {
|
|
39801
39801
|
this.addedClipId = void 0, this.convertedReferences = void 0;
|
|
@@ -39826,14 +39826,14 @@ class Iz {
|
|
|
39826
39826
|
}
|
|
39827
39827
|
throw this.executedCount = 0, r;
|
|
39828
39828
|
}
|
|
39829
|
-
return
|
|
39829
|
+
return oe();
|
|
39830
39830
|
}
|
|
39831
39831
|
undo(e) {
|
|
39832
39832
|
if (!e) throw new Error("AddTracksCommand.undo: context is required");
|
|
39833
|
-
if (this.executedCount === 0) return
|
|
39833
|
+
if (this.executedCount === 0) return Qt("Command was not executed");
|
|
39834
39834
|
for (let r = this.executedCount - 1; r >= 0; r -= 1)
|
|
39835
39835
|
this.subCommands[r].undo(e);
|
|
39836
|
-
return this.executedCount = 0,
|
|
39836
|
+
return this.executedCount = 0, oe();
|
|
39837
39837
|
}
|
|
39838
39838
|
dispose() {
|
|
39839
39839
|
for (const e of this.subCommands) e.dispose?.();
|
|
@@ -39851,7 +39851,7 @@ class Ad {
|
|
|
39851
39851
|
const r = e.getDocument();
|
|
39852
39852
|
if (!r) throw new Error("DeleteTrackCommand: no document");
|
|
39853
39853
|
if (r.getTrackCount() <= 1)
|
|
39854
|
-
return
|
|
39854
|
+
return Qt("Cannot delete the last track");
|
|
39855
39855
|
const n = r.getTrack(this.trackIdx);
|
|
39856
39856
|
n && (this.deletedClips = n.clips.map((a) => structuredClone(a)));
|
|
39857
39857
|
const i = Dz(this.deletedClips);
|
|
@@ -39861,7 +39861,7 @@ class Ad {
|
|
|
39861
39861
|
a.add(`${this.trackIdx}:${s}`);
|
|
39862
39862
|
this.convertedReferences = Sz(r, e.getEditState(), i, a);
|
|
39863
39863
|
}
|
|
39864
|
-
return r.removeTrack(this.trackIdx), e.resolve(), e.updateDuration(), e.emitEvent(St.TrackRemoved, { trackIndex: this.trackIdx }),
|
|
39864
|
+
return r.removeTrack(this.trackIdx), e.resolve(), e.updateDuration(), e.emitEvent(St.TrackRemoved, { trackIndex: this.trackIdx }), oe();
|
|
39865
39865
|
}
|
|
39866
39866
|
undo(e) {
|
|
39867
39867
|
if (!e) throw new Error("DeleteTrackCommand.undo: context is required");
|
|
@@ -39870,7 +39870,7 @@ class Ad {
|
|
|
39870
39870
|
r.addTrack(this.trackIdx);
|
|
39871
39871
|
for (let n = 0; n < this.deletedClips.length; n += 1)
|
|
39872
39872
|
r.addClip(this.trackIdx, this.deletedClips[n], n);
|
|
39873
|
-
return this.convertedReferences && this.convertedReferences.size > 0 && Ed(r, this.convertedReferences), e.resolve(), e.updateDuration(), e.emitEvent(St.TrackAdded, { trackIndex: this.trackIdx, totalTracks: r.getTrackCount() }),
|
|
39873
|
+
return this.convertedReferences && this.convertedReferences.size > 0 && Ed(r, this.convertedReferences), e.resolve(), e.updateDuration(), e.emitEvent(St.TrackAdded, { trackIndex: this.trackIdx, totalTracks: r.getTrackCount() }), oe();
|
|
39874
39874
|
}
|
|
39875
39875
|
dispose() {
|
|
39876
39876
|
this.deletedClips = [], this.convertedReferences = void 0;
|
|
@@ -39893,9 +39893,9 @@ class r0 {
|
|
|
39893
39893
|
if (!r) throw new Error("DeleteClipCommand: no document");
|
|
39894
39894
|
const n = r.getClip(this.trackIdx, this.clipIdx);
|
|
39895
39895
|
if (!n)
|
|
39896
|
-
return
|
|
39896
|
+
return Qt(`No clip at track ${this.trackIdx}, index ${this.clipIdx}`);
|
|
39897
39897
|
if (r.getClipCount() <= 1)
|
|
39898
|
-
return
|
|
39898
|
+
return Qt("Cannot delete the last clip");
|
|
39899
39899
|
if (this.deletedClipConfig = structuredClone(n), this.deletedClipId = n.id, this.deletedClipId) {
|
|
39900
39900
|
const o = e.getClipBindings(this.deletedClipId);
|
|
39901
39901
|
this.storedBindings = o ? new Map(o) : void 0, r.clearClipBindings(this.deletedClipId);
|
|
@@ -39912,11 +39912,11 @@ class r0 {
|
|
|
39912
39912
|
return s && s.clips.length === 0 && (this.deleteTrackCommand = new Ad(this.trackIdx), this.deleteTrackCommand.execute(e).status === "success" && (this.trackWasDeleted = !0)), e.resolve(), e.updateDuration(), e.emitEvent(St.ClipDeleted, {
|
|
39913
39913
|
trackIndex: this.trackIdx,
|
|
39914
39914
|
clipIndex: this.clipIdx
|
|
39915
|
-
}),
|
|
39915
|
+
}), oe();
|
|
39916
39916
|
}
|
|
39917
39917
|
undo(e) {
|
|
39918
39918
|
if (!e) throw new Error("DeleteClipCommand.undo: context is required");
|
|
39919
|
-
if (!this.deletedClipConfig) return
|
|
39919
|
+
if (!this.deletedClipConfig) return Qt("No deleted clip config");
|
|
39920
39920
|
const r = e.getDocument();
|
|
39921
39921
|
if (!r) throw new Error("DeleteClipCommand.undo: no document");
|
|
39922
39922
|
this.trackWasDeleted && r.addTrack(this.trackIdx);
|
|
@@ -39927,7 +39927,7 @@ class r0 {
|
|
|
39927
39927
|
}), this.trackWasDeleted = !1), e.emitEvent(St.ClipRestored, {
|
|
39928
39928
|
trackIndex: this.trackIdx,
|
|
39929
39929
|
clipIndex: this.clipIdx
|
|
39930
|
-
}),
|
|
39930
|
+
}), oe();
|
|
39931
39931
|
}
|
|
39932
39932
|
dispose() {
|
|
39933
39933
|
this.deletedClipConfig = void 0, this.deletedClipId = void 0, this.deleteTrackCommand = void 0, this.storedBindings = void 0, this.convertedReferences = void 0;
|
|
@@ -39957,9 +39957,9 @@ class Bz {
|
|
|
39957
39957
|
if (!r) throw new Error("MoveClipCommand.execute: document is required");
|
|
39958
39958
|
const n = e.getClipAt(this.fromTrackIndex, this.fromClipIndex);
|
|
39959
39959
|
if (!n)
|
|
39960
|
-
return
|
|
39960
|
+
return Qt(`Invalid clip at ${this.fromTrackIndex}/${this.fromClipIndex}`);
|
|
39961
39961
|
const i = r.getClip(this.fromTrackIndex, this.fromClipIndex);
|
|
39962
|
-
if (!i) return
|
|
39962
|
+
if (!i) return Qt(`Document clip not found at ${this.fromTrackIndex}/${this.fromClipIndex}`);
|
|
39963
39963
|
this.clipId = n.clipId, this.previousDocClip = structuredClone(i), this.originalStart = i.start, this.effectiveToTrackIndex = this.toTrackIndex, r.moveClip(this.fromTrackIndex, this.fromClipIndex, this.toTrackIndex, { start: this.newStart }), this.fromTrackIndex !== this.toTrackIndex && r.getClipsInTrack(this.fromTrackIndex).length === 0 && (this.deleteTrackCommand = new Ad(this.fromTrackIndex), this.deleteTrackCommand.execute(e).status === "success" && (this.sourceTrackWasDeleted = !0, this.toTrackIndex > this.fromTrackIndex && (this.effectiveToTrackIndex = this.toTrackIndex - 1))), e.resolve();
|
|
39964
39964
|
const a = this.clipId ? r.getClipById(this.clipId) : null;
|
|
39965
39965
|
this.newClipIndex = a?.clipIndex ?? 0, e.updateDuration(), this.fromTrackIndex !== this.toTrackIndex && !this.sourceTrackWasDeleted && e.propagateTimingChanges(this.fromTrackIndex, this.fromClipIndex - 1), e.propagateTimingChanges(this.effectiveToTrackIndex, this.newClipIndex);
|
|
@@ -39983,16 +39983,16 @@ class Bz {
|
|
|
39983
39983
|
clip: Ye(s),
|
|
39984
39984
|
trackIndex: this.effectiveToTrackIndex,
|
|
39985
39985
|
clipIndex: this.newClipIndex
|
|
39986
|
-
})),
|
|
39986
|
+
})), oe();
|
|
39987
39987
|
}
|
|
39988
39988
|
async undo(e) {
|
|
39989
39989
|
if (!e) throw new Error("MoveClipCommand.undo: context is required");
|
|
39990
|
-
if (!this.clipId || this.originalStart === void 0) return
|
|
39990
|
+
if (!this.clipId || this.originalStart === void 0) return Qt("No clip state stored");
|
|
39991
39991
|
const r = e.getDocument();
|
|
39992
39992
|
if (!r) throw new Error("MoveClipCommand.undo: document is required");
|
|
39993
39993
|
this.sourceTrackWasDeleted && this.deleteTrackCommand && (this.deleteTrackCommand.undo(e), this.sourceTrackWasDeleted = !1, this.toTrackIndex > this.fromTrackIndex && (this.effectiveToTrackIndex = this.toTrackIndex));
|
|
39994
39994
|
const n = r.getClipById(this.clipId);
|
|
39995
|
-
if (!n) return
|
|
39995
|
+
if (!n) return Qt(`Clip ${this.clipId} not found in document`);
|
|
39996
39996
|
const i = structuredClone(r.getClip(n.trackIndex, n.clipIndex));
|
|
39997
39997
|
r.moveClip(n.trackIndex, n.clipIndex, this.fromTrackIndex, {
|
|
39998
39998
|
start: this.originalStart
|
|
@@ -40015,7 +40015,7 @@ class Bz {
|
|
|
40015
40015
|
clip: Ye(a),
|
|
40016
40016
|
trackIndex: this.fromTrackIndex,
|
|
40017
40017
|
clipIndex: this.fromClipIndex
|
|
40018
|
-
})), this.effectiveToTrackIndex = this.toTrackIndex,
|
|
40018
|
+
})), this.effectiveToTrackIndex = this.toTrackIndex, oe();
|
|
40019
40019
|
}
|
|
40020
40020
|
dispose() {
|
|
40021
40021
|
this.clipId = null, this.deleteTrackCommand = void 0;
|
|
@@ -40029,11 +40029,11 @@ class Nz {
|
|
|
40029
40029
|
previousAspectRatio;
|
|
40030
40030
|
execute(e) {
|
|
40031
40031
|
if (!e) throw new Error("SetOutputAspectRatioCommand requires context");
|
|
40032
|
-
return this.previousAspectRatio = e.getOutputAspectRatio(), e.setOutputAspectRatio(this.aspectRatio),
|
|
40032
|
+
return this.previousAspectRatio = e.getOutputAspectRatio(), e.setOutputAspectRatio(this.aspectRatio), oe();
|
|
40033
40033
|
}
|
|
40034
40034
|
undo(e) {
|
|
40035
40035
|
if (!e) throw new Error("SetOutputAspectRatioCommand requires context");
|
|
40036
|
-
return this.previousAspectRatio === void 0 ?
|
|
40036
|
+
return this.previousAspectRatio === void 0 ? Qt("No previous aspect ratio stored") : (e.setOutputAspectRatio(this.previousAspectRatio), oe());
|
|
40037
40037
|
}
|
|
40038
40038
|
dispose() {
|
|
40039
40039
|
this.previousAspectRatio = void 0;
|
|
@@ -40047,11 +40047,11 @@ class Tz {
|
|
|
40047
40047
|
previousDestinations;
|
|
40048
40048
|
execute(e) {
|
|
40049
40049
|
if (!e) throw new Error("SetOutputDestinationsCommand requires context");
|
|
40050
|
-
return this.previousDestinations = e.getOutputDestinations(), e.setOutputDestinations(this.destinations),
|
|
40050
|
+
return this.previousDestinations = e.getOutputDestinations(), e.setOutputDestinations(this.destinations), oe();
|
|
40051
40051
|
}
|
|
40052
40052
|
undo(e) {
|
|
40053
40053
|
if (!e) throw new Error("SetOutputDestinationsCommand requires context");
|
|
40054
|
-
return this.previousDestinations === void 0 ?
|
|
40054
|
+
return this.previousDestinations === void 0 ? Qt("No previous destinations stored") : (e.setOutputDestinations(this.previousDestinations), oe());
|
|
40055
40055
|
}
|
|
40056
40056
|
dispose() {
|
|
40057
40057
|
this.previousDestinations = void 0;
|
|
@@ -40065,11 +40065,11 @@ class Pz {
|
|
|
40065
40065
|
previousFormat;
|
|
40066
40066
|
execute(e) {
|
|
40067
40067
|
if (!e) throw new Error("SetOutputFormatCommand requires context");
|
|
40068
|
-
return this.previousFormat = e.getOutputFormat(), e.setOutputFormat(this.format),
|
|
40068
|
+
return this.previousFormat = e.getOutputFormat(), e.setOutputFormat(this.format), oe();
|
|
40069
40069
|
}
|
|
40070
40070
|
undo(e) {
|
|
40071
40071
|
if (!e) throw new Error("SetOutputFormatCommand requires context");
|
|
40072
|
-
return this.previousFormat === void 0 ?
|
|
40072
|
+
return this.previousFormat === void 0 ? Qt("No previous format stored") : (e.setOutputFormat(this.previousFormat), oe());
|
|
40073
40073
|
}
|
|
40074
40074
|
dispose() {
|
|
40075
40075
|
this.previousFormat = void 0;
|
|
@@ -40083,11 +40083,11 @@ class Mz {
|
|
|
40083
40083
|
previousFps;
|
|
40084
40084
|
execute(e) {
|
|
40085
40085
|
if (!e) throw new Error("SetOutputFpsCommand requires context");
|
|
40086
|
-
return this.previousFps = e.getOutputFps(), e.setOutputFps(this.fps),
|
|
40086
|
+
return this.previousFps = e.getOutputFps(), e.setOutputFps(this.fps), oe();
|
|
40087
40087
|
}
|
|
40088
40088
|
undo(e) {
|
|
40089
40089
|
if (!e) throw new Error("SetOutputFpsCommand requires context");
|
|
40090
|
-
return this.previousFps === void 0 ?
|
|
40090
|
+
return this.previousFps === void 0 ? Qt("No previous FPS stored") : (e.setOutputFps(this.previousFps), oe());
|
|
40091
40091
|
}
|
|
40092
40092
|
dispose() {
|
|
40093
40093
|
this.previousFps = void 0;
|
|
@@ -40101,11 +40101,11 @@ class Vz {
|
|
|
40101
40101
|
previousResolution;
|
|
40102
40102
|
execute(e) {
|
|
40103
40103
|
if (!e) throw new Error("SetOutputResolutionCommand requires context");
|
|
40104
|
-
return this.previousResolution = e.getOutputResolution(), e.setOutputResolution(this.resolution),
|
|
40104
|
+
return this.previousResolution = e.getOutputResolution(), e.setOutputResolution(this.resolution), oe();
|
|
40105
40105
|
}
|
|
40106
40106
|
undo(e) {
|
|
40107
40107
|
if (!e) throw new Error("SetOutputResolutionCommand requires context");
|
|
40108
|
-
return this.previousResolution === void 0 ?
|
|
40108
|
+
return this.previousResolution === void 0 ? Qt("No previous resolution stored") : (e.setOutputResolution(this.previousResolution), oe());
|
|
40109
40109
|
}
|
|
40110
40110
|
dispose() {
|
|
40111
40111
|
this.previousResolution = void 0;
|
|
@@ -40119,11 +40119,11 @@ class zz {
|
|
|
40119
40119
|
previousSize;
|
|
40120
40120
|
execute(e) {
|
|
40121
40121
|
if (!e) throw new Error("SetOutputSizeCommand requires context");
|
|
40122
|
-
return this.previousSize = e.getOutputSize(), e.setOutputSize(this.width, this.height),
|
|
40122
|
+
return this.previousSize = e.getOutputSize(), e.setOutputSize(this.width, this.height), oe();
|
|
40123
40123
|
}
|
|
40124
40124
|
undo(e) {
|
|
40125
40125
|
if (!e) throw new Error("SetOutputSizeCommand requires context");
|
|
40126
|
-
return this.previousSize ? (e.setOutputSize(this.previousSize.width, this.previousSize.height),
|
|
40126
|
+
return this.previousSize ? (e.setOutputSize(this.previousSize.width, this.previousSize.height), oe()) : Qt("No previous size stored");
|
|
40127
40127
|
}
|
|
40128
40128
|
dispose() {
|
|
40129
40129
|
this.previousSize = void 0;
|
|
@@ -40137,11 +40137,11 @@ class Oz {
|
|
|
40137
40137
|
previousColor;
|
|
40138
40138
|
execute(e) {
|
|
40139
40139
|
if (!e) throw new Error("SetTimelineBackgroundCommand requires context");
|
|
40140
|
-
return this.previousColor = e.getTimelineBackground(), e.setTimelineBackground(this.color),
|
|
40140
|
+
return this.previousColor = e.getTimelineBackground(), e.setTimelineBackground(this.color), oe();
|
|
40141
40141
|
}
|
|
40142
40142
|
undo(e) {
|
|
40143
40143
|
if (!e) throw new Error("SetTimelineBackgroundCommand requires context");
|
|
40144
|
-
return this.previousColor === void 0 ?
|
|
40144
|
+
return this.previousColor === void 0 ? Qt("No previous color stored") : (e.setTimelineBackground(this.previousColor), oe());
|
|
40145
40145
|
}
|
|
40146
40146
|
dispose() {
|
|
40147
40147
|
this.previousColor = void 0;
|
|
@@ -40165,7 +40165,7 @@ class i0 {
|
|
|
40165
40165
|
if (!r) throw new Error("SetUpdatedClipCommand.execute: document is required");
|
|
40166
40166
|
const n = e.getClipAt(this.trackIndex, this.clipIndex);
|
|
40167
40167
|
if (!n)
|
|
40168
|
-
return
|
|
40168
|
+
return Qt(`Invalid clip at ${this.trackIndex}/${this.clipIndex}`);
|
|
40169
40169
|
this.clipId = n.clipId, this.storedInitialConfig || (this.storedInitialConfig = this.initialClipConfig ? structuredClone(this.initialClipConfig) : structuredClone(n.clipConfiguration)), this.storedFinalConfig || (this.storedFinalConfig = this.finalClipConfig ? structuredClone(this.finalClipConfig) : structuredClone(n.clipConfiguration));
|
|
40170
40170
|
const i = e.getDocumentClip(
|
|
40171
40171
|
this.trackIndex >= 0 ? this.trackIndex : n.layer - 1,
|
|
@@ -40190,16 +40190,16 @@ class i0 {
|
|
|
40190
40190
|
return e.emitEvent(St.ClipUpdated, {
|
|
40191
40191
|
previous: { clip: Ye(this.previousDocClip), trackIndex: s, clipIndex: o },
|
|
40192
40192
|
current: { clip: Ye(m), trackIndex: s, clipIndex: o }
|
|
40193
|
-
}),
|
|
40193
|
+
}), oe();
|
|
40194
40194
|
}
|
|
40195
40195
|
async undo(e) {
|
|
40196
40196
|
if (!e) throw new Error("SetUpdatedClipCommand.undo: context is required");
|
|
40197
40197
|
const r = this.storedInitialConfig ?? this.initialClipConfig;
|
|
40198
|
-
if (!r) return
|
|
40198
|
+
if (!r) return Qt("No stored initial config");
|
|
40199
40199
|
const n = e.getDocument();
|
|
40200
40200
|
if (!n) throw new Error("SetUpdatedClipCommand.undo: document is required");
|
|
40201
40201
|
const i = this.clipId ? e.getPlayerByClipId(this.clipId) : e.getClipAt(this.trackIndex, this.clipIndex);
|
|
40202
|
-
if (!i) return
|
|
40202
|
+
if (!i) return Qt("Clip not found for undo");
|
|
40203
40203
|
const a = this.trackIndex >= 0 ? this.trackIndex : i.layer - 1, s = this.clipIndex >= 0 ? this.clipIndex : e.getTracks()[a]?.indexOf(i) ?? -1, o = structuredClone(e.getDocumentClip(a, s));
|
|
40204
40204
|
if (n.replaceClipProperties(a, s, r), e.resolve(), this.clipId) {
|
|
40205
40205
|
const h = new Map(this.storedInitialBindings);
|
|
@@ -40216,7 +40216,7 @@ class i0 {
|
|
|
40216
40216
|
return e.emitEvent(St.ClipUpdated, {
|
|
40217
40217
|
previous: { clip: Ye(o), trackIndex: a, clipIndex: s },
|
|
40218
40218
|
current: { clip: Ye(f), trackIndex: a, clipIndex: s }
|
|
40219
|
-
}),
|
|
40219
|
+
}), oe();
|
|
40220
40220
|
}
|
|
40221
40221
|
dispose() {
|
|
40222
40222
|
this.clipId = null, this.storedInitialConfig = null, this.storedFinalConfig = null, this.storedInitialBindings.clear(), this.previousDocClip = null;
|
|
@@ -40237,10 +40237,10 @@ class Rz {
|
|
|
40237
40237
|
if (!r) throw new Error("UpdateClipTimingCommand.execute: document is required");
|
|
40238
40238
|
const i = e.getDocumentTrack(this.trackIndex)?.clips[this.clipIndex];
|
|
40239
40239
|
if (!i)
|
|
40240
|
-
return
|
|
40240
|
+
return Qt(`Invalid clip at ${this.trackIndex}/${this.clipIndex}`);
|
|
40241
40241
|
const a = e.getClipAt(this.trackIndex, this.clipIndex);
|
|
40242
40242
|
if (!a)
|
|
40243
|
-
return
|
|
40243
|
+
return Qt(`Player not found at ${this.trackIndex}/${this.clipIndex}`);
|
|
40244
40244
|
this.originalStart = i.start, this.originalLength = i.length, this.clipId = a.clipId ?? void 0;
|
|
40245
40245
|
const s = structuredClone(i), o = {};
|
|
40246
40246
|
this.params.start !== void 0 && (o.start = this.params.start), this.params.length !== void 0 && (o.length = this.params.length), r.updateClip(this.trackIndex, this.clipIndex, o), this.clipId ? e.resolveClip(this.clipId) : e.resolve(), o.length === "auto" && e.resolveClipAutoLength(a).then(() => {
|
|
@@ -40251,7 +40251,7 @@ class Rz {
|
|
|
40251
40251
|
return e.emitEvent(St.ClipUpdated, {
|
|
40252
40252
|
previous: { trackIndex: this.trackIndex, clipIndex: this.clipIndex, clip: Ye(s) },
|
|
40253
40253
|
current: { trackIndex: this.trackIndex, clipIndex: this.clipIndex, clip: Ye(u) }
|
|
40254
|
-
}), e.propagateTimingChanges(this.trackIndex, this.clipIndex),
|
|
40254
|
+
}), e.propagateTimingChanges(this.trackIndex, this.clipIndex), oe();
|
|
40255
40255
|
}
|
|
40256
40256
|
undo(e) {
|
|
40257
40257
|
if (!e) throw new Error("UpdateClipTimingCommand.undo: context is required");
|
|
@@ -40271,7 +40271,7 @@ class Rz {
|
|
|
40271
40271
|
return e.emitEvent(St.ClipUpdated, {
|
|
40272
40272
|
previous: { trackIndex: this.trackIndex, clipIndex: this.clipIndex, clip: Ye(i) },
|
|
40273
40273
|
current: { trackIndex: this.trackIndex, clipIndex: this.clipIndex, clip: Ye(s) }
|
|
40274
|
-
}), e.propagateTimingChanges(this.trackIndex, this.clipIndex),
|
|
40274
|
+
}), e.propagateTimingChanges(this.trackIndex, this.clipIndex), oe();
|
|
40275
40275
|
}
|
|
40276
40276
|
}
|
|
40277
40277
|
class Lz {
|
|
@@ -40289,9 +40289,9 @@ class Lz {
|
|
|
40289
40289
|
if (!r) throw new Error("UpdateTextContentCommand.execute: document is required");
|
|
40290
40290
|
const n = e.getClipAt(this.trackIndex, this.clipIndex);
|
|
40291
40291
|
if (!n)
|
|
40292
|
-
return
|
|
40292
|
+
return Qt(`Invalid clip at ${this.trackIndex}/${this.clipIndex}`);
|
|
40293
40293
|
const i = r.getClip(this.trackIndex, this.clipIndex);
|
|
40294
|
-
if (!i) return
|
|
40294
|
+
if (!i) return Qt("Clip not found in document");
|
|
40295
40295
|
this.clipId = n.clipId, this.previousDocClip = structuredClone(i);
|
|
40296
40296
|
const a = i.asset;
|
|
40297
40297
|
this.previousText = a && "text" in a ? a.text ?? "" : "";
|
|
@@ -40303,14 +40303,14 @@ class Lz {
|
|
|
40303
40303
|
return e.emitEvent(St.ClipUpdated, {
|
|
40304
40304
|
previous: { clip: Ye(this.previousDocClip), trackIndex: this.trackIndex, clipIndex: this.clipIndex },
|
|
40305
40305
|
current: { clip: Ye(u), trackIndex: this.trackIndex, clipIndex: this.clipIndex }
|
|
40306
|
-
}),
|
|
40306
|
+
}), oe();
|
|
40307
40307
|
}
|
|
40308
40308
|
undo(e) {
|
|
40309
40309
|
if (!e) throw new Error("UpdateTextContentCommand.undo: context is required");
|
|
40310
40310
|
const r = e.getDocument();
|
|
40311
40311
|
if (!r) throw new Error("UpdateTextContentCommand.undo: document is required");
|
|
40312
40312
|
const n = structuredClone(e.getDocumentClip(this.trackIndex, this.clipIndex)), i = r.getClip(this.trackIndex, this.clipIndex);
|
|
40313
|
-
if (!i) return
|
|
40313
|
+
if (!i) return Qt("Clip not found for undo");
|
|
40314
40314
|
const s = { ...i.asset, text: this.previousText };
|
|
40315
40315
|
r.updateClip(this.trackIndex, this.clipIndex, { asset: s }), this.clipId ? e.resolveClip(this.clipId) : e.resolve();
|
|
40316
40316
|
const o = e.getDocumentClip(this.trackIndex, this.clipIndex);
|
|
@@ -40322,7 +40322,7 @@ class Lz {
|
|
|
40322
40322
|
current: { clip: Ye(o), trackIndex: this.trackIndex, clipIndex: this.clipIndex }
|
|
40323
40323
|
});
|
|
40324
40324
|
}
|
|
40325
|
-
return
|
|
40325
|
+
return oe();
|
|
40326
40326
|
}
|
|
40327
40327
|
dispose() {
|
|
40328
40328
|
this.clipId = null, this.previousDocClip = void 0;
|
|
@@ -42447,25 +42447,35 @@ class Da {
|
|
|
42447
42447
|
}
|
|
42448
42448
|
/**
|
|
42449
42449
|
* Patch fields on a clip identified by stable ID.
|
|
42450
|
+
*
|
|
42451
|
+
* Resolves with the command outcome: `success` when the clip was updated, or `noop`
|
|
42452
|
+
* (with a `message`) when no clip matches `clipId`.
|
|
42450
42453
|
*/
|
|
42451
42454
|
updateClipById(e, r) {
|
|
42452
42455
|
const n = this.document.getClipById(e);
|
|
42453
|
-
return n ? this.updateClip(n.trackIndex, n.clipIndex, r) : (console.warn(`updateClipById: no clip with id ${e}`), Promise.resolve());
|
|
42456
|
+
return n ? this.updateClip(n.trackIndex, n.clipIndex, r) : (console.warn(`updateClipById: no clip with id ${e}`), Promise.resolve(Qt(`No clip with id ${e}`)));
|
|
42454
42457
|
}
|
|
42455
42458
|
/**
|
|
42456
42459
|
* Remove a clip identified by stable ID.
|
|
42460
|
+
*
|
|
42461
|
+
* Resolves with the command outcome: `success` when the clip was removed, or `noop`
|
|
42462
|
+
* (with a `message`) when no clip matches `clipId` or the deletion was refused —
|
|
42463
|
+
* the timeline always keeps at least one clip.
|
|
42457
42464
|
*/
|
|
42458
42465
|
deleteClipById(e) {
|
|
42459
42466
|
const r = this.document.getClipById(e);
|
|
42460
|
-
return r ? this.deleteClip(r.trackIndex, r.clipIndex) : (console.warn(`deleteClipById: no clip with id ${e}`), Promise.resolve());
|
|
42467
|
+
return r ? this.deleteClip(r.trackIndex, r.clipIndex) : (console.warn(`deleteClipById: no clip with id ${e}`), Promise.resolve(Qt(`No clip with id ${e}`)));
|
|
42461
42468
|
}
|
|
42462
42469
|
/**
|
|
42463
42470
|
* Move a clip identified by stable ID to a different track and/or start time.
|
|
42471
|
+
*
|
|
42472
|
+
* Resolves with the command outcome: `success` when the clip was moved, or `noop`
|
|
42473
|
+
* (with a `message`) when no clip matches `clipId`.
|
|
42464
42474
|
*/
|
|
42465
42475
|
moveClipById(e, r, n) {
|
|
42466
42476
|
const i = this.document.getClipById(e);
|
|
42467
42477
|
if (!i)
|
|
42468
|
-
return console.warn(`moveClipById: no clip with id ${e}`), Promise.resolve();
|
|
42478
|
+
return console.warn(`moveClipById: no clip with id ${e}`), Promise.resolve(Qt(`No clip with id ${e}`));
|
|
42469
42479
|
const a = i.clip.start, s = n ?? (typeof a == "number" ? a : null);
|
|
42470
42480
|
if (s === null)
|
|
42471
42481
|
return Promise.reject(
|
|
@@ -42474,7 +42484,7 @@ class Da {
|
|
|
42474
42484
|
)
|
|
42475
42485
|
);
|
|
42476
42486
|
const o = new Bz(i.trackIndex, i.clipIndex, r, s);
|
|
42477
|
-
return
|
|
42487
|
+
return this.executeCommand(o);
|
|
42478
42488
|
}
|
|
42479
42489
|
/**
|
|
42480
42490
|
* Validates an edit configuration.
|
|
@@ -42773,26 +42783,36 @@ class Da {
|
|
|
42773
42783
|
canDeleteClip(e, r) {
|
|
42774
42784
|
return this.document.getClipCount() <= 1 ? !1 : this.document.getClip(e, r) !== null;
|
|
42775
42785
|
}
|
|
42786
|
+
/**
|
|
42787
|
+
* Delete the clip at `(trackIdx, clipIdx)`, along with any luma matte attached to it.
|
|
42788
|
+
*
|
|
42789
|
+
* Resolves with the command outcome for the requested clip: `success` when it was
|
|
42790
|
+
* removed, or `noop` (with a `message`) when there is no clip at that position or the
|
|
42791
|
+
* deletion was refused — the timeline always keeps at least one clip.
|
|
42792
|
+
*/
|
|
42776
42793
|
async deleteClip(e, r) {
|
|
42777
42794
|
const n = this.tracks[e];
|
|
42778
|
-
if (!n) return;
|
|
42795
|
+
if (!n) return Qt(`No track at index ${e}`);
|
|
42779
42796
|
const i = n[r];
|
|
42780
|
-
if (!i) return;
|
|
42797
|
+
if (!i) return Qt(`No clip at track ${e}, index ${r}`);
|
|
42781
42798
|
if (i.playerType !== Se.Luma) {
|
|
42782
42799
|
const o = n.findIndex((u) => u.playerType === Se.Luma);
|
|
42783
42800
|
if (o !== -1) {
|
|
42801
|
+
if (this.document.getClipCount() <= 2)
|
|
42802
|
+
return Qt("Cannot delete the last clip");
|
|
42784
42803
|
const u = o < r ? r - 1 : r, l = new r0(e, o);
|
|
42785
42804
|
await this.executeCommand(l);
|
|
42786
42805
|
const c = new r0(e, u);
|
|
42787
|
-
|
|
42788
|
-
return;
|
|
42806
|
+
return this.executeCommand(c);
|
|
42789
42807
|
}
|
|
42790
42808
|
}
|
|
42791
42809
|
const s = new r0(e, r);
|
|
42792
|
-
|
|
42810
|
+
return this.executeCommand(s);
|
|
42793
42811
|
}
|
|
42794
42812
|
async addTrack(e, r) {
|
|
42795
|
-
of.parse(r), await this.preflightAssetUrls(kO(r))
|
|
42813
|
+
of.parse(r), await this.preflightAssetUrls(kO(r));
|
|
42814
|
+
const n = await this.executeCommand(new xd(e, r));
|
|
42815
|
+
return await this.autoLinkCaptionSources(e, r.clips), n;
|
|
42796
42816
|
}
|
|
42797
42817
|
/**
|
|
42798
42818
|
* Add a font to the timeline.
|
|
@@ -42832,27 +42852,43 @@ class Da {
|
|
|
42832
42852
|
clips: r.map((n) => n.clipConfiguration)
|
|
42833
42853
|
};
|
|
42834
42854
|
}
|
|
42855
|
+
/**
|
|
42856
|
+
* Delete the track at `trackIdx` and all of its clips.
|
|
42857
|
+
*
|
|
42858
|
+
* Resolves with the command outcome: `success` when the track was removed, or `noop`
|
|
42859
|
+
* (with a `message`) when the deletion was refused — the timeline always keeps at
|
|
42860
|
+
* least one track.
|
|
42861
|
+
*/
|
|
42835
42862
|
deleteTrack(e) {
|
|
42836
42863
|
const r = new Ad(e);
|
|
42837
|
-
this.executeCommand(r);
|
|
42864
|
+
return this.executeCommand(r);
|
|
42838
42865
|
}
|
|
42866
|
+
/**
|
|
42867
|
+
* Undo the most recent command.
|
|
42868
|
+
*
|
|
42869
|
+
* Resolves with the outcome: `success` when a command was undone, or `noop` (with a
|
|
42870
|
+
* `message`) when the history is empty or the command cannot be undone.
|
|
42871
|
+
*/
|
|
42839
42872
|
undo() {
|
|
42840
42873
|
return this.commandQueue.enqueue(async () => {
|
|
42841
|
-
if (this.commandIndex
|
|
42842
|
-
|
|
42843
|
-
|
|
42844
|
-
|
|
42845
|
-
|
|
42846
|
-
}
|
|
42847
|
-
}
|
|
42874
|
+
if (this.commandIndex < 0) return Qt("Nothing to undo");
|
|
42875
|
+
const e = this.commandHistory[this.commandIndex];
|
|
42876
|
+
if (!e.undo) return Qt("Command cannot be undone");
|
|
42877
|
+
const r = this.createCommandContext(), n = await Promise.resolve(e.undo(r));
|
|
42878
|
+
return this.commandIndex -= 1, this.internalEvents.emit(St.EditUndo, { command: e.name }), this.emitEditChanged(`undo:${e.name}`), n;
|
|
42848
42879
|
});
|
|
42849
42880
|
}
|
|
42881
|
+
/**
|
|
42882
|
+
* Re-apply the most recently undone command.
|
|
42883
|
+
*
|
|
42884
|
+
* Resolves with the outcome: `success` when a command was re-applied, or `noop` (with
|
|
42885
|
+
* a `message`) when there is nothing to redo.
|
|
42886
|
+
*/
|
|
42850
42887
|
redo() {
|
|
42851
42888
|
return this.commandQueue.enqueue(async () => {
|
|
42852
|
-
if (this.commandIndex
|
|
42853
|
-
|
|
42854
|
-
|
|
42855
|
-
}
|
|
42889
|
+
if (this.commandIndex >= this.commandHistory.length - 1) return Qt("Nothing to redo");
|
|
42890
|
+
const e = this.commandIndex + 1, r = this.commandHistory[e], n = this.createCommandContext(), i = await Promise.resolve(r.execute(n));
|
|
42891
|
+
return this.commandIndex = e, this.internalEvents.emit(St.EditRedo, { command: r.name }), this.emitEditChanged(`redo:${r.name}`), i;
|
|
42856
42892
|
});
|
|
42857
42893
|
}
|
|
42858
42894
|
/** True when there is a command to undo (the history pointer is not before the first command). */
|
|
@@ -42917,10 +42953,16 @@ class Da {
|
|
|
42917
42953
|
addCommandToHistory(e) {
|
|
42918
42954
|
this.pushCommandToHistory(e), this.emitEditChanged(`commit:${e.name}`);
|
|
42919
42955
|
}
|
|
42956
|
+
/**
|
|
42957
|
+
* Merge `updates` into the clip at `(trackIdx, clipIdx)`.
|
|
42958
|
+
*
|
|
42959
|
+
* Resolves with the command outcome: `success` when the clip was updated, or `noop`
|
|
42960
|
+
* (with a `message`) when there is no clip at that position.
|
|
42961
|
+
*/
|
|
42920
42962
|
updateClip(e, r, n) {
|
|
42921
42963
|
const i = this.getPlayerClip(e, r);
|
|
42922
42964
|
if (!i)
|
|
42923
|
-
return console.warn(`Clip not found at track ${e}, index ${r}`), Promise.resolve();
|
|
42965
|
+
return console.warn(`Clip not found at track ${e}, index ${r}`), Promise.resolve(Qt(`No clip at track ${e}, index ${r}`));
|
|
42924
42966
|
const a = this.document?.getClip(e, r), s = structuredClone(a ?? i.clipConfiguration), o = structuredClone(a ?? i.clipConfiguration), u = R0(o, n);
|
|
42925
42967
|
U0.parse(u);
|
|
42926
42968
|
const l = new i0(s, u, {
|
|
@@ -42978,7 +43020,7 @@ class Da {
|
|
|
42978
43020
|
executeCommand(e) {
|
|
42979
43021
|
return this.commandQueue.enqueue(async () => {
|
|
42980
43022
|
const r = this.createCommandContext(), n = await Promise.resolve(e.execute(r));
|
|
42981
|
-
this.handleCommandResult(e, n);
|
|
43023
|
+
return this.handleCommandResult(e, n), n;
|
|
42982
43024
|
});
|
|
42983
43025
|
}
|
|
42984
43026
|
/**
|
|
@@ -43645,6 +43687,18 @@ class Da {
|
|
|
43645
43687
|
resolveMergeFields(e) {
|
|
43646
43688
|
return this.mergeFieldService.resolve(e);
|
|
43647
43689
|
}
|
|
43690
|
+
/**
|
|
43691
|
+
* Re-detect merge field placeholders across the document and re-resolve the canvas.
|
|
43692
|
+
* Use after registering or updating fields directly on the merge field service (rather
|
|
43693
|
+
* than through a clip-level command): clips that already contain `{{ FIELD }}`
|
|
43694
|
+
* placeholders pick up their resolved values immediately, without a reload.
|
|
43695
|
+
*/
|
|
43696
|
+
refreshMergeFields() {
|
|
43697
|
+
const e = this.detectMergeFieldBindings(this.mergeFieldService.toSerializedArray());
|
|
43698
|
+
for (const [r, n] of e)
|
|
43699
|
+
n.size > 0 && this.document.setClipBindingsForClip(r, n);
|
|
43700
|
+
this.resolve();
|
|
43701
|
+
}
|
|
43648
43702
|
// ─── Template Edit Access (via document bindings) ──────────────────────────
|
|
43649
43703
|
/* @internal Get the exportable clip (with merge field placeholders restored) */
|
|
43650
43704
|
getTemplateClip(e, r) {
|
|
@@ -43821,12 +43875,12 @@ class yg {
|
|
|
43821
43875
|
this.updateDocumentClip(e, n, !0);
|
|
43822
43876
|
} else
|
|
43823
43877
|
this.updateDocumentClip(e, this.storedNewValue, !1);
|
|
43824
|
-
return e.resolve(), e.emitEvent(St.MergeFieldChanged, { fields: r.getAll() }),
|
|
43878
|
+
return e.resolve(), e.emitEvent(St.MergeFieldChanged, { fields: r.getAll() }), oe();
|
|
43825
43879
|
}
|
|
43826
43880
|
async undo(e) {
|
|
43827
43881
|
if (!e) throw new Error("SetMergeFieldCommand.undo: context is required");
|
|
43828
43882
|
const r = e.getMergeFields();
|
|
43829
|
-
return this.storedPreviousBinding ? e.setClipBinding(this.clipId, this.propertyPath, this.storedPreviousBinding) : e.removeClipBinding(this.clipId, this.propertyPath), this.previousFieldName && r.register({ name: this.previousFieldName, defaultValue: this.storedPreviousValue }, { silent: !0 }), this.storedPreviousBinding ? this.updateDocumentClip(e, this.storedPreviousBinding.placeholder, !0) : this.updateDocumentClip(e, this.storedPreviousValue, !1), e.resolve(), e.emitEvent(St.MergeFieldChanged, { fields: r.getAll() }),
|
|
43883
|
+
return this.storedPreviousBinding ? e.setClipBinding(this.clipId, this.propertyPath, this.storedPreviousBinding) : e.removeClipBinding(this.clipId, this.propertyPath), this.previousFieldName && r.register({ name: this.previousFieldName, defaultValue: this.storedPreviousValue }, { silent: !0 }), this.storedPreviousBinding ? this.updateDocumentClip(e, this.storedPreviousBinding.placeholder, !0) : this.updateDocumentClip(e, this.storedPreviousValue, !1), e.resolve(), e.emitEvent(St.MergeFieldChanged, { fields: r.getAll() }), oe();
|
|
43830
43884
|
}
|
|
43831
43885
|
dispose() {
|
|
43832
43886
|
this.storedPreviousBinding = void 0;
|
|
@@ -43881,7 +43935,7 @@ class nR extends Da {
|
|
|
43881
43935
|
*/
|
|
43882
43936
|
removeMergeField(e, r, n) {
|
|
43883
43937
|
const i = this.getMergeFieldForProperty(e, r);
|
|
43884
|
-
if (!i) return Promise.resolve();
|
|
43938
|
+
if (!i) return Promise.resolve(Qt("No merge field on this property"));
|
|
43885
43939
|
const a = new yg(e, r, null, i, n, n);
|
|
43886
43940
|
return this.executeCommand(a);
|
|
43887
43941
|
}
|
|
@@ -44621,15 +44675,15 @@ var WO = je({ "node_modules/.pnpm/harfbuzzjs@0.4.12/node_modules/harfbuzzjs/hb.j
|
|
|
44621
44675
|
return pt.open("GET", D, !1), pt.responseType = "arraybuffer", pt.send(null), new Uint8Array(pt.response);
|
|
44622
44676
|
}), p = async (D) => {
|
|
44623
44677
|
if (x(D))
|
|
44624
|
-
return new Promise((Gt,
|
|
44625
|
-
var
|
|
44626
|
-
|
|
44627
|
-
if (
|
|
44628
|
-
Gt(
|
|
44678
|
+
return new Promise((Gt, ce) => {
|
|
44679
|
+
var ee = new XMLHttpRequest();
|
|
44680
|
+
ee.open("GET", D, !0), ee.responseType = "arraybuffer", ee.onload = () => {
|
|
44681
|
+
if (ee.status == 200 || ee.status == 0 && ee.response) {
|
|
44682
|
+
Gt(ee.response);
|
|
44629
44683
|
return;
|
|
44630
44684
|
}
|
|
44631
|
-
|
|
44632
|
-
},
|
|
44685
|
+
ce(ee.status);
|
|
44686
|
+
}, ee.onerror = ce, ee.send(null);
|
|
44633
44687
|
});
|
|
44634
44688
|
var pt = await fetch(D, { credentials: "same-origin" });
|
|
44635
44689
|
if (pt.ok)
|
|
@@ -44647,7 +44701,7 @@ var WO = je({ "node_modules/.pnpm/harfbuzzjs@0.4.12/node_modules/harfbuzzjs/hb.j
|
|
|
44647
44701
|
if (s.preRun)
|
|
44648
44702
|
for (typeof s.preRun == "function" && (s.preRun = [s.preRun]); s.preRun.length; )
|
|
44649
44703
|
Z(s.preRun.shift());
|
|
44650
|
-
|
|
44704
|
+
se(Q);
|
|
44651
44705
|
}
|
|
44652
44706
|
function N() {
|
|
44653
44707
|
O = !0, ur.__wasm_call_ctors();
|
|
@@ -44656,7 +44710,7 @@ var WO = je({ "node_modules/.pnpm/harfbuzzjs@0.4.12/node_modules/harfbuzzjs/hb.j
|
|
|
44656
44710
|
if (s.postRun)
|
|
44657
44711
|
for (typeof s.postRun == "function" && (s.postRun = [s.postRun]); s.postRun.length; )
|
|
44658
44712
|
L(s.postRun.shift());
|
|
44659
|
-
|
|
44713
|
+
se(j);
|
|
44660
44714
|
}
|
|
44661
44715
|
var q = 0, at = null;
|
|
44662
44716
|
function dt(D) {
|
|
@@ -44695,23 +44749,23 @@ var WO = je({ "node_modules/.pnpm/harfbuzzjs@0.4.12/node_modules/harfbuzzjs/hb.j
|
|
|
44695
44749
|
}
|
|
44696
44750
|
async function Lt(D, pt) {
|
|
44697
44751
|
try {
|
|
44698
|
-
var Gt = await zt(D),
|
|
44699
|
-
return
|
|
44700
|
-
} catch (
|
|
44701
|
-
y(`failed to asynchronously prepare wasm: ${
|
|
44752
|
+
var Gt = await zt(D), ce = await WebAssembly.instantiate(Gt, pt);
|
|
44753
|
+
return ce;
|
|
44754
|
+
} catch (ee) {
|
|
44755
|
+
y(`failed to asynchronously prepare wasm: ${ee}`), $(ee);
|
|
44702
44756
|
}
|
|
44703
44757
|
}
|
|
44704
|
-
async function
|
|
44758
|
+
async function ae(D, pt, Gt) {
|
|
44705
44759
|
if (!D && !x(pt) && !l)
|
|
44706
44760
|
try {
|
|
44707
|
-
var
|
|
44708
|
-
return
|
|
44761
|
+
var ce = fetch(pt, { credentials: "same-origin" }), ee = await WebAssembly.instantiateStreaming(ce, Gt);
|
|
44762
|
+
return ee;
|
|
44709
44763
|
} catch (Le) {
|
|
44710
44764
|
y(`wasm streaming compile failed: ${Le}`), y("falling back to ArrayBuffer instantiation");
|
|
44711
44765
|
}
|
|
44712
44766
|
return Lt(pt, Gt);
|
|
44713
44767
|
}
|
|
44714
|
-
function
|
|
44768
|
+
function ue() {
|
|
44715
44769
|
return { env: Pr, wasi_snapshot_preview1: Pr };
|
|
44716
44770
|
}
|
|
44717
44771
|
async function Jt() {
|
|
@@ -44722,7 +44776,7 @@ var WO = je({ "node_modules/.pnpm/harfbuzzjs@0.4.12/node_modules/harfbuzzjs/hb.j
|
|
|
44722
44776
|
function pt(Le) {
|
|
44723
44777
|
return D(Le.instance);
|
|
44724
44778
|
}
|
|
44725
|
-
var Gt =
|
|
44779
|
+
var Gt = ue();
|
|
44726
44780
|
if (s.instantiateWasm)
|
|
44727
44781
|
return new Promise((Le, Mr) => {
|
|
44728
44782
|
s.instantiateWasm(Gt, (ei, In) => {
|
|
@@ -44730,15 +44784,15 @@ var WO = je({ "node_modules/.pnpm/harfbuzzjs@0.4.12/node_modules/harfbuzzjs/hb.j
|
|
|
44730
44784
|
});
|
|
44731
44785
|
});
|
|
44732
44786
|
K ?? (K = et());
|
|
44733
|
-
var
|
|
44734
|
-
return
|
|
44787
|
+
var ce = await ae(_, K, Gt), ee = pt(ce);
|
|
44788
|
+
return ee;
|
|
44735
44789
|
}
|
|
44736
44790
|
class Ue {
|
|
44737
44791
|
constructor(pt) {
|
|
44738
44792
|
Tt(this, "name", "ExitStatus"), this.message = `Program terminated with exit(${pt})`, this.status = pt;
|
|
44739
44793
|
}
|
|
44740
44794
|
}
|
|
44741
|
-
var
|
|
44795
|
+
var se = (D) => {
|
|
44742
44796
|
for (; D.length > 0; )
|
|
44743
44797
|
D.shift()(s);
|
|
44744
44798
|
}, j = [], L = (D) => j.push(D), Q = [], Z = (D) => Q.push(D), gt = !0, xt = () => $(""), yt = 0, Ct = () => {
|
|
@@ -44765,13 +44819,13 @@ var WO = je({ "node_modules/.pnpm/harfbuzzjs@0.4.12/node_modules/harfbuzzjs/hb.j
|
|
|
44765
44819
|
} catch (pt) {
|
|
44766
44820
|
X(pt);
|
|
44767
44821
|
}
|
|
44768
|
-
}, wt = () => performance.now(),
|
|
44822
|
+
}, wt = () => performance.now(), ie = (D, pt) => {
|
|
44769
44823
|
if (It[D] && (clearTimeout(It[D].id), delete It[D]), !pt) return 0;
|
|
44770
44824
|
var Gt = setTimeout(() => {
|
|
44771
44825
|
delete It[D], Ft(() => Ur(D, wt()));
|
|
44772
44826
|
}, pt);
|
|
44773
44827
|
return It[D] = { id: Gt, timeout_ms: pt }, 0;
|
|
44774
|
-
},
|
|
44828
|
+
}, le = () => 2147483648, mt = (D, pt) => Math.ceil(D / pt) * pt, Ve = (D) => {
|
|
44775
44829
|
var pt = R.buffer.byteLength, Gt = (D - pt + 65535) / 65536 | 0;
|
|
44776
44830
|
try {
|
|
44777
44831
|
return R.grow(Gt), S(), 1;
|
|
@@ -44780,46 +44834,46 @@ var WO = je({ "node_modules/.pnpm/harfbuzzjs@0.4.12/node_modules/harfbuzzjs/hb.j
|
|
|
44780
44834
|
}, Je = (D) => {
|
|
44781
44835
|
var pt = F.length;
|
|
44782
44836
|
D >>>= 0;
|
|
44783
|
-
var Gt =
|
|
44837
|
+
var Gt = le();
|
|
44784
44838
|
if (D > Gt)
|
|
44785
44839
|
return !1;
|
|
44786
|
-
for (var
|
|
44787
|
-
var
|
|
44788
|
-
|
|
44789
|
-
var Le = Math.min(Gt, mt(Math.max(D,
|
|
44840
|
+
for (var ce = 1; ce <= 4; ce *= 2) {
|
|
44841
|
+
var ee = pt * (1 + 0.2 / ce);
|
|
44842
|
+
ee = Math.min(ee, D + 100663296);
|
|
44843
|
+
var Le = Math.min(Gt, mt(Math.max(D, ee), 65536)), Mr = Ve(Le);
|
|
44790
44844
|
if (Mr)
|
|
44791
44845
|
return !0;
|
|
44792
44846
|
}
|
|
44793
44847
|
return !1;
|
|
44794
|
-
},
|
|
44848
|
+
}, ye = (D) => {
|
|
44795
44849
|
const pt = D.length;
|
|
44796
44850
|
return [pt % 128 | 128, pt >> 7, ...D];
|
|
44797
|
-
}, Tr = { i: 127, p: 127, j: 126, f: 125, d: 124, e: 111 }, Oe = (D) =>
|
|
44851
|
+
}, Tr = { i: 127, p: 127, j: 126, f: 125, d: 124, e: 111 }, Oe = (D) => ye(Array.from(D, (pt) => {
|
|
44798
44852
|
var Gt = Tr[pt];
|
|
44799
44853
|
return Gt;
|
|
44800
44854
|
})), Ht = (D, pt) => {
|
|
44801
|
-
var Gt = Uint8Array.of(0, 97, 115, 109, 1, 0, 0, 0, 1, ...
|
|
44855
|
+
var Gt = Uint8Array.of(0, 97, 115, 109, 1, 0, 0, 0, 1, ...ye([1, 96, ...Oe(pt.slice(1)), ...Oe(pt[0] === "v" ? "" : pt[0])]), 2, 7, 1, 1, 101, 1, 102, 0, 0, 7, 5, 1, 1, 102, 0, 0), ce = new WebAssembly.Module(Gt), ee = new WebAssembly.Instance(ce, { e: { f: D } }), Le = ee.exports.f;
|
|
44802
44856
|
return Le;
|
|
44803
44857
|
}, jt, or = (D) => jt.get(D), hr = (D, pt) => {
|
|
44804
44858
|
if (qe)
|
|
44805
44859
|
for (var Gt = D; Gt < D + pt; Gt++) {
|
|
44806
|
-
var
|
|
44807
|
-
|
|
44860
|
+
var ce = or(Gt);
|
|
44861
|
+
ce && qe.set(ce, Gt);
|
|
44808
44862
|
}
|
|
44809
44863
|
}, qe, Ae = (D) => (qe || (qe = /* @__PURE__ */ new WeakMap(), hr(0, jt.length)), qe.get(D) || 0), Fe = [], Dn = () => Fe.length ? Fe.pop() : jt.grow(1), Ii = (D, pt) => jt.set(D, pt), Bi = (D, pt) => {
|
|
44810
44864
|
var Gt = Ae(D);
|
|
44811
44865
|
if (Gt)
|
|
44812
44866
|
return Gt;
|
|
44813
|
-
var
|
|
44867
|
+
var ce = Dn();
|
|
44814
44868
|
try {
|
|
44815
|
-
Ii(
|
|
44869
|
+
Ii(ce, D);
|
|
44816
44870
|
} catch (Le) {
|
|
44817
44871
|
if (!(Le instanceof TypeError))
|
|
44818
44872
|
throw Le;
|
|
44819
|
-
var
|
|
44820
|
-
Ii(
|
|
44873
|
+
var ee = Ht(D, pt);
|
|
44874
|
+
Ii(ce, ee);
|
|
44821
44875
|
}
|
|
44822
|
-
return qe.set(D,
|
|
44876
|
+
return qe.set(D, ce), ce;
|
|
44823
44877
|
}, Qi = (D) => {
|
|
44824
44878
|
qe.delete(or(D)), Ii(D, null), Fe.push(D);
|
|
44825
44879
|
};
|
|
@@ -44828,7 +44882,7 @@ var WO = je({ "node_modules/.pnpm/harfbuzzjs@0.4.12/node_modules/harfbuzzjs/hb.j
|
|
|
44828
44882
|
function dr(D) {
|
|
44829
44883
|
s._hb_blob_create = D.hb_blob_create, s._hb_blob_destroy = D.hb_blob_destroy, s._hb_blob_get_length = D.hb_blob_get_length, s._hb_blob_get_data = D.hb_blob_get_data, s._hb_buffer_serialize_glyphs = D.hb_buffer_serialize_glyphs, s._hb_buffer_create = D.hb_buffer_create, s._hb_buffer_destroy = D.hb_buffer_destroy, s._hb_buffer_get_content_type = D.hb_buffer_get_content_type, s._hb_buffer_set_direction = D.hb_buffer_set_direction, s._hb_buffer_set_script = D.hb_buffer_set_script, s._hb_buffer_set_language = D.hb_buffer_set_language, s._hb_buffer_set_flags = D.hb_buffer_set_flags, s._hb_buffer_set_cluster_level = D.hb_buffer_set_cluster_level, s._hb_buffer_get_length = D.hb_buffer_get_length, s._hb_buffer_get_glyph_infos = D.hb_buffer_get_glyph_infos, s._hb_buffer_get_glyph_positions = D.hb_buffer_get_glyph_positions, s._hb_glyph_info_get_glyph_flags = D.hb_glyph_info_get_glyph_flags, s._hb_buffer_guess_segment_properties = D.hb_buffer_guess_segment_properties, s._hb_buffer_add_utf8 = D.hb_buffer_add_utf8, s._hb_buffer_add_utf16 = D.hb_buffer_add_utf16, s._hb_buffer_set_message_func = D.hb_buffer_set_message_func, s._hb_language_from_string = D.hb_language_from_string, s._hb_script_from_string = D.hb_script_from_string, s._hb_version = D.hb_version, s._hb_version_string = D.hb_version_string, s._hb_feature_from_string = D.hb_feature_from_string, s._malloc = D.malloc, s._free = D.free, s._hb_draw_funcs_set_move_to_func = D.hb_draw_funcs_set_move_to_func, s._hb_draw_funcs_set_line_to_func = D.hb_draw_funcs_set_line_to_func, s._hb_draw_funcs_set_quadratic_to_func = D.hb_draw_funcs_set_quadratic_to_func, s._hb_draw_funcs_set_cubic_to_func = D.hb_draw_funcs_set_cubic_to_func, s._hb_draw_funcs_set_close_path_func = D.hb_draw_funcs_set_close_path_func, s._hb_draw_funcs_create = D.hb_draw_funcs_create, s._hb_draw_funcs_destroy = D.hb_draw_funcs_destroy, s._hb_face_create = D.hb_face_create, s._hb_face_destroy = D.hb_face_destroy, s._hb_face_reference_table = D.hb_face_reference_table, s._hb_face_get_upem = D.hb_face_get_upem, s._hb_face_collect_unicodes = D.hb_face_collect_unicodes, s._hb_font_draw_glyph = D.hb_font_draw_glyph, s._hb_font_glyph_to_string = D.hb_font_glyph_to_string, s._hb_font_create = D.hb_font_create, s._hb_font_set_variations = D.hb_font_set_variations, s._hb_font_destroy = D.hb_font_destroy, s._hb_font_set_scale = D.hb_font_set_scale, s._hb_set_create = D.hb_set_create, s._hb_set_destroy = D.hb_set_destroy, s._hb_ot_var_get_axis_infos = D.hb_ot_var_get_axis_infos, s._hb_set_get_population = D.hb_set_get_population, s._hb_set_next_many = D.hb_set_next_many, s._hb_shape = D.hb_shape, Ur = D._emscripten_timeout;
|
|
44830
44884
|
}
|
|
44831
|
-
var Pr = { _abort_js: xt, _emscripten_runtime_keepalive_clear: Ct, _setitimer_js:
|
|
44885
|
+
var Pr = { _abort_js: xt, _emscripten_runtime_keepalive_clear: Ct, _setitimer_js: ie, emscripten_resize_heap: Je, proc_exit: vt }, ur = await Jt();
|
|
44832
44886
|
function Ni() {
|
|
44833
44887
|
if (q > 0) {
|
|
44834
44888
|
at = Ni;
|
|
@@ -44894,18 +44948,18 @@ var qO = je({ "node_modules/.pnpm/harfbuzzjs@0.4.12/node_modules/harfbuzzjs/hbjs
|
|
|
44894
44948
|
var et = i.hb_face_create($.ptr, K);
|
|
44895
44949
|
const Et = i.hb_face_get_upem(et);
|
|
44896
44950
|
return { ptr: et, upem: Et, reference_table: function(zt) {
|
|
44897
|
-
var Lt = i.hb_face_reference_table(et, C(zt)),
|
|
44898
|
-
if (
|
|
44899
|
-
var
|
|
44951
|
+
var Lt = i.hb_face_reference_table(et, C(zt)), ae = i.hb_blob_get_length(Lt);
|
|
44952
|
+
if (ae) {
|
|
44953
|
+
var ue = i.hb_blob_get_data(Lt, null), Jt = n.HEAPU8.subarray(ue, ue + ae);
|
|
44900
44954
|
return Jt;
|
|
44901
44955
|
}
|
|
44902
44956
|
}, getAxisInfos: function() {
|
|
44903
44957
|
var zt = i.malloc(2048), Lt = i.malloc(4);
|
|
44904
44958
|
n.HEAPU32[Lt / 4] = 64, i.hb_ot_var_get_axis_infos(et, 0, Lt, zt);
|
|
44905
|
-
var
|
|
44906
|
-
return Array.from({ length: n.HEAPU32[Lt / 4] }).forEach(function(
|
|
44907
|
-
|
|
44908
|
-
}), i.free(Lt), i.free(zt),
|
|
44959
|
+
var ae = {};
|
|
44960
|
+
return Array.from({ length: n.HEAPU32[Lt / 4] }).forEach(function(ue, Jt) {
|
|
44961
|
+
ae[k(n.HEAPU32[zt / 4 + Jt * 8 + 1])] = { min: n.HEAPF32[zt / 4 + Jt * 8 + 4], default: n.HEAPF32[zt / 4 + Jt * 8 + 5], max: n.HEAPF32[zt / 4 + Jt * 8 + 6] };
|
|
44962
|
+
}), i.free(Lt), i.free(zt), ae;
|
|
44909
44963
|
}, collectUnicodes: function() {
|
|
44910
44964
|
var zt = i.hb_set_create();
|
|
44911
44965
|
i.hb_face_collect_unicodes(et, zt);
|
|
@@ -44917,8 +44971,8 @@ var qO = je({ "node_modules/.pnpm/harfbuzzjs@0.4.12/node_modules/harfbuzzjs/hbjs
|
|
|
44917
44971
|
}
|
|
44918
44972
|
var R = "", F = 256, O = i.malloc(F);
|
|
44919
44973
|
function S($) {
|
|
44920
|
-
var K = i.hb_font_create($.ptr), et = null, Et = null, zt = null, Lt = null,
|
|
44921
|
-
function Jt(
|
|
44974
|
+
var K = i.hb_font_create($.ptr), et = null, Et = null, zt = null, Lt = null, ae = null, ue = null;
|
|
44975
|
+
function Jt(se) {
|
|
44922
44976
|
if (!et) {
|
|
44923
44977
|
var j = function(xt, yt, Ct, It, X, nt) {
|
|
44924
44978
|
R += `M${It},${X}`;
|
|
@@ -44931,17 +44985,17 @@ var qO = je({ "node_modules/.pnpm/harfbuzzjs@0.4.12/node_modules/harfbuzzjs/hbjs
|
|
|
44931
44985
|
}, gt = function(xt, yt, Ct, It) {
|
|
44932
44986
|
R += "Z";
|
|
44933
44987
|
};
|
|
44934
|
-
Et = s(j, "viiiffi"), zt = s(L, "viiiffi"), Lt = s(Q, "viiiffffffi"),
|
|
44988
|
+
Et = s(j, "viiiffi"), zt = s(L, "viiiffi"), Lt = s(Q, "viiiffffffi"), ae = s(Z, "viiiffffi"), ue = s(gt, "viiii"), et = i.hb_draw_funcs_create(), i.hb_draw_funcs_set_move_to_func(et, Et, 0, 0), i.hb_draw_funcs_set_line_to_func(et, zt, 0, 0), i.hb_draw_funcs_set_cubic_to_func(et, Lt, 0, 0), i.hb_draw_funcs_set_quadratic_to_func(et, ae, 0, 0), i.hb_draw_funcs_set_close_path_func(et, ue, 0, 0);
|
|
44935
44989
|
}
|
|
44936
|
-
return R = "", i.hb_font_draw_glyph(K,
|
|
44990
|
+
return R = "", i.hb_font_draw_glyph(K, se, et, 0), R;
|
|
44937
44991
|
}
|
|
44938
|
-
function Ue(
|
|
44939
|
-
i.hb_font_glyph_to_string(K,
|
|
44992
|
+
function Ue(se) {
|
|
44993
|
+
i.hb_font_glyph_to_string(K, se, O, F);
|
|
44940
44994
|
var j = n.HEAPU8.subarray(O, O + F);
|
|
44941
44995
|
return a.decode(j.slice(0, j.indexOf(0)));
|
|
44942
44996
|
}
|
|
44943
|
-
return { ptr: K, glyphName: Ue, glyphToPath: Jt, glyphToJson: function(
|
|
44944
|
-
var j = Jt(
|
|
44997
|
+
return { ptr: K, glyphName: Ue, glyphToPath: Jt, glyphToJson: function(se) {
|
|
44998
|
+
var j = Jt(se);
|
|
44945
44999
|
return j.replace(/([MLQCZ])/g, "|$1 ").split("|").filter(function(L) {
|
|
44946
45000
|
return L.length;
|
|
44947
45001
|
}).map(function(L) {
|
|
@@ -44952,15 +45006,15 @@ var qO = je({ "node_modules/.pnpm/harfbuzzjs@0.4.12/node_modules/harfbuzzjs/hbjs
|
|
|
44952
45006
|
return +Z;
|
|
44953
45007
|
}) };
|
|
44954
45008
|
});
|
|
44955
|
-
}, setScale: function(
|
|
44956
|
-
i.hb_font_set_scale(K,
|
|
44957
|
-
}, setVariations: function(
|
|
44958
|
-
var j = Object.entries(
|
|
45009
|
+
}, setScale: function(se, j) {
|
|
45010
|
+
i.hb_font_set_scale(K, se, j);
|
|
45011
|
+
}, setVariations: function(se) {
|
|
45012
|
+
var j = Object.entries(se), L = i.malloc(8 * j.length);
|
|
44959
45013
|
j.forEach(function(Q, Z) {
|
|
44960
45014
|
n.HEAPU32[L / 4 + Z * 2 + 0] = C(Q[0]), n.HEAPF32[L / 4 + Z * 2 + 1] = Q[1];
|
|
44961
45015
|
}), i.hb_font_set_variations(K, L, j.length), i.free(L);
|
|
44962
45016
|
}, destroy: function() {
|
|
44963
|
-
i.hb_font_destroy(K), et && (i.hb_draw_funcs_destroy(et), et = null, o(Et), o(zt), o(Lt), o(
|
|
45017
|
+
i.hb_font_destroy(K), et && (i.hb_draw_funcs_destroy(et), et = null, o(Et), o(zt), o(Lt), o(ae), o(ue));
|
|
44964
45018
|
} };
|
|
44965
45019
|
}
|
|
44966
45020
|
function U($) {
|
|
@@ -45004,8 +45058,8 @@ var qO = je({ "node_modules/.pnpm/harfbuzzjs@0.4.12/node_modules/harfbuzzjs/hbjs
|
|
|
45004
45058
|
}, setClusterLevel: function(K) {
|
|
45005
45059
|
i.hb_buffer_set_cluster_level($, K);
|
|
45006
45060
|
}, json: function() {
|
|
45007
|
-
for (var K = i.hb_buffer_get_length($), et = [], Et = i.hb_buffer_get_glyph_infos($, 0), zt = Et / 4, Lt = i.hb_buffer_get_glyph_positions($, 0) / 4,
|
|
45008
|
-
et.push({ g:
|
|
45061
|
+
for (var K = i.hb_buffer_get_length($), et = [], Et = i.hb_buffer_get_glyph_infos($, 0), zt = Et / 4, Lt = i.hb_buffer_get_glyph_positions($, 0) / 4, ae = n.HEAPU32.subarray(zt, zt + 5 * K), ue = n.HEAP32.subarray(Lt, Lt + 5 * K), Jt = 0; Jt < K; ++Jt)
|
|
45062
|
+
et.push({ g: ae[Jt * 5 + 0], cl: ae[Jt * 5 + 2], ax: ue[Jt * 5 + 0], ay: ue[Jt * 5 + 1], dx: ue[Jt * 5 + 2], dy: ue[Jt * 5 + 3], flags: i.hb_glyph_info_get_glyph_flags(Et + Jt * 20) });
|
|
45009
45063
|
return et;
|
|
45010
45064
|
}, destroy: function() {
|
|
45011
45065
|
i.hb_buffer_destroy($);
|
|
@@ -45013,16 +45067,16 @@ var qO = je({ "node_modules/.pnpm/harfbuzzjs@0.4.12/node_modules/harfbuzzjs/hbjs
|
|
|
45013
45067
|
}
|
|
45014
45068
|
function q($, K, et) {
|
|
45015
45069
|
var Et = 0, zt = 0;
|
|
45016
|
-
et && (et = et.split(","), Et = i.malloc(16 * et.length), et.forEach(function(Lt,
|
|
45017
|
-
var
|
|
45018
|
-
i.hb_feature_from_string(
|
|
45070
|
+
et && (et = et.split(","), Et = i.malloc(16 * et.length), et.forEach(function(Lt, ae) {
|
|
45071
|
+
var ue = U(Lt);
|
|
45072
|
+
i.hb_feature_from_string(ue.ptr, -1, Et + zt * 16) && zt++, ue.free();
|
|
45019
45073
|
})), i.hb_shape($.ptr, K.ptr, Et, zt), Et && i.free(Et);
|
|
45020
45074
|
}
|
|
45021
45075
|
function at($, K, et, Et, zt) {
|
|
45022
|
-
var Lt = [],
|
|
45076
|
+
var Lt = [], ae = h, ue = !1, Jt = 1024 * 1024, Ue = i.malloc(Jt), se = function(L, Q, Z, gt) {
|
|
45023
45077
|
var xt = a.decode(n.HEAPU8.subarray(Z, n.HEAPU8.indexOf(0, Z)));
|
|
45024
|
-
return xt.startsWith("start table GSUB") ?
|
|
45025
|
-
}, j = s(
|
|
45078
|
+
return xt.startsWith("start table GSUB") ? ae = p : xt.startsWith("start table GPOS") && (ae = m), ae != zt && (ue = !1), zt != h && ae == zt && xt.startsWith("end lookup " + Et) && (ue = !0), ue ? 0 : (i.hb_buffer_serialize_glyphs(L, 0, i.hb_buffer_get_length(L), Ue, Jt, 0, Q, y, _), Lt.push({ m: xt, t: JSON.parse(a.decode(n.HEAPU8.subarray(Ue, n.HEAPU8.indexOf(0, Ue)))), glyphs: i.hb_buffer_get_content_type(L) == f }), 1);
|
|
45079
|
+
}, j = s(se, "iiiii");
|
|
45026
45080
|
return i.hb_buffer_set_message_func(K.ptr, j, 0, 0), q($, K, et), i.free(Ue), o(j), Lt;
|
|
45027
45081
|
}
|
|
45028
45082
|
function dt() {
|