@shotstack/shotstack-studio 2.8.0 → 2.9.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/internal.es.js +314 -304
- package/dist/internal.umd.js +13 -13
- package/dist/shotstack-studio.es.js +2822 -2789
- package/dist/shotstack-studio.umd.js +90 -85
- package/package.json +1 -1
package/dist/internal.es.js
CHANGED
|
@@ -511,9 +511,10 @@ const Ot = {
|
|
|
511
511
|
MergeFieldChanged: "mergefield:changed",
|
|
512
512
|
// Timeline UI
|
|
513
513
|
TimelineResized: "timeline:resized"
|
|
514
|
-
},
|
|
514
|
+
}, Fe = {
|
|
515
515
|
// Canvas → Edit communication
|
|
516
516
|
CanvasClipClicked: "canvas:clipClicked",
|
|
517
|
+
CanvasClipDoubleClicked: "canvas:clipDoubleClicked",
|
|
517
518
|
CanvasBackgroundClicked: "canvas:backgroundClicked",
|
|
518
519
|
// Font capability detection
|
|
519
520
|
FontCapabilitiesChanged: "font:capabilitiesChanged",
|
|
@@ -711,9 +712,10 @@ class c6 {
|
|
|
711
712
|
return this.container;
|
|
712
713
|
}
|
|
713
714
|
}
|
|
714
|
-
var
|
|
715
|
-
class
|
|
715
|
+
var Ne = /* @__PURE__ */ ((t) => (t.Video = "video", t.Image = "image", t.Audio = "audio", t.Text = "text", t.RichText = "rich-text", t.Luma = "luma", t.Html = "html", t.Shape = "shape", t.Caption = "caption", t.Svg = "svg", t.TextToImage = "text-to-image", t.ImageToVideo = "image-to-video", t.TextToSpeech = "text-to-speech", t.RichCaption = "rich-caption", t))(Ne || {});
|
|
716
|
+
class ir extends c6 {
|
|
716
717
|
static DiscardedFrameCount = 0;
|
|
718
|
+
static DoubleClickThresholdMs = 350;
|
|
717
719
|
layer;
|
|
718
720
|
shouldDispose;
|
|
719
721
|
playerType;
|
|
@@ -912,14 +914,22 @@ class hr extends c6 {
|
|
|
912
914
|
return this.edit.playbackTime >= this.getStart() && this.edit.playbackTime < this.getEnd();
|
|
913
915
|
}
|
|
914
916
|
shouldDiscardFrame() {
|
|
915
|
-
return this.getPlaybackTime() <
|
|
917
|
+
return this.getPlaybackTime() < ir.DiscardedFrameCount;
|
|
916
918
|
}
|
|
919
|
+
/** Timestamp of last single-click on this player, used for double-click detection. */
|
|
920
|
+
lastClickAt = 0;
|
|
917
921
|
/**
|
|
918
922
|
* Handle pointer down - emit click event for selection handling.
|
|
923
|
+
* Two clicks within DoubleClickThresholdMs on the same player also emit
|
|
924
|
+
* CanvasClipDoubleClicked so text-clip editing can be triggered from the canvas.
|
|
919
925
|
* All drag/resize/rotate interaction is handled by SelectionHandles.
|
|
920
926
|
*/
|
|
921
927
|
onPointerDown(e) {
|
|
922
|
-
e.button
|
|
928
|
+
if (e.button !== o6.ButtonLeftClick)
|
|
929
|
+
return;
|
|
930
|
+
this.edit.getInternalEvents().emit(Fe.CanvasClipClicked, { player: this });
|
|
931
|
+
const r = performance.now();
|
|
932
|
+
r - this.lastClickAt <= ir.DoubleClickThresholdMs ? (this.edit.getInternalEvents().emit(Fe.CanvasClipDoubleClicked, { player: this }), this.lastClickAt = 0) : this.lastClickAt = r;
|
|
923
933
|
}
|
|
924
934
|
clipHasKeyframes() {
|
|
925
935
|
return [
|
|
@@ -1009,13 +1019,13 @@ class Ns {
|
|
|
1009
1019
|
e?.unload();
|
|
1010
1020
|
}
|
|
1011
1021
|
}
|
|
1012
|
-
class f6 extends
|
|
1022
|
+
class f6 extends ir {
|
|
1013
1023
|
audioResource;
|
|
1014
1024
|
isPlaying;
|
|
1015
1025
|
volumeKeyframeBuilder;
|
|
1016
1026
|
syncTimer;
|
|
1017
1027
|
constructor(e, r) {
|
|
1018
|
-
super(e, r,
|
|
1028
|
+
super(e, r, Ne.Audio), this.audioResource = null, this.isPlaying = !1, this.syncTimer = 0;
|
|
1019
1029
|
}
|
|
1020
1030
|
async load() {
|
|
1021
1031
|
await super.load();
|
|
@@ -16513,14 +16523,14 @@ class du {
|
|
|
16513
16523
|
}
|
|
16514
16524
|
}
|
|
16515
16525
|
const y6 = "Captions will appear here";
|
|
16516
|
-
class pu extends
|
|
16526
|
+
class pu extends ir {
|
|
16517
16527
|
static loadedFonts = /* @__PURE__ */ new Set();
|
|
16518
16528
|
state = { kind: "loaded", cues: [] };
|
|
16519
16529
|
currentCue = null;
|
|
16520
16530
|
background = null;
|
|
16521
16531
|
text = null;
|
|
16522
16532
|
constructor(e, r) {
|
|
16523
|
-
super(e, r,
|
|
16533
|
+
super(e, r, Ne.Caption);
|
|
16524
16534
|
}
|
|
16525
16535
|
async load() {
|
|
16526
16536
|
await super.load();
|
|
@@ -16630,11 +16640,11 @@ class pu extends hr {
|
|
|
16630
16640
|
}
|
|
16631
16641
|
}
|
|
16632
16642
|
}
|
|
16633
|
-
class v6 extends
|
|
16643
|
+
class v6 extends ir {
|
|
16634
16644
|
background;
|
|
16635
16645
|
text;
|
|
16636
16646
|
constructor(e, r) {
|
|
16637
|
-
super(e, r,
|
|
16647
|
+
super(e, r, Ne.Html), this.background = null, this.text = null;
|
|
16638
16648
|
}
|
|
16639
16649
|
async load() {
|
|
16640
16650
|
await super.load();
|
|
@@ -16740,12 +16750,12 @@ function Yu(t, e) {
|
|
|
16740
16750
|
const r = new ot.Graphics();
|
|
16741
16751
|
return r.fillStyle = { color: "#cccccc", alpha: 0.5 }, r.rect(0, 0, t, e), r.fill(), r.strokeStyle = { color: "#999999", width: 2 }, r.moveTo(0, 0), r.lineTo(t, e), r.moveTo(t, 0), r.lineTo(0, e), r.stroke(), r;
|
|
16742
16752
|
}
|
|
16743
|
-
class b6 extends
|
|
16753
|
+
class b6 extends ir {
|
|
16744
16754
|
texture;
|
|
16745
16755
|
sprite;
|
|
16746
16756
|
placeholder;
|
|
16747
16757
|
constructor(e, r) {
|
|
16748
|
-
super(e, r,
|
|
16758
|
+
super(e, r, Ne.Image), this.texture = null, this.sprite = null, this.placeholder = null;
|
|
16749
16759
|
}
|
|
16750
16760
|
async load() {
|
|
16751
16761
|
await super.load();
|
|
@@ -17118,13 +17128,13 @@ class l0 {
|
|
|
17118
17128
|
this.container.addChild(o);
|
|
17119
17129
|
}
|
|
17120
17130
|
}
|
|
17121
|
-
class D6 extends
|
|
17131
|
+
class D6 extends ir {
|
|
17122
17132
|
sprite = null;
|
|
17123
17133
|
texture = null;
|
|
17124
17134
|
placeholder = null;
|
|
17125
17135
|
aiOverlay = null;
|
|
17126
17136
|
constructor(e, r) {
|
|
17127
|
-
super(e, r,
|
|
17137
|
+
super(e, r, Ne.ImageToVideo);
|
|
17128
17138
|
}
|
|
17129
17139
|
async load() {
|
|
17130
17140
|
await super.load();
|
|
@@ -17185,12 +17195,12 @@ class D6 extends hr {
|
|
|
17185
17195
|
this.texture = a, this.sprite = new ot.Sprite(this.texture), this.contentContainer.addChild(this.sprite), this.clipConfiguration.width && this.clipConfiguration.height && this.applyFixedDimensions();
|
|
17186
17196
|
}
|
|
17187
17197
|
}
|
|
17188
|
-
class F6 extends
|
|
17198
|
+
class F6 extends ir {
|
|
17189
17199
|
texture;
|
|
17190
17200
|
sprite;
|
|
17191
17201
|
isPlaying;
|
|
17192
17202
|
constructor(e, r) {
|
|
17193
|
-
super(e, r,
|
|
17203
|
+
super(e, r, Ne.Luma), this.texture = null, this.sprite = null, this.isPlaying = !1;
|
|
17194
17204
|
}
|
|
17195
17205
|
async load() {
|
|
17196
17206
|
await super.load();
|
|
@@ -17991,7 +18001,7 @@ const Z_ = {
|
|
|
17991
18001
|
major: 4,
|
|
17992
18002
|
minor: 4,
|
|
17993
18003
|
patch: 3
|
|
17994
|
-
},
|
|
18004
|
+
}, Be = /* @__PURE__ */ H("$ZodType", (t, e) => {
|
|
17995
18005
|
var r;
|
|
17996
18006
|
t ?? (t = {}), t._zod.def = e, t._zod.bag = t._zod.bag || {}, t._zod.version = Z_;
|
|
17997
18007
|
const n = [...t._zod.def.checks ?? []];
|
|
@@ -18066,7 +18076,7 @@ const Z_ = {
|
|
|
18066
18076
|
version: 1
|
|
18067
18077
|
}));
|
|
18068
18078
|
}), X0 = /* @__PURE__ */ H("$ZodString", (t, e) => {
|
|
18069
|
-
|
|
18079
|
+
Be.init(t, e), t._zod.pattern = [...t?._zod.bag?.patterns ?? []].pop() ?? C_(t._zod.bag), t._zod.parse = (r, n) => {
|
|
18070
18080
|
if (e.coerce)
|
|
18071
18081
|
try {
|
|
18072
18082
|
r.value = String(r.value);
|
|
@@ -18079,10 +18089,10 @@ const Z_ = {
|
|
|
18079
18089
|
inst: t
|
|
18080
18090
|
}), r;
|
|
18081
18091
|
};
|
|
18082
|
-
}),
|
|
18092
|
+
}), Ie = /* @__PURE__ */ H("$ZodStringFormat", (t, e) => {
|
|
18083
18093
|
Ku.init(t, e), X0.init(t, e);
|
|
18084
18094
|
}), U_ = /* @__PURE__ */ H("$ZodGUID", (t, e) => {
|
|
18085
|
-
e.pattern ?? (e.pattern = l_),
|
|
18095
|
+
e.pattern ?? (e.pattern = l_), Ie.init(t, e);
|
|
18086
18096
|
}), j_ = /* @__PURE__ */ H("$ZodUUID", (t, e) => {
|
|
18087
18097
|
if (e.version) {
|
|
18088
18098
|
const n = {
|
|
@@ -18100,11 +18110,11 @@ const Z_ = {
|
|
|
18100
18110
|
e.pattern ?? (e.pattern = Ud(n));
|
|
18101
18111
|
} else
|
|
18102
18112
|
e.pattern ?? (e.pattern = Ud());
|
|
18103
|
-
|
|
18113
|
+
Ie.init(t, e);
|
|
18104
18114
|
}), G_ = /* @__PURE__ */ H("$ZodEmail", (t, e) => {
|
|
18105
|
-
e.pattern ?? (e.pattern = c_),
|
|
18115
|
+
e.pattern ?? (e.pattern = c_), Ie.init(t, e);
|
|
18106
18116
|
}), W_ = /* @__PURE__ */ H("$ZodURL", (t, e) => {
|
|
18107
|
-
|
|
18117
|
+
Ie.init(t, e), t._zod.check = (r) => {
|
|
18108
18118
|
try {
|
|
18109
18119
|
const n = r.value.trim();
|
|
18110
18120
|
if (!e.normalize && e.protocol?.source === v_.source && !/^https?:\/\//i.test(n)) {
|
|
@@ -18148,31 +18158,31 @@ const Z_ = {
|
|
|
18148
18158
|
}
|
|
18149
18159
|
};
|
|
18150
18160
|
}), Y_ = /* @__PURE__ */ H("$ZodEmoji", (t, e) => {
|
|
18151
|
-
e.pattern ?? (e.pattern = h_()),
|
|
18161
|
+
e.pattern ?? (e.pattern = h_()), Ie.init(t, e);
|
|
18152
18162
|
}), H_ = /* @__PURE__ */ H("$ZodNanoID", (t, e) => {
|
|
18153
|
-
e.pattern ?? (e.pattern = o_),
|
|
18163
|
+
e.pattern ?? (e.pattern = o_), Ie.init(t, e);
|
|
18154
18164
|
}), q_ = /* @__PURE__ */ H("$ZodCUID", (t, e) => {
|
|
18155
|
-
e.pattern ?? (e.pattern = r_),
|
|
18165
|
+
e.pattern ?? (e.pattern = r_), Ie.init(t, e);
|
|
18156
18166
|
}), X_ = /* @__PURE__ */ H("$ZodCUID2", (t, e) => {
|
|
18157
|
-
e.pattern ?? (e.pattern = i_),
|
|
18167
|
+
e.pattern ?? (e.pattern = i_), Ie.init(t, e);
|
|
18158
18168
|
}), K_ = /* @__PURE__ */ H("$ZodULID", (t, e) => {
|
|
18159
|
-
e.pattern ?? (e.pattern = n_),
|
|
18169
|
+
e.pattern ?? (e.pattern = n_), Ie.init(t, e);
|
|
18160
18170
|
}), J_ = /* @__PURE__ */ H("$ZodXID", (t, e) => {
|
|
18161
|
-
e.pattern ?? (e.pattern = a_),
|
|
18171
|
+
e.pattern ?? (e.pattern = a_), Ie.init(t, e);
|
|
18162
18172
|
}), Q_ = /* @__PURE__ */ H("$ZodKSUID", (t, e) => {
|
|
18163
|
-
e.pattern ?? (e.pattern = s_),
|
|
18173
|
+
e.pattern ?? (e.pattern = s_), Ie.init(t, e);
|
|
18164
18174
|
}), tx = /* @__PURE__ */ H("$ZodISODateTime", (t, e) => {
|
|
18165
|
-
e.pattern ?? (e.pattern = x_(e)),
|
|
18175
|
+
e.pattern ?? (e.pattern = x_(e)), Ie.init(t, e);
|
|
18166
18176
|
}), ex = /* @__PURE__ */ H("$ZodISODate", (t, e) => {
|
|
18167
|
-
e.pattern ?? (e.pattern = w_),
|
|
18177
|
+
e.pattern ?? (e.pattern = w_), Ie.init(t, e);
|
|
18168
18178
|
}), rx = /* @__PURE__ */ H("$ZodISOTime", (t, e) => {
|
|
18169
|
-
e.pattern ?? (e.pattern = __(e)),
|
|
18179
|
+
e.pattern ?? (e.pattern = __(e)), Ie.init(t, e);
|
|
18170
18180
|
}), ix = /* @__PURE__ */ H("$ZodISODuration", (t, e) => {
|
|
18171
|
-
e.pattern ?? (e.pattern = u_),
|
|
18181
|
+
e.pattern ?? (e.pattern = u_), Ie.init(t, e);
|
|
18172
18182
|
}), nx = /* @__PURE__ */ H("$ZodIPv4", (t, e) => {
|
|
18173
|
-
e.pattern ?? (e.pattern = d_),
|
|
18183
|
+
e.pattern ?? (e.pattern = d_), Ie.init(t, e), t._zod.bag.format = "ipv4";
|
|
18174
18184
|
}), ax = /* @__PURE__ */ H("$ZodIPv6", (t, e) => {
|
|
18175
|
-
e.pattern ?? (e.pattern = p_),
|
|
18185
|
+
e.pattern ?? (e.pattern = p_), Ie.init(t, e), t._zod.bag.format = "ipv6", t._zod.check = (r) => {
|
|
18176
18186
|
try {
|
|
18177
18187
|
new URL(`http://[${r.value}]`);
|
|
18178
18188
|
} catch {
|
|
@@ -18186,9 +18196,9 @@ const Z_ = {
|
|
|
18186
18196
|
}
|
|
18187
18197
|
};
|
|
18188
18198
|
}), sx = /* @__PURE__ */ H("$ZodCIDRv4", (t, e) => {
|
|
18189
|
-
e.pattern ?? (e.pattern = m_),
|
|
18199
|
+
e.pattern ?? (e.pattern = m_), Ie.init(t, e);
|
|
18190
18200
|
}), ox = /* @__PURE__ */ H("$ZodCIDRv6", (t, e) => {
|
|
18191
|
-
e.pattern ?? (e.pattern = g_),
|
|
18201
|
+
e.pattern ?? (e.pattern = g_), Ie.init(t, e), t._zod.check = (r) => {
|
|
18192
18202
|
const n = r.value.split("/");
|
|
18193
18203
|
try {
|
|
18194
18204
|
if (n.length !== 2)
|
|
@@ -18225,7 +18235,7 @@ function Cg(t) {
|
|
|
18225
18235
|
}
|
|
18226
18236
|
}
|
|
18227
18237
|
const ux = /* @__PURE__ */ H("$ZodBase64", (t, e) => {
|
|
18228
|
-
e.pattern ?? (e.pattern = y_),
|
|
18238
|
+
e.pattern ?? (e.pattern = y_), Ie.init(t, e), t._zod.bag.contentEncoding = "base64", t._zod.check = (r) => {
|
|
18229
18239
|
Cg(r.value) || r.issues.push({
|
|
18230
18240
|
code: "invalid_format",
|
|
18231
18241
|
format: "base64",
|
|
@@ -18242,7 +18252,7 @@ function lx(t) {
|
|
|
18242
18252
|
return Cg(r);
|
|
18243
18253
|
}
|
|
18244
18254
|
const cx = /* @__PURE__ */ H("$ZodBase64URL", (t, e) => {
|
|
18245
|
-
e.pattern ?? (e.pattern = gg),
|
|
18255
|
+
e.pattern ?? (e.pattern = gg), Ie.init(t, e), t._zod.bag.contentEncoding = "base64url", t._zod.check = (r) => {
|
|
18246
18256
|
lx(r.value) || r.issues.push({
|
|
18247
18257
|
code: "invalid_format",
|
|
18248
18258
|
format: "base64url",
|
|
@@ -18252,7 +18262,7 @@ const cx = /* @__PURE__ */ H("$ZodBase64URL", (t, e) => {
|
|
|
18252
18262
|
});
|
|
18253
18263
|
};
|
|
18254
18264
|
}), fx = /* @__PURE__ */ H("$ZodE164", (t, e) => {
|
|
18255
|
-
e.pattern ?? (e.pattern = b_),
|
|
18265
|
+
e.pattern ?? (e.pattern = b_), Ie.init(t, e);
|
|
18256
18266
|
});
|
|
18257
18267
|
function hx(t, e = null) {
|
|
18258
18268
|
try {
|
|
@@ -18269,7 +18279,7 @@ function hx(t, e = null) {
|
|
|
18269
18279
|
}
|
|
18270
18280
|
}
|
|
18271
18281
|
const dx = /* @__PURE__ */ H("$ZodJWT", (t, e) => {
|
|
18272
|
-
|
|
18282
|
+
Ie.init(t, e), t._zod.check = (r) => {
|
|
18273
18283
|
hx(r.value, e.alg) || r.issues.push({
|
|
18274
18284
|
code: "invalid_format",
|
|
18275
18285
|
format: "jwt",
|
|
@@ -18279,7 +18289,7 @@ const dx = /* @__PURE__ */ H("$ZodJWT", (t, e) => {
|
|
|
18279
18289
|
});
|
|
18280
18290
|
};
|
|
18281
18291
|
}), Ag = /* @__PURE__ */ H("$ZodNumber", (t, e) => {
|
|
18282
|
-
|
|
18292
|
+
Be.init(t, e), t._zod.pattern = t._zod.bag.pattern ?? bg, t._zod.parse = (r, n) => {
|
|
18283
18293
|
if (e.coerce)
|
|
18284
18294
|
try {
|
|
18285
18295
|
r.value = Number(r.value);
|
|
@@ -18300,7 +18310,7 @@ const dx = /* @__PURE__ */ H("$ZodJWT", (t, e) => {
|
|
|
18300
18310
|
}), px = /* @__PURE__ */ H("$ZodNumberFormat", (t, e) => {
|
|
18301
18311
|
N_.init(t, e), Ag.init(t, e);
|
|
18302
18312
|
}), mx = /* @__PURE__ */ H("$ZodBoolean", (t, e) => {
|
|
18303
|
-
|
|
18313
|
+
Be.init(t, e), t._zod.pattern = E_, t._zod.parse = (r, n) => {
|
|
18304
18314
|
if (e.coerce)
|
|
18305
18315
|
try {
|
|
18306
18316
|
r.value = !!r.value;
|
|
@@ -18315,7 +18325,7 @@ const dx = /* @__PURE__ */ H("$ZodJWT", (t, e) => {
|
|
|
18315
18325
|
}), r;
|
|
18316
18326
|
};
|
|
18317
18327
|
}), gx = /* @__PURE__ */ H("$ZodNull", (t, e) => {
|
|
18318
|
-
|
|
18328
|
+
Be.init(t, e), t._zod.pattern = k_, t._zod.values = /* @__PURE__ */ new Set([null]), t._zod.parse = (r, n) => {
|
|
18319
18329
|
const i = r.value;
|
|
18320
18330
|
return i === null || r.issues.push({
|
|
18321
18331
|
expected: "null",
|
|
@@ -18325,9 +18335,9 @@ const dx = /* @__PURE__ */ H("$ZodJWT", (t, e) => {
|
|
|
18325
18335
|
}), r;
|
|
18326
18336
|
};
|
|
18327
18337
|
}), yx = /* @__PURE__ */ H("$ZodUnknown", (t, e) => {
|
|
18328
|
-
|
|
18338
|
+
Be.init(t, e), t._zod.parse = (r) => r;
|
|
18329
18339
|
}), vx = /* @__PURE__ */ H("$ZodNever", (t, e) => {
|
|
18330
|
-
|
|
18340
|
+
Be.init(t, e), t._zod.parse = (r, n) => (r.issues.push({
|
|
18331
18341
|
expected: "never",
|
|
18332
18342
|
code: "invalid_type",
|
|
18333
18343
|
input: r.value,
|
|
@@ -18338,7 +18348,7 @@ function jd(t, e, r) {
|
|
|
18338
18348
|
t.issues.length && e.issues.push(...wa(r, t.issues)), e.value[r] = t.value;
|
|
18339
18349
|
}
|
|
18340
18350
|
const bx = /* @__PURE__ */ H("$ZodArray", (t, e) => {
|
|
18341
|
-
|
|
18351
|
+
Be.init(t, e), t._zod.parse = (r, n) => {
|
|
18342
18352
|
const i = r.value;
|
|
18343
18353
|
if (!Array.isArray(i))
|
|
18344
18354
|
return r.issues.push({
|
|
@@ -18411,7 +18421,7 @@ function kg(t, e, r, n, i, a) {
|
|
|
18411
18421
|
}), t.length ? Promise.all(t).then(() => r) : r;
|
|
18412
18422
|
}
|
|
18413
18423
|
const wx = /* @__PURE__ */ H("$ZodObject", (t, e) => {
|
|
18414
|
-
if (
|
|
18424
|
+
if (Be.init(t, e), !Object.getOwnPropertyDescriptor(e, "shape")?.get) {
|
|
18415
18425
|
const o = e.shape;
|
|
18416
18426
|
Object.defineProperty(e, "shape", {
|
|
18417
18427
|
get: () => {
|
|
@@ -18562,7 +18572,7 @@ function Gd(t, e, r, n) {
|
|
|
18562
18572
|
}), e);
|
|
18563
18573
|
}
|
|
18564
18574
|
const Sg = /* @__PURE__ */ H("$ZodUnion", (t, e) => {
|
|
18565
|
-
|
|
18575
|
+
Be.init(t, e), ye(t._zod, "optin", () => e.options.some((n) => n._zod.optin === "optional") ? "optional" : void 0), ye(t._zod, "optout", () => e.options.some((n) => n._zod.optout === "optional") ? "optional" : void 0), ye(t._zod, "values", () => {
|
|
18566
18576
|
if (e.options.every((n) => n._zod.values))
|
|
18567
18577
|
return new Set(e.options.flatMap((n) => Array.from(n._zod.values)));
|
|
18568
18578
|
}), ye(t._zod, "pattern", () => {
|
|
@@ -18645,7 +18655,7 @@ const Sg = /* @__PURE__ */ H("$ZodUnion", (t, e) => {
|
|
|
18645
18655
|
}), i);
|
|
18646
18656
|
};
|
|
18647
18657
|
}), Cx = /* @__PURE__ */ H("$ZodIntersection", (t, e) => {
|
|
18648
|
-
|
|
18658
|
+
Be.init(t, e), t._zod.parse = (r, n) => {
|
|
18649
18659
|
const i = r.value, a = e.left._zod.run({ value: i, issues: [] }, n), s = e.right._zod.run({ value: i, issues: [] }, n);
|
|
18650
18660
|
return a instanceof Promise || s instanceof Promise ? Promise.all([a, s]).then(([u, l]) => Wd(r, u, l)) : Wd(r, a, s);
|
|
18651
18661
|
};
|
|
@@ -18710,7 +18720,7 @@ function Wd(t, e, r) {
|
|
|
18710
18720
|
return t.value = s.data, t;
|
|
18711
18721
|
}
|
|
18712
18722
|
const Ax = /* @__PURE__ */ H("$ZodRecord", (t, e) => {
|
|
18713
|
-
|
|
18723
|
+
Be.init(t, e), t._zod.parse = (r, n) => {
|
|
18714
18724
|
const i = r.value;
|
|
18715
18725
|
if (!Sa(i))
|
|
18716
18726
|
return r.issues.push({
|
|
@@ -18788,7 +18798,7 @@ const Ax = /* @__PURE__ */ H("$ZodRecord", (t, e) => {
|
|
|
18788
18798
|
return a.length ? Promise.all(a).then(() => r) : r;
|
|
18789
18799
|
};
|
|
18790
18800
|
}), Ex = /* @__PURE__ */ H("$ZodEnum", (t, e) => {
|
|
18791
|
-
|
|
18801
|
+
Be.init(t, e);
|
|
18792
18802
|
const r = cg(e.entries), n = new Set(r);
|
|
18793
18803
|
t._zod.values = n, t._zod.pattern = new RegExp(`^(${r.filter((i) => T6.has(typeof i)).map((i) => typeof i == "string" ? Da(i) : i.toString()).join("|")})$`), t._zod.parse = (i, a) => {
|
|
18794
18804
|
const s = i.value;
|
|
@@ -18800,7 +18810,7 @@ const Ax = /* @__PURE__ */ H("$ZodRecord", (t, e) => {
|
|
|
18800
18810
|
}), i;
|
|
18801
18811
|
};
|
|
18802
18812
|
}), kx = /* @__PURE__ */ H("$ZodLiteral", (t, e) => {
|
|
18803
|
-
if (
|
|
18813
|
+
if (Be.init(t, e), e.values.length === 0)
|
|
18804
18814
|
throw new Error("Cannot create literal schema with no valid values");
|
|
18805
18815
|
const r = new Set(e.values);
|
|
18806
18816
|
t._zod.values = r, t._zod.pattern = new RegExp(`^(${e.values.map((n) => typeof n == "string" ? Da(n) : n ? Da(n.toString()) : String(n)).join("|")})$`), t._zod.parse = (n, i) => {
|
|
@@ -18813,7 +18823,7 @@ const Ax = /* @__PURE__ */ H("$ZodRecord", (t, e) => {
|
|
|
18813
18823
|
}), n;
|
|
18814
18824
|
};
|
|
18815
18825
|
}), Sx = /* @__PURE__ */ H("$ZodTransform", (t, e) => {
|
|
18816
|
-
|
|
18826
|
+
Be.init(t, e), t._zod.optin = "optional", t._zod.parse = (r, n) => {
|
|
18817
18827
|
if (n.direction === "backward")
|
|
18818
18828
|
throw new lg(t.constructor.name);
|
|
18819
18829
|
const i = e.transform(r.value, r);
|
|
@@ -18828,7 +18838,7 @@ function Yd(t, e) {
|
|
|
18828
18838
|
return e === void 0 && (t.issues.length || t.fallback) ? { issues: [], value: void 0 } : t;
|
|
18829
18839
|
}
|
|
18830
18840
|
const Dg = /* @__PURE__ */ H("$ZodOptional", (t, e) => {
|
|
18831
|
-
|
|
18841
|
+
Be.init(t, e), t._zod.optin = "optional", t._zod.optout = "optional", ye(t._zod, "values", () => e.innerType._zod.values ? /* @__PURE__ */ new Set([...e.innerType._zod.values, void 0]) : void 0), ye(t._zod, "pattern", () => {
|
|
18832
18842
|
const r = e.innerType._zod.pattern;
|
|
18833
18843
|
return r ? new RegExp(`^(${W0(r.source)})?$`) : void 0;
|
|
18834
18844
|
}), t._zod.parse = (r, n) => {
|
|
@@ -18841,12 +18851,12 @@ const Dg = /* @__PURE__ */ H("$ZodOptional", (t, e) => {
|
|
|
18841
18851
|
}), Dx = /* @__PURE__ */ H("$ZodExactOptional", (t, e) => {
|
|
18842
18852
|
Dg.init(t, e), ye(t._zod, "values", () => e.innerType._zod.values), ye(t._zod, "pattern", () => e.innerType._zod.pattern), t._zod.parse = (r, n) => e.innerType._zod.run(r, n);
|
|
18843
18853
|
}), Fx = /* @__PURE__ */ H("$ZodNullable", (t, e) => {
|
|
18844
|
-
|
|
18854
|
+
Be.init(t, e), ye(t._zod, "optin", () => e.innerType._zod.optin), ye(t._zod, "optout", () => e.innerType._zod.optout), ye(t._zod, "pattern", () => {
|
|
18845
18855
|
const r = e.innerType._zod.pattern;
|
|
18846
18856
|
return r ? new RegExp(`^(${W0(r.source)}|null)$`) : void 0;
|
|
18847
18857
|
}), ye(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);
|
|
18848
18858
|
}), Nx = /* @__PURE__ */ H("$ZodDefault", (t, e) => {
|
|
18849
|
-
|
|
18859
|
+
Be.init(t, e), t._zod.optin = "optional", ye(t._zod, "values", () => e.innerType._zod.values), t._zod.parse = (r, n) => {
|
|
18850
18860
|
if (n.direction === "backward")
|
|
18851
18861
|
return e.innerType._zod.run(r, n);
|
|
18852
18862
|
if (r.value === void 0)
|
|
@@ -18859,9 +18869,9 @@ function Hd(t, e) {
|
|
|
18859
18869
|
return t.value === void 0 && (t.value = e.defaultValue), t;
|
|
18860
18870
|
}
|
|
18861
18871
|
const Bx = /* @__PURE__ */ H("$ZodPrefault", (t, e) => {
|
|
18862
|
-
|
|
18872
|
+
Be.init(t, e), t._zod.optin = "optional", ye(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));
|
|
18863
18873
|
}), Ix = /* @__PURE__ */ H("$ZodNonOptional", (t, e) => {
|
|
18864
|
-
|
|
18874
|
+
Be.init(t, e), ye(t._zod, "values", () => {
|
|
18865
18875
|
const r = e.innerType._zod.values;
|
|
18866
18876
|
return r ? new Set([...r].filter((n) => n !== void 0)) : void 0;
|
|
18867
18877
|
}), t._zod.parse = (r, n) => {
|
|
@@ -18878,7 +18888,7 @@ function qd(t, e) {
|
|
|
18878
18888
|
}), t;
|
|
18879
18889
|
}
|
|
18880
18890
|
const Tx = /* @__PURE__ */ H("$ZodCatch", (t, e) => {
|
|
18881
|
-
|
|
18891
|
+
Be.init(t, e), t._zod.optin = "optional", ye(t._zod, "optout", () => e.innerType._zod.optout), ye(t._zod, "values", () => e.innerType._zod.values), t._zod.parse = (r, n) => {
|
|
18882
18892
|
if (n.direction === "backward")
|
|
18883
18893
|
return e.innerType._zod.run(r, n);
|
|
18884
18894
|
const i = e.innerType._zod.run(r, n);
|
|
@@ -18897,7 +18907,7 @@ const Tx = /* @__PURE__ */ H("$ZodCatch", (t, e) => {
|
|
|
18897
18907
|
}), r.issues = [], r.fallback = !0), r);
|
|
18898
18908
|
};
|
|
18899
18909
|
}), Fg = /* @__PURE__ */ H("$ZodPipe", (t, e) => {
|
|
18900
|
-
|
|
18910
|
+
Be.init(t, e), ye(t._zod, "values", () => e.in._zod.values), ye(t._zod, "optin", () => e.in._zod.optin), ye(t._zod, "optout", () => e.out._zod.optout), ye(t._zod, "propValues", () => e.in._zod.propValues), t._zod.parse = (r, n) => {
|
|
18901
18911
|
if (n.direction === "backward") {
|
|
18902
18912
|
const a = e.out._zod.run(r, n);
|
|
18903
18913
|
return a instanceof Promise ? a.then((s) => Po(s, e.in, n)) : Po(a, e.in, n);
|
|
@@ -18912,7 +18922,7 @@ function Po(t, e, r) {
|
|
|
18912
18922
|
const Px = /* @__PURE__ */ H("$ZodPreprocess", (t, e) => {
|
|
18913
18923
|
Fg.init(t, e);
|
|
18914
18924
|
}), Mx = /* @__PURE__ */ H("$ZodReadonly", (t, e) => {
|
|
18915
|
-
|
|
18925
|
+
Be.init(t, e), ye(t._zod, "propValues", () => e.innerType._zod.propValues), ye(t._zod, "values", () => e.innerType._zod.values), ye(t._zod, "optin", () => e.innerType?._zod?.optin), ye(t._zod, "optout", () => e.innerType?._zod?.optout), t._zod.parse = (r, n) => {
|
|
18916
18926
|
if (n.direction === "backward")
|
|
18917
18927
|
return e.innerType._zod.run(r, n);
|
|
18918
18928
|
const i = e.innerType._zod.run(r, n);
|
|
@@ -18923,7 +18933,7 @@ function Xd(t) {
|
|
|
18923
18933
|
return t.value = Object.freeze(t.value), t;
|
|
18924
18934
|
}
|
|
18925
18935
|
const zx = /* @__PURE__ */ H("$ZodCustom", (t, e) => {
|
|
18926
|
-
Ir.init(t, e),
|
|
18936
|
+
Ir.init(t, e), Be.init(t, e), t._zod.parse = (r, n) => r, t._zod.check = (r) => {
|
|
18927
18937
|
const n = r.value, i = e.fn(n);
|
|
18928
18938
|
if (i instanceof Promise)
|
|
18929
18939
|
return i.then((a) => Kd(a, r, n, t));
|
|
@@ -19973,7 +19983,7 @@ function Gs(t, e, r) {
|
|
|
19973
19983
|
}
|
|
19974
19984
|
}
|
|
19975
19985
|
}
|
|
19976
|
-
const
|
|
19986
|
+
const Te = /* @__PURE__ */ H("ZodType", (t, e) => (Be.init(t, e), Object.assign(t["~standard"], {
|
|
19977
19987
|
jsonSchema: {
|
|
19978
19988
|
input: vu(t, "input"),
|
|
19979
19989
|
output: vu(t, "output")
|
|
@@ -20076,7 +20086,7 @@ const Ie = /* @__PURE__ */ H("ZodType", (t, e) => (Ne.init(t, e), Object.assign(
|
|
|
20076
20086
|
},
|
|
20077
20087
|
configurable: !0
|
|
20078
20088
|
}), t)), zg = /* @__PURE__ */ H("_ZodString", (t, e) => {
|
|
20079
|
-
X0.init(t, e),
|
|
20089
|
+
X0.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (n, i, a) => P5(t, n, i);
|
|
20080
20090
|
const r = t._zod.bag;
|
|
20081
20091
|
t.format = r.format ?? null, t.minLength = r.minimum ?? null, t.maxLength = r.maximum ?? null, Gs(t, "_ZodString", {
|
|
20082
20092
|
regex(...n) {
|
|
@@ -20132,7 +20142,7 @@ function p(t) {
|
|
|
20132
20142
|
return /* @__PURE__ */ Rx(CC, t);
|
|
20133
20143
|
}
|
|
20134
20144
|
const ze = /* @__PURE__ */ H("ZodStringFormat", (t, e) => {
|
|
20135
|
-
|
|
20145
|
+
Ie.init(t, e), zg.init(t, e);
|
|
20136
20146
|
}), AC = /* @__PURE__ */ H("ZodEmail", (t, e) => {
|
|
20137
20147
|
G_.init(t, e), ze.init(t, e);
|
|
20138
20148
|
}), np = /* @__PURE__ */ H("ZodGUID", (t, e) => {
|
|
@@ -20172,7 +20182,7 @@ const ze = /* @__PURE__ */ H("ZodStringFormat", (t, e) => {
|
|
|
20172
20182
|
}), $C = /* @__PURE__ */ H("ZodJWT", (t, e) => {
|
|
20173
20183
|
dx.init(t, e), ze.init(t, e);
|
|
20174
20184
|
}), Vg = /* @__PURE__ */ H("ZodNumber", (t, e) => {
|
|
20175
|
-
Ag.init(t, e),
|
|
20185
|
+
Ag.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (n, i, a) => M5(t, n, i), Gs(t, "ZodNumber", {
|
|
20176
20186
|
gt(n, i) {
|
|
20177
20187
|
return this.check(/* @__PURE__ */ ep(n, i));
|
|
20178
20188
|
},
|
|
@@ -20232,31 +20242,31 @@ function ap(t) {
|
|
|
20232
20242
|
return /* @__PURE__ */ h5(LC, t);
|
|
20233
20243
|
}
|
|
20234
20244
|
const ZC = /* @__PURE__ */ H("ZodBoolean", (t, e) => {
|
|
20235
|
-
mx.init(t, e),
|
|
20245
|
+
mx.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => z5(t, r, n);
|
|
20236
20246
|
});
|
|
20237
20247
|
function Rt(t) {
|
|
20238
20248
|
return /* @__PURE__ */ d5(ZC, t);
|
|
20239
20249
|
}
|
|
20240
20250
|
const UC = /* @__PURE__ */ H("ZodNull", (t, e) => {
|
|
20241
|
-
gx.init(t, e),
|
|
20251
|
+
gx.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => V5(t, r, n);
|
|
20242
20252
|
});
|
|
20243
20253
|
function ei(t) {
|
|
20244
20254
|
return /* @__PURE__ */ p5(UC, t);
|
|
20245
20255
|
}
|
|
20246
20256
|
const jC = /* @__PURE__ */ H("ZodUnknown", (t, e) => {
|
|
20247
|
-
yx.init(t, e),
|
|
20257
|
+
yx.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => R5();
|
|
20248
20258
|
});
|
|
20249
|
-
function
|
|
20259
|
+
function hr() {
|
|
20250
20260
|
return /* @__PURE__ */ m5(jC);
|
|
20251
20261
|
}
|
|
20252
20262
|
const GC = /* @__PURE__ */ H("ZodNever", (t, e) => {
|
|
20253
|
-
vx.init(t, e),
|
|
20263
|
+
vx.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => O5(t, r, n);
|
|
20254
20264
|
});
|
|
20255
20265
|
function ht(t) {
|
|
20256
20266
|
return /* @__PURE__ */ g5(GC, t);
|
|
20257
20267
|
}
|
|
20258
20268
|
const WC = /* @__PURE__ */ H("ZodArray", (t, e) => {
|
|
20259
|
-
bx.init(t, e),
|
|
20269
|
+
bx.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => j5(t, r, n, i), t.element = e.element, Gs(t, "ZodArray", {
|
|
20260
20270
|
min(r, n) {
|
|
20261
20271
|
return this.check(/* @__PURE__ */ yu(r, n));
|
|
20262
20272
|
},
|
|
@@ -20278,7 +20288,7 @@ function Pt(t, e) {
|
|
|
20278
20288
|
return /* @__PURE__ */ D5(WC, t, e);
|
|
20279
20289
|
}
|
|
20280
20290
|
const YC = /* @__PURE__ */ H("ZodObject", (t, e) => {
|
|
20281
|
-
_x.init(t, e),
|
|
20291
|
+
_x.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => G5(t, r, n, i), ye(t, "shape", () => e.shape), Gs(t, "ZodObject", {
|
|
20282
20292
|
keyof() {
|
|
20283
20293
|
return Z(Object.keys(this._zod.def.shape));
|
|
20284
20294
|
},
|
|
@@ -20286,10 +20296,10 @@ const YC = /* @__PURE__ */ H("ZodObject", (t, e) => {
|
|
|
20286
20296
|
return this.clone({ ...this._zod.def, catchall: r });
|
|
20287
20297
|
},
|
|
20288
20298
|
passthrough() {
|
|
20289
|
-
return this.clone({ ...this._zod.def, catchall:
|
|
20299
|
+
return this.clone({ ...this._zod.def, catchall: hr() });
|
|
20290
20300
|
},
|
|
20291
20301
|
loose() {
|
|
20292
|
-
return this.clone({ ...this._zod.def, catchall:
|
|
20302
|
+
return this.clone({ ...this._zod.def, catchall: hr() });
|
|
20293
20303
|
},
|
|
20294
20304
|
strict() {
|
|
20295
20305
|
return this.clone({ ...this._zod.def, catchall: ht() });
|
|
@@ -20329,7 +20339,7 @@ function C(t, e) {
|
|
|
20329
20339
|
return new YC(r);
|
|
20330
20340
|
}
|
|
20331
20341
|
const Og = /* @__PURE__ */ H("ZodUnion", (t, e) => {
|
|
20332
|
-
Sg.init(t, e),
|
|
20342
|
+
Sg.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => W5(t, r, n, i), t.options = e.options;
|
|
20333
20343
|
});
|
|
20334
20344
|
function b(t, e) {
|
|
20335
20345
|
return new Og({
|
|
@@ -20350,7 +20360,7 @@ function Ju(t, e, r) {
|
|
|
20350
20360
|
});
|
|
20351
20361
|
}
|
|
20352
20362
|
const qC = /* @__PURE__ */ H("ZodIntersection", (t, e) => {
|
|
20353
|
-
Cx.init(t, e),
|
|
20363
|
+
Cx.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => Y5(t, r, n, i);
|
|
20354
20364
|
});
|
|
20355
20365
|
function XC(t, e) {
|
|
20356
20366
|
return new qC({
|
|
@@ -20360,7 +20370,7 @@ function XC(t, e) {
|
|
|
20360
20370
|
});
|
|
20361
20371
|
}
|
|
20362
20372
|
const sp = /* @__PURE__ */ H("ZodRecord", (t, e) => {
|
|
20363
|
-
Ax.init(t, e),
|
|
20373
|
+
Ax.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => H5(t, r, n, i), t.keyType = e.keyType, t.valueType = e.valueType;
|
|
20364
20374
|
});
|
|
20365
20375
|
function Rg(t, e, r) {
|
|
20366
20376
|
return !e || !e._zod ? new sp({
|
|
@@ -20376,7 +20386,7 @@ function Rg(t, e, r) {
|
|
|
20376
20386
|
});
|
|
20377
20387
|
}
|
|
20378
20388
|
const h0 = /* @__PURE__ */ H("ZodEnum", (t, e) => {
|
|
20379
|
-
Ex.init(t, e),
|
|
20389
|
+
Ex.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (n, i, a) => $5(t, n, i), t.enum = e.entries, t.options = Object.values(e.entries);
|
|
20380
20390
|
const r = new Set(Object.keys(e.entries));
|
|
20381
20391
|
t.extract = (n, i) => {
|
|
20382
20392
|
const a = {};
|
|
@@ -20415,7 +20425,7 @@ function Z(t, e) {
|
|
|
20415
20425
|
});
|
|
20416
20426
|
}
|
|
20417
20427
|
const KC = /* @__PURE__ */ H("ZodLiteral", (t, e) => {
|
|
20418
|
-
kx.init(t, e),
|
|
20428
|
+
kx.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => L5(t, r, n), t.values = new Set(e.values), Object.defineProperty(t, "value", {
|
|
20419
20429
|
get() {
|
|
20420
20430
|
if (e.values.length > 1)
|
|
20421
20431
|
throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");
|
|
@@ -20431,7 +20441,7 @@ function xt(t, e) {
|
|
|
20431
20441
|
});
|
|
20432
20442
|
}
|
|
20433
20443
|
const JC = /* @__PURE__ */ H("ZodTransform", (t, e) => {
|
|
20434
|
-
Sx.init(t, e),
|
|
20444
|
+
Sx.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => U5(t, r), t._zod.parse = (r, n) => {
|
|
20435
20445
|
if (n.direction === "backward")
|
|
20436
20446
|
throw new lg(t.constructor.name);
|
|
20437
20447
|
r.addIssue = (a) => {
|
|
@@ -20453,7 +20463,7 @@ function $g(t) {
|
|
|
20453
20463
|
});
|
|
20454
20464
|
}
|
|
20455
20465
|
const Lg = /* @__PURE__ */ H("ZodOptional", (t, e) => {
|
|
20456
|
-
Dg.init(t, e),
|
|
20466
|
+
Dg.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => Mg(t, r, n, i), t.unwrap = () => t._zod.def.innerType;
|
|
20457
20467
|
});
|
|
20458
20468
|
function f(t) {
|
|
20459
20469
|
return new Lg({
|
|
@@ -20462,7 +20472,7 @@ function f(t) {
|
|
|
20462
20472
|
});
|
|
20463
20473
|
}
|
|
20464
20474
|
const QC = /* @__PURE__ */ H("ZodExactOptional", (t, e) => {
|
|
20465
|
-
Dx.init(t, e),
|
|
20475
|
+
Dx.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => Mg(t, r, n, i), t.unwrap = () => t._zod.def.innerType;
|
|
20466
20476
|
});
|
|
20467
20477
|
function tA(t) {
|
|
20468
20478
|
return new QC({
|
|
@@ -20471,7 +20481,7 @@ function tA(t) {
|
|
|
20471
20481
|
});
|
|
20472
20482
|
}
|
|
20473
20483
|
const eA = /* @__PURE__ */ H("ZodNullable", (t, e) => {
|
|
20474
|
-
Fx.init(t, e),
|
|
20484
|
+
Fx.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => q5(t, r, n, i), t.unwrap = () => t._zod.def.innerType;
|
|
20475
20485
|
});
|
|
20476
20486
|
function op(t) {
|
|
20477
20487
|
return new eA({
|
|
@@ -20480,7 +20490,7 @@ function op(t) {
|
|
|
20480
20490
|
});
|
|
20481
20491
|
}
|
|
20482
20492
|
const rA = /* @__PURE__ */ H("ZodDefault", (t, e) => {
|
|
20483
|
-
Nx.init(t, e),
|
|
20493
|
+
Nx.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => K5(t, r, n, i), t.unwrap = () => t._zod.def.innerType, t.removeDefault = t.unwrap;
|
|
20484
20494
|
});
|
|
20485
20495
|
function iA(t, e) {
|
|
20486
20496
|
return new rA({
|
|
@@ -20492,7 +20502,7 @@ function iA(t, e) {
|
|
|
20492
20502
|
});
|
|
20493
20503
|
}
|
|
20494
20504
|
const nA = /* @__PURE__ */ H("ZodPrefault", (t, e) => {
|
|
20495
|
-
Bx.init(t, e),
|
|
20505
|
+
Bx.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => J5(t, r, n, i), t.unwrap = () => t._zod.def.innerType;
|
|
20496
20506
|
});
|
|
20497
20507
|
function aA(t, e) {
|
|
20498
20508
|
return new nA({
|
|
@@ -20504,7 +20514,7 @@ function aA(t, e) {
|
|
|
20504
20514
|
});
|
|
20505
20515
|
}
|
|
20506
20516
|
const Zg = /* @__PURE__ */ H("ZodNonOptional", (t, e) => {
|
|
20507
|
-
Ix.init(t, e),
|
|
20517
|
+
Ix.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => X5(t, r, n, i), t.unwrap = () => t._zod.def.innerType;
|
|
20508
20518
|
});
|
|
20509
20519
|
function sA(t, e) {
|
|
20510
20520
|
return new Zg({
|
|
@@ -20514,7 +20524,7 @@ function sA(t, e) {
|
|
|
20514
20524
|
});
|
|
20515
20525
|
}
|
|
20516
20526
|
const oA = /* @__PURE__ */ H("ZodCatch", (t, e) => {
|
|
20517
|
-
Tx.init(t, e),
|
|
20527
|
+
Tx.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => Q5(t, r, n, i), t.unwrap = () => t._zod.def.innerType, t.removeCatch = t.unwrap;
|
|
20518
20528
|
});
|
|
20519
20529
|
function uA(t, e) {
|
|
20520
20530
|
return new oA({
|
|
@@ -20524,7 +20534,7 @@ function uA(t, e) {
|
|
|
20524
20534
|
});
|
|
20525
20535
|
}
|
|
20526
20536
|
const Ug = /* @__PURE__ */ H("ZodPipe", (t, e) => {
|
|
20527
|
-
Fg.init(t, e),
|
|
20537
|
+
Fg.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => tC(t, r, n, i), t.in = e.in, t.out = e.out;
|
|
20528
20538
|
});
|
|
20529
20539
|
function up(t, e) {
|
|
20530
20540
|
return new Ug({
|
|
@@ -20537,7 +20547,7 @@ function up(t, e) {
|
|
|
20537
20547
|
const lA = /* @__PURE__ */ H("ZodPreprocess", (t, e) => {
|
|
20538
20548
|
Ug.init(t, e), Px.init(t, e);
|
|
20539
20549
|
}), cA = /* @__PURE__ */ H("ZodReadonly", (t, e) => {
|
|
20540
|
-
Mx.init(t, e),
|
|
20550
|
+
Mx.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => eC(t, r, n, i), t.unwrap = () => t._zod.def.innerType;
|
|
20541
20551
|
});
|
|
20542
20552
|
function fA(t) {
|
|
20543
20553
|
return new cA({
|
|
@@ -20546,7 +20556,7 @@ function fA(t) {
|
|
|
20546
20556
|
});
|
|
20547
20557
|
}
|
|
20548
20558
|
const hA = /* @__PURE__ */ H("ZodCustom", (t, e) => {
|
|
20549
|
-
zx.init(t, e),
|
|
20559
|
+
zx.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => Z5(t, r);
|
|
20550
20560
|
});
|
|
20551
20561
|
function dA(t, e = {}) {
|
|
20552
20562
|
return /* @__PURE__ */ F5(hA, t, e);
|
|
@@ -20875,7 +20885,7 @@ const JA = C({
|
|
|
20875
20885
|
}, D()), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
20876
20886
|
}).strict(), Gg = C({
|
|
20877
20887
|
find: p(),
|
|
20878
|
-
replace:
|
|
20888
|
+
replace: hr()
|
|
20879
20889
|
}).strict(), eE = C({
|
|
20880
20890
|
capture: b([F((t) => {
|
|
20881
20891
|
if (!(t === "" || t === null || t === void 0))
|
|
@@ -20919,7 +20929,7 @@ C({
|
|
|
20919
20929
|
C({
|
|
20920
20930
|
success: Rt(),
|
|
20921
20931
|
message: p(),
|
|
20922
|
-
response: Rg(p(),
|
|
20932
|
+
response: Rg(p(), hr())
|
|
20923
20933
|
}).strict();
|
|
20924
20934
|
const nE = C({
|
|
20925
20935
|
message: p(),
|
|
@@ -20955,7 +20965,7 @@ C({
|
|
|
20955
20965
|
}).strict();
|
|
20956
20966
|
const uE = C({
|
|
20957
20967
|
family: f(p()),
|
|
20958
|
-
weight: f(
|
|
20968
|
+
weight: f(hr()).default("400"),
|
|
20959
20969
|
color: f(b([p().regex(/^#[A-Fa-f0-9]{6}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
20960
20970
|
background: f(b([p().regex(/^#[A-Fa-f0-9]{6}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
20961
20971
|
opacity: f(b([F((t) => {
|
|
@@ -20994,7 +21004,7 @@ const uE = C({
|
|
|
20994
21004
|
if (!(t === "" || t === null || t === void 0))
|
|
20995
21005
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
20996
21006
|
}, D().int().gte(1).lte(500)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
|
|
20997
|
-
weight: f(
|
|
21007
|
+
weight: f(hr()).default("400"),
|
|
20998
21008
|
color: f(b([p().regex(/^#[A-Fa-f0-9]{6}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#ffffff"),
|
|
20999
21009
|
opacity: f(b([F((t) => {
|
|
21000
21010
|
if (!(t === "" || t === null || t === void 0))
|
|
@@ -21175,7 +21185,7 @@ const uE = C({
|
|
|
21175
21185
|
if (!(t === "" || t === null || t === void 0))
|
|
21176
21186
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
21177
21187
|
}, D().int().gte(1).lte(500)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
|
|
21178
|
-
weight: f(
|
|
21188
|
+
weight: f(hr()).default("400"),
|
|
21179
21189
|
color: f(b([p().regex(/^#[A-Fa-f0-9]{6}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
|
|
21180
21190
|
opacity: f(b([F((t) => {
|
|
21181
21191
|
if (!(t === "" || t === null || t === void 0))
|
|
@@ -21759,8 +21769,8 @@ const SE = C({
|
|
|
21759
21769
|
"zoom"
|
|
21760
21770
|
]))
|
|
21761
21771
|
}).strict(), Di = C({
|
|
21762
|
-
from: f(
|
|
21763
|
-
to: f(
|
|
21772
|
+
from: f(hr()),
|
|
21773
|
+
to: f(hr()),
|
|
21764
21774
|
start: f(b([F((t) => {
|
|
21765
21775
|
if (!(t === "" || t === null || t === void 0))
|
|
21766
21776
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
@@ -22618,7 +22628,7 @@ const Xk = C({
|
|
|
22618
22628
|
}, D()), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
22619
22629
|
}).strict(), f1 = C({
|
|
22620
22630
|
find: p(),
|
|
22621
|
-
replace:
|
|
22631
|
+
replace: hr()
|
|
22622
22632
|
}).strict(), Qk = C({
|
|
22623
22633
|
capture: b([F((t) => {
|
|
22624
22634
|
if (!(t === "" || t === null || t === void 0))
|
|
@@ -22662,7 +22672,7 @@ C({
|
|
|
22662
22672
|
C({
|
|
22663
22673
|
success: Rt(),
|
|
22664
22674
|
message: p(),
|
|
22665
|
-
response: Rg(p(),
|
|
22675
|
+
response: Rg(p(), hr())
|
|
22666
22676
|
}).strict();
|
|
22667
22677
|
const r7 = C({
|
|
22668
22678
|
message: p(),
|
|
@@ -22698,7 +22708,7 @@ C({
|
|
|
22698
22708
|
}).strict();
|
|
22699
22709
|
const s7 = C({
|
|
22700
22710
|
family: f(p()),
|
|
22701
|
-
weight: f(
|
|
22711
|
+
weight: f(hr()).default("400"),
|
|
22702
22712
|
color: f(b([p().regex(/^#[A-Fa-f0-9]{6}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
22703
22713
|
background: f(b([p().regex(/^#[A-Fa-f0-9]{6}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
22704
22714
|
opacity: f(b([F((t) => {
|
|
@@ -22737,7 +22747,7 @@ const s7 = C({
|
|
|
22737
22747
|
if (!(t === "" || t === null || t === void 0))
|
|
22738
22748
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
22739
22749
|
}, D().int().gte(1).lte(500)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
|
|
22740
|
-
weight: f(
|
|
22750
|
+
weight: f(hr()).default("400"),
|
|
22741
22751
|
color: f(b([p().regex(/^#[A-Fa-f0-9]{6}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#ffffff"),
|
|
22742
22752
|
opacity: f(b([F((t) => {
|
|
22743
22753
|
if (!(t === "" || t === null || t === void 0))
|
|
@@ -22918,7 +22928,7 @@ const s7 = C({
|
|
|
22918
22928
|
if (!(t === "" || t === null || t === void 0))
|
|
22919
22929
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
22920
22930
|
}, D().int().gte(1).lte(500)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
|
|
22921
|
-
weight: f(
|
|
22931
|
+
weight: f(hr()).default("400"),
|
|
22922
22932
|
color: f(b([p().regex(/^#[A-Fa-f0-9]{6}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
|
|
22923
22933
|
opacity: f(b([F((t) => {
|
|
22924
22934
|
if (!(t === "" || t === null || t === void 0))
|
|
@@ -23502,8 +23512,8 @@ const D7 = C({
|
|
|
23502
23512
|
"zoom"
|
|
23503
23513
|
]))
|
|
23504
23514
|
}).strict(), Fi = C({
|
|
23505
|
-
from: f(
|
|
23506
|
-
to: f(
|
|
23515
|
+
from: f(hr()),
|
|
23516
|
+
to: f(hr()),
|
|
23507
23517
|
start: f(b([F((t) => {
|
|
23508
23518
|
if (!(t === "" || t === null || t === void 0))
|
|
23509
23519
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
@@ -27033,12 +27043,12 @@ var r9 = Ge({
|
|
|
27033
27043
|
}
|
|
27034
27044
|
t.BrotliDecompressBuffer = Ue;
|
|
27035
27045
|
function oe(W, U) {
|
|
27036
|
-
var tt, G = 0, mt = 0, Ct = 0, gt, At = 0, Bt, X, nt, yt, et = [16, 15, 11, 4], Yt = 0, St = 0, Nt = 0, wt = [new Dt(0, 0), new Dt(0, 0), new Dt(0, 0)], ae, ce, pt,
|
|
27037
|
-
pt = new n(W), Ct = I(pt), gt = (1 << Ct) - 16, Bt = 1 << Ct, X = Bt - 1, nt = new Uint8Array(Bt +
|
|
27046
|
+
var tt, G = 0, mt = 0, Ct = 0, gt, At = 0, Bt, X, nt, yt, et = [16, 15, 11, 4], Yt = 0, St = 0, Nt = 0, wt = [new Dt(0, 0), new Dt(0, 0), new Dt(0, 0)], ae, ce, pt, Me = 128 + n.READ_SIZE;
|
|
27047
|
+
pt = new n(W), Ct = I(pt), gt = (1 << Ct) - 16, Bt = 1 << Ct, X = Bt - 1, nt = new Uint8Array(Bt + Me + i.maxDictionaryWordLength), yt = Bt, ae = [], ce = [];
|
|
27038
27048
|
for (var Je = 0; Je < 3 * A; Je++)
|
|
27039
27049
|
ae[Je] = new a(0, 0), ce[Je] = new a(0, 0);
|
|
27040
27050
|
for (; !mt; ) {
|
|
27041
|
-
var ve = 0, Pr, Ve = [1 << 28, 1 << 28, 1 << 28], Kt = [0], Ht = [1, 1, 1],
|
|
27051
|
+
var ve = 0, Pr, Ve = [1 << 28, 1 << 28, 1 << 28], Kt = [0], Ht = [1, 1, 1], or = [0, 1, 0, 1, 0, 1], dr = [0], qe, Ce, Se, Nn, Ii = null, Ti = null, tn, jr = null, pr, Mr = 0, ur = null, Pi = 0, Bn = 0, T = null, dt = 0, qt = 0, fe = 0, ie, $e;
|
|
27042
27052
|
for (tt = 0; tt < 3; ++tt)
|
|
27043
27053
|
wt[tt].codes = null, wt[tt].htrees = null;
|
|
27044
27054
|
pt.readMoreInput();
|
|
@@ -27073,62 +27083,62 @@ var r9 = Ge({
|
|
|
27073
27083
|
var Wa = Lt(Ht[2] << v, pt);
|
|
27074
27084
|
for (pr = Wa.num_htrees, jr = Wa.context_map, wt[0] = new Dt(m, tn), wt[1] = new Dt(d, Ht[1]), wt[2] = new Dt(Nn, pr), tt = 0; tt < 3; ++tt)
|
|
27075
27085
|
wt[tt].decode(pt);
|
|
27076
|
-
for (
|
|
27077
|
-
var en, Tn, sa, rn, Pn,
|
|
27086
|
+
for (ur = 0, T = 0, ie = Ti[Kt[0]], qt = o.lookupOffsets[ie], fe = o.lookupOffsets[ie + 1], $e = wt[1].htrees[0]; ve > 0; ) {
|
|
27087
|
+
var en, Tn, sa, rn, Pn, lr, cr, wr, Mi, fi, kt;
|
|
27078
27088
|
for (pt.readMoreInput(), Ve[1] === 0 && (Wt(
|
|
27079
27089
|
Ht[1],
|
|
27080
27090
|
ae,
|
|
27081
27091
|
1,
|
|
27082
27092
|
Kt,
|
|
27083
|
-
|
|
27093
|
+
or,
|
|
27084
27094
|
dr,
|
|
27085
27095
|
pt
|
|
27086
|
-
), Ve[1] = Et(ce, A, pt), $e = wt[1].htrees[Kt[1]]), --Ve[1], en = J(wt[1].codes, $e, pt), Tn = en >> 6, Tn >= 2 ? (Tn -= 2,
|
|
27096
|
+
), Ve[1] = Et(ce, A, pt), $e = wt[1].htrees[Kt[1]]), --Ve[1], en = J(wt[1].codes, $e, pt), Tn = en >> 6, Tn >= 2 ? (Tn -= 2, cr = -1) : cr = 0, sa = u.kInsertRangeLut[Tn] + (en >> 3 & 7), rn = u.kCopyRangeLut[Tn] + (en & 7), Pn = u.kInsertLengthPrefixCode[sa].offset + pt.readBits(u.kInsertLengthPrefixCode[sa].nbits), lr = u.kCopyLengthPrefixCode[rn].offset + pt.readBits(u.kCopyLengthPrefixCode[rn].nbits), St = nt[G - 1 & X], Nt = nt[G - 2 & X], fi = 0; fi < Pn; ++fi)
|
|
27087
27097
|
pt.readMoreInput(), Ve[0] === 0 && (Wt(
|
|
27088
27098
|
Ht[0],
|
|
27089
27099
|
ae,
|
|
27090
27100
|
0,
|
|
27091
27101
|
Kt,
|
|
27092
|
-
|
|
27102
|
+
or,
|
|
27093
27103
|
dr,
|
|
27094
27104
|
pt
|
|
27095
|
-
), Ve[0] = Et(ce, 0, pt), Mr = Kt[0] << w,
|
|
27105
|
+
), Ve[0] = Et(ce, 0, pt), Mr = Kt[0] << w, ur = Mr, ie = Ti[Kt[0]], qt = o.lookupOffsets[ie], fe = o.lookupOffsets[ie + 1]), Mi = o.lookup[qt + St] | o.lookup[fe + Nt], Pi = Ii[ur + Mi], --Ve[0], Nt = St, St = J(wt[0].codes, wt[0].htrees[Pi], pt), nt[G & X] = St, (G & X) === X && U.write(nt, Bt), ++G;
|
|
27096
27106
|
if (ve -= Pn, ve <= 0) break;
|
|
27097
|
-
if (
|
|
27107
|
+
if (cr < 0) {
|
|
27098
27108
|
var Mi;
|
|
27099
27109
|
if (pt.readMoreInput(), Ve[2] === 0 && (Wt(
|
|
27100
27110
|
Ht[2],
|
|
27101
27111
|
ae,
|
|
27102
27112
|
2,
|
|
27103
27113
|
Kt,
|
|
27104
|
-
|
|
27114
|
+
or,
|
|
27105
27115
|
dr,
|
|
27106
27116
|
pt
|
|
27107
|
-
), Ve[2] = Et(ce, 2 * A, pt), Bn = Kt[2] << v, T = Bn), --Ve[2], Mi = (
|
|
27117
|
+
), Ve[2] = Et(ce, 2 * A, pt), Bn = Kt[2] << v, T = Bn), --Ve[2], Mi = (lr > 4 ? 3 : lr - 2) & 255, dt = jr[T + Mi], cr = J(wt[2].codes, wt[2].htrees[dt], pt), cr >= Ce) {
|
|
27108
27118
|
var zi, Eo, Gr;
|
|
27109
|
-
|
|
27119
|
+
cr -= Ce, Eo = cr & Se, cr >>= qe, zi = (cr >> 1) + 1, Gr = (2 + (cr & 1) << zi) - 4, cr = Ce + (Gr + pt.readBits(zi) << qe) + Eo;
|
|
27110
27120
|
}
|
|
27111
27121
|
}
|
|
27112
|
-
if (wr = Y(
|
|
27122
|
+
if (wr = Y(cr, et, Yt), wr < 0)
|
|
27113
27123
|
throw new Error("[BrotliDecompress] invalid distance");
|
|
27114
27124
|
if (G < gt && At !== gt ? At = G : At = gt, kt = G & X, wr > At)
|
|
27115
|
-
if (
|
|
27116
|
-
var Gr = i.offsetsByLength[
|
|
27117
|
-
if (Gr += oa *
|
|
27118
|
-
var ua = l.transformDictionaryWord(nt, kt, Gr,
|
|
27125
|
+
if (lr >= i.minDictionaryWordLength && lr <= i.maxDictionaryWordLength) {
|
|
27126
|
+
var Gr = i.offsetsByLength[lr], Mn = wr - At - 1, Ya = i.sizeBitsByLength[lr], Ha = (1 << Ya) - 1, oa = Mn & Ha, zn = Mn >> Ya;
|
|
27127
|
+
if (Gr += oa * lr, zn < l.kNumTransforms) {
|
|
27128
|
+
var ua = l.transformDictionaryWord(nt, kt, Gr, lr, zn);
|
|
27119
27129
|
if (kt += ua, G += ua, ve -= ua, kt >= yt) {
|
|
27120
27130
|
U.write(nt, Bt);
|
|
27121
27131
|
for (var Vi = 0; Vi < kt - yt; Vi++)
|
|
27122
27132
|
nt[Vi] = nt[yt + Vi];
|
|
27123
27133
|
}
|
|
27124
27134
|
} else
|
|
27125
|
-
throw new Error("Invalid backward reference. pos: " + G + " distance: " + wr + " len: " +
|
|
27135
|
+
throw new Error("Invalid backward reference. pos: " + G + " distance: " + wr + " len: " + lr + " bytes left: " + ve);
|
|
27126
27136
|
} else
|
|
27127
|
-
throw new Error("Invalid backward reference. pos: " + G + " distance: " + wr + " len: " +
|
|
27137
|
+
throw new Error("Invalid backward reference. pos: " + G + " distance: " + wr + " len: " + lr + " bytes left: " + ve);
|
|
27128
27138
|
else {
|
|
27129
|
-
if (
|
|
27130
|
-
throw new Error("Invalid backward reference. pos: " + G + " distance: " + wr + " len: " +
|
|
27131
|
-
for (fi = 0; fi <
|
|
27139
|
+
if (cr > 0 && (et[Yt & 3] = wr, ++Yt), lr > ve)
|
|
27140
|
+
throw new Error("Invalid backward reference. pos: " + G + " distance: " + wr + " len: " + lr + " bytes left: " + ve);
|
|
27141
|
+
for (fi = 0; fi < lr; ++fi)
|
|
27132
27142
|
nt[G & X] = nt[G - wr & X], (G & X) === X && U.write(nt, Bt), ++G, --ve;
|
|
27133
27143
|
}
|
|
27134
27144
|
St = nt[G - 1 & X], Nt = nt[G - 2 & X];
|
|
@@ -27244,7 +27254,7 @@ Xi(q, {
|
|
|
27244
27254
|
clone: () => ii,
|
|
27245
27255
|
codec: () => uw,
|
|
27246
27256
|
coerce: () => _w,
|
|
27247
|
-
config: () =>
|
|
27257
|
+
config: () => nr,
|
|
27248
27258
|
core: () => I1,
|
|
27249
27259
|
cuid: () => g3,
|
|
27250
27260
|
cuid2: () => y3,
|
|
@@ -27400,7 +27410,7 @@ Xi(I1, {
|
|
|
27400
27410
|
$ZodCUID: () => i4,
|
|
27401
27411
|
$ZodCUID2: () => n4,
|
|
27402
27412
|
$ZodCatch: () => ev,
|
|
27403
|
-
$ZodCheck: () =>
|
|
27413
|
+
$ZodCheck: () => Pe,
|
|
27404
27414
|
$ZodCheckBigIntFormat: () => Ty,
|
|
27405
27415
|
$ZodCheckEndsWith: () => Gy,
|
|
27406
27416
|
$ZodCheckGreaterThan: () => _f,
|
|
@@ -27624,7 +27634,7 @@ Xi(I1, {
|
|
|
27624
27634
|
_xid: () => Zf,
|
|
27625
27635
|
_xor: () => hD,
|
|
27626
27636
|
clone: () => ii,
|
|
27627
|
-
config: () =>
|
|
27637
|
+
config: () => nr,
|
|
27628
27638
|
createStandardJSONSchemaMethod: () => Ps,
|
|
27629
27639
|
createToJSONSchemaMethod: () => rb,
|
|
27630
27640
|
decode: () => $9,
|
|
@@ -27711,7 +27721,7 @@ var P1 = /* @__PURE__ */ Symbol("zod_brand"), Yn = class extends Error {
|
|
|
27711
27721
|
};
|
|
27712
27722
|
(fp = globalThis).__zod_globalConfig ?? (fp.__zod_globalConfig = {});
|
|
27713
27723
|
var Ts = globalThis.__zod_globalConfig;
|
|
27714
|
-
function
|
|
27724
|
+
function nr(t) {
|
|
27715
27725
|
return t && Object.assign(Ts, t), Ts;
|
|
27716
27726
|
}
|
|
27717
27727
|
var Qt = {};
|
|
@@ -28328,7 +28338,7 @@ var qs = (t) => (e, r, n, i) => {
|
|
|
28328
28338
|
if (s instanceof Promise)
|
|
28329
28339
|
throw new Yn();
|
|
28330
28340
|
if (s.issues.length) {
|
|
28331
|
-
const o = new (i?.Err ?? t)(s.issues.map((u) => Lr(u, a,
|
|
28341
|
+
const o = new (i?.Err ?? t)(s.issues.map((u) => Lr(u, a, nr())));
|
|
28332
28342
|
throw sf(o, i?.callee), o;
|
|
28333
28343
|
}
|
|
28334
28344
|
return s.value;
|
|
@@ -28336,7 +28346,7 @@ var qs = (t) => (e, r, n, i) => {
|
|
|
28336
28346
|
const a = n ? { ...n, async: !0 } : { async: !0 };
|
|
28337
28347
|
let s = e._zod.run({ value: r, issues: [] }, a);
|
|
28338
28348
|
if (s instanceof Promise && (s = await s), s.issues.length) {
|
|
28339
|
-
const o = new (i?.Err ?? t)(s.issues.map((u) => Lr(u, a,
|
|
28349
|
+
const o = new (i?.Err ?? t)(s.issues.map((u) => Lr(u, a, nr())));
|
|
28340
28350
|
throw sf(o, i?.callee), o;
|
|
28341
28351
|
}
|
|
28342
28352
|
return s.value;
|
|
@@ -28346,14 +28356,14 @@ var qs = (t) => (e, r, n, i) => {
|
|
|
28346
28356
|
throw new Yn();
|
|
28347
28357
|
return a.issues.length ? {
|
|
28348
28358
|
success: !1,
|
|
28349
|
-
error: new (t ?? of)(a.issues.map((s) => Lr(s, i,
|
|
28359
|
+
error: new (t ?? of)(a.issues.map((s) => Lr(s, i, nr())))
|
|
28350
28360
|
} : { success: !0, data: a.value };
|
|
28351
28361
|
}, X1 = /* @__PURE__ */ Ks(Zr), Js = (t) => async (e, r, n) => {
|
|
28352
28362
|
const i = n ? { ...n, async: !0 } : { async: !0 };
|
|
28353
28363
|
let a = e._zod.run({ value: r, issues: [] }, i);
|
|
28354
28364
|
return a instanceof Promise && (a = await a), a.issues.length ? {
|
|
28355
28365
|
success: !1,
|
|
28356
|
-
error: new t(a.issues.map((s) => Lr(s, i,
|
|
28366
|
+
error: new t(a.issues.map((s) => Lr(s, i, nr())))
|
|
28357
28367
|
} : { success: !0, data: a.value };
|
|
28358
28368
|
}, K1 = /* @__PURE__ */ Js(Zr), cf = (t) => (e, r, n) => {
|
|
28359
28369
|
const i = n ? { ...n, direction: "backward" } : { direction: "backward" };
|
|
@@ -28460,7 +28470,7 @@ function Qs(t, e) {
|
|
|
28460
28470
|
function to(t) {
|
|
28461
28471
|
return new RegExp(`^[A-Za-z0-9_-]{${t}}$`);
|
|
28462
28472
|
}
|
|
28463
|
-
var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE__ */ to(22), uS = /^[0-9a-fA-F]{40}$/, lS = /* @__PURE__ */ Qs(27, "="), cS = /* @__PURE__ */ to(27), fS = /^[0-9a-fA-F]{64}$/, hS = /* @__PURE__ */ Qs(43, "="), dS = /* @__PURE__ */ to(43), pS = /^[0-9a-fA-F]{96}$/, mS = /* @__PURE__ */ Qs(64, ""), gS = /* @__PURE__ */ to(64), yS = /^[0-9a-fA-F]{128}$/, vS = /* @__PURE__ */ Qs(86, "=="), bS = /* @__PURE__ */ to(86),
|
|
28473
|
+
var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE__ */ to(22), uS = /^[0-9a-fA-F]{40}$/, lS = /* @__PURE__ */ Qs(27, "="), cS = /* @__PURE__ */ to(27), fS = /^[0-9a-fA-F]{64}$/, hS = /* @__PURE__ */ Qs(43, "="), dS = /* @__PURE__ */ to(43), pS = /^[0-9a-fA-F]{96}$/, mS = /* @__PURE__ */ Qs(64, ""), gS = /* @__PURE__ */ to(64), yS = /^[0-9a-fA-F]{128}$/, vS = /* @__PURE__ */ Qs(86, "=="), bS = /* @__PURE__ */ to(86), Pe = /* @__PURE__ */ V("$ZodCheck", (t, e) => {
|
|
28464
28474
|
var r;
|
|
28465
28475
|
t._zod ?? (t._zod = {}), t._zod.def = e, (r = t._zod).onattach ?? (r.onattach = []);
|
|
28466
28476
|
}), Ny = {
|
|
@@ -28468,7 +28478,7 @@ var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE
|
|
|
28468
28478
|
bigint: "bigint",
|
|
28469
28479
|
object: "date"
|
|
28470
28480
|
}, wf = /* @__PURE__ */ V("$ZodCheckLessThan", (t, e) => {
|
|
28471
|
-
|
|
28481
|
+
Pe.init(t, e);
|
|
28472
28482
|
const r = Ny[typeof e.value];
|
|
28473
28483
|
t._zod.onattach.push((n) => {
|
|
28474
28484
|
const i = n._zod.bag, a = (e.inclusive ? i.maximum : i.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
|
|
@@ -28485,7 +28495,7 @@ var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE
|
|
|
28485
28495
|
});
|
|
28486
28496
|
};
|
|
28487
28497
|
}), _f = /* @__PURE__ */ V("$ZodCheckGreaterThan", (t, e) => {
|
|
28488
|
-
|
|
28498
|
+
Pe.init(t, e);
|
|
28489
28499
|
const r = Ny[typeof e.value];
|
|
28490
28500
|
t._zod.onattach.push((n) => {
|
|
28491
28501
|
const i = n._zod.bag, a = (e.inclusive ? i.minimum : i.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
|
|
@@ -28502,7 +28512,7 @@ var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE
|
|
|
28502
28512
|
});
|
|
28503
28513
|
};
|
|
28504
28514
|
}), By = /* @__PURE__ */ V("$ZodCheckMultipleOf", (t, e) => {
|
|
28505
|
-
|
|
28515
|
+
Pe.init(t, e), t._zod.onattach.push((r) => {
|
|
28506
28516
|
var n;
|
|
28507
28517
|
(n = r._zod.bag).multipleOf ?? (n.multipleOf = e.value);
|
|
28508
28518
|
}), t._zod.check = (r) => {
|
|
@@ -28518,7 +28528,7 @@ var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE
|
|
|
28518
28528
|
});
|
|
28519
28529
|
};
|
|
28520
28530
|
}), Iy = /* @__PURE__ */ V("$ZodCheckNumberFormat", (t, e) => {
|
|
28521
|
-
|
|
28531
|
+
Pe.init(t, e), e.format = e.format || "float64";
|
|
28522
28532
|
const r = e.format?.includes("int"), n = r ? "int" : "number", [i, a] = L1[e.format];
|
|
28523
28533
|
t._zod.onattach.push((s) => {
|
|
28524
28534
|
const o = s._zod.bag;
|
|
@@ -28579,7 +28589,7 @@ var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE
|
|
|
28579
28589
|
});
|
|
28580
28590
|
};
|
|
28581
28591
|
}), Ty = /* @__PURE__ */ V("$ZodCheckBigIntFormat", (t, e) => {
|
|
28582
|
-
|
|
28592
|
+
Pe.init(t, e);
|
|
28583
28593
|
const [r, n] = Z1[e.format];
|
|
28584
28594
|
t._zod.onattach.push((i) => {
|
|
28585
28595
|
const a = i._zod.bag;
|
|
@@ -28606,7 +28616,7 @@ var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE
|
|
|
28606
28616
|
};
|
|
28607
28617
|
}), Py = /* @__PURE__ */ V("$ZodCheckMaxSize", (t, e) => {
|
|
28608
28618
|
var r;
|
|
28609
|
-
|
|
28619
|
+
Pe.init(t, e), (r = t._zod.def).when ?? (r.when = (n) => {
|
|
28610
28620
|
const i = n.value;
|
|
28611
28621
|
return !ea(i) && i.size !== void 0;
|
|
28612
28622
|
}), t._zod.onattach.push((n) => {
|
|
@@ -28626,7 +28636,7 @@ var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE
|
|
|
28626
28636
|
};
|
|
28627
28637
|
}), My = /* @__PURE__ */ V("$ZodCheckMinSize", (t, e) => {
|
|
28628
28638
|
var r;
|
|
28629
|
-
|
|
28639
|
+
Pe.init(t, e), (r = t._zod.def).when ?? (r.when = (n) => {
|
|
28630
28640
|
const i = n.value;
|
|
28631
28641
|
return !ea(i) && i.size !== void 0;
|
|
28632
28642
|
}), t._zod.onattach.push((n) => {
|
|
@@ -28646,7 +28656,7 @@ var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE
|
|
|
28646
28656
|
};
|
|
28647
28657
|
}), zy = /* @__PURE__ */ V("$ZodCheckSizeEquals", (t, e) => {
|
|
28648
28658
|
var r;
|
|
28649
|
-
|
|
28659
|
+
Pe.init(t, e), (r = t._zod.def).when ?? (r.when = (n) => {
|
|
28650
28660
|
const i = n.value;
|
|
28651
28661
|
return !ea(i) && i.size !== void 0;
|
|
28652
28662
|
}), t._zod.onattach.push((n) => {
|
|
@@ -28669,7 +28679,7 @@ var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE
|
|
|
28669
28679
|
};
|
|
28670
28680
|
}), Vy = /* @__PURE__ */ V("$ZodCheckMaxLength", (t, e) => {
|
|
28671
28681
|
var r;
|
|
28672
|
-
|
|
28682
|
+
Pe.init(t, e), (r = t._zod.def).when ?? (r.when = (n) => {
|
|
28673
28683
|
const i = n.value;
|
|
28674
28684
|
return !ea(i) && i.length !== void 0;
|
|
28675
28685
|
}), t._zod.onattach.push((n) => {
|
|
@@ -28692,7 +28702,7 @@ var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE
|
|
|
28692
28702
|
};
|
|
28693
28703
|
}), Oy = /* @__PURE__ */ V("$ZodCheckMinLength", (t, e) => {
|
|
28694
28704
|
var r;
|
|
28695
|
-
|
|
28705
|
+
Pe.init(t, e), (r = t._zod.def).when ?? (r.when = (n) => {
|
|
28696
28706
|
const i = n.value;
|
|
28697
28707
|
return !ea(i) && i.length !== void 0;
|
|
28698
28708
|
}), t._zod.onattach.push((n) => {
|
|
@@ -28715,7 +28725,7 @@ var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE
|
|
|
28715
28725
|
};
|
|
28716
28726
|
}), Ry = /* @__PURE__ */ V("$ZodCheckLengthEquals", (t, e) => {
|
|
28717
28727
|
var r;
|
|
28718
|
-
|
|
28728
|
+
Pe.init(t, e), (r = t._zod.def).when ?? (r.when = (n) => {
|
|
28719
28729
|
const i = n.value;
|
|
28720
28730
|
return !ea(i) && i.length !== void 0;
|
|
28721
28731
|
}), t._zod.onattach.push((n) => {
|
|
@@ -28738,7 +28748,7 @@ var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE
|
|
|
28738
28748
|
};
|
|
28739
28749
|
}), eo = /* @__PURE__ */ V("$ZodCheckStringFormat", (t, e) => {
|
|
28740
28750
|
var r, n;
|
|
28741
|
-
|
|
28751
|
+
Pe.init(t, e), t._zod.onattach.push((i) => {
|
|
28742
28752
|
const a = i._zod.bag;
|
|
28743
28753
|
a.format = e.format, e.pattern && (a.patterns ?? (a.patterns = /* @__PURE__ */ new Set()), a.patterns.add(e.pattern));
|
|
28744
28754
|
}), e.pattern ? (r = t._zod).check ?? (r.check = (i) => {
|
|
@@ -28770,7 +28780,7 @@ var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE
|
|
|
28770
28780
|
}), Zy = /* @__PURE__ */ V("$ZodCheckUpperCase", (t, e) => {
|
|
28771
28781
|
e.pattern ?? (e.pattern = Fy), eo.init(t, e);
|
|
28772
28782
|
}), Uy = /* @__PURE__ */ V("$ZodCheckIncludes", (t, e) => {
|
|
28773
|
-
|
|
28783
|
+
Pe.init(t, e);
|
|
28774
28784
|
const r = Hi(e.includes), n = new RegExp(typeof e.position == "number" ? `^.{${e.position}}${r}` : r);
|
|
28775
28785
|
e.pattern = n, t._zod.onattach.push((i) => {
|
|
28776
28786
|
const a = i._zod.bag;
|
|
@@ -28787,7 +28797,7 @@ var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE
|
|
|
28787
28797
|
});
|
|
28788
28798
|
};
|
|
28789
28799
|
}), jy = /* @__PURE__ */ V("$ZodCheckStartsWith", (t, e) => {
|
|
28790
|
-
|
|
28800
|
+
Pe.init(t, e);
|
|
28791
28801
|
const r = new RegExp(`^${Hi(e.prefix)}.*`);
|
|
28792
28802
|
e.pattern ?? (e.pattern = r), t._zod.onattach.push((n) => {
|
|
28793
28803
|
const i = n._zod.bag;
|
|
@@ -28804,7 +28814,7 @@ var aS = /^[0-9a-fA-F]{32}$/, sS = /* @__PURE__ */ Qs(22, "=="), oS = /* @__PURE
|
|
|
28804
28814
|
});
|
|
28805
28815
|
};
|
|
28806
28816
|
}), Gy = /* @__PURE__ */ V("$ZodCheckEndsWith", (t, e) => {
|
|
28807
|
-
|
|
28817
|
+
Pe.init(t, e);
|
|
28808
28818
|
const r = new RegExp(`.*${Hi(e.suffix)}$`);
|
|
28809
28819
|
e.pattern ?? (e.pattern = r), t._zod.onattach.push((n) => {
|
|
28810
28820
|
const i = n._zod.bag;
|
|
@@ -28825,7 +28835,7 @@ function dp(t, e, r) {
|
|
|
28825
28835
|
t.issues.length && e.issues.push(...Jr(r, t.issues));
|
|
28826
28836
|
}
|
|
28827
28837
|
var Wy = /* @__PURE__ */ V("$ZodCheckProperty", (t, e) => {
|
|
28828
|
-
|
|
28838
|
+
Pe.init(t, e), t._zod.check = (r) => {
|
|
28829
28839
|
const n = e.schema._zod.run({
|
|
28830
28840
|
value: r.value[e.property],
|
|
28831
28841
|
issues: []
|
|
@@ -28835,7 +28845,7 @@ var Wy = /* @__PURE__ */ V("$ZodCheckProperty", (t, e) => {
|
|
|
28835
28845
|
dp(n, r, e.property);
|
|
28836
28846
|
};
|
|
28837
28847
|
}), Yy = /* @__PURE__ */ V("$ZodCheckMimeType", (t, e) => {
|
|
28838
|
-
|
|
28848
|
+
Pe.init(t, e);
|
|
28839
28849
|
const r = new Set(e.mime);
|
|
28840
28850
|
t._zod.onattach.push((n) => {
|
|
28841
28851
|
n._zod.bag.mime = e.mime;
|
|
@@ -28849,7 +28859,7 @@ var Wy = /* @__PURE__ */ V("$ZodCheckProperty", (t, e) => {
|
|
|
28849
28859
|
});
|
|
28850
28860
|
};
|
|
28851
28861
|
}), Hy = /* @__PURE__ */ V("$ZodCheckOverwrite", (t, e) => {
|
|
28852
|
-
|
|
28862
|
+
Pe.init(t, e), t._zod.check = (r) => {
|
|
28853
28863
|
r.value = e.tx(r.value);
|
|
28854
28864
|
};
|
|
28855
28865
|
}), qy = class {
|
|
@@ -29521,7 +29531,7 @@ function mp(t, e, r, n) {
|
|
|
29521
29531
|
code: "invalid_union",
|
|
29522
29532
|
input: e.value,
|
|
29523
29533
|
inst: r,
|
|
29524
|
-
errors: t.map((a) => a.issues.map((s) => Lr(s, n,
|
|
29534
|
+
errors: t.map((a) => a.issues.map((s) => Lr(s, n, nr())))
|
|
29525
29535
|
}), e);
|
|
29526
29536
|
}
|
|
29527
29537
|
var fl = /* @__PURE__ */ V("$ZodUnion", (t, e) => {
|
|
@@ -29562,7 +29572,7 @@ function gp(t, e, r, n) {
|
|
|
29562
29572
|
code: "invalid_union",
|
|
29563
29573
|
input: e.value,
|
|
29564
29574
|
inst: r,
|
|
29565
|
-
errors: t.map((a) => a.issues.map((s) => Lr(s, n,
|
|
29575
|
+
errors: t.map((a) => a.issues.map((s) => Lr(s, n, nr())))
|
|
29566
29576
|
}) : e.issues.push({
|
|
29567
29577
|
code: "invalid_union",
|
|
29568
29578
|
input: e.value,
|
|
@@ -29806,7 +29816,7 @@ var Z4 = /* @__PURE__ */ V("$ZodRecord", (t, e) => {
|
|
|
29806
29816
|
r.issues.push({
|
|
29807
29817
|
code: "invalid_key",
|
|
29808
29818
|
origin: "record",
|
|
29809
|
-
issues: c.issues.map((d) => Lr(d, n,
|
|
29819
|
+
issues: c.issues.map((d) => Lr(d, n, nr())),
|
|
29810
29820
|
input: l,
|
|
29811
29821
|
path: [l],
|
|
29812
29822
|
inst: t
|
|
@@ -29845,7 +29855,7 @@ var Z4 = /* @__PURE__ */ V("$ZodRecord", (t, e) => {
|
|
|
29845
29855
|
e.mode === "loose" ? r.value[o] = i[o] : r.issues.push({
|
|
29846
29856
|
code: "invalid_key",
|
|
29847
29857
|
origin: "record",
|
|
29848
|
-
issues: u.issues.map((h) => Lr(h, n,
|
|
29858
|
+
issues: u.issues.map((h) => Lr(h, n, nr())),
|
|
29849
29859
|
input: o,
|
|
29850
29860
|
path: [o],
|
|
29851
29861
|
inst: t
|
|
@@ -29887,14 +29897,14 @@ function _p(t, e, r, n, i, a, s) {
|
|
|
29887
29897
|
origin: "map",
|
|
29888
29898
|
input: i,
|
|
29889
29899
|
inst: a,
|
|
29890
|
-
issues: t.issues.map((o) => Lr(o, s,
|
|
29900
|
+
issues: t.issues.map((o) => Lr(o, s, nr()))
|
|
29891
29901
|
})), e.issues.length && (wu.has(typeof n) ? r.issues.push(...Jr(n, e.issues)) : r.issues.push({
|
|
29892
29902
|
origin: "map",
|
|
29893
29903
|
code: "invalid_element",
|
|
29894
29904
|
input: i,
|
|
29895
29905
|
inst: a,
|
|
29896
29906
|
key: n,
|
|
29897
|
-
issues: e.issues.map((o) => Lr(o, s,
|
|
29907
|
+
issues: e.issues.map((o) => Lr(o, s, nr()))
|
|
29898
29908
|
})), r.value.set(t.value, e.value);
|
|
29899
29909
|
}
|
|
29900
29910
|
var j4 = /* @__PURE__ */ V("$ZodSet", (t, e) => {
|
|
@@ -30034,13 +30044,13 @@ var tv = /* @__PURE__ */ V("$ZodSuccess", (t, e) => {
|
|
|
30034
30044
|
return i instanceof Promise ? i.then((a) => (r.value = a.value, a.issues.length && (r.value = e.catchValue({
|
|
30035
30045
|
...r,
|
|
30036
30046
|
error: {
|
|
30037
|
-
issues: a.issues.map((s) => Lr(s, n,
|
|
30047
|
+
issues: a.issues.map((s) => Lr(s, n, nr()))
|
|
30038
30048
|
},
|
|
30039
30049
|
input: r.value
|
|
30040
30050
|
}), r.issues = [], r.fallback = !0), r)) : (r.value = i.value, i.issues.length && (r.value = e.catchValue({
|
|
30041
30051
|
...r,
|
|
30042
30052
|
error: {
|
|
30043
|
-
issues: i.issues.map((a) => Lr(a, n,
|
|
30053
|
+
issues: i.issues.map((a) => Lr(a, n, nr()))
|
|
30044
30054
|
},
|
|
30045
30055
|
input: r.value
|
|
30046
30056
|
}), r.issues = [], r.fallback = !0), r);
|
|
@@ -30180,7 +30190,7 @@ var av = /* @__PURE__ */ V("$ZodTemplateLiteral", (t, e) => {
|
|
|
30180
30190
|
return r._cachedInner || (r._cachedInner = e.getter()), r._cachedInner;
|
|
30181
30191
|
}), te(t._zod, "pattern", () => t._zod.innerType?._zod?.pattern), te(t._zod, "propValues", () => t._zod.innerType?._zod?.propValues), te(t._zod, "optin", () => t._zod.innerType?._zod?.optin ?? void 0), te(t._zod, "optout", () => t._zod.innerType?._zod?.optout ?? void 0), t._zod.parse = (r, n) => t._zod.innerType._zod.run(r, n);
|
|
30182
30192
|
}), lv = /* @__PURE__ */ V("$ZodCustom", (t, e) => {
|
|
30183
|
-
|
|
30193
|
+
Pe.init(t, e), Ut.init(t, e), t._zod.parse = (r, n) => r, t._zod.check = (r) => {
|
|
30184
30194
|
const n = r.value, i = e.fn(n);
|
|
30185
30195
|
if (i instanceof Promise)
|
|
30186
30196
|
return i.then((a) => Sp(a, r, n, t));
|
|
@@ -35770,7 +35780,7 @@ function Kv(t, e) {
|
|
|
35770
35780
|
}
|
|
35771
35781
|
// @__NO_SIDE_EFFECTS__
|
|
35772
35782
|
function Jv(t, e) {
|
|
35773
|
-
const r = new
|
|
35783
|
+
const r = new Pe({
|
|
35774
35784
|
check: "custom",
|
|
35775
35785
|
...at(e)
|
|
35776
35786
|
});
|
|
@@ -35778,7 +35788,7 @@ function Jv(t, e) {
|
|
|
35778
35788
|
}
|
|
35779
35789
|
// @__NO_SIDE_EFFECTS__
|
|
35780
35790
|
function Qv(t) {
|
|
35781
|
-
const e = new
|
|
35791
|
+
const e = new Pe({ check: "describe" });
|
|
35782
35792
|
return e._zod.onattach = [
|
|
35783
35793
|
(r) => {
|
|
35784
35794
|
const n = Qr.get(r) ?? {};
|
|
@@ -35789,7 +35799,7 @@ function Qv(t) {
|
|
|
35789
35799
|
}
|
|
35790
35800
|
// @__NO_SIDE_EFFECTS__
|
|
35791
35801
|
function tb(t) {
|
|
35792
|
-
const e = new
|
|
35802
|
+
const e = new Pe({ check: "meta" });
|
|
35793
35803
|
return e._zod.onattach = [
|
|
35794
35804
|
(r) => {
|
|
35795
35805
|
const n = Qr.get(r) ?? {};
|
|
@@ -37662,7 +37672,7 @@ var bo = /* @__PURE__ */ V("ZodCustom", (t, e) => {
|
|
|
37662
37672
|
lv.init(t, e), Gt.init(t, e), t._zod.processJSONSchema = (r, n, i) => _b(t, r);
|
|
37663
37673
|
});
|
|
37664
37674
|
function hw(t) {
|
|
37665
|
-
const e = new
|
|
37675
|
+
const e = new Pe({
|
|
37666
37676
|
check: "custom"
|
|
37667
37677
|
// ...util.normalizeParams(params),
|
|
37668
37678
|
});
|
|
@@ -37726,12 +37736,12 @@ var OD = {
|
|
|
37726
37736
|
custom: "custom"
|
|
37727
37737
|
};
|
|
37728
37738
|
function RD(t) {
|
|
37729
|
-
|
|
37739
|
+
nr({
|
|
37730
37740
|
customError: t
|
|
37731
37741
|
});
|
|
37732
37742
|
}
|
|
37733
37743
|
function $D() {
|
|
37734
|
-
return
|
|
37744
|
+
return nr().customError;
|
|
37735
37745
|
}
|
|
37736
37746
|
var b0;
|
|
37737
37747
|
b0 || (b0 = {});
|
|
@@ -37854,7 +37864,7 @@ function ww(t, e) {
|
|
|
37854
37864
|
return e.refs.get(i);
|
|
37855
37865
|
});
|
|
37856
37866
|
e.processing.add(i);
|
|
37857
|
-
const a = UD(i, e), s =
|
|
37867
|
+
const a = UD(i, e), s = fr(a, e);
|
|
37858
37868
|
return e.refs.set(i, s), e.processing.delete(i), s;
|
|
37859
37869
|
}
|
|
37860
37870
|
if (t.enum !== void 0) {
|
|
@@ -37910,11 +37920,11 @@ function ww(t, e) {
|
|
|
37910
37920
|
case "object": {
|
|
37911
37921
|
const i = {}, a = t.properties || {}, s = new Set(t.required || []);
|
|
37912
37922
|
for (const [u, l] of Object.entries(a)) {
|
|
37913
|
-
const c =
|
|
37923
|
+
const c = fr(l, e);
|
|
37914
37924
|
i[u] = s.has(u) ? c : c.optional();
|
|
37915
37925
|
}
|
|
37916
37926
|
if (t.propertyNames) {
|
|
37917
|
-
const u =
|
|
37927
|
+
const u = fr(t.propertyNames, e), l = t.additionalProperties && typeof t.additionalProperties == "object" ? fr(t.additionalProperties, e) : ft.any();
|
|
37918
37928
|
if (Object.keys(i).length === 0) {
|
|
37919
37929
|
n = ft.record(u, l);
|
|
37920
37930
|
break;
|
|
@@ -37926,7 +37936,7 @@ function ww(t, e) {
|
|
|
37926
37936
|
if (t.patternProperties) {
|
|
37927
37937
|
const u = t.patternProperties, l = Object.keys(u), c = [];
|
|
37928
37938
|
for (const m of l) {
|
|
37929
|
-
const d =
|
|
37939
|
+
const d = fr(u[m], e), y = ft.string().regex(new RegExp(m));
|
|
37930
37940
|
c.push(ft.looseRecord(y, d));
|
|
37931
37941
|
}
|
|
37932
37942
|
const h = [];
|
|
@@ -37943,19 +37953,19 @@ function ww(t, e) {
|
|
|
37943
37953
|
break;
|
|
37944
37954
|
}
|
|
37945
37955
|
const o = ft.object(i);
|
|
37946
|
-
t.additionalProperties === !1 ? n = o.strict() : typeof t.additionalProperties == "object" ? n = o.catchall(
|
|
37956
|
+
t.additionalProperties === !1 ? n = o.strict() : typeof t.additionalProperties == "object" ? n = o.catchall(fr(t.additionalProperties, e)) : n = o.passthrough();
|
|
37947
37957
|
break;
|
|
37948
37958
|
}
|
|
37949
37959
|
case "array": {
|
|
37950
37960
|
const i = t.prefixItems, a = t.items;
|
|
37951
37961
|
if (i && Array.isArray(i)) {
|
|
37952
|
-
const s = i.map((u) =>
|
|
37962
|
+
const s = i.map((u) => fr(u, e)), o = a && typeof a == "object" && !Array.isArray(a) ? fr(a, e) : void 0;
|
|
37953
37963
|
o ? n = ft.tuple(s).rest(o) : n = ft.tuple(s), typeof t.minItems == "number" && (n = n.check(ft.minLength(t.minItems))), typeof t.maxItems == "number" && (n = n.check(ft.maxLength(t.maxItems)));
|
|
37954
37964
|
} else if (Array.isArray(a)) {
|
|
37955
|
-
const s = a.map((u) =>
|
|
37965
|
+
const s = a.map((u) => fr(u, e)), o = t.additionalItems && typeof t.additionalItems == "object" ? fr(t.additionalItems, e) : void 0;
|
|
37956
37966
|
o ? n = ft.tuple(s).rest(o) : n = ft.tuple(s), typeof t.minItems == "number" && (n = n.check(ft.minLength(t.minItems))), typeof t.maxItems == "number" && (n = n.check(ft.maxLength(t.maxItems)));
|
|
37957
37967
|
} else if (a !== void 0) {
|
|
37958
|
-
const s =
|
|
37968
|
+
const s = fr(a, e);
|
|
37959
37969
|
let o = ft.array(s);
|
|
37960
37970
|
typeof t.minItems == "number" && (o = o.min(t.minItems)), typeof t.maxItems == "number" && (o = o.max(t.maxItems)), n = o;
|
|
37961
37971
|
} else
|
|
@@ -37967,27 +37977,27 @@ function ww(t, e) {
|
|
|
37967
37977
|
}
|
|
37968
37978
|
return n;
|
|
37969
37979
|
}
|
|
37970
|
-
function
|
|
37980
|
+
function fr(t, e) {
|
|
37971
37981
|
if (typeof t == "boolean")
|
|
37972
37982
|
return t ? ft.any() : ft.never();
|
|
37973
37983
|
let r = ww(t, e);
|
|
37974
37984
|
const n = t.type || t.enum !== void 0 || t.const !== void 0;
|
|
37975
37985
|
if (t.anyOf && Array.isArray(t.anyOf)) {
|
|
37976
|
-
const o = t.anyOf.map((l) =>
|
|
37986
|
+
const o = t.anyOf.map((l) => fr(l, e)), u = ft.union(o);
|
|
37977
37987
|
r = n ? ft.intersection(r, u) : u;
|
|
37978
37988
|
}
|
|
37979
37989
|
if (t.oneOf && Array.isArray(t.oneOf)) {
|
|
37980
|
-
const o = t.oneOf.map((l) =>
|
|
37990
|
+
const o = t.oneOf.map((l) => fr(l, e)), u = ft.xor(o);
|
|
37981
37991
|
r = n ? ft.intersection(r, u) : u;
|
|
37982
37992
|
}
|
|
37983
37993
|
if (t.allOf && Array.isArray(t.allOf))
|
|
37984
37994
|
if (t.allOf.length === 0)
|
|
37985
37995
|
r = n ? r : ft.any();
|
|
37986
37996
|
else {
|
|
37987
|
-
let o = n ? r :
|
|
37997
|
+
let o = n ? r : fr(t.allOf[0], e);
|
|
37988
37998
|
const u = n ? 0 : 1;
|
|
37989
37999
|
for (let l = u; l < t.allOf.length; l++)
|
|
37990
|
-
o = ft.intersection(o,
|
|
38000
|
+
o = ft.intersection(o, fr(t.allOf[l], e));
|
|
37991
38001
|
r = o;
|
|
37992
38002
|
}
|
|
37993
38003
|
t.nullable === !0 && e.version === "openapi-3.0" && (r = ft.nullable(r)), t.readOnly === !0 && (r = ft.readonly(r)), t.default !== void 0 && (r = r.default(t.default));
|
|
@@ -38018,7 +38028,7 @@ function jD(t, e) {
|
|
|
38018
38028
|
rootSchema: r,
|
|
38019
38029
|
registry: e?.registry ?? Qr
|
|
38020
38030
|
};
|
|
38021
|
-
return
|
|
38031
|
+
return fr(r, a);
|
|
38022
38032
|
}
|
|
38023
38033
|
var _w = {};
|
|
38024
38034
|
Xi(_w, {
|
|
@@ -38043,7 +38053,7 @@ function HD(t) {
|
|
|
38043
38053
|
function qD(t) {
|
|
38044
38054
|
return /* @__PURE__ */ Gv(jl, t);
|
|
38045
38055
|
}
|
|
38046
|
-
|
|
38056
|
+
nr(cv());
|
|
38047
38057
|
var He = {
|
|
38048
38058
|
DEFAULTS: {
|
|
38049
38059
|
width: 800,
|
|
@@ -39462,7 +39472,7 @@ var $ = class extends Qi {
|
|
|
39462
39472
|
function Tr(t, e, r) {
|
|
39463
39473
|
return e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
|
|
39464
39474
|
}
|
|
39465
|
-
function
|
|
39475
|
+
function ar(t, e, r, n) {
|
|
39466
39476
|
var i = arguments.length, a = i < 3 ? e : n === null ? n = Object.getOwnPropertyDescriptor(e, r) : n, s;
|
|
39467
39477
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(t, e, r, n);
|
|
39468
39478
|
else for (var o = t.length - 1; o >= 0; o--) (s = t[o]) && (a = (i < 3 ? s(a) : i > 3 ? s(e, r, a) : s(e, r)) || a);
|
|
@@ -39525,7 +39535,7 @@ var Nu = "en";
|
|
|
39525
39535
|
function uN(t = "en") {
|
|
39526
39536
|
Nu = t;
|
|
39527
39537
|
}
|
|
39528
|
-
function
|
|
39538
|
+
function sr(t, e, r) {
|
|
39529
39539
|
if (r.get) {
|
|
39530
39540
|
let n = r.get;
|
|
39531
39541
|
r.get = function() {
|
|
@@ -44428,11 +44438,11 @@ var hd = class {
|
|
|
44428
44438
|
]), this.uvs && this.uvs.version !== 14 && (this.uvs = null);
|
|
44429
44439
|
}
|
|
44430
44440
|
};
|
|
44431
|
-
|
|
44432
|
-
|
|
44441
|
+
ar([
|
|
44442
|
+
sr
|
|
44433
44443
|
], hd.prototype, "getCharacterSet", null);
|
|
44434
|
-
|
|
44435
|
-
|
|
44444
|
+
ar([
|
|
44445
|
+
sr
|
|
44436
44446
|
], hd.prototype, "codePointsForGlyph", null);
|
|
44437
44447
|
var _T = class {
|
|
44438
44448
|
process(t, e) {
|
|
@@ -45452,8 +45462,8 @@ var Cs = class {
|
|
|
45452
45462
|
this.table = t;
|
|
45453
45463
|
}
|
|
45454
45464
|
};
|
|
45455
|
-
|
|
45456
|
-
|
|
45465
|
+
ar([
|
|
45466
|
+
sr
|
|
45457
45467
|
], Cs.prototype, "glyphsForValue", null);
|
|
45458
45468
|
var BT = 0, um = 0, lm = 1, cm = 2, IT = 16384, TT = class {
|
|
45459
45469
|
process(t, e, r) {
|
|
@@ -45644,8 +45654,8 @@ var BT = 0, um = 0, lm = 1, cm = 2, IT = 16384, TT = class {
|
|
|
45644
45654
|
this.processIndicRearragement = this.processIndicRearragement.bind(this), this.processContextualSubstitution = this.processContextualSubstitution.bind(this), this.processLigature = this.processLigature.bind(this), this.processNoncontextualSubstitutions = this.processNoncontextualSubstitutions.bind(this), this.processGlyphInsertion = this.processGlyphInsertion.bind(this), this.font = t, this.morx = t.morx, this.inputCache = null;
|
|
45645
45655
|
}
|
|
45646
45656
|
};
|
|
45647
|
-
|
|
45648
|
-
|
|
45657
|
+
ar([
|
|
45658
|
+
sr
|
|
45649
45659
|
], l2.prototype, "getStateMachine", null);
|
|
45650
45660
|
function mr(t, e, r, n = !1, i = !1) {
|
|
45651
45661
|
let a = t.splice(r[0] - (r[1] - 1), r[1]);
|
|
@@ -48221,23 +48231,23 @@ var os = [
|
|
|
48221
48231
|
this.id = t, this.codePoints = e, this._font = r, this.isMark = this.codePoints.length > 0 && this.codePoints.every(Mw), this.isLigature = this.codePoints.length > 1;
|
|
48222
48232
|
}
|
|
48223
48233
|
};
|
|
48224
|
-
|
|
48225
|
-
|
|
48234
|
+
ar([
|
|
48235
|
+
sr
|
|
48226
48236
|
], Bi.prototype, "cbox", null);
|
|
48227
|
-
|
|
48228
|
-
|
|
48237
|
+
ar([
|
|
48238
|
+
sr
|
|
48229
48239
|
], Bi.prototype, "bbox", null);
|
|
48230
|
-
|
|
48231
|
-
|
|
48240
|
+
ar([
|
|
48241
|
+
sr
|
|
48232
48242
|
], Bi.prototype, "path", null);
|
|
48233
|
-
|
|
48234
|
-
|
|
48243
|
+
ar([
|
|
48244
|
+
sr
|
|
48235
48245
|
], Bi.prototype, "advanceWidth", null);
|
|
48236
|
-
|
|
48237
|
-
|
|
48246
|
+
ar([
|
|
48247
|
+
sr
|
|
48238
48248
|
], Bi.prototype, "advanceHeight", null);
|
|
48239
|
-
|
|
48240
|
-
|
|
48249
|
+
ar([
|
|
48250
|
+
sr
|
|
48241
48251
|
], Bi.prototype, "name", null);
|
|
48242
48252
|
var _m = new $({
|
|
48243
48253
|
numberOfContours: Q,
|
|
@@ -49535,26 +49545,26 @@ var _2 = class {
|
|
|
49535
49545
|
}
|
|
49536
49546
|
}
|
|
49537
49547
|
};
|
|
49538
|
-
|
|
49539
|
-
|
|
49548
|
+
ar([
|
|
49549
|
+
sr
|
|
49540
49550
|
], Br.prototype, "bbox", null);
|
|
49541
|
-
|
|
49542
|
-
|
|
49551
|
+
ar([
|
|
49552
|
+
sr
|
|
49543
49553
|
], Br.prototype, "_cmapProcessor", null);
|
|
49544
|
-
|
|
49545
|
-
|
|
49554
|
+
ar([
|
|
49555
|
+
sr
|
|
49546
49556
|
], Br.prototype, "characterSet", null);
|
|
49547
|
-
|
|
49548
|
-
|
|
49557
|
+
ar([
|
|
49558
|
+
sr
|
|
49549
49559
|
], Br.prototype, "_layoutEngine", null);
|
|
49550
|
-
|
|
49551
|
-
|
|
49560
|
+
ar([
|
|
49561
|
+
sr
|
|
49552
49562
|
], Br.prototype, "variationAxes", null);
|
|
49553
|
-
|
|
49554
|
-
|
|
49563
|
+
ar([
|
|
49564
|
+
sr
|
|
49555
49565
|
], Br.prototype, "namedVariations", null);
|
|
49556
|
-
|
|
49557
|
-
|
|
49566
|
+
ar([
|
|
49567
|
+
sr
|
|
49558
49568
|
], Br.prototype, "_variationProcessor", null);
|
|
49559
49569
|
var NM = new $({
|
|
49560
49570
|
tag: new me(4),
|
|
@@ -50334,8 +50344,8 @@ function KM() {
|
|
|
50334
50344
|
wt(Nt);
|
|
50335
50345
|
else {
|
|
50336
50346
|
Nt = ae;
|
|
50337
|
-
var pt = ae.split(">"),
|
|
50338
|
-
|
|
50347
|
+
var pt = ae.split(">"), Me = pt[0], Je = pt[1];
|
|
50348
|
+
Me = String.fromCodePoint(et += parseInt(Me, yt)), Je = String.fromCodePoint(et += parseInt(Je, yt)), Yt.set(Me, Je), nt && St.set(Je, Me);
|
|
50339
50349
|
}
|
|
50340
50350
|
}), { map: Yt, reverseMap: St };
|
|
50341
50351
|
}
|
|
@@ -50364,13 +50374,13 @@ function KM() {
|
|
|
50364
50374
|
var xr = et[_r];
|
|
50365
50375
|
et[_r] = si, St.set(xr, St.get(xr) - 1), xr & o && St.set(o, St.get(o) - 1), St.set(si, (St.get(si) || 0) + 1), si & o && St.set(o, (St.get(o) || 0) + 1);
|
|
50366
50376
|
}
|
|
50367
|
-
for (var wt = new Uint8Array(X.length), ae = /* @__PURE__ */ new Map(), ce = [], pt = null,
|
|
50377
|
+
for (var wt = new Uint8Array(X.length), ae = /* @__PURE__ */ new Map(), ce = [], pt = null, Me = 0; Me < X.length; Me++)
|
|
50368
50378
|
pt || ce.push(pt = {
|
|
50369
|
-
start:
|
|
50379
|
+
start: Me,
|
|
50370
50380
|
end: X.length - 1,
|
|
50371
50381
|
// 3.3.1 P2-P3: Determine the paragraph level
|
|
50372
|
-
level: nt === "rtl" ? 1 : nt === "ltr" ? 0 : Pd(
|
|
50373
|
-
}), et[
|
|
50382
|
+
level: nt === "rtl" ? 1 : nt === "ltr" ? 0 : Pd(Me, !1)
|
|
50383
|
+
}), et[Me] & J && (pt.end = Me, pt = null);
|
|
50374
50384
|
for (var Je = Wt | Lt | Dt | st | a | oe | ue | J, ve = function(_r) {
|
|
50375
50385
|
return _r + (_r & 1 ? 1 : 2);
|
|
50376
50386
|
}, Pr = function(_r) {
|
|
@@ -50383,7 +50393,7 @@ function KM() {
|
|
|
50383
50393
|
//0=neutral, 1=L, 2=R
|
|
50384
50394
|
_isolate: 0
|
|
50385
50395
|
//bool
|
|
50386
|
-
}], Ht = void 0,
|
|
50396
|
+
}], Ht = void 0, or = 0, dr = 0, qe = 0;
|
|
50387
50397
|
St.clear();
|
|
50388
50398
|
for (var Ce = pt.start; Ce <= pt.end; Ce++) {
|
|
50389
50399
|
var Se = et[Ce];
|
|
@@ -50391,31 +50401,31 @@ function KM() {
|
|
|
50391
50401
|
if (Se & (Wt | Lt)) {
|
|
50392
50402
|
wt[Ce] = Ht._level;
|
|
50393
50403
|
var Nn = (Se === Wt ? Pr : ve)(Ht._level);
|
|
50394
|
-
Nn <= yt && !
|
|
50404
|
+
Nn <= yt && !or && !dr ? Kt.push({
|
|
50395
50405
|
_level: Nn,
|
|
50396
50406
|
_override: 0,
|
|
50397
50407
|
_isolate: 0
|
|
50398
|
-
}) :
|
|
50408
|
+
}) : or || dr++;
|
|
50399
50409
|
} else if (Se & (Dt | st)) {
|
|
50400
50410
|
wt[Ce] = Ht._level;
|
|
50401
50411
|
var Ii = (Se === Dt ? Pr : ve)(Ht._level);
|
|
50402
|
-
Ii <= yt && !
|
|
50412
|
+
Ii <= yt && !or && !dr ? Kt.push({
|
|
50403
50413
|
_level: Ii,
|
|
50404
50414
|
_override: Se & Dt ? O : N,
|
|
50405
50415
|
_isolate: 0
|
|
50406
|
-
}) :
|
|
50416
|
+
}) : or || dr++;
|
|
50407
50417
|
} else if (Se & a) {
|
|
50408
50418
|
Se & Ue && (Se = Pd(Ce + 1, !0) === 1 ? ee : le), wt[Ce] = Ht._level, Ht._override && Nt(Ce, Ht._override);
|
|
50409
50419
|
var Ti = (Se === ee ? Pr : ve)(Ht._level);
|
|
50410
|
-
Ti <= yt &&
|
|
50420
|
+
Ti <= yt && or === 0 && dr === 0 ? (qe++, Kt.push({
|
|
50411
50421
|
_level: Ti,
|
|
50412
50422
|
_override: 0,
|
|
50413
50423
|
_isolate: 1,
|
|
50414
50424
|
_isolInitIndex: Ce
|
|
50415
|
-
})) :
|
|
50425
|
+
})) : or++;
|
|
50416
50426
|
} else if (Se & oe) {
|
|
50417
|
-
if (
|
|
50418
|
-
|
|
50427
|
+
if (or > 0)
|
|
50428
|
+
or--;
|
|
50419
50429
|
else if (qe > 0) {
|
|
50420
50430
|
for (dr = 0; !Kt[Kt.length - 1]._isolate; )
|
|
50421
50431
|
Kt.pop();
|
|
@@ -50423,14 +50433,14 @@ function KM() {
|
|
|
50423
50433
|
tn != null && (ae.set(tn, Ce), ae.set(Ce, tn)), Kt.pop(), qe--;
|
|
50424
50434
|
}
|
|
50425
50435
|
Ht = Kt[Kt.length - 1], wt[Ce] = Ht._level, Ht._override && Nt(Ce, Ht._override);
|
|
50426
|
-
} else Se & ue ? (
|
|
50436
|
+
} else Se & ue ? (or === 0 && (dr > 0 ? dr-- : !Ht._isolate && Kt.length > 1 && (Kt.pop(), Ht = Kt[Kt.length - 1])), wt[Ce] = Ht._level) : Se & J && (wt[Ce] = pt.level);
|
|
50427
50437
|
else
|
|
50428
50438
|
wt[Ce] = Ht._level, Ht._override && Se !== Et && Nt(Ce, Ht._override);
|
|
50429
50439
|
}
|
|
50430
50440
|
for (var jr = [], pr = null, Mr = pt.start; Mr <= pt.end; Mr++) {
|
|
50431
|
-
var
|
|
50432
|
-
if (!(
|
|
50433
|
-
var Pi = wt[Mr], Bn =
|
|
50441
|
+
var ur = et[Mr];
|
|
50442
|
+
if (!(ur & u)) {
|
|
50443
|
+
var Pi = wt[Mr], Bn = ur & a, T = ur === oe;
|
|
50434
50444
|
pr && Pi === pr._level ? (pr._end = Mr, pr._endsWithIsolInit = Bn) : jr.push(pr = {
|
|
50435
50445
|
_start: Mr,
|
|
50436
50446
|
_end: Mr,
|
|
@@ -50457,18 +50467,18 @@ function KM() {
|
|
|
50457
50467
|
sa = wt[rn];
|
|
50458
50468
|
break;
|
|
50459
50469
|
}
|
|
50460
|
-
var Pn = ni[ni.length - 1],
|
|
50470
|
+
var Pn = ni[ni.length - 1], lr = wt[Pn], cr = pt.level;
|
|
50461
50471
|
if (!(et[Pn] & a)) {
|
|
50462
50472
|
for (var wr = Pn + 1; wr <= pt.end; wr++)
|
|
50463
50473
|
if (!(et[wr] & u)) {
|
|
50464
|
-
|
|
50474
|
+
cr = wt[wr];
|
|
50465
50475
|
break;
|
|
50466
50476
|
}
|
|
50467
50477
|
}
|
|
50468
50478
|
dt.push({
|
|
50469
50479
|
_seqIndices: ni,
|
|
50470
50480
|
_sosType: Math.max(sa, Tn) % 2 ? O : N,
|
|
50471
|
-
_eosType: Math.max(
|
|
50481
|
+
_eosType: Math.max(cr, lr) % 2 ? O : N
|
|
50472
50482
|
});
|
|
50473
50483
|
}
|
|
50474
50484
|
}
|
|
@@ -50695,11 +50705,11 @@ function KM() {
|
|
|
50695
50705
|
if (wt < ae) {
|
|
50696
50706
|
for (var ce = nt.levels.slice(wt, ae + 1), pt = ae; pt >= wt && m(X[pt]) & l; pt--)
|
|
50697
50707
|
ce[pt] = Nt.level;
|
|
50698
|
-
for (var
|
|
50708
|
+
for (var Me = Nt.level, Je = 1 / 0, ve = 0; ve < ce.length; ve++) {
|
|
50699
50709
|
var Pr = ce[ve];
|
|
50700
|
-
Pr >
|
|
50710
|
+
Pr > Me && (Me = Pr), Pr < Je && (Je = Pr | 1);
|
|
50701
50711
|
}
|
|
50702
|
-
for (var Ve =
|
|
50712
|
+
for (var Ve = Me; Ve >= Je; Ve--)
|
|
50703
50713
|
for (var Kt = 0; Kt < ce.length; Kt++)
|
|
50704
50714
|
if (ce[Kt] >= Ve) {
|
|
50705
50715
|
for (var Ht = Kt; Kt + 1 < ce.length && ce[Kt + 1] >= Ve; )
|
|
@@ -50719,8 +50729,8 @@ function KM() {
|
|
|
50719
50729
|
for (var Yt = gt(X, nt, yt, et), St = [], Nt = 0; Nt < X.length; Nt++)
|
|
50720
50730
|
St[Nt] = Nt;
|
|
50721
50731
|
return Yt.forEach(function(wt) {
|
|
50722
|
-
for (var ae = wt[0], ce = wt[1], pt = St.slice(ae, ce + 1),
|
|
50723
|
-
St[ce -
|
|
50732
|
+
for (var ae = wt[0], ce = wt[1], pt = St.slice(ae, ce + 1), Me = pt.length; Me--; )
|
|
50733
|
+
St[ce - Me] = pt[Me];
|
|
50724
50734
|
}), St;
|
|
50725
50735
|
}
|
|
50726
50736
|
return e.closingToOpeningBracket = k, e.getBidiCharType = m, e.getBidiCharTypeName = d, e.getCanonicalBracket = x, e.getEmbeddingLevels = W, e.getMirroredCharacter = mt, e.getMirroredCharactersMap = Ct, e.getReorderSegments = gt, e.getReorderedIndices = Bt, e.getReorderedString = At, e.openingToClosingBracket = _, Object.defineProperty(e, "__esModule", { value: !0 }), e;
|
|
@@ -53945,7 +53955,7 @@ async function WV(t = {}) {
|
|
|
53945
53955
|
};
|
|
53946
53956
|
}
|
|
53947
53957
|
const Wm = 1500, Ym = 5e3, YV = 1e4;
|
|
53948
|
-
class ks extends
|
|
53958
|
+
class ks extends ir {
|
|
53949
53959
|
fontRegistry = null;
|
|
53950
53960
|
layoutEngine = null;
|
|
53951
53961
|
captionLayout = null;
|
|
@@ -53964,7 +53974,7 @@ class ks extends hr {
|
|
|
53964
53974
|
resolvedPauseThreshold = 500;
|
|
53965
53975
|
constructor(e, r) {
|
|
53966
53976
|
const { fit: n, ...i } = r;
|
|
53967
|
-
super(e, i,
|
|
53977
|
+
super(e, i, Ne.RichCaption);
|
|
53968
53978
|
}
|
|
53969
53979
|
static createPlaceholderWords(e) {
|
|
53970
53980
|
const r = ["Your", "captions", "will", "appear", "here"], a = r.length * 400 + 600, s = r.length * 400, o = Math.max(1, Math.ceil((e - s) / a) + 1), u = [];
|
|
@@ -54261,7 +54271,7 @@ class ks extends hr {
|
|
|
54261
54271
|
return !0;
|
|
54262
54272
|
}
|
|
54263
54273
|
}
|
|
54264
|
-
class er extends
|
|
54274
|
+
class er extends ir {
|
|
54265
54275
|
static PREVIEW_FPS = 60;
|
|
54266
54276
|
/** CSS font-weight string → numeric value. Extends WEIGHT_MODIFIERS (@core/fonts/font-config.ts) with CSS aliases. */
|
|
54267
54277
|
static NAMED_WEIGHTS = {
|
|
@@ -54313,7 +54323,7 @@ class er extends hr {
|
|
|
54313
54323
|
}
|
|
54314
54324
|
constructor(e, r) {
|
|
54315
54325
|
const { fit: n, ...i } = r;
|
|
54316
|
-
super(e, i,
|
|
54326
|
+
super(e, i, Ne.RichText);
|
|
54317
54327
|
}
|
|
54318
54328
|
resolveFontWeight(e, r) {
|
|
54319
54329
|
const n = e.font?.weight;
|
|
@@ -54383,7 +54393,7 @@ class er extends hr {
|
|
|
54383
54393
|
if (!n)
|
|
54384
54394
|
return;
|
|
54385
54395
|
const i = er.getFontSourceCacheKey(n), a = er.fontCapabilityCache.get(i), s = a ?? this.createFontCapabilityCheckPromise(n);
|
|
54386
|
-
a || er.fontCapabilityCache.set(i, s), this.fontSupportsBold = await s, r && this.edit.getInternalEvents().emit(
|
|
54396
|
+
a || er.fontCapabilityCache.set(i, s), this.fontSupportsBold = await s, r && this.edit.getInternalEvents().emit(Fe.FontCapabilitiesChanged, { supportsBold: this.fontSupportsBold });
|
|
54387
54397
|
}
|
|
54388
54398
|
supportsBold() {
|
|
54389
54399
|
return this.fontSupportsBold;
|
|
@@ -54576,11 +54586,11 @@ class er extends hr {
|
|
|
54576
54586
|
return this.cachedFrames.size;
|
|
54577
54587
|
}
|
|
54578
54588
|
}
|
|
54579
|
-
class HV extends
|
|
54589
|
+
class HV extends ir {
|
|
54580
54590
|
shape;
|
|
54581
54591
|
shapeBackground;
|
|
54582
54592
|
constructor(e, r) {
|
|
54583
|
-
super(e, r,
|
|
54593
|
+
super(e, r, Ne.Shape), this.shape = null, this.shapeBackground = null;
|
|
54584
54594
|
}
|
|
54585
54595
|
async load() {
|
|
54586
54596
|
await super.load();
|
|
@@ -54636,7 +54646,7 @@ class HV extends hr {
|
|
|
54636
54646
|
return 1;
|
|
54637
54647
|
}
|
|
54638
54648
|
}
|
|
54639
|
-
class Li extends
|
|
54649
|
+
class Li extends ir {
|
|
54640
54650
|
static resvgInitialized = !1;
|
|
54641
54651
|
static resvgInitPromise = null;
|
|
54642
54652
|
texture = null;
|
|
@@ -54645,7 +54655,7 @@ class Li extends hr {
|
|
|
54645
54655
|
renderedHeight = 0;
|
|
54646
54656
|
pendingRender = null;
|
|
54647
54657
|
constructor(e, r) {
|
|
54648
|
-
super(e, r,
|
|
54658
|
+
super(e, r, Ne.Svg);
|
|
54649
54659
|
}
|
|
54650
54660
|
static async initializeResvg() {
|
|
54651
54661
|
if (!Li.resvgInitialized) {
|
|
@@ -55140,13 +55150,13 @@ class xi {
|
|
|
55140
55150
|
};
|
|
55141
55151
|
}
|
|
55142
55152
|
}
|
|
55143
|
-
class Ca extends
|
|
55153
|
+
class Ca extends ir {
|
|
55144
55154
|
static loadedFonts = /* @__PURE__ */ new Set();
|
|
55145
55155
|
background = null;
|
|
55146
55156
|
text = null;
|
|
55147
55157
|
textEditor = null;
|
|
55148
55158
|
constructor(e, r) {
|
|
55149
|
-
super(e, r,
|
|
55159
|
+
super(e, r, Ne.Text);
|
|
55150
55160
|
}
|
|
55151
55161
|
async load() {
|
|
55152
55162
|
await super.load();
|
|
@@ -55255,11 +55265,11 @@ class Ca extends hr {
|
|
|
55255
55265
|
Ca.loadedFonts.clear();
|
|
55256
55266
|
}
|
|
55257
55267
|
}
|
|
55258
|
-
class qV extends
|
|
55268
|
+
class qV extends ir {
|
|
55259
55269
|
aiOverlay = null;
|
|
55260
55270
|
lastPrompt = "";
|
|
55261
55271
|
constructor(e, r) {
|
|
55262
|
-
super(e, r,
|
|
55272
|
+
super(e, r, Ne.TextToImage);
|
|
55263
55273
|
}
|
|
55264
55274
|
async load() {
|
|
55265
55275
|
await super.load();
|
|
@@ -55292,9 +55302,9 @@ class qV extends hr {
|
|
|
55292
55302
|
this.aiOverlay?.dispose(), this.aiOverlay = null, super.dispose();
|
|
55293
55303
|
}
|
|
55294
55304
|
}
|
|
55295
|
-
class XV extends
|
|
55305
|
+
class XV extends ir {
|
|
55296
55306
|
constructor(e, r) {
|
|
55297
|
-
super(e, r,
|
|
55307
|
+
super(e, r, Ne.TextToSpeech);
|
|
55298
55308
|
}
|
|
55299
55309
|
async load() {
|
|
55300
55310
|
await super.load(), this.configureKeyframes();
|
|
@@ -55306,7 +55316,7 @@ class XV extends hr {
|
|
|
55306
55316
|
return { width: 0, height: 0 };
|
|
55307
55317
|
}
|
|
55308
55318
|
}
|
|
55309
|
-
class KV extends
|
|
55319
|
+
class KV extends ir {
|
|
55310
55320
|
texture;
|
|
55311
55321
|
sprite;
|
|
55312
55322
|
placeholder;
|
|
@@ -55316,7 +55326,7 @@ class KV extends hr {
|
|
|
55316
55326
|
activeSyncTimer;
|
|
55317
55327
|
skipVideoUpdate;
|
|
55318
55328
|
constructor(e, r) {
|
|
55319
|
-
super(e, r,
|
|
55329
|
+
super(e, r, Ne.Video), this.texture = null, this.sprite = null, this.placeholder = null, this.isPlaying = !1;
|
|
55320
55330
|
const n = this.clipConfiguration.asset;
|
|
55321
55331
|
this.volumeKeyframeBuilder = new Ea(n.volume ?? 1, this.getLength()), this.syncTimer = 0, this.activeSyncTimer = 0, this.skipVideoUpdate = !1;
|
|
55322
55332
|
}
|
|
@@ -56265,7 +56275,7 @@ class _O {
|
|
|
56265
56275
|
*/
|
|
56266
56276
|
onPlayerLoaded(e) {
|
|
56267
56277
|
const { player: r, trackIndex: n } = e;
|
|
56268
|
-
if (r.playerType !==
|
|
56278
|
+
if (r.playerType !== Ne.Luma)
|
|
56269
56279
|
return;
|
|
56270
56280
|
const i = r, a = i.getSprite();
|
|
56271
56281
|
if (!a?.texture) {
|
|
@@ -56275,7 +56285,7 @@ class _O {
|
|
|
56275
56285
|
const s = this.getTracks();
|
|
56276
56286
|
if (n >= s.length)
|
|
56277
56287
|
return;
|
|
56278
|
-
const u = s[n].filter((c) => c.playerType !==
|
|
56288
|
+
const u = s[n].filter((c) => c.playerType !== Ne.Luma);
|
|
56279
56289
|
u.length === 0 || this.activeLumaMasks.find((c) => c.lumaPlayer === i) || (this.setupLumaMask(i, a.texture, u[0]), i.getContainer().parent?.removeChild(i.getContainer()));
|
|
56280
56290
|
}
|
|
56281
56291
|
setupLumaMask(e, r, n) {
|
|
@@ -56312,10 +56322,10 @@ class _O {
|
|
|
56312
56322
|
}
|
|
56313
56323
|
}
|
|
56314
56324
|
setupEventListeners() {
|
|
56315
|
-
this.events.on(
|
|
56325
|
+
this.events.on(Fe.PlayerLoaded, this.onPlayerLoadedBound), this.events.on(Ot.ClipUpdated, this.onClipChangedBound), this.events.on(Fe.PlayerMovedBetweenTracks, this.onClipChangedBound);
|
|
56316
56326
|
}
|
|
56317
56327
|
removeEventListeners() {
|
|
56318
|
-
this.events.off(
|
|
56328
|
+
this.events.off(Fe.PlayerLoaded, this.onPlayerLoadedBound), this.events.off(Ot.ClipUpdated, this.onClipChangedBound), this.events.off(Fe.PlayerMovedBetweenTracks, this.onClipChangedBound);
|
|
56319
56329
|
}
|
|
56320
56330
|
processPendingMaskCleanup() {
|
|
56321
56331
|
for (let e = this.pendingMaskCleanup.length - 1; e >= 0; e -= 1) {
|
|
@@ -56337,7 +56347,7 @@ class _O {
|
|
|
56337
56347
|
if (!this.getCanvas()) return;
|
|
56338
56348
|
const r = this.getTracks();
|
|
56339
56349
|
for (let n = 0; n < r.length; n += 1) {
|
|
56340
|
-
const i = r[n], a = i.find((u) => u.playerType ===
|
|
56350
|
+
const i = r[n], a = i.find((u) => u.playerType === Ne.Luma), s = i.filter((u) => u.playerType !== Ne.Luma);
|
|
56341
56351
|
a && a.getContainer().parent?.removeChild(a.getContainer());
|
|
56342
56352
|
const o = a && this.activeLumaMasks.find((u) => u.lumaPlayer === a);
|
|
56343
56353
|
if (a && !o && s.length > 0) {
|
|
@@ -57615,7 +57625,7 @@ class Aa {
|
|
|
57615
57625
|
const Jm = /* @__PURE__ */ new Set(["asset", "start", "length", "id"]), YO = /* @__PURE__ */ new Set(["text-to-image", "image-to-video", "text-to-speech"]);
|
|
57616
57626
|
class HO {
|
|
57617
57627
|
constructor(e) {
|
|
57618
|
-
this.edit = e, this.edit.getInternalEvents().on(
|
|
57628
|
+
this.edit = e, this.edit.getInternalEvents().on(Fe.Resolved, this.onResolved);
|
|
57619
57629
|
}
|
|
57620
57630
|
isReconciling = !1;
|
|
57621
57631
|
/**
|
|
@@ -57712,7 +57722,7 @@ class HO {
|
|
|
57712
57722
|
a.layer = n + 1, a.clipId = r, this.edit.registerPlayerByClipId(r, a), this.edit.addPlayerToTracksArray(n, a), this.edit.addPlayerToContainer(n, a);
|
|
57713
57723
|
const s = e.asset?.type ?? "unknown";
|
|
57714
57724
|
return a.load().then(() => {
|
|
57715
|
-
this.edit.getInternalEvents().emit(
|
|
57725
|
+
this.edit.getInternalEvents().emit(Fe.PlayerLoaded, {
|
|
57716
57726
|
player: a,
|
|
57717
57727
|
trackIndex: n,
|
|
57718
57728
|
clipIndex: i
|
|
@@ -57840,7 +57850,7 @@ class HO {
|
|
|
57840
57850
|
* Clean up event subscriptions.
|
|
57841
57851
|
*/
|
|
57842
57852
|
dispose() {
|
|
57843
|
-
this.edit.getInternalEvents().off(
|
|
57853
|
+
this.edit.getInternalEvents().off(Fe.Resolved, this.onResolved);
|
|
57844
57854
|
}
|
|
57845
57855
|
}
|
|
57846
57856
|
const qO = /* @__PURE__ */ new Set(["text", "src"]);
|
|
@@ -58155,11 +58165,11 @@ class Us {
|
|
|
58155
58165
|
}
|
|
58156
58166
|
/* @internal Update canvas visuals after size change (viewport mask, background, zoom). */
|
|
58157
58167
|
updateCanvasForSize() {
|
|
58158
|
-
this.internalEvents.emit(
|
|
58168
|
+
this.internalEvents.emit(Fe.ViewportSizeChanged, {
|
|
58159
58169
|
width: this.size.width,
|
|
58160
58170
|
height: this.size.height,
|
|
58161
58171
|
backgroundColor: this.backgroundColor
|
|
58162
|
-
}), this.internalEvents.emit(
|
|
58172
|
+
}), this.internalEvents.emit(Fe.ViewportNeedsZoomToFit);
|
|
58163
58173
|
}
|
|
58164
58174
|
play() {
|
|
58165
58175
|
this.isPlaying = !0, this.internalEvents.emit(Ot.PlaybackPlay);
|
|
@@ -58189,11 +58199,11 @@ class Us {
|
|
|
58189
58199
|
try {
|
|
58190
58200
|
this.lastResolved = null, this.document = new Aa(e);
|
|
58191
58201
|
const s = this.document.getResolution(), o = this.document.getAspectRatio();
|
|
58192
|
-
this.size = s ? ju(s, o) : this.document.getSize(), this.backgroundColor = this.document.getBackground() ?? "#000000", this.internalEvents.emit(
|
|
58202
|
+
this.size = s ? ju(s, o) : this.document.getSize(), this.backgroundColor = this.document.getBackground() ?? "#000000", this.internalEvents.emit(Fe.ViewportSizeChanged, {
|
|
58193
58203
|
width: this.size.width,
|
|
58194
58204
|
height: this.size.height,
|
|
58195
58205
|
backgroundColor: this.backgroundColor
|
|
58196
|
-
}), this.internalEvents.emit(
|
|
58206
|
+
}), this.internalEvents.emit(Fe.ViewportNeedsZoomToFit), this.clearClips(), await this.initializeFromDocument("loadEdit");
|
|
58197
58207
|
} catch (s) {
|
|
58198
58208
|
throw this.document = r, this.lastResolved = n, this.size = i, this.backgroundColor = a, s;
|
|
58199
58209
|
}
|
|
@@ -58283,7 +58293,7 @@ class Us {
|
|
|
58283
58293
|
resolve() {
|
|
58284
58294
|
return this.lastResolved = Qm(this.document, {
|
|
58285
58295
|
mergeFields: this.mergeFieldService
|
|
58286
|
-
}), this.internalEvents.emit(
|
|
58296
|
+
}), this.internalEvents.emit(Fe.Resolved, { edit: this.lastResolved }), this.lastResolved;
|
|
58287
58297
|
}
|
|
58288
58298
|
/** @internal Resolve a single clip and update its player. */
|
|
58289
58299
|
resolveClip(e) {
|
|
@@ -58481,7 +58491,7 @@ class Us {
|
|
|
58481
58491
|
console.warn(`Cannot remove non-empty track ${e}`);
|
|
58482
58492
|
return;
|
|
58483
58493
|
}
|
|
58484
|
-
this.tracks.splice(e, 1), this.internalEvents.emit(
|
|
58494
|
+
this.tracks.splice(e, 1), this.internalEvents.emit(Fe.TrackContainerRemoved, { trackIndex: e });
|
|
58485
58495
|
for (let n = e; n < this.tracks.length; n += 1)
|
|
58486
58496
|
for (const i of this.tracks[n])
|
|
58487
58497
|
i.layer = n + 1;
|
|
@@ -58519,8 +58529,8 @@ class Us {
|
|
|
58519
58529
|
if (!n) return;
|
|
58520
58530
|
const i = n[r];
|
|
58521
58531
|
if (!i) return;
|
|
58522
|
-
if (i.playerType !==
|
|
58523
|
-
const o = n.findIndex((u) => u.playerType ===
|
|
58532
|
+
if (i.playerType !== Ne.Luma) {
|
|
58533
|
+
const o = n.findIndex((u) => u.playerType === Ne.Luma);
|
|
58524
58534
|
if (o !== -1) {
|
|
58525
58535
|
const u = o < r ? r - 1 : r, l = new n0(e, o);
|
|
58526
58536
|
await this.executeCommand(l);
|
|
@@ -58966,7 +58976,7 @@ class Us {
|
|
|
58966
58976
|
disposeClips() {
|
|
58967
58977
|
if (this.clipsToDispose.size !== 0) {
|
|
58968
58978
|
for (const e of this.clipsToDispose)
|
|
58969
|
-
e.playerType ===
|
|
58979
|
+
e.playerType === Ne.Luma && (this.lumaMaskController.cleanupForPlayer(e), e.clipId && this.lumaContentRelations.delete(e.clipId));
|
|
58970
58980
|
for (const e of this.clipsToDispose)
|
|
58971
58981
|
e.clipId && this.playerByClipId.delete(e.clipId);
|
|
58972
58982
|
for (const e of this.clipsToDispose)
|
|
@@ -59066,11 +59076,11 @@ class Us {
|
|
|
59066
59076
|
* @internal Used by PlayerReconciler and commands
|
|
59067
59077
|
*/
|
|
59068
59078
|
addPlayerToContainer(e, r) {
|
|
59069
|
-
this.internalEvents.emit(
|
|
59079
|
+
this.internalEvents.emit(Fe.PlayerAddedToTrack, { player: r, trackIndex: e });
|
|
59070
59080
|
}
|
|
59071
59081
|
// Move a player's container to the appropriate track container
|
|
59072
59082
|
movePlayerToTrackContainer(e, r, n) {
|
|
59073
|
-
this.internalEvents.emit(
|
|
59083
|
+
this.internalEvents.emit(Fe.PlayerMovedBetweenTracks, {
|
|
59074
59084
|
player: e,
|
|
59075
59085
|
fromTrackIndex: r,
|
|
59076
59086
|
toTrackIndex: n
|
|
@@ -59086,7 +59096,7 @@ class Us {
|
|
|
59086
59096
|
async addPlayer(e, r) {
|
|
59087
59097
|
for (; this.tracks.length <= e; )
|
|
59088
59098
|
this.tracks.push([]);
|
|
59089
|
-
this.tracks[e].push(r), this.internalEvents.emit(
|
|
59099
|
+
this.tracks[e].push(r), this.internalEvents.emit(Fe.PlayerAddedToTrack, { player: r, trackIndex: e }), await r.load(), this.updateTotalDuration();
|
|
59090
59100
|
}
|
|
59091
59101
|
/** @internal */
|
|
59092
59102
|
selectClip(e, r) {
|
|
@@ -59094,11 +59104,11 @@ class Us {
|
|
|
59094
59104
|
}
|
|
59095
59105
|
/** @internal – Visual focus without selection change or public event. */
|
|
59096
59106
|
focusClip(e, r) {
|
|
59097
|
-
this.internalEvents.emit(
|
|
59107
|
+
this.internalEvents.emit(Fe.ClipFocused, { trackIndex: e, clipIndex: r });
|
|
59098
59108
|
}
|
|
59099
59109
|
/** @internal – Clear visual focus. */
|
|
59100
59110
|
blurClip() {
|
|
59101
|
-
this.internalEvents.emit(
|
|
59111
|
+
this.internalEvents.emit(Fe.ClipBlurred);
|
|
59102
59112
|
}
|
|
59103
59113
|
/** @internal */
|
|
59104
59114
|
clearSelection() {
|
|
@@ -59278,7 +59288,7 @@ class Us {
|
|
|
59278
59288
|
return this.executeCommand(r);
|
|
59279
59289
|
}
|
|
59280
59290
|
setTimelineBackgroundInternal(e) {
|
|
59281
|
-
nk.parse(e), this.backgroundColor = e, this.document.setBackground(e), this.internalEvents.emit(
|
|
59291
|
+
nk.parse(e), this.backgroundColor = e, this.document.setBackground(e), this.internalEvents.emit(Fe.ViewportSizeChanged, {
|
|
59282
59292
|
width: this.size.width,
|
|
59283
59293
|
height: this.size.height,
|
|
59284
59294
|
backgroundColor: this.backgroundColor
|
|
@@ -59379,7 +59389,7 @@ class Us {
|
|
|
59379
59389
|
for (let r = 0; r < this.tracks.length; r += 1) {
|
|
59380
59390
|
const n = this.tracks[r];
|
|
59381
59391
|
for (const i of n)
|
|
59382
|
-
if (i.playerType ===
|
|
59392
|
+
if (i.playerType === Ne.Luma) {
|
|
59383
59393
|
const a = this.findBestContentMatch(r, i);
|
|
59384
59394
|
if (a) {
|
|
59385
59395
|
i.clipId && a.clipId && this.lumaContentRelations.set(i.clipId, a.clipId);
|
|
@@ -59400,7 +59410,7 @@ class Us {
|
|
|
59400
59410
|
const n = this.tracks[e], i = r.getStart(), a = i + r.getLength();
|
|
59401
59411
|
let s = null, o = 0;
|
|
59402
59412
|
for (const u of n)
|
|
59403
|
-
if (u.playerType !==
|
|
59413
|
+
if (u.playerType !== Ne.Luma) {
|
|
59404
59414
|
const l = u.getStart(), c = l + u.getLength(), h = $2(i, a, l, c);
|
|
59405
59415
|
h > o && (o = h, s = u);
|
|
59406
59416
|
}
|
|
@@ -59408,9 +59418,9 @@ class Us {
|
|
|
59408
59418
|
}
|
|
59409
59419
|
// ─── Intent Listeners ────────────────────────────────────────────────────────
|
|
59410
59420
|
setupIntentListeners() {
|
|
59411
|
-
this.internalEvents.on(
|
|
59421
|
+
this.internalEvents.on(Fe.CanvasClipClicked, (e) => {
|
|
59412
59422
|
this.selectPlayer(e.player);
|
|
59413
|
-
}), this.internalEvents.on(
|
|
59423
|
+
}), this.internalEvents.on(Fe.CanvasBackgroundClicked, () => {
|
|
59414
59424
|
this.clearSelection();
|
|
59415
59425
|
});
|
|
59416
59426
|
}
|
|
@@ -60293,7 +60303,7 @@ var wR = Ge({
|
|
|
60293
60303
|
oe(tt);
|
|
60294
60304
|
}
|
|
60295
60305
|
function R() {
|
|
60296
|
-
L = !0,
|
|
60306
|
+
L = !0, ur.__wasm_call_ctors();
|
|
60297
60307
|
}
|
|
60298
60308
|
function K() {
|
|
60299
60309
|
if (s.postRun)
|
|
@@ -60359,7 +60369,7 @@ var wR = Ge({
|
|
|
60359
60369
|
}
|
|
60360
60370
|
async function ee() {
|
|
60361
60371
|
function T($e, zr) {
|
|
60362
|
-
return
|
|
60372
|
+
return ur = $e.exports, s.wasmExports = ur, N = ur.memory, s.wasmMemory = N, I(), Ht = ur.__indirect_function_table, pr(ur), Et(), ur;
|
|
60363
60373
|
}
|
|
60364
60374
|
ct();
|
|
60365
60375
|
function dt($e) {
|
|
@@ -60414,7 +60424,7 @@ var wR = Ge({
|
|
|
60414
60424
|
delete Bt[T], Nt(() => jr(T, wt()));
|
|
60415
60425
|
}, dt);
|
|
60416
60426
|
return Bt[T] = { id: qt, timeout_ms: dt }, 0;
|
|
60417
|
-
}, ce = () => 2147483648, pt = (T, dt) => Math.ceil(T / dt) * dt,
|
|
60427
|
+
}, ce = () => 2147483648, pt = (T, dt) => Math.ceil(T / dt) * dt, Me = (T) => {
|
|
60418
60428
|
var dt = N.buffer.byteLength, qt = (T - dt + 65535) / 65536 | 0;
|
|
60419
60429
|
try {
|
|
60420
60430
|
return N.grow(qt), I(), 1;
|
|
@@ -60429,7 +60439,7 @@ var wR = Ge({
|
|
|
60429
60439
|
for (var fe = 1; fe <= 4; fe *= 2) {
|
|
60430
60440
|
var ie = dt * (1 + 0.2 / fe);
|
|
60431
60441
|
ie = Math.min(ie, T + 100663296);
|
|
60432
|
-
var $e = Math.min(qt, pt(Math.max(T, ie), 65536)), zr =
|
|
60442
|
+
var $e = Math.min(qt, pt(Math.max(T, ie), 65536)), zr = Me($e);
|
|
60433
60443
|
if (zr)
|
|
60434
60444
|
return !0;
|
|
60435
60445
|
}
|
|
@@ -60443,10 +60453,10 @@ var wR = Ge({
|
|
|
60443
60453
|
})), Kt = (T, dt) => {
|
|
60444
60454
|
var qt = Uint8Array.of(0, 97, 115, 109, 1, 0, 0, 0, 1, ...ve([1, 96, ...Ve(dt.slice(1)), ...Ve(dt[0] === "v" ? "" : dt[0])]), 2, 7, 1, 1, 101, 1, 102, 0, 0, 7, 5, 1, 1, 102, 0, 0), fe = new WebAssembly.Module(qt), ie = new WebAssembly.Instance(fe, { e: { f: T } }), $e = ie.exports.f;
|
|
60445
60455
|
return $e;
|
|
60446
|
-
}, Ht,
|
|
60456
|
+
}, Ht, or = (T) => Ht.get(T), dr = (T, dt) => {
|
|
60447
60457
|
if (qe)
|
|
60448
60458
|
for (var qt = T; qt < T + dt; qt++) {
|
|
60449
|
-
var fe =
|
|
60459
|
+
var fe = or(qt);
|
|
60450
60460
|
fe && qe.set(fe, qt);
|
|
60451
60461
|
}
|
|
60452
60462
|
}, qe, Ce = (T) => (qe || (qe = /* @__PURE__ */ new WeakMap(), dr(0, Ht.length)), qe.get(T) || 0), Se = [], Nn = () => Se.length ? Se.pop() : Ht.grow(1), Ii = (T, dt) => Ht.set(T, dt), Ti = (T, dt) => {
|
|
@@ -60464,14 +60474,14 @@ var wR = Ge({
|
|
|
60464
60474
|
}
|
|
60465
60475
|
return qe.set(T, fe), fe;
|
|
60466
60476
|
}, tn = (T) => {
|
|
60467
|
-
qe.delete(
|
|
60477
|
+
qe.delete(or(T)), Ii(T, null), Se.push(T);
|
|
60468
60478
|
};
|
|
60469
|
-
s.noExitRuntime && (mt = s.noExitRuntime), s.print && s.print, s.printErr && (v = s.printErr), s.wasmBinary && (S = s.wasmBinary), s.arguments && s.arguments, s.thisProgram && s.thisProgram, s.wasmMemory = N, s.wasmExports =
|
|
60479
|
+
s.noExitRuntime && (mt = s.noExitRuntime), s.print && s.print, s.printErr && (v = s.printErr), s.wasmBinary && (S = s.wasmBinary), s.arguments && s.arguments, s.thisProgram && s.thisProgram, s.wasmMemory = N, s.wasmExports = ur, s.addFunction = Ti, s.removeFunction = tn;
|
|
60470
60480
|
var jr;
|
|
60471
60481
|
function pr(T) {
|
|
60472
60482
|
s._hb_blob_create = T.hb_blob_create, s._hb_blob_destroy = T.hb_blob_destroy, s._hb_blob_get_length = T.hb_blob_get_length, s._hb_blob_get_data = T.hb_blob_get_data, s._hb_buffer_serialize_glyphs = T.hb_buffer_serialize_glyphs, s._hb_buffer_create = T.hb_buffer_create, s._hb_buffer_destroy = T.hb_buffer_destroy, s._hb_buffer_get_content_type = T.hb_buffer_get_content_type, s._hb_buffer_set_direction = T.hb_buffer_set_direction, s._hb_buffer_set_script = T.hb_buffer_set_script, s._hb_buffer_set_language = T.hb_buffer_set_language, s._hb_buffer_set_flags = T.hb_buffer_set_flags, s._hb_buffer_set_cluster_level = T.hb_buffer_set_cluster_level, s._hb_buffer_get_length = T.hb_buffer_get_length, s._hb_buffer_get_glyph_infos = T.hb_buffer_get_glyph_infos, s._hb_buffer_get_glyph_positions = T.hb_buffer_get_glyph_positions, s._hb_glyph_info_get_glyph_flags = T.hb_glyph_info_get_glyph_flags, s._hb_buffer_guess_segment_properties = T.hb_buffer_guess_segment_properties, s._hb_buffer_add_utf8 = T.hb_buffer_add_utf8, s._hb_buffer_add_utf16 = T.hb_buffer_add_utf16, s._hb_buffer_set_message_func = T.hb_buffer_set_message_func, s._hb_language_from_string = T.hb_language_from_string, s._hb_script_from_string = T.hb_script_from_string, s._hb_version = T.hb_version, s._hb_version_string = T.hb_version_string, s._hb_feature_from_string = T.hb_feature_from_string, s._malloc = T.malloc, s._free = T.free, s._hb_draw_funcs_set_move_to_func = T.hb_draw_funcs_set_move_to_func, s._hb_draw_funcs_set_line_to_func = T.hb_draw_funcs_set_line_to_func, s._hb_draw_funcs_set_quadratic_to_func = T.hb_draw_funcs_set_quadratic_to_func, s._hb_draw_funcs_set_cubic_to_func = T.hb_draw_funcs_set_cubic_to_func, s._hb_draw_funcs_set_close_path_func = T.hb_draw_funcs_set_close_path_func, s._hb_draw_funcs_create = T.hb_draw_funcs_create, s._hb_draw_funcs_destroy = T.hb_draw_funcs_destroy, s._hb_face_create = T.hb_face_create, s._hb_face_destroy = T.hb_face_destroy, s._hb_face_reference_table = T.hb_face_reference_table, s._hb_face_get_upem = T.hb_face_get_upem, s._hb_face_collect_unicodes = T.hb_face_collect_unicodes, s._hb_font_draw_glyph = T.hb_font_draw_glyph, s._hb_font_glyph_to_string = T.hb_font_glyph_to_string, s._hb_font_create = T.hb_font_create, s._hb_font_set_variations = T.hb_font_set_variations, s._hb_font_destroy = T.hb_font_destroy, s._hb_font_set_scale = T.hb_font_set_scale, s._hb_set_create = T.hb_set_create, s._hb_set_destroy = T.hb_set_destroy, s._hb_ot_var_get_axis_infos = T.hb_ot_var_get_axis_infos, s._hb_set_get_population = T.hb_set_get_population, s._hb_set_next_many = T.hb_set_next_many, s._hb_shape = T.hb_shape, jr = T._emscripten_timeout;
|
|
60473
60483
|
}
|
|
60474
|
-
var Mr = { _abort_js: Ct, _emscripten_runtime_keepalive_clear: At, _setitimer_js: ae, emscripten_resize_heap: Je, proc_exit: yt },
|
|
60484
|
+
var Mr = { _abort_js: Ct, _emscripten_runtime_keepalive_clear: At, _setitimer_js: ae, emscripten_resize_heap: Je, proc_exit: yt }, ur = await ee();
|
|
60475
60485
|
function Pi() {
|
|
60476
60486
|
if (J > 0) {
|
|
60477
60487
|
bt = Pi;
|