@esposter/shared 2.14.0 → 2.15.1

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +223 -77
  2. package/dist/index.js +4248 -32
  3. package/package.json +13 -5
package/dist/index.js CHANGED
@@ -1,28 +1,9 @@
1
- //#region src/models/azure/BinaryOperator.ts
2
- let BinaryOperator = /* @__PURE__ */ function(BinaryOperator$1) {
3
- BinaryOperator$1["eq"] = "eq";
4
- BinaryOperator$1["ge"] = "ge";
5
- BinaryOperator$1["gt"] = "gt";
6
- BinaryOperator$1["le"] = "le";
7
- BinaryOperator$1["lt"] = "lt";
8
- BinaryOperator$1["ne"] = "ne";
9
- return BinaryOperator$1;
10
- }({});
11
-
12
- //#endregion
13
- //#region src/models/azure/Literal.ts
14
- let Literal = /* @__PURE__ */ function(Literal$1) {
15
- Literal$1["NaN"] = "NaN";
16
- return Literal$1;
17
- }({});
18
-
19
- //#endregion
20
- //#region src/models/azure/UnaryOperator.ts
21
- let UnaryOperator = /* @__PURE__ */ function(UnaryOperator$1) {
22
- UnaryOperator$1["and"] = "and";
23
- UnaryOperator$1["not"] = "not";
24
- UnaryOperator$1["or"] = "or";
25
- return UnaryOperator$1;
1
+ //#region src/models/environment/Environment.ts
2
+ let Environment = /* @__PURE__ */ function(Environment$2) {
3
+ Environment$2["development"] = "development";
4
+ Environment$2["production"] = "production";
5
+ Environment$2["test"] = "test";
6
+ return Environment$2;
26
7
  }({});
27
8
 
28
9
  //#endregion
@@ -52,6 +33,1989 @@ var NotInitializedError = class extends Error {
52
33
  }
53
34
  };
54
35
 
36
+ //#endregion
37
+ //#region src/util/object/getPropertyNames.ts
38
+ const getPropertyNames = () => new Proxy({}, { get: (_target, property) => property });
39
+
40
+ //#endregion
41
+ //#region ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/core.js
42
+ /** A special constant with type `never` */
43
+ const NEVER = Object.freeze({ status: "aborted" });
44
+ function $constructor(name, initializer$2, params) {
45
+ function init(inst, def$1) {
46
+ var _a;
47
+ Object.defineProperty(inst, "_zod", {
48
+ value: inst._zod ?? {},
49
+ enumerable: false
50
+ });
51
+ (_a = inst._zod).traits ?? (_a.traits = /* @__PURE__ */ new Set());
52
+ inst._zod.traits.add(name);
53
+ initializer$2(inst, def$1);
54
+ for (const k in _.prototype) if (!(k in inst)) Object.defineProperty(inst, k, { value: _.prototype[k].bind(inst) });
55
+ inst._zod.constr = _;
56
+ inst._zod.def = def$1;
57
+ }
58
+ const Parent = params?.Parent ?? Object;
59
+ class Definition extends Parent {}
60
+ Object.defineProperty(Definition, "name", { value: name });
61
+ function _(def$1) {
62
+ var _a;
63
+ const inst = params?.Parent ? new Definition() : this;
64
+ init(inst, def$1);
65
+ (_a = inst._zod).deferred ?? (_a.deferred = []);
66
+ for (const fn of inst._zod.deferred) fn();
67
+ return inst;
68
+ }
69
+ Object.defineProperty(_, "init", { value: init });
70
+ Object.defineProperty(_, Symbol.hasInstance, { value: (inst) => {
71
+ if (params?.Parent && inst instanceof params.Parent) return true;
72
+ return inst?._zod?.traits?.has(name);
73
+ } });
74
+ Object.defineProperty(_, "name", { value: name });
75
+ return _;
76
+ }
77
+ const $brand = Symbol("zod_brand");
78
+ var $ZodAsyncError = class extends Error {
79
+ constructor() {
80
+ super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
81
+ }
82
+ };
83
+ var $ZodEncodeError = class extends Error {
84
+ constructor(name) {
85
+ super(`Encountered unidirectional transform during encode: ${name}`);
86
+ this.name = "ZodEncodeError";
87
+ }
88
+ };
89
+ const globalConfig = {};
90
+ function config(newConfig) {
91
+ if (newConfig) Object.assign(globalConfig, newConfig);
92
+ return globalConfig;
93
+ }
94
+
95
+ //#endregion
96
+ //#region ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/util.js
97
+ function getEnumValues(entries) {
98
+ const numericValues = Object.values(entries).filter((v) => typeof v === "number");
99
+ return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
100
+ }
101
+ function jsonStringifyReplacer(_, value) {
102
+ if (typeof value === "bigint") return value.toString();
103
+ return value;
104
+ }
105
+ function cached(getter) {
106
+ return { get value() {
107
+ {
108
+ const value = getter();
109
+ Object.defineProperty(this, "value", { value });
110
+ return value;
111
+ }
112
+ throw new Error("cached value already set");
113
+ } };
114
+ }
115
+ function nullish(input) {
116
+ return input === null || input === void 0;
117
+ }
118
+ function cleanRegex(source) {
119
+ const start = source.startsWith("^") ? 1 : 0;
120
+ const end = source.endsWith("$") ? source.length - 1 : source.length;
121
+ return source.slice(start, end);
122
+ }
123
+ const EVALUATING = Symbol("evaluating");
124
+ function defineLazy(object$1, key, getter) {
125
+ let value = void 0;
126
+ Object.defineProperty(object$1, key, {
127
+ get() {
128
+ if (value === EVALUATING) return;
129
+ if (value === void 0) {
130
+ value = EVALUATING;
131
+ value = getter();
132
+ }
133
+ return value;
134
+ },
135
+ set(v) {
136
+ Object.defineProperty(object$1, key, { value: v });
137
+ },
138
+ configurable: true
139
+ });
140
+ }
141
+ function assignProp(target, prop, value) {
142
+ Object.defineProperty(target, prop, {
143
+ value,
144
+ writable: true,
145
+ enumerable: true,
146
+ configurable: true
147
+ });
148
+ }
149
+ function mergeDefs(...defs) {
150
+ const mergedDescriptors = {};
151
+ for (const def$1 of defs) {
152
+ const descriptors = Object.getOwnPropertyDescriptors(def$1);
153
+ Object.assign(mergedDescriptors, descriptors);
154
+ }
155
+ return Object.defineProperties({}, mergedDescriptors);
156
+ }
157
+ function esc(str) {
158
+ return JSON.stringify(str);
159
+ }
160
+ const captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {};
161
+ function isObject$2(data) {
162
+ return typeof data === "object" && data !== null && !Array.isArray(data);
163
+ }
164
+ const allowsEval = cached(() => {
165
+ if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) return false;
166
+ try {
167
+ new Function("");
168
+ return true;
169
+ } catch (_) {
170
+ return false;
171
+ }
172
+ });
173
+ function isPlainObject$2(o) {
174
+ if (isObject$2(o) === false) return false;
175
+ const ctor = o.constructor;
176
+ if (ctor === void 0) return true;
177
+ const prot = ctor.prototype;
178
+ if (isObject$2(prot) === false) return false;
179
+ if (Object.prototype.hasOwnProperty.call(prot, "isPrototypeOf") === false) return false;
180
+ return true;
181
+ }
182
+ function shallowClone(o) {
183
+ if (isPlainObject$2(o)) return { ...o };
184
+ if (Array.isArray(o)) return [...o];
185
+ return o;
186
+ }
187
+ const propertyKeyTypes = new Set([
188
+ "string",
189
+ "number",
190
+ "symbol"
191
+ ]);
192
+ function escapeRegex(str) {
193
+ return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
194
+ }
195
+ function clone(inst, def$1, params) {
196
+ const cl = new inst._zod.constr(def$1 ?? inst._zod.def);
197
+ if (!def$1 || params?.parent) cl._zod.parent = inst;
198
+ return cl;
199
+ }
200
+ function normalizeParams(_params) {
201
+ const params = _params;
202
+ if (!params) return {};
203
+ if (typeof params === "string") return { error: () => params };
204
+ if (params?.message !== void 0) {
205
+ if (params?.error !== void 0) throw new Error("Cannot specify both `message` and `error` params");
206
+ params.error = params.message;
207
+ }
208
+ delete params.message;
209
+ if (typeof params.error === "string") return {
210
+ ...params,
211
+ error: () => params.error
212
+ };
213
+ return params;
214
+ }
215
+ function optionalKeys(shape) {
216
+ return Object.keys(shape).filter((k) => {
217
+ return shape[k]._zod.optin === "optional" && shape[k]._zod.optout === "optional";
218
+ });
219
+ }
220
+ const NUMBER_FORMAT_RANGES = {
221
+ safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
222
+ int32: [-2147483648, 2147483647],
223
+ uint32: [0, 4294967295],
224
+ float32: [-34028234663852886e22, 34028234663852886e22],
225
+ float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
226
+ };
227
+ function pick(schema, mask) {
228
+ const currDef = schema._zod.def;
229
+ return clone(schema, mergeDefs(schema._zod.def, {
230
+ get shape() {
231
+ const newShape = {};
232
+ for (const key in mask) {
233
+ if (!(key in currDef.shape)) throw new Error(`Unrecognized key: "${key}"`);
234
+ if (!mask[key]) continue;
235
+ newShape[key] = currDef.shape[key];
236
+ }
237
+ assignProp(this, "shape", newShape);
238
+ return newShape;
239
+ },
240
+ checks: []
241
+ }));
242
+ }
243
+ function omit(schema, mask) {
244
+ const currDef = schema._zod.def;
245
+ return clone(schema, mergeDefs(schema._zod.def, {
246
+ get shape() {
247
+ const newShape = { ...schema._zod.def.shape };
248
+ for (const key in mask) {
249
+ if (!(key in currDef.shape)) throw new Error(`Unrecognized key: "${key}"`);
250
+ if (!mask[key]) continue;
251
+ delete newShape[key];
252
+ }
253
+ assignProp(this, "shape", newShape);
254
+ return newShape;
255
+ },
256
+ checks: []
257
+ }));
258
+ }
259
+ function extend$1(schema, shape) {
260
+ if (!isPlainObject$2(shape)) throw new Error("Invalid input to extend: expected a plain object");
261
+ const checks = schema._zod.def.checks;
262
+ if (checks && checks.length > 0) throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");
263
+ return clone(schema, mergeDefs(schema._zod.def, {
264
+ get shape() {
265
+ const _shape = {
266
+ ...schema._zod.def.shape,
267
+ ...shape
268
+ };
269
+ assignProp(this, "shape", _shape);
270
+ return _shape;
271
+ },
272
+ checks: []
273
+ }));
274
+ }
275
+ function safeExtend(schema, shape) {
276
+ if (!isPlainObject$2(shape)) throw new Error("Invalid input to safeExtend: expected a plain object");
277
+ return clone(schema, {
278
+ ...schema._zod.def,
279
+ get shape() {
280
+ const _shape = {
281
+ ...schema._zod.def.shape,
282
+ ...shape
283
+ };
284
+ assignProp(this, "shape", _shape);
285
+ return _shape;
286
+ },
287
+ checks: schema._zod.def.checks
288
+ });
289
+ }
290
+ function merge(a, b) {
291
+ return clone(a, mergeDefs(a._zod.def, {
292
+ get shape() {
293
+ const _shape = {
294
+ ...a._zod.def.shape,
295
+ ...b._zod.def.shape
296
+ };
297
+ assignProp(this, "shape", _shape);
298
+ return _shape;
299
+ },
300
+ get catchall() {
301
+ return b._zod.def.catchall;
302
+ },
303
+ checks: []
304
+ }));
305
+ }
306
+ function partial(Class, schema, mask) {
307
+ return clone(schema, mergeDefs(schema._zod.def, {
308
+ get shape() {
309
+ const oldShape = schema._zod.def.shape;
310
+ const shape = { ...oldShape };
311
+ if (mask) for (const key in mask) {
312
+ if (!(key in oldShape)) throw new Error(`Unrecognized key: "${key}"`);
313
+ if (!mask[key]) continue;
314
+ shape[key] = Class ? new Class({
315
+ type: "optional",
316
+ innerType: oldShape[key]
317
+ }) : oldShape[key];
318
+ }
319
+ else for (const key in oldShape) shape[key] = Class ? new Class({
320
+ type: "optional",
321
+ innerType: oldShape[key]
322
+ }) : oldShape[key];
323
+ assignProp(this, "shape", shape);
324
+ return shape;
325
+ },
326
+ checks: []
327
+ }));
328
+ }
329
+ function required(Class, schema, mask) {
330
+ return clone(schema, mergeDefs(schema._zod.def, {
331
+ get shape() {
332
+ const oldShape = schema._zod.def.shape;
333
+ const shape = { ...oldShape };
334
+ if (mask) for (const key in mask) {
335
+ if (!(key in shape)) throw new Error(`Unrecognized key: "${key}"`);
336
+ if (!mask[key]) continue;
337
+ shape[key] = new Class({
338
+ type: "nonoptional",
339
+ innerType: oldShape[key]
340
+ });
341
+ }
342
+ else for (const key in oldShape) shape[key] = new Class({
343
+ type: "nonoptional",
344
+ innerType: oldShape[key]
345
+ });
346
+ assignProp(this, "shape", shape);
347
+ return shape;
348
+ },
349
+ checks: []
350
+ }));
351
+ }
352
+ function aborted(x, startIndex = 0) {
353
+ if (x.aborted === true) return true;
354
+ for (let i = startIndex; i < x.issues.length; i++) if (x.issues[i]?.continue !== true) return true;
355
+ return false;
356
+ }
357
+ function prefixIssues(path, issues) {
358
+ return issues.map((iss) => {
359
+ var _a;
360
+ (_a = iss).path ?? (_a.path = []);
361
+ iss.path.unshift(path);
362
+ return iss;
363
+ });
364
+ }
365
+ function unwrapMessage(message) {
366
+ return typeof message === "string" ? message : message?.message;
367
+ }
368
+ function finalizeIssue(iss, ctx, config$1) {
369
+ const full = {
370
+ ...iss,
371
+ path: iss.path ?? []
372
+ };
373
+ if (!iss.message) full.message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config$1.customError?.(iss)) ?? unwrapMessage(config$1.localeError?.(iss)) ?? "Invalid input";
374
+ delete full.inst;
375
+ delete full.continue;
376
+ if (!ctx?.reportInput) delete full.input;
377
+ return full;
378
+ }
379
+ function getLengthableOrigin(input) {
380
+ if (Array.isArray(input)) return "array";
381
+ if (typeof input === "string") return "string";
382
+ return "unknown";
383
+ }
384
+ function issue(...args) {
385
+ const [iss, input, inst] = args;
386
+ if (typeof iss === "string") return {
387
+ message: iss,
388
+ code: "custom",
389
+ input,
390
+ inst
391
+ };
392
+ return { ...iss };
393
+ }
394
+
395
+ //#endregion
396
+ //#region ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/errors.js
397
+ const initializer$1 = (inst, def$1) => {
398
+ inst.name = "$ZodError";
399
+ Object.defineProperty(inst, "_zod", {
400
+ value: inst._zod,
401
+ enumerable: false
402
+ });
403
+ Object.defineProperty(inst, "issues", {
404
+ value: def$1,
405
+ enumerable: false
406
+ });
407
+ inst.message = JSON.stringify(def$1, jsonStringifyReplacer, 2);
408
+ Object.defineProperty(inst, "toString", {
409
+ value: () => inst.message,
410
+ enumerable: false
411
+ });
412
+ };
413
+ const $ZodError = $constructor("$ZodError", initializer$1);
414
+ const $ZodRealError = $constructor("$ZodError", initializer$1, { Parent: Error });
415
+ function flattenError(error, mapper = (issue$1) => issue$1.message) {
416
+ const fieldErrors = {};
417
+ const formErrors = [];
418
+ for (const sub of error.issues) if (sub.path.length > 0) {
419
+ fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
420
+ fieldErrors[sub.path[0]].push(mapper(sub));
421
+ } else formErrors.push(mapper(sub));
422
+ return {
423
+ formErrors,
424
+ fieldErrors
425
+ };
426
+ }
427
+ function formatError(error, mapper = (issue$1) => issue$1.message) {
428
+ const fieldErrors = { _errors: [] };
429
+ const processError = (error$1) => {
430
+ for (const issue$1 of error$1.issues) if (issue$1.code === "invalid_union" && issue$1.errors.length) issue$1.errors.map((issues) => processError({ issues }));
431
+ else if (issue$1.code === "invalid_key") processError({ issues: issue$1.issues });
432
+ else if (issue$1.code === "invalid_element") processError({ issues: issue$1.issues });
433
+ else if (issue$1.path.length === 0) fieldErrors._errors.push(mapper(issue$1));
434
+ else {
435
+ let curr = fieldErrors;
436
+ let i = 0;
437
+ while (i < issue$1.path.length) {
438
+ const el = issue$1.path[i];
439
+ if (!(i === issue$1.path.length - 1)) curr[el] = curr[el] || { _errors: [] };
440
+ else {
441
+ curr[el] = curr[el] || { _errors: [] };
442
+ curr[el]._errors.push(mapper(issue$1));
443
+ }
444
+ curr = curr[el];
445
+ i++;
446
+ }
447
+ }
448
+ };
449
+ processError(error);
450
+ return fieldErrors;
451
+ }
452
+
453
+ //#endregion
454
+ //#region ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/parse.js
455
+ const _parse = (_Err) => (schema, value, _ctx, _params) => {
456
+ const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
457
+ const result = schema._zod.run({
458
+ value,
459
+ issues: []
460
+ }, ctx);
461
+ if (result instanceof Promise) throw new $ZodAsyncError();
462
+ if (result.issues.length) {
463
+ const e = new (_params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
464
+ captureStackTrace(e, _params?.callee);
465
+ throw e;
466
+ }
467
+ return result.value;
468
+ };
469
+ const parse$1 = /* @__PURE__ */ _parse($ZodRealError);
470
+ const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
471
+ const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
472
+ let result = schema._zod.run({
473
+ value,
474
+ issues: []
475
+ }, ctx);
476
+ if (result instanceof Promise) result = await result;
477
+ if (result.issues.length) {
478
+ const e = new (params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
479
+ captureStackTrace(e, params?.callee);
480
+ throw e;
481
+ }
482
+ return result.value;
483
+ };
484
+ const parseAsync$1 = /* @__PURE__ */ _parseAsync($ZodRealError);
485
+ const _safeParse = (_Err) => (schema, value, _ctx) => {
486
+ const ctx = _ctx ? {
487
+ ..._ctx,
488
+ async: false
489
+ } : { async: false };
490
+ const result = schema._zod.run({
491
+ value,
492
+ issues: []
493
+ }, ctx);
494
+ if (result instanceof Promise) throw new $ZodAsyncError();
495
+ return result.issues.length ? {
496
+ success: false,
497
+ error: new (_Err ?? $ZodError)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())))
498
+ } : {
499
+ success: true,
500
+ data: result.value
501
+ };
502
+ };
503
+ const safeParse$1 = /* @__PURE__ */ _safeParse($ZodRealError);
504
+ const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
505
+ const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
506
+ let result = schema._zod.run({
507
+ value,
508
+ issues: []
509
+ }, ctx);
510
+ if (result instanceof Promise) result = await result;
511
+ return result.issues.length ? {
512
+ success: false,
513
+ error: new _Err(result.issues.map((iss) => finalizeIssue(iss, ctx, config())))
514
+ } : {
515
+ success: true,
516
+ data: result.value
517
+ };
518
+ };
519
+ const safeParseAsync$1 = /* @__PURE__ */ _safeParseAsync($ZodRealError);
520
+ const _encode = (_Err) => (schema, value, _ctx) => {
521
+ const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
522
+ return _parse(_Err)(schema, value, ctx);
523
+ };
524
+ const encode$1 = /* @__PURE__ */ _encode($ZodRealError);
525
+ const _decode = (_Err) => (schema, value, _ctx) => {
526
+ return _parse(_Err)(schema, value, _ctx);
527
+ };
528
+ const decode$1 = /* @__PURE__ */ _decode($ZodRealError);
529
+ const _encodeAsync = (_Err) => async (schema, value, _ctx) => {
530
+ const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
531
+ return _parseAsync(_Err)(schema, value, ctx);
532
+ };
533
+ const encodeAsync$1 = /* @__PURE__ */ _encodeAsync($ZodRealError);
534
+ const _decodeAsync = (_Err) => async (schema, value, _ctx) => {
535
+ return _parseAsync(_Err)(schema, value, _ctx);
536
+ };
537
+ const decodeAsync$1 = /* @__PURE__ */ _decodeAsync($ZodRealError);
538
+ const _safeEncode = (_Err) => (schema, value, _ctx) => {
539
+ const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
540
+ return _safeParse(_Err)(schema, value, ctx);
541
+ };
542
+ const safeEncode$1 = /* @__PURE__ */ _safeEncode($ZodRealError);
543
+ const _safeDecode = (_Err) => (schema, value, _ctx) => {
544
+ return _safeParse(_Err)(schema, value, _ctx);
545
+ };
546
+ const safeDecode$1 = /* @__PURE__ */ _safeDecode($ZodRealError);
547
+ const _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
548
+ const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
549
+ return _safeParseAsync(_Err)(schema, value, ctx);
550
+ };
551
+ const safeEncodeAsync$1 = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
552
+ const _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
553
+ return _safeParseAsync(_Err)(schema, value, _ctx);
554
+ };
555
+ const safeDecodeAsync$1 = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
556
+
557
+ //#endregion
558
+ //#region ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/checks.js
559
+ const $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def$1) => {
560
+ var _a;
561
+ inst._zod ?? (inst._zod = {});
562
+ inst._zod.def = def$1;
563
+ (_a = inst._zod).onattach ?? (_a.onattach = []);
564
+ });
565
+ const numericOriginMap = {
566
+ number: "number",
567
+ bigint: "bigint",
568
+ object: "date"
569
+ };
570
+ const $ZodCheckLessThan = /* @__PURE__ */ $constructor("$ZodCheckLessThan", (inst, def$1) => {
571
+ $ZodCheck.init(inst, def$1);
572
+ const origin = numericOriginMap[typeof def$1.value];
573
+ inst._zod.onattach.push((inst$1) => {
574
+ const bag = inst$1._zod.bag;
575
+ const curr = (def$1.inclusive ? bag.maximum : bag.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
576
+ if (def$1.value < curr) if (def$1.inclusive) bag.maximum = def$1.value;
577
+ else bag.exclusiveMaximum = def$1.value;
578
+ });
579
+ inst._zod.check = (payload) => {
580
+ if (def$1.inclusive ? payload.value <= def$1.value : payload.value < def$1.value) return;
581
+ payload.issues.push({
582
+ origin,
583
+ code: "too_big",
584
+ maximum: def$1.value,
585
+ input: payload.value,
586
+ inclusive: def$1.inclusive,
587
+ inst,
588
+ continue: !def$1.abort
589
+ });
590
+ };
591
+ });
592
+ const $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan", (inst, def$1) => {
593
+ $ZodCheck.init(inst, def$1);
594
+ const origin = numericOriginMap[typeof def$1.value];
595
+ inst._zod.onattach.push((inst$1) => {
596
+ const bag = inst$1._zod.bag;
597
+ const curr = (def$1.inclusive ? bag.minimum : bag.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
598
+ if (def$1.value > curr) if (def$1.inclusive) bag.minimum = def$1.value;
599
+ else bag.exclusiveMinimum = def$1.value;
600
+ });
601
+ inst._zod.check = (payload) => {
602
+ if (def$1.inclusive ? payload.value >= def$1.value : payload.value > def$1.value) return;
603
+ payload.issues.push({
604
+ origin,
605
+ code: "too_small",
606
+ minimum: def$1.value,
607
+ input: payload.value,
608
+ inclusive: def$1.inclusive,
609
+ inst,
610
+ continue: !def$1.abort
611
+ });
612
+ };
613
+ });
614
+ const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def$1) => {
615
+ var _a;
616
+ $ZodCheck.init(inst, def$1);
617
+ (_a = inst._zod.def).when ?? (_a.when = (payload) => {
618
+ const val = payload.value;
619
+ return !nullish(val) && val.length !== void 0;
620
+ });
621
+ inst._zod.onattach.push((inst$1) => {
622
+ const curr = inst$1._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
623
+ if (def$1.maximum < curr) inst$1._zod.bag.maximum = def$1.maximum;
624
+ });
625
+ inst._zod.check = (payload) => {
626
+ const input = payload.value;
627
+ if (input.length <= def$1.maximum) return;
628
+ const origin = getLengthableOrigin(input);
629
+ payload.issues.push({
630
+ origin,
631
+ code: "too_big",
632
+ maximum: def$1.maximum,
633
+ inclusive: true,
634
+ input,
635
+ inst,
636
+ continue: !def$1.abort
637
+ });
638
+ };
639
+ });
640
+ const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def$1) => {
641
+ var _a;
642
+ $ZodCheck.init(inst, def$1);
643
+ (_a = inst._zod.def).when ?? (_a.when = (payload) => {
644
+ const val = payload.value;
645
+ return !nullish(val) && val.length !== void 0;
646
+ });
647
+ inst._zod.onattach.push((inst$1) => {
648
+ const curr = inst$1._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
649
+ if (def$1.minimum > curr) inst$1._zod.bag.minimum = def$1.minimum;
650
+ });
651
+ inst._zod.check = (payload) => {
652
+ const input = payload.value;
653
+ if (input.length >= def$1.minimum) return;
654
+ const origin = getLengthableOrigin(input);
655
+ payload.issues.push({
656
+ origin,
657
+ code: "too_small",
658
+ minimum: def$1.minimum,
659
+ inclusive: true,
660
+ input,
661
+ inst,
662
+ continue: !def$1.abort
663
+ });
664
+ };
665
+ });
666
+ const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def$1) => {
667
+ var _a;
668
+ $ZodCheck.init(inst, def$1);
669
+ (_a = inst._zod.def).when ?? (_a.when = (payload) => {
670
+ const val = payload.value;
671
+ return !nullish(val) && val.length !== void 0;
672
+ });
673
+ inst._zod.onattach.push((inst$1) => {
674
+ const bag = inst$1._zod.bag;
675
+ bag.minimum = def$1.length;
676
+ bag.maximum = def$1.length;
677
+ bag.length = def$1.length;
678
+ });
679
+ inst._zod.check = (payload) => {
680
+ const input = payload.value;
681
+ const length = input.length;
682
+ if (length === def$1.length) return;
683
+ const origin = getLengthableOrigin(input);
684
+ const tooBig = length > def$1.length;
685
+ payload.issues.push({
686
+ origin,
687
+ ...tooBig ? {
688
+ code: "too_big",
689
+ maximum: def$1.length
690
+ } : {
691
+ code: "too_small",
692
+ minimum: def$1.length
693
+ },
694
+ inclusive: true,
695
+ exact: true,
696
+ input: payload.value,
697
+ inst,
698
+ continue: !def$1.abort
699
+ });
700
+ };
701
+ });
702
+ const $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (inst, def$1) => {
703
+ $ZodCheck.init(inst, def$1);
704
+ inst._zod.check = (payload) => {
705
+ payload.value = def$1.tx(payload.value);
706
+ };
707
+ });
708
+
709
+ //#endregion
710
+ //#region ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/doc.js
711
+ var Doc = class {
712
+ constructor(args = []) {
713
+ this.content = [];
714
+ this.indent = 0;
715
+ if (this) this.args = args;
716
+ }
717
+ indented(fn) {
718
+ this.indent += 1;
719
+ fn(this);
720
+ this.indent -= 1;
721
+ }
722
+ write(arg) {
723
+ if (typeof arg === "function") {
724
+ arg(this, { execution: "sync" });
725
+ arg(this, { execution: "async" });
726
+ return;
727
+ }
728
+ const lines = arg.split("\n").filter((x) => x);
729
+ const minIndent = Math.min(...lines.map((x) => x.length - x.trimStart().length));
730
+ const dedented = lines.map((x) => x.slice(minIndent)).map((x) => " ".repeat(this.indent * 2) + x);
731
+ for (const line of dedented) this.content.push(line);
732
+ }
733
+ compile() {
734
+ const F = Function;
735
+ const args = this?.args;
736
+ const lines = [...(this?.content ?? [``]).map((x) => ` ${x}`)];
737
+ return new F(...args, lines.join("\n"));
738
+ }
739
+ };
740
+
741
+ //#endregion
742
+ //#region ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/versions.js
743
+ const version = {
744
+ major: 4,
745
+ minor: 1,
746
+ patch: 12
747
+ };
748
+
749
+ //#endregion
750
+ //#region ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/schemas.js
751
+ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def$1) => {
752
+ var _a;
753
+ inst ?? (inst = {});
754
+ inst._zod.def = def$1;
755
+ inst._zod.bag = inst._zod.bag || {};
756
+ inst._zod.version = version;
757
+ const checks = [...inst._zod.def.checks ?? []];
758
+ if (inst._zod.traits.has("$ZodCheck")) checks.unshift(inst);
759
+ for (const ch of checks) for (const fn of ch._zod.onattach) fn(inst);
760
+ if (checks.length === 0) {
761
+ (_a = inst._zod).deferred ?? (_a.deferred = []);
762
+ inst._zod.deferred?.push(() => {
763
+ inst._zod.run = inst._zod.parse;
764
+ });
765
+ } else {
766
+ const runChecks = (payload, checks$1, ctx) => {
767
+ let isAborted = aborted(payload);
768
+ let asyncResult;
769
+ for (const ch of checks$1) {
770
+ if (ch._zod.def.when) {
771
+ if (!ch._zod.def.when(payload)) continue;
772
+ } else if (isAborted) continue;
773
+ const currLen = payload.issues.length;
774
+ const _ = ch._zod.check(payload);
775
+ if (_ instanceof Promise && ctx?.async === false) throw new $ZodAsyncError();
776
+ if (asyncResult || _ instanceof Promise) asyncResult = (asyncResult ?? Promise.resolve()).then(async () => {
777
+ await _;
778
+ if (payload.issues.length === currLen) return;
779
+ if (!isAborted) isAborted = aborted(payload, currLen);
780
+ });
781
+ else {
782
+ if (payload.issues.length === currLen) continue;
783
+ if (!isAborted) isAborted = aborted(payload, currLen);
784
+ }
785
+ }
786
+ if (asyncResult) return asyncResult.then(() => {
787
+ return payload;
788
+ });
789
+ return payload;
790
+ };
791
+ const handleCanaryResult = (canary, payload, ctx) => {
792
+ if (aborted(canary)) {
793
+ canary.aborted = true;
794
+ return canary;
795
+ }
796
+ const checkResult = runChecks(payload, checks, ctx);
797
+ if (checkResult instanceof Promise) {
798
+ if (ctx.async === false) throw new $ZodAsyncError();
799
+ return checkResult.then((checkResult$1) => inst._zod.parse(checkResult$1, ctx));
800
+ }
801
+ return inst._zod.parse(checkResult, ctx);
802
+ };
803
+ inst._zod.run = (payload, ctx) => {
804
+ if (ctx.skipChecks) return inst._zod.parse(payload, ctx);
805
+ if (ctx.direction === "backward") {
806
+ const canary = inst._zod.parse({
807
+ value: payload.value,
808
+ issues: []
809
+ }, {
810
+ ...ctx,
811
+ skipChecks: true
812
+ });
813
+ if (canary instanceof Promise) return canary.then((canary$1) => {
814
+ return handleCanaryResult(canary$1, payload, ctx);
815
+ });
816
+ return handleCanaryResult(canary, payload, ctx);
817
+ }
818
+ const result = inst._zod.parse(payload, ctx);
819
+ if (result instanceof Promise) {
820
+ if (ctx.async === false) throw new $ZodAsyncError();
821
+ return result.then((result$1) => runChecks(result$1, checks, ctx));
822
+ }
823
+ return runChecks(result, checks, ctx);
824
+ };
825
+ }
826
+ inst["~standard"] = {
827
+ validate: (value) => {
828
+ try {
829
+ const r = safeParse$1(inst, value);
830
+ return r.success ? { value: r.data } : { issues: r.error?.issues };
831
+ } catch (_) {
832
+ return safeParseAsync$1(inst, value).then((r) => r.success ? { value: r.data } : { issues: r.error?.issues });
833
+ }
834
+ },
835
+ vendor: "zod",
836
+ version: 1
837
+ };
838
+ });
839
+ const $ZodUnknown = /* @__PURE__ */ $constructor("$ZodUnknown", (inst, def$1) => {
840
+ $ZodType.init(inst, def$1);
841
+ inst._zod.parse = (payload) => payload;
842
+ });
843
+ const $ZodNever = /* @__PURE__ */ $constructor("$ZodNever", (inst, def$1) => {
844
+ $ZodType.init(inst, def$1);
845
+ inst._zod.parse = (payload, _ctx) => {
846
+ payload.issues.push({
847
+ expected: "never",
848
+ code: "invalid_type",
849
+ input: payload.value,
850
+ inst
851
+ });
852
+ return payload;
853
+ };
854
+ });
855
+ const $ZodDate = /* @__PURE__ */ $constructor("$ZodDate", (inst, def$1) => {
856
+ $ZodType.init(inst, def$1);
857
+ inst._zod.parse = (payload, _ctx) => {
858
+ if (def$1.coerce) try {
859
+ payload.value = new Date(payload.value);
860
+ } catch (_err) {}
861
+ const input = payload.value;
862
+ const isDate = input instanceof Date;
863
+ if (isDate && !Number.isNaN(input.getTime())) return payload;
864
+ payload.issues.push({
865
+ expected: "date",
866
+ code: "invalid_type",
867
+ input,
868
+ ...isDate ? { received: "Invalid Date" } : {},
869
+ inst
870
+ });
871
+ return payload;
872
+ };
873
+ });
874
+ function handleArrayResult(result, final, index) {
875
+ if (result.issues.length) final.issues.push(...prefixIssues(index, result.issues));
876
+ final.value[index] = result.value;
877
+ }
878
+ const $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def$1) => {
879
+ $ZodType.init(inst, def$1);
880
+ inst._zod.parse = (payload, ctx) => {
881
+ const input = payload.value;
882
+ if (!Array.isArray(input)) {
883
+ payload.issues.push({
884
+ expected: "array",
885
+ code: "invalid_type",
886
+ input,
887
+ inst
888
+ });
889
+ return payload;
890
+ }
891
+ payload.value = Array(input.length);
892
+ const proms = [];
893
+ for (let i = 0; i < input.length; i++) {
894
+ const item = input[i];
895
+ const result = def$1.element._zod.run({
896
+ value: item,
897
+ issues: []
898
+ }, ctx);
899
+ if (result instanceof Promise) proms.push(result.then((result$1) => handleArrayResult(result$1, payload, i)));
900
+ else handleArrayResult(result, payload, i);
901
+ }
902
+ if (proms.length) return Promise.all(proms).then(() => payload);
903
+ return payload;
904
+ };
905
+ });
906
+ function handlePropertyResult(result, final, key, input) {
907
+ if (result.issues.length) final.issues.push(...prefixIssues(key, result.issues));
908
+ if (result.value === void 0) {
909
+ if (key in input) final.value[key] = void 0;
910
+ } else final.value[key] = result.value;
911
+ }
912
+ function normalizeDef(def$1) {
913
+ const keys = Object.keys(def$1.shape);
914
+ for (const k of keys) if (!def$1.shape?.[k]?._zod?.traits?.has("$ZodType")) throw new Error(`Invalid element at key "${k}": expected a Zod schema`);
915
+ const okeys = optionalKeys(def$1.shape);
916
+ return {
917
+ ...def$1,
918
+ keys,
919
+ keySet: new Set(keys),
920
+ numKeys: keys.length,
921
+ optionalKeys: new Set(okeys)
922
+ };
923
+ }
924
+ function handleCatchall(proms, input, payload, ctx, def$1, inst) {
925
+ const unrecognized = [];
926
+ const keySet = def$1.keySet;
927
+ const _catchall = def$1.catchall._zod;
928
+ const t = _catchall.def.type;
929
+ for (const key of Object.keys(input)) {
930
+ if (keySet.has(key)) continue;
931
+ if (t === "never") {
932
+ unrecognized.push(key);
933
+ continue;
934
+ }
935
+ const r = _catchall.run({
936
+ value: input[key],
937
+ issues: []
938
+ }, ctx);
939
+ if (r instanceof Promise) proms.push(r.then((r$1) => handlePropertyResult(r$1, payload, key, input)));
940
+ else handlePropertyResult(r, payload, key, input);
941
+ }
942
+ if (unrecognized.length) payload.issues.push({
943
+ code: "unrecognized_keys",
944
+ keys: unrecognized,
945
+ input,
946
+ inst
947
+ });
948
+ if (!proms.length) return payload;
949
+ return Promise.all(proms).then(() => {
950
+ return payload;
951
+ });
952
+ }
953
+ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def$1) => {
954
+ $ZodType.init(inst, def$1);
955
+ if (!Object.getOwnPropertyDescriptor(def$1, "shape")?.get) {
956
+ const sh = def$1.shape;
957
+ Object.defineProperty(def$1, "shape", { get: () => {
958
+ const newSh = { ...sh };
959
+ Object.defineProperty(def$1, "shape", { value: newSh });
960
+ return newSh;
961
+ } });
962
+ }
963
+ const _normalized = cached(() => normalizeDef(def$1));
964
+ defineLazy(inst._zod, "propValues", () => {
965
+ const shape = def$1.shape;
966
+ const propValues = {};
967
+ for (const key in shape) {
968
+ const field = shape[key]._zod;
969
+ if (field.values) {
970
+ propValues[key] ?? (propValues[key] = /* @__PURE__ */ new Set());
971
+ for (const v of field.values) propValues[key].add(v);
972
+ }
973
+ }
974
+ return propValues;
975
+ });
976
+ const isObject$3 = isObject$2;
977
+ const catchall = def$1.catchall;
978
+ let value;
979
+ inst._zod.parse = (payload, ctx) => {
980
+ value ?? (value = _normalized.value);
981
+ const input = payload.value;
982
+ if (!isObject$3(input)) {
983
+ payload.issues.push({
984
+ expected: "object",
985
+ code: "invalid_type",
986
+ input,
987
+ inst
988
+ });
989
+ return payload;
990
+ }
991
+ payload.value = {};
992
+ const proms = [];
993
+ const shape = value.shape;
994
+ for (const key of value.keys) {
995
+ const r = shape[key]._zod.run({
996
+ value: input[key],
997
+ issues: []
998
+ }, ctx);
999
+ if (r instanceof Promise) proms.push(r.then((r$1) => handlePropertyResult(r$1, payload, key, input)));
1000
+ else handlePropertyResult(r, payload, key, input);
1001
+ }
1002
+ if (!catchall) return proms.length ? Promise.all(proms).then(() => payload) : payload;
1003
+ return handleCatchall(proms, input, payload, ctx, _normalized.value, inst);
1004
+ };
1005
+ });
1006
+ const $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def$1) => {
1007
+ $ZodObject.init(inst, def$1);
1008
+ const superParse = inst._zod.parse;
1009
+ const _normalized = cached(() => normalizeDef(def$1));
1010
+ const generateFastpass = (shape) => {
1011
+ const doc = new Doc([
1012
+ "shape",
1013
+ "payload",
1014
+ "ctx"
1015
+ ]);
1016
+ const normalized = _normalized.value;
1017
+ const parseStr = (key) => {
1018
+ const k = esc(key);
1019
+ return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
1020
+ };
1021
+ doc.write(`const input = payload.value;`);
1022
+ const ids = Object.create(null);
1023
+ let counter = 0;
1024
+ for (const key of normalized.keys) ids[key] = `key_${counter++}`;
1025
+ doc.write(`const newResult = {};`);
1026
+ for (const key of normalized.keys) {
1027
+ const id = ids[key];
1028
+ const k = esc(key);
1029
+ doc.write(`const ${id} = ${parseStr(key)};`);
1030
+ doc.write(`
1031
+ if (${id}.issues.length) {
1032
+ payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
1033
+ ...iss,
1034
+ path: iss.path ? [${k}, ...iss.path] : [${k}]
1035
+ })));
1036
+ }
1037
+
1038
+
1039
+ if (${id}.value === undefined) {
1040
+ if (${k} in input) {
1041
+ newResult[${k}] = undefined;
1042
+ }
1043
+ } else {
1044
+ newResult[${k}] = ${id}.value;
1045
+ }
1046
+
1047
+ `);
1048
+ }
1049
+ doc.write(`payload.value = newResult;`);
1050
+ doc.write(`return payload;`);
1051
+ const fn = doc.compile();
1052
+ return (payload, ctx) => fn(shape, payload, ctx);
1053
+ };
1054
+ let fastpass;
1055
+ const isObject$3 = isObject$2;
1056
+ const jit = !globalConfig.jitless;
1057
+ const allowsEval$1 = allowsEval;
1058
+ const fastEnabled = jit && allowsEval$1.value;
1059
+ const catchall = def$1.catchall;
1060
+ let value;
1061
+ inst._zod.parse = (payload, ctx) => {
1062
+ value ?? (value = _normalized.value);
1063
+ const input = payload.value;
1064
+ if (!isObject$3(input)) {
1065
+ payload.issues.push({
1066
+ expected: "object",
1067
+ code: "invalid_type",
1068
+ input,
1069
+ inst
1070
+ });
1071
+ return payload;
1072
+ }
1073
+ if (jit && fastEnabled && ctx?.async === false && ctx.jitless !== true) {
1074
+ if (!fastpass) fastpass = generateFastpass(def$1.shape);
1075
+ payload = fastpass(payload, ctx);
1076
+ if (!catchall) return payload;
1077
+ return handleCatchall([], input, payload, ctx, value, inst);
1078
+ }
1079
+ return superParse(payload, ctx);
1080
+ };
1081
+ });
1082
+ function handleUnionResults(results, final, inst, ctx) {
1083
+ for (const result of results) if (result.issues.length === 0) {
1084
+ final.value = result.value;
1085
+ return final;
1086
+ }
1087
+ const nonaborted = results.filter((r) => !aborted(r));
1088
+ if (nonaborted.length === 1) {
1089
+ final.value = nonaborted[0].value;
1090
+ return nonaborted[0];
1091
+ }
1092
+ final.issues.push({
1093
+ code: "invalid_union",
1094
+ input: final.value,
1095
+ inst,
1096
+ errors: results.map((result) => result.issues.map((iss) => finalizeIssue(iss, ctx, config())))
1097
+ });
1098
+ return final;
1099
+ }
1100
+ const $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def$1) => {
1101
+ $ZodType.init(inst, def$1);
1102
+ defineLazy(inst._zod, "optin", () => def$1.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0);
1103
+ defineLazy(inst._zod, "optout", () => def$1.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0);
1104
+ defineLazy(inst._zod, "values", () => {
1105
+ if (def$1.options.every((o) => o._zod.values)) return new Set(def$1.options.flatMap((option) => Array.from(option._zod.values)));
1106
+ });
1107
+ defineLazy(inst._zod, "pattern", () => {
1108
+ if (def$1.options.every((o) => o._zod.pattern)) {
1109
+ const patterns = def$1.options.map((o) => o._zod.pattern);
1110
+ return /* @__PURE__ */ new RegExp(`^(${patterns.map((p) => cleanRegex(p.source)).join("|")})$`);
1111
+ }
1112
+ });
1113
+ const single = def$1.options.length === 1;
1114
+ const first = def$1.options[0]._zod.run;
1115
+ inst._zod.parse = (payload, ctx) => {
1116
+ if (single) return first(payload, ctx);
1117
+ let async = false;
1118
+ const results = [];
1119
+ for (const option of def$1.options) {
1120
+ const result = option._zod.run({
1121
+ value: payload.value,
1122
+ issues: []
1123
+ }, ctx);
1124
+ if (result instanceof Promise) {
1125
+ results.push(result);
1126
+ async = true;
1127
+ } else {
1128
+ if (result.issues.length === 0) return result;
1129
+ results.push(result);
1130
+ }
1131
+ }
1132
+ if (!async) return handleUnionResults(results, payload, inst, ctx);
1133
+ return Promise.all(results).then((results$1) => {
1134
+ return handleUnionResults(results$1, payload, inst, ctx);
1135
+ });
1136
+ };
1137
+ });
1138
+ const $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, def$1) => {
1139
+ $ZodType.init(inst, def$1);
1140
+ inst._zod.parse = (payload, ctx) => {
1141
+ const input = payload.value;
1142
+ const left = def$1.left._zod.run({
1143
+ value: input,
1144
+ issues: []
1145
+ }, ctx);
1146
+ const right = def$1.right._zod.run({
1147
+ value: input,
1148
+ issues: []
1149
+ }, ctx);
1150
+ if (left instanceof Promise || right instanceof Promise) return Promise.all([left, right]).then(([left$1, right$1]) => {
1151
+ return handleIntersectionResults(payload, left$1, right$1);
1152
+ });
1153
+ return handleIntersectionResults(payload, left, right);
1154
+ };
1155
+ });
1156
+ function mergeValues(a, b) {
1157
+ if (a === b) return {
1158
+ valid: true,
1159
+ data: a
1160
+ };
1161
+ if (a instanceof Date && b instanceof Date && +a === +b) return {
1162
+ valid: true,
1163
+ data: a
1164
+ };
1165
+ if (isPlainObject$2(a) && isPlainObject$2(b)) {
1166
+ const bKeys = Object.keys(b);
1167
+ const sharedKeys = Object.keys(a).filter((key) => bKeys.indexOf(key) !== -1);
1168
+ const newObj = {
1169
+ ...a,
1170
+ ...b
1171
+ };
1172
+ for (const key of sharedKeys) {
1173
+ const sharedValue = mergeValues(a[key], b[key]);
1174
+ if (!sharedValue.valid) return {
1175
+ valid: false,
1176
+ mergeErrorPath: [key, ...sharedValue.mergeErrorPath]
1177
+ };
1178
+ newObj[key] = sharedValue.data;
1179
+ }
1180
+ return {
1181
+ valid: true,
1182
+ data: newObj
1183
+ };
1184
+ }
1185
+ if (Array.isArray(a) && Array.isArray(b)) {
1186
+ if (a.length !== b.length) return {
1187
+ valid: false,
1188
+ mergeErrorPath: []
1189
+ };
1190
+ const newArray = [];
1191
+ for (let index = 0; index < a.length; index++) {
1192
+ const itemA = a[index];
1193
+ const itemB = b[index];
1194
+ const sharedValue = mergeValues(itemA, itemB);
1195
+ if (!sharedValue.valid) return {
1196
+ valid: false,
1197
+ mergeErrorPath: [index, ...sharedValue.mergeErrorPath]
1198
+ };
1199
+ newArray.push(sharedValue.data);
1200
+ }
1201
+ return {
1202
+ valid: true,
1203
+ data: newArray
1204
+ };
1205
+ }
1206
+ return {
1207
+ valid: false,
1208
+ mergeErrorPath: []
1209
+ };
1210
+ }
1211
+ function handleIntersectionResults(result, left, right) {
1212
+ if (left.issues.length) result.issues.push(...left.issues);
1213
+ if (right.issues.length) result.issues.push(...right.issues);
1214
+ if (aborted(result)) return result;
1215
+ const merged = mergeValues(left.value, right.value);
1216
+ if (!merged.valid) throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(merged.mergeErrorPath)}`);
1217
+ result.value = merged.data;
1218
+ return result;
1219
+ }
1220
+ const $ZodEnum = /* @__PURE__ */ $constructor("$ZodEnum", (inst, def$1) => {
1221
+ $ZodType.init(inst, def$1);
1222
+ const values = getEnumValues(def$1.entries);
1223
+ const valuesSet = new Set(values);
1224
+ inst._zod.values = valuesSet;
1225
+ inst._zod.pattern = /* @__PURE__ */ new RegExp(`^(${values.filter((k) => propertyKeyTypes.has(typeof k)).map((o) => typeof o === "string" ? escapeRegex(o) : o.toString()).join("|")})$`);
1226
+ inst._zod.parse = (payload, _ctx) => {
1227
+ const input = payload.value;
1228
+ if (valuesSet.has(input)) return payload;
1229
+ payload.issues.push({
1230
+ code: "invalid_value",
1231
+ values,
1232
+ input,
1233
+ inst
1234
+ });
1235
+ return payload;
1236
+ };
1237
+ });
1238
+ const $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def$1) => {
1239
+ $ZodType.init(inst, def$1);
1240
+ inst._zod.parse = (payload, ctx) => {
1241
+ if (ctx.direction === "backward") throw new $ZodEncodeError(inst.constructor.name);
1242
+ const _out = def$1.transform(payload.value, payload);
1243
+ if (ctx.async) return (_out instanceof Promise ? _out : Promise.resolve(_out)).then((output) => {
1244
+ payload.value = output;
1245
+ return payload;
1246
+ });
1247
+ if (_out instanceof Promise) throw new $ZodAsyncError();
1248
+ payload.value = _out;
1249
+ return payload;
1250
+ };
1251
+ });
1252
+ function handleOptionalResult(result, input) {
1253
+ if (result.issues.length && input === void 0) return {
1254
+ issues: [],
1255
+ value: void 0
1256
+ };
1257
+ return result;
1258
+ }
1259
+ const $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def$1) => {
1260
+ $ZodType.init(inst, def$1);
1261
+ inst._zod.optin = "optional";
1262
+ inst._zod.optout = "optional";
1263
+ defineLazy(inst._zod, "values", () => {
1264
+ return def$1.innerType._zod.values ? new Set([...def$1.innerType._zod.values, void 0]) : void 0;
1265
+ });
1266
+ defineLazy(inst._zod, "pattern", () => {
1267
+ const pattern = def$1.innerType._zod.pattern;
1268
+ return pattern ? /* @__PURE__ */ new RegExp(`^(${cleanRegex(pattern.source)})?$`) : void 0;
1269
+ });
1270
+ inst._zod.parse = (payload, ctx) => {
1271
+ if (def$1.innerType._zod.optin === "optional") {
1272
+ const result = def$1.innerType._zod.run(payload, ctx);
1273
+ if (result instanceof Promise) return result.then((r) => handleOptionalResult(r, payload.value));
1274
+ return handleOptionalResult(result, payload.value);
1275
+ }
1276
+ if (payload.value === void 0) return payload;
1277
+ return def$1.innerType._zod.run(payload, ctx);
1278
+ };
1279
+ });
1280
+ const $ZodNullable = /* @__PURE__ */ $constructor("$ZodNullable", (inst, def$1) => {
1281
+ $ZodType.init(inst, def$1);
1282
+ defineLazy(inst._zod, "optin", () => def$1.innerType._zod.optin);
1283
+ defineLazy(inst._zod, "optout", () => def$1.innerType._zod.optout);
1284
+ defineLazy(inst._zod, "pattern", () => {
1285
+ const pattern = def$1.innerType._zod.pattern;
1286
+ return pattern ? /* @__PURE__ */ new RegExp(`^(${cleanRegex(pattern.source)}|null)$`) : void 0;
1287
+ });
1288
+ defineLazy(inst._zod, "values", () => {
1289
+ return def$1.innerType._zod.values ? new Set([...def$1.innerType._zod.values, null]) : void 0;
1290
+ });
1291
+ inst._zod.parse = (payload, ctx) => {
1292
+ if (payload.value === null) return payload;
1293
+ return def$1.innerType._zod.run(payload, ctx);
1294
+ };
1295
+ });
1296
+ const $ZodDefault = /* @__PURE__ */ $constructor("$ZodDefault", (inst, def$1) => {
1297
+ $ZodType.init(inst, def$1);
1298
+ inst._zod.optin = "optional";
1299
+ defineLazy(inst._zod, "values", () => def$1.innerType._zod.values);
1300
+ inst._zod.parse = (payload, ctx) => {
1301
+ if (ctx.direction === "backward") return def$1.innerType._zod.run(payload, ctx);
1302
+ if (payload.value === void 0) {
1303
+ payload.value = def$1.defaultValue;
1304
+ /**
1305
+ * $ZodDefault returns the default value immediately in forward direction.
1306
+ * It doesn't pass the default value into the validator ("prefault"). There's no reason to pass the default value through validation. The validity of the default is enforced by TypeScript statically. Otherwise, it's the responsibility of the user to ensure the default is valid. In the case of pipes with divergent in/out types, you can specify the default on the `in` schema of your ZodPipe to set a "prefault" for the pipe. */
1307
+ return payload;
1308
+ }
1309
+ const result = def$1.innerType._zod.run(payload, ctx);
1310
+ if (result instanceof Promise) return result.then((result$1) => handleDefaultResult(result$1, def$1));
1311
+ return handleDefaultResult(result, def$1);
1312
+ };
1313
+ });
1314
+ function handleDefaultResult(payload, def$1) {
1315
+ if (payload.value === void 0) payload.value = def$1.defaultValue;
1316
+ return payload;
1317
+ }
1318
+ const $ZodPrefault = /* @__PURE__ */ $constructor("$ZodPrefault", (inst, def$1) => {
1319
+ $ZodType.init(inst, def$1);
1320
+ inst._zod.optin = "optional";
1321
+ defineLazy(inst._zod, "values", () => def$1.innerType._zod.values);
1322
+ inst._zod.parse = (payload, ctx) => {
1323
+ if (ctx.direction === "backward") return def$1.innerType._zod.run(payload, ctx);
1324
+ if (payload.value === void 0) payload.value = def$1.defaultValue;
1325
+ return def$1.innerType._zod.run(payload, ctx);
1326
+ };
1327
+ });
1328
+ const $ZodNonOptional = /* @__PURE__ */ $constructor("$ZodNonOptional", (inst, def$1) => {
1329
+ $ZodType.init(inst, def$1);
1330
+ defineLazy(inst._zod, "values", () => {
1331
+ const v = def$1.innerType._zod.values;
1332
+ return v ? new Set([...v].filter((x) => x !== void 0)) : void 0;
1333
+ });
1334
+ inst._zod.parse = (payload, ctx) => {
1335
+ const result = def$1.innerType._zod.run(payload, ctx);
1336
+ if (result instanceof Promise) return result.then((result$1) => handleNonOptionalResult(result$1, inst));
1337
+ return handleNonOptionalResult(result, inst);
1338
+ };
1339
+ });
1340
+ function handleNonOptionalResult(payload, inst) {
1341
+ if (!payload.issues.length && payload.value === void 0) payload.issues.push({
1342
+ code: "invalid_type",
1343
+ expected: "nonoptional",
1344
+ input: payload.value,
1345
+ inst
1346
+ });
1347
+ return payload;
1348
+ }
1349
+ const $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def$1) => {
1350
+ $ZodType.init(inst, def$1);
1351
+ defineLazy(inst._zod, "optin", () => def$1.innerType._zod.optin);
1352
+ defineLazy(inst._zod, "optout", () => def$1.innerType._zod.optout);
1353
+ defineLazy(inst._zod, "values", () => def$1.innerType._zod.values);
1354
+ inst._zod.parse = (payload, ctx) => {
1355
+ if (ctx.direction === "backward") return def$1.innerType._zod.run(payload, ctx);
1356
+ const result = def$1.innerType._zod.run(payload, ctx);
1357
+ if (result instanceof Promise) return result.then((result$1) => {
1358
+ payload.value = result$1.value;
1359
+ if (result$1.issues.length) {
1360
+ payload.value = def$1.catchValue({
1361
+ ...payload,
1362
+ error: { issues: result$1.issues.map((iss) => finalizeIssue(iss, ctx, config())) },
1363
+ input: payload.value
1364
+ });
1365
+ payload.issues = [];
1366
+ }
1367
+ return payload;
1368
+ });
1369
+ payload.value = result.value;
1370
+ if (result.issues.length) {
1371
+ payload.value = def$1.catchValue({
1372
+ ...payload,
1373
+ error: { issues: result.issues.map((iss) => finalizeIssue(iss, ctx, config())) },
1374
+ input: payload.value
1375
+ });
1376
+ payload.issues = [];
1377
+ }
1378
+ return payload;
1379
+ };
1380
+ });
1381
+ const $ZodPipe = /* @__PURE__ */ $constructor("$ZodPipe", (inst, def$1) => {
1382
+ $ZodType.init(inst, def$1);
1383
+ defineLazy(inst._zod, "values", () => def$1.in._zod.values);
1384
+ defineLazy(inst._zod, "optin", () => def$1.in._zod.optin);
1385
+ defineLazy(inst._zod, "optout", () => def$1.out._zod.optout);
1386
+ defineLazy(inst._zod, "propValues", () => def$1.in._zod.propValues);
1387
+ inst._zod.parse = (payload, ctx) => {
1388
+ if (ctx.direction === "backward") {
1389
+ const right = def$1.out._zod.run(payload, ctx);
1390
+ if (right instanceof Promise) return right.then((right$1) => handlePipeResult(right$1, def$1.in, ctx));
1391
+ return handlePipeResult(right, def$1.in, ctx);
1392
+ }
1393
+ const left = def$1.in._zod.run(payload, ctx);
1394
+ if (left instanceof Promise) return left.then((left$1) => handlePipeResult(left$1, def$1.out, ctx));
1395
+ return handlePipeResult(left, def$1.out, ctx);
1396
+ };
1397
+ });
1398
+ function handlePipeResult(left, next, ctx) {
1399
+ if (left.issues.length) {
1400
+ left.aborted = true;
1401
+ return left;
1402
+ }
1403
+ return next._zod.run({
1404
+ value: left.value,
1405
+ issues: left.issues
1406
+ }, ctx);
1407
+ }
1408
+ const $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def$1) => {
1409
+ $ZodType.init(inst, def$1);
1410
+ defineLazy(inst._zod, "propValues", () => def$1.innerType._zod.propValues);
1411
+ defineLazy(inst._zod, "values", () => def$1.innerType._zod.values);
1412
+ defineLazy(inst._zod, "optin", () => def$1.innerType._zod.optin);
1413
+ defineLazy(inst._zod, "optout", () => def$1.innerType._zod.optout);
1414
+ inst._zod.parse = (payload, ctx) => {
1415
+ if (ctx.direction === "backward") return def$1.innerType._zod.run(payload, ctx);
1416
+ const result = def$1.innerType._zod.run(payload, ctx);
1417
+ if (result instanceof Promise) return result.then(handleReadonlyResult);
1418
+ return handleReadonlyResult(result);
1419
+ };
1420
+ });
1421
+ function handleReadonlyResult(payload) {
1422
+ payload.value = Object.freeze(payload.value);
1423
+ return payload;
1424
+ }
1425
+ const $ZodCustom = /* @__PURE__ */ $constructor("$ZodCustom", (inst, def$1) => {
1426
+ $ZodCheck.init(inst, def$1);
1427
+ $ZodType.init(inst, def$1);
1428
+ inst._zod.parse = (payload, _) => {
1429
+ return payload;
1430
+ };
1431
+ inst._zod.check = (payload) => {
1432
+ const input = payload.value;
1433
+ const r = def$1.fn(input);
1434
+ if (r instanceof Promise) return r.then((r$1) => handleRefineResult(r$1, payload, input, inst));
1435
+ handleRefineResult(r, payload, input, inst);
1436
+ };
1437
+ });
1438
+ function handleRefineResult(result, payload, input, inst) {
1439
+ if (!result) {
1440
+ const _iss = {
1441
+ code: "custom",
1442
+ input,
1443
+ inst,
1444
+ path: [...inst._zod.def.path ?? []],
1445
+ continue: !inst._zod.def.abort
1446
+ };
1447
+ if (inst._zod.def.params) _iss.params = inst._zod.def.params;
1448
+ payload.issues.push(issue(_iss));
1449
+ }
1450
+ }
1451
+
1452
+ //#endregion
1453
+ //#region ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/registries.js
1454
+ const $output = Symbol("ZodOutput");
1455
+ const $input = Symbol("ZodInput");
1456
+ var $ZodRegistry = class {
1457
+ constructor() {
1458
+ this._map = /* @__PURE__ */ new WeakMap();
1459
+ this._idmap = /* @__PURE__ */ new Map();
1460
+ }
1461
+ add(schema, ..._meta) {
1462
+ const meta = _meta[0];
1463
+ this._map.set(schema, meta);
1464
+ if (meta && typeof meta === "object" && "id" in meta) {
1465
+ if (this._idmap.has(meta.id)) throw new Error(`ID ${meta.id} already exists in the registry`);
1466
+ this._idmap.set(meta.id, schema);
1467
+ }
1468
+ return this;
1469
+ }
1470
+ clear() {
1471
+ this._map = /* @__PURE__ */ new WeakMap();
1472
+ this._idmap = /* @__PURE__ */ new Map();
1473
+ return this;
1474
+ }
1475
+ remove(schema) {
1476
+ const meta = this._map.get(schema);
1477
+ if (meta && typeof meta === "object" && "id" in meta) this._idmap.delete(meta.id);
1478
+ this._map.delete(schema);
1479
+ return this;
1480
+ }
1481
+ get(schema) {
1482
+ const p = schema._zod.parent;
1483
+ if (p) {
1484
+ const pm = { ...this.get(p) ?? {} };
1485
+ delete pm.id;
1486
+ const f = {
1487
+ ...pm,
1488
+ ...this._map.get(schema)
1489
+ };
1490
+ return Object.keys(f).length ? f : void 0;
1491
+ }
1492
+ return this._map.get(schema);
1493
+ }
1494
+ has(schema) {
1495
+ return this._map.has(schema);
1496
+ }
1497
+ };
1498
+ function registry() {
1499
+ return new $ZodRegistry();
1500
+ }
1501
+ const globalRegistry = /* @__PURE__ */ registry();
1502
+
1503
+ //#endregion
1504
+ //#region ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/api.js
1505
+ function _unknown(Class) {
1506
+ return new Class({ type: "unknown" });
1507
+ }
1508
+ function _never(Class, params) {
1509
+ return new Class({
1510
+ type: "never",
1511
+ ...normalizeParams(params)
1512
+ });
1513
+ }
1514
+ function _date(Class, params) {
1515
+ return new Class({
1516
+ type: "date",
1517
+ ...normalizeParams(params)
1518
+ });
1519
+ }
1520
+ function _lte(value, params) {
1521
+ return new $ZodCheckLessThan({
1522
+ check: "less_than",
1523
+ ...normalizeParams(params),
1524
+ value,
1525
+ inclusive: true
1526
+ });
1527
+ }
1528
+ function _gte(value, params) {
1529
+ return new $ZodCheckGreaterThan({
1530
+ check: "greater_than",
1531
+ ...normalizeParams(params),
1532
+ value,
1533
+ inclusive: true
1534
+ });
1535
+ }
1536
+ function _maxLength(maximum, params) {
1537
+ return new $ZodCheckMaxLength({
1538
+ check: "max_length",
1539
+ ...normalizeParams(params),
1540
+ maximum
1541
+ });
1542
+ }
1543
+ function _minLength(minimum, params) {
1544
+ return new $ZodCheckMinLength({
1545
+ check: "min_length",
1546
+ ...normalizeParams(params),
1547
+ minimum
1548
+ });
1549
+ }
1550
+ function _length(length, params) {
1551
+ return new $ZodCheckLengthEquals({
1552
+ check: "length_equals",
1553
+ ...normalizeParams(params),
1554
+ length
1555
+ });
1556
+ }
1557
+ function _overwrite(tx) {
1558
+ return new $ZodCheckOverwrite({
1559
+ check: "overwrite",
1560
+ tx
1561
+ });
1562
+ }
1563
+ function _array(Class, element, params) {
1564
+ return new Class({
1565
+ type: "array",
1566
+ element,
1567
+ ...normalizeParams(params)
1568
+ });
1569
+ }
1570
+ function _refine(Class, fn, _params) {
1571
+ return new Class({
1572
+ type: "custom",
1573
+ check: "custom",
1574
+ fn,
1575
+ ...normalizeParams(_params)
1576
+ });
1577
+ }
1578
+ function _superRefine(fn) {
1579
+ const ch = _check((payload) => {
1580
+ payload.addIssue = (issue$1) => {
1581
+ if (typeof issue$1 === "string") payload.issues.push(issue(issue$1, payload.value, ch._zod.def));
1582
+ else {
1583
+ const _issue = issue$1;
1584
+ if (_issue.fatal) _issue.continue = false;
1585
+ _issue.code ?? (_issue.code = "custom");
1586
+ _issue.input ?? (_issue.input = payload.value);
1587
+ _issue.inst ?? (_issue.inst = ch);
1588
+ _issue.continue ?? (_issue.continue = !ch._zod.def.abort);
1589
+ payload.issues.push(issue(_issue));
1590
+ }
1591
+ };
1592
+ return fn(payload.value, payload);
1593
+ });
1594
+ return ch;
1595
+ }
1596
+ function _check(fn, params) {
1597
+ const ch = new $ZodCheck({
1598
+ check: "custom",
1599
+ ...normalizeParams(params)
1600
+ });
1601
+ ch._zod.check = fn;
1602
+ return ch;
1603
+ }
1604
+
1605
+ //#endregion
1606
+ //#region ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/errors.js
1607
+ const initializer = (inst, issues) => {
1608
+ $ZodError.init(inst, issues);
1609
+ inst.name = "ZodError";
1610
+ Object.defineProperties(inst, {
1611
+ format: { value: (mapper) => formatError(inst, mapper) },
1612
+ flatten: { value: (mapper) => flattenError(inst, mapper) },
1613
+ addIssue: { value: (issue$1) => {
1614
+ inst.issues.push(issue$1);
1615
+ inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
1616
+ } },
1617
+ addIssues: { value: (issues$1) => {
1618
+ inst.issues.push(...issues$1);
1619
+ inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
1620
+ } },
1621
+ isEmpty: { get() {
1622
+ return inst.issues.length === 0;
1623
+ } }
1624
+ });
1625
+ };
1626
+ const ZodError = $constructor("ZodError", initializer);
1627
+ const ZodRealError = $constructor("ZodError", initializer, { Parent: Error });
1628
+
1629
+ //#endregion
1630
+ //#region ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/parse.js
1631
+ const parse = /* @__PURE__ */ _parse(ZodRealError);
1632
+ const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
1633
+ const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
1634
+ const safeParseAsync = /* @__PURE__ */ _safeParseAsync(ZodRealError);
1635
+ const encode = /* @__PURE__ */ _encode(ZodRealError);
1636
+ const decode = /* @__PURE__ */ _decode(ZodRealError);
1637
+ const encodeAsync = /* @__PURE__ */ _encodeAsync(ZodRealError);
1638
+ const decodeAsync = /* @__PURE__ */ _decodeAsync(ZodRealError);
1639
+ const safeEncode = /* @__PURE__ */ _safeEncode(ZodRealError);
1640
+ const safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
1641
+ const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
1642
+ const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
1643
+
1644
+ //#endregion
1645
+ //#region ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/schemas.js
1646
+ const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def$1) => {
1647
+ $ZodType.init(inst, def$1);
1648
+ inst.def = def$1;
1649
+ inst.type = def$1.type;
1650
+ Object.defineProperty(inst, "_def", { value: def$1 });
1651
+ inst.check = (...checks) => {
1652
+ return inst.clone(mergeDefs(def$1, { checks: [...def$1.checks ?? [], ...checks.map((ch) => typeof ch === "function" ? { _zod: {
1653
+ check: ch,
1654
+ def: { check: "custom" },
1655
+ onattach: []
1656
+ } } : ch)] }));
1657
+ };
1658
+ inst.clone = (def$2, params) => clone(inst, def$2, params);
1659
+ inst.brand = () => inst;
1660
+ inst.register = ((reg, meta) => {
1661
+ reg.add(inst, meta);
1662
+ return inst;
1663
+ });
1664
+ inst.parse = (data, params) => parse(inst, data, params, { callee: inst.parse });
1665
+ inst.safeParse = (data, params) => safeParse(inst, data, params);
1666
+ inst.parseAsync = async (data, params) => parseAsync(inst, data, params, { callee: inst.parseAsync });
1667
+ inst.safeParseAsync = async (data, params) => safeParseAsync(inst, data, params);
1668
+ inst.spa = inst.safeParseAsync;
1669
+ inst.encode = (data, params) => encode(inst, data, params);
1670
+ inst.decode = (data, params) => decode(inst, data, params);
1671
+ inst.encodeAsync = async (data, params) => encodeAsync(inst, data, params);
1672
+ inst.decodeAsync = async (data, params) => decodeAsync(inst, data, params);
1673
+ inst.safeEncode = (data, params) => safeEncode(inst, data, params);
1674
+ inst.safeDecode = (data, params) => safeDecode(inst, data, params);
1675
+ inst.safeEncodeAsync = async (data, params) => safeEncodeAsync(inst, data, params);
1676
+ inst.safeDecodeAsync = async (data, params) => safeDecodeAsync(inst, data, params);
1677
+ inst.refine = (check, params) => inst.check(refine(check, params));
1678
+ inst.superRefine = (refinement) => inst.check(superRefine(refinement));
1679
+ inst.overwrite = (fn) => inst.check(_overwrite(fn));
1680
+ inst.optional = () => optional(inst);
1681
+ inst.nullable = () => nullable(inst);
1682
+ inst.nullish = () => optional(nullable(inst));
1683
+ inst.nonoptional = (params) => nonoptional(inst, params);
1684
+ inst.array = () => array(inst);
1685
+ inst.or = (arg) => union([inst, arg]);
1686
+ inst.and = (arg) => intersection(inst, arg);
1687
+ inst.transform = (tx) => pipe(inst, transform(tx));
1688
+ inst.default = (def$2) => _default(inst, def$2);
1689
+ inst.prefault = (def$2) => prefault(inst, def$2);
1690
+ inst.catch = (params) => _catch(inst, params);
1691
+ inst.pipe = (target) => pipe(inst, target);
1692
+ inst.readonly = () => readonly$1(inst);
1693
+ inst.describe = (description) => {
1694
+ const cl = inst.clone();
1695
+ globalRegistry.add(cl, { description });
1696
+ return cl;
1697
+ };
1698
+ Object.defineProperty(inst, "description", {
1699
+ get() {
1700
+ return globalRegistry.get(inst)?.description;
1701
+ },
1702
+ configurable: true
1703
+ });
1704
+ inst.meta = (...args) => {
1705
+ if (args.length === 0) return globalRegistry.get(inst);
1706
+ const cl = inst.clone();
1707
+ globalRegistry.add(cl, args[0]);
1708
+ return cl;
1709
+ };
1710
+ inst.isOptional = () => inst.safeParse(void 0).success;
1711
+ inst.isNullable = () => inst.safeParse(null).success;
1712
+ return inst;
1713
+ });
1714
+ const ZodUnknown = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def$1) => {
1715
+ $ZodUnknown.init(inst, def$1);
1716
+ ZodType.init(inst, def$1);
1717
+ });
1718
+ function unknown() {
1719
+ return _unknown(ZodUnknown);
1720
+ }
1721
+ const ZodNever = /* @__PURE__ */ $constructor("ZodNever", (inst, def$1) => {
1722
+ $ZodNever.init(inst, def$1);
1723
+ ZodType.init(inst, def$1);
1724
+ });
1725
+ function never(params) {
1726
+ return _never(ZodNever, params);
1727
+ }
1728
+ const ZodDate = /* @__PURE__ */ $constructor("ZodDate", (inst, def$1) => {
1729
+ $ZodDate.init(inst, def$1);
1730
+ ZodType.init(inst, def$1);
1731
+ inst.min = (value, params) => inst.check(_gte(value, params));
1732
+ inst.max = (value, params) => inst.check(_lte(value, params));
1733
+ const c = inst._zod.bag;
1734
+ inst.minDate = c.minimum ? new Date(c.minimum) : null;
1735
+ inst.maxDate = c.maximum ? new Date(c.maximum) : null;
1736
+ });
1737
+ function date(params) {
1738
+ return _date(ZodDate, params);
1739
+ }
1740
+ const ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def$1) => {
1741
+ $ZodArray.init(inst, def$1);
1742
+ ZodType.init(inst, def$1);
1743
+ inst.element = def$1.element;
1744
+ inst.min = (minLength, params) => inst.check(_minLength(minLength, params));
1745
+ inst.nonempty = (params) => inst.check(_minLength(1, params));
1746
+ inst.max = (maxLength, params) => inst.check(_maxLength(maxLength, params));
1747
+ inst.length = (len, params) => inst.check(_length(len, params));
1748
+ inst.unwrap = () => inst.element;
1749
+ });
1750
+ function array(element, params) {
1751
+ return _array(ZodArray, element, params);
1752
+ }
1753
+ const ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def$1) => {
1754
+ $ZodObjectJIT.init(inst, def$1);
1755
+ ZodType.init(inst, def$1);
1756
+ defineLazy(inst, "shape", () => {
1757
+ return def$1.shape;
1758
+ });
1759
+ inst.keyof = () => _enum(Object.keys(inst._zod.def.shape));
1760
+ inst.catchall = (catchall) => inst.clone({
1761
+ ...inst._zod.def,
1762
+ catchall
1763
+ });
1764
+ inst.passthrough = () => inst.clone({
1765
+ ...inst._zod.def,
1766
+ catchall: unknown()
1767
+ });
1768
+ inst.loose = () => inst.clone({
1769
+ ...inst._zod.def,
1770
+ catchall: unknown()
1771
+ });
1772
+ inst.strict = () => inst.clone({
1773
+ ...inst._zod.def,
1774
+ catchall: never()
1775
+ });
1776
+ inst.strip = () => inst.clone({
1777
+ ...inst._zod.def,
1778
+ catchall: void 0
1779
+ });
1780
+ inst.extend = (incoming) => {
1781
+ return extend$1(inst, incoming);
1782
+ };
1783
+ inst.safeExtend = (incoming) => {
1784
+ return safeExtend(inst, incoming);
1785
+ };
1786
+ inst.merge = (other) => merge(inst, other);
1787
+ inst.pick = (mask) => pick(inst, mask);
1788
+ inst.omit = (mask) => omit(inst, mask);
1789
+ inst.partial = (...args) => partial(ZodOptional, inst, args[0]);
1790
+ inst.required = (...args) => required(ZodNonOptional, inst, args[0]);
1791
+ });
1792
+ function object(shape, params) {
1793
+ return new ZodObject({
1794
+ type: "object",
1795
+ shape: shape ?? {},
1796
+ ...normalizeParams(params)
1797
+ });
1798
+ }
1799
+ const ZodUnion = /* @__PURE__ */ $constructor("ZodUnion", (inst, def$1) => {
1800
+ $ZodUnion.init(inst, def$1);
1801
+ ZodType.init(inst, def$1);
1802
+ inst.options = def$1.options;
1803
+ });
1804
+ function union(options, params) {
1805
+ return new ZodUnion({
1806
+ type: "union",
1807
+ options,
1808
+ ...normalizeParams(params)
1809
+ });
1810
+ }
1811
+ const ZodIntersection = /* @__PURE__ */ $constructor("ZodIntersection", (inst, def$1) => {
1812
+ $ZodIntersection.init(inst, def$1);
1813
+ ZodType.init(inst, def$1);
1814
+ });
1815
+ function intersection(left, right) {
1816
+ return new ZodIntersection({
1817
+ type: "intersection",
1818
+ left,
1819
+ right
1820
+ });
1821
+ }
1822
+ const ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def$1) => {
1823
+ $ZodEnum.init(inst, def$1);
1824
+ ZodType.init(inst, def$1);
1825
+ inst.enum = def$1.entries;
1826
+ inst.options = Object.values(def$1.entries);
1827
+ const keys = new Set(Object.keys(def$1.entries));
1828
+ inst.extract = (values, params) => {
1829
+ const newEntries = {};
1830
+ for (const value of values) if (keys.has(value)) newEntries[value] = def$1.entries[value];
1831
+ else throw new Error(`Key ${value} not found in enum`);
1832
+ return new ZodEnum({
1833
+ ...def$1,
1834
+ checks: [],
1835
+ ...normalizeParams(params),
1836
+ entries: newEntries
1837
+ });
1838
+ };
1839
+ inst.exclude = (values, params) => {
1840
+ const newEntries = { ...def$1.entries };
1841
+ for (const value of values) if (keys.has(value)) delete newEntries[value];
1842
+ else throw new Error(`Key ${value} not found in enum`);
1843
+ return new ZodEnum({
1844
+ ...def$1,
1845
+ checks: [],
1846
+ ...normalizeParams(params),
1847
+ entries: newEntries
1848
+ });
1849
+ };
1850
+ });
1851
+ function _enum(values, params) {
1852
+ return new ZodEnum({
1853
+ type: "enum",
1854
+ entries: Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values,
1855
+ ...normalizeParams(params)
1856
+ });
1857
+ }
1858
+ const ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def$1) => {
1859
+ $ZodTransform.init(inst, def$1);
1860
+ ZodType.init(inst, def$1);
1861
+ inst._zod.parse = (payload, _ctx) => {
1862
+ if (_ctx.direction === "backward") throw new $ZodEncodeError(inst.constructor.name);
1863
+ payload.addIssue = (issue$1) => {
1864
+ if (typeof issue$1 === "string") payload.issues.push(issue(issue$1, payload.value, def$1));
1865
+ else {
1866
+ const _issue = issue$1;
1867
+ if (_issue.fatal) _issue.continue = false;
1868
+ _issue.code ?? (_issue.code = "custom");
1869
+ _issue.input ?? (_issue.input = payload.value);
1870
+ _issue.inst ?? (_issue.inst = inst);
1871
+ payload.issues.push(issue(_issue));
1872
+ }
1873
+ };
1874
+ const output = def$1.transform(payload.value, payload);
1875
+ if (output instanceof Promise) return output.then((output$1) => {
1876
+ payload.value = output$1;
1877
+ return payload;
1878
+ });
1879
+ payload.value = output;
1880
+ return payload;
1881
+ };
1882
+ });
1883
+ function transform(fn) {
1884
+ return new ZodTransform({
1885
+ type: "transform",
1886
+ transform: fn
1887
+ });
1888
+ }
1889
+ const ZodOptional = /* @__PURE__ */ $constructor("ZodOptional", (inst, def$1) => {
1890
+ $ZodOptional.init(inst, def$1);
1891
+ ZodType.init(inst, def$1);
1892
+ inst.unwrap = () => inst._zod.def.innerType;
1893
+ });
1894
+ function optional(innerType) {
1895
+ return new ZodOptional({
1896
+ type: "optional",
1897
+ innerType
1898
+ });
1899
+ }
1900
+ const ZodNullable = /* @__PURE__ */ $constructor("ZodNullable", (inst, def$1) => {
1901
+ $ZodNullable.init(inst, def$1);
1902
+ ZodType.init(inst, def$1);
1903
+ inst.unwrap = () => inst._zod.def.innerType;
1904
+ });
1905
+ function nullable(innerType) {
1906
+ return new ZodNullable({
1907
+ type: "nullable",
1908
+ innerType
1909
+ });
1910
+ }
1911
+ const ZodDefault = /* @__PURE__ */ $constructor("ZodDefault", (inst, def$1) => {
1912
+ $ZodDefault.init(inst, def$1);
1913
+ ZodType.init(inst, def$1);
1914
+ inst.unwrap = () => inst._zod.def.innerType;
1915
+ inst.removeDefault = inst.unwrap;
1916
+ });
1917
+ function _default(innerType, defaultValue) {
1918
+ return new ZodDefault({
1919
+ type: "default",
1920
+ innerType,
1921
+ get defaultValue() {
1922
+ return typeof defaultValue === "function" ? defaultValue() : shallowClone(defaultValue);
1923
+ }
1924
+ });
1925
+ }
1926
+ const ZodPrefault = /* @__PURE__ */ $constructor("ZodPrefault", (inst, def$1) => {
1927
+ $ZodPrefault.init(inst, def$1);
1928
+ ZodType.init(inst, def$1);
1929
+ inst.unwrap = () => inst._zod.def.innerType;
1930
+ });
1931
+ function prefault(innerType, defaultValue) {
1932
+ return new ZodPrefault({
1933
+ type: "prefault",
1934
+ innerType,
1935
+ get defaultValue() {
1936
+ return typeof defaultValue === "function" ? defaultValue() : shallowClone(defaultValue);
1937
+ }
1938
+ });
1939
+ }
1940
+ const ZodNonOptional = /* @__PURE__ */ $constructor("ZodNonOptional", (inst, def$1) => {
1941
+ $ZodNonOptional.init(inst, def$1);
1942
+ ZodType.init(inst, def$1);
1943
+ inst.unwrap = () => inst._zod.def.innerType;
1944
+ });
1945
+ function nonoptional(innerType, params) {
1946
+ return new ZodNonOptional({
1947
+ type: "nonoptional",
1948
+ innerType,
1949
+ ...normalizeParams(params)
1950
+ });
1951
+ }
1952
+ const ZodCatch = /* @__PURE__ */ $constructor("ZodCatch", (inst, def$1) => {
1953
+ $ZodCatch.init(inst, def$1);
1954
+ ZodType.init(inst, def$1);
1955
+ inst.unwrap = () => inst._zod.def.innerType;
1956
+ inst.removeCatch = inst.unwrap;
1957
+ });
1958
+ function _catch(innerType, catchValue) {
1959
+ return new ZodCatch({
1960
+ type: "catch",
1961
+ innerType,
1962
+ catchValue: typeof catchValue === "function" ? catchValue : () => catchValue
1963
+ });
1964
+ }
1965
+ const ZodPipe = /* @__PURE__ */ $constructor("ZodPipe", (inst, def$1) => {
1966
+ $ZodPipe.init(inst, def$1);
1967
+ ZodType.init(inst, def$1);
1968
+ inst.in = def$1.in;
1969
+ inst.out = def$1.out;
1970
+ });
1971
+ function pipe(in_, out) {
1972
+ return new ZodPipe({
1973
+ type: "pipe",
1974
+ in: in_,
1975
+ out
1976
+ });
1977
+ }
1978
+ const ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def$1) => {
1979
+ $ZodReadonly.init(inst, def$1);
1980
+ ZodType.init(inst, def$1);
1981
+ inst.unwrap = () => inst._zod.def.innerType;
1982
+ });
1983
+ function readonly$1(innerType) {
1984
+ return new ZodReadonly({
1985
+ type: "readonly",
1986
+ innerType
1987
+ });
1988
+ }
1989
+ const ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def$1) => {
1990
+ $ZodCustom.init(inst, def$1);
1991
+ ZodType.init(inst, def$1);
1992
+ });
1993
+ function refine(fn, _params = {}) {
1994
+ return _refine(ZodCustom, fn, _params);
1995
+ }
1996
+ function superRefine(fn) {
1997
+ return _superRefine(fn);
1998
+ }
1999
+
2000
+ //#endregion
2001
+ //#region src/models/shared/ItemEntityType.ts
2002
+ const ItemEntityTypePropertyNames = getPropertyNames();
2003
+ const createItemEntityTypeSchema = (schema) => object({ type: schema });
2004
+
2005
+ //#endregion
2006
+ //#region src/models/shared/ItemMetadata.ts
2007
+ var ItemMetadata = class {
2008
+ createdAt = /* @__PURE__ */ new Date();
2009
+ deletedAt = null;
2010
+ updatedAt = /* @__PURE__ */ new Date();
2011
+ };
2012
+ const ItemMetadataPropertyNames = getPropertyNames();
2013
+ const itemMetadataSchema = object({
2014
+ createdAt: date(),
2015
+ deletedAt: date().nullable(),
2016
+ updatedAt: date()
2017
+ });
2018
+
55
2019
  //#endregion
56
2020
  //#region src/models/shared/Operation.ts
57
2021
  let Operation = /* @__PURE__ */ function(Operation$1) {
@@ -65,16 +2029,2185 @@ let Operation = /* @__PURE__ */ function(Operation$1) {
65
2029
  }({});
66
2030
 
67
2031
  //#endregion
68
- //#region src/services/azure/isNull.ts
69
- const isNull = (key) => `(${UnaryOperator.not}(${key} ${BinaryOperator.ne} ${Literal.NaN}) ${UnaryOperator.or} ${key} ${BinaryOperator.eq} 'null')`;
2032
+ //#region ../../node_modules/.pnpm/@vue+shared@3.5.22/node_modules/@vue/shared/dist/shared.esm-bundler.js
2033
+ /**
2034
+ * @vue/shared v3.5.22
2035
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
2036
+ * @license MIT
2037
+ **/
2038
+ /* @__NO_SIDE_EFFECTS__ */
2039
+ function makeMap(str) {
2040
+ const map$1 = /* @__PURE__ */ Object.create(null);
2041
+ for (const key of str.split(",")) map$1[key] = 1;
2042
+ return (val) => val in map$1;
2043
+ }
2044
+ const EMPTY_OBJ = Object.freeze({});
2045
+ const EMPTY_ARR = Object.freeze([]);
2046
+ const NOOP = () => {};
2047
+ const NO = () => false;
2048
+ const extend = Object.assign;
2049
+ const remove = (arr, el) => {
2050
+ const i = arr.indexOf(el);
2051
+ if (i > -1) arr.splice(i, 1);
2052
+ };
2053
+ const hasOwnProperty$1 = Object.prototype.hasOwnProperty;
2054
+ const hasOwn = (val, key) => hasOwnProperty$1.call(val, key);
2055
+ const isArray = Array.isArray;
2056
+ const isMap = (val) => toTypeString(val) === "[object Map]";
2057
+ const isSet = (val) => toTypeString(val) === "[object Set]";
2058
+ const isFunction = (val) => typeof val === "function";
2059
+ const isString = (val) => typeof val === "string";
2060
+ const isSymbol = (val) => typeof val === "symbol";
2061
+ const isObject$1 = (val) => val !== null && typeof val === "object";
2062
+ const isPromise = (val) => {
2063
+ return (isObject$1(val) || isFunction(val)) && isFunction(val.then) && isFunction(val.catch);
2064
+ };
2065
+ const objectToString = Object.prototype.toString;
2066
+ const toTypeString = (value) => objectToString.call(value);
2067
+ const toRawType = (value) => {
2068
+ return toTypeString(value).slice(8, -1);
2069
+ };
2070
+ const isPlainObject$1 = (val) => toTypeString(val) === "[object Object]";
2071
+ const isIntegerKey = (key) => isString(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key;
2072
+ const cacheStringFunction$1 = (fn) => {
2073
+ const cache = /* @__PURE__ */ Object.create(null);
2074
+ return ((str) => {
2075
+ return cache[str] || (cache[str] = fn(str));
2076
+ });
2077
+ };
2078
+ const camelizeRE$1 = /-\w/g;
2079
+ const camelize$1 = cacheStringFunction$1((str) => {
2080
+ return str.replace(camelizeRE$1, (c) => c.slice(1).toUpperCase());
2081
+ });
2082
+ const hyphenateRE$1 = /\B([A-Z])/g;
2083
+ const hyphenate$1 = cacheStringFunction$1((str) => str.replace(hyphenateRE$1, "-$1").toLowerCase());
2084
+ const capitalize$1 = cacheStringFunction$1((str) => {
2085
+ return str.charAt(0).toUpperCase() + str.slice(1);
2086
+ });
2087
+ const toHandlerKey = cacheStringFunction$1((str) => {
2088
+ return str ? `on${capitalize$1(str)}` : ``;
2089
+ });
2090
+ const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
2091
+ const def = (obj, key, value, writable = false) => {
2092
+ Object.defineProperty(obj, key, {
2093
+ configurable: true,
2094
+ enumerable: false,
2095
+ writable,
2096
+ value
2097
+ });
2098
+ };
2099
+ let _globalThis;
2100
+ const getGlobalThis = () => {
2101
+ return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
2102
+ };
2103
+ const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;
2104
+ const isBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs + `,async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`);
70
2105
 
71
2106
  //#endregion
72
- //#region src/services/azure/isPartitionKey.ts
73
- const isPartitionKey = (partitionKey, operator = BinaryOperator.eq) => `PartitionKey ${operator} '${partitionKey}'`;
2107
+ //#region ../../node_modules/.pnpm/@vue+reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js
2108
+ function warn$2(msg, ...args) {
2109
+ console.warn(`[Vue warn] ${msg}`, ...args);
2110
+ }
2111
+ let activeEffectScope;
2112
+ function getCurrentScope() {
2113
+ return activeEffectScope;
2114
+ }
2115
+ let activeSub;
2116
+ const pausedQueueEffects = /* @__PURE__ */ new WeakSet();
2117
+ var ReactiveEffect = class {
2118
+ constructor(fn) {
2119
+ this.fn = fn;
2120
+ /**
2121
+ * @internal
2122
+ */
2123
+ this.deps = void 0;
2124
+ /**
2125
+ * @internal
2126
+ */
2127
+ this.depsTail = void 0;
2128
+ /**
2129
+ * @internal
2130
+ */
2131
+ this.flags = 5;
2132
+ /**
2133
+ * @internal
2134
+ */
2135
+ this.next = void 0;
2136
+ /**
2137
+ * @internal
2138
+ */
2139
+ this.cleanup = void 0;
2140
+ this.scheduler = void 0;
2141
+ if (activeEffectScope && activeEffectScope.active) activeEffectScope.effects.push(this);
2142
+ }
2143
+ pause() {
2144
+ this.flags |= 64;
2145
+ }
2146
+ resume() {
2147
+ if (this.flags & 64) {
2148
+ this.flags &= -65;
2149
+ if (pausedQueueEffects.has(this)) {
2150
+ pausedQueueEffects.delete(this);
2151
+ this.trigger();
2152
+ }
2153
+ }
2154
+ }
2155
+ /**
2156
+ * @internal
2157
+ */
2158
+ notify() {
2159
+ if (this.flags & 2 && !(this.flags & 32)) return;
2160
+ if (!(this.flags & 8)) batch(this);
2161
+ }
2162
+ run() {
2163
+ if (!(this.flags & 1)) return this.fn();
2164
+ this.flags |= 2;
2165
+ cleanupEffect(this);
2166
+ prepareDeps(this);
2167
+ const prevEffect = activeSub;
2168
+ const prevShouldTrack = shouldTrack;
2169
+ activeSub = this;
2170
+ shouldTrack = true;
2171
+ try {
2172
+ return this.fn();
2173
+ } finally {
2174
+ if (activeSub !== this) warn$2("Active effect was not restored correctly - this is likely a Vue internal bug.");
2175
+ cleanupDeps(this);
2176
+ activeSub = prevEffect;
2177
+ shouldTrack = prevShouldTrack;
2178
+ this.flags &= -3;
2179
+ }
2180
+ }
2181
+ stop() {
2182
+ if (this.flags & 1) {
2183
+ for (let link = this.deps; link; link = link.nextDep) removeSub(link);
2184
+ this.deps = this.depsTail = void 0;
2185
+ cleanupEffect(this);
2186
+ this.onStop && this.onStop();
2187
+ this.flags &= -2;
2188
+ }
2189
+ }
2190
+ trigger() {
2191
+ if (this.flags & 64) pausedQueueEffects.add(this);
2192
+ else if (this.scheduler) this.scheduler();
2193
+ else this.runIfDirty();
2194
+ }
2195
+ /**
2196
+ * @internal
2197
+ */
2198
+ runIfDirty() {
2199
+ if (isDirty(this)) this.run();
2200
+ }
2201
+ get dirty() {
2202
+ return isDirty(this);
2203
+ }
2204
+ };
2205
+ let batchDepth = 0;
2206
+ let batchedSub;
2207
+ let batchedComputed;
2208
+ function batch(sub, isComputed = false) {
2209
+ sub.flags |= 8;
2210
+ if (isComputed) {
2211
+ sub.next = batchedComputed;
2212
+ batchedComputed = sub;
2213
+ return;
2214
+ }
2215
+ sub.next = batchedSub;
2216
+ batchedSub = sub;
2217
+ }
2218
+ function startBatch() {
2219
+ batchDepth++;
2220
+ }
2221
+ function endBatch() {
2222
+ if (--batchDepth > 0) return;
2223
+ if (batchedComputed) {
2224
+ let e = batchedComputed;
2225
+ batchedComputed = void 0;
2226
+ while (e) {
2227
+ const next = e.next;
2228
+ e.next = void 0;
2229
+ e.flags &= -9;
2230
+ e = next;
2231
+ }
2232
+ }
2233
+ let error;
2234
+ while (batchedSub) {
2235
+ let e = batchedSub;
2236
+ batchedSub = void 0;
2237
+ while (e) {
2238
+ const next = e.next;
2239
+ e.next = void 0;
2240
+ e.flags &= -9;
2241
+ if (e.flags & 1) try {
2242
+ e.trigger();
2243
+ } catch (err) {
2244
+ if (!error) error = err;
2245
+ }
2246
+ e = next;
2247
+ }
2248
+ }
2249
+ if (error) throw error;
2250
+ }
2251
+ function prepareDeps(sub) {
2252
+ for (let link = sub.deps; link; link = link.nextDep) {
2253
+ link.version = -1;
2254
+ link.prevActiveLink = link.dep.activeLink;
2255
+ link.dep.activeLink = link;
2256
+ }
2257
+ }
2258
+ function cleanupDeps(sub) {
2259
+ let head;
2260
+ let tail = sub.depsTail;
2261
+ let link = tail;
2262
+ while (link) {
2263
+ const prev = link.prevDep;
2264
+ if (link.version === -1) {
2265
+ if (link === tail) tail = prev;
2266
+ removeSub(link);
2267
+ removeDep(link);
2268
+ } else head = link;
2269
+ link.dep.activeLink = link.prevActiveLink;
2270
+ link.prevActiveLink = void 0;
2271
+ link = prev;
2272
+ }
2273
+ sub.deps = head;
2274
+ sub.depsTail = tail;
2275
+ }
2276
+ function isDirty(sub) {
2277
+ for (let link = sub.deps; link; link = link.nextDep) if (link.dep.version !== link.version || link.dep.computed && (refreshComputed(link.dep.computed) || link.dep.version !== link.version)) return true;
2278
+ if (sub._dirty) return true;
2279
+ return false;
2280
+ }
2281
+ function refreshComputed(computed$1) {
2282
+ if (computed$1.flags & 4 && !(computed$1.flags & 16)) return;
2283
+ computed$1.flags &= -17;
2284
+ if (computed$1.globalVersion === globalVersion) return;
2285
+ computed$1.globalVersion = globalVersion;
2286
+ if (!computed$1.isSSR && computed$1.flags & 128 && (!computed$1.deps && !computed$1._dirty || !isDirty(computed$1))) return;
2287
+ computed$1.flags |= 2;
2288
+ const dep = computed$1.dep;
2289
+ const prevSub = activeSub;
2290
+ const prevShouldTrack = shouldTrack;
2291
+ activeSub = computed$1;
2292
+ shouldTrack = true;
2293
+ try {
2294
+ prepareDeps(computed$1);
2295
+ const value = computed$1.fn(computed$1._value);
2296
+ if (dep.version === 0 || hasChanged(value, computed$1._value)) {
2297
+ computed$1.flags |= 128;
2298
+ computed$1._value = value;
2299
+ dep.version++;
2300
+ }
2301
+ } catch (err) {
2302
+ dep.version++;
2303
+ throw err;
2304
+ } finally {
2305
+ activeSub = prevSub;
2306
+ shouldTrack = prevShouldTrack;
2307
+ cleanupDeps(computed$1);
2308
+ computed$1.flags &= -3;
2309
+ }
2310
+ }
2311
+ function removeSub(link, soft = false) {
2312
+ const { dep, prevSub, nextSub } = link;
2313
+ if (prevSub) {
2314
+ prevSub.nextSub = nextSub;
2315
+ link.prevSub = void 0;
2316
+ }
2317
+ if (nextSub) {
2318
+ nextSub.prevSub = prevSub;
2319
+ link.nextSub = void 0;
2320
+ }
2321
+ if (dep.subsHead === link) dep.subsHead = nextSub;
2322
+ if (dep.subs === link) {
2323
+ dep.subs = prevSub;
2324
+ if (!prevSub && dep.computed) {
2325
+ dep.computed.flags &= -5;
2326
+ for (let l = dep.computed.deps; l; l = l.nextDep) removeSub(l, true);
2327
+ }
2328
+ }
2329
+ if (!soft && !--dep.sc && dep.map) dep.map.delete(dep.key);
2330
+ }
2331
+ function removeDep(link) {
2332
+ const { prevDep, nextDep } = link;
2333
+ if (prevDep) {
2334
+ prevDep.nextDep = nextDep;
2335
+ link.prevDep = void 0;
2336
+ }
2337
+ if (nextDep) {
2338
+ nextDep.prevDep = prevDep;
2339
+ link.nextDep = void 0;
2340
+ }
2341
+ }
2342
+ let shouldTrack = true;
2343
+ const trackStack = [];
2344
+ function pauseTracking() {
2345
+ trackStack.push(shouldTrack);
2346
+ shouldTrack = false;
2347
+ }
2348
+ function resetTracking() {
2349
+ const last = trackStack.pop();
2350
+ shouldTrack = last === void 0 ? true : last;
2351
+ }
2352
+ function cleanupEffect(e) {
2353
+ const { cleanup } = e;
2354
+ e.cleanup = void 0;
2355
+ if (cleanup) {
2356
+ const prevSub = activeSub;
2357
+ activeSub = void 0;
2358
+ try {
2359
+ cleanup();
2360
+ } finally {
2361
+ activeSub = prevSub;
2362
+ }
2363
+ }
2364
+ }
2365
+ let globalVersion = 0;
2366
+ var Link = class {
2367
+ constructor(sub, dep) {
2368
+ this.sub = sub;
2369
+ this.dep = dep;
2370
+ this.version = dep.version;
2371
+ this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
2372
+ }
2373
+ };
2374
+ var Dep = class {
2375
+ constructor(computed$1) {
2376
+ this.computed = computed$1;
2377
+ this.version = 0;
2378
+ /**
2379
+ * Link between this dep and the current active effect
2380
+ */
2381
+ this.activeLink = void 0;
2382
+ /**
2383
+ * Doubly linked list representing the subscribing effects (tail)
2384
+ */
2385
+ this.subs = void 0;
2386
+ /**
2387
+ * For object property deps cleanup
2388
+ */
2389
+ this.map = void 0;
2390
+ this.key = void 0;
2391
+ /**
2392
+ * Subscriber counter
2393
+ */
2394
+ this.sc = 0;
2395
+ /**
2396
+ * @internal
2397
+ */
2398
+ this.__v_skip = true;
2399
+ this.subsHead = void 0;
2400
+ }
2401
+ track(debugInfo) {
2402
+ if (!activeSub || !shouldTrack || activeSub === this.computed) return;
2403
+ let link = this.activeLink;
2404
+ if (link === void 0 || link.sub !== activeSub) {
2405
+ link = this.activeLink = new Link(activeSub, this);
2406
+ if (!activeSub.deps) activeSub.deps = activeSub.depsTail = link;
2407
+ else {
2408
+ link.prevDep = activeSub.depsTail;
2409
+ activeSub.depsTail.nextDep = link;
2410
+ activeSub.depsTail = link;
2411
+ }
2412
+ addSub(link);
2413
+ } else if (link.version === -1) {
2414
+ link.version = this.version;
2415
+ if (link.nextDep) {
2416
+ const next = link.nextDep;
2417
+ next.prevDep = link.prevDep;
2418
+ if (link.prevDep) link.prevDep.nextDep = next;
2419
+ link.prevDep = activeSub.depsTail;
2420
+ link.nextDep = void 0;
2421
+ activeSub.depsTail.nextDep = link;
2422
+ activeSub.depsTail = link;
2423
+ if (activeSub.deps === link) activeSub.deps = next;
2424
+ }
2425
+ }
2426
+ if (activeSub.onTrack) activeSub.onTrack(extend({ effect: activeSub }, debugInfo));
2427
+ return link;
2428
+ }
2429
+ trigger(debugInfo) {
2430
+ this.version++;
2431
+ globalVersion++;
2432
+ this.notify(debugInfo);
2433
+ }
2434
+ notify(debugInfo) {
2435
+ startBatch();
2436
+ try {
2437
+ for (let head = this.subsHead; head; head = head.nextSub) if (head.sub.onTrigger && !(head.sub.flags & 8)) head.sub.onTrigger(extend({ effect: head.sub }, debugInfo));
2438
+ for (let link = this.subs; link; link = link.prevSub) if (link.sub.notify()) link.sub.dep.notify();
2439
+ } finally {
2440
+ endBatch();
2441
+ }
2442
+ }
2443
+ };
2444
+ function addSub(link) {
2445
+ link.dep.sc++;
2446
+ if (link.sub.flags & 4) {
2447
+ const computed$1 = link.dep.computed;
2448
+ if (computed$1 && !link.dep.subs) {
2449
+ computed$1.flags |= 20;
2450
+ for (let l = computed$1.deps; l; l = l.nextDep) addSub(l);
2451
+ }
2452
+ const currentTail = link.dep.subs;
2453
+ if (currentTail !== link) {
2454
+ link.prevSub = currentTail;
2455
+ if (currentTail) currentTail.nextSub = link;
2456
+ }
2457
+ if (link.dep.subsHead === void 0) link.dep.subsHead = link;
2458
+ link.dep.subs = link;
2459
+ }
2460
+ }
2461
+ const targetMap = /* @__PURE__ */ new WeakMap();
2462
+ const ITERATE_KEY = Symbol("Object iterate");
2463
+ const MAP_KEY_ITERATE_KEY = Symbol("Map keys iterate");
2464
+ const ARRAY_ITERATE_KEY = Symbol("Array iterate");
2465
+ function track(target, type, key) {
2466
+ if (shouldTrack && activeSub) {
2467
+ let depsMap = targetMap.get(target);
2468
+ if (!depsMap) targetMap.set(target, depsMap = /* @__PURE__ */ new Map());
2469
+ let dep = depsMap.get(key);
2470
+ if (!dep) {
2471
+ depsMap.set(key, dep = new Dep());
2472
+ dep.map = depsMap;
2473
+ dep.key = key;
2474
+ }
2475
+ dep.track({
2476
+ target,
2477
+ type,
2478
+ key
2479
+ });
2480
+ }
2481
+ }
2482
+ function trigger(target, type, key, newValue, oldValue, oldTarget) {
2483
+ const depsMap = targetMap.get(target);
2484
+ if (!depsMap) {
2485
+ globalVersion++;
2486
+ return;
2487
+ }
2488
+ const run = (dep) => {
2489
+ if (dep) dep.trigger({
2490
+ target,
2491
+ type,
2492
+ key,
2493
+ newValue,
2494
+ oldValue,
2495
+ oldTarget
2496
+ });
2497
+ };
2498
+ startBatch();
2499
+ if (type === "clear") depsMap.forEach(run);
2500
+ else {
2501
+ const targetIsArray = isArray(target);
2502
+ const isArrayIndex = targetIsArray && isIntegerKey(key);
2503
+ if (targetIsArray && key === "length") {
2504
+ const newLength = Number(newValue);
2505
+ depsMap.forEach((dep, key2) => {
2506
+ if (key2 === "length" || key2 === ARRAY_ITERATE_KEY || !isSymbol(key2) && key2 >= newLength) run(dep);
2507
+ });
2508
+ } else {
2509
+ if (key !== void 0 || depsMap.has(void 0)) run(depsMap.get(key));
2510
+ if (isArrayIndex) run(depsMap.get(ARRAY_ITERATE_KEY));
2511
+ switch (type) {
2512
+ case "add":
2513
+ if (!targetIsArray) {
2514
+ run(depsMap.get(ITERATE_KEY));
2515
+ if (isMap(target)) run(depsMap.get(MAP_KEY_ITERATE_KEY));
2516
+ } else if (isArrayIndex) run(depsMap.get("length"));
2517
+ break;
2518
+ case "delete":
2519
+ if (!targetIsArray) {
2520
+ run(depsMap.get(ITERATE_KEY));
2521
+ if (isMap(target)) run(depsMap.get(MAP_KEY_ITERATE_KEY));
2522
+ }
2523
+ break;
2524
+ case "set":
2525
+ if (isMap(target)) run(depsMap.get(ITERATE_KEY));
2526
+ break;
2527
+ }
2528
+ }
2529
+ }
2530
+ endBatch();
2531
+ }
2532
+ function reactiveReadArray(array$1) {
2533
+ const raw = toRaw(array$1);
2534
+ if (raw === array$1) return raw;
2535
+ track(raw, "iterate", ARRAY_ITERATE_KEY);
2536
+ return isShallow(array$1) ? raw : raw.map(toReactive);
2537
+ }
2538
+ function shallowReadArray(arr) {
2539
+ track(arr = toRaw(arr), "iterate", ARRAY_ITERATE_KEY);
2540
+ return arr;
2541
+ }
2542
+ const arrayInstrumentations = {
2543
+ __proto__: null,
2544
+ [Symbol.iterator]() {
2545
+ return iterator(this, Symbol.iterator, toReactive);
2546
+ },
2547
+ concat(...args) {
2548
+ return reactiveReadArray(this).concat(...args.map((x) => isArray(x) ? reactiveReadArray(x) : x));
2549
+ },
2550
+ entries() {
2551
+ return iterator(this, "entries", (value) => {
2552
+ value[1] = toReactive(value[1]);
2553
+ return value;
2554
+ });
2555
+ },
2556
+ every(fn, thisArg) {
2557
+ return apply(this, "every", fn, thisArg, void 0, arguments);
2558
+ },
2559
+ filter(fn, thisArg) {
2560
+ return apply(this, "filter", fn, thisArg, (v) => v.map(toReactive), arguments);
2561
+ },
2562
+ find(fn, thisArg) {
2563
+ return apply(this, "find", fn, thisArg, toReactive, arguments);
2564
+ },
2565
+ findIndex(fn, thisArg) {
2566
+ return apply(this, "findIndex", fn, thisArg, void 0, arguments);
2567
+ },
2568
+ findLast(fn, thisArg) {
2569
+ return apply(this, "findLast", fn, thisArg, toReactive, arguments);
2570
+ },
2571
+ findLastIndex(fn, thisArg) {
2572
+ return apply(this, "findLastIndex", fn, thisArg, void 0, arguments);
2573
+ },
2574
+ forEach(fn, thisArg) {
2575
+ return apply(this, "forEach", fn, thisArg, void 0, arguments);
2576
+ },
2577
+ includes(...args) {
2578
+ return searchProxy(this, "includes", args);
2579
+ },
2580
+ indexOf(...args) {
2581
+ return searchProxy(this, "indexOf", args);
2582
+ },
2583
+ join(separator) {
2584
+ return reactiveReadArray(this).join(separator);
2585
+ },
2586
+ lastIndexOf(...args) {
2587
+ return searchProxy(this, "lastIndexOf", args);
2588
+ },
2589
+ map(fn, thisArg) {
2590
+ return apply(this, "map", fn, thisArg, void 0, arguments);
2591
+ },
2592
+ pop() {
2593
+ return noTracking(this, "pop");
2594
+ },
2595
+ push(...args) {
2596
+ return noTracking(this, "push", args);
2597
+ },
2598
+ reduce(fn, ...args) {
2599
+ return reduce(this, "reduce", fn, args);
2600
+ },
2601
+ reduceRight(fn, ...args) {
2602
+ return reduce(this, "reduceRight", fn, args);
2603
+ },
2604
+ shift() {
2605
+ return noTracking(this, "shift");
2606
+ },
2607
+ some(fn, thisArg) {
2608
+ return apply(this, "some", fn, thisArg, void 0, arguments);
2609
+ },
2610
+ splice(...args) {
2611
+ return noTracking(this, "splice", args);
2612
+ },
2613
+ toReversed() {
2614
+ return reactiveReadArray(this).toReversed();
2615
+ },
2616
+ toSorted(comparer) {
2617
+ return reactiveReadArray(this).toSorted(comparer);
2618
+ },
2619
+ toSpliced(...args) {
2620
+ return reactiveReadArray(this).toSpliced(...args);
2621
+ },
2622
+ unshift(...args) {
2623
+ return noTracking(this, "unshift", args);
2624
+ },
2625
+ values() {
2626
+ return iterator(this, "values", toReactive);
2627
+ }
2628
+ };
2629
+ function iterator(self$1, method, wrapValue) {
2630
+ const arr = shallowReadArray(self$1);
2631
+ const iter = arr[method]();
2632
+ if (arr !== self$1 && !isShallow(self$1)) {
2633
+ iter._next = iter.next;
2634
+ iter.next = () => {
2635
+ const result = iter._next();
2636
+ if (!result.done) result.value = wrapValue(result.value);
2637
+ return result;
2638
+ };
2639
+ }
2640
+ return iter;
2641
+ }
2642
+ const arrayProto = Array.prototype;
2643
+ function apply(self$1, method, fn, thisArg, wrappedRetFn, args) {
2644
+ const arr = shallowReadArray(self$1);
2645
+ const needsWrap = arr !== self$1 && !isShallow(self$1);
2646
+ const methodFn = arr[method];
2647
+ if (methodFn !== arrayProto[method]) {
2648
+ const result2 = methodFn.apply(self$1, args);
2649
+ return needsWrap ? toReactive(result2) : result2;
2650
+ }
2651
+ let wrappedFn = fn;
2652
+ if (arr !== self$1) {
2653
+ if (needsWrap) wrappedFn = function(item, index) {
2654
+ return fn.call(this, toReactive(item), index, self$1);
2655
+ };
2656
+ else if (fn.length > 2) wrappedFn = function(item, index) {
2657
+ return fn.call(this, item, index, self$1);
2658
+ };
2659
+ }
2660
+ const result = methodFn.call(arr, wrappedFn, thisArg);
2661
+ return needsWrap && wrappedRetFn ? wrappedRetFn(result) : result;
2662
+ }
2663
+ function reduce(self$1, method, fn, args) {
2664
+ const arr = shallowReadArray(self$1);
2665
+ let wrappedFn = fn;
2666
+ if (arr !== self$1) {
2667
+ if (!isShallow(self$1)) wrappedFn = function(acc, item, index) {
2668
+ return fn.call(this, acc, toReactive(item), index, self$1);
2669
+ };
2670
+ else if (fn.length > 3) wrappedFn = function(acc, item, index) {
2671
+ return fn.call(this, acc, item, index, self$1);
2672
+ };
2673
+ }
2674
+ return arr[method](wrappedFn, ...args);
2675
+ }
2676
+ function searchProxy(self$1, method, args) {
2677
+ const arr = toRaw(self$1);
2678
+ track(arr, "iterate", ARRAY_ITERATE_KEY);
2679
+ const res = arr[method](...args);
2680
+ if ((res === -1 || res === false) && isProxy(args[0])) {
2681
+ args[0] = toRaw(args[0]);
2682
+ return arr[method](...args);
2683
+ }
2684
+ return res;
2685
+ }
2686
+ function noTracking(self$1, method, args = []) {
2687
+ pauseTracking();
2688
+ startBatch();
2689
+ const res = toRaw(self$1)[method].apply(self$1, args);
2690
+ endBatch();
2691
+ resetTracking();
2692
+ return res;
2693
+ }
2694
+ const isNonTrackableKeys = /* @__PURE__ */ makeMap(`__proto__,__v_isRef,__isVue`);
2695
+ const builtInSymbols = new Set(/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((key) => key !== "arguments" && key !== "caller").map((key) => Symbol[key]).filter(isSymbol));
2696
+ function hasOwnProperty(key) {
2697
+ if (!isSymbol(key)) key = String(key);
2698
+ const obj = toRaw(this);
2699
+ track(obj, "has", key);
2700
+ return obj.hasOwnProperty(key);
2701
+ }
2702
+ var BaseReactiveHandler = class {
2703
+ constructor(_isReadonly = false, _isShallow = false) {
2704
+ this._isReadonly = _isReadonly;
2705
+ this._isShallow = _isShallow;
2706
+ }
2707
+ get(target, key, receiver) {
2708
+ if (key === "__v_skip") return target["__v_skip"];
2709
+ const isReadonly2 = this._isReadonly, isShallow2 = this._isShallow;
2710
+ if (key === "__v_isReactive") return !isReadonly2;
2711
+ else if (key === "__v_isReadonly") return isReadonly2;
2712
+ else if (key === "__v_isShallow") return isShallow2;
2713
+ else if (key === "__v_raw") {
2714
+ if (receiver === (isReadonly2 ? isShallow2 ? shallowReadonlyMap : readonlyMap : isShallow2 ? shallowReactiveMap : reactiveMap).get(target) || Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) return target;
2715
+ return;
2716
+ }
2717
+ const targetIsArray = isArray(target);
2718
+ if (!isReadonly2) {
2719
+ let fn;
2720
+ if (targetIsArray && (fn = arrayInstrumentations[key])) return fn;
2721
+ if (key === "hasOwnProperty") return hasOwnProperty;
2722
+ }
2723
+ const res = Reflect.get(target, key, isRef(target) ? target : receiver);
2724
+ if (isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) return res;
2725
+ if (!isReadonly2) track(target, "get", key);
2726
+ if (isShallow2) return res;
2727
+ if (isRef(res)) {
2728
+ const value = targetIsArray && isIntegerKey(key) ? res : res.value;
2729
+ return isReadonly2 && isObject$1(value) ? readonly(value) : value;
2730
+ }
2731
+ if (isObject$1(res)) return isReadonly2 ? readonly(res) : reactive(res);
2732
+ return res;
2733
+ }
2734
+ };
2735
+ var MutableReactiveHandler = class extends BaseReactiveHandler {
2736
+ constructor(isShallow2 = false) {
2737
+ super(false, isShallow2);
2738
+ }
2739
+ set(target, key, value, receiver) {
2740
+ let oldValue = target[key];
2741
+ if (!this._isShallow) {
2742
+ const isOldValueReadonly = isReadonly(oldValue);
2743
+ if (!isShallow(value) && !isReadonly(value)) {
2744
+ oldValue = toRaw(oldValue);
2745
+ value = toRaw(value);
2746
+ }
2747
+ if (!isArray(target) && isRef(oldValue) && !isRef(value)) if (isOldValueReadonly) {
2748
+ warn$2(`Set operation on key "${String(key)}" failed: target is readonly.`, target[key]);
2749
+ return true;
2750
+ } else {
2751
+ oldValue.value = value;
2752
+ return true;
2753
+ }
2754
+ }
2755
+ const hadKey = isArray(target) && isIntegerKey(key) ? Number(key) < target.length : hasOwn(target, key);
2756
+ const result = Reflect.set(target, key, value, isRef(target) ? target : receiver);
2757
+ if (target === toRaw(receiver)) {
2758
+ if (!hadKey) trigger(target, "add", key, value);
2759
+ else if (hasChanged(value, oldValue)) trigger(target, "set", key, value, oldValue);
2760
+ }
2761
+ return result;
2762
+ }
2763
+ deleteProperty(target, key) {
2764
+ const hadKey = hasOwn(target, key);
2765
+ const oldValue = target[key];
2766
+ const result = Reflect.deleteProperty(target, key);
2767
+ if (result && hadKey) trigger(target, "delete", key, void 0, oldValue);
2768
+ return result;
2769
+ }
2770
+ has(target, key) {
2771
+ const result = Reflect.has(target, key);
2772
+ if (!isSymbol(key) || !builtInSymbols.has(key)) track(target, "has", key);
2773
+ return result;
2774
+ }
2775
+ ownKeys(target) {
2776
+ track(target, "iterate", isArray(target) ? "length" : ITERATE_KEY);
2777
+ return Reflect.ownKeys(target);
2778
+ }
2779
+ };
2780
+ var ReadonlyReactiveHandler = class extends BaseReactiveHandler {
2781
+ constructor(isShallow2 = false) {
2782
+ super(true, isShallow2);
2783
+ }
2784
+ set(target, key) {
2785
+ warn$2(`Set operation on key "${String(key)}" failed: target is readonly.`, target);
2786
+ return true;
2787
+ }
2788
+ deleteProperty(target, key) {
2789
+ warn$2(`Delete operation on key "${String(key)}" failed: target is readonly.`, target);
2790
+ return true;
2791
+ }
2792
+ };
2793
+ const mutableHandlers = /* @__PURE__ */ new MutableReactiveHandler();
2794
+ const readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler();
2795
+ const shallowReadonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(true);
2796
+ const toShallow = (value) => value;
2797
+ const getProto = (v) => Reflect.getPrototypeOf(v);
2798
+ function createIterableMethod(method, isReadonly2, isShallow2) {
2799
+ return function(...args) {
2800
+ const target = this["__v_raw"];
2801
+ const rawTarget = toRaw(target);
2802
+ const targetIsMap = isMap(rawTarget);
2803
+ const isPair = method === "entries" || method === Symbol.iterator && targetIsMap;
2804
+ const isKeyOnly = method === "keys" && targetIsMap;
2805
+ const innerIterator = target[method](...args);
2806
+ const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive;
2807
+ !isReadonly2 && track(rawTarget, "iterate", isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY);
2808
+ return {
2809
+ next() {
2810
+ const { value, done } = innerIterator.next();
2811
+ return done ? {
2812
+ value,
2813
+ done
2814
+ } : {
2815
+ value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),
2816
+ done
2817
+ };
2818
+ },
2819
+ [Symbol.iterator]() {
2820
+ return this;
2821
+ }
2822
+ };
2823
+ };
2824
+ }
2825
+ function createReadonlyMethod(type) {
2826
+ return function(...args) {
2827
+ {
2828
+ const key = args[0] ? `on key "${args[0]}" ` : ``;
2829
+ warn$2(`${capitalize$1(type)} operation ${key}failed: target is readonly.`, toRaw(this));
2830
+ }
2831
+ return type === "delete" ? false : type === "clear" ? void 0 : this;
2832
+ };
2833
+ }
2834
+ function createInstrumentations(readonly$2, shallow) {
2835
+ const instrumentations = {
2836
+ get(key) {
2837
+ const target = this["__v_raw"];
2838
+ const rawTarget = toRaw(target);
2839
+ const rawKey = toRaw(key);
2840
+ if (!readonly$2) {
2841
+ if (hasChanged(key, rawKey)) track(rawTarget, "get", key);
2842
+ track(rawTarget, "get", rawKey);
2843
+ }
2844
+ const { has } = getProto(rawTarget);
2845
+ const wrap = shallow ? toShallow : readonly$2 ? toReadonly : toReactive;
2846
+ if (has.call(rawTarget, key)) return wrap(target.get(key));
2847
+ else if (has.call(rawTarget, rawKey)) return wrap(target.get(rawKey));
2848
+ else if (target !== rawTarget) target.get(key);
2849
+ },
2850
+ get size() {
2851
+ const target = this["__v_raw"];
2852
+ !readonly$2 && track(toRaw(target), "iterate", ITERATE_KEY);
2853
+ return target.size;
2854
+ },
2855
+ has(key) {
2856
+ const target = this["__v_raw"];
2857
+ const rawTarget = toRaw(target);
2858
+ const rawKey = toRaw(key);
2859
+ if (!readonly$2) {
2860
+ if (hasChanged(key, rawKey)) track(rawTarget, "has", key);
2861
+ track(rawTarget, "has", rawKey);
2862
+ }
2863
+ return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey);
2864
+ },
2865
+ forEach(callback, thisArg) {
2866
+ const observed = this;
2867
+ const target = observed["__v_raw"];
2868
+ const rawTarget = toRaw(target);
2869
+ const wrap = shallow ? toShallow : readonly$2 ? toReadonly : toReactive;
2870
+ !readonly$2 && track(rawTarget, "iterate", ITERATE_KEY);
2871
+ return target.forEach((value, key) => {
2872
+ return callback.call(thisArg, wrap(value), wrap(key), observed);
2873
+ });
2874
+ }
2875
+ };
2876
+ extend(instrumentations, readonly$2 ? {
2877
+ add: createReadonlyMethod("add"),
2878
+ set: createReadonlyMethod("set"),
2879
+ delete: createReadonlyMethod("delete"),
2880
+ clear: createReadonlyMethod("clear")
2881
+ } : {
2882
+ add(value) {
2883
+ if (!shallow && !isShallow(value) && !isReadonly(value)) value = toRaw(value);
2884
+ const target = toRaw(this);
2885
+ if (!getProto(target).has.call(target, value)) {
2886
+ target.add(value);
2887
+ trigger(target, "add", value, value);
2888
+ }
2889
+ return this;
2890
+ },
2891
+ set(key, value) {
2892
+ if (!shallow && !isShallow(value) && !isReadonly(value)) value = toRaw(value);
2893
+ const target = toRaw(this);
2894
+ const { has, get } = getProto(target);
2895
+ let hadKey = has.call(target, key);
2896
+ if (!hadKey) {
2897
+ key = toRaw(key);
2898
+ hadKey = has.call(target, key);
2899
+ } else checkIdentityKeys(target, has, key);
2900
+ const oldValue = get.call(target, key);
2901
+ target.set(key, value);
2902
+ if (!hadKey) trigger(target, "add", key, value);
2903
+ else if (hasChanged(value, oldValue)) trigger(target, "set", key, value, oldValue);
2904
+ return this;
2905
+ },
2906
+ delete(key) {
2907
+ const target = toRaw(this);
2908
+ const { has, get } = getProto(target);
2909
+ let hadKey = has.call(target, key);
2910
+ if (!hadKey) {
2911
+ key = toRaw(key);
2912
+ hadKey = has.call(target, key);
2913
+ } else checkIdentityKeys(target, has, key);
2914
+ const oldValue = get ? get.call(target, key) : void 0;
2915
+ const result = target.delete(key);
2916
+ if (hadKey) trigger(target, "delete", key, void 0, oldValue);
2917
+ return result;
2918
+ },
2919
+ clear() {
2920
+ const target = toRaw(this);
2921
+ const hadItems = target.size !== 0;
2922
+ const oldTarget = isMap(target) ? new Map(target) : new Set(target);
2923
+ const result = target.clear();
2924
+ if (hadItems) trigger(target, "clear", void 0, void 0, oldTarget);
2925
+ return result;
2926
+ }
2927
+ });
2928
+ [
2929
+ "keys",
2930
+ "values",
2931
+ "entries",
2932
+ Symbol.iterator
2933
+ ].forEach((method) => {
2934
+ instrumentations[method] = createIterableMethod(method, readonly$2, shallow);
2935
+ });
2936
+ return instrumentations;
2937
+ }
2938
+ function createInstrumentationGetter(isReadonly2, shallow) {
2939
+ const instrumentations = createInstrumentations(isReadonly2, shallow);
2940
+ return (target, key, receiver) => {
2941
+ if (key === "__v_isReactive") return !isReadonly2;
2942
+ else if (key === "__v_isReadonly") return isReadonly2;
2943
+ else if (key === "__v_raw") return target;
2944
+ return Reflect.get(hasOwn(instrumentations, key) && key in target ? instrumentations : target, key, receiver);
2945
+ };
2946
+ }
2947
+ const mutableCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(false, false) };
2948
+ const readonlyCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(true, false) };
2949
+ const shallowReadonlyCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(true, true) };
2950
+ function checkIdentityKeys(target, has, key) {
2951
+ const rawKey = toRaw(key);
2952
+ if (rawKey !== key && has.call(target, rawKey)) {
2953
+ const type = toRawType(target);
2954
+ warn$2(`Reactive ${type} contains both the raw and reactive versions of the same object${type === `Map` ? ` as keys` : ``}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`);
2955
+ }
2956
+ }
2957
+ const reactiveMap = /* @__PURE__ */ new WeakMap();
2958
+ const shallowReactiveMap = /* @__PURE__ */ new WeakMap();
2959
+ const readonlyMap = /* @__PURE__ */ new WeakMap();
2960
+ const shallowReadonlyMap = /* @__PURE__ */ new WeakMap();
2961
+ function targetTypeMap(rawType) {
2962
+ switch (rawType) {
2963
+ case "Object":
2964
+ case "Array": return 1;
2965
+ case "Map":
2966
+ case "Set":
2967
+ case "WeakMap":
2968
+ case "WeakSet": return 2;
2969
+ default: return 0;
2970
+ }
2971
+ }
2972
+ function getTargetType(value) {
2973
+ return value["__v_skip"] || !Object.isExtensible(value) ? 0 : targetTypeMap(toRawType(value));
2974
+ }
2975
+ function reactive(target) {
2976
+ if (isReadonly(target)) return target;
2977
+ return createReactiveObject(target, false, mutableHandlers, mutableCollectionHandlers, reactiveMap);
2978
+ }
2979
+ function readonly(target) {
2980
+ return createReactiveObject(target, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap);
2981
+ }
2982
+ function shallowReadonly(target) {
2983
+ return createReactiveObject(target, true, shallowReadonlyHandlers, shallowReadonlyCollectionHandlers, shallowReadonlyMap);
2984
+ }
2985
+ function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandlers, proxyMap) {
2986
+ if (!isObject$1(target)) {
2987
+ warn$2(`value cannot be made ${isReadonly2 ? "readonly" : "reactive"}: ${String(target)}`);
2988
+ return target;
2989
+ }
2990
+ if (target["__v_raw"] && !(isReadonly2 && target["__v_isReactive"])) return target;
2991
+ const targetType = getTargetType(target);
2992
+ if (targetType === 0) return target;
2993
+ const existingProxy = proxyMap.get(target);
2994
+ if (existingProxy) return existingProxy;
2995
+ const proxy = new Proxy(target, targetType === 2 ? collectionHandlers : baseHandlers);
2996
+ proxyMap.set(target, proxy);
2997
+ return proxy;
2998
+ }
2999
+ function isReactive(value) {
3000
+ if (isReadonly(value)) return isReactive(value["__v_raw"]);
3001
+ return !!(value && value["__v_isReactive"]);
3002
+ }
3003
+ function isReadonly(value) {
3004
+ return !!(value && value["__v_isReadonly"]);
3005
+ }
3006
+ function isShallow(value) {
3007
+ return !!(value && value["__v_isShallow"]);
3008
+ }
3009
+ function isProxy(value) {
3010
+ return value ? !!value["__v_raw"] : false;
3011
+ }
3012
+ function toRaw(observed) {
3013
+ const raw = observed && observed["__v_raw"];
3014
+ return raw ? toRaw(raw) : observed;
3015
+ }
3016
+ function markRaw(value) {
3017
+ if (!hasOwn(value, "__v_skip") && Object.isExtensible(value)) def(value, "__v_skip", true);
3018
+ return value;
3019
+ }
3020
+ const toReactive = (value) => isObject$1(value) ? reactive(value) : value;
3021
+ const toReadonly = (value) => isObject$1(value) ? readonly(value) : value;
3022
+ function isRef(r) {
3023
+ return r ? r["__v_isRef"] === true : false;
3024
+ }
3025
+ function unref(ref2) {
3026
+ return isRef(ref2) ? ref2.value : ref2;
3027
+ }
3028
+ const shallowUnwrapHandlers = {
3029
+ get: (target, key, receiver) => key === "__v_raw" ? target : unref(Reflect.get(target, key, receiver)),
3030
+ set: (target, key, value, receiver) => {
3031
+ const oldValue = target[key];
3032
+ if (isRef(oldValue) && !isRef(value)) {
3033
+ oldValue.value = value;
3034
+ return true;
3035
+ } else return Reflect.set(target, key, value, receiver);
3036
+ }
3037
+ };
3038
+ function proxyRefs(objectWithRefs) {
3039
+ return isReactive(objectWithRefs) ? objectWithRefs : new Proxy(objectWithRefs, shallowUnwrapHandlers);
3040
+ }
3041
+ const INITIAL_WATCHER_VALUE = {};
3042
+ const cleanupMap = /* @__PURE__ */ new WeakMap();
3043
+ let activeWatcher = void 0;
3044
+ function onWatcherCleanup(cleanupFn, failSilently = false, owner = activeWatcher) {
3045
+ if (owner) {
3046
+ let cleanups = cleanupMap.get(owner);
3047
+ if (!cleanups) cleanupMap.set(owner, cleanups = []);
3048
+ cleanups.push(cleanupFn);
3049
+ } else if (!failSilently) warn$2(`onWatcherCleanup() was called when there was no active watcher to associate with.`);
3050
+ }
3051
+ function watch(source, cb, options = EMPTY_OBJ) {
3052
+ const { immediate, deep, once, scheduler, augmentJob, call } = options;
3053
+ const warnInvalidSource = (s) => {
3054
+ (options.onWarn || warn$2)(`Invalid watch source: `, s, `A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.`);
3055
+ };
3056
+ const reactiveGetter = (source2) => {
3057
+ if (deep) return source2;
3058
+ if (isShallow(source2) || deep === false || deep === 0) return traverse(source2, 1);
3059
+ return traverse(source2);
3060
+ };
3061
+ let effect$1;
3062
+ let getter;
3063
+ let cleanup;
3064
+ let boundCleanup;
3065
+ let forceTrigger = false;
3066
+ let isMultiSource = false;
3067
+ if (isRef(source)) {
3068
+ getter = () => source.value;
3069
+ forceTrigger = isShallow(source);
3070
+ } else if (isReactive(source)) {
3071
+ getter = () => reactiveGetter(source);
3072
+ forceTrigger = true;
3073
+ } else if (isArray(source)) {
3074
+ isMultiSource = true;
3075
+ forceTrigger = source.some((s) => isReactive(s) || isShallow(s));
3076
+ getter = () => source.map((s) => {
3077
+ if (isRef(s)) return s.value;
3078
+ else if (isReactive(s)) return reactiveGetter(s);
3079
+ else if (isFunction(s)) return call ? call(s, 2) : s();
3080
+ else warnInvalidSource(s);
3081
+ });
3082
+ } else if (isFunction(source)) if (cb) getter = call ? () => call(source, 2) : source;
3083
+ else getter = () => {
3084
+ if (cleanup) {
3085
+ pauseTracking();
3086
+ try {
3087
+ cleanup();
3088
+ } finally {
3089
+ resetTracking();
3090
+ }
3091
+ }
3092
+ const currentEffect = activeWatcher;
3093
+ activeWatcher = effect$1;
3094
+ try {
3095
+ return call ? call(source, 3, [boundCleanup]) : source(boundCleanup);
3096
+ } finally {
3097
+ activeWatcher = currentEffect;
3098
+ }
3099
+ };
3100
+ else {
3101
+ getter = NOOP;
3102
+ warnInvalidSource(source);
3103
+ }
3104
+ if (cb && deep) {
3105
+ const baseGetter = getter;
3106
+ const depth = deep === true ? Infinity : deep;
3107
+ getter = () => traverse(baseGetter(), depth);
3108
+ }
3109
+ const scope = getCurrentScope();
3110
+ const watchHandle = () => {
3111
+ effect$1.stop();
3112
+ if (scope && scope.active) remove(scope.effects, effect$1);
3113
+ };
3114
+ if (once && cb) {
3115
+ const _cb = cb;
3116
+ cb = (...args) => {
3117
+ _cb(...args);
3118
+ watchHandle();
3119
+ };
3120
+ }
3121
+ let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE;
3122
+ const job = (immediateFirstRun) => {
3123
+ if (!(effect$1.flags & 1) || !effect$1.dirty && !immediateFirstRun) return;
3124
+ if (cb) {
3125
+ const newValue = effect$1.run();
3126
+ if (deep || forceTrigger || (isMultiSource ? newValue.some((v, i) => hasChanged(v, oldValue[i])) : hasChanged(newValue, oldValue))) {
3127
+ if (cleanup) cleanup();
3128
+ const currentWatcher = activeWatcher;
3129
+ activeWatcher = effect$1;
3130
+ try {
3131
+ const args = [
3132
+ newValue,
3133
+ oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue,
3134
+ boundCleanup
3135
+ ];
3136
+ oldValue = newValue;
3137
+ call ? call(cb, 3, args) : cb(...args);
3138
+ } finally {
3139
+ activeWatcher = currentWatcher;
3140
+ }
3141
+ }
3142
+ } else effect$1.run();
3143
+ };
3144
+ if (augmentJob) augmentJob(job);
3145
+ effect$1 = new ReactiveEffect(getter);
3146
+ effect$1.scheduler = scheduler ? () => scheduler(job, false) : job;
3147
+ boundCleanup = (fn) => onWatcherCleanup(fn, false, effect$1);
3148
+ cleanup = effect$1.onStop = () => {
3149
+ const cleanups = cleanupMap.get(effect$1);
3150
+ if (cleanups) {
3151
+ if (call) call(cleanups, 4);
3152
+ else for (const cleanup2 of cleanups) cleanup2();
3153
+ cleanupMap.delete(effect$1);
3154
+ }
3155
+ };
3156
+ effect$1.onTrack = options.onTrack;
3157
+ effect$1.onTrigger = options.onTrigger;
3158
+ if (cb) if (immediate) job(true);
3159
+ else oldValue = effect$1.run();
3160
+ else if (scheduler) scheduler(job.bind(null, true), true);
3161
+ else effect$1.run();
3162
+ watchHandle.pause = effect$1.pause.bind(effect$1);
3163
+ watchHandle.resume = effect$1.resume.bind(effect$1);
3164
+ watchHandle.stop = watchHandle;
3165
+ return watchHandle;
3166
+ }
3167
+ function traverse(value, depth = Infinity, seen) {
3168
+ if (depth <= 0 || !isObject$1(value) || value["__v_skip"]) return value;
3169
+ seen = seen || /* @__PURE__ */ new Map();
3170
+ if ((seen.get(value) || 0) >= depth) return value;
3171
+ seen.set(value, depth);
3172
+ depth--;
3173
+ if (isRef(value)) traverse(value.value, depth, seen);
3174
+ else if (isArray(value)) for (let i = 0; i < value.length; i++) traverse(value[i], depth, seen);
3175
+ else if (isSet(value) || isMap(value)) value.forEach((v) => {
3176
+ traverse(v, depth, seen);
3177
+ });
3178
+ else if (isPlainObject$1(value)) {
3179
+ for (const key in value) traverse(value[key], depth, seen);
3180
+ for (const key of Object.getOwnPropertySymbols(value)) if (Object.prototype.propertyIsEnumerable.call(value, key)) traverse(value[key], depth, seen);
3181
+ }
3182
+ return value;
3183
+ }
74
3184
 
75
3185
  //#endregion
76
- //#region src/services/azure/isRowKey.ts
77
- const isRowKey = (rowKey) => `RowKey ${BinaryOperator.eq} '${rowKey}'`;
3186
+ //#region ../../node_modules/.pnpm/@vue+runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js
3187
+ const stack = [];
3188
+ function pushWarningContext(vnode) {
3189
+ stack.push(vnode);
3190
+ }
3191
+ function popWarningContext() {
3192
+ stack.pop();
3193
+ }
3194
+ let isWarning = false;
3195
+ function warn$1(msg, ...args) {
3196
+ if (isWarning) return;
3197
+ isWarning = true;
3198
+ pauseTracking();
3199
+ const instance = stack.length ? stack[stack.length - 1].component : null;
3200
+ const appWarnHandler = instance && instance.appContext.config.warnHandler;
3201
+ const trace = getComponentTrace();
3202
+ if (appWarnHandler) callWithErrorHandling(appWarnHandler, instance, 11, [
3203
+ msg + args.map((a) => {
3204
+ var _a, _b;
3205
+ return (_b = (_a = a.toString) == null ? void 0 : _a.call(a)) != null ? _b : JSON.stringify(a);
3206
+ }).join(""),
3207
+ instance && instance.proxy,
3208
+ trace.map(({ vnode }) => `at <${formatComponentName(instance, vnode.type)}>`).join("\n"),
3209
+ trace
3210
+ ]);
3211
+ else {
3212
+ const warnArgs = [`[Vue warn]: ${msg}`, ...args];
3213
+ if (trace.length && true) warnArgs.push(`
3214
+ `, ...formatTrace(trace));
3215
+ console.warn(...warnArgs);
3216
+ }
3217
+ resetTracking();
3218
+ isWarning = false;
3219
+ }
3220
+ function getComponentTrace() {
3221
+ let currentVNode = stack[stack.length - 1];
3222
+ if (!currentVNode) return [];
3223
+ const normalizedStack = [];
3224
+ while (currentVNode) {
3225
+ const last = normalizedStack[0];
3226
+ if (last && last.vnode === currentVNode) last.recurseCount++;
3227
+ else normalizedStack.push({
3228
+ vnode: currentVNode,
3229
+ recurseCount: 0
3230
+ });
3231
+ const parentInstance = currentVNode.component && currentVNode.component.parent;
3232
+ currentVNode = parentInstance && parentInstance.vnode;
3233
+ }
3234
+ return normalizedStack;
3235
+ }
3236
+ function formatTrace(trace) {
3237
+ const logs = [];
3238
+ trace.forEach((entry, i) => {
3239
+ logs.push(...i === 0 ? [] : [`
3240
+ `], ...formatTraceEntry(entry));
3241
+ });
3242
+ return logs;
3243
+ }
3244
+ function formatTraceEntry({ vnode, recurseCount }) {
3245
+ const postfix = recurseCount > 0 ? `... (${recurseCount} recursive calls)` : ``;
3246
+ const isRoot = vnode.component ? vnode.component.parent == null : false;
3247
+ const open = ` at <${formatComponentName(vnode.component, vnode.type, isRoot)}`;
3248
+ const close = `>` + postfix;
3249
+ return vnode.props ? [
3250
+ open,
3251
+ ...formatProps(vnode.props),
3252
+ close
3253
+ ] : [open + close];
3254
+ }
3255
+ function formatProps(props) {
3256
+ const res = [];
3257
+ const keys = Object.keys(props);
3258
+ keys.slice(0, 3).forEach((key) => {
3259
+ res.push(...formatProp(key, props[key]));
3260
+ });
3261
+ if (keys.length > 3) res.push(` ...`);
3262
+ return res;
3263
+ }
3264
+ function formatProp(key, value, raw) {
3265
+ if (isString(value)) {
3266
+ value = JSON.stringify(value);
3267
+ return raw ? value : [`${key}=${value}`];
3268
+ } else if (typeof value === "number" || typeof value === "boolean" || value == null) return raw ? value : [`${key}=${value}`];
3269
+ else if (isRef(value)) {
3270
+ value = formatProp(key, toRaw(value.value), true);
3271
+ return raw ? value : [
3272
+ `${key}=Ref<`,
3273
+ value,
3274
+ `>`
3275
+ ];
3276
+ } else if (isFunction(value)) return [`${key}=fn${value.name ? `<${value.name}>` : ``}`];
3277
+ else {
3278
+ value = toRaw(value);
3279
+ return raw ? value : [`${key}=`, value];
3280
+ }
3281
+ }
3282
+ const ErrorTypeStrings$1 = {
3283
+ ["sp"]: "serverPrefetch hook",
3284
+ ["bc"]: "beforeCreate hook",
3285
+ ["c"]: "created hook",
3286
+ ["bm"]: "beforeMount hook",
3287
+ ["m"]: "mounted hook",
3288
+ ["bu"]: "beforeUpdate hook",
3289
+ ["u"]: "updated",
3290
+ ["bum"]: "beforeUnmount hook",
3291
+ ["um"]: "unmounted hook",
3292
+ ["a"]: "activated hook",
3293
+ ["da"]: "deactivated hook",
3294
+ ["ec"]: "errorCaptured hook",
3295
+ ["rtc"]: "renderTracked hook",
3296
+ ["rtg"]: "renderTriggered hook",
3297
+ [0]: "setup function",
3298
+ [1]: "render function",
3299
+ [2]: "watcher getter",
3300
+ [3]: "watcher callback",
3301
+ [4]: "watcher cleanup function",
3302
+ [5]: "native event handler",
3303
+ [6]: "component event handler",
3304
+ [7]: "vnode hook",
3305
+ [8]: "directive hook",
3306
+ [9]: "transition hook",
3307
+ [10]: "app errorHandler",
3308
+ [11]: "app warnHandler",
3309
+ [12]: "ref function",
3310
+ [13]: "async component loader",
3311
+ [14]: "scheduler flush",
3312
+ [15]: "component update",
3313
+ [16]: "app unmount cleanup function"
3314
+ };
3315
+ function callWithErrorHandling(fn, instance, type, args) {
3316
+ try {
3317
+ return args ? fn(...args) : fn();
3318
+ } catch (err) {
3319
+ handleError(err, instance, type);
3320
+ }
3321
+ }
3322
+ function callWithAsyncErrorHandling(fn, instance, type, args) {
3323
+ if (isFunction(fn)) {
3324
+ const res = callWithErrorHandling(fn, instance, type, args);
3325
+ if (res && isPromise(res)) res.catch((err) => {
3326
+ handleError(err, instance, type);
3327
+ });
3328
+ return res;
3329
+ }
3330
+ if (isArray(fn)) {
3331
+ const values = [];
3332
+ for (let i = 0; i < fn.length; i++) values.push(callWithAsyncErrorHandling(fn[i], instance, type, args));
3333
+ return values;
3334
+ } else warn$1(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof fn}`);
3335
+ }
3336
+ function handleError(err, instance, type, throwInDev = true) {
3337
+ const contextVNode = instance ? instance.vnode : null;
3338
+ const { errorHandler, throwUnhandledErrorInProduction } = instance && instance.appContext.config || EMPTY_OBJ;
3339
+ if (instance) {
3340
+ let cur = instance.parent;
3341
+ const exposedInstance = instance.proxy;
3342
+ const errorInfo = ErrorTypeStrings$1[type];
3343
+ while (cur) {
3344
+ const errorCapturedHooks = cur.ec;
3345
+ if (errorCapturedHooks) {
3346
+ for (let i = 0; i < errorCapturedHooks.length; i++) if (errorCapturedHooks[i](err, exposedInstance, errorInfo) === false) return;
3347
+ }
3348
+ cur = cur.parent;
3349
+ }
3350
+ if (errorHandler) {
3351
+ pauseTracking();
3352
+ callWithErrorHandling(errorHandler, null, 10, [
3353
+ err,
3354
+ exposedInstance,
3355
+ errorInfo
3356
+ ]);
3357
+ resetTracking();
3358
+ return;
3359
+ }
3360
+ }
3361
+ logError(err, type, contextVNode, throwInDev, throwUnhandledErrorInProduction);
3362
+ }
3363
+ function logError(err, type, contextVNode, throwInDev = true, throwInProd = false) {
3364
+ {
3365
+ const info = ErrorTypeStrings$1[type];
3366
+ if (contextVNode) pushWarningContext(contextVNode);
3367
+ warn$1(`Unhandled error${info ? ` during execution of ${info}` : ``}`);
3368
+ if (contextVNode) popWarningContext();
3369
+ if (throwInDev) throw err;
3370
+ else console.error(err);
3371
+ }
3372
+ }
3373
+ const queue = [];
3374
+ let flushIndex = -1;
3375
+ const pendingPostFlushCbs = [];
3376
+ let activePostFlushCbs = null;
3377
+ let postFlushIndex = 0;
3378
+ const resolvedPromise = /* @__PURE__ */ Promise.resolve();
3379
+ let currentFlushPromise = null;
3380
+ const RECURSION_LIMIT = 100;
3381
+ function nextTick(fn) {
3382
+ const p = currentFlushPromise || resolvedPromise;
3383
+ return fn ? p.then(this ? fn.bind(this) : fn) : p;
3384
+ }
3385
+ function findInsertionIndex(id) {
3386
+ let start = flushIndex + 1;
3387
+ let end = queue.length;
3388
+ while (start < end) {
3389
+ const middle = start + end >>> 1;
3390
+ const middleJob = queue[middle];
3391
+ const middleJobId = getId(middleJob);
3392
+ if (middleJobId < id || middleJobId === id && middleJob.flags & 2) start = middle + 1;
3393
+ else end = middle;
3394
+ }
3395
+ return start;
3396
+ }
3397
+ function queueJob(job) {
3398
+ if (!(job.flags & 1)) {
3399
+ const jobId = getId(job);
3400
+ const lastJob = queue[queue.length - 1];
3401
+ if (!lastJob || !(job.flags & 2) && jobId >= getId(lastJob)) queue.push(job);
3402
+ else queue.splice(findInsertionIndex(jobId), 0, job);
3403
+ job.flags |= 1;
3404
+ queueFlush();
3405
+ }
3406
+ }
3407
+ function queueFlush() {
3408
+ if (!currentFlushPromise) currentFlushPromise = resolvedPromise.then(flushJobs);
3409
+ }
3410
+ function queuePostFlushCb(cb) {
3411
+ if (!isArray(cb)) {
3412
+ if (activePostFlushCbs && cb.id === -1) activePostFlushCbs.splice(postFlushIndex + 1, 0, cb);
3413
+ else if (!(cb.flags & 1)) {
3414
+ pendingPostFlushCbs.push(cb);
3415
+ cb.flags |= 1;
3416
+ }
3417
+ } else pendingPostFlushCbs.push(...cb);
3418
+ queueFlush();
3419
+ }
3420
+ function flushPostFlushCbs(seen) {
3421
+ if (pendingPostFlushCbs.length) {
3422
+ const deduped = [...new Set(pendingPostFlushCbs)].sort((a, b) => getId(a) - getId(b));
3423
+ pendingPostFlushCbs.length = 0;
3424
+ if (activePostFlushCbs) {
3425
+ activePostFlushCbs.push(...deduped);
3426
+ return;
3427
+ }
3428
+ activePostFlushCbs = deduped;
3429
+ seen = seen || /* @__PURE__ */ new Map();
3430
+ for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) {
3431
+ const cb = activePostFlushCbs[postFlushIndex];
3432
+ if (checkRecursiveUpdates(seen, cb)) continue;
3433
+ if (cb.flags & 4) cb.flags &= -2;
3434
+ if (!(cb.flags & 8)) cb();
3435
+ cb.flags &= -2;
3436
+ }
3437
+ activePostFlushCbs = null;
3438
+ postFlushIndex = 0;
3439
+ }
3440
+ }
3441
+ const getId = (job) => job.id == null ? job.flags & 2 ? -1 : Infinity : job.id;
3442
+ function flushJobs(seen) {
3443
+ seen = seen || /* @__PURE__ */ new Map();
3444
+ const check = (job) => checkRecursiveUpdates(seen, job);
3445
+ try {
3446
+ for (flushIndex = 0; flushIndex < queue.length; flushIndex++) {
3447
+ const job = queue[flushIndex];
3448
+ if (job && !(job.flags & 8)) {
3449
+ if (check(job)) continue;
3450
+ if (job.flags & 4) job.flags &= -2;
3451
+ callWithErrorHandling(job, job.i, job.i ? 15 : 14);
3452
+ if (!(job.flags & 4)) job.flags &= -2;
3453
+ }
3454
+ }
3455
+ } finally {
3456
+ for (; flushIndex < queue.length; flushIndex++) {
3457
+ const job = queue[flushIndex];
3458
+ if (job) job.flags &= -2;
3459
+ }
3460
+ flushIndex = -1;
3461
+ queue.length = 0;
3462
+ flushPostFlushCbs(seen);
3463
+ currentFlushPromise = null;
3464
+ if (queue.length || pendingPostFlushCbs.length) flushJobs(seen);
3465
+ }
3466
+ }
3467
+ function checkRecursiveUpdates(seen, fn) {
3468
+ const count = seen.get(fn) || 0;
3469
+ if (count > RECURSION_LIMIT) {
3470
+ const instance = fn.i;
3471
+ const componentName = instance && getComponentName(instance.type);
3472
+ handleError(`Maximum recursive updates exceeded${componentName ? ` in component <${componentName}>` : ``}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`, null, 10);
3473
+ return true;
3474
+ }
3475
+ seen.set(fn, count + 1);
3476
+ return false;
3477
+ }
3478
+ let isHmrUpdating = false;
3479
+ const hmrDirtyComponents = /* @__PURE__ */ new Map();
3480
+ getGlobalThis().__VUE_HMR_RUNTIME__ = {
3481
+ createRecord: tryWrap(createRecord),
3482
+ rerender: tryWrap(rerender),
3483
+ reload: tryWrap(reload)
3484
+ };
3485
+ const map = /* @__PURE__ */ new Map();
3486
+ function createRecord(id, initialDef) {
3487
+ if (map.has(id)) return false;
3488
+ map.set(id, {
3489
+ initialDef: normalizeClassComponent(initialDef),
3490
+ instances: /* @__PURE__ */ new Set()
3491
+ });
3492
+ return true;
3493
+ }
3494
+ function normalizeClassComponent(component) {
3495
+ return isClassComponent(component) ? component.__vccOpts : component;
3496
+ }
3497
+ function rerender(id, newRender) {
3498
+ const record = map.get(id);
3499
+ if (!record) return;
3500
+ record.initialDef.render = newRender;
3501
+ [...record.instances].forEach((instance) => {
3502
+ if (newRender) {
3503
+ instance.render = newRender;
3504
+ normalizeClassComponent(instance.type).render = newRender;
3505
+ }
3506
+ instance.renderCache = [];
3507
+ isHmrUpdating = true;
3508
+ if (!(instance.job.flags & 8)) instance.update();
3509
+ isHmrUpdating = false;
3510
+ });
3511
+ }
3512
+ function reload(id, newComp) {
3513
+ const record = map.get(id);
3514
+ if (!record) return;
3515
+ newComp = normalizeClassComponent(newComp);
3516
+ updateComponentDef(record.initialDef, newComp);
3517
+ const instances = [...record.instances];
3518
+ for (let i = 0; i < instances.length; i++) {
3519
+ const instance = instances[i];
3520
+ const oldComp = normalizeClassComponent(instance.type);
3521
+ let dirtyInstances = hmrDirtyComponents.get(oldComp);
3522
+ if (!dirtyInstances) {
3523
+ if (oldComp !== record.initialDef) updateComponentDef(oldComp, newComp);
3524
+ hmrDirtyComponents.set(oldComp, dirtyInstances = /* @__PURE__ */ new Set());
3525
+ }
3526
+ dirtyInstances.add(instance);
3527
+ instance.appContext.propsCache.delete(instance.type);
3528
+ instance.appContext.emitsCache.delete(instance.type);
3529
+ instance.appContext.optionsCache.delete(instance.type);
3530
+ if (instance.ceReload) {
3531
+ dirtyInstances.add(instance);
3532
+ instance.ceReload(newComp.styles);
3533
+ dirtyInstances.delete(instance);
3534
+ } else if (instance.parent) queueJob(() => {
3535
+ if (!(instance.job.flags & 8)) {
3536
+ isHmrUpdating = true;
3537
+ instance.parent.update();
3538
+ isHmrUpdating = false;
3539
+ dirtyInstances.delete(instance);
3540
+ }
3541
+ });
3542
+ else if (instance.appContext.reload) instance.appContext.reload();
3543
+ else if (typeof window !== "undefined") window.location.reload();
3544
+ else console.warn("[HMR] Root or manually mounted instance modified. Full reload required.");
3545
+ if (instance.root.ce && instance !== instance.root) instance.root.ce._removeChildStyle(oldComp);
3546
+ }
3547
+ queuePostFlushCb(() => {
3548
+ hmrDirtyComponents.clear();
3549
+ });
3550
+ }
3551
+ function updateComponentDef(oldComp, newComp) {
3552
+ extend(oldComp, newComp);
3553
+ for (const key in oldComp) if (key !== "__file" && !(key in newComp)) delete oldComp[key];
3554
+ }
3555
+ function tryWrap(fn) {
3556
+ return (id, arg) => {
3557
+ try {
3558
+ return fn(id, arg);
3559
+ } catch (e) {
3560
+ console.error(e);
3561
+ console.warn(`[HMR] Something went wrong during Vue component hot-reload. Full reload required.`);
3562
+ }
3563
+ };
3564
+ }
3565
+ let currentRenderingInstance = null;
3566
+ const TeleportEndKey = Symbol("_vte");
3567
+ const leaveCbKey = Symbol("_leaveCb");
3568
+ const enterCbKey = Symbol("_enterCb");
3569
+ const requestIdleCallback = getGlobalThis().requestIdleCallback || ((cb) => setTimeout(cb, 1));
3570
+ const cancelIdleCallback = getGlobalThis().cancelIdleCallback || ((id) => clearTimeout(id));
3571
+ function injectHook(type, hook, target = currentInstance, prepend = false) {
3572
+ if (target) {
3573
+ const hooks = target[type] || (target[type] = []);
3574
+ const wrappedHook = hook.__weh || (hook.__weh = (...args) => {
3575
+ pauseTracking();
3576
+ const reset = setCurrentInstance(target);
3577
+ const res = callWithAsyncErrorHandling(hook, target, type, args);
3578
+ reset();
3579
+ resetTracking();
3580
+ return res;
3581
+ });
3582
+ if (prepend) hooks.unshift(wrappedHook);
3583
+ else hooks.push(wrappedHook);
3584
+ return wrappedHook;
3585
+ } else warn$1(`${toHandlerKey(ErrorTypeStrings$1[type].replace(/ hook$/, ""))} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`);
3586
+ }
3587
+ const createHook = (lifecycle) => (hook, target = currentInstance) => {
3588
+ if (!isInSSRComponentSetup || lifecycle === "sp") injectHook(lifecycle, (...args) => hook(...args), target);
3589
+ };
3590
+ const onBeforeMount = createHook("bm");
3591
+ const onMounted = createHook("m");
3592
+ const onBeforeUpdate = createHook("bu");
3593
+ const onUpdated = createHook("u");
3594
+ const onBeforeUnmount = createHook("bum");
3595
+ const onUnmounted = createHook("um");
3596
+ const onServerPrefetch = createHook("sp");
3597
+ const onRenderTriggered = createHook("rtg");
3598
+ const onRenderTracked = createHook("rtc");
3599
+ const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
3600
+ const getPublicInstance = (i) => {
3601
+ if (!i) return null;
3602
+ if (isStatefulComponent(i)) return getComponentPublicInstance(i);
3603
+ return getPublicInstance(i.parent);
3604
+ };
3605
+ const publicPropertiesMap = /* @__PURE__ */ extend(/* @__PURE__ */ Object.create(null), {
3606
+ $: (i) => i,
3607
+ $el: (i) => i.vnode.el,
3608
+ $data: (i) => i.data,
3609
+ $props: (i) => shallowReadonly(i.props),
3610
+ $attrs: (i) => shallowReadonly(i.attrs),
3611
+ $slots: (i) => shallowReadonly(i.slots),
3612
+ $refs: (i) => shallowReadonly(i.refs),
3613
+ $parent: (i) => getPublicInstance(i.parent),
3614
+ $root: (i) => getPublicInstance(i.root),
3615
+ $host: (i) => i.ce,
3616
+ $emit: (i) => i.emit,
3617
+ $options: (i) => __VUE_OPTIONS_API__ ? resolveMergedOptions(i) : i.type,
3618
+ $forceUpdate: (i) => i.f || (i.f = () => {
3619
+ queueJob(i.update);
3620
+ }),
3621
+ $nextTick: (i) => i.n || (i.n = nextTick.bind(i.proxy)),
3622
+ $watch: (i) => __VUE_OPTIONS_API__ ? instanceWatch.bind(i) : NOOP
3623
+ });
3624
+ const isReservedPrefix = (key) => key === "_" || key === "$";
3625
+ const hasSetupBinding = (state, key) => state !== EMPTY_OBJ && !state.__isScriptSetup && hasOwn(state, key);
3626
+ const PublicInstanceProxyHandlers = {
3627
+ get({ _: instance }, key) {
3628
+ if (key === "__v_skip") return true;
3629
+ const { ctx, setupState, data, props, accessCache, type, appContext } = instance;
3630
+ if (key === "__isVue") return true;
3631
+ let normalizedProps;
3632
+ if (key[0] !== "$") {
3633
+ const n = accessCache[key];
3634
+ if (n !== void 0) switch (n) {
3635
+ case 1: return setupState[key];
3636
+ case 2: return data[key];
3637
+ case 4: return ctx[key];
3638
+ case 3: return props[key];
3639
+ }
3640
+ else if (hasSetupBinding(setupState, key)) {
3641
+ accessCache[key] = 1;
3642
+ return setupState[key];
3643
+ } else if (data !== EMPTY_OBJ && hasOwn(data, key)) {
3644
+ accessCache[key] = 2;
3645
+ return data[key];
3646
+ } else if ((normalizedProps = instance.propsOptions[0]) && hasOwn(normalizedProps, key)) {
3647
+ accessCache[key] = 3;
3648
+ return props[key];
3649
+ } else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) {
3650
+ accessCache[key] = 4;
3651
+ return ctx[key];
3652
+ } else if (!__VUE_OPTIONS_API__ || shouldCacheAccess) accessCache[key] = 0;
3653
+ }
3654
+ const publicGetter = publicPropertiesMap[key];
3655
+ let cssModule, globalProperties;
3656
+ if (publicGetter) {
3657
+ if (key === "$attrs") {
3658
+ track(instance.attrs, "get", "");
3659
+ markAttrsAccessed();
3660
+ } else if (key === "$slots") track(instance, "get", key);
3661
+ return publicGetter(instance);
3662
+ } else if ((cssModule = type.__cssModules) && (cssModule = cssModule[key])) return cssModule;
3663
+ else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) {
3664
+ accessCache[key] = 4;
3665
+ return ctx[key];
3666
+ } else if (globalProperties = appContext.config.globalProperties, hasOwn(globalProperties, key)) return globalProperties[key];
3667
+ else if (currentRenderingInstance && (!isString(key) || key.indexOf("__v") !== 0)) {
3668
+ if (data !== EMPTY_OBJ && isReservedPrefix(key[0]) && hasOwn(data, key)) warn$1(`Property ${JSON.stringify(key)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`);
3669
+ else if (instance === currentRenderingInstance) warn$1(`Property ${JSON.stringify(key)} was accessed during render but is not defined on instance.`);
3670
+ }
3671
+ },
3672
+ set({ _: instance }, key, value) {
3673
+ const { data, setupState, ctx } = instance;
3674
+ if (hasSetupBinding(setupState, key)) {
3675
+ setupState[key] = value;
3676
+ return true;
3677
+ } else if (setupState.__isScriptSetup && hasOwn(setupState, key)) {
3678
+ warn$1(`Cannot mutate <script setup> binding "${key}" from Options API.`);
3679
+ return false;
3680
+ } else if (data !== EMPTY_OBJ && hasOwn(data, key)) {
3681
+ data[key] = value;
3682
+ return true;
3683
+ } else if (hasOwn(instance.props, key)) {
3684
+ warn$1(`Attempting to mutate prop "${key}". Props are readonly.`);
3685
+ return false;
3686
+ }
3687
+ if (key[0] === "$" && key.slice(1) in instance) {
3688
+ warn$1(`Attempting to mutate public property "${key}". Properties starting with $ are reserved and readonly.`);
3689
+ return false;
3690
+ } else if (key in instance.appContext.config.globalProperties) Object.defineProperty(ctx, key, {
3691
+ enumerable: true,
3692
+ configurable: true,
3693
+ value
3694
+ });
3695
+ else ctx[key] = value;
3696
+ return true;
3697
+ },
3698
+ has({ _: { data, setupState, accessCache, ctx, appContext, propsOptions, type } }, key) {
3699
+ let normalizedProps, cssModules;
3700
+ return !!(accessCache[key] || data !== EMPTY_OBJ && key[0] !== "$" && hasOwn(data, key) || hasSetupBinding(setupState, key) || (normalizedProps = propsOptions[0]) && hasOwn(normalizedProps, key) || hasOwn(ctx, key) || hasOwn(publicPropertiesMap, key) || hasOwn(appContext.config.globalProperties, key) || (cssModules = type.__cssModules) && cssModules[key]);
3701
+ },
3702
+ defineProperty(target, key, descriptor) {
3703
+ if (descriptor.get != null) target._.accessCache[key] = 0;
3704
+ else if (hasOwn(descriptor, "value")) this.set(target, key, descriptor.value, null);
3705
+ return Reflect.defineProperty(target, key, descriptor);
3706
+ }
3707
+ };
3708
+ PublicInstanceProxyHandlers.ownKeys = (target) => {
3709
+ warn$1(`Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead.`);
3710
+ return Reflect.ownKeys(target);
3711
+ };
3712
+ function normalizePropsOrEmits(props) {
3713
+ return isArray(props) ? props.reduce((normalized, p) => (normalized[p] = null, normalized), {}) : props;
3714
+ }
3715
+ let shouldCacheAccess = true;
3716
+ function resolveMergedOptions(instance) {
3717
+ const base = instance.type;
3718
+ const { mixins, extends: extendsOptions } = base;
3719
+ const { mixins: globalMixins, optionsCache: cache, config: { optionMergeStrategies } } = instance.appContext;
3720
+ const cached$1 = cache.get(base);
3721
+ let resolved;
3722
+ if (cached$1) resolved = cached$1;
3723
+ else if (!globalMixins.length && !mixins && !extendsOptions) resolved = base;
3724
+ else {
3725
+ resolved = {};
3726
+ if (globalMixins.length) globalMixins.forEach((m) => mergeOptions(resolved, m, optionMergeStrategies, true));
3727
+ mergeOptions(resolved, base, optionMergeStrategies);
3728
+ }
3729
+ if (isObject$1(base)) cache.set(base, resolved);
3730
+ return resolved;
3731
+ }
3732
+ function mergeOptions(to, from, strats, asMixin = false) {
3733
+ const { mixins, extends: extendsOptions } = from;
3734
+ if (extendsOptions) mergeOptions(to, extendsOptions, strats, true);
3735
+ if (mixins) mixins.forEach((m) => mergeOptions(to, m, strats, true));
3736
+ for (const key in from) if (asMixin && key === "expose") warn$1(`"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.`);
3737
+ else {
3738
+ const strat = internalOptionMergeStrats[key] || strats && strats[key];
3739
+ to[key] = strat ? strat(to[key], from[key]) : from[key];
3740
+ }
3741
+ return to;
3742
+ }
3743
+ const internalOptionMergeStrats = {
3744
+ data: mergeDataFn,
3745
+ props: mergeEmitsOrPropsOptions,
3746
+ emits: mergeEmitsOrPropsOptions,
3747
+ methods: mergeObjectOptions,
3748
+ computed: mergeObjectOptions,
3749
+ beforeCreate: mergeAsArray,
3750
+ created: mergeAsArray,
3751
+ beforeMount: mergeAsArray,
3752
+ mounted: mergeAsArray,
3753
+ beforeUpdate: mergeAsArray,
3754
+ updated: mergeAsArray,
3755
+ beforeDestroy: mergeAsArray,
3756
+ beforeUnmount: mergeAsArray,
3757
+ destroyed: mergeAsArray,
3758
+ unmounted: mergeAsArray,
3759
+ activated: mergeAsArray,
3760
+ deactivated: mergeAsArray,
3761
+ errorCaptured: mergeAsArray,
3762
+ serverPrefetch: mergeAsArray,
3763
+ components: mergeObjectOptions,
3764
+ directives: mergeObjectOptions,
3765
+ watch: mergeWatchOptions,
3766
+ provide: mergeDataFn,
3767
+ inject: mergeInject
3768
+ };
3769
+ function mergeDataFn(to, from) {
3770
+ if (!from) return to;
3771
+ if (!to) return from;
3772
+ return function mergedDataFn() {
3773
+ return extend(isFunction(to) ? to.call(this, this) : to, isFunction(from) ? from.call(this, this) : from);
3774
+ };
3775
+ }
3776
+ function mergeInject(to, from) {
3777
+ return mergeObjectOptions(normalizeInject(to), normalizeInject(from));
3778
+ }
3779
+ function normalizeInject(raw) {
3780
+ if (isArray(raw)) {
3781
+ const res = {};
3782
+ for (let i = 0; i < raw.length; i++) res[raw[i]] = raw[i];
3783
+ return res;
3784
+ }
3785
+ return raw;
3786
+ }
3787
+ function mergeAsArray(to, from) {
3788
+ return to ? [...new Set([].concat(to, from))] : from;
3789
+ }
3790
+ function mergeObjectOptions(to, from) {
3791
+ return to ? extend(/* @__PURE__ */ Object.create(null), to, from) : from;
3792
+ }
3793
+ function mergeEmitsOrPropsOptions(to, from) {
3794
+ if (to) {
3795
+ if (isArray(to) && isArray(from)) return [.../* @__PURE__ */ new Set([...to, ...from])];
3796
+ return extend(/* @__PURE__ */ Object.create(null), normalizePropsOrEmits(to), normalizePropsOrEmits(from != null ? from : {}));
3797
+ } else return from;
3798
+ }
3799
+ function mergeWatchOptions(to, from) {
3800
+ if (!to) return from;
3801
+ if (!from) return to;
3802
+ const merged = extend(/* @__PURE__ */ Object.create(null), to);
3803
+ for (const key in from) merged[key] = mergeAsArray(to[key], from[key]);
3804
+ return merged;
3805
+ }
3806
+ function createAppContext() {
3807
+ return {
3808
+ app: null,
3809
+ config: {
3810
+ isNativeTag: NO,
3811
+ performance: false,
3812
+ globalProperties: {},
3813
+ optionMergeStrategies: {},
3814
+ errorHandler: void 0,
3815
+ warnHandler: void 0,
3816
+ compilerOptions: {}
3817
+ },
3818
+ mixins: [],
3819
+ components: {},
3820
+ directives: {},
3821
+ provides: /* @__PURE__ */ Object.create(null),
3822
+ optionsCache: /* @__PURE__ */ new WeakMap(),
3823
+ propsCache: /* @__PURE__ */ new WeakMap(),
3824
+ emitsCache: /* @__PURE__ */ new WeakMap()
3825
+ };
3826
+ }
3827
+ let currentApp = null;
3828
+ function inject(key, defaultValue, treatDefaultAsFactory = false) {
3829
+ const instance = getCurrentInstance();
3830
+ if (instance || currentApp) {
3831
+ let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
3832
+ if (provides && key in provides) return provides[key];
3833
+ else if (arguments.length > 1) return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
3834
+ else warn$1(`injection "${String(key)}" not found.`);
3835
+ } else warn$1(`inject() can only be used inside setup() or functional components.`);
3836
+ }
3837
+ const queuePostRenderEffect = queueEffectWithSuspense;
3838
+ const ssrContextKey = Symbol.for("v-scx");
3839
+ const useSSRContext = () => {
3840
+ {
3841
+ const ctx = inject(ssrContextKey);
3842
+ if (!ctx) warn$1(`Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`);
3843
+ return ctx;
3844
+ }
3845
+ };
3846
+ function doWatch(source, cb, options = EMPTY_OBJ) {
3847
+ const { immediate, deep, flush, once } = options;
3848
+ if (!cb) {
3849
+ if (immediate !== void 0) warn$1(`watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`);
3850
+ if (deep !== void 0) warn$1(`watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`);
3851
+ if (once !== void 0) warn$1(`watch() "once" option is only respected when using the watch(source, callback, options?) signature.`);
3852
+ }
3853
+ const baseWatchOptions = extend({}, options);
3854
+ baseWatchOptions.onWarn = warn$1;
3855
+ const runsImmediately = cb && immediate || !cb && flush !== "post";
3856
+ let ssrCleanup;
3857
+ if (isInSSRComponentSetup) {
3858
+ if (flush === "sync") {
3859
+ const ctx = useSSRContext();
3860
+ ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []);
3861
+ } else if (!runsImmediately) {
3862
+ const watchStopHandle = () => {};
3863
+ watchStopHandle.stop = NOOP;
3864
+ watchStopHandle.resume = NOOP;
3865
+ watchStopHandle.pause = NOOP;
3866
+ return watchStopHandle;
3867
+ }
3868
+ }
3869
+ const instance = currentInstance;
3870
+ baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
3871
+ let isPre = false;
3872
+ if (flush === "post") baseWatchOptions.scheduler = (job) => {
3873
+ queuePostRenderEffect(job, instance && instance.suspense);
3874
+ };
3875
+ else if (flush !== "sync") {
3876
+ isPre = true;
3877
+ baseWatchOptions.scheduler = (job, isFirstRun) => {
3878
+ if (isFirstRun) job();
3879
+ else queueJob(job);
3880
+ };
3881
+ }
3882
+ baseWatchOptions.augmentJob = (job) => {
3883
+ if (cb) job.flags |= 4;
3884
+ if (isPre) {
3885
+ job.flags |= 2;
3886
+ if (instance) {
3887
+ job.id = instance.uid;
3888
+ job.i = instance;
3889
+ }
3890
+ }
3891
+ };
3892
+ const watchHandle = watch(source, cb, baseWatchOptions);
3893
+ if (isInSSRComponentSetup) {
3894
+ if (ssrCleanup) ssrCleanup.push(watchHandle);
3895
+ else if (runsImmediately) watchHandle();
3896
+ }
3897
+ return watchHandle;
3898
+ }
3899
+ function instanceWatch(source, value, options) {
3900
+ const publicThis = this.proxy;
3901
+ const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
3902
+ let cb;
3903
+ if (isFunction(value)) cb = value;
3904
+ else {
3905
+ cb = value.handler;
3906
+ options = value;
3907
+ }
3908
+ const reset = setCurrentInstance(this);
3909
+ const res = doWatch(getter, cb.bind(publicThis), options);
3910
+ reset();
3911
+ return res;
3912
+ }
3913
+ function createPathGetter(ctx, path) {
3914
+ const segments = path.split(".");
3915
+ return () => {
3916
+ let cur = ctx;
3917
+ for (let i = 0; i < segments.length && cur; i++) cur = cur[segments[i]];
3918
+ return cur;
3919
+ };
3920
+ }
3921
+ let accessedAttrs = false;
3922
+ function markAttrsAccessed() {
3923
+ accessedAttrs = true;
3924
+ }
3925
+ function queueEffectWithSuspense(fn, suspense) {
3926
+ if (suspense && suspense.pendingBranch) if (isArray(fn)) suspense.effects.push(...fn);
3927
+ else suspense.effects.push(fn);
3928
+ else queuePostFlushCb(fn);
3929
+ }
3930
+ const Fragment = Symbol.for("v-fgt");
3931
+ const Text = Symbol.for("v-txt");
3932
+ const Comment = Symbol.for("v-cmt");
3933
+ const Static = Symbol.for("v-stc");
3934
+ const emptyAppContext = createAppContext();
3935
+ let currentInstance = null;
3936
+ const getCurrentInstance = () => currentInstance || currentRenderingInstance;
3937
+ let internalSetCurrentInstance;
3938
+ let setInSSRSetupState;
3939
+ {
3940
+ const g = getGlobalThis();
3941
+ const registerGlobalSetter = (key, setter) => {
3942
+ let setters;
3943
+ if (!(setters = g[key])) setters = g[key] = [];
3944
+ setters.push(setter);
3945
+ return (v) => {
3946
+ if (setters.length > 1) setters.forEach((set) => set(v));
3947
+ else setters[0](v);
3948
+ };
3949
+ };
3950
+ internalSetCurrentInstance = registerGlobalSetter(`__VUE_INSTANCE_SETTERS__`, (v) => currentInstance = v);
3951
+ setInSSRSetupState = registerGlobalSetter(`__VUE_SSR_SETTERS__`, (v) => isInSSRComponentSetup = v);
3952
+ }
3953
+ const setCurrentInstance = (instance) => {
3954
+ const prev = currentInstance;
3955
+ internalSetCurrentInstance(instance);
3956
+ instance.scope.on();
3957
+ return () => {
3958
+ instance.scope.off();
3959
+ internalSetCurrentInstance(prev);
3960
+ };
3961
+ };
3962
+ function isStatefulComponent(instance) {
3963
+ return instance.vnode.shapeFlag & 4;
3964
+ }
3965
+ let isInSSRComponentSetup = false;
3966
+ function getComponentPublicInstance(instance) {
3967
+ if (instance.exposed) return instance.exposeProxy || (instance.exposeProxy = new Proxy(proxyRefs(markRaw(instance.exposed)), {
3968
+ get(target, key) {
3969
+ if (key in target) return target[key];
3970
+ else if (key in publicPropertiesMap) return publicPropertiesMap[key](instance);
3971
+ },
3972
+ has(target, key) {
3973
+ return key in target || key in publicPropertiesMap;
3974
+ }
3975
+ }));
3976
+ else return instance.proxy;
3977
+ }
3978
+ const classifyRE = /(?:^|[-_])\w/g;
3979
+ const classify = (str) => str.replace(classifyRE, (c) => c.toUpperCase()).replace(/[-_]/g, "");
3980
+ function getComponentName(Component, includeInferred = true) {
3981
+ return isFunction(Component) ? Component.displayName || Component.name : Component.name || includeInferred && Component.__name;
3982
+ }
3983
+ function formatComponentName(instance, Component, isRoot = false) {
3984
+ let name = getComponentName(Component);
3985
+ if (!name && Component.__file) {
3986
+ const match = Component.__file.match(/([^/\\]+)\.\w+$/);
3987
+ if (match) name = match[1];
3988
+ }
3989
+ if (!name && instance && instance.parent) {
3990
+ const inferFromRegistry = (registry$1) => {
3991
+ for (const key in registry$1) if (registry$1[key] === Component) return key;
3992
+ };
3993
+ name = inferFromRegistry(instance.components || instance.parent.type.components) || inferFromRegistry(instance.appContext.components);
3994
+ }
3995
+ return name ? classify(name) : isRoot ? `App` : `Anonymous`;
3996
+ }
3997
+ function isClassComponent(value) {
3998
+ return isFunction(value) && "__vccOpts" in value;
3999
+ }
4000
+ function initCustomFormatter() {
4001
+ if (typeof window === "undefined") return;
4002
+ const vueStyle = { style: "color:#3ba776" };
4003
+ const numberStyle = { style: "color:#1677ff" };
4004
+ const stringStyle = { style: "color:#f5222d" };
4005
+ const keywordStyle = { style: "color:#eb2f96" };
4006
+ const formatter = {
4007
+ __vue_custom_formatter: true,
4008
+ header(obj) {
4009
+ if (!isObject$1(obj)) return null;
4010
+ if (obj.__isVue) return [
4011
+ "div",
4012
+ vueStyle,
4013
+ `VueInstance`
4014
+ ];
4015
+ else if (isRef(obj)) {
4016
+ pauseTracking();
4017
+ const value = obj.value;
4018
+ resetTracking();
4019
+ return [
4020
+ "div",
4021
+ {},
4022
+ [
4023
+ "span",
4024
+ vueStyle,
4025
+ genRefFlag(obj)
4026
+ ],
4027
+ "<",
4028
+ formatValue(value),
4029
+ `>`
4030
+ ];
4031
+ } else if (isReactive(obj)) return [
4032
+ "div",
4033
+ {},
4034
+ [
4035
+ "span",
4036
+ vueStyle,
4037
+ isShallow(obj) ? "ShallowReactive" : "Reactive"
4038
+ ],
4039
+ "<",
4040
+ formatValue(obj),
4041
+ `>${isReadonly(obj) ? ` (readonly)` : ``}`
4042
+ ];
4043
+ else if (isReadonly(obj)) return [
4044
+ "div",
4045
+ {},
4046
+ [
4047
+ "span",
4048
+ vueStyle,
4049
+ isShallow(obj) ? "ShallowReadonly" : "Readonly"
4050
+ ],
4051
+ "<",
4052
+ formatValue(obj),
4053
+ ">"
4054
+ ];
4055
+ return null;
4056
+ },
4057
+ hasBody(obj) {
4058
+ return obj && obj.__isVue;
4059
+ },
4060
+ body(obj) {
4061
+ if (obj && obj.__isVue) return [
4062
+ "div",
4063
+ {},
4064
+ ...formatInstance(obj.$)
4065
+ ];
4066
+ }
4067
+ };
4068
+ function formatInstance(instance) {
4069
+ const blocks = [];
4070
+ if (instance.type.props && instance.props) blocks.push(createInstanceBlock("props", toRaw(instance.props)));
4071
+ if (instance.setupState !== EMPTY_OBJ) blocks.push(createInstanceBlock("setup", instance.setupState));
4072
+ if (instance.data !== EMPTY_OBJ) blocks.push(createInstanceBlock("data", toRaw(instance.data)));
4073
+ const computed$1 = extractKeys(instance, "computed");
4074
+ if (computed$1) blocks.push(createInstanceBlock("computed", computed$1));
4075
+ const injected = extractKeys(instance, "inject");
4076
+ if (injected) blocks.push(createInstanceBlock("injected", injected));
4077
+ blocks.push([
4078
+ "div",
4079
+ {},
4080
+ [
4081
+ "span",
4082
+ { style: keywordStyle.style + ";opacity:0.66" },
4083
+ "$ (internal): "
4084
+ ],
4085
+ ["object", { object: instance }]
4086
+ ]);
4087
+ return blocks;
4088
+ }
4089
+ function createInstanceBlock(type, target) {
4090
+ target = extend({}, target);
4091
+ if (!Object.keys(target).length) return ["span", {}];
4092
+ return [
4093
+ "div",
4094
+ { style: "line-height:1.25em;margin-bottom:0.6em" },
4095
+ [
4096
+ "div",
4097
+ { style: "color:#476582" },
4098
+ type
4099
+ ],
4100
+ [
4101
+ "div",
4102
+ { style: "padding-left:1.25em" },
4103
+ ...Object.keys(target).map((key) => {
4104
+ return [
4105
+ "div",
4106
+ {},
4107
+ [
4108
+ "span",
4109
+ keywordStyle,
4110
+ key + ": "
4111
+ ],
4112
+ formatValue(target[key], false)
4113
+ ];
4114
+ })
4115
+ ]
4116
+ ];
4117
+ }
4118
+ function formatValue(v, asRaw = true) {
4119
+ if (typeof v === "number") return [
4120
+ "span",
4121
+ numberStyle,
4122
+ v
4123
+ ];
4124
+ else if (typeof v === "string") return [
4125
+ "span",
4126
+ stringStyle,
4127
+ JSON.stringify(v)
4128
+ ];
4129
+ else if (typeof v === "boolean") return [
4130
+ "span",
4131
+ keywordStyle,
4132
+ v
4133
+ ];
4134
+ else if (isObject$1(v)) return ["object", { object: asRaw ? toRaw(v) : v }];
4135
+ else return [
4136
+ "span",
4137
+ stringStyle,
4138
+ String(v)
4139
+ ];
4140
+ }
4141
+ function extractKeys(instance, type) {
4142
+ const Comp = instance.type;
4143
+ if (isFunction(Comp)) return;
4144
+ const extracted = {};
4145
+ for (const key in instance.ctx) if (isKeyOfType(Comp, key, type)) extracted[key] = instance.ctx[key];
4146
+ return extracted;
4147
+ }
4148
+ function isKeyOfType(Comp, key, type) {
4149
+ const opts = Comp[type];
4150
+ if (isArray(opts) && opts.includes(key) || isObject$1(opts) && key in opts) return true;
4151
+ if (Comp.extends && isKeyOfType(Comp.extends, key, type)) return true;
4152
+ if (Comp.mixins && Comp.mixins.some((m) => isKeyOfType(m, key, type))) return true;
4153
+ }
4154
+ function genRefFlag(v) {
4155
+ if (isShallow(v)) return `ShallowRef`;
4156
+ if (v.effect) return `ComputedRef`;
4157
+ return `Ref`;
4158
+ }
4159
+ if (window.devtoolsFormatters) window.devtoolsFormatters.push(formatter);
4160
+ else window.devtoolsFormatters = [formatter];
4161
+ }
4162
+
4163
+ //#endregion
4164
+ //#region ../../node_modules/.pnpm/vue@3.5.22_typescript@5.9.3/node_modules/vue/dist/vue.runtime.esm-bundler.js
4165
+ function initDev() {
4166
+ initCustomFormatter();
4167
+ }
4168
+ initDev();
4169
+
4170
+ //#endregion
4171
+ //#region src/util/reactivity/getRawData.ts
4172
+ const getRawData = (data) => isReactive(data) ? toRaw(data) : data;
4173
+
4174
+ //#endregion
4175
+ //#region ../../node_modules/.pnpm/@vueuse+shared@13.9.0_vue@3.5.22_typescript@5.9.3_/node_modules/@vueuse/shared/index.mjs
4176
+ const isWorker = typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
4177
+ const toString = Object.prototype.toString;
4178
+ const isObject = (val) => toString.call(val) === "[object Object]";
4179
+ function cacheStringFunction(fn) {
4180
+ const cache = /* @__PURE__ */ Object.create(null);
4181
+ return (str) => {
4182
+ return cache[str] || (cache[str] = fn(str));
4183
+ };
4184
+ }
4185
+ const hyphenateRE = /\B([A-Z])/g;
4186
+ const hyphenate = cacheStringFunction((str) => str.replace(hyphenateRE, "-$1").toLowerCase());
4187
+ const camelizeRE = /-(\w)/g;
4188
+ const camelize = cacheStringFunction((str) => {
4189
+ return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
4190
+ });
4191
+
4192
+ //#endregion
4193
+ //#region src/util/reactivity/toRawDeep.ts
4194
+ const toRawDeep = (data) => {
4195
+ const rawData = getRawData(data);
4196
+ for (const key in rawData) if (Object.hasOwn(rawData, key)) {
4197
+ const value = rawData[key];
4198
+ if (!isObject(value) && !Array.isArray(value)) continue;
4199
+ rawData[key] = toRawDeep(value);
4200
+ }
4201
+ return rawData;
4202
+ };
4203
+
4204
+ //#endregion
4205
+ //#region src/models/shared/Serializable.ts
4206
+ var Serializable = class {
4207
+ toJSON() {
4208
+ return JSON.stringify(structuredClone(toRawDeep(this)));
4209
+ }
4210
+ };
78
4211
 
79
4212
  //#endregion
80
4213
  //#region src/services/prettier/css.ts
@@ -84,6 +4217,38 @@ const css = String.raw;
84
4217
  //#region src/services/prettier/html.ts
85
4218
  const html = String.raw;
86
4219
 
4220
+ //#endregion
4221
+ //#region src/services/shared/applyItemMetadataMixin.ts
4222
+ const applyItemMetadataMixin = (Base) => class ItemWithMetadata extends Base {
4223
+ createdAt = /* @__PURE__ */ new Date();
4224
+ deletedAt = null;
4225
+ updatedAt = /* @__PURE__ */ new Date();
4226
+ };
4227
+
4228
+ //#endregion
4229
+ //#region src/models/environment/Environment.js
4230
+ const Environment$1 = {
4231
+ development: "development",
4232
+ production: "production",
4233
+ test: "test"
4234
+ };
4235
+
4236
+ //#endregion
4237
+ //#region src/util/environment/constants.js
4238
+ const IS_PRODUCTION$1 = "development" === Environment$1.production;
4239
+ const IS_TEST$1 = "development" === Environment$1.test;
4240
+ const IS_DEVELOPMENT$1 = "development" === Environment$1.development;
4241
+
4242
+ //#endregion
4243
+ //#region src/util/environment/constants.ts
4244
+ const IS_PRODUCTION = IS_PRODUCTION$1;
4245
+ const IS_TEST = IS_TEST$1;
4246
+ const IS_DEVELOPMENT = IS_DEVELOPMENT$1;
4247
+
4248
+ //#endregion
4249
+ //#region src/util/environment/getIsServer.ts
4250
+ const getIsServer = () => typeof window === "undefined";
4251
+
87
4252
  //#endregion
88
4253
  //#region src/util/id/constants.ts
89
4254
  const ID_SEPARATOR = "|";
@@ -96,10 +4261,34 @@ const isPlainObject = (data) => {
96
4261
  return prototype === null || prototype === Object.prototype;
97
4262
  };
98
4263
 
4264
+ //#endregion
4265
+ //#region src/util/object/jsonDateParse.ts
4266
+ const reISO = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.{0,1}\d*))(?:Z|(\+|-)([\d|:]*))?$/;
4267
+ const reMsAjax = /^\/Date\((d|-|.*)\)[/|\\]$/;
4268
+ const jsonDateParse = (text) => JSON.parse(text, (_key, value) => {
4269
+ let parsedValue = value;
4270
+ if (typeof value === "string") {
4271
+ let a = reISO.exec(value);
4272
+ if (a) parsedValue = new Date(value);
4273
+ else {
4274
+ a = reMsAjax.exec(value);
4275
+ if (a) {
4276
+ const b = a[1].split(/[-+,.]/);
4277
+ parsedValue = /* @__PURE__ */ new Date(b[0] ? +b[0] : 0 - +b[1]);
4278
+ }
4279
+ }
4280
+ }
4281
+ return parsedValue;
4282
+ });
4283
+
99
4284
  //#endregion
100
4285
  //#region src/util/object/mergeObjectsStrict.ts
101
4286
  const mergeObjectsStrict = (...objects) => Object.assign({}, ...objects);
102
4287
 
4288
+ //#endregion
4289
+ //#region src/util/regex/escapeRegExp.ts
4290
+ const escapeRegExp = (string) => string.replaceAll(/[.*+?^${}()|[\]\\]/g, String.raw`\$&`);
4291
+
103
4292
  //#endregion
104
4293
  //#region src/util/text/capitalize.ts
105
4294
  const capitalize = (string) => `${string.charAt(0).toUpperCase()}${string.slice(1)}`;
@@ -121,6 +4310,33 @@ const toKebabCase = (string) => string.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|
121
4310
  //#region src/util/text/uncapitalize.ts
122
4311
  const uncapitalize = (string) => `${string.charAt(0).toLowerCase()}${string.slice(1)}`;
123
4312
 
4313
+ //#endregion
4314
+ //#region src/util/time/hrtime.ts
4315
+ const hrtime = (previousHrTime) => {
4316
+ if (getIsServer()) return process.hrtime(previousHrTime);
4317
+ const clocktime = performance.now() * .001;
4318
+ let seconds = Math.floor(clocktime);
4319
+ let nanoseconds = Math.floor(clocktime % 1 * 1e9);
4320
+ if (previousHrTime) {
4321
+ seconds -= previousHrTime[0];
4322
+ nanoseconds -= previousHrTime[1];
4323
+ if (nanoseconds < 0) {
4324
+ seconds--;
4325
+ nanoseconds += 1e9;
4326
+ }
4327
+ }
4328
+ return [seconds, nanoseconds];
4329
+ };
4330
+
4331
+ //#endregion
4332
+ //#region src/util/time/now.ts
4333
+ const loadNanoseconds = hrtime();
4334
+ const loadMilliseconds = Date.now();
4335
+ const now = () => {
4336
+ const [seconds, nanoseconds] = hrtime(loadNanoseconds);
4337
+ return (BigInt(loadMilliseconds) * BigInt(1e6) + (BigInt(seconds) * BigInt(1e9) + BigInt(nanoseconds))).toString();
4338
+ };
4339
+
124
4340
  //#endregion
125
4341
  //#region src/util/validation/exhaustiveGuard.ts
126
4342
  const exhaustiveGuard = (value) => {
@@ -137,4 +4353,4 @@ const UUIDV4_REGEX = /^[0-9A-F]{8}-[0-9A-F]{4}-[4][0-9A-F]{3}-[89AB][0-9A-F]{3}-
137
4353
  const uuidValidateV4 = (uuid) => UUIDV4_REGEX.test(uuid);
138
4354
 
139
4355
  //#endregion
140
- export { BinaryOperator, ID_SEPARATOR, InvalidOperationError, Literal, NIL, NotFoundError, NotInitializedError, Operation, UUIDV4_REGEX, UnaryOperator, capitalize, css, exhaustiveGuard, html, isNull, isPartitionKey, isPlainObject, isRowKey, mergeObjectsStrict, streamToText, toKebabCase, uncapitalize, uuidValidateV4 };
4356
+ export { Environment, ID_SEPARATOR, IS_DEVELOPMENT, IS_PRODUCTION, IS_TEST, InvalidOperationError, ItemEntityTypePropertyNames, ItemMetadata, ItemMetadataPropertyNames, NIL, NotFoundError, NotInitializedError, Operation, Serializable, UUIDV4_REGEX, applyItemMetadataMixin, capitalize, createItemEntityTypeSchema, css, escapeRegExp, exhaustiveGuard, getIsServer, getPropertyNames, getRawData, hrtime, html, isPlainObject, itemMetadataSchema, jsonDateParse, mergeObjectsStrict, now, streamToText, toKebabCase, toRawDeep, uncapitalize, uuidValidateV4 };