@zaflun/lumio-sdk 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/lumio-runtime.global.js +773 -1476
- package/dist/server.d.ts +86 -1
- package/dist/server.js +43 -0
- package/package.json +2 -2
|
@@ -137,8 +137,8 @@
|
|
|
137
137
|
function(fulfilledValue) {
|
|
138
138
|
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
139
139
|
},
|
|
140
|
-
function(
|
|
141
|
-
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason =
|
|
140
|
+
function(error48) {
|
|
141
|
+
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error48);
|
|
142
142
|
}
|
|
143
143
|
)), thenable.status) {
|
|
144
144
|
case "fulfilled":
|
|
@@ -240,9 +240,9 @@
|
|
|
240
240
|
if (0 === payload._status || -1 === payload._status)
|
|
241
241
|
payload._status = 1, payload._result = moduleObject;
|
|
242
242
|
},
|
|
243
|
-
function(
|
|
243
|
+
function(error48) {
|
|
244
244
|
if (0 === payload._status || -1 === payload._status)
|
|
245
|
-
payload._status = 2, payload._result =
|
|
245
|
+
payload._status = 2, payload._result = error48;
|
|
246
246
|
}
|
|
247
247
|
);
|
|
248
248
|
-1 === payload._status && (payload._status = 0, payload._result = ctor);
|
|
@@ -250,20 +250,20 @@
|
|
|
250
250
|
if (1 === payload._status) return payload._result.default;
|
|
251
251
|
throw payload._result;
|
|
252
252
|
}
|
|
253
|
-
var reportGlobalError = "function" === typeof reportError ? reportError : function(
|
|
253
|
+
var reportGlobalError = "function" === typeof reportError ? reportError : function(error48) {
|
|
254
254
|
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
255
|
-
var
|
|
255
|
+
var event2 = new window.ErrorEvent("error", {
|
|
256
256
|
bubbles: true,
|
|
257
257
|
cancelable: true,
|
|
258
|
-
message: "object" === typeof
|
|
259
|
-
error:
|
|
258
|
+
message: "object" === typeof error48 && null !== error48 && "string" === typeof error48.message ? String(error48.message) : String(error48),
|
|
259
|
+
error: error48
|
|
260
260
|
});
|
|
261
|
-
if (!window.dispatchEvent(
|
|
261
|
+
if (!window.dispatchEvent(event2)) return;
|
|
262
262
|
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
263
|
-
process.emit("uncaughtException",
|
|
263
|
+
process.emit("uncaughtException", error48);
|
|
264
264
|
return;
|
|
265
265
|
}
|
|
266
|
-
console.error(
|
|
266
|
+
console.error(error48);
|
|
267
267
|
};
|
|
268
268
|
var Children = {
|
|
269
269
|
map: mapChildren,
|
|
@@ -398,8 +398,8 @@
|
|
|
398
398
|
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
399
399
|
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
400
400
|
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
401
|
-
} catch (
|
|
402
|
-
reportGlobalError(
|
|
401
|
+
} catch (error48) {
|
|
402
|
+
reportGlobalError(error48);
|
|
403
403
|
} finally {
|
|
404
404
|
null !== prevTransition && null !== currentTransition.types && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
|
|
405
405
|
}
|
|
@@ -582,12 +582,12 @@
|
|
|
582
582
|
var localClearTimeout = "function" === typeof clearTimeout ? clearTimeout : null;
|
|
583
583
|
var localSetImmediate = "undefined" !== typeof setImmediate ? setImmediate : null;
|
|
584
584
|
function advanceTimers(currentTime) {
|
|
585
|
-
for (var
|
|
586
|
-
if (null ===
|
|
587
|
-
else if (
|
|
588
|
-
pop(timerQueue),
|
|
585
|
+
for (var timer2 = peek(timerQueue); null !== timer2; ) {
|
|
586
|
+
if (null === timer2.callback) pop(timerQueue);
|
|
587
|
+
else if (timer2.startTime <= currentTime)
|
|
588
|
+
pop(timerQueue), timer2.sortIndex = timer2.expirationTime, push(taskQueue, timer2);
|
|
589
589
|
else break;
|
|
590
|
-
|
|
590
|
+
timer2 = peek(timerQueue);
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
593
|
function handleTimeout(currentTime) {
|
|
@@ -2228,12 +2228,12 @@
|
|
|
2228
2228
|
assign(SyntheticBaseEvent.prototype, {
|
|
2229
2229
|
preventDefault: function() {
|
|
2230
2230
|
this.defaultPrevented = true;
|
|
2231
|
-
var
|
|
2232
|
-
|
|
2231
|
+
var event2 = this.nativeEvent;
|
|
2232
|
+
event2 && (event2.preventDefault ? event2.preventDefault() : "unknown" !== typeof event2.returnValue && (event2.returnValue = false), this.isDefaultPrevented = functionThatReturnsTrue);
|
|
2233
2233
|
},
|
|
2234
2234
|
stopPropagation: function() {
|
|
2235
|
-
var
|
|
2236
|
-
|
|
2235
|
+
var event2 = this.nativeEvent;
|
|
2236
|
+
event2 && (event2.stopPropagation ? event2.stopPropagation() : "unknown" !== typeof event2.cancelBubble && (event2.cancelBubble = true), this.isPropagationStopped = functionThatReturnsTrue);
|
|
2237
2237
|
},
|
|
2238
2238
|
persist: function() {
|
|
2239
2239
|
},
|
|
@@ -2245,8 +2245,8 @@
|
|
|
2245
2245
|
eventPhase: 0,
|
|
2246
2246
|
bubbles: 0,
|
|
2247
2247
|
cancelable: 0,
|
|
2248
|
-
timeStamp: function(
|
|
2249
|
-
return
|
|
2248
|
+
timeStamp: function(event2) {
|
|
2249
|
+
return event2.timeStamp || Date.now();
|
|
2250
2250
|
},
|
|
2251
2251
|
defaultPrevented: 0,
|
|
2252
2252
|
isTrusted: 0
|
|
@@ -2271,16 +2271,16 @@
|
|
|
2271
2271
|
getModifierState: getEventModifierState,
|
|
2272
2272
|
button: 0,
|
|
2273
2273
|
buttons: 0,
|
|
2274
|
-
relatedTarget: function(
|
|
2275
|
-
return void 0 ===
|
|
2274
|
+
relatedTarget: function(event2) {
|
|
2275
|
+
return void 0 === event2.relatedTarget ? event2.fromElement === event2.srcElement ? event2.toElement : event2.fromElement : event2.relatedTarget;
|
|
2276
2276
|
},
|
|
2277
|
-
movementX: function(
|
|
2278
|
-
if ("movementX" in
|
|
2279
|
-
|
|
2277
|
+
movementX: function(event2) {
|
|
2278
|
+
if ("movementX" in event2) return event2.movementX;
|
|
2279
|
+
event2 !== lastMouseEvent && (lastMouseEvent && "mousemove" === event2.type ? (lastMovementX = event2.screenX - lastMouseEvent.screenX, lastMovementY = event2.screenY - lastMouseEvent.screenY) : lastMovementY = lastMovementX = 0, lastMouseEvent = event2);
|
|
2280
2280
|
return lastMovementX;
|
|
2281
2281
|
},
|
|
2282
|
-
movementY: function(
|
|
2283
|
-
return "movementY" in
|
|
2282
|
+
movementY: function(event2) {
|
|
2283
|
+
return "movementY" in event2 ? event2.movementY : lastMovementY;
|
|
2284
2284
|
}
|
|
2285
2285
|
});
|
|
2286
2286
|
var SyntheticMouseEvent = createSyntheticEvent(MouseEventInterface);
|
|
@@ -2295,8 +2295,8 @@
|
|
|
2295
2295
|
});
|
|
2296
2296
|
var SyntheticAnimationEvent = createSyntheticEvent(AnimationEventInterface);
|
|
2297
2297
|
var ClipboardEventInterface = assign({}, EventInterface, {
|
|
2298
|
-
clipboardData: function(
|
|
2299
|
-
return "clipboardData" in
|
|
2298
|
+
clipboardData: function(event2) {
|
|
2299
|
+
return "clipboardData" in event2 ? event2.clipboardData : window.clipboardData;
|
|
2300
2300
|
}
|
|
2301
2301
|
});
|
|
2302
2302
|
var SyntheticClipboardEvent = createSyntheticEvent(ClipboardEventInterface);
|
|
@@ -2384,14 +2384,14 @@
|
|
|
2384
2384
|
repeat: 0,
|
|
2385
2385
|
locale: 0,
|
|
2386
2386
|
getModifierState: getEventModifierState,
|
|
2387
|
-
charCode: function(
|
|
2388
|
-
return "keypress" ===
|
|
2387
|
+
charCode: function(event2) {
|
|
2388
|
+
return "keypress" === event2.type ? getEventCharCode(event2) : 0;
|
|
2389
2389
|
},
|
|
2390
|
-
keyCode: function(
|
|
2391
|
-
return "keydown" ===
|
|
2390
|
+
keyCode: function(event2) {
|
|
2391
|
+
return "keydown" === event2.type || "keyup" === event2.type ? event2.keyCode : 0;
|
|
2392
2392
|
},
|
|
2393
|
-
which: function(
|
|
2394
|
-
return "keypress" ===
|
|
2393
|
+
which: function(event2) {
|
|
2394
|
+
return "keypress" === event2.type ? getEventCharCode(event2) : "keydown" === event2.type || "keyup" === event2.type ? event2.keyCode : 0;
|
|
2395
2395
|
}
|
|
2396
2396
|
});
|
|
2397
2397
|
var SyntheticKeyboardEvent = createSyntheticEvent(KeyboardEventInterface);
|
|
@@ -2426,11 +2426,11 @@
|
|
|
2426
2426
|
});
|
|
2427
2427
|
var SyntheticTransitionEvent = createSyntheticEvent(TransitionEventInterface);
|
|
2428
2428
|
var WheelEventInterface = assign({}, MouseEventInterface, {
|
|
2429
|
-
deltaX: function(
|
|
2430
|
-
return "deltaX" in
|
|
2429
|
+
deltaX: function(event2) {
|
|
2430
|
+
return "deltaX" in event2 ? event2.deltaX : "wheelDeltaX" in event2 ? -event2.wheelDeltaX : 0;
|
|
2431
2431
|
},
|
|
2432
|
-
deltaY: function(
|
|
2433
|
-
return "deltaY" in
|
|
2432
|
+
deltaY: function(event2) {
|
|
2433
|
+
return "deltaY" in event2 ? event2.deltaY : "wheelDeltaY" in event2 ? -event2.wheelDeltaY : "wheelDelta" in event2 ? -event2.wheelDelta : 0;
|
|
2434
2434
|
},
|
|
2435
2435
|
deltaZ: 0,
|
|
2436
2436
|
deltaMode: 0
|
|
@@ -2719,20 +2719,20 @@
|
|
|
2719
2719
|
topLevelEventsToReactNames.set(domEventName, reactName);
|
|
2720
2720
|
registerTwoPhaseEvent(reactName, [domEventName]);
|
|
2721
2721
|
}
|
|
2722
|
-
var reportGlobalError = "function" === typeof reportError ? reportError : function(
|
|
2722
|
+
var reportGlobalError = "function" === typeof reportError ? reportError : function(error48) {
|
|
2723
2723
|
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
2724
|
-
var
|
|
2724
|
+
var event2 = new window.ErrorEvent("error", {
|
|
2725
2725
|
bubbles: true,
|
|
2726
2726
|
cancelable: true,
|
|
2727
|
-
message: "object" === typeof
|
|
2728
|
-
error:
|
|
2727
|
+
message: "object" === typeof error48 && null !== error48 && "string" === typeof error48.message ? String(error48.message) : String(error48),
|
|
2728
|
+
error: error48
|
|
2729
2729
|
});
|
|
2730
|
-
if (!window.dispatchEvent(
|
|
2730
|
+
if (!window.dispatchEvent(event2)) return;
|
|
2731
2731
|
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
2732
|
-
process.emit("uncaughtException",
|
|
2732
|
+
process.emit("uncaughtException", error48);
|
|
2733
2733
|
return;
|
|
2734
2734
|
}
|
|
2735
|
-
console.error(
|
|
2735
|
+
console.error(error48);
|
|
2736
2736
|
};
|
|
2737
2737
|
var concurrentQueues = [];
|
|
2738
2738
|
var concurrentQueuesIndex = 0;
|
|
@@ -3009,14 +3009,14 @@
|
|
|
3009
3009
|
var rootOrSingletonContext = false;
|
|
3010
3010
|
var HydrationMismatchException = Error(formatProdErrorMessage(519));
|
|
3011
3011
|
function throwOnHydrationMismatch(fiber) {
|
|
3012
|
-
var
|
|
3012
|
+
var error48 = Error(
|
|
3013
3013
|
formatProdErrorMessage(
|
|
3014
3014
|
418,
|
|
3015
3015
|
1 < arguments.length && void 0 !== arguments[1] && arguments[1] ? "text" : "HTML",
|
|
3016
3016
|
""
|
|
3017
3017
|
)
|
|
3018
3018
|
);
|
|
3019
|
-
queueHydrationError(createCapturedValueAtFiber(
|
|
3019
|
+
queueHydrationError(createCapturedValueAtFiber(error48, fiber));
|
|
3020
3020
|
throw HydrationMismatchException;
|
|
3021
3021
|
}
|
|
3022
3022
|
function prepareToHydrateHostInstance(fiber) {
|
|
@@ -3126,8 +3126,8 @@
|
|
|
3126
3126
|
), hydrationErrors = null);
|
|
3127
3127
|
return queuedErrors;
|
|
3128
3128
|
}
|
|
3129
|
-
function queueHydrationError(
|
|
3130
|
-
null === hydrationErrors ? hydrationErrors = [
|
|
3129
|
+
function queueHydrationError(error48) {
|
|
3130
|
+
null === hydrationErrors ? hydrationErrors = [error48] : hydrationErrors.push(error48);
|
|
3131
3131
|
}
|
|
3132
3132
|
var valueCursor = createCursor(null);
|
|
3133
3133
|
var currentlyRenderingFiber$1 = null;
|
|
@@ -3349,11 +3349,11 @@
|
|
|
3349
3349
|
thenableWithOverride.value = result;
|
|
3350
3350
|
for (var i = 0; i < listeners.length; i++) (0, listeners[i])(result);
|
|
3351
3351
|
},
|
|
3352
|
-
function(
|
|
3352
|
+
function(error48) {
|
|
3353
3353
|
thenableWithOverride.status = "rejected";
|
|
3354
|
-
thenableWithOverride.reason =
|
|
3355
|
-
for (
|
|
3356
|
-
(0, listeners[
|
|
3354
|
+
thenableWithOverride.reason = error48;
|
|
3355
|
+
for (error48 = 0; error48 < listeners.length; error48++)
|
|
3356
|
+
(0, listeners[error48])(void 0);
|
|
3357
3357
|
}
|
|
3358
3358
|
);
|
|
3359
3359
|
return thenableWithOverride;
|
|
@@ -3409,11 +3409,11 @@
|
|
|
3409
3409
|
fulfilledThenable.value = fulfilledValue;
|
|
3410
3410
|
}
|
|
3411
3411
|
},
|
|
3412
|
-
function(
|
|
3412
|
+
function(error48) {
|
|
3413
3413
|
if ("pending" === thenable.status) {
|
|
3414
3414
|
var rejectedThenable = thenable;
|
|
3415
3415
|
rejectedThenable.status = "rejected";
|
|
3416
|
-
rejectedThenable.reason =
|
|
3416
|
+
rejectedThenable.reason = error48;
|
|
3417
3417
|
}
|
|
3418
3418
|
}
|
|
3419
3419
|
);
|
|
@@ -4494,7 +4494,7 @@
|
|
|
4494
4494
|
try {
|
|
4495
4495
|
var nextValue = latestGetSnapshot();
|
|
4496
4496
|
return !objectIs(inst, nextValue);
|
|
4497
|
-
} catch (
|
|
4497
|
+
} catch (error48) {
|
|
4498
4498
|
return true;
|
|
4499
4499
|
}
|
|
4500
4500
|
}
|
|
@@ -4566,8 +4566,8 @@
|
|
|
4566
4566
|
var returnValue = action2(prevState, payload), onStartTransitionFinish = ReactSharedInternals.S;
|
|
4567
4567
|
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
4568
4568
|
handleActionReturnValue(actionQueue, node, returnValue);
|
|
4569
|
-
} catch (
|
|
4570
|
-
onActionError(actionQueue, node,
|
|
4569
|
+
} catch (error48) {
|
|
4570
|
+
onActionError(actionQueue, node, error48);
|
|
4571
4571
|
} finally {
|
|
4572
4572
|
null !== prevTransition && null !== currentTransition.types && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
|
|
4573
4573
|
}
|
|
@@ -4583,8 +4583,8 @@
|
|
|
4583
4583
|
function(nextState) {
|
|
4584
4584
|
onActionSuccess(actionQueue, node, nextState);
|
|
4585
4585
|
},
|
|
4586
|
-
function(
|
|
4587
|
-
return onActionError(actionQueue, node,
|
|
4586
|
+
function(error48) {
|
|
4587
|
+
return onActionError(actionQueue, node, error48);
|
|
4588
4588
|
}
|
|
4589
4589
|
) : onActionSuccess(actionQueue, node, returnValue);
|
|
4590
4590
|
}
|
|
@@ -4596,13 +4596,13 @@
|
|
|
4596
4596
|
actionNode = actionQueue.pending;
|
|
4597
4597
|
null !== actionNode && (nextState = actionNode.next, nextState === actionNode ? actionQueue.pending = null : (nextState = nextState.next, actionNode.next = nextState, runActionStateAction(actionQueue, nextState)));
|
|
4598
4598
|
}
|
|
4599
|
-
function onActionError(actionQueue, actionNode,
|
|
4599
|
+
function onActionError(actionQueue, actionNode, error48) {
|
|
4600
4600
|
var last = actionQueue.pending;
|
|
4601
4601
|
actionQueue.pending = null;
|
|
4602
4602
|
if (null !== last) {
|
|
4603
4603
|
last = last.next;
|
|
4604
4604
|
do
|
|
4605
|
-
actionNode.status = "rejected", actionNode.reason =
|
|
4605
|
+
actionNode.status = "rejected", actionNode.reason = error48, notifyActionListeners(actionNode), actionNode = actionNode.next;
|
|
4606
4606
|
while (actionNode !== last);
|
|
4607
4607
|
}
|
|
4608
4608
|
actionQueue.action = null;
|
|
@@ -4895,12 +4895,12 @@
|
|
|
4895
4895
|
finishedState,
|
|
4896
4896
|
requestUpdateLane(fiber)
|
|
4897
4897
|
);
|
|
4898
|
-
} catch (
|
|
4898
|
+
} catch (error48) {
|
|
4899
4899
|
dispatchSetStateInternal(
|
|
4900
4900
|
fiber,
|
|
4901
4901
|
queue,
|
|
4902
4902
|
{ then: function() {
|
|
4903
|
-
}, status: "rejected", reason:
|
|
4903
|
+
}, status: "rejected", reason: error48 },
|
|
4904
4904
|
requestUpdateLane()
|
|
4905
4905
|
);
|
|
4906
4906
|
} finally {
|
|
@@ -5030,7 +5030,7 @@
|
|
|
5030
5030
|
update.eagerState = eagerState;
|
|
5031
5031
|
if (objectIs(eagerState, currentState))
|
|
5032
5032
|
return enqueueUpdate$1(fiber, queue, update, 0), null === workInProgressRoot && finishQueueingConcurrentUpdates(), false;
|
|
5033
|
-
} catch (
|
|
5033
|
+
} catch (error48) {
|
|
5034
5034
|
} finally {
|
|
5035
5035
|
}
|
|
5036
5036
|
action2 = enqueueConcurrentHookUpdate(fiber, queue, update, lane);
|
|
@@ -5441,14 +5441,14 @@
|
|
|
5441
5441
|
}
|
|
5442
5442
|
return newProps;
|
|
5443
5443
|
}
|
|
5444
|
-
function defaultOnUncaughtError(
|
|
5445
|
-
reportGlobalError(
|
|
5444
|
+
function defaultOnUncaughtError(error48) {
|
|
5445
|
+
reportGlobalError(error48);
|
|
5446
5446
|
}
|
|
5447
|
-
function defaultOnCaughtError(
|
|
5448
|
-
console.error(
|
|
5447
|
+
function defaultOnCaughtError(error48) {
|
|
5448
|
+
console.error(error48);
|
|
5449
5449
|
}
|
|
5450
|
-
function defaultOnRecoverableError(
|
|
5451
|
-
reportGlobalError(
|
|
5450
|
+
function defaultOnRecoverableError(error48) {
|
|
5451
|
+
reportGlobalError(error48);
|
|
5452
5452
|
}
|
|
5453
5453
|
function logUncaughtError(root2, errorInfo) {
|
|
5454
5454
|
try {
|
|
@@ -5490,9 +5490,9 @@
|
|
|
5490
5490
|
function initializeClassErrorUpdate(update, root2, fiber, errorInfo) {
|
|
5491
5491
|
var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
|
|
5492
5492
|
if ("function" === typeof getDerivedStateFromError) {
|
|
5493
|
-
var
|
|
5493
|
+
var error48 = errorInfo.value;
|
|
5494
5494
|
update.payload = function() {
|
|
5495
|
-
return getDerivedStateFromError(
|
|
5495
|
+
return getDerivedStateFromError(error48);
|
|
5496
5496
|
};
|
|
5497
5497
|
update.callback = function() {
|
|
5498
5498
|
logCaughtError(root2, fiber, errorInfo);
|
|
@@ -7164,8 +7164,8 @@
|
|
|
7164
7164
|
updateQueue = updateQueue.next;
|
|
7165
7165
|
} while (updateQueue !== firstEffect);
|
|
7166
7166
|
}
|
|
7167
|
-
} catch (
|
|
7168
|
-
captureCommitPhaseError(finishedWork, finishedWork.return,
|
|
7167
|
+
} catch (error48) {
|
|
7168
|
+
captureCommitPhaseError(finishedWork, finishedWork.return, error48);
|
|
7169
7169
|
}
|
|
7170
7170
|
}
|
|
7171
7171
|
function commitHookEffectListUnmount(flags, finishedWork, nearestMountedAncestor$jscomp$0) {
|
|
@@ -7183,11 +7183,11 @@
|
|
|
7183
7183
|
var nearestMountedAncestor = nearestMountedAncestor$jscomp$0, destroy_ = destroy;
|
|
7184
7184
|
try {
|
|
7185
7185
|
destroy_();
|
|
7186
|
-
} catch (
|
|
7186
|
+
} catch (error48) {
|
|
7187
7187
|
captureCommitPhaseError(
|
|
7188
7188
|
lastEffect,
|
|
7189
7189
|
nearestMountedAncestor,
|
|
7190
|
-
|
|
7190
|
+
error48
|
|
7191
7191
|
);
|
|
7192
7192
|
}
|
|
7193
7193
|
}
|
|
@@ -7195,8 +7195,8 @@
|
|
|
7195
7195
|
updateQueue = updateQueue.next;
|
|
7196
7196
|
} while (updateQueue !== firstEffect);
|
|
7197
7197
|
}
|
|
7198
|
-
} catch (
|
|
7199
|
-
captureCommitPhaseError(finishedWork, finishedWork.return,
|
|
7198
|
+
} catch (error48) {
|
|
7199
|
+
captureCommitPhaseError(finishedWork, finishedWork.return, error48);
|
|
7200
7200
|
}
|
|
7201
7201
|
}
|
|
7202
7202
|
function commitClassCallbacks(finishedWork) {
|
|
@@ -7205,8 +7205,8 @@
|
|
|
7205
7205
|
var instance = finishedWork.stateNode;
|
|
7206
7206
|
try {
|
|
7207
7207
|
commitCallbacks(updateQueue, instance);
|
|
7208
|
-
} catch (
|
|
7209
|
-
captureCommitPhaseError(finishedWork, finishedWork.return,
|
|
7208
|
+
} catch (error48) {
|
|
7209
|
+
captureCommitPhaseError(finishedWork, finishedWork.return, error48);
|
|
7210
7210
|
}
|
|
7211
7211
|
}
|
|
7212
7212
|
}
|
|
@@ -7218,8 +7218,8 @@
|
|
|
7218
7218
|
instance.state = current.memoizedState;
|
|
7219
7219
|
try {
|
|
7220
7220
|
instance.componentWillUnmount();
|
|
7221
|
-
} catch (
|
|
7222
|
-
captureCommitPhaseError(current, nearestMountedAncestor,
|
|
7221
|
+
} catch (error48) {
|
|
7222
|
+
captureCommitPhaseError(current, nearestMountedAncestor, error48);
|
|
7223
7223
|
}
|
|
7224
7224
|
}
|
|
7225
7225
|
function safelyAttachRef(current, nearestMountedAncestor) {
|
|
@@ -7240,8 +7240,8 @@
|
|
|
7240
7240
|
}
|
|
7241
7241
|
"function" === typeof ref ? current.refCleanup = ref(instanceToUse) : ref.current = instanceToUse;
|
|
7242
7242
|
}
|
|
7243
|
-
} catch (
|
|
7244
|
-
captureCommitPhaseError(current, nearestMountedAncestor,
|
|
7243
|
+
} catch (error48) {
|
|
7244
|
+
captureCommitPhaseError(current, nearestMountedAncestor, error48);
|
|
7245
7245
|
}
|
|
7246
7246
|
}
|
|
7247
7247
|
function safelyDetachRef(current, nearestMountedAncestor) {
|
|
@@ -7250,8 +7250,8 @@
|
|
|
7250
7250
|
if ("function" === typeof refCleanup)
|
|
7251
7251
|
try {
|
|
7252
7252
|
refCleanup();
|
|
7253
|
-
} catch (
|
|
7254
|
-
captureCommitPhaseError(current, nearestMountedAncestor,
|
|
7253
|
+
} catch (error48) {
|
|
7254
|
+
captureCommitPhaseError(current, nearestMountedAncestor, error48);
|
|
7255
7255
|
} finally {
|
|
7256
7256
|
current.refCleanup = null, current = current.alternate, null != current && (current.refCleanup = null);
|
|
7257
7257
|
}
|
|
@@ -7276,8 +7276,8 @@
|
|
|
7276
7276
|
case "img":
|
|
7277
7277
|
props.src ? instance.src = props.src : props.srcSet && (instance.srcset = props.srcSet);
|
|
7278
7278
|
}
|
|
7279
|
-
} catch (
|
|
7280
|
-
captureCommitPhaseError(finishedWork, finishedWork.return,
|
|
7279
|
+
} catch (error48) {
|
|
7280
|
+
captureCommitPhaseError(finishedWork, finishedWork.return, error48);
|
|
7281
7281
|
}
|
|
7282
7282
|
}
|
|
7283
7283
|
function commitHostUpdate(finishedWork, newProps, oldProps) {
|
|
@@ -7285,8 +7285,8 @@
|
|
|
7285
7285
|
var domElement = finishedWork.stateNode;
|
|
7286
7286
|
updateProperties(domElement, finishedWork.type, oldProps, newProps);
|
|
7287
7287
|
domElement[internalPropsKey] = newProps;
|
|
7288
|
-
} catch (
|
|
7289
|
-
captureCommitPhaseError(finishedWork, finishedWork.return,
|
|
7288
|
+
} catch (error48) {
|
|
7289
|
+
captureCommitPhaseError(finishedWork, finishedWork.return, error48);
|
|
7290
7290
|
}
|
|
7291
7291
|
}
|
|
7292
7292
|
function isHostParent(fiber) {
|
|
@@ -7332,8 +7332,8 @@
|
|
|
7332
7332
|
setInitialProperties(singleton, type, props);
|
|
7333
7333
|
singleton[internalInstanceKey] = finishedWork;
|
|
7334
7334
|
singleton[internalPropsKey] = props;
|
|
7335
|
-
} catch (
|
|
7336
|
-
captureCommitPhaseError(finishedWork, finishedWork.return,
|
|
7335
|
+
} catch (error48) {
|
|
7336
|
+
captureCommitPhaseError(finishedWork, finishedWork.return, error48);
|
|
7337
7337
|
}
|
|
7338
7338
|
}
|
|
7339
7339
|
var offscreenSubtreeIsHidden = false;
|
|
@@ -7426,11 +7426,11 @@
|
|
|
7426
7426
|
focusNode
|
|
7427
7427
|
);
|
|
7428
7428
|
selection.__reactInternalSnapshotBeforeUpdate = root2;
|
|
7429
|
-
} catch (
|
|
7429
|
+
} catch (error48) {
|
|
7430
7430
|
captureCommitPhaseError(
|
|
7431
7431
|
JSCompiler_temp,
|
|
7432
7432
|
JSCompiler_temp.return,
|
|
7433
|
-
|
|
7433
|
+
error48
|
|
7434
7434
|
);
|
|
7435
7435
|
}
|
|
7436
7436
|
}
|
|
@@ -7485,8 +7485,8 @@
|
|
|
7485
7485
|
if (finishedRoot = finishedWork.stateNode, null === current)
|
|
7486
7486
|
try {
|
|
7487
7487
|
finishedRoot.componentDidMount();
|
|
7488
|
-
} catch (
|
|
7489
|
-
captureCommitPhaseError(finishedWork, finishedWork.return,
|
|
7488
|
+
} catch (error48) {
|
|
7489
|
+
captureCommitPhaseError(finishedWork, finishedWork.return, error48);
|
|
7490
7490
|
}
|
|
7491
7491
|
else {
|
|
7492
7492
|
var prevProps = resolveClassComponentProps(
|
|
@@ -7526,8 +7526,8 @@
|
|
|
7526
7526
|
}
|
|
7527
7527
|
try {
|
|
7528
7528
|
commitCallbacks(finishedRoot, current);
|
|
7529
|
-
} catch (
|
|
7530
|
-
captureCommitPhaseError(finishedWork, finishedWork.return,
|
|
7529
|
+
} catch (error48) {
|
|
7530
|
+
captureCommitPhaseError(finishedWork, finishedWork.return, error48);
|
|
7531
7531
|
}
|
|
7532
7532
|
}
|
|
7533
7533
|
break;
|
|
@@ -7644,21 +7644,21 @@
|
|
|
7644
7644
|
if (hostParentIsContainer)
|
|
7645
7645
|
try {
|
|
7646
7646
|
(9 === hostParent.nodeType ? hostParent.body : "HTML" === hostParent.nodeName ? hostParent.ownerDocument.body : hostParent).removeChild(deletedFiber.stateNode);
|
|
7647
|
-
} catch (
|
|
7647
|
+
} catch (error48) {
|
|
7648
7648
|
captureCommitPhaseError(
|
|
7649
7649
|
deletedFiber,
|
|
7650
7650
|
nearestMountedAncestor,
|
|
7651
|
-
|
|
7651
|
+
error48
|
|
7652
7652
|
);
|
|
7653
7653
|
}
|
|
7654
7654
|
else
|
|
7655
7655
|
try {
|
|
7656
7656
|
hostParent.removeChild(deletedFiber.stateNode);
|
|
7657
|
-
} catch (
|
|
7657
|
+
} catch (error48) {
|
|
7658
7658
|
captureCommitPhaseError(
|
|
7659
7659
|
deletedFiber,
|
|
7660
7660
|
nearestMountedAncestor,
|
|
7661
|
-
|
|
7661
|
+
error48
|
|
7662
7662
|
);
|
|
7663
7663
|
}
|
|
7664
7664
|
break;
|
|
@@ -7734,8 +7734,8 @@
|
|
|
7734
7734
|
finishedRoot = finishedRoot.dehydrated;
|
|
7735
7735
|
try {
|
|
7736
7736
|
retryIfBlockedOn(finishedRoot);
|
|
7737
|
-
} catch (
|
|
7738
|
-
captureCommitPhaseError(finishedWork, finishedWork.return,
|
|
7737
|
+
} catch (error48) {
|
|
7738
|
+
captureCommitPhaseError(finishedWork, finishedWork.return, error48);
|
|
7739
7739
|
}
|
|
7740
7740
|
}
|
|
7741
7741
|
}
|
|
@@ -7743,8 +7743,8 @@
|
|
|
7743
7743
|
if (null === finishedWork.memoizedState && (finishedRoot = finishedWork.alternate, null !== finishedRoot && (finishedRoot = finishedRoot.memoizedState, null !== finishedRoot && (finishedRoot = finishedRoot.dehydrated, null !== finishedRoot))))
|
|
7744
7744
|
try {
|
|
7745
7745
|
retryIfBlockedOn(finishedRoot);
|
|
7746
|
-
} catch (
|
|
7747
|
-
captureCommitPhaseError(finishedWork, finishedWork.return,
|
|
7746
|
+
} catch (error48) {
|
|
7747
|
+
captureCommitPhaseError(finishedWork, finishedWork.return, error48);
|
|
7748
7748
|
}
|
|
7749
7749
|
}
|
|
7750
7750
|
function getRetryCache(finishedWork) {
|
|
@@ -7942,8 +7942,8 @@
|
|
|
7942
7942
|
hoistableRoot = finishedWork.stateNode;
|
|
7943
7943
|
try {
|
|
7944
7944
|
setTextContent(hoistableRoot, "");
|
|
7945
|
-
} catch (
|
|
7946
|
-
captureCommitPhaseError(finishedWork, finishedWork.return,
|
|
7945
|
+
} catch (error48) {
|
|
7946
|
+
captureCommitPhaseError(finishedWork, finishedWork.return, error48);
|
|
7947
7947
|
}
|
|
7948
7948
|
}
|
|
7949
7949
|
flags & 4 && null != finishedWork.stateNode && (hoistableRoot = finishedWork.memoizedProps, commitHostUpdate(
|
|
@@ -7963,8 +7963,8 @@
|
|
|
7963
7963
|
current = finishedWork.stateNode;
|
|
7964
7964
|
try {
|
|
7965
7965
|
current.nodeValue = flags;
|
|
7966
|
-
} catch (
|
|
7967
|
-
captureCommitPhaseError(finishedWork, finishedWork.return,
|
|
7966
|
+
} catch (error48) {
|
|
7967
|
+
captureCommitPhaseError(finishedWork, finishedWork.return, error48);
|
|
7968
7968
|
}
|
|
7969
7969
|
}
|
|
7970
7970
|
break;
|
|
@@ -7978,8 +7978,8 @@
|
|
|
7978
7978
|
if (flags & 4 && null !== current && current.memoizedState.isDehydrated)
|
|
7979
7979
|
try {
|
|
7980
7980
|
retryIfBlockedOn(root2.containerInfo);
|
|
7981
|
-
} catch (
|
|
7982
|
-
captureCommitPhaseError(finishedWork, finishedWork.return,
|
|
7981
|
+
} catch (error48) {
|
|
7982
|
+
captureCommitPhaseError(finishedWork, finishedWork.return, error48);
|
|
7983
7983
|
}
|
|
7984
7984
|
needsFormReset && (needsFormReset = false, recursivelyResetForms(finishedWork));
|
|
7985
7985
|
break;
|
|
@@ -8029,8 +8029,8 @@
|
|
|
8029
8029
|
var styleProp = wasHidden.memoizedProps.style, display = void 0 !== styleProp && null !== styleProp && styleProp.hasOwnProperty("display") ? styleProp.display : null;
|
|
8030
8030
|
i.style.display = null == display || "boolean" === typeof display ? "" : ("" + display).trim();
|
|
8031
8031
|
}
|
|
8032
|
-
} catch (
|
|
8033
|
-
captureCommitPhaseError(wasHidden, wasHidden.return,
|
|
8032
|
+
} catch (error48) {
|
|
8033
|
+
captureCommitPhaseError(wasHidden, wasHidden.return, error48);
|
|
8034
8034
|
}
|
|
8035
8035
|
}
|
|
8036
8036
|
} else if (6 === root2.tag) {
|
|
@@ -8038,8 +8038,8 @@
|
|
|
8038
8038
|
wasHidden = root2;
|
|
8039
8039
|
try {
|
|
8040
8040
|
wasHidden.stateNode.nodeValue = hoistableRoot ? "" : wasHidden.memoizedProps;
|
|
8041
|
-
} catch (
|
|
8042
|
-
captureCommitPhaseError(wasHidden, wasHidden.return,
|
|
8041
|
+
} catch (error48) {
|
|
8042
|
+
captureCommitPhaseError(wasHidden, wasHidden.return, error48);
|
|
8043
8043
|
}
|
|
8044
8044
|
}
|
|
8045
8045
|
} else if (18 === root2.tag) {
|
|
@@ -8048,8 +8048,8 @@
|
|
|
8048
8048
|
try {
|
|
8049
8049
|
var instance = wasHidden.stateNode;
|
|
8050
8050
|
hoistableRoot ? hideOrUnhideDehydratedBoundary(instance, true) : hideOrUnhideDehydratedBoundary(wasHidden.stateNode, false);
|
|
8051
|
-
} catch (
|
|
8052
|
-
captureCommitPhaseError(wasHidden, wasHidden.return,
|
|
8051
|
+
} catch (error48) {
|
|
8052
|
+
captureCommitPhaseError(wasHidden, wasHidden.return, error48);
|
|
8053
8053
|
}
|
|
8054
8054
|
}
|
|
8055
8055
|
} else if ((22 !== root2.tag && 23 !== root2.tag || null === root2.memoizedState || root2 === finishedWork) && null !== root2.child) {
|
|
@@ -8117,8 +8117,8 @@
|
|
|
8117
8117
|
default:
|
|
8118
8118
|
throw Error(formatProdErrorMessage(161));
|
|
8119
8119
|
}
|
|
8120
|
-
} catch (
|
|
8121
|
-
captureCommitPhaseError(finishedWork, finishedWork.return,
|
|
8120
|
+
} catch (error48) {
|
|
8121
|
+
captureCommitPhaseError(finishedWork, finishedWork.return, error48);
|
|
8122
8122
|
}
|
|
8123
8123
|
finishedWork.flags &= -3;
|
|
8124
8124
|
}
|
|
@@ -8204,8 +8204,8 @@
|
|
|
8204
8204
|
if ("function" === typeof finishedRoot.componentDidMount)
|
|
8205
8205
|
try {
|
|
8206
8206
|
finishedRoot.componentDidMount();
|
|
8207
|
-
} catch (
|
|
8208
|
-
captureCommitPhaseError(current, current.return,
|
|
8207
|
+
} catch (error48) {
|
|
8208
|
+
captureCommitPhaseError(current, current.return, error48);
|
|
8209
8209
|
}
|
|
8210
8210
|
current = finishedWork;
|
|
8211
8211
|
finishedRoot = current.updateQueue;
|
|
@@ -8216,8 +8216,8 @@
|
|
|
8216
8216
|
if (null !== hiddenCallbacks)
|
|
8217
8217
|
for (finishedRoot.shared.hiddenCallbacks = null, finishedRoot = 0; finishedRoot < hiddenCallbacks.length; finishedRoot++)
|
|
8218
8218
|
callCallback(hiddenCallbacks[finishedRoot], instance);
|
|
8219
|
-
} catch (
|
|
8220
|
-
captureCommitPhaseError(current, current.return,
|
|
8219
|
+
} catch (error48) {
|
|
8220
|
+
captureCommitPhaseError(current, current.return, error48);
|
|
8221
8221
|
}
|
|
8222
8222
|
}
|
|
8223
8223
|
includeWorkInProgressEffects && flags & 64 && commitClassCallbacks(finishedWork);
|
|
@@ -8349,8 +8349,8 @@
|
|
|
8349
8349
|
finishedRoot.passiveEffectDuration,
|
|
8350
8350
|
-0
|
|
8351
8351
|
);
|
|
8352
|
-
} catch (
|
|
8353
|
-
captureCommitPhaseError(finishedWork, finishedWork.return,
|
|
8352
|
+
} catch (error48) {
|
|
8353
|
+
captureCommitPhaseError(finishedWork, finishedWork.return, error48);
|
|
8354
8354
|
}
|
|
8355
8355
|
} else
|
|
8356
8356
|
recursivelyTraversePassiveMountEffects(
|
|
@@ -8969,7 +8969,7 @@
|
|
|
8969
8969
|
check2 = check2.value;
|
|
8970
8970
|
try {
|
|
8971
8971
|
if (!objectIs(getSnapshot(), check2)) return false;
|
|
8972
|
-
} catch (
|
|
8972
|
+
} catch (error48) {
|
|
8973
8973
|
return false;
|
|
8974
8974
|
}
|
|
8975
8975
|
}
|
|
@@ -9292,8 +9292,8 @@
|
|
|
9292
9292
|
workInProgress = null;
|
|
9293
9293
|
return;
|
|
9294
9294
|
}
|
|
9295
|
-
} catch (
|
|
9296
|
-
if (null !== returnFiber) throw workInProgress = returnFiber,
|
|
9295
|
+
} catch (error48) {
|
|
9296
|
+
if (null !== returnFiber) throw workInProgress = returnFiber, error48;
|
|
9297
9297
|
workInProgressRootExitStatus = 1;
|
|
9298
9298
|
logUncaughtError(
|
|
9299
9299
|
root2,
|
|
@@ -9587,32 +9587,32 @@
|
|
|
9587
9587
|
ReactDOMSharedInternals.p = previousPriority, ReactSharedInternals.T = prevTransition, releaseRootPooledCache(root2, remainingLanes);
|
|
9588
9588
|
}
|
|
9589
9589
|
}
|
|
9590
|
-
function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber,
|
|
9591
|
-
sourceFiber = createCapturedValueAtFiber(
|
|
9590
|
+
function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error48) {
|
|
9591
|
+
sourceFiber = createCapturedValueAtFiber(error48, sourceFiber);
|
|
9592
9592
|
sourceFiber = createRootErrorUpdate(rootFiber.stateNode, sourceFiber, 2);
|
|
9593
9593
|
rootFiber = enqueueUpdate(rootFiber, sourceFiber, 2);
|
|
9594
9594
|
null !== rootFiber && (markRootUpdated$1(rootFiber, 2), ensureRootIsScheduled(rootFiber));
|
|
9595
9595
|
}
|
|
9596
|
-
function captureCommitPhaseError(sourceFiber, nearestMountedAncestor,
|
|
9596
|
+
function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error48) {
|
|
9597
9597
|
if (3 === sourceFiber.tag)
|
|
9598
|
-
captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber,
|
|
9598
|
+
captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error48);
|
|
9599
9599
|
else
|
|
9600
9600
|
for (; null !== nearestMountedAncestor; ) {
|
|
9601
9601
|
if (3 === nearestMountedAncestor.tag) {
|
|
9602
9602
|
captureCommitPhaseErrorOnRoot(
|
|
9603
9603
|
nearestMountedAncestor,
|
|
9604
9604
|
sourceFiber,
|
|
9605
|
-
|
|
9605
|
+
error48
|
|
9606
9606
|
);
|
|
9607
9607
|
break;
|
|
9608
9608
|
} else if (1 === nearestMountedAncestor.tag) {
|
|
9609
9609
|
var instance = nearestMountedAncestor.stateNode;
|
|
9610
9610
|
if ("function" === typeof nearestMountedAncestor.type.getDerivedStateFromError || "function" === typeof instance.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(instance))) {
|
|
9611
|
-
sourceFiber = createCapturedValueAtFiber(
|
|
9612
|
-
|
|
9613
|
-
instance = enqueueUpdate(nearestMountedAncestor,
|
|
9611
|
+
sourceFiber = createCapturedValueAtFiber(error48, sourceFiber);
|
|
9612
|
+
error48 = createClassErrorUpdate(2);
|
|
9613
|
+
instance = enqueueUpdate(nearestMountedAncestor, error48, 2);
|
|
9614
9614
|
null !== instance && (initializeClassErrorUpdate(
|
|
9615
|
-
|
|
9615
|
+
error48,
|
|
9616
9616
|
instance,
|
|
9617
9617
|
nearestMountedAncestor,
|
|
9618
9618
|
sourceFiber
|
|
@@ -9836,7 +9836,7 @@
|
|
|
9836
9836
|
(nativeEventTarget[internalPropsKey] || null).action
|
|
9837
9837
|
), submitter = nativeEvent.submitter;
|
|
9838
9838
|
submitter && (domEventName = (domEventName = submitter[internalPropsKey] || null) ? coerceFormActionProp(domEventName.formAction) : submitter.getAttribute("formAction"), null !== domEventName && (action2 = domEventName, submitter = null));
|
|
9839
|
-
var
|
|
9839
|
+
var event2 = new SyntheticEvent(
|
|
9840
9840
|
"action",
|
|
9841
9841
|
"action",
|
|
9842
9842
|
null,
|
|
@@ -9844,7 +9844,7 @@
|
|
|
9844
9844
|
nativeEventTarget
|
|
9845
9845
|
);
|
|
9846
9846
|
dispatchQueue.push({
|
|
9847
|
-
event,
|
|
9847
|
+
event: event2,
|
|
9848
9848
|
listeners: [
|
|
9849
9849
|
{
|
|
9850
9850
|
instance: null,
|
|
@@ -9865,7 +9865,7 @@
|
|
|
9865
9865
|
);
|
|
9866
9866
|
}
|
|
9867
9867
|
} else
|
|
9868
|
-
"function" === typeof action2 && (
|
|
9868
|
+
"function" === typeof action2 && (event2.preventDefault(), formData = submitter ? createFormDataWithSubmitter(nativeEventTarget, submitter) : new FormData(nativeEventTarget), startHostTransition(
|
|
9869
9869
|
maybeTargetInst,
|
|
9870
9870
|
{
|
|
9871
9871
|
pending: true,
|
|
@@ -9945,7 +9945,7 @@
|
|
|
9945
9945
|
function processDispatchQueue(dispatchQueue, eventSystemFlags) {
|
|
9946
9946
|
eventSystemFlags = 0 !== (eventSystemFlags & 4);
|
|
9947
9947
|
for (var i = 0; i < dispatchQueue.length; i++) {
|
|
9948
|
-
var _dispatchQueue$i = dispatchQueue[i],
|
|
9948
|
+
var _dispatchQueue$i = dispatchQueue[i], event2 = _dispatchQueue$i.event;
|
|
9949
9949
|
_dispatchQueue$i = _dispatchQueue$i.listeners;
|
|
9950
9950
|
a: {
|
|
9951
9951
|
var previousInstance = void 0;
|
|
@@ -9953,16 +9953,16 @@
|
|
|
9953
9953
|
for (var i$jscomp$0 = _dispatchQueue$i.length - 1; 0 <= i$jscomp$0; i$jscomp$0--) {
|
|
9954
9954
|
var _dispatchListeners$i = _dispatchQueue$i[i$jscomp$0], instance = _dispatchListeners$i.instance, currentTarget = _dispatchListeners$i.currentTarget;
|
|
9955
9955
|
_dispatchListeners$i = _dispatchListeners$i.listener;
|
|
9956
|
-
if (instance !== previousInstance &&
|
|
9956
|
+
if (instance !== previousInstance && event2.isPropagationStopped())
|
|
9957
9957
|
break a;
|
|
9958
9958
|
previousInstance = _dispatchListeners$i;
|
|
9959
|
-
|
|
9959
|
+
event2.currentTarget = currentTarget;
|
|
9960
9960
|
try {
|
|
9961
|
-
previousInstance(
|
|
9962
|
-
} catch (
|
|
9963
|
-
reportGlobalError(
|
|
9961
|
+
previousInstance(event2);
|
|
9962
|
+
} catch (error48) {
|
|
9963
|
+
reportGlobalError(error48);
|
|
9964
9964
|
}
|
|
9965
|
-
|
|
9965
|
+
event2.currentTarget = null;
|
|
9966
9966
|
previousInstance = instance;
|
|
9967
9967
|
}
|
|
9968
9968
|
else
|
|
@@ -9971,16 +9971,16 @@
|
|
|
9971
9971
|
instance = _dispatchListeners$i.instance;
|
|
9972
9972
|
currentTarget = _dispatchListeners$i.currentTarget;
|
|
9973
9973
|
_dispatchListeners$i = _dispatchListeners$i.listener;
|
|
9974
|
-
if (instance !== previousInstance &&
|
|
9974
|
+
if (instance !== previousInstance && event2.isPropagationStopped())
|
|
9975
9975
|
break a;
|
|
9976
9976
|
previousInstance = _dispatchListeners$i;
|
|
9977
|
-
|
|
9977
|
+
event2.currentTarget = currentTarget;
|
|
9978
9978
|
try {
|
|
9979
|
-
previousInstance(
|
|
9980
|
-
} catch (
|
|
9981
|
-
reportGlobalError(
|
|
9979
|
+
previousInstance(event2);
|
|
9980
|
+
} catch (error48) {
|
|
9981
|
+
reportGlobalError(error48);
|
|
9982
9982
|
}
|
|
9983
|
-
|
|
9983
|
+
event2.currentTarget = null;
|
|
9984
9984
|
previousInstance = instance;
|
|
9985
9985
|
}
|
|
9986
9986
|
}
|
|
@@ -10383,8 +10383,8 @@
|
|
|
10383
10383
|
while (inst && 5 !== inst.tag && 27 !== inst.tag);
|
|
10384
10384
|
return inst ? inst : null;
|
|
10385
10385
|
}
|
|
10386
|
-
function accumulateEnterLeaveListenersForEvent(dispatchQueue,
|
|
10387
|
-
for (var registrationName =
|
|
10386
|
+
function accumulateEnterLeaveListenersForEvent(dispatchQueue, event2, target, common, inCapturePhase) {
|
|
10387
|
+
for (var registrationName = event2._reactName, listeners = []; null !== target && target !== common; ) {
|
|
10388
10388
|
var _instance3 = target, alternate = _instance3.alternate, stateNode = _instance3.stateNode;
|
|
10389
10389
|
_instance3 = _instance3.tag;
|
|
10390
10390
|
if (null !== alternate && alternate === common) break;
|
|
@@ -10395,7 +10395,7 @@
|
|
|
10395
10395
|
)));
|
|
10396
10396
|
target = target.return;
|
|
10397
10397
|
}
|
|
10398
|
-
0 !== listeners.length && dispatchQueue.push({ event, listeners });
|
|
10398
|
+
0 !== listeners.length && dispatchQueue.push({ event: event2, listeners });
|
|
10399
10399
|
}
|
|
10400
10400
|
var NORMALIZE_NEWLINES_REGEX = /\r\n?/g;
|
|
10401
10401
|
var NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\u0000|\uFFFD/g;
|
|
@@ -11237,10 +11237,10 @@
|
|
|
11237
11237
|
}
|
|
11238
11238
|
var currentPopstateTransitionEvent = null;
|
|
11239
11239
|
function shouldAttemptEagerTransition() {
|
|
11240
|
-
var
|
|
11241
|
-
if (
|
|
11242
|
-
if (
|
|
11243
|
-
currentPopstateTransitionEvent =
|
|
11240
|
+
var event2 = window.event;
|
|
11241
|
+
if (event2 && "popstate" === event2.type) {
|
|
11242
|
+
if (event2 === currentPopstateTransitionEvent) return false;
|
|
11243
|
+
currentPopstateTransitionEvent = event2;
|
|
11244
11244
|
return true;
|
|
11245
11245
|
}
|
|
11246
11246
|
currentPopstateTransitionEvent = null;
|
|
@@ -11252,9 +11252,9 @@
|
|
|
11252
11252
|
var scheduleMicrotask = "function" === typeof queueMicrotask ? queueMicrotask : "undefined" !== typeof localPromise ? function(callback) {
|
|
11253
11253
|
return localPromise.resolve(null).then(callback).catch(handleErrorInNextTick);
|
|
11254
11254
|
} : scheduleTimeout;
|
|
11255
|
-
function handleErrorInNextTick(
|
|
11255
|
+
function handleErrorInNextTick(error48) {
|
|
11256
11256
|
setTimeout(function() {
|
|
11257
|
-
throw
|
|
11257
|
+
throw error48;
|
|
11258
11258
|
});
|
|
11259
11259
|
}
|
|
11260
11260
|
function isSingletonScope(type) {
|
|
@@ -12536,8 +12536,8 @@
|
|
|
12536
12536
|
}
|
|
12537
12537
|
}
|
|
12538
12538
|
function defaultOnDefaultTransitionIndicator() {
|
|
12539
|
-
function handleNavigate(
|
|
12540
|
-
|
|
12539
|
+
function handleNavigate(event2) {
|
|
12540
|
+
event2.canIntercept && "react-transition" === event2.info && event2.intercept({
|
|
12541
12541
|
handler: function() {
|
|
12542
12542
|
return new Promise(function(resolve) {
|
|
12543
12543
|
return pendingResolve = resolve;
|
|
@@ -12844,11 +12844,11 @@
|
|
|
12844
12844
|
...params !== void 0 ? { params } : {}
|
|
12845
12845
|
};
|
|
12846
12846
|
return new Promise((resolve, reject) => {
|
|
12847
|
-
const
|
|
12847
|
+
const timer2 = setTimeout(() => {
|
|
12848
12848
|
this.pendingRequests.delete(id);
|
|
12849
12849
|
reject(new Error("Request timeout"));
|
|
12850
12850
|
}, this.requestTimeout);
|
|
12851
|
-
this.pendingRequests.set(id, { resolve, reject, timer });
|
|
12851
|
+
this.pendingRequests.set(id, { resolve, reject, timer: timer2 });
|
|
12852
12852
|
globalThis.postMessage(msg);
|
|
12853
12853
|
});
|
|
12854
12854
|
}
|
|
@@ -12870,17 +12870,17 @@
|
|
|
12870
12870
|
globalThis.removeEventListener("message", this.messageListener);
|
|
12871
12871
|
this.messageListener = null;
|
|
12872
12872
|
}
|
|
12873
|
-
for (const { timer, reject } of this.pendingRequests.values()) {
|
|
12874
|
-
if (
|
|
12873
|
+
for (const { timer: timer2, reject } of this.pendingRequests.values()) {
|
|
12874
|
+
if (timer2) clearTimeout(timer2);
|
|
12875
12875
|
reject(new Error("Bridge destroyed"));
|
|
12876
12876
|
}
|
|
12877
12877
|
this.pendingRequests.clear();
|
|
12878
12878
|
this.notificationHandlers.clear();
|
|
12879
12879
|
this.requestHandlers.clear();
|
|
12880
12880
|
}
|
|
12881
|
-
handleMessage(
|
|
12881
|
+
handleMessage(event2) {
|
|
12882
12882
|
if (this.destroyed) return;
|
|
12883
|
-
const data =
|
|
12883
|
+
const data = event2.data;
|
|
12884
12884
|
if (!data || typeof data !== "object" || data.jsonrpc !== "2.0") return;
|
|
12885
12885
|
if ("id" in data && !("method" in data)) {
|
|
12886
12886
|
const pending = this.pendingRequests.get(data.id);
|
|
@@ -13058,7 +13058,7 @@
|
|
|
13058
13058
|
themeSchema: () => themeSchema
|
|
13059
13059
|
});
|
|
13060
13060
|
|
|
13061
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
13061
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/external.js
|
|
13062
13062
|
var external_exports = {};
|
|
13063
13063
|
__export(external_exports, {
|
|
13064
13064
|
$brand: () => $brand,
|
|
@@ -13120,7 +13120,6 @@
|
|
|
13120
13120
|
ZodOptional: () => ZodOptional,
|
|
13121
13121
|
ZodPipe: () => ZodPipe,
|
|
13122
13122
|
ZodPrefault: () => ZodPrefault,
|
|
13123
|
-
ZodPreprocess: () => ZodPreprocess,
|
|
13124
13123
|
ZodPromise: () => ZodPromise,
|
|
13125
13124
|
ZodReadonly: () => ZodReadonly,
|
|
13126
13125
|
ZodRealError: () => ZodRealError,
|
|
@@ -13199,7 +13198,6 @@
|
|
|
13199
13198
|
int32: () => int32,
|
|
13200
13199
|
int64: () => int64,
|
|
13201
13200
|
intersection: () => intersection,
|
|
13202
|
-
invertCodec: () => invertCodec,
|
|
13203
13201
|
ipv4: () => ipv42,
|
|
13204
13202
|
ipv6: () => ipv62,
|
|
13205
13203
|
iso: () => iso_exports,
|
|
@@ -13301,7 +13299,7 @@
|
|
|
13301
13299
|
xor: () => xor
|
|
13302
13300
|
});
|
|
13303
13301
|
|
|
13304
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
13302
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/index.js
|
|
13305
13303
|
var core_exports2 = {};
|
|
13306
13304
|
__export(core_exports2, {
|
|
13307
13305
|
$ZodAny: () => $ZodAny,
|
|
@@ -13381,7 +13379,6 @@
|
|
|
13381
13379
|
$ZodOptional: () => $ZodOptional,
|
|
13382
13380
|
$ZodPipe: () => $ZodPipe,
|
|
13383
13381
|
$ZodPrefault: () => $ZodPrefault,
|
|
13384
|
-
$ZodPreprocess: () => $ZodPreprocess,
|
|
13385
13382
|
$ZodPromise: () => $ZodPromise,
|
|
13386
13383
|
$ZodReadonly: () => $ZodReadonly,
|
|
13387
13384
|
$ZodRealError: () => $ZodRealError,
|
|
@@ -13580,9 +13577,8 @@
|
|
|
13580
13577
|
version: () => version
|
|
13581
13578
|
});
|
|
13582
13579
|
|
|
13583
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
13584
|
-
var
|
|
13585
|
-
var NEVER = /* @__PURE__ */ Object.freeze({
|
|
13580
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.js
|
|
13581
|
+
var NEVER = Object.freeze({
|
|
13586
13582
|
status: "aborted"
|
|
13587
13583
|
});
|
|
13588
13584
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -13617,10 +13613,10 @@
|
|
|
13617
13613
|
}
|
|
13618
13614
|
Object.defineProperty(Definition, "name", { value: name });
|
|
13619
13615
|
function _(def) {
|
|
13620
|
-
var
|
|
13616
|
+
var _a2;
|
|
13621
13617
|
const inst = params?.Parent ? new Definition() : this;
|
|
13622
13618
|
init(inst, def);
|
|
13623
|
-
(
|
|
13619
|
+
(_a2 = inst._zod).deferred ?? (_a2.deferred = []);
|
|
13624
13620
|
for (const fn of inst._zod.deferred) {
|
|
13625
13621
|
fn();
|
|
13626
13622
|
}
|
|
@@ -13649,15 +13645,14 @@
|
|
|
13649
13645
|
this.name = "ZodEncodeError";
|
|
13650
13646
|
}
|
|
13651
13647
|
};
|
|
13652
|
-
|
|
13653
|
-
var globalConfig = globalThis.__zod_globalConfig;
|
|
13648
|
+
var globalConfig = {};
|
|
13654
13649
|
function config(newConfig) {
|
|
13655
13650
|
if (newConfig)
|
|
13656
13651
|
Object.assign(globalConfig, newConfig);
|
|
13657
13652
|
return globalConfig;
|
|
13658
13653
|
}
|
|
13659
13654
|
|
|
13660
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
13655
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js
|
|
13661
13656
|
var util_exports = {};
|
|
13662
13657
|
__export(util_exports, {
|
|
13663
13658
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -13683,7 +13678,6 @@
|
|
|
13683
13678
|
defineLazy: () => defineLazy,
|
|
13684
13679
|
esc: () => esc,
|
|
13685
13680
|
escapeRegex: () => escapeRegex,
|
|
13686
|
-
explicitlyAborted: () => explicitlyAborted,
|
|
13687
13681
|
extend: () => extend,
|
|
13688
13682
|
finalizeIssue: () => finalizeIssue,
|
|
13689
13683
|
floatSafeRemainder: () => floatSafeRemainder,
|
|
@@ -13770,12 +13764,19 @@
|
|
|
13770
13764
|
return source.slice(start, end);
|
|
13771
13765
|
}
|
|
13772
13766
|
function floatSafeRemainder(val, step) {
|
|
13773
|
-
const
|
|
13774
|
-
const
|
|
13775
|
-
|
|
13776
|
-
if (
|
|
13777
|
-
|
|
13778
|
-
|
|
13767
|
+
const valDecCount = (val.toString().split(".")[1] || "").length;
|
|
13768
|
+
const stepString = step.toString();
|
|
13769
|
+
let stepDecCount = (stepString.split(".")[1] || "").length;
|
|
13770
|
+
if (stepDecCount === 0 && /\d?e-\d?/.test(stepString)) {
|
|
13771
|
+
const match = stepString.match(/\d?e-(\d?)/);
|
|
13772
|
+
if (match?.[1]) {
|
|
13773
|
+
stepDecCount = Number.parseInt(match[1]);
|
|
13774
|
+
}
|
|
13775
|
+
}
|
|
13776
|
+
const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
|
|
13777
|
+
const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
|
|
13778
|
+
const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
|
|
13779
|
+
return valInt % stepInt / 10 ** decCount;
|
|
13779
13780
|
}
|
|
13780
13781
|
var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
|
|
13781
13782
|
function defineLazy(object2, key, getter) {
|
|
@@ -13857,10 +13858,7 @@
|
|
|
13857
13858
|
function isObject(data) {
|
|
13858
13859
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
13859
13860
|
}
|
|
13860
|
-
var allowsEval =
|
|
13861
|
-
if (globalConfig.jitless) {
|
|
13862
|
-
return false;
|
|
13863
|
-
}
|
|
13861
|
+
var allowsEval = cached(() => {
|
|
13864
13862
|
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
|
|
13865
13863
|
return false;
|
|
13866
13864
|
}
|
|
@@ -13893,10 +13891,6 @@
|
|
|
13893
13891
|
return { ...o };
|
|
13894
13892
|
if (Array.isArray(o))
|
|
13895
13893
|
return [...o];
|
|
13896
|
-
if (o instanceof Map)
|
|
13897
|
-
return new Map(o);
|
|
13898
|
-
if (o instanceof Set)
|
|
13899
|
-
return new Set(o);
|
|
13900
13894
|
return o;
|
|
13901
13895
|
}
|
|
13902
13896
|
function numKeys(data) {
|
|
@@ -13953,14 +13947,7 @@
|
|
|
13953
13947
|
}
|
|
13954
13948
|
};
|
|
13955
13949
|
var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
13956
|
-
var primitiveTypes = /* @__PURE__ */ new Set([
|
|
13957
|
-
"string",
|
|
13958
|
-
"number",
|
|
13959
|
-
"bigint",
|
|
13960
|
-
"boolean",
|
|
13961
|
-
"symbol",
|
|
13962
|
-
"undefined"
|
|
13963
|
-
]);
|
|
13950
|
+
var primitiveTypes = /* @__PURE__ */ new Set(["string", "number", "bigint", "boolean", "symbol", "undefined"]);
|
|
13964
13951
|
function escapeRegex(str) {
|
|
13965
13952
|
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
13966
13953
|
}
|
|
@@ -14129,9 +14116,6 @@
|
|
|
14129
14116
|
return clone(schema, def);
|
|
14130
14117
|
}
|
|
14131
14118
|
function merge(a, b) {
|
|
14132
|
-
if (a._zod.def.checks?.length) {
|
|
14133
|
-
throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
|
|
14134
|
-
}
|
|
14135
14119
|
const def = mergeDefs(a._zod.def, {
|
|
14136
14120
|
get shape() {
|
|
14137
14121
|
const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
|
|
@@ -14141,7 +14125,8 @@
|
|
|
14141
14125
|
get catchall() {
|
|
14142
14126
|
return b._zod.def.catchall;
|
|
14143
14127
|
},
|
|
14144
|
-
checks:
|
|
14128
|
+
checks: []
|
|
14129
|
+
// delete existing checks
|
|
14145
14130
|
});
|
|
14146
14131
|
return clone(a, def);
|
|
14147
14132
|
}
|
|
@@ -14224,20 +14209,10 @@
|
|
|
14224
14209
|
}
|
|
14225
14210
|
return false;
|
|
14226
14211
|
}
|
|
14227
|
-
function explicitlyAborted(x, startIndex = 0) {
|
|
14228
|
-
if (x.aborted === true)
|
|
14229
|
-
return true;
|
|
14230
|
-
for (let i = startIndex; i < x.issues.length; i++) {
|
|
14231
|
-
if (x.issues[i]?.continue === false) {
|
|
14232
|
-
return true;
|
|
14233
|
-
}
|
|
14234
|
-
}
|
|
14235
|
-
return false;
|
|
14236
|
-
}
|
|
14237
14212
|
function prefixIssues(path, issues) {
|
|
14238
14213
|
return issues.map((iss) => {
|
|
14239
|
-
var
|
|
14240
|
-
(
|
|
14214
|
+
var _a2;
|
|
14215
|
+
(_a2 = iss).path ?? (_a2.path = []);
|
|
14241
14216
|
iss.path.unshift(path);
|
|
14242
14217
|
return iss;
|
|
14243
14218
|
});
|
|
@@ -14246,14 +14221,17 @@
|
|
|
14246
14221
|
return typeof message === "string" ? message : message?.message;
|
|
14247
14222
|
}
|
|
14248
14223
|
function finalizeIssue(iss, ctx, config2) {
|
|
14249
|
-
const
|
|
14250
|
-
|
|
14251
|
-
|
|
14252
|
-
|
|
14253
|
-
|
|
14254
|
-
|
|
14224
|
+
const full = { ...iss, path: iss.path ?? [] };
|
|
14225
|
+
if (!iss.message) {
|
|
14226
|
+
const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
|
|
14227
|
+
full.message = message;
|
|
14228
|
+
}
|
|
14229
|
+
delete full.inst;
|
|
14230
|
+
delete full.continue;
|
|
14231
|
+
if (!ctx?.reportInput) {
|
|
14232
|
+
delete full.input;
|
|
14255
14233
|
}
|
|
14256
|
-
return
|
|
14234
|
+
return full;
|
|
14257
14235
|
}
|
|
14258
14236
|
function getSizableOrigin(input) {
|
|
14259
14237
|
if (input instanceof Set)
|
|
@@ -14351,7 +14329,7 @@
|
|
|
14351
14329
|
}
|
|
14352
14330
|
};
|
|
14353
14331
|
|
|
14354
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
14332
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js
|
|
14355
14333
|
var initializer = (inst, def) => {
|
|
14356
14334
|
inst.name = "$ZodError";
|
|
14357
14335
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -14370,10 +14348,10 @@
|
|
|
14370
14348
|
};
|
|
14371
14349
|
var $ZodError = $constructor("$ZodError", initializer);
|
|
14372
14350
|
var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
|
|
14373
|
-
function flattenError(
|
|
14351
|
+
function flattenError(error48, mapper = (issue2) => issue2.message) {
|
|
14374
14352
|
const fieldErrors = {};
|
|
14375
14353
|
const formErrors = [];
|
|
14376
|
-
for (const sub of
|
|
14354
|
+
for (const sub of error48.issues) {
|
|
14377
14355
|
if (sub.path.length > 0) {
|
|
14378
14356
|
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
14379
14357
|
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
@@ -14383,53 +14361,50 @@
|
|
|
14383
14361
|
}
|
|
14384
14362
|
return { formErrors, fieldErrors };
|
|
14385
14363
|
}
|
|
14386
|
-
function formatError(
|
|
14364
|
+
function formatError(error48, mapper = (issue2) => issue2.message) {
|
|
14387
14365
|
const fieldErrors = { _errors: [] };
|
|
14388
|
-
const processError = (
|
|
14389
|
-
for (const issue2 of
|
|
14366
|
+
const processError = (error49) => {
|
|
14367
|
+
for (const issue2 of error49.issues) {
|
|
14390
14368
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
14391
|
-
issue2.errors.map((issues) => processError({ issues }
|
|
14369
|
+
issue2.errors.map((issues) => processError({ issues }));
|
|
14392
14370
|
} else if (issue2.code === "invalid_key") {
|
|
14393
|
-
processError({ issues: issue2.issues }
|
|
14371
|
+
processError({ issues: issue2.issues });
|
|
14394
14372
|
} else if (issue2.code === "invalid_element") {
|
|
14395
|
-
processError({ issues: issue2.issues }
|
|
14373
|
+
processError({ issues: issue2.issues });
|
|
14374
|
+
} else if (issue2.path.length === 0) {
|
|
14375
|
+
fieldErrors._errors.push(mapper(issue2));
|
|
14396
14376
|
} else {
|
|
14397
|
-
|
|
14398
|
-
|
|
14399
|
-
|
|
14400
|
-
|
|
14401
|
-
|
|
14402
|
-
|
|
14403
|
-
|
|
14404
|
-
|
|
14405
|
-
|
|
14406
|
-
|
|
14407
|
-
curr[el] = curr[el] || { _errors: [] };
|
|
14408
|
-
} else {
|
|
14409
|
-
curr[el] = curr[el] || { _errors: [] };
|
|
14410
|
-
curr[el]._errors.push(mapper(issue2));
|
|
14411
|
-
}
|
|
14412
|
-
curr = curr[el];
|
|
14413
|
-
i++;
|
|
14377
|
+
let curr = fieldErrors;
|
|
14378
|
+
let i = 0;
|
|
14379
|
+
while (i < issue2.path.length) {
|
|
14380
|
+
const el = issue2.path[i];
|
|
14381
|
+
const terminal = i === issue2.path.length - 1;
|
|
14382
|
+
if (!terminal) {
|
|
14383
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
14384
|
+
} else {
|
|
14385
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
14386
|
+
curr[el]._errors.push(mapper(issue2));
|
|
14414
14387
|
}
|
|
14388
|
+
curr = curr[el];
|
|
14389
|
+
i++;
|
|
14415
14390
|
}
|
|
14416
14391
|
}
|
|
14417
14392
|
}
|
|
14418
14393
|
};
|
|
14419
|
-
processError(
|
|
14394
|
+
processError(error48);
|
|
14420
14395
|
return fieldErrors;
|
|
14421
14396
|
}
|
|
14422
|
-
function treeifyError(
|
|
14397
|
+
function treeifyError(error48, mapper = (issue2) => issue2.message) {
|
|
14423
14398
|
const result = { errors: [] };
|
|
14424
|
-
const processError = (
|
|
14425
|
-
var
|
|
14426
|
-
for (const issue2 of
|
|
14399
|
+
const processError = (error49, path = []) => {
|
|
14400
|
+
var _a2, _b;
|
|
14401
|
+
for (const issue2 of error49.issues) {
|
|
14427
14402
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
14428
|
-
issue2.errors.map((issues) => processError({ issues },
|
|
14403
|
+
issue2.errors.map((issues) => processError({ issues }, issue2.path));
|
|
14429
14404
|
} else if (issue2.code === "invalid_key") {
|
|
14430
|
-
processError({ issues: issue2.issues },
|
|
14405
|
+
processError({ issues: issue2.issues }, issue2.path);
|
|
14431
14406
|
} else if (issue2.code === "invalid_element") {
|
|
14432
|
-
processError({ issues: issue2.issues },
|
|
14407
|
+
processError({ issues: issue2.issues }, issue2.path);
|
|
14433
14408
|
} else {
|
|
14434
14409
|
const fullpath = [...path, ...issue2.path];
|
|
14435
14410
|
if (fullpath.length === 0) {
|
|
@@ -14443,7 +14418,7 @@
|
|
|
14443
14418
|
const terminal = i === fullpath.length - 1;
|
|
14444
14419
|
if (typeof el === "string") {
|
|
14445
14420
|
curr.properties ?? (curr.properties = {});
|
|
14446
|
-
(
|
|
14421
|
+
(_a2 = curr.properties)[el] ?? (_a2[el] = { errors: [] });
|
|
14447
14422
|
curr = curr.properties[el];
|
|
14448
14423
|
} else {
|
|
14449
14424
|
curr.items ?? (curr.items = []);
|
|
@@ -14458,7 +14433,7 @@
|
|
|
14458
14433
|
}
|
|
14459
14434
|
}
|
|
14460
14435
|
};
|
|
14461
|
-
processError(
|
|
14436
|
+
processError(error48);
|
|
14462
14437
|
return result;
|
|
14463
14438
|
}
|
|
14464
14439
|
function toDotPath(_path) {
|
|
@@ -14479,9 +14454,9 @@
|
|
|
14479
14454
|
}
|
|
14480
14455
|
return segs.join("");
|
|
14481
14456
|
}
|
|
14482
|
-
function prettifyError(
|
|
14457
|
+
function prettifyError(error48) {
|
|
14483
14458
|
const lines = [];
|
|
14484
|
-
const issues = [...
|
|
14459
|
+
const issues = [...error48.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
|
|
14485
14460
|
for (const issue2 of issues) {
|
|
14486
14461
|
lines.push(`\u2716 ${issue2.message}`);
|
|
14487
14462
|
if (issue2.path?.length)
|
|
@@ -14490,9 +14465,9 @@
|
|
|
14490
14465
|
return lines.join("\n");
|
|
14491
14466
|
}
|
|
14492
14467
|
|
|
14493
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
14468
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js
|
|
14494
14469
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
14495
|
-
const ctx = _ctx ?
|
|
14470
|
+
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
14496
14471
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
14497
14472
|
if (result instanceof Promise) {
|
|
14498
14473
|
throw new $ZodAsyncError();
|
|
@@ -14506,7 +14481,7 @@
|
|
|
14506
14481
|
};
|
|
14507
14482
|
var parse = /* @__PURE__ */ _parse($ZodRealError);
|
|
14508
14483
|
var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
14509
|
-
const ctx = _ctx ?
|
|
14484
|
+
const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
|
|
14510
14485
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
14511
14486
|
if (result instanceof Promise)
|
|
14512
14487
|
result = await result;
|
|
@@ -14531,7 +14506,7 @@
|
|
|
14531
14506
|
};
|
|
14532
14507
|
var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
|
|
14533
14508
|
var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
14534
|
-
const ctx = _ctx ?
|
|
14509
|
+
const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
|
|
14535
14510
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
14536
14511
|
if (result instanceof Promise)
|
|
14537
14512
|
result = await result;
|
|
@@ -14542,7 +14517,7 @@
|
|
|
14542
14517
|
};
|
|
14543
14518
|
var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
14544
14519
|
var _encode = (_Err) => (schema, value, _ctx) => {
|
|
14545
|
-
const ctx = _ctx ?
|
|
14520
|
+
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
14546
14521
|
return _parse(_Err)(schema, value, ctx);
|
|
14547
14522
|
};
|
|
14548
14523
|
var encode = /* @__PURE__ */ _encode($ZodRealError);
|
|
@@ -14551,7 +14526,7 @@
|
|
|
14551
14526
|
};
|
|
14552
14527
|
var decode = /* @__PURE__ */ _decode($ZodRealError);
|
|
14553
14528
|
var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
14554
|
-
const ctx = _ctx ?
|
|
14529
|
+
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
14555
14530
|
return _parseAsync(_Err)(schema, value, ctx);
|
|
14556
14531
|
};
|
|
14557
14532
|
var encodeAsync = /* @__PURE__ */ _encodeAsync($ZodRealError);
|
|
@@ -14560,7 +14535,7 @@
|
|
|
14560
14535
|
};
|
|
14561
14536
|
var decodeAsync = /* @__PURE__ */ _decodeAsync($ZodRealError);
|
|
14562
14537
|
var _safeEncode = (_Err) => (schema, value, _ctx) => {
|
|
14563
|
-
const ctx = _ctx ?
|
|
14538
|
+
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
14564
14539
|
return _safeParse(_Err)(schema, value, ctx);
|
|
14565
14540
|
};
|
|
14566
14541
|
var safeEncode = /* @__PURE__ */ _safeEncode($ZodRealError);
|
|
@@ -14569,7 +14544,7 @@
|
|
|
14569
14544
|
};
|
|
14570
14545
|
var safeDecode = /* @__PURE__ */ _safeDecode($ZodRealError);
|
|
14571
14546
|
var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
14572
|
-
const ctx = _ctx ?
|
|
14547
|
+
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
14573
14548
|
return _safeParseAsync(_Err)(schema, value, ctx);
|
|
14574
14549
|
};
|
|
14575
14550
|
var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
|
|
@@ -14578,7 +14553,7 @@
|
|
|
14578
14553
|
};
|
|
14579
14554
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
14580
14555
|
|
|
14581
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
14556
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/regexes.js
|
|
14582
14557
|
var regexes_exports = {};
|
|
14583
14558
|
__export(regexes_exports, {
|
|
14584
14559
|
base64: () => base64,
|
|
@@ -14602,7 +14577,6 @@
|
|
|
14602
14577
|
hex: () => hex,
|
|
14603
14578
|
hostname: () => hostname,
|
|
14604
14579
|
html5Email: () => html5Email,
|
|
14605
|
-
httpProtocol: () => httpProtocol,
|
|
14606
14580
|
idnEmail: () => idnEmail,
|
|
14607
14581
|
integer: () => integer,
|
|
14608
14582
|
ipv4: () => ipv4,
|
|
@@ -14641,7 +14615,7 @@
|
|
|
14641
14615
|
uuid7: () => uuid7,
|
|
14642
14616
|
xid: () => xid
|
|
14643
14617
|
});
|
|
14644
|
-
var cuid = /^[cC][
|
|
14618
|
+
var cuid = /^[cC][^\s-]{8,}$/;
|
|
14645
14619
|
var cuid2 = /^[0-9a-z]+$/;
|
|
14646
14620
|
var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
14647
14621
|
var xid = /^[0-9a-vA-V]{20}$/;
|
|
@@ -14680,7 +14654,6 @@
|
|
|
14680
14654
|
var base64url = /^[A-Za-z0-9_-]*$/;
|
|
14681
14655
|
var hostname = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/;
|
|
14682
14656
|
var domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
|
|
14683
|
-
var httpProtocol = /^https?$/;
|
|
14684
14657
|
var e164 = /^\+[1-9]\d{6,14}$/;
|
|
14685
14658
|
var dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;
|
|
14686
14659
|
var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
@@ -14737,12 +14710,12 @@
|
|
|
14737
14710
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
14738
14711
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
14739
14712
|
|
|
14740
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
14713
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js
|
|
14741
14714
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
14742
|
-
var
|
|
14715
|
+
var _a2;
|
|
14743
14716
|
inst._zod ?? (inst._zod = {});
|
|
14744
14717
|
inst._zod.def = def;
|
|
14745
|
-
(
|
|
14718
|
+
(_a2 = inst._zod).onattach ?? (_a2.onattach = []);
|
|
14746
14719
|
});
|
|
14747
14720
|
var numericOriginMap = {
|
|
14748
14721
|
number: "number",
|
|
@@ -14808,8 +14781,8 @@
|
|
|
14808
14781
|
var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
14809
14782
|
$ZodCheck.init(inst, def);
|
|
14810
14783
|
inst._zod.onattach.push((inst2) => {
|
|
14811
|
-
var
|
|
14812
|
-
(
|
|
14784
|
+
var _a2;
|
|
14785
|
+
(_a2 = inst2._zod.bag).multipleOf ?? (_a2.multipleOf = def.value);
|
|
14813
14786
|
});
|
|
14814
14787
|
inst._zod.check = (payload) => {
|
|
14815
14788
|
if (typeof payload.value !== typeof def.value)
|
|
@@ -14942,9 +14915,9 @@
|
|
|
14942
14915
|
};
|
|
14943
14916
|
});
|
|
14944
14917
|
var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
|
|
14945
|
-
var
|
|
14918
|
+
var _a2;
|
|
14946
14919
|
$ZodCheck.init(inst, def);
|
|
14947
|
-
(
|
|
14920
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
14948
14921
|
const val = payload.value;
|
|
14949
14922
|
return !nullish(val) && val.size !== void 0;
|
|
14950
14923
|
});
|
|
@@ -14970,9 +14943,9 @@
|
|
|
14970
14943
|
};
|
|
14971
14944
|
});
|
|
14972
14945
|
var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
|
|
14973
|
-
var
|
|
14946
|
+
var _a2;
|
|
14974
14947
|
$ZodCheck.init(inst, def);
|
|
14975
|
-
(
|
|
14948
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
14976
14949
|
const val = payload.value;
|
|
14977
14950
|
return !nullish(val) && val.size !== void 0;
|
|
14978
14951
|
});
|
|
@@ -14998,9 +14971,9 @@
|
|
|
14998
14971
|
};
|
|
14999
14972
|
});
|
|
15000
14973
|
var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
|
|
15001
|
-
var
|
|
14974
|
+
var _a2;
|
|
15002
14975
|
$ZodCheck.init(inst, def);
|
|
15003
|
-
(
|
|
14976
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
15004
14977
|
const val = payload.value;
|
|
15005
14978
|
return !nullish(val) && val.size !== void 0;
|
|
15006
14979
|
});
|
|
@@ -15028,9 +15001,9 @@
|
|
|
15028
15001
|
};
|
|
15029
15002
|
});
|
|
15030
15003
|
var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
15031
|
-
var
|
|
15004
|
+
var _a2;
|
|
15032
15005
|
$ZodCheck.init(inst, def);
|
|
15033
|
-
(
|
|
15006
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
15034
15007
|
const val = payload.value;
|
|
15035
15008
|
return !nullish(val) && val.length !== void 0;
|
|
15036
15009
|
});
|
|
@@ -15057,9 +15030,9 @@
|
|
|
15057
15030
|
};
|
|
15058
15031
|
});
|
|
15059
15032
|
var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
15060
|
-
var
|
|
15033
|
+
var _a2;
|
|
15061
15034
|
$ZodCheck.init(inst, def);
|
|
15062
|
-
(
|
|
15035
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
15063
15036
|
const val = payload.value;
|
|
15064
15037
|
return !nullish(val) && val.length !== void 0;
|
|
15065
15038
|
});
|
|
@@ -15086,9 +15059,9 @@
|
|
|
15086
15059
|
};
|
|
15087
15060
|
});
|
|
15088
15061
|
var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
15089
|
-
var
|
|
15062
|
+
var _a2;
|
|
15090
15063
|
$ZodCheck.init(inst, def);
|
|
15091
|
-
(
|
|
15064
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
15092
15065
|
const val = payload.value;
|
|
15093
15066
|
return !nullish(val) && val.length !== void 0;
|
|
15094
15067
|
});
|
|
@@ -15117,7 +15090,7 @@
|
|
|
15117
15090
|
};
|
|
15118
15091
|
});
|
|
15119
15092
|
var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
15120
|
-
var
|
|
15093
|
+
var _a2, _b;
|
|
15121
15094
|
$ZodCheck.init(inst, def);
|
|
15122
15095
|
inst._zod.onattach.push((inst2) => {
|
|
15123
15096
|
const bag = inst2._zod.bag;
|
|
@@ -15128,7 +15101,7 @@
|
|
|
15128
15101
|
}
|
|
15129
15102
|
});
|
|
15130
15103
|
if (def.pattern)
|
|
15131
|
-
(
|
|
15104
|
+
(_a2 = inst._zod).check ?? (_a2.check = (payload) => {
|
|
15132
15105
|
def.pattern.lastIndex = 0;
|
|
15133
15106
|
if (def.pattern.test(payload.value))
|
|
15134
15107
|
return;
|
|
@@ -15174,12 +15147,12 @@
|
|
|
15174
15147
|
var $ZodCheckIncludes = /* @__PURE__ */ $constructor("$ZodCheckIncludes", (inst, def) => {
|
|
15175
15148
|
$ZodCheck.init(inst, def);
|
|
15176
15149
|
const escapedRegex = escapeRegex(def.includes);
|
|
15177
|
-
const
|
|
15178
|
-
def.pattern =
|
|
15150
|
+
const pattern2 = new RegExp(typeof def.position === "number" ? `^.{${def.position}}${escapedRegex}` : escapedRegex);
|
|
15151
|
+
def.pattern = pattern2;
|
|
15179
15152
|
inst._zod.onattach.push((inst2) => {
|
|
15180
15153
|
const bag = inst2._zod.bag;
|
|
15181
15154
|
bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
|
|
15182
|
-
bag.patterns.add(
|
|
15155
|
+
bag.patterns.add(pattern2);
|
|
15183
15156
|
});
|
|
15184
15157
|
inst._zod.check = (payload) => {
|
|
15185
15158
|
if (payload.value.includes(def.includes, def.position))
|
|
@@ -15197,12 +15170,12 @@
|
|
|
15197
15170
|
});
|
|
15198
15171
|
var $ZodCheckStartsWith = /* @__PURE__ */ $constructor("$ZodCheckStartsWith", (inst, def) => {
|
|
15199
15172
|
$ZodCheck.init(inst, def);
|
|
15200
|
-
const
|
|
15201
|
-
def.pattern ?? (def.pattern =
|
|
15173
|
+
const pattern2 = new RegExp(`^${escapeRegex(def.prefix)}.*`);
|
|
15174
|
+
def.pattern ?? (def.pattern = pattern2);
|
|
15202
15175
|
inst._zod.onattach.push((inst2) => {
|
|
15203
15176
|
const bag = inst2._zod.bag;
|
|
15204
15177
|
bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
|
|
15205
|
-
bag.patterns.add(
|
|
15178
|
+
bag.patterns.add(pattern2);
|
|
15206
15179
|
});
|
|
15207
15180
|
inst._zod.check = (payload) => {
|
|
15208
15181
|
if (payload.value.startsWith(def.prefix))
|
|
@@ -15220,12 +15193,12 @@
|
|
|
15220
15193
|
});
|
|
15221
15194
|
var $ZodCheckEndsWith = /* @__PURE__ */ $constructor("$ZodCheckEndsWith", (inst, def) => {
|
|
15222
15195
|
$ZodCheck.init(inst, def);
|
|
15223
|
-
const
|
|
15224
|
-
def.pattern ?? (def.pattern =
|
|
15196
|
+
const pattern2 = new RegExp(`.*${escapeRegex(def.suffix)}$`);
|
|
15197
|
+
def.pattern ?? (def.pattern = pattern2);
|
|
15225
15198
|
inst._zod.onattach.push((inst2) => {
|
|
15226
15199
|
const bag = inst2._zod.bag;
|
|
15227
15200
|
bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
|
|
15228
|
-
bag.patterns.add(
|
|
15201
|
+
bag.patterns.add(pattern2);
|
|
15229
15202
|
});
|
|
15230
15203
|
inst._zod.check = (payload) => {
|
|
15231
15204
|
if (payload.value.endsWith(def.suffix))
|
|
@@ -15285,7 +15258,7 @@
|
|
|
15285
15258
|
};
|
|
15286
15259
|
});
|
|
15287
15260
|
|
|
15288
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
15261
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/doc.js
|
|
15289
15262
|
var Doc = class {
|
|
15290
15263
|
constructor(args = []) {
|
|
15291
15264
|
this.content = [];
|
|
@@ -15321,16 +15294,16 @@
|
|
|
15321
15294
|
}
|
|
15322
15295
|
};
|
|
15323
15296
|
|
|
15324
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
15297
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js
|
|
15325
15298
|
var version = {
|
|
15326
15299
|
major: 4,
|
|
15327
|
-
minor:
|
|
15328
|
-
patch:
|
|
15300
|
+
minor: 3,
|
|
15301
|
+
patch: 6
|
|
15329
15302
|
};
|
|
15330
15303
|
|
|
15331
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
15304
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js
|
|
15332
15305
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
15333
|
-
var
|
|
15306
|
+
var _a2;
|
|
15334
15307
|
inst ?? (inst = {});
|
|
15335
15308
|
inst._zod.def = def;
|
|
15336
15309
|
inst._zod.bag = inst._zod.bag || {};
|
|
@@ -15345,7 +15318,7 @@
|
|
|
15345
15318
|
}
|
|
15346
15319
|
}
|
|
15347
15320
|
if (checks.length === 0) {
|
|
15348
|
-
(
|
|
15321
|
+
(_a2 = inst._zod).deferred ?? (_a2.deferred = []);
|
|
15349
15322
|
inst._zod.deferred?.push(() => {
|
|
15350
15323
|
inst._zod.run = inst._zod.parse;
|
|
15351
15324
|
});
|
|
@@ -15355,8 +15328,6 @@
|
|
|
15355
15328
|
let asyncResult;
|
|
15356
15329
|
for (const ch of checks2) {
|
|
15357
15330
|
if (ch._zod.def.when) {
|
|
15358
|
-
if (explicitlyAborted(payload))
|
|
15359
|
-
continue;
|
|
15360
15331
|
const shouldRun = ch._zod.def.when(payload);
|
|
15361
15332
|
if (!shouldRun)
|
|
15362
15333
|
continue;
|
|
@@ -15497,19 +15468,6 @@
|
|
|
15497
15468
|
inst._zod.check = (payload) => {
|
|
15498
15469
|
try {
|
|
15499
15470
|
const trimmed = payload.value.trim();
|
|
15500
|
-
if (!def.normalize && def.protocol?.source === httpProtocol.source) {
|
|
15501
|
-
if (!/^https?:\/\//i.test(trimmed)) {
|
|
15502
|
-
payload.issues.push({
|
|
15503
|
-
code: "invalid_format",
|
|
15504
|
-
format: "url",
|
|
15505
|
-
note: "Invalid URL format",
|
|
15506
|
-
input: payload.value,
|
|
15507
|
-
inst,
|
|
15508
|
-
continue: !def.abort
|
|
15509
|
-
});
|
|
15510
|
-
return;
|
|
15511
|
-
}
|
|
15512
|
-
}
|
|
15513
15471
|
const url2 = new URL(trimmed);
|
|
15514
15472
|
if (def.hostname) {
|
|
15515
15473
|
def.hostname.lastIndex = 0;
|
|
@@ -15663,8 +15621,6 @@
|
|
|
15663
15621
|
function isValidBase64(data) {
|
|
15664
15622
|
if (data === "")
|
|
15665
15623
|
return true;
|
|
15666
|
-
if (/\s/.test(data))
|
|
15667
|
-
return false;
|
|
15668
15624
|
if (data.length % 4 !== 0)
|
|
15669
15625
|
return false;
|
|
15670
15626
|
try {
|
|
@@ -15857,6 +15813,8 @@
|
|
|
15857
15813
|
$ZodType.init(inst, def);
|
|
15858
15814
|
inst._zod.pattern = _undefined;
|
|
15859
15815
|
inst._zod.values = /* @__PURE__ */ new Set([void 0]);
|
|
15816
|
+
inst._zod.optin = "optional";
|
|
15817
|
+
inst._zod.optout = "optional";
|
|
15860
15818
|
inst._zod.parse = (payload, _ctx) => {
|
|
15861
15819
|
const input = payload.value;
|
|
15862
15820
|
if (typeof input === "undefined")
|
|
@@ -15985,27 +15943,15 @@
|
|
|
15985
15943
|
return payload;
|
|
15986
15944
|
};
|
|
15987
15945
|
});
|
|
15988
|
-
function handlePropertyResult(result, final, key, input,
|
|
15989
|
-
const isPresent = key in input;
|
|
15946
|
+
function handlePropertyResult(result, final, key, input, isOptionalOut) {
|
|
15990
15947
|
if (result.issues.length) {
|
|
15991
|
-
if (
|
|
15948
|
+
if (isOptionalOut && !(key in input)) {
|
|
15992
15949
|
return;
|
|
15993
15950
|
}
|
|
15994
15951
|
final.issues.push(...prefixIssues(key, result.issues));
|
|
15995
15952
|
}
|
|
15996
|
-
if (!isPresent && !isOptionalIn) {
|
|
15997
|
-
if (!result.issues.length) {
|
|
15998
|
-
final.issues.push({
|
|
15999
|
-
code: "invalid_type",
|
|
16000
|
-
expected: "nonoptional",
|
|
16001
|
-
input: void 0,
|
|
16002
|
-
path: [key]
|
|
16003
|
-
});
|
|
16004
|
-
}
|
|
16005
|
-
return;
|
|
16006
|
-
}
|
|
16007
15953
|
if (result.value === void 0) {
|
|
16008
|
-
if (
|
|
15954
|
+
if (key in input) {
|
|
16009
15955
|
final.value[key] = void 0;
|
|
16010
15956
|
}
|
|
16011
15957
|
} else {
|
|
@@ -16033,11 +15979,8 @@
|
|
|
16033
15979
|
const keySet = def.keySet;
|
|
16034
15980
|
const _catchall = def.catchall._zod;
|
|
16035
15981
|
const t = _catchall.def.type;
|
|
16036
|
-
const isOptionalIn = _catchall.optin === "optional";
|
|
16037
15982
|
const isOptionalOut = _catchall.optout === "optional";
|
|
16038
15983
|
for (const key in input) {
|
|
16039
|
-
if (key === "__proto__")
|
|
16040
|
-
continue;
|
|
16041
15984
|
if (keySet.has(key))
|
|
16042
15985
|
continue;
|
|
16043
15986
|
if (t === "never") {
|
|
@@ -16046,9 +15989,9 @@
|
|
|
16046
15989
|
}
|
|
16047
15990
|
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
16048
15991
|
if (r instanceof Promise) {
|
|
16049
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input,
|
|
15992
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
16050
15993
|
} else {
|
|
16051
|
-
handlePropertyResult(r, payload, key, input,
|
|
15994
|
+
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
16052
15995
|
}
|
|
16053
15996
|
}
|
|
16054
15997
|
if (unrecognized.length) {
|
|
@@ -16114,13 +16057,12 @@
|
|
|
16114
16057
|
const shape = value.shape;
|
|
16115
16058
|
for (const key of value.keys) {
|
|
16116
16059
|
const el = shape[key];
|
|
16117
|
-
const isOptionalIn = el._zod.optin === "optional";
|
|
16118
16060
|
const isOptionalOut = el._zod.optout === "optional";
|
|
16119
16061
|
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
16120
16062
|
if (r instanceof Promise) {
|
|
16121
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input,
|
|
16063
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
16122
16064
|
} else {
|
|
16123
|
-
handlePropertyResult(r, payload, key, input,
|
|
16065
|
+
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
16124
16066
|
}
|
|
16125
16067
|
}
|
|
16126
16068
|
if (!catchall) {
|
|
@@ -16151,10 +16093,9 @@
|
|
|
16151
16093
|
const id = ids[key];
|
|
16152
16094
|
const k = esc(key);
|
|
16153
16095
|
const schema = shape[key];
|
|
16154
|
-
const isOptionalIn = schema?._zod?.optin === "optional";
|
|
16155
16096
|
const isOptionalOut = schema?._zod?.optout === "optional";
|
|
16156
16097
|
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
16157
|
-
if (
|
|
16098
|
+
if (isOptionalOut) {
|
|
16158
16099
|
doc.write(`
|
|
16159
16100
|
if (${id}.issues.length) {
|
|
16160
16101
|
if (${k} in input) {
|
|
@@ -16173,33 +16114,6 @@
|
|
|
16173
16114
|
newResult[${k}] = ${id}.value;
|
|
16174
16115
|
}
|
|
16175
16116
|
|
|
16176
|
-
`);
|
|
16177
|
-
} else if (!isOptionalIn) {
|
|
16178
|
-
doc.write(`
|
|
16179
|
-
const ${id}_present = ${k} in input;
|
|
16180
|
-
if (${id}.issues.length) {
|
|
16181
|
-
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
16182
|
-
...iss,
|
|
16183
|
-
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
16184
|
-
})));
|
|
16185
|
-
}
|
|
16186
|
-
if (!${id}_present && !${id}.issues.length) {
|
|
16187
|
-
payload.issues.push({
|
|
16188
|
-
code: "invalid_type",
|
|
16189
|
-
expected: "nonoptional",
|
|
16190
|
-
input: undefined,
|
|
16191
|
-
path: [${k}]
|
|
16192
|
-
});
|
|
16193
|
-
}
|
|
16194
|
-
|
|
16195
|
-
if (${id}_present) {
|
|
16196
|
-
if (${id}.value === undefined) {
|
|
16197
|
-
newResult[${k}] = undefined;
|
|
16198
|
-
} else {
|
|
16199
|
-
newResult[${k}] = ${id}.value;
|
|
16200
|
-
}
|
|
16201
|
-
}
|
|
16202
|
-
|
|
16203
16117
|
`);
|
|
16204
16118
|
} else {
|
|
16205
16119
|
doc.write(`
|
|
@@ -16293,9 +16207,10 @@
|
|
|
16293
16207
|
}
|
|
16294
16208
|
return void 0;
|
|
16295
16209
|
});
|
|
16296
|
-
const
|
|
16210
|
+
const single = def.options.length === 1;
|
|
16211
|
+
const first = def.options[0]._zod.run;
|
|
16297
16212
|
inst._zod.parse = (payload, ctx) => {
|
|
16298
|
-
if (
|
|
16213
|
+
if (single) {
|
|
16299
16214
|
return first(payload, ctx);
|
|
16300
16215
|
}
|
|
16301
16216
|
let async = false;
|
|
@@ -16348,9 +16263,10 @@
|
|
|
16348
16263
|
var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def) => {
|
|
16349
16264
|
$ZodUnion.init(inst, def);
|
|
16350
16265
|
def.inclusive = false;
|
|
16351
|
-
const
|
|
16266
|
+
const single = def.options.length === 1;
|
|
16267
|
+
const first = def.options[0]._zod.run;
|
|
16352
16268
|
inst._zod.parse = (payload, ctx) => {
|
|
16353
|
-
if (
|
|
16269
|
+
if (single) {
|
|
16354
16270
|
return first(payload, ctx);
|
|
16355
16271
|
}
|
|
16356
16272
|
let async = false;
|
|
@@ -16425,7 +16341,7 @@
|
|
|
16425
16341
|
if (opt) {
|
|
16426
16342
|
return opt._zod.run(payload, ctx);
|
|
16427
16343
|
}
|
|
16428
|
-
if (def.unionFallback
|
|
16344
|
+
if (def.unionFallback) {
|
|
16429
16345
|
return _super(payload, ctx);
|
|
16430
16346
|
}
|
|
16431
16347
|
payload.issues.push({
|
|
@@ -16433,7 +16349,6 @@
|
|
|
16433
16349
|
errors: [],
|
|
16434
16350
|
note: "No matching discriminator",
|
|
16435
16351
|
discriminator: def.discriminator,
|
|
16436
|
-
options: Array.from(disc.value.keys()),
|
|
16437
16352
|
input,
|
|
16438
16353
|
path: [def.discriminator],
|
|
16439
16354
|
inst
|
|
@@ -16555,96 +16470,64 @@
|
|
|
16555
16470
|
}
|
|
16556
16471
|
payload.value = [];
|
|
16557
16472
|
const proms = [];
|
|
16558
|
-
const
|
|
16559
|
-
const
|
|
16473
|
+
const reversedIndex = [...items].reverse().findIndex((item) => item._zod.optin !== "optional");
|
|
16474
|
+
const optStart = reversedIndex === -1 ? 0 : items.length - reversedIndex;
|
|
16560
16475
|
if (!def.rest) {
|
|
16561
|
-
|
|
16476
|
+
const tooBig = input.length > items.length;
|
|
16477
|
+
const tooSmall = input.length < optStart - 1;
|
|
16478
|
+
if (tooBig || tooSmall) {
|
|
16562
16479
|
payload.issues.push({
|
|
16563
|
-
code: "too_small",
|
|
16564
|
-
minimum: optinStart,
|
|
16565
|
-
inclusive: true,
|
|
16480
|
+
...tooBig ? { code: "too_big", maximum: items.length, inclusive: true } : { code: "too_small", minimum: items.length },
|
|
16566
16481
|
input,
|
|
16567
16482
|
inst,
|
|
16568
16483
|
origin: "array"
|
|
16569
16484
|
});
|
|
16570
16485
|
return payload;
|
|
16571
16486
|
}
|
|
16572
|
-
if (input.length > items.length) {
|
|
16573
|
-
payload.issues.push({
|
|
16574
|
-
code: "too_big",
|
|
16575
|
-
maximum: items.length,
|
|
16576
|
-
inclusive: true,
|
|
16577
|
-
input,
|
|
16578
|
-
inst,
|
|
16579
|
-
origin: "array"
|
|
16580
|
-
});
|
|
16581
|
-
}
|
|
16582
16487
|
}
|
|
16583
|
-
|
|
16584
|
-
for (
|
|
16585
|
-
|
|
16586
|
-
if (
|
|
16587
|
-
|
|
16588
|
-
|
|
16589
|
-
|
|
16488
|
+
let i = -1;
|
|
16489
|
+
for (const item of items) {
|
|
16490
|
+
i++;
|
|
16491
|
+
if (i >= input.length) {
|
|
16492
|
+
if (i >= optStart)
|
|
16493
|
+
continue;
|
|
16494
|
+
}
|
|
16495
|
+
const result = item._zod.run({
|
|
16496
|
+
value: input[i],
|
|
16497
|
+
issues: []
|
|
16498
|
+
}, ctx);
|
|
16499
|
+
if (result instanceof Promise) {
|
|
16500
|
+
proms.push(result.then((result2) => handleTupleResult(result2, payload, i)));
|
|
16590
16501
|
} else {
|
|
16591
|
-
|
|
16502
|
+
handleTupleResult(result, payload, i);
|
|
16592
16503
|
}
|
|
16593
16504
|
}
|
|
16594
16505
|
if (def.rest) {
|
|
16595
|
-
let i = items.length - 1;
|
|
16596
16506
|
const rest = input.slice(items.length);
|
|
16597
16507
|
for (const el of rest) {
|
|
16598
16508
|
i++;
|
|
16599
|
-
const result = def.rest._zod.run({
|
|
16509
|
+
const result = def.rest._zod.run({
|
|
16510
|
+
value: el,
|
|
16511
|
+
issues: []
|
|
16512
|
+
}, ctx);
|
|
16600
16513
|
if (result instanceof Promise) {
|
|
16601
|
-
proms.push(result.then((
|
|
16514
|
+
proms.push(result.then((result2) => handleTupleResult(result2, payload, i)));
|
|
16602
16515
|
} else {
|
|
16603
16516
|
handleTupleResult(result, payload, i);
|
|
16604
16517
|
}
|
|
16605
16518
|
}
|
|
16606
16519
|
}
|
|
16607
|
-
if (proms.length)
|
|
16608
|
-
return Promise.all(proms).then(() =>
|
|
16609
|
-
|
|
16610
|
-
return handleTupleResults(itemResults, payload, items, input, optoutStart);
|
|
16520
|
+
if (proms.length)
|
|
16521
|
+
return Promise.all(proms).then(() => payload);
|
|
16522
|
+
return payload;
|
|
16611
16523
|
};
|
|
16612
16524
|
});
|
|
16613
|
-
function getTupleOptStart(items, key) {
|
|
16614
|
-
for (let i = items.length - 1; i >= 0; i--) {
|
|
16615
|
-
if (items[i]._zod[key] !== "optional")
|
|
16616
|
-
return i + 1;
|
|
16617
|
-
}
|
|
16618
|
-
return 0;
|
|
16619
|
-
}
|
|
16620
16525
|
function handleTupleResult(result, final, index) {
|
|
16621
16526
|
if (result.issues.length) {
|
|
16622
16527
|
final.issues.push(...prefixIssues(index, result.issues));
|
|
16623
16528
|
}
|
|
16624
16529
|
final.value[index] = result.value;
|
|
16625
16530
|
}
|
|
16626
|
-
function handleTupleResults(itemResults, final, items, input, optoutStart) {
|
|
16627
|
-
for (let i = 0; i < items.length; i++) {
|
|
16628
|
-
const r = itemResults[i];
|
|
16629
|
-
const isPresent = i < input.length;
|
|
16630
|
-
if (r.issues.length) {
|
|
16631
|
-
if (!isPresent && i >= optoutStart) {
|
|
16632
|
-
final.value.length = i;
|
|
16633
|
-
break;
|
|
16634
|
-
}
|
|
16635
|
-
final.issues.push(...prefixIssues(i, r.issues));
|
|
16636
|
-
}
|
|
16637
|
-
final.value[i] = r.value;
|
|
16638
|
-
}
|
|
16639
|
-
for (let i = final.value.length - 1; i >= input.length; i--) {
|
|
16640
|
-
if (items[i]._zod.optout === "optional" && final.value[i] === void 0) {
|
|
16641
|
-
final.value.length = i;
|
|
16642
|
-
} else {
|
|
16643
|
-
break;
|
|
16644
|
-
}
|
|
16645
|
-
}
|
|
16646
|
-
return final;
|
|
16647
|
-
}
|
|
16648
16531
|
var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
16649
16532
|
$ZodType.init(inst, def);
|
|
16650
16533
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -16666,35 +16549,19 @@
|
|
|
16666
16549
|
for (const key of values) {
|
|
16667
16550
|
if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
|
|
16668
16551
|
recordKeys.add(typeof key === "number" ? key.toString() : key);
|
|
16669
|
-
const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
16670
|
-
if (keyResult instanceof Promise) {
|
|
16671
|
-
throw new Error("Async schemas not supported in object keys currently");
|
|
16672
|
-
}
|
|
16673
|
-
if (keyResult.issues.length) {
|
|
16674
|
-
payload.issues.push({
|
|
16675
|
-
code: "invalid_key",
|
|
16676
|
-
origin: "record",
|
|
16677
|
-
issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
|
|
16678
|
-
input: key,
|
|
16679
|
-
path: [key],
|
|
16680
|
-
inst
|
|
16681
|
-
});
|
|
16682
|
-
continue;
|
|
16683
|
-
}
|
|
16684
|
-
const outKey = keyResult.value;
|
|
16685
16552
|
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
16686
16553
|
if (result instanceof Promise) {
|
|
16687
16554
|
proms.push(result.then((result2) => {
|
|
16688
16555
|
if (result2.issues.length) {
|
|
16689
16556
|
payload.issues.push(...prefixIssues(key, result2.issues));
|
|
16690
16557
|
}
|
|
16691
|
-
payload.value[
|
|
16558
|
+
payload.value[key] = result2.value;
|
|
16692
16559
|
}));
|
|
16693
16560
|
} else {
|
|
16694
16561
|
if (result.issues.length) {
|
|
16695
16562
|
payload.issues.push(...prefixIssues(key, result.issues));
|
|
16696
16563
|
}
|
|
16697
|
-
payload.value[
|
|
16564
|
+
payload.value[key] = result.value;
|
|
16698
16565
|
}
|
|
16699
16566
|
}
|
|
16700
16567
|
}
|
|
@@ -16718,8 +16585,6 @@
|
|
|
16718
16585
|
for (const key of Reflect.ownKeys(input)) {
|
|
16719
16586
|
if (key === "__proto__")
|
|
16720
16587
|
continue;
|
|
16721
|
-
if (!Object.prototype.propertyIsEnumerable.call(input, key))
|
|
16722
|
-
continue;
|
|
16723
16588
|
let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
16724
16589
|
if (keyResult instanceof Promise) {
|
|
16725
16590
|
throw new Error("Async schemas not supported in object keys currently");
|
|
@@ -16924,7 +16789,6 @@
|
|
|
16924
16789
|
});
|
|
16925
16790
|
var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
|
|
16926
16791
|
$ZodType.init(inst, def);
|
|
16927
|
-
inst._zod.optin = "optional";
|
|
16928
16792
|
inst._zod.parse = (payload, ctx) => {
|
|
16929
16793
|
if (ctx.direction === "backward") {
|
|
16930
16794
|
throw new $ZodEncodeError(inst.constructor.name);
|
|
@@ -16934,7 +16798,6 @@
|
|
|
16934
16798
|
const output = _out instanceof Promise ? _out : Promise.resolve(_out);
|
|
16935
16799
|
return output.then((output2) => {
|
|
16936
16800
|
payload.value = output2;
|
|
16937
|
-
payload.fallback = true;
|
|
16938
16801
|
return payload;
|
|
16939
16802
|
});
|
|
16940
16803
|
}
|
|
@@ -16942,12 +16805,11 @@
|
|
|
16942
16805
|
throw new $ZodAsyncError();
|
|
16943
16806
|
}
|
|
16944
16807
|
payload.value = _out;
|
|
16945
|
-
payload.fallback = true;
|
|
16946
16808
|
return payload;
|
|
16947
16809
|
};
|
|
16948
16810
|
});
|
|
16949
16811
|
function handleOptionalResult(result, input) {
|
|
16950
|
-
if (input === void 0
|
|
16812
|
+
if (result.issues.length && input === void 0) {
|
|
16951
16813
|
return { issues: [], value: void 0 };
|
|
16952
16814
|
}
|
|
16953
16815
|
return result;
|
|
@@ -16960,16 +16822,15 @@
|
|
|
16960
16822
|
return def.innerType._zod.values ? /* @__PURE__ */ new Set([...def.innerType._zod.values, void 0]) : void 0;
|
|
16961
16823
|
});
|
|
16962
16824
|
defineLazy(inst._zod, "pattern", () => {
|
|
16963
|
-
const
|
|
16964
|
-
return
|
|
16825
|
+
const pattern2 = def.innerType._zod.pattern;
|
|
16826
|
+
return pattern2 ? new RegExp(`^(${cleanRegex(pattern2.source)})?$`) : void 0;
|
|
16965
16827
|
});
|
|
16966
16828
|
inst._zod.parse = (payload, ctx) => {
|
|
16967
16829
|
if (def.innerType._zod.optin === "optional") {
|
|
16968
|
-
const input = payload.value;
|
|
16969
16830
|
const result = def.innerType._zod.run(payload, ctx);
|
|
16970
16831
|
if (result instanceof Promise)
|
|
16971
|
-
return result.then((r) => handleOptionalResult(r,
|
|
16972
|
-
return handleOptionalResult(result,
|
|
16832
|
+
return result.then((r) => handleOptionalResult(r, payload.value));
|
|
16833
|
+
return handleOptionalResult(result, payload.value);
|
|
16973
16834
|
}
|
|
16974
16835
|
if (payload.value === void 0) {
|
|
16975
16836
|
return payload;
|
|
@@ -16990,8 +16851,8 @@
|
|
|
16990
16851
|
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
16991
16852
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
16992
16853
|
defineLazy(inst._zod, "pattern", () => {
|
|
16993
|
-
const
|
|
16994
|
-
return
|
|
16854
|
+
const pattern2 = def.innerType._zod.pattern;
|
|
16855
|
+
return pattern2 ? new RegExp(`^(${cleanRegex(pattern2.source)}|null)$`) : void 0;
|
|
16995
16856
|
});
|
|
16996
16857
|
defineLazy(inst._zod, "values", () => {
|
|
16997
16858
|
return def.innerType._zod.values ? /* @__PURE__ */ new Set([...def.innerType._zod.values, null]) : void 0;
|
|
@@ -17085,7 +16946,7 @@
|
|
|
17085
16946
|
});
|
|
17086
16947
|
var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
17087
16948
|
$ZodType.init(inst, def);
|
|
17088
|
-
inst._zod
|
|
16949
|
+
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
17089
16950
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
17090
16951
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
17091
16952
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -17105,7 +16966,6 @@
|
|
|
17105
16966
|
input: payload.value
|
|
17106
16967
|
});
|
|
17107
16968
|
payload.issues = [];
|
|
17108
|
-
payload.fallback = true;
|
|
17109
16969
|
}
|
|
17110
16970
|
return payload;
|
|
17111
16971
|
});
|
|
@@ -17120,7 +16980,6 @@
|
|
|
17120
16980
|
input: payload.value
|
|
17121
16981
|
});
|
|
17122
16982
|
payload.issues = [];
|
|
17123
|
-
payload.fallback = true;
|
|
17124
16983
|
}
|
|
17125
16984
|
return payload;
|
|
17126
16985
|
};
|
|
@@ -17166,7 +17025,7 @@
|
|
|
17166
17025
|
left.aborted = true;
|
|
17167
17026
|
return left;
|
|
17168
17027
|
}
|
|
17169
|
-
return next._zod.run({ value: left.value, issues: left.issues
|
|
17028
|
+
return next._zod.run({ value: left.value, issues: left.issues }, ctx);
|
|
17170
17029
|
}
|
|
17171
17030
|
var $ZodCodec = /* @__PURE__ */ $constructor("$ZodCodec", (inst, def) => {
|
|
17172
17031
|
$ZodType.init(inst, def);
|
|
@@ -17218,9 +17077,6 @@
|
|
|
17218
17077
|
}
|
|
17219
17078
|
return nextSchema._zod.run({ value, issues: left.issues }, ctx);
|
|
17220
17079
|
}
|
|
17221
|
-
var $ZodPreprocess = /* @__PURE__ */ $constructor("$ZodPreprocess", (inst, def) => {
|
|
17222
|
-
$ZodPipe.init(inst, def);
|
|
17223
|
-
});
|
|
17224
17080
|
var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
17225
17081
|
$ZodType.init(inst, def);
|
|
17226
17082
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
@@ -17372,12 +17228,7 @@
|
|
|
17372
17228
|
});
|
|
17373
17229
|
var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
|
|
17374
17230
|
$ZodType.init(inst, def);
|
|
17375
|
-
defineLazy(inst._zod, "innerType", () =>
|
|
17376
|
-
const d = def;
|
|
17377
|
-
if (!d._cachedInner)
|
|
17378
|
-
d._cachedInner = def.getter();
|
|
17379
|
-
return d._cachedInner;
|
|
17380
|
-
});
|
|
17231
|
+
defineLazy(inst._zod, "innerType", () => def.getter());
|
|
17381
17232
|
defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
|
|
17382
17233
|
defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
|
|
17383
17234
|
defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? void 0);
|
|
@@ -17421,7 +17272,7 @@
|
|
|
17421
17272
|
}
|
|
17422
17273
|
}
|
|
17423
17274
|
|
|
17424
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
17275
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/index.js
|
|
17425
17276
|
var locales_exports = {};
|
|
17426
17277
|
__export(locales_exports, {
|
|
17427
17278
|
ar: () => ar_default,
|
|
@@ -17432,7 +17283,6 @@
|
|
|
17432
17283
|
cs: () => cs_default,
|
|
17433
17284
|
da: () => da_default,
|
|
17434
17285
|
de: () => de_default,
|
|
17435
|
-
el: () => el_default,
|
|
17436
17286
|
en: () => en_default,
|
|
17437
17287
|
eo: () => eo_default,
|
|
17438
17288
|
es: () => es_default,
|
|
@@ -17441,7 +17291,6 @@
|
|
|
17441
17291
|
fr: () => fr_default,
|
|
17442
17292
|
frCA: () => fr_CA_default,
|
|
17443
17293
|
he: () => he_default,
|
|
17444
|
-
hr: () => hr_default,
|
|
17445
17294
|
hu: () => hu_default,
|
|
17446
17295
|
hy: () => hy_default,
|
|
17447
17296
|
id: () => id_default,
|
|
@@ -17461,7 +17310,6 @@
|
|
|
17461
17310
|
pl: () => pl_default,
|
|
17462
17311
|
ps: () => ps_default,
|
|
17463
17312
|
pt: () => pt_default,
|
|
17464
|
-
ro: () => ro_default,
|
|
17465
17313
|
ru: () => ru_default,
|
|
17466
17314
|
sl: () => sl_default,
|
|
17467
17315
|
sv: () => sv_default,
|
|
@@ -17478,7 +17326,7 @@
|
|
|
17478
17326
|
zhTW: () => zh_TW_default
|
|
17479
17327
|
});
|
|
17480
17328
|
|
|
17481
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
17329
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ar.js
|
|
17482
17330
|
var error = () => {
|
|
17483
17331
|
const Sizable = {
|
|
17484
17332
|
string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
|
|
@@ -17585,7 +17433,7 @@
|
|
|
17585
17433
|
};
|
|
17586
17434
|
}
|
|
17587
17435
|
|
|
17588
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
17436
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/az.js
|
|
17589
17437
|
var error2 = () => {
|
|
17590
17438
|
const Sizable = {
|
|
17591
17439
|
string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
|
|
@@ -17691,7 +17539,7 @@
|
|
|
17691
17539
|
};
|
|
17692
17540
|
}
|
|
17693
17541
|
|
|
17694
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
17542
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/be.js
|
|
17695
17543
|
function getBelarusianPlural(count, one, few, many) {
|
|
17696
17544
|
const absCount = Math.abs(count);
|
|
17697
17545
|
const lastDigit = absCount % 10;
|
|
@@ -17848,7 +17696,7 @@
|
|
|
17848
17696
|
};
|
|
17849
17697
|
}
|
|
17850
17698
|
|
|
17851
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
17699
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/bg.js
|
|
17852
17700
|
var error4 = () => {
|
|
17853
17701
|
const Sizable = {
|
|
17854
17702
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
|
|
@@ -17969,7 +17817,7 @@
|
|
|
17969
17817
|
};
|
|
17970
17818
|
}
|
|
17971
17819
|
|
|
17972
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
17820
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ca.js
|
|
17973
17821
|
var error5 = () => {
|
|
17974
17822
|
const Sizable = {
|
|
17975
17823
|
string: { unit: "car\xE0cters", verb: "contenir" },
|
|
@@ -18078,7 +17926,7 @@
|
|
|
18078
17926
|
};
|
|
18079
17927
|
}
|
|
18080
17928
|
|
|
18081
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
17929
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/cs.js
|
|
18082
17930
|
var error6 = () => {
|
|
18083
17931
|
const Sizable = {
|
|
18084
17932
|
string: { unit: "znak\u016F", verb: "m\xEDt" },
|
|
@@ -18190,7 +18038,7 @@
|
|
|
18190
18038
|
};
|
|
18191
18039
|
}
|
|
18192
18040
|
|
|
18193
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
18041
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/da.js
|
|
18194
18042
|
var error7 = () => {
|
|
18195
18043
|
const Sizable = {
|
|
18196
18044
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -18306,7 +18154,7 @@
|
|
|
18306
18154
|
};
|
|
18307
18155
|
}
|
|
18308
18156
|
|
|
18309
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
18157
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/de.js
|
|
18310
18158
|
var error8 = () => {
|
|
18311
18159
|
const Sizable = {
|
|
18312
18160
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -18415,118 +18263,8 @@
|
|
|
18415
18263
|
};
|
|
18416
18264
|
}
|
|
18417
18265
|
|
|
18418
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
18266
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/en.js
|
|
18419
18267
|
var error9 = () => {
|
|
18420
|
-
const Sizable = {
|
|
18421
|
-
string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
18422
|
-
file: { unit: "bytes", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
18423
|
-
array: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
18424
|
-
set: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
18425
|
-
map: { unit: "\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" }
|
|
18426
|
-
};
|
|
18427
|
-
function getSizing(origin) {
|
|
18428
|
-
return Sizable[origin] ?? null;
|
|
18429
|
-
}
|
|
18430
|
-
const FormatDictionary = {
|
|
18431
|
-
regex: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",
|
|
18432
|
-
email: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",
|
|
18433
|
-
url: "URL",
|
|
18434
|
-
emoji: "emoji",
|
|
18435
|
-
uuid: "UUID",
|
|
18436
|
-
uuidv4: "UUIDv4",
|
|
18437
|
-
uuidv6: "UUIDv6",
|
|
18438
|
-
nanoid: "nanoid",
|
|
18439
|
-
guid: "GUID",
|
|
18440
|
-
cuid: "cuid",
|
|
18441
|
-
cuid2: "cuid2",
|
|
18442
|
-
ulid: "ULID",
|
|
18443
|
-
xid: "XID",
|
|
18444
|
-
ksuid: "KSUID",
|
|
18445
|
-
datetime: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",
|
|
18446
|
-
date: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",
|
|
18447
|
-
time: "ISO \u03CE\u03C1\u03B1",
|
|
18448
|
-
duration: "ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",
|
|
18449
|
-
ipv4: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",
|
|
18450
|
-
ipv6: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",
|
|
18451
|
-
mac: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",
|
|
18452
|
-
cidrv4: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",
|
|
18453
|
-
cidrv6: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",
|
|
18454
|
-
base64: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",
|
|
18455
|
-
base64url: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",
|
|
18456
|
-
json_string: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",
|
|
18457
|
-
e164: "\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",
|
|
18458
|
-
jwt: "JWT",
|
|
18459
|
-
template_literal: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"
|
|
18460
|
-
};
|
|
18461
|
-
const TypeDictionary = {
|
|
18462
|
-
nan: "NaN"
|
|
18463
|
-
};
|
|
18464
|
-
return (issue2) => {
|
|
18465
|
-
switch (issue2.code) {
|
|
18466
|
-
case "invalid_type": {
|
|
18467
|
-
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
18468
|
-
const receivedType = parsedType(issue2.input);
|
|
18469
|
-
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
18470
|
-
if (typeof issue2.expected === "string" && /^[A-Z]/.test(issue2.expected)) {
|
|
18471
|
-
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${issue2.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received}`;
|
|
18472
|
-
}
|
|
18473
|
-
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received}`;
|
|
18474
|
-
}
|
|
18475
|
-
case "invalid_value":
|
|
18476
|
-
if (issue2.values.length === 1)
|
|
18477
|
-
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${stringifyPrimitive(issue2.values[0])}`;
|
|
18478
|
-
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${joinValues(issue2.values, "|")}`;
|
|
18479
|
-
case "too_big": {
|
|
18480
|
-
const adj = issue2.inclusive ? "<=" : "<";
|
|
18481
|
-
const sizing = getSizing(issue2.origin);
|
|
18482
|
-
if (sizing)
|
|
18483
|
-
return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin ?? "\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`;
|
|
18484
|
-
return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin ?? "\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${adj}${issue2.maximum.toString()}`;
|
|
18485
|
-
}
|
|
18486
|
-
case "too_small": {
|
|
18487
|
-
const adj = issue2.inclusive ? ">=" : ">";
|
|
18488
|
-
const sizing = getSizing(issue2.origin);
|
|
18489
|
-
if (sizing) {
|
|
18490
|
-
return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
18491
|
-
}
|
|
18492
|
-
return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${adj}${issue2.minimum.toString()}`;
|
|
18493
|
-
}
|
|
18494
|
-
case "invalid_format": {
|
|
18495
|
-
const _issue = issue2;
|
|
18496
|
-
if (_issue.format === "starts_with") {
|
|
18497
|
-
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${_issue.prefix}"`;
|
|
18498
|
-
}
|
|
18499
|
-
if (_issue.format === "ends_with")
|
|
18500
|
-
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${_issue.suffix}"`;
|
|
18501
|
-
if (_issue.format === "includes")
|
|
18502
|
-
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${_issue.includes}"`;
|
|
18503
|
-
if (_issue.format === "regex")
|
|
18504
|
-
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${_issue.pattern}`;
|
|
18505
|
-
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
18506
|
-
}
|
|
18507
|
-
case "not_multiple_of":
|
|
18508
|
-
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${issue2.divisor}`;
|
|
18509
|
-
case "unrecognized_keys":
|
|
18510
|
-
return `\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${issue2.keys.length > 1 ? "\u03B1" : "\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${issue2.keys.length > 1 ? "\u03B9\u03AC" : "\u03AF"}: ${joinValues(issue2.keys, ", ")}`;
|
|
18511
|
-
case "invalid_key":
|
|
18512
|
-
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${issue2.origin}`;
|
|
18513
|
-
case "invalid_union":
|
|
18514
|
-
return "\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";
|
|
18515
|
-
case "invalid_element":
|
|
18516
|
-
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${issue2.origin}`;
|
|
18517
|
-
default:
|
|
18518
|
-
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2`;
|
|
18519
|
-
}
|
|
18520
|
-
};
|
|
18521
|
-
};
|
|
18522
|
-
function el_default() {
|
|
18523
|
-
return {
|
|
18524
|
-
localeError: error9()
|
|
18525
|
-
};
|
|
18526
|
-
}
|
|
18527
|
-
|
|
18528
|
-
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/en.js
|
|
18529
|
-
var error10 = () => {
|
|
18530
18268
|
const Sizable = {
|
|
18531
18269
|
string: { unit: "characters", verb: "to have" },
|
|
18532
18270
|
file: { unit: "bytes", verb: "to have" },
|
|
@@ -18620,10 +18358,6 @@
|
|
|
18620
18358
|
case "invalid_key":
|
|
18621
18359
|
return `Invalid key in ${issue2.origin}`;
|
|
18622
18360
|
case "invalid_union":
|
|
18623
|
-
if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) {
|
|
18624
|
-
const opts = issue2.options.map((o) => `'${o}'`).join(" | ");
|
|
18625
|
-
return `Invalid discriminator value. Expected ${opts}`;
|
|
18626
|
-
}
|
|
18627
18361
|
return "Invalid input";
|
|
18628
18362
|
case "invalid_element":
|
|
18629
18363
|
return `Invalid value in ${issue2.origin}`;
|
|
@@ -18634,12 +18368,12 @@
|
|
|
18634
18368
|
};
|
|
18635
18369
|
function en_default() {
|
|
18636
18370
|
return {
|
|
18637
|
-
localeError:
|
|
18371
|
+
localeError: error9()
|
|
18638
18372
|
};
|
|
18639
18373
|
}
|
|
18640
18374
|
|
|
18641
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
18642
|
-
var
|
|
18375
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/eo.js
|
|
18376
|
+
var error10 = () => {
|
|
18643
18377
|
const Sizable = {
|
|
18644
18378
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
18645
18379
|
file: { unit: "bajtojn", verb: "havi" },
|
|
@@ -18744,12 +18478,12 @@
|
|
|
18744
18478
|
};
|
|
18745
18479
|
function eo_default() {
|
|
18746
18480
|
return {
|
|
18747
|
-
localeError:
|
|
18481
|
+
localeError: error10()
|
|
18748
18482
|
};
|
|
18749
18483
|
}
|
|
18750
18484
|
|
|
18751
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
18752
|
-
var
|
|
18485
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/es.js
|
|
18486
|
+
var error11 = () => {
|
|
18753
18487
|
const Sizable = {
|
|
18754
18488
|
string: { unit: "caracteres", verb: "tener" },
|
|
18755
18489
|
file: { unit: "bytes", verb: "tener" },
|
|
@@ -18877,12 +18611,12 @@
|
|
|
18877
18611
|
};
|
|
18878
18612
|
function es_default() {
|
|
18879
18613
|
return {
|
|
18880
|
-
localeError:
|
|
18614
|
+
localeError: error11()
|
|
18881
18615
|
};
|
|
18882
18616
|
}
|
|
18883
18617
|
|
|
18884
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
18885
|
-
var
|
|
18618
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fa.js
|
|
18619
|
+
var error12 = () => {
|
|
18886
18620
|
const Sizable = {
|
|
18887
18621
|
string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
18888
18622
|
file: { unit: "\u0628\u0627\u06CC\u062A", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
@@ -18992,12 +18726,12 @@
|
|
|
18992
18726
|
};
|
|
18993
18727
|
function fa_default() {
|
|
18994
18728
|
return {
|
|
18995
|
-
localeError:
|
|
18729
|
+
localeError: error12()
|
|
18996
18730
|
};
|
|
18997
18731
|
}
|
|
18998
18732
|
|
|
18999
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
19000
|
-
var
|
|
18733
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fi.js
|
|
18734
|
+
var error13 = () => {
|
|
19001
18735
|
const Sizable = {
|
|
19002
18736
|
string: { unit: "merkki\xE4", subject: "merkkijonon" },
|
|
19003
18737
|
file: { unit: "tavua", subject: "tiedoston" },
|
|
@@ -19105,12 +18839,12 @@
|
|
|
19105
18839
|
};
|
|
19106
18840
|
function fi_default() {
|
|
19107
18841
|
return {
|
|
19108
|
-
localeError:
|
|
18842
|
+
localeError: error13()
|
|
19109
18843
|
};
|
|
19110
18844
|
}
|
|
19111
18845
|
|
|
19112
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
19113
|
-
var
|
|
18846
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fr.js
|
|
18847
|
+
var error14 = () => {
|
|
19114
18848
|
const Sizable = {
|
|
19115
18849
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
19116
18850
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -19151,27 +18885,9 @@
|
|
|
19151
18885
|
template_literal: "entr\xE9e"
|
|
19152
18886
|
};
|
|
19153
18887
|
const TypeDictionary = {
|
|
19154
|
-
string: "cha\xEEne",
|
|
19155
|
-
number: "nombre",
|
|
19156
|
-
int: "entier",
|
|
19157
|
-
boolean: "bool\xE9en",
|
|
19158
|
-
bigint: "grand entier",
|
|
19159
|
-
symbol: "symbole",
|
|
19160
|
-
undefined: "ind\xE9fini",
|
|
19161
|
-
null: "null",
|
|
19162
|
-
never: "jamais",
|
|
19163
|
-
void: "vide",
|
|
19164
|
-
date: "date",
|
|
19165
|
-
array: "tableau",
|
|
19166
|
-
object: "objet",
|
|
19167
|
-
tuple: "tuple",
|
|
19168
|
-
record: "enregistrement",
|
|
19169
|
-
map: "carte",
|
|
19170
|
-
set: "ensemble",
|
|
19171
|
-
file: "fichier",
|
|
19172
|
-
nonoptional: "non-optionnel",
|
|
19173
18888
|
nan: "NaN",
|
|
19174
|
-
|
|
18889
|
+
number: "nombre",
|
|
18890
|
+
array: "tableau"
|
|
19175
18891
|
};
|
|
19176
18892
|
return (issue2) => {
|
|
19177
18893
|
switch (issue2.code) {
|
|
@@ -19192,15 +18908,16 @@
|
|
|
19192
18908
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
19193
18909
|
const sizing = getSizing(issue2.origin);
|
|
19194
18910
|
if (sizing)
|
|
19195
|
-
return `Trop grand : ${
|
|
19196
|
-
return `Trop grand : ${
|
|
18911
|
+
return `Trop grand : ${issue2.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
|
|
18912
|
+
return `Trop grand : ${issue2.origin ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
|
|
19197
18913
|
}
|
|
19198
18914
|
case "too_small": {
|
|
19199
18915
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
19200
18916
|
const sizing = getSizing(issue2.origin);
|
|
19201
|
-
if (sizing)
|
|
19202
|
-
return `Trop petit : ${
|
|
19203
|
-
|
|
18917
|
+
if (sizing) {
|
|
18918
|
+
return `Trop petit : ${issue2.origin} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
18919
|
+
}
|
|
18920
|
+
return `Trop petit : ${issue2.origin} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
|
|
19204
18921
|
}
|
|
19205
18922
|
case "invalid_format": {
|
|
19206
18923
|
const _issue = issue2;
|
|
@@ -19231,12 +18948,12 @@
|
|
|
19231
18948
|
};
|
|
19232
18949
|
function fr_default() {
|
|
19233
18950
|
return {
|
|
19234
|
-
localeError:
|
|
18951
|
+
localeError: error14()
|
|
19235
18952
|
};
|
|
19236
18953
|
}
|
|
19237
18954
|
|
|
19238
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
19239
|
-
var
|
|
18955
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fr-CA.js
|
|
18956
|
+
var error15 = () => {
|
|
19240
18957
|
const Sizable = {
|
|
19241
18958
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
19242
18959
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -19339,12 +19056,12 @@
|
|
|
19339
19056
|
};
|
|
19340
19057
|
function fr_CA_default() {
|
|
19341
19058
|
return {
|
|
19342
|
-
localeError:
|
|
19059
|
+
localeError: error15()
|
|
19343
19060
|
};
|
|
19344
19061
|
}
|
|
19345
19062
|
|
|
19346
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
19347
|
-
var
|
|
19063
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/he.js
|
|
19064
|
+
var error16 = () => {
|
|
19348
19065
|
const TypeNames = {
|
|
19349
19066
|
string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
|
|
19350
19067
|
number: { label: "\u05DE\u05E1\u05E4\u05E8", gender: "m" },
|
|
@@ -19534,135 +19251,12 @@
|
|
|
19534
19251
|
};
|
|
19535
19252
|
function he_default() {
|
|
19536
19253
|
return {
|
|
19537
|
-
localeError:
|
|
19538
|
-
};
|
|
19539
|
-
}
|
|
19540
|
-
|
|
19541
|
-
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hr.js
|
|
19542
|
-
var error18 = () => {
|
|
19543
|
-
const Sizable = {
|
|
19544
|
-
string: { unit: "znakova", verb: "imati" },
|
|
19545
|
-
file: { unit: "bajtova", verb: "imati" },
|
|
19546
|
-
array: { unit: "stavki", verb: "imati" },
|
|
19547
|
-
set: { unit: "stavki", verb: "imati" }
|
|
19548
|
-
};
|
|
19549
|
-
function getSizing(origin) {
|
|
19550
|
-
return Sizable[origin] ?? null;
|
|
19551
|
-
}
|
|
19552
|
-
const FormatDictionary = {
|
|
19553
|
-
regex: "unos",
|
|
19554
|
-
email: "email adresa",
|
|
19555
|
-
url: "URL",
|
|
19556
|
-
emoji: "emoji",
|
|
19557
|
-
uuid: "UUID",
|
|
19558
|
-
uuidv4: "UUIDv4",
|
|
19559
|
-
uuidv6: "UUIDv6",
|
|
19560
|
-
nanoid: "nanoid",
|
|
19561
|
-
guid: "GUID",
|
|
19562
|
-
cuid: "cuid",
|
|
19563
|
-
cuid2: "cuid2",
|
|
19564
|
-
ulid: "ULID",
|
|
19565
|
-
xid: "XID",
|
|
19566
|
-
ksuid: "KSUID",
|
|
19567
|
-
datetime: "ISO datum i vrijeme",
|
|
19568
|
-
date: "ISO datum",
|
|
19569
|
-
time: "ISO vrijeme",
|
|
19570
|
-
duration: "ISO trajanje",
|
|
19571
|
-
ipv4: "IPv4 adresa",
|
|
19572
|
-
ipv6: "IPv6 adresa",
|
|
19573
|
-
cidrv4: "IPv4 raspon",
|
|
19574
|
-
cidrv6: "IPv6 raspon",
|
|
19575
|
-
base64: "base64 kodirani tekst",
|
|
19576
|
-
base64url: "base64url kodirani tekst",
|
|
19577
|
-
json_string: "JSON tekst",
|
|
19578
|
-
e164: "E.164 broj",
|
|
19579
|
-
jwt: "JWT",
|
|
19580
|
-
template_literal: "unos"
|
|
19581
|
-
};
|
|
19582
|
-
const TypeDictionary = {
|
|
19583
|
-
nan: "NaN",
|
|
19584
|
-
string: "tekst",
|
|
19585
|
-
number: "broj",
|
|
19586
|
-
boolean: "boolean",
|
|
19587
|
-
array: "niz",
|
|
19588
|
-
object: "objekt",
|
|
19589
|
-
set: "skup",
|
|
19590
|
-
file: "datoteka",
|
|
19591
|
-
date: "datum",
|
|
19592
|
-
bigint: "bigint",
|
|
19593
|
-
symbol: "simbol",
|
|
19594
|
-
undefined: "undefined",
|
|
19595
|
-
null: "null",
|
|
19596
|
-
function: "funkcija",
|
|
19597
|
-
map: "mapa"
|
|
19598
|
-
};
|
|
19599
|
-
return (issue2) => {
|
|
19600
|
-
switch (issue2.code) {
|
|
19601
|
-
case "invalid_type": {
|
|
19602
|
-
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
19603
|
-
const receivedType = parsedType(issue2.input);
|
|
19604
|
-
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
19605
|
-
if (/^[A-Z]/.test(issue2.expected)) {
|
|
19606
|
-
return `Neispravan unos: o\u010Dekuje se instanceof ${issue2.expected}, a primljeno je ${received}`;
|
|
19607
|
-
}
|
|
19608
|
-
return `Neispravan unos: o\u010Dekuje se ${expected}, a primljeno je ${received}`;
|
|
19609
|
-
}
|
|
19610
|
-
case "invalid_value":
|
|
19611
|
-
if (issue2.values.length === 1)
|
|
19612
|
-
return `Neispravna vrijednost: o\u010Dekivano ${stringifyPrimitive(issue2.values[0])}`;
|
|
19613
|
-
return `Neispravna opcija: o\u010Dekivano jedno od ${joinValues(issue2.values, "|")}`;
|
|
19614
|
-
case "too_big": {
|
|
19615
|
-
const adj = issue2.inclusive ? "<=" : "<";
|
|
19616
|
-
const sizing = getSizing(issue2.origin);
|
|
19617
|
-
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
19618
|
-
if (sizing)
|
|
19619
|
-
return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} ima ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemenata"}`;
|
|
19620
|
-
return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} bude ${adj}${issue2.maximum.toString()}`;
|
|
19621
|
-
}
|
|
19622
|
-
case "too_small": {
|
|
19623
|
-
const adj = issue2.inclusive ? ">=" : ">";
|
|
19624
|
-
const sizing = getSizing(issue2.origin);
|
|
19625
|
-
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
19626
|
-
if (sizing) {
|
|
19627
|
-
return `Premalo: o\u010Dekivano da ${origin} ima ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
19628
|
-
}
|
|
19629
|
-
return `Premalo: o\u010Dekivano da ${origin} bude ${adj}${issue2.minimum.toString()}`;
|
|
19630
|
-
}
|
|
19631
|
-
case "invalid_format": {
|
|
19632
|
-
const _issue = issue2;
|
|
19633
|
-
if (_issue.format === "starts_with")
|
|
19634
|
-
return `Neispravan tekst: mora zapo\u010Dinjati s "${_issue.prefix}"`;
|
|
19635
|
-
if (_issue.format === "ends_with")
|
|
19636
|
-
return `Neispravan tekst: mora zavr\u0161avati s "${_issue.suffix}"`;
|
|
19637
|
-
if (_issue.format === "includes")
|
|
19638
|
-
return `Neispravan tekst: mora sadr\u017Eavati "${_issue.includes}"`;
|
|
19639
|
-
if (_issue.format === "regex")
|
|
19640
|
-
return `Neispravan tekst: mora odgovarati uzorku ${_issue.pattern}`;
|
|
19641
|
-
return `Neispravna ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
19642
|
-
}
|
|
19643
|
-
case "not_multiple_of":
|
|
19644
|
-
return `Neispravan broj: mora biti vi\u0161ekratnik od ${issue2.divisor}`;
|
|
19645
|
-
case "unrecognized_keys":
|
|
19646
|
-
return `Neprepoznat${issue2.keys.length > 1 ? "i klju\u010Devi" : " klju\u010D"}: ${joinValues(issue2.keys, ", ")}`;
|
|
19647
|
-
case "invalid_key":
|
|
19648
|
-
return `Neispravan klju\u010D u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
|
|
19649
|
-
case "invalid_union":
|
|
19650
|
-
return "Neispravan unos";
|
|
19651
|
-
case "invalid_element":
|
|
19652
|
-
return `Neispravna vrijednost u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
|
|
19653
|
-
default:
|
|
19654
|
-
return `Neispravan unos`;
|
|
19655
|
-
}
|
|
19656
|
-
};
|
|
19657
|
-
};
|
|
19658
|
-
function hr_default() {
|
|
19659
|
-
return {
|
|
19660
|
-
localeError: error18()
|
|
19254
|
+
localeError: error16()
|
|
19661
19255
|
};
|
|
19662
19256
|
}
|
|
19663
19257
|
|
|
19664
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
19665
|
-
var
|
|
19258
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/hu.js
|
|
19259
|
+
var error17 = () => {
|
|
19666
19260
|
const Sizable = {
|
|
19667
19261
|
string: { unit: "karakter", verb: "legyen" },
|
|
19668
19262
|
file: { unit: "byte", verb: "legyen" },
|
|
@@ -19766,11 +19360,11 @@
|
|
|
19766
19360
|
};
|
|
19767
19361
|
function hu_default() {
|
|
19768
19362
|
return {
|
|
19769
|
-
localeError:
|
|
19363
|
+
localeError: error17()
|
|
19770
19364
|
};
|
|
19771
19365
|
}
|
|
19772
19366
|
|
|
19773
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
19367
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/hy.js
|
|
19774
19368
|
function getArmenianPlural(count, one, many) {
|
|
19775
19369
|
return Math.abs(count) === 1 ? one : many;
|
|
19776
19370
|
}
|
|
@@ -19781,7 +19375,7 @@
|
|
|
19781
19375
|
const lastChar = word[word.length - 1];
|
|
19782
19376
|
return word + (vowels.includes(lastChar) ? "\u0576" : "\u0568");
|
|
19783
19377
|
}
|
|
19784
|
-
var
|
|
19378
|
+
var error18 = () => {
|
|
19785
19379
|
const Sizable = {
|
|
19786
19380
|
string: {
|
|
19787
19381
|
unit: {
|
|
@@ -19914,12 +19508,12 @@
|
|
|
19914
19508
|
};
|
|
19915
19509
|
function hy_default() {
|
|
19916
19510
|
return {
|
|
19917
|
-
localeError:
|
|
19511
|
+
localeError: error18()
|
|
19918
19512
|
};
|
|
19919
19513
|
}
|
|
19920
19514
|
|
|
19921
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
19922
|
-
var
|
|
19515
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/id.js
|
|
19516
|
+
var error19 = () => {
|
|
19923
19517
|
const Sizable = {
|
|
19924
19518
|
string: { unit: "karakter", verb: "memiliki" },
|
|
19925
19519
|
file: { unit: "byte", verb: "memiliki" },
|
|
@@ -20021,12 +19615,12 @@
|
|
|
20021
19615
|
};
|
|
20022
19616
|
function id_default() {
|
|
20023
19617
|
return {
|
|
20024
|
-
localeError:
|
|
19618
|
+
localeError: error19()
|
|
20025
19619
|
};
|
|
20026
19620
|
}
|
|
20027
19621
|
|
|
20028
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
20029
|
-
var
|
|
19622
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/is.js
|
|
19623
|
+
var error20 = () => {
|
|
20030
19624
|
const Sizable = {
|
|
20031
19625
|
string: { unit: "stafi", verb: "a\xF0 hafa" },
|
|
20032
19626
|
file: { unit: "b\xE6ti", verb: "a\xF0 hafa" },
|
|
@@ -20131,12 +19725,12 @@
|
|
|
20131
19725
|
};
|
|
20132
19726
|
function is_default() {
|
|
20133
19727
|
return {
|
|
20134
|
-
localeError:
|
|
19728
|
+
localeError: error20()
|
|
20135
19729
|
};
|
|
20136
19730
|
}
|
|
20137
19731
|
|
|
20138
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
20139
|
-
var
|
|
19732
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/it.js
|
|
19733
|
+
var error21 = () => {
|
|
20140
19734
|
const Sizable = {
|
|
20141
19735
|
string: { unit: "caratteri", verb: "avere" },
|
|
20142
19736
|
file: { unit: "byte", verb: "avere" },
|
|
@@ -20221,7 +19815,7 @@
|
|
|
20221
19815
|
return `Stringa non valida: deve includere "${_issue.includes}"`;
|
|
20222
19816
|
if (_issue.format === "regex")
|
|
20223
19817
|
return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
|
|
20224
|
-
return `
|
|
19818
|
+
return `Invalid ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
20225
19819
|
}
|
|
20226
19820
|
case "not_multiple_of":
|
|
20227
19821
|
return `Numero non valido: deve essere un multiplo di ${issue2.divisor}`;
|
|
@@ -20240,12 +19834,12 @@
|
|
|
20240
19834
|
};
|
|
20241
19835
|
function it_default() {
|
|
20242
19836
|
return {
|
|
20243
|
-
localeError:
|
|
19837
|
+
localeError: error21()
|
|
20244
19838
|
};
|
|
20245
19839
|
}
|
|
20246
19840
|
|
|
20247
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
20248
|
-
var
|
|
19841
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ja.js
|
|
19842
|
+
var error22 = () => {
|
|
20249
19843
|
const Sizable = {
|
|
20250
19844
|
string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
|
|
20251
19845
|
file: { unit: "\u30D0\u30A4\u30C8", verb: "\u3067\u3042\u308B" },
|
|
@@ -20348,12 +19942,12 @@
|
|
|
20348
19942
|
};
|
|
20349
19943
|
function ja_default() {
|
|
20350
19944
|
return {
|
|
20351
|
-
localeError:
|
|
19945
|
+
localeError: error22()
|
|
20352
19946
|
};
|
|
20353
19947
|
}
|
|
20354
19948
|
|
|
20355
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
20356
|
-
var
|
|
19949
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ka.js
|
|
19950
|
+
var error23 = () => {
|
|
20357
19951
|
const Sizable = {
|
|
20358
19952
|
string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
20359
19953
|
file: { unit: "\u10D1\u10D0\u10D8\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
@@ -20386,9 +19980,9 @@
|
|
|
20386
19980
|
ipv6: "IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",
|
|
20387
19981
|
cidrv4: "IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
|
|
20388
19982
|
cidrv6: "IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
|
|
20389
|
-
base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \
|
|
20390
|
-
base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \
|
|
20391
|
-
json_string: "JSON \
|
|
19983
|
+
base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
|
|
19984
|
+
base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
|
|
19985
|
+
json_string: "JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
|
|
20392
19986
|
e164: "E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",
|
|
20393
19987
|
jwt: "JWT",
|
|
20394
19988
|
template_literal: "\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"
|
|
@@ -20396,7 +19990,7 @@
|
|
|
20396
19990
|
const TypeDictionary = {
|
|
20397
19991
|
nan: "NaN",
|
|
20398
19992
|
number: "\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",
|
|
20399
|
-
string: "\
|
|
19993
|
+
string: "\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
|
|
20400
19994
|
boolean: "\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",
|
|
20401
19995
|
function: "\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",
|
|
20402
19996
|
array: "\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"
|
|
@@ -20434,14 +20028,14 @@
|
|
|
20434
20028
|
case "invalid_format": {
|
|
20435
20029
|
const _issue = issue2;
|
|
20436
20030
|
if (_issue.format === "starts_with") {
|
|
20437
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
20031
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.prefix}"-\u10D8\u10D7`;
|
|
20438
20032
|
}
|
|
20439
20033
|
if (_issue.format === "ends_with")
|
|
20440
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
20034
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.suffix}"-\u10D8\u10D7`;
|
|
20441
20035
|
if (_issue.format === "includes")
|
|
20442
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
20036
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${_issue.includes}"-\u10E1`;
|
|
20443
20037
|
if (_issue.format === "regex")
|
|
20444
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
20038
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${_issue.pattern}`;
|
|
20445
20039
|
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
20446
20040
|
}
|
|
20447
20041
|
case "not_multiple_of":
|
|
@@ -20461,12 +20055,12 @@
|
|
|
20461
20055
|
};
|
|
20462
20056
|
function ka_default() {
|
|
20463
20057
|
return {
|
|
20464
|
-
localeError:
|
|
20058
|
+
localeError: error23()
|
|
20465
20059
|
};
|
|
20466
20060
|
}
|
|
20467
20061
|
|
|
20468
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
20469
|
-
var
|
|
20062
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/km.js
|
|
20063
|
+
var error24 = () => {
|
|
20470
20064
|
const Sizable = {
|
|
20471
20065
|
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
20472
20066
|
file: { unit: "\u1794\u17C3", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
@@ -20572,17 +20166,17 @@
|
|
|
20572
20166
|
};
|
|
20573
20167
|
function km_default() {
|
|
20574
20168
|
return {
|
|
20575
|
-
localeError:
|
|
20169
|
+
localeError: error24()
|
|
20576
20170
|
};
|
|
20577
20171
|
}
|
|
20578
20172
|
|
|
20579
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
20173
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/kh.js
|
|
20580
20174
|
function kh_default() {
|
|
20581
20175
|
return km_default();
|
|
20582
20176
|
}
|
|
20583
20177
|
|
|
20584
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
20585
|
-
var
|
|
20178
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ko.js
|
|
20179
|
+
var error25 = () => {
|
|
20586
20180
|
const Sizable = {
|
|
20587
20181
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
20588
20182
|
file: { unit: "\uBC14\uC774\uD2B8", verb: "to have" },
|
|
@@ -20689,11 +20283,11 @@
|
|
|
20689
20283
|
};
|
|
20690
20284
|
function ko_default() {
|
|
20691
20285
|
return {
|
|
20692
|
-
localeError:
|
|
20286
|
+
localeError: error25()
|
|
20693
20287
|
};
|
|
20694
20288
|
}
|
|
20695
20289
|
|
|
20696
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
20290
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/lt.js
|
|
20697
20291
|
var capitalizeFirstCharacter = (text) => {
|
|
20698
20292
|
return text.charAt(0).toUpperCase() + text.slice(1);
|
|
20699
20293
|
};
|
|
@@ -20707,7 +20301,7 @@
|
|
|
20707
20301
|
return "one";
|
|
20708
20302
|
return "few";
|
|
20709
20303
|
}
|
|
20710
|
-
var
|
|
20304
|
+
var error26 = () => {
|
|
20711
20305
|
const Sizable = {
|
|
20712
20306
|
string: {
|
|
20713
20307
|
unit: {
|
|
@@ -20893,12 +20487,12 @@
|
|
|
20893
20487
|
};
|
|
20894
20488
|
function lt_default() {
|
|
20895
20489
|
return {
|
|
20896
|
-
localeError:
|
|
20490
|
+
localeError: error26()
|
|
20897
20491
|
};
|
|
20898
20492
|
}
|
|
20899
20493
|
|
|
20900
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
20901
|
-
var
|
|
20494
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/mk.js
|
|
20495
|
+
var error27 = () => {
|
|
20902
20496
|
const Sizable = {
|
|
20903
20497
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
20904
20498
|
file: { unit: "\u0431\u0430\u0458\u0442\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
@@ -21003,12 +20597,12 @@
|
|
|
21003
20597
|
};
|
|
21004
20598
|
function mk_default() {
|
|
21005
20599
|
return {
|
|
21006
|
-
localeError:
|
|
20600
|
+
localeError: error27()
|
|
21007
20601
|
};
|
|
21008
20602
|
}
|
|
21009
20603
|
|
|
21010
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
21011
|
-
var
|
|
20604
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ms.js
|
|
20605
|
+
var error28 = () => {
|
|
21012
20606
|
const Sizable = {
|
|
21013
20607
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
21014
20608
|
file: { unit: "bait", verb: "mempunyai" },
|
|
@@ -21111,12 +20705,12 @@
|
|
|
21111
20705
|
};
|
|
21112
20706
|
function ms_default() {
|
|
21113
20707
|
return {
|
|
21114
|
-
localeError:
|
|
20708
|
+
localeError: error28()
|
|
21115
20709
|
};
|
|
21116
20710
|
}
|
|
21117
20711
|
|
|
21118
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
21119
|
-
var
|
|
20712
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/nl.js
|
|
20713
|
+
var error29 = () => {
|
|
21120
20714
|
const Sizable = {
|
|
21121
20715
|
string: { unit: "tekens", verb: "heeft" },
|
|
21122
20716
|
file: { unit: "bytes", verb: "heeft" },
|
|
@@ -21222,12 +20816,12 @@
|
|
|
21222
20816
|
};
|
|
21223
20817
|
function nl_default() {
|
|
21224
20818
|
return {
|
|
21225
|
-
localeError:
|
|
20819
|
+
localeError: error29()
|
|
21226
20820
|
};
|
|
21227
20821
|
}
|
|
21228
20822
|
|
|
21229
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
21230
|
-
var
|
|
20823
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/no.js
|
|
20824
|
+
var error30 = () => {
|
|
21231
20825
|
const Sizable = {
|
|
21232
20826
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
21233
20827
|
file: { unit: "bytes", verb: "\xE5 ha" },
|
|
@@ -21331,12 +20925,12 @@
|
|
|
21331
20925
|
};
|
|
21332
20926
|
function no_default() {
|
|
21333
20927
|
return {
|
|
21334
|
-
localeError:
|
|
20928
|
+
localeError: error30()
|
|
21335
20929
|
};
|
|
21336
20930
|
}
|
|
21337
20931
|
|
|
21338
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
21339
|
-
var
|
|
20932
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ota.js
|
|
20933
|
+
var error31 = () => {
|
|
21340
20934
|
const Sizable = {
|
|
21341
20935
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
21342
20936
|
file: { unit: "bayt", verb: "olmal\u0131d\u0131r" },
|
|
@@ -21441,12 +21035,12 @@
|
|
|
21441
21035
|
};
|
|
21442
21036
|
function ota_default() {
|
|
21443
21037
|
return {
|
|
21444
|
-
localeError:
|
|
21038
|
+
localeError: error31()
|
|
21445
21039
|
};
|
|
21446
21040
|
}
|
|
21447
21041
|
|
|
21448
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
21449
|
-
var
|
|
21042
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ps.js
|
|
21043
|
+
var error32 = () => {
|
|
21450
21044
|
const Sizable = {
|
|
21451
21045
|
string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
|
|
21452
21046
|
file: { unit: "\u0628\u0627\u06CC\u067C\u0633", verb: "\u0648\u0644\u0631\u064A" },
|
|
@@ -21556,12 +21150,12 @@
|
|
|
21556
21150
|
};
|
|
21557
21151
|
function ps_default() {
|
|
21558
21152
|
return {
|
|
21559
|
-
localeError:
|
|
21153
|
+
localeError: error32()
|
|
21560
21154
|
};
|
|
21561
21155
|
}
|
|
21562
21156
|
|
|
21563
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
21564
|
-
var
|
|
21157
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/pl.js
|
|
21158
|
+
var error33 = () => {
|
|
21565
21159
|
const Sizable = {
|
|
21566
21160
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
21567
21161
|
file: { unit: "bajt\xF3w", verb: "mie\u0107" },
|
|
@@ -21650,150 +21244,40 @@
|
|
|
21650
21244
|
return `Nieprawid\u0142ow(y/a/e) ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
21651
21245
|
}
|
|
21652
21246
|
case "not_multiple_of":
|
|
21653
|
-
return `Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${issue2.divisor}`;
|
|
21654
|
-
case "unrecognized_keys":
|
|
21655
|
-
return `Nierozpoznane klucze${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;
|
|
21656
|
-
case "invalid_key":
|
|
21657
|
-
return `Nieprawid\u0142owy klucz w ${issue2.origin}`;
|
|
21658
|
-
case "invalid_union":
|
|
21659
|
-
return "Nieprawid\u0142owe dane wej\u015Bciowe";
|
|
21660
|
-
case "invalid_element":
|
|
21661
|
-
return `Nieprawid\u0142owa warto\u015B\u0107 w ${issue2.origin}`;
|
|
21662
|
-
default:
|
|
21663
|
-
return `Nieprawid\u0142owe dane wej\u015Bciowe`;
|
|
21664
|
-
}
|
|
21665
|
-
};
|
|
21666
|
-
};
|
|
21667
|
-
function pl_default() {
|
|
21668
|
-
return {
|
|
21669
|
-
localeError: error35()
|
|
21670
|
-
};
|
|
21671
|
-
}
|
|
21672
|
-
|
|
21673
|
-
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/pt.js
|
|
21674
|
-
var error36 = () => {
|
|
21675
|
-
const Sizable = {
|
|
21676
|
-
string: { unit: "caracteres", verb: "ter" },
|
|
21677
|
-
file: { unit: "bytes", verb: "ter" },
|
|
21678
|
-
array: { unit: "itens", verb: "ter" },
|
|
21679
|
-
set: { unit: "itens", verb: "ter" }
|
|
21680
|
-
};
|
|
21681
|
-
function getSizing(origin) {
|
|
21682
|
-
return Sizable[origin] ?? null;
|
|
21683
|
-
}
|
|
21684
|
-
const FormatDictionary = {
|
|
21685
|
-
regex: "padr\xE3o",
|
|
21686
|
-
email: "endere\xE7o de e-mail",
|
|
21687
|
-
url: "URL",
|
|
21688
|
-
emoji: "emoji",
|
|
21689
|
-
uuid: "UUID",
|
|
21690
|
-
uuidv4: "UUIDv4",
|
|
21691
|
-
uuidv6: "UUIDv6",
|
|
21692
|
-
nanoid: "nanoid",
|
|
21693
|
-
guid: "GUID",
|
|
21694
|
-
cuid: "cuid",
|
|
21695
|
-
cuid2: "cuid2",
|
|
21696
|
-
ulid: "ULID",
|
|
21697
|
-
xid: "XID",
|
|
21698
|
-
ksuid: "KSUID",
|
|
21699
|
-
datetime: "data e hora ISO",
|
|
21700
|
-
date: "data ISO",
|
|
21701
|
-
time: "hora ISO",
|
|
21702
|
-
duration: "dura\xE7\xE3o ISO",
|
|
21703
|
-
ipv4: "endere\xE7o IPv4",
|
|
21704
|
-
ipv6: "endere\xE7o IPv6",
|
|
21705
|
-
cidrv4: "faixa de IPv4",
|
|
21706
|
-
cidrv6: "faixa de IPv6",
|
|
21707
|
-
base64: "texto codificado em base64",
|
|
21708
|
-
base64url: "URL codificada em base64",
|
|
21709
|
-
json_string: "texto JSON",
|
|
21710
|
-
e164: "n\xFAmero E.164",
|
|
21711
|
-
jwt: "JWT",
|
|
21712
|
-
template_literal: "entrada"
|
|
21713
|
-
};
|
|
21714
|
-
const TypeDictionary = {
|
|
21715
|
-
nan: "NaN",
|
|
21716
|
-
number: "n\xFAmero",
|
|
21717
|
-
null: "nulo"
|
|
21718
|
-
};
|
|
21719
|
-
return (issue2) => {
|
|
21720
|
-
switch (issue2.code) {
|
|
21721
|
-
case "invalid_type": {
|
|
21722
|
-
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
21723
|
-
const receivedType = parsedType(issue2.input);
|
|
21724
|
-
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
21725
|
-
if (/^[A-Z]/.test(issue2.expected)) {
|
|
21726
|
-
return `Tipo inv\xE1lido: esperado instanceof ${issue2.expected}, recebido ${received}`;
|
|
21727
|
-
}
|
|
21728
|
-
return `Tipo inv\xE1lido: esperado ${expected}, recebido ${received}`;
|
|
21729
|
-
}
|
|
21730
|
-
case "invalid_value":
|
|
21731
|
-
if (issue2.values.length === 1)
|
|
21732
|
-
return `Entrada inv\xE1lida: esperado ${stringifyPrimitive(issue2.values[0])}`;
|
|
21733
|
-
return `Op\xE7\xE3o inv\xE1lida: esperada uma das ${joinValues(issue2.values, "|")}`;
|
|
21734
|
-
case "too_big": {
|
|
21735
|
-
const adj = issue2.inclusive ? "<=" : "<";
|
|
21736
|
-
const sizing = getSizing(issue2.origin);
|
|
21737
|
-
if (sizing)
|
|
21738
|
-
return `Muito grande: esperado que ${issue2.origin ?? "valor"} tivesse ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementos"}`;
|
|
21739
|
-
return `Muito grande: esperado que ${issue2.origin ?? "valor"} fosse ${adj}${issue2.maximum.toString()}`;
|
|
21740
|
-
}
|
|
21741
|
-
case "too_small": {
|
|
21742
|
-
const adj = issue2.inclusive ? ">=" : ">";
|
|
21743
|
-
const sizing = getSizing(issue2.origin);
|
|
21744
|
-
if (sizing) {
|
|
21745
|
-
return `Muito pequeno: esperado que ${issue2.origin} tivesse ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
21746
|
-
}
|
|
21747
|
-
return `Muito pequeno: esperado que ${issue2.origin} fosse ${adj}${issue2.minimum.toString()}`;
|
|
21748
|
-
}
|
|
21749
|
-
case "invalid_format": {
|
|
21750
|
-
const _issue = issue2;
|
|
21751
|
-
if (_issue.format === "starts_with")
|
|
21752
|
-
return `Texto inv\xE1lido: deve come\xE7ar com "${_issue.prefix}"`;
|
|
21753
|
-
if (_issue.format === "ends_with")
|
|
21754
|
-
return `Texto inv\xE1lido: deve terminar com "${_issue.suffix}"`;
|
|
21755
|
-
if (_issue.format === "includes")
|
|
21756
|
-
return `Texto inv\xE1lido: deve incluir "${_issue.includes}"`;
|
|
21757
|
-
if (_issue.format === "regex")
|
|
21758
|
-
return `Texto inv\xE1lido: deve corresponder ao padr\xE3o ${_issue.pattern}`;
|
|
21759
|
-
return `${FormatDictionary[_issue.format] ?? issue2.format} inv\xE1lido`;
|
|
21760
|
-
}
|
|
21761
|
-
case "not_multiple_of":
|
|
21762
|
-
return `N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${issue2.divisor}`;
|
|
21247
|
+
return `Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${issue2.divisor}`;
|
|
21763
21248
|
case "unrecognized_keys":
|
|
21764
|
-
return `
|
|
21249
|
+
return `Nierozpoznane klucze${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;
|
|
21765
21250
|
case "invalid_key":
|
|
21766
|
-
return `
|
|
21251
|
+
return `Nieprawid\u0142owy klucz w ${issue2.origin}`;
|
|
21767
21252
|
case "invalid_union":
|
|
21768
|
-
return "
|
|
21253
|
+
return "Nieprawid\u0142owe dane wej\u015Bciowe";
|
|
21769
21254
|
case "invalid_element":
|
|
21770
|
-
return `
|
|
21255
|
+
return `Nieprawid\u0142owa warto\u015B\u0107 w ${issue2.origin}`;
|
|
21771
21256
|
default:
|
|
21772
|
-
return `
|
|
21257
|
+
return `Nieprawid\u0142owe dane wej\u015Bciowe`;
|
|
21773
21258
|
}
|
|
21774
21259
|
};
|
|
21775
21260
|
};
|
|
21776
|
-
function
|
|
21261
|
+
function pl_default() {
|
|
21777
21262
|
return {
|
|
21778
|
-
localeError:
|
|
21263
|
+
localeError: error33()
|
|
21779
21264
|
};
|
|
21780
21265
|
}
|
|
21781
21266
|
|
|
21782
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
21783
|
-
var
|
|
21267
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/pt.js
|
|
21268
|
+
var error34 = () => {
|
|
21784
21269
|
const Sizable = {
|
|
21785
|
-
string: { unit: "
|
|
21786
|
-
file: { unit: "
|
|
21787
|
-
array: { unit: "
|
|
21788
|
-
set: { unit: "
|
|
21789
|
-
map: { unit: "intr\u0103ri", verb: "s\u0103 aib\u0103" }
|
|
21270
|
+
string: { unit: "caracteres", verb: "ter" },
|
|
21271
|
+
file: { unit: "bytes", verb: "ter" },
|
|
21272
|
+
array: { unit: "itens", verb: "ter" },
|
|
21273
|
+
set: { unit: "itens", verb: "ter" }
|
|
21790
21274
|
};
|
|
21791
21275
|
function getSizing(origin) {
|
|
21792
21276
|
return Sizable[origin] ?? null;
|
|
21793
21277
|
}
|
|
21794
21278
|
const FormatDictionary = {
|
|
21795
|
-
regex: "
|
|
21796
|
-
email: "
|
|
21279
|
+
regex: "padr\xE3o",
|
|
21280
|
+
email: "endere\xE7o de e-mail",
|
|
21797
21281
|
url: "URL",
|
|
21798
21282
|
emoji: "emoji",
|
|
21799
21283
|
uuid: "UUID",
|
|
@@ -21806,37 +21290,25 @@
|
|
|
21806
21290
|
ulid: "ULID",
|
|
21807
21291
|
xid: "XID",
|
|
21808
21292
|
ksuid: "KSUID",
|
|
21809
|
-
datetime: "
|
|
21810
|
-
date: "
|
|
21811
|
-
time: "
|
|
21812
|
-
duration: "
|
|
21813
|
-
ipv4: "
|
|
21814
|
-
ipv6: "
|
|
21815
|
-
|
|
21816
|
-
|
|
21817
|
-
|
|
21818
|
-
|
|
21819
|
-
|
|
21820
|
-
|
|
21821
|
-
e164: "num\u0103r E.164",
|
|
21293
|
+
datetime: "data e hora ISO",
|
|
21294
|
+
date: "data ISO",
|
|
21295
|
+
time: "hora ISO",
|
|
21296
|
+
duration: "dura\xE7\xE3o ISO",
|
|
21297
|
+
ipv4: "endere\xE7o IPv4",
|
|
21298
|
+
ipv6: "endere\xE7o IPv6",
|
|
21299
|
+
cidrv4: "faixa de IPv4",
|
|
21300
|
+
cidrv6: "faixa de IPv6",
|
|
21301
|
+
base64: "texto codificado em base64",
|
|
21302
|
+
base64url: "URL codificada em base64",
|
|
21303
|
+
json_string: "texto JSON",
|
|
21304
|
+
e164: "n\xFAmero E.164",
|
|
21822
21305
|
jwt: "JWT",
|
|
21823
|
-
template_literal: "
|
|
21306
|
+
template_literal: "entrada"
|
|
21824
21307
|
};
|
|
21825
21308
|
const TypeDictionary = {
|
|
21826
21309
|
nan: "NaN",
|
|
21827
|
-
|
|
21828
|
-
|
|
21829
|
-
boolean: "boolean",
|
|
21830
|
-
function: "func\u021Bie",
|
|
21831
|
-
array: "matrice",
|
|
21832
|
-
object: "obiect",
|
|
21833
|
-
undefined: "nedefinit",
|
|
21834
|
-
symbol: "simbol",
|
|
21835
|
-
bigint: "num\u0103r mare",
|
|
21836
|
-
void: "void",
|
|
21837
|
-
never: "never",
|
|
21838
|
-
map: "hart\u0103",
|
|
21839
|
-
set: "set"
|
|
21310
|
+
number: "n\xFAmero",
|
|
21311
|
+
null: "nulo"
|
|
21840
21312
|
};
|
|
21841
21313
|
return (issue2) => {
|
|
21842
21314
|
switch (issue2.code) {
|
|
@@ -21844,62 +21316,64 @@
|
|
|
21844
21316
|
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
21845
21317
|
const receivedType = parsedType(issue2.input);
|
|
21846
21318
|
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
21847
|
-
|
|
21319
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
21320
|
+
return `Tipo inv\xE1lido: esperado instanceof ${issue2.expected}, recebido ${received}`;
|
|
21321
|
+
}
|
|
21322
|
+
return `Tipo inv\xE1lido: esperado ${expected}, recebido ${received}`;
|
|
21848
21323
|
}
|
|
21849
21324
|
case "invalid_value":
|
|
21850
21325
|
if (issue2.values.length === 1)
|
|
21851
|
-
return `
|
|
21852
|
-
return `Op\
|
|
21326
|
+
return `Entrada inv\xE1lida: esperado ${stringifyPrimitive(issue2.values[0])}`;
|
|
21327
|
+
return `Op\xE7\xE3o inv\xE1lida: esperada uma das ${joinValues(issue2.values, "|")}`;
|
|
21853
21328
|
case "too_big": {
|
|
21854
21329
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
21855
21330
|
const sizing = getSizing(issue2.origin);
|
|
21856
21331
|
if (sizing)
|
|
21857
|
-
return `
|
|
21858
|
-
return `
|
|
21332
|
+
return `Muito grande: esperado que ${issue2.origin ?? "valor"} tivesse ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementos"}`;
|
|
21333
|
+
return `Muito grande: esperado que ${issue2.origin ?? "valor"} fosse ${adj}${issue2.maximum.toString()}`;
|
|
21859
21334
|
}
|
|
21860
21335
|
case "too_small": {
|
|
21861
21336
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
21862
21337
|
const sizing = getSizing(issue2.origin);
|
|
21863
21338
|
if (sizing) {
|
|
21864
|
-
return `
|
|
21339
|
+
return `Muito pequeno: esperado que ${issue2.origin} tivesse ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
21865
21340
|
}
|
|
21866
|
-
return `
|
|
21341
|
+
return `Muito pequeno: esperado que ${issue2.origin} fosse ${adj}${issue2.minimum.toString()}`;
|
|
21867
21342
|
}
|
|
21868
21343
|
case "invalid_format": {
|
|
21869
21344
|
const _issue = issue2;
|
|
21870
|
-
if (_issue.format === "starts_with")
|
|
21871
|
-
return
|
|
21872
|
-
}
|
|
21345
|
+
if (_issue.format === "starts_with")
|
|
21346
|
+
return `Texto inv\xE1lido: deve come\xE7ar com "${_issue.prefix}"`;
|
|
21873
21347
|
if (_issue.format === "ends_with")
|
|
21874
|
-
return
|
|
21348
|
+
return `Texto inv\xE1lido: deve terminar com "${_issue.suffix}"`;
|
|
21875
21349
|
if (_issue.format === "includes")
|
|
21876
|
-
return
|
|
21350
|
+
return `Texto inv\xE1lido: deve incluir "${_issue.includes}"`;
|
|
21877
21351
|
if (_issue.format === "regex")
|
|
21878
|
-
return
|
|
21879
|
-
return
|
|
21352
|
+
return `Texto inv\xE1lido: deve corresponder ao padr\xE3o ${_issue.pattern}`;
|
|
21353
|
+
return `${FormatDictionary[_issue.format] ?? issue2.format} inv\xE1lido`;
|
|
21880
21354
|
}
|
|
21881
21355
|
case "not_multiple_of":
|
|
21882
|
-
return `
|
|
21356
|
+
return `N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${issue2.divisor}`;
|
|
21883
21357
|
case "unrecognized_keys":
|
|
21884
|
-
return `
|
|
21358
|
+
return `Chave${issue2.keys.length > 1 ? "s" : ""} desconhecida${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;
|
|
21885
21359
|
case "invalid_key":
|
|
21886
|
-
return `
|
|
21360
|
+
return `Chave inv\xE1lida em ${issue2.origin}`;
|
|
21887
21361
|
case "invalid_union":
|
|
21888
|
-
return "
|
|
21362
|
+
return "Entrada inv\xE1lida";
|
|
21889
21363
|
case "invalid_element":
|
|
21890
|
-
return `
|
|
21364
|
+
return `Valor inv\xE1lido em ${issue2.origin}`;
|
|
21891
21365
|
default:
|
|
21892
|
-
return `
|
|
21366
|
+
return `Campo inv\xE1lido`;
|
|
21893
21367
|
}
|
|
21894
21368
|
};
|
|
21895
21369
|
};
|
|
21896
|
-
function
|
|
21370
|
+
function pt_default() {
|
|
21897
21371
|
return {
|
|
21898
|
-
localeError:
|
|
21372
|
+
localeError: error34()
|
|
21899
21373
|
};
|
|
21900
21374
|
}
|
|
21901
21375
|
|
|
21902
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
21376
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ru.js
|
|
21903
21377
|
function getRussianPlural(count, one, few, many) {
|
|
21904
21378
|
const absCount = Math.abs(count);
|
|
21905
21379
|
const lastDigit = absCount % 10;
|
|
@@ -21915,7 +21389,7 @@
|
|
|
21915
21389
|
}
|
|
21916
21390
|
return many;
|
|
21917
21391
|
}
|
|
21918
|
-
var
|
|
21392
|
+
var error35 = () => {
|
|
21919
21393
|
const Sizable = {
|
|
21920
21394
|
string: {
|
|
21921
21395
|
unit: {
|
|
@@ -22052,12 +21526,12 @@
|
|
|
22052
21526
|
};
|
|
22053
21527
|
function ru_default() {
|
|
22054
21528
|
return {
|
|
22055
|
-
localeError:
|
|
21529
|
+
localeError: error35()
|
|
22056
21530
|
};
|
|
22057
21531
|
}
|
|
22058
21532
|
|
|
22059
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
22060
|
-
var
|
|
21533
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/sl.js
|
|
21534
|
+
var error36 = () => {
|
|
22061
21535
|
const Sizable = {
|
|
22062
21536
|
string: { unit: "znakov", verb: "imeti" },
|
|
22063
21537
|
file: { unit: "bajtov", verb: "imeti" },
|
|
@@ -22162,12 +21636,12 @@
|
|
|
22162
21636
|
};
|
|
22163
21637
|
function sl_default() {
|
|
22164
21638
|
return {
|
|
22165
|
-
localeError:
|
|
21639
|
+
localeError: error36()
|
|
22166
21640
|
};
|
|
22167
21641
|
}
|
|
22168
21642
|
|
|
22169
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
22170
|
-
var
|
|
21643
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/sv.js
|
|
21644
|
+
var error37 = () => {
|
|
22171
21645
|
const Sizable = {
|
|
22172
21646
|
string: { unit: "tecken", verb: "att ha" },
|
|
22173
21647
|
file: { unit: "bytes", verb: "att ha" },
|
|
@@ -22273,12 +21747,12 @@
|
|
|
22273
21747
|
};
|
|
22274
21748
|
function sv_default() {
|
|
22275
21749
|
return {
|
|
22276
|
-
localeError:
|
|
21750
|
+
localeError: error37()
|
|
22277
21751
|
};
|
|
22278
21752
|
}
|
|
22279
21753
|
|
|
22280
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
22281
|
-
var
|
|
21754
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ta.js
|
|
21755
|
+
var error38 = () => {
|
|
22282
21756
|
const Sizable = {
|
|
22283
21757
|
string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
|
|
22284
21758
|
file: { unit: "\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
|
|
@@ -22384,12 +21858,12 @@
|
|
|
22384
21858
|
};
|
|
22385
21859
|
function ta_default() {
|
|
22386
21860
|
return {
|
|
22387
|
-
localeError:
|
|
21861
|
+
localeError: error38()
|
|
22388
21862
|
};
|
|
22389
21863
|
}
|
|
22390
21864
|
|
|
22391
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
22392
|
-
var
|
|
21865
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/th.js
|
|
21866
|
+
var error39 = () => {
|
|
22393
21867
|
const Sizable = {
|
|
22394
21868
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
22395
21869
|
file: { unit: "\u0E44\u0E1A\u0E15\u0E4C", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
@@ -22495,12 +21969,12 @@
|
|
|
22495
21969
|
};
|
|
22496
21970
|
function th_default() {
|
|
22497
21971
|
return {
|
|
22498
|
-
localeError:
|
|
21972
|
+
localeError: error39()
|
|
22499
21973
|
};
|
|
22500
21974
|
}
|
|
22501
21975
|
|
|
22502
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
22503
|
-
var
|
|
21976
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/tr.js
|
|
21977
|
+
var error40 = () => {
|
|
22504
21978
|
const Sizable = {
|
|
22505
21979
|
string: { unit: "karakter", verb: "olmal\u0131" },
|
|
22506
21980
|
file: { unit: "bayt", verb: "olmal\u0131" },
|
|
@@ -22601,12 +22075,12 @@
|
|
|
22601
22075
|
};
|
|
22602
22076
|
function tr_default() {
|
|
22603
22077
|
return {
|
|
22604
|
-
localeError:
|
|
22078
|
+
localeError: error40()
|
|
22605
22079
|
};
|
|
22606
22080
|
}
|
|
22607
22081
|
|
|
22608
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
22609
|
-
var
|
|
22082
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/uk.js
|
|
22083
|
+
var error41 = () => {
|
|
22610
22084
|
const Sizable = {
|
|
22611
22085
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
22612
22086
|
file: { unit: "\u0431\u0430\u0439\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
@@ -22710,17 +22184,17 @@
|
|
|
22710
22184
|
};
|
|
22711
22185
|
function uk_default() {
|
|
22712
22186
|
return {
|
|
22713
|
-
localeError:
|
|
22187
|
+
localeError: error41()
|
|
22714
22188
|
};
|
|
22715
22189
|
}
|
|
22716
22190
|
|
|
22717
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
22191
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ua.js
|
|
22718
22192
|
function ua_default() {
|
|
22719
22193
|
return uk_default();
|
|
22720
22194
|
}
|
|
22721
22195
|
|
|
22722
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
22723
|
-
var
|
|
22196
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ur.js
|
|
22197
|
+
var error42 = () => {
|
|
22724
22198
|
const Sizable = {
|
|
22725
22199
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
22726
22200
|
file: { unit: "\u0628\u0627\u0626\u0679\u0633", verb: "\u06C1\u0648\u0646\u0627" },
|
|
@@ -22826,18 +22300,17 @@
|
|
|
22826
22300
|
};
|
|
22827
22301
|
function ur_default() {
|
|
22828
22302
|
return {
|
|
22829
|
-
localeError:
|
|
22303
|
+
localeError: error42()
|
|
22830
22304
|
};
|
|
22831
22305
|
}
|
|
22832
22306
|
|
|
22833
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
22834
|
-
var
|
|
22307
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/uz.js
|
|
22308
|
+
var error43 = () => {
|
|
22835
22309
|
const Sizable = {
|
|
22836
22310
|
string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
|
|
22837
22311
|
file: { unit: "bayt", verb: "bo\u2018lishi kerak" },
|
|
22838
22312
|
array: { unit: "element", verb: "bo\u2018lishi kerak" },
|
|
22839
|
-
set: { unit: "element", verb: "bo\u2018lishi kerak" }
|
|
22840
|
-
map: { unit: "yozuv", verb: "bo\u2018lishi kerak" }
|
|
22313
|
+
set: { unit: "element", verb: "bo\u2018lishi kerak" }
|
|
22841
22314
|
};
|
|
22842
22315
|
function getSizing(origin) {
|
|
22843
22316
|
return Sizable[origin] ?? null;
|
|
@@ -22937,12 +22410,12 @@
|
|
|
22937
22410
|
};
|
|
22938
22411
|
function uz_default() {
|
|
22939
22412
|
return {
|
|
22940
|
-
localeError:
|
|
22413
|
+
localeError: error43()
|
|
22941
22414
|
};
|
|
22942
22415
|
}
|
|
22943
22416
|
|
|
22944
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
22945
|
-
var
|
|
22417
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/vi.js
|
|
22418
|
+
var error44 = () => {
|
|
22946
22419
|
const Sizable = {
|
|
22947
22420
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
22948
22421
|
file: { unit: "byte", verb: "c\xF3" },
|
|
@@ -23046,12 +22519,12 @@
|
|
|
23046
22519
|
};
|
|
23047
22520
|
function vi_default() {
|
|
23048
22521
|
return {
|
|
23049
|
-
localeError:
|
|
22522
|
+
localeError: error44()
|
|
23050
22523
|
};
|
|
23051
22524
|
}
|
|
23052
22525
|
|
|
23053
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
23054
|
-
var
|
|
22526
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/zh-CN.js
|
|
22527
|
+
var error45 = () => {
|
|
23055
22528
|
const Sizable = {
|
|
23056
22529
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
23057
22530
|
file: { unit: "\u5B57\u8282", verb: "\u5305\u542B" },
|
|
@@ -23156,12 +22629,12 @@
|
|
|
23156
22629
|
};
|
|
23157
22630
|
function zh_CN_default() {
|
|
23158
22631
|
return {
|
|
23159
|
-
localeError:
|
|
22632
|
+
localeError: error45()
|
|
23160
22633
|
};
|
|
23161
22634
|
}
|
|
23162
22635
|
|
|
23163
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
23164
|
-
var
|
|
22636
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/zh-TW.js
|
|
22637
|
+
var error46 = () => {
|
|
23165
22638
|
const Sizable = {
|
|
23166
22639
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
23167
22640
|
file: { unit: "\u4F4D\u5143\u7D44", verb: "\u64C1\u6709" },
|
|
@@ -23264,12 +22737,12 @@
|
|
|
23264
22737
|
};
|
|
23265
22738
|
function zh_TW_default() {
|
|
23266
22739
|
return {
|
|
23267
|
-
localeError:
|
|
22740
|
+
localeError: error46()
|
|
23268
22741
|
};
|
|
23269
22742
|
}
|
|
23270
22743
|
|
|
23271
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
23272
|
-
var
|
|
22744
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/yo.js
|
|
22745
|
+
var error47 = () => {
|
|
23273
22746
|
const Sizable = {
|
|
23274
22747
|
string: { unit: "\xE0mi", verb: "n\xED" },
|
|
23275
22748
|
file: { unit: "bytes", verb: "n\xED" },
|
|
@@ -23372,12 +22845,12 @@
|
|
|
23372
22845
|
};
|
|
23373
22846
|
function yo_default() {
|
|
23374
22847
|
return {
|
|
23375
|
-
localeError:
|
|
22848
|
+
localeError: error47()
|
|
23376
22849
|
};
|
|
23377
22850
|
}
|
|
23378
22851
|
|
|
23379
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
23380
|
-
var
|
|
22852
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
|
|
22853
|
+
var _a;
|
|
23381
22854
|
var $output = /* @__PURE__ */ Symbol("ZodOutput");
|
|
23382
22855
|
var $input = /* @__PURE__ */ Symbol("ZodInput");
|
|
23383
22856
|
var $ZodRegistry = class {
|
|
@@ -23423,10 +22896,10 @@
|
|
|
23423
22896
|
function registry() {
|
|
23424
22897
|
return new $ZodRegistry();
|
|
23425
22898
|
}
|
|
23426
|
-
(
|
|
22899
|
+
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
23427
22900
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
23428
22901
|
|
|
23429
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
22902
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js
|
|
23430
22903
|
// @__NO_SIDE_EFFECTS__
|
|
23431
22904
|
function _string(Class2, params) {
|
|
23432
22905
|
return new Class2({
|
|
@@ -24018,12 +23491,12 @@
|
|
|
24018
23491
|
});
|
|
24019
23492
|
}
|
|
24020
23493
|
// @__NO_SIDE_EFFECTS__
|
|
24021
|
-
function _regex(
|
|
23494
|
+
function _regex(pattern2, params) {
|
|
24022
23495
|
return new $ZodCheckRegex({
|
|
24023
23496
|
check: "string_format",
|
|
24024
23497
|
format: "regex",
|
|
24025
23498
|
...normalizeParams(params),
|
|
24026
|
-
pattern
|
|
23499
|
+
pattern: pattern2
|
|
24027
23500
|
});
|
|
24028
23501
|
}
|
|
24029
23502
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -24341,7 +23814,7 @@
|
|
|
24341
23814
|
return schema;
|
|
24342
23815
|
}
|
|
24343
23816
|
// @__NO_SIDE_EFFECTS__
|
|
24344
|
-
function _superRefine(fn
|
|
23817
|
+
function _superRefine(fn) {
|
|
24345
23818
|
const ch = /* @__PURE__ */ _check((payload) => {
|
|
24346
23819
|
payload.addIssue = (issue2) => {
|
|
24347
23820
|
if (typeof issue2 === "string") {
|
|
@@ -24358,7 +23831,7 @@
|
|
|
24358
23831
|
}
|
|
24359
23832
|
};
|
|
24360
23833
|
return fn(payload.value, payload);
|
|
24361
|
-
}
|
|
23834
|
+
});
|
|
24362
23835
|
return ch;
|
|
24363
23836
|
}
|
|
24364
23837
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -24465,7 +23938,7 @@
|
|
|
24465
23938
|
return inst;
|
|
24466
23939
|
}
|
|
24467
23940
|
|
|
24468
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
23941
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
|
|
24469
23942
|
function initializeContext(params) {
|
|
24470
23943
|
let target = params?.target ?? "draft-2020-12";
|
|
24471
23944
|
if (target === "draft-4")
|
|
@@ -24488,7 +23961,7 @@
|
|
|
24488
23961
|
};
|
|
24489
23962
|
}
|
|
24490
23963
|
function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
24491
|
-
var
|
|
23964
|
+
var _a2;
|
|
24492
23965
|
const def = schema._zod.def;
|
|
24493
23966
|
const seen = ctx.seen.get(schema);
|
|
24494
23967
|
if (seen) {
|
|
@@ -24535,8 +24008,8 @@
|
|
|
24535
24008
|
delete result.schema.examples;
|
|
24536
24009
|
delete result.schema.default;
|
|
24537
24010
|
}
|
|
24538
|
-
if (ctx.io === "input" &&
|
|
24539
|
-
(
|
|
24011
|
+
if (ctx.io === "input" && result.schema._prefault)
|
|
24012
|
+
(_a2 = result.schema).default ?? (_a2.default = result.schema._prefault);
|
|
24540
24013
|
delete result.schema._prefault;
|
|
24541
24014
|
const _result = ctx.seen.get(schema);
|
|
24542
24015
|
return _result.schema;
|
|
@@ -24715,15 +24188,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
24715
24188
|
result.$id = ctx.external.uri(id);
|
|
24716
24189
|
}
|
|
24717
24190
|
Object.assign(result, root.def ?? root.schema);
|
|
24718
|
-
const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
|
|
24719
|
-
if (rootMetaId !== void 0 && result.id === rootMetaId)
|
|
24720
|
-
delete result.id;
|
|
24721
24191
|
const defs = ctx.external?.defs ?? {};
|
|
24722
24192
|
for (const entry of ctx.seen.entries()) {
|
|
24723
24193
|
const seen = entry[1];
|
|
24724
24194
|
if (seen.def && seen.defId) {
|
|
24725
|
-
if (seen.def.id === seen.defId)
|
|
24726
|
-
delete seen.def.id;
|
|
24727
24195
|
defs[seen.defId] = seen.def;
|
|
24728
24196
|
}
|
|
24729
24197
|
}
|
|
@@ -24778,8 +24246,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
24778
24246
|
return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
|
|
24779
24247
|
}
|
|
24780
24248
|
if (def.type === "pipe") {
|
|
24781
|
-
if (_schema._zod.traits.has("$ZodCodec"))
|
|
24782
|
-
return true;
|
|
24783
24249
|
return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
|
|
24784
24250
|
}
|
|
24785
24251
|
if (def.type === "object") {
|
|
@@ -24821,7 +24287,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
24821
24287
|
return finalize(ctx, schema);
|
|
24822
24288
|
};
|
|
24823
24289
|
|
|
24824
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
24290
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js
|
|
24825
24291
|
var formatMap = {
|
|
24826
24292
|
guid: "uuid",
|
|
24827
24293
|
url: "uri",
|
|
@@ -24869,28 +24335,39 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
24869
24335
|
json2.type = "integer";
|
|
24870
24336
|
else
|
|
24871
24337
|
json2.type = "number";
|
|
24872
|
-
|
|
24873
|
-
|
|
24874
|
-
const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
|
|
24875
|
-
if (exMin) {
|
|
24876
|
-
if (legacy) {
|
|
24338
|
+
if (typeof exclusiveMinimum === "number") {
|
|
24339
|
+
if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
|
|
24877
24340
|
json2.minimum = exclusiveMinimum;
|
|
24878
24341
|
json2.exclusiveMinimum = true;
|
|
24879
24342
|
} else {
|
|
24880
24343
|
json2.exclusiveMinimum = exclusiveMinimum;
|
|
24881
24344
|
}
|
|
24882
|
-
}
|
|
24345
|
+
}
|
|
24346
|
+
if (typeof minimum === "number") {
|
|
24883
24347
|
json2.minimum = minimum;
|
|
24348
|
+
if (typeof exclusiveMinimum === "number" && ctx.target !== "draft-04") {
|
|
24349
|
+
if (exclusiveMinimum >= minimum)
|
|
24350
|
+
delete json2.minimum;
|
|
24351
|
+
else
|
|
24352
|
+
delete json2.exclusiveMinimum;
|
|
24353
|
+
}
|
|
24884
24354
|
}
|
|
24885
|
-
if (
|
|
24886
|
-
if (
|
|
24355
|
+
if (typeof exclusiveMaximum === "number") {
|
|
24356
|
+
if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
|
|
24887
24357
|
json2.maximum = exclusiveMaximum;
|
|
24888
24358
|
json2.exclusiveMaximum = true;
|
|
24889
24359
|
} else {
|
|
24890
24360
|
json2.exclusiveMaximum = exclusiveMaximum;
|
|
24891
24361
|
}
|
|
24892
|
-
}
|
|
24362
|
+
}
|
|
24363
|
+
if (typeof maximum === "number") {
|
|
24893
24364
|
json2.maximum = maximum;
|
|
24365
|
+
if (typeof exclusiveMaximum === "number" && ctx.target !== "draft-04") {
|
|
24366
|
+
if (exclusiveMaximum <= maximum)
|
|
24367
|
+
delete json2.maximum;
|
|
24368
|
+
else
|
|
24369
|
+
delete json2.exclusiveMaximum;
|
|
24370
|
+
}
|
|
24894
24371
|
}
|
|
24895
24372
|
if (typeof multipleOf === "number")
|
|
24896
24373
|
json2.multipleOf = multipleOf;
|
|
@@ -24993,11 +24470,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
24993
24470
|
};
|
|
24994
24471
|
var templateLiteralProcessor = (schema, _ctx, json2, _params) => {
|
|
24995
24472
|
const _json = json2;
|
|
24996
|
-
const
|
|
24997
|
-
if (!
|
|
24473
|
+
const pattern2 = schema._zod.pattern;
|
|
24474
|
+
if (!pattern2)
|
|
24998
24475
|
throw new Error("Pattern not found in template literal");
|
|
24999
24476
|
_json.type = "string";
|
|
25000
|
-
_json.pattern =
|
|
24477
|
+
_json.pattern = pattern2.source;
|
|
25001
24478
|
};
|
|
25002
24479
|
var fileProcessor = (schema, _ctx, json2, _params) => {
|
|
25003
24480
|
const _json = json2;
|
|
@@ -25060,10 +24537,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25060
24537
|
if (typeof maximum === "number")
|
|
25061
24538
|
json2.maxItems = maximum;
|
|
25062
24539
|
json2.type = "array";
|
|
25063
|
-
json2.items = process2(def.element, ctx, {
|
|
25064
|
-
...params,
|
|
25065
|
-
path: [...params.path, "items"]
|
|
25066
|
-
});
|
|
24540
|
+
json2.items = process2(def.element, ctx, { ...params, path: [...params.path, "items"] });
|
|
25067
24541
|
};
|
|
25068
24542
|
var objectProcessor = (schema, ctx, _json, params) => {
|
|
25069
24543
|
const json2 = _json;
|
|
@@ -25186,8 +24660,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25186
24660
|
path: [...params.path, "patternProperties", "*"]
|
|
25187
24661
|
});
|
|
25188
24662
|
json2.patternProperties = {};
|
|
25189
|
-
for (const
|
|
25190
|
-
json2.patternProperties[
|
|
24663
|
+
for (const pattern2 of patterns) {
|
|
24664
|
+
json2.patternProperties[pattern2.source] = valueSchema;
|
|
25191
24665
|
}
|
|
25192
24666
|
} else {
|
|
25193
24667
|
if (ctx.target === "draft-07" || ctx.target === "draft-2020-12") {
|
|
@@ -25256,8 +24730,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25256
24730
|
};
|
|
25257
24731
|
var pipeProcessor = (schema, ctx, _json, params) => {
|
|
25258
24732
|
const def = schema._zod.def;
|
|
25259
|
-
const
|
|
25260
|
-
const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
|
|
24733
|
+
const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
|
|
25261
24734
|
process2(innerType, ctx, params);
|
|
25262
24735
|
const seen = ctx.seen.get(schema);
|
|
25263
24736
|
seen.ref = innerType;
|
|
@@ -25363,7 +24836,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25363
24836
|
return finalize(ctx, input);
|
|
25364
24837
|
}
|
|
25365
24838
|
|
|
25366
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
24839
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-generator.js
|
|
25367
24840
|
var JSONSchemaGenerator = class {
|
|
25368
24841
|
/** @deprecated Access via ctx instead */
|
|
25369
24842
|
get metadataRegistry() {
|
|
@@ -25438,10 +24911,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25438
24911
|
}
|
|
25439
24912
|
};
|
|
25440
24913
|
|
|
25441
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
24914
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema.js
|
|
25442
24915
|
var json_schema_exports = {};
|
|
25443
24916
|
|
|
25444
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
24917
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
|
|
25445
24918
|
var schemas_exports2 = {};
|
|
25446
24919
|
__export(schemas_exports2, {
|
|
25447
24920
|
ZodAny: () => ZodAny,
|
|
@@ -25491,7 +24964,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25491
24964
|
ZodOptional: () => ZodOptional,
|
|
25492
24965
|
ZodPipe: () => ZodPipe,
|
|
25493
24966
|
ZodPrefault: () => ZodPrefault,
|
|
25494
|
-
ZodPreprocess: () => ZodPreprocess,
|
|
25495
24967
|
ZodPromise: () => ZodPromise,
|
|
25496
24968
|
ZodReadonly: () => ZodReadonly,
|
|
25497
24969
|
ZodRecord: () => ZodRecord,
|
|
@@ -25552,7 +25024,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25552
25024
|
int32: () => int32,
|
|
25553
25025
|
int64: () => int64,
|
|
25554
25026
|
intersection: () => intersection,
|
|
25555
|
-
invertCodec: () => invertCodec,
|
|
25556
25027
|
ipv4: () => ipv42,
|
|
25557
25028
|
ipv6: () => ipv62,
|
|
25558
25029
|
json: () => json,
|
|
@@ -25612,7 +25083,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25612
25083
|
xor: () => xor
|
|
25613
25084
|
});
|
|
25614
25085
|
|
|
25615
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
25086
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/checks.js
|
|
25616
25087
|
var checks_exports2 = {};
|
|
25617
25088
|
__export(checks_exports2, {
|
|
25618
25089
|
endsWith: () => _endsWith,
|
|
@@ -25646,7 +25117,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25646
25117
|
uppercase: () => _uppercase
|
|
25647
25118
|
});
|
|
25648
25119
|
|
|
25649
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
25120
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/iso.js
|
|
25650
25121
|
var iso_exports = {};
|
|
25651
25122
|
__export(iso_exports, {
|
|
25652
25123
|
ZodISODate: () => ZodISODate,
|
|
@@ -25687,7 +25158,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25687
25158
|
return _isoDuration(ZodISODuration, params);
|
|
25688
25159
|
}
|
|
25689
25160
|
|
|
25690
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
25161
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.js
|
|
25691
25162
|
var initializer2 = (inst, issues) => {
|
|
25692
25163
|
$ZodError.init(inst, issues);
|
|
25693
25164
|
inst.name = "ZodError";
|
|
@@ -25722,12 +25193,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25722
25193
|
}
|
|
25723
25194
|
});
|
|
25724
25195
|
};
|
|
25725
|
-
var ZodError =
|
|
25726
|
-
var ZodRealError =
|
|
25196
|
+
var ZodError = $constructor("ZodError", initializer2);
|
|
25197
|
+
var ZodRealError = $constructor("ZodError", initializer2, {
|
|
25727
25198
|
Parent: Error
|
|
25728
25199
|
});
|
|
25729
25200
|
|
|
25730
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
25201
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/parse.js
|
|
25731
25202
|
var parse2 = /* @__PURE__ */ _parse(ZodRealError);
|
|
25732
25203
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
25733
25204
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -25741,44 +25212,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25741
25212
|
var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
25742
25213
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
25743
25214
|
|
|
25744
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
25745
|
-
var _installedGroups = /* @__PURE__ */ new WeakMap();
|
|
25746
|
-
function _installLazyMethods(inst, group, methods) {
|
|
25747
|
-
const proto = Object.getPrototypeOf(inst);
|
|
25748
|
-
let installed = _installedGroups.get(proto);
|
|
25749
|
-
if (!installed) {
|
|
25750
|
-
installed = /* @__PURE__ */ new Set();
|
|
25751
|
-
_installedGroups.set(proto, installed);
|
|
25752
|
-
}
|
|
25753
|
-
if (installed.has(group))
|
|
25754
|
-
return;
|
|
25755
|
-
installed.add(group);
|
|
25756
|
-
for (const key in methods) {
|
|
25757
|
-
const fn = methods[key];
|
|
25758
|
-
Object.defineProperty(proto, key, {
|
|
25759
|
-
configurable: true,
|
|
25760
|
-
enumerable: false,
|
|
25761
|
-
get() {
|
|
25762
|
-
const bound = fn.bind(this);
|
|
25763
|
-
Object.defineProperty(this, key, {
|
|
25764
|
-
configurable: true,
|
|
25765
|
-
writable: true,
|
|
25766
|
-
enumerable: true,
|
|
25767
|
-
value: bound
|
|
25768
|
-
});
|
|
25769
|
-
return bound;
|
|
25770
|
-
},
|
|
25771
|
-
set(v2) {
|
|
25772
|
-
Object.defineProperty(this, key, {
|
|
25773
|
-
configurable: true,
|
|
25774
|
-
writable: true,
|
|
25775
|
-
enumerable: true,
|
|
25776
|
-
value: v2
|
|
25777
|
-
});
|
|
25778
|
-
}
|
|
25779
|
-
});
|
|
25780
|
-
}
|
|
25781
|
-
}
|
|
25215
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
|
|
25782
25216
|
var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
25783
25217
|
$ZodType.init(inst, def);
|
|
25784
25218
|
Object.assign(inst["~standard"], {
|
|
@@ -25791,6 +25225,23 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25791
25225
|
inst.def = def;
|
|
25792
25226
|
inst.type = def.type;
|
|
25793
25227
|
Object.defineProperty(inst, "_def", { value: def });
|
|
25228
|
+
inst.check = (...checks) => {
|
|
25229
|
+
return inst.clone(util_exports.mergeDefs(def, {
|
|
25230
|
+
checks: [
|
|
25231
|
+
...def.checks ?? [],
|
|
25232
|
+
...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
25233
|
+
]
|
|
25234
|
+
}), {
|
|
25235
|
+
parent: true
|
|
25236
|
+
});
|
|
25237
|
+
};
|
|
25238
|
+
inst.with = inst.check;
|
|
25239
|
+
inst.clone = (def2, params) => clone(inst, def2, params);
|
|
25240
|
+
inst.brand = () => inst;
|
|
25241
|
+
inst.register = ((reg, meta3) => {
|
|
25242
|
+
reg.add(inst, meta3);
|
|
25243
|
+
return inst;
|
|
25244
|
+
});
|
|
25794
25245
|
inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse });
|
|
25795
25246
|
inst.safeParse = (data, params) => safeParse2(inst, data, params);
|
|
25796
25247
|
inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
|
|
@@ -25804,108 +25255,45 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25804
25255
|
inst.safeDecode = (data, params) => safeDecode2(inst, data, params);
|
|
25805
25256
|
inst.safeEncodeAsync = async (data, params) => safeEncodeAsync2(inst, data, params);
|
|
25806
25257
|
inst.safeDecodeAsync = async (data, params) => safeDecodeAsync2(inst, data, params);
|
|
25807
|
-
|
|
25808
|
-
|
|
25809
|
-
|
|
25810
|
-
|
|
25811
|
-
|
|
25812
|
-
|
|
25813
|
-
|
|
25814
|
-
|
|
25815
|
-
|
|
25816
|
-
|
|
25817
|
-
|
|
25818
|
-
|
|
25819
|
-
|
|
25820
|
-
|
|
25821
|
-
|
|
25822
|
-
|
|
25823
|
-
|
|
25824
|
-
|
|
25825
|
-
|
|
25826
|
-
|
|
25827
|
-
|
|
25828
|
-
|
|
25829
|
-
},
|
|
25830
|
-
refine(check2, params) {
|
|
25831
|
-
return this.check(refine(check2, params));
|
|
25832
|
-
},
|
|
25833
|
-
superRefine(refinement, params) {
|
|
25834
|
-
return this.check(superRefine(refinement, params));
|
|
25835
|
-
},
|
|
25836
|
-
overwrite(fn) {
|
|
25837
|
-
return this.check(_overwrite(fn));
|
|
25838
|
-
},
|
|
25839
|
-
optional() {
|
|
25840
|
-
return optional(this);
|
|
25841
|
-
},
|
|
25842
|
-
exactOptional() {
|
|
25843
|
-
return exactOptional(this);
|
|
25844
|
-
},
|
|
25845
|
-
nullable() {
|
|
25846
|
-
return nullable(this);
|
|
25847
|
-
},
|
|
25848
|
-
nullish() {
|
|
25849
|
-
return optional(nullable(this));
|
|
25850
|
-
},
|
|
25851
|
-
nonoptional(params) {
|
|
25852
|
-
return nonoptional(this, params);
|
|
25853
|
-
},
|
|
25854
|
-
array() {
|
|
25855
|
-
return array(this);
|
|
25856
|
-
},
|
|
25857
|
-
or(arg2) {
|
|
25858
|
-
return union([this, arg2]);
|
|
25859
|
-
},
|
|
25860
|
-
and(arg2) {
|
|
25861
|
-
return intersection(this, arg2);
|
|
25862
|
-
},
|
|
25863
|
-
transform(tx) {
|
|
25864
|
-
return pipe(this, transform(tx));
|
|
25865
|
-
},
|
|
25866
|
-
default(d) {
|
|
25867
|
-
return _default2(this, d);
|
|
25868
|
-
},
|
|
25869
|
-
prefault(d) {
|
|
25870
|
-
return prefault(this, d);
|
|
25871
|
-
},
|
|
25872
|
-
catch(params) {
|
|
25873
|
-
return _catch2(this, params);
|
|
25874
|
-
},
|
|
25875
|
-
pipe(target) {
|
|
25876
|
-
return pipe(this, target);
|
|
25877
|
-
},
|
|
25878
|
-
readonly() {
|
|
25879
|
-
return readonly(this);
|
|
25880
|
-
},
|
|
25881
|
-
describe(description) {
|
|
25882
|
-
const cl = this.clone();
|
|
25883
|
-
globalRegistry.add(cl, { description });
|
|
25884
|
-
return cl;
|
|
25885
|
-
},
|
|
25886
|
-
meta(...args) {
|
|
25887
|
-
if (args.length === 0)
|
|
25888
|
-
return globalRegistry.get(this);
|
|
25889
|
-
const cl = this.clone();
|
|
25890
|
-
globalRegistry.add(cl, args[0]);
|
|
25891
|
-
return cl;
|
|
25892
|
-
},
|
|
25893
|
-
isOptional() {
|
|
25894
|
-
return this.safeParse(void 0).success;
|
|
25895
|
-
},
|
|
25896
|
-
isNullable() {
|
|
25897
|
-
return this.safeParse(null).success;
|
|
25898
|
-
},
|
|
25899
|
-
apply(fn) {
|
|
25900
|
-
return fn(this);
|
|
25901
|
-
}
|
|
25902
|
-
});
|
|
25258
|
+
inst.refine = (check2, params) => inst.check(refine(check2, params));
|
|
25259
|
+
inst.superRefine = (refinement) => inst.check(superRefine(refinement));
|
|
25260
|
+
inst.overwrite = (fn) => inst.check(_overwrite(fn));
|
|
25261
|
+
inst.optional = () => optional(inst);
|
|
25262
|
+
inst.exactOptional = () => exactOptional(inst);
|
|
25263
|
+
inst.nullable = () => nullable(inst);
|
|
25264
|
+
inst.nullish = () => optional(nullable(inst));
|
|
25265
|
+
inst.nonoptional = (params) => nonoptional(inst, params);
|
|
25266
|
+
inst.array = () => array(inst);
|
|
25267
|
+
inst.or = (arg2) => union([inst, arg2]);
|
|
25268
|
+
inst.and = (arg2) => intersection(inst, arg2);
|
|
25269
|
+
inst.transform = (tx) => pipe(inst, transform(tx));
|
|
25270
|
+
inst.default = (def2) => _default2(inst, def2);
|
|
25271
|
+
inst.prefault = (def2) => prefault(inst, def2);
|
|
25272
|
+
inst.catch = (params) => _catch2(inst, params);
|
|
25273
|
+
inst.pipe = (target) => pipe(inst, target);
|
|
25274
|
+
inst.readonly = () => readonly(inst);
|
|
25275
|
+
inst.describe = (description) => {
|
|
25276
|
+
const cl = inst.clone();
|
|
25277
|
+
globalRegistry.add(cl, { description });
|
|
25278
|
+
return cl;
|
|
25279
|
+
};
|
|
25903
25280
|
Object.defineProperty(inst, "description", {
|
|
25904
25281
|
get() {
|
|
25905
25282
|
return globalRegistry.get(inst)?.description;
|
|
25906
25283
|
},
|
|
25907
25284
|
configurable: true
|
|
25908
25285
|
});
|
|
25286
|
+
inst.meta = (...args) => {
|
|
25287
|
+
if (args.length === 0) {
|
|
25288
|
+
return globalRegistry.get(inst);
|
|
25289
|
+
}
|
|
25290
|
+
const cl = inst.clone();
|
|
25291
|
+
globalRegistry.add(cl, args[0]);
|
|
25292
|
+
return cl;
|
|
25293
|
+
};
|
|
25294
|
+
inst.isOptional = () => inst.safeParse(void 0).success;
|
|
25295
|
+
inst.isNullable = () => inst.safeParse(null).success;
|
|
25296
|
+
inst.apply = (fn) => fn(inst);
|
|
25909
25297
|
return inst;
|
|
25910
25298
|
});
|
|
25911
25299
|
var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
@@ -25916,53 +25304,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25916
25304
|
inst.format = bag.format ?? null;
|
|
25917
25305
|
inst.minLength = bag.minimum ?? null;
|
|
25918
25306
|
inst.maxLength = bag.maximum ?? null;
|
|
25919
|
-
|
|
25920
|
-
|
|
25921
|
-
|
|
25922
|
-
|
|
25923
|
-
|
|
25924
|
-
|
|
25925
|
-
|
|
25926
|
-
|
|
25927
|
-
|
|
25928
|
-
|
|
25929
|
-
|
|
25930
|
-
|
|
25931
|
-
|
|
25932
|
-
|
|
25933
|
-
|
|
25934
|
-
},
|
|
25935
|
-
max(...args) {
|
|
25936
|
-
return this.check(_maxLength(...args));
|
|
25937
|
-
},
|
|
25938
|
-
length(...args) {
|
|
25939
|
-
return this.check(_length(...args));
|
|
25940
|
-
},
|
|
25941
|
-
nonempty(...args) {
|
|
25942
|
-
return this.check(_minLength(1, ...args));
|
|
25943
|
-
},
|
|
25944
|
-
lowercase(params) {
|
|
25945
|
-
return this.check(_lowercase(params));
|
|
25946
|
-
},
|
|
25947
|
-
uppercase(params) {
|
|
25948
|
-
return this.check(_uppercase(params));
|
|
25949
|
-
},
|
|
25950
|
-
trim() {
|
|
25951
|
-
return this.check(_trim());
|
|
25952
|
-
},
|
|
25953
|
-
normalize(...args) {
|
|
25954
|
-
return this.check(_normalize(...args));
|
|
25955
|
-
},
|
|
25956
|
-
toLowerCase() {
|
|
25957
|
-
return this.check(_toLowerCase());
|
|
25958
|
-
},
|
|
25959
|
-
toUpperCase() {
|
|
25960
|
-
return this.check(_toUpperCase());
|
|
25961
|
-
},
|
|
25962
|
-
slugify() {
|
|
25963
|
-
return this.check(_slugify());
|
|
25964
|
-
}
|
|
25965
|
-
});
|
|
25307
|
+
inst.regex = (...args) => inst.check(_regex(...args));
|
|
25308
|
+
inst.includes = (...args) => inst.check(_includes(...args));
|
|
25309
|
+
inst.startsWith = (...args) => inst.check(_startsWith(...args));
|
|
25310
|
+
inst.endsWith = (...args) => inst.check(_endsWith(...args));
|
|
25311
|
+
inst.min = (...args) => inst.check(_minLength(...args));
|
|
25312
|
+
inst.max = (...args) => inst.check(_maxLength(...args));
|
|
25313
|
+
inst.length = (...args) => inst.check(_length(...args));
|
|
25314
|
+
inst.nonempty = (...args) => inst.check(_minLength(1, ...args));
|
|
25315
|
+
inst.lowercase = (params) => inst.check(_lowercase(params));
|
|
25316
|
+
inst.uppercase = (params) => inst.check(_uppercase(params));
|
|
25317
|
+
inst.trim = () => inst.check(_trim());
|
|
25318
|
+
inst.normalize = (...args) => inst.check(_normalize(...args));
|
|
25319
|
+
inst.toLowerCase = () => inst.check(_toLowerCase());
|
|
25320
|
+
inst.toUpperCase = () => inst.check(_toUpperCase());
|
|
25321
|
+
inst.slugify = () => inst.check(_slugify());
|
|
25966
25322
|
});
|
|
25967
25323
|
var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
25968
25324
|
$ZodString.init(inst, def);
|
|
@@ -26041,7 +25397,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
26041
25397
|
}
|
|
26042
25398
|
function httpUrl(params) {
|
|
26043
25399
|
return _url(ZodURL, {
|
|
26044
|
-
protocol:
|
|
25400
|
+
protocol: /^https?$/,
|
|
26045
25401
|
hostname: regexes_exports.domain,
|
|
26046
25402
|
...util_exports.normalizeParams(params)
|
|
26047
25403
|
});
|
|
@@ -26183,53 +25539,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
26183
25539
|
$ZodNumber.init(inst, def);
|
|
26184
25540
|
ZodType.init(inst, def);
|
|
26185
25541
|
inst._zod.processJSONSchema = (ctx, json2, params) => numberProcessor(inst, ctx, json2);
|
|
26186
|
-
|
|
26187
|
-
|
|
26188
|
-
|
|
26189
|
-
|
|
26190
|
-
|
|
26191
|
-
|
|
26192
|
-
|
|
26193
|
-
|
|
26194
|
-
|
|
26195
|
-
|
|
26196
|
-
|
|
26197
|
-
|
|
26198
|
-
|
|
26199
|
-
|
|
26200
|
-
|
|
26201
|
-
},
|
|
26202
|
-
max(value, params) {
|
|
26203
|
-
return this.check(_lte(value, params));
|
|
26204
|
-
},
|
|
26205
|
-
int(params) {
|
|
26206
|
-
return this.check(int(params));
|
|
26207
|
-
},
|
|
26208
|
-
safe(params) {
|
|
26209
|
-
return this.check(int(params));
|
|
26210
|
-
},
|
|
26211
|
-
positive(params) {
|
|
26212
|
-
return this.check(_gt(0, params));
|
|
26213
|
-
},
|
|
26214
|
-
nonnegative(params) {
|
|
26215
|
-
return this.check(_gte(0, params));
|
|
26216
|
-
},
|
|
26217
|
-
negative(params) {
|
|
26218
|
-
return this.check(_lt(0, params));
|
|
26219
|
-
},
|
|
26220
|
-
nonpositive(params) {
|
|
26221
|
-
return this.check(_lte(0, params));
|
|
26222
|
-
},
|
|
26223
|
-
multipleOf(value, params) {
|
|
26224
|
-
return this.check(_multipleOf(value, params));
|
|
26225
|
-
},
|
|
26226
|
-
step(value, params) {
|
|
26227
|
-
return this.check(_multipleOf(value, params));
|
|
26228
|
-
},
|
|
26229
|
-
finite() {
|
|
26230
|
-
return this;
|
|
26231
|
-
}
|
|
26232
|
-
});
|
|
25542
|
+
inst.gt = (value, params) => inst.check(_gt(value, params));
|
|
25543
|
+
inst.gte = (value, params) => inst.check(_gte(value, params));
|
|
25544
|
+
inst.min = (value, params) => inst.check(_gte(value, params));
|
|
25545
|
+
inst.lt = (value, params) => inst.check(_lt(value, params));
|
|
25546
|
+
inst.lte = (value, params) => inst.check(_lte(value, params));
|
|
25547
|
+
inst.max = (value, params) => inst.check(_lte(value, params));
|
|
25548
|
+
inst.int = (params) => inst.check(int(params));
|
|
25549
|
+
inst.safe = (params) => inst.check(int(params));
|
|
25550
|
+
inst.positive = (params) => inst.check(_gt(0, params));
|
|
25551
|
+
inst.nonnegative = (params) => inst.check(_gte(0, params));
|
|
25552
|
+
inst.negative = (params) => inst.check(_lt(0, params));
|
|
25553
|
+
inst.nonpositive = (params) => inst.check(_lte(0, params));
|
|
25554
|
+
inst.multipleOf = (value, params) => inst.check(_multipleOf(value, params));
|
|
25555
|
+
inst.step = (value, params) => inst.check(_multipleOf(value, params));
|
|
25556
|
+
inst.finite = () => inst;
|
|
26233
25557
|
const bag = inst._zod.bag;
|
|
26234
25558
|
inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
|
|
26235
25559
|
inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
|
|
@@ -26376,23 +25700,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
26376
25700
|
ZodType.init(inst, def);
|
|
26377
25701
|
inst._zod.processJSONSchema = (ctx, json2, params) => arrayProcessor(inst, ctx, json2, params);
|
|
26378
25702
|
inst.element = def.element;
|
|
26379
|
-
|
|
26380
|
-
|
|
26381
|
-
|
|
26382
|
-
|
|
26383
|
-
|
|
26384
|
-
return this.check(_minLength(1, params));
|
|
26385
|
-
},
|
|
26386
|
-
max(n, params) {
|
|
26387
|
-
return this.check(_maxLength(n, params));
|
|
26388
|
-
},
|
|
26389
|
-
length(n, params) {
|
|
26390
|
-
return this.check(_length(n, params));
|
|
26391
|
-
},
|
|
26392
|
-
unwrap() {
|
|
26393
|
-
return this.element;
|
|
26394
|
-
}
|
|
26395
|
-
});
|
|
25703
|
+
inst.min = (minLength, params) => inst.check(_minLength(minLength, params));
|
|
25704
|
+
inst.nonempty = (params) => inst.check(_minLength(1, params));
|
|
25705
|
+
inst.max = (maxLength, params) => inst.check(_maxLength(maxLength, params));
|
|
25706
|
+
inst.length = (len, params) => inst.check(_length(len, params));
|
|
25707
|
+
inst.unwrap = () => inst.element;
|
|
26396
25708
|
});
|
|
26397
25709
|
function array(element, params) {
|
|
26398
25710
|
return _array(ZodArray, element, params);
|
|
@@ -26408,47 +25720,23 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
26408
25720
|
util_exports.defineLazy(inst, "shape", () => {
|
|
26409
25721
|
return def.shape;
|
|
26410
25722
|
});
|
|
26411
|
-
|
|
26412
|
-
|
|
26413
|
-
|
|
26414
|
-
|
|
26415
|
-
|
|
26416
|
-
|
|
26417
|
-
|
|
26418
|
-
|
|
26419
|
-
|
|
26420
|
-
|
|
26421
|
-
|
|
26422
|
-
|
|
26423
|
-
|
|
26424
|
-
|
|
26425
|
-
|
|
26426
|
-
|
|
26427
|
-
|
|
26428
|
-
return this.clone({ ...this._zod.def, catchall: void 0 });
|
|
26429
|
-
},
|
|
26430
|
-
extend(incoming) {
|
|
26431
|
-
return util_exports.extend(this, incoming);
|
|
26432
|
-
},
|
|
26433
|
-
safeExtend(incoming) {
|
|
26434
|
-
return util_exports.safeExtend(this, incoming);
|
|
26435
|
-
},
|
|
26436
|
-
merge(other) {
|
|
26437
|
-
return util_exports.merge(this, other);
|
|
26438
|
-
},
|
|
26439
|
-
pick(mask) {
|
|
26440
|
-
return util_exports.pick(this, mask);
|
|
26441
|
-
},
|
|
26442
|
-
omit(mask) {
|
|
26443
|
-
return util_exports.omit(this, mask);
|
|
26444
|
-
},
|
|
26445
|
-
partial(...args) {
|
|
26446
|
-
return util_exports.partial(ZodOptional, this, args[0]);
|
|
26447
|
-
},
|
|
26448
|
-
required(...args) {
|
|
26449
|
-
return util_exports.required(ZodNonOptional, this, args[0]);
|
|
26450
|
-
}
|
|
26451
|
-
});
|
|
25723
|
+
inst.keyof = () => _enum2(Object.keys(inst._zod.def.shape));
|
|
25724
|
+
inst.catchall = (catchall) => inst.clone({ ...inst._zod.def, catchall });
|
|
25725
|
+
inst.passthrough = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
|
|
25726
|
+
inst.loose = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
|
|
25727
|
+
inst.strict = () => inst.clone({ ...inst._zod.def, catchall: never() });
|
|
25728
|
+
inst.strip = () => inst.clone({ ...inst._zod.def, catchall: void 0 });
|
|
25729
|
+
inst.extend = (incoming) => {
|
|
25730
|
+
return util_exports.extend(inst, incoming);
|
|
25731
|
+
};
|
|
25732
|
+
inst.safeExtend = (incoming) => {
|
|
25733
|
+
return util_exports.safeExtend(inst, incoming);
|
|
25734
|
+
};
|
|
25735
|
+
inst.merge = (other) => util_exports.merge(inst, other);
|
|
25736
|
+
inst.pick = (mask) => util_exports.pick(inst, mask);
|
|
25737
|
+
inst.omit = (mask) => util_exports.omit(inst, mask);
|
|
25738
|
+
inst.partial = (...args) => util_exports.partial(ZodOptional, inst, args[0]);
|
|
25739
|
+
inst.required = (...args) => util_exports.required(ZodNonOptional, inst, args[0]);
|
|
26452
25740
|
});
|
|
26453
25741
|
function object(shape, params) {
|
|
26454
25742
|
const def = {
|
|
@@ -26553,14 +25841,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
26553
25841
|
inst.valueType = def.valueType;
|
|
26554
25842
|
});
|
|
26555
25843
|
function record(keyType, valueType, params) {
|
|
26556
|
-
if (!valueType || !valueType._zod) {
|
|
26557
|
-
return new ZodRecord({
|
|
26558
|
-
type: "record",
|
|
26559
|
-
keyType: string2(),
|
|
26560
|
-
valueType: keyType,
|
|
26561
|
-
...util_exports.normalizeParams(valueType)
|
|
26562
|
-
});
|
|
26563
|
-
}
|
|
26564
25844
|
return new ZodRecord({
|
|
26565
25845
|
type: "record",
|
|
26566
25846
|
keyType,
|
|
@@ -26732,12 +26012,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
26732
26012
|
if (output instanceof Promise) {
|
|
26733
26013
|
return output.then((output2) => {
|
|
26734
26014
|
payload.value = output2;
|
|
26735
|
-
payload.fallback = true;
|
|
26736
26015
|
return payload;
|
|
26737
26016
|
});
|
|
26738
26017
|
}
|
|
26739
26018
|
payload.value = output;
|
|
26740
|
-
payload.fallback = true;
|
|
26741
26019
|
return payload;
|
|
26742
26020
|
};
|
|
26743
26021
|
});
|
|
@@ -26892,20 +26170,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
26892
26170
|
reverseTransform: params.encode
|
|
26893
26171
|
});
|
|
26894
26172
|
}
|
|
26895
|
-
function invertCodec(codec2) {
|
|
26896
|
-
const def = codec2._zod.def;
|
|
26897
|
-
return new ZodCodec({
|
|
26898
|
-
type: "pipe",
|
|
26899
|
-
in: def.out,
|
|
26900
|
-
out: def.in,
|
|
26901
|
-
transform: def.reverseTransform,
|
|
26902
|
-
reverseTransform: def.transform
|
|
26903
|
-
});
|
|
26904
|
-
}
|
|
26905
|
-
var ZodPreprocess = /* @__PURE__ */ $constructor("ZodPreprocess", (inst, def) => {
|
|
26906
|
-
ZodPipe.init(inst, def);
|
|
26907
|
-
$ZodPreprocess.init(inst, def);
|
|
26908
|
-
});
|
|
26909
26173
|
var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
|
|
26910
26174
|
$ZodReadonly.init(inst, def);
|
|
26911
26175
|
ZodType.init(inst, def);
|
|
@@ -26985,8 +26249,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
26985
26249
|
function refine(fn, _params = {}) {
|
|
26986
26250
|
return _refine(ZodCustom, fn, _params);
|
|
26987
26251
|
}
|
|
26988
|
-
function superRefine(fn
|
|
26989
|
-
return _superRefine(fn
|
|
26252
|
+
function superRefine(fn) {
|
|
26253
|
+
return _superRefine(fn);
|
|
26990
26254
|
}
|
|
26991
26255
|
var describe2 = describe;
|
|
26992
26256
|
var meta2 = meta;
|
|
@@ -27024,14 +26288,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
27024
26288
|
return jsonSchema;
|
|
27025
26289
|
}
|
|
27026
26290
|
function preprocess(fn, schema) {
|
|
27027
|
-
return
|
|
27028
|
-
type: "pipe",
|
|
27029
|
-
in: transform(fn),
|
|
27030
|
-
out: schema
|
|
27031
|
-
});
|
|
26291
|
+
return pipe(transform(fn), schema);
|
|
27032
26292
|
}
|
|
27033
26293
|
|
|
27034
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
26294
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/compat.js
|
|
27035
26295
|
var ZodIssueCode = {
|
|
27036
26296
|
invalid_type: "invalid_type",
|
|
27037
26297
|
too_big: "too_big",
|
|
@@ -27057,7 +26317,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
27057
26317
|
/* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
|
|
27058
26318
|
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
27059
26319
|
|
|
27060
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
26320
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/from-json-schema.js
|
|
27061
26321
|
var z = {
|
|
27062
26322
|
...schemas_exports2,
|
|
27063
26323
|
...checks_exports2,
|
|
@@ -27367,9 +26627,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
27367
26627
|
const patternProps = schema.patternProperties;
|
|
27368
26628
|
const patternKeys = Object.keys(patternProps);
|
|
27369
26629
|
const looseRecords = [];
|
|
27370
|
-
for (const
|
|
27371
|
-
const patternValue = convertSchema(patternProps[
|
|
27372
|
-
const keySchema = z.string().regex(new RegExp(
|
|
26630
|
+
for (const pattern2 of patternKeys) {
|
|
26631
|
+
const patternValue = convertSchema(patternProps[pattern2], ctx);
|
|
26632
|
+
const keySchema = z.string().regex(new RegExp(pattern2));
|
|
27373
26633
|
looseRecords.push(z.looseRecord(keySchema, patternValue));
|
|
27374
26634
|
}
|
|
27375
26635
|
const schemasToIntersect = [];
|
|
@@ -27449,6 +26709,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
27449
26709
|
default:
|
|
27450
26710
|
throw new Error(`Unsupported type: ${type}`);
|
|
27451
26711
|
}
|
|
26712
|
+
if (schema.description) {
|
|
26713
|
+
zodSchema = zodSchema.describe(schema.description);
|
|
26714
|
+
}
|
|
26715
|
+
if (schema.default !== void 0) {
|
|
26716
|
+
zodSchema = zodSchema.default(schema.default);
|
|
26717
|
+
}
|
|
27452
26718
|
return zodSchema;
|
|
27453
26719
|
}
|
|
27454
26720
|
function convertSchema(schema, ctx) {
|
|
@@ -27485,9 +26751,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
27485
26751
|
if (schema.readOnly === true) {
|
|
27486
26752
|
baseSchema = z.readonly(baseSchema);
|
|
27487
26753
|
}
|
|
27488
|
-
if (schema.default !== void 0) {
|
|
27489
|
-
baseSchema = baseSchema.default(schema.default);
|
|
27490
|
-
}
|
|
27491
26754
|
const extraMeta = {};
|
|
27492
26755
|
const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
|
|
27493
26756
|
for (const key of coreMetadataKeys) {
|
|
@@ -27509,35 +26772,26 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
27509
26772
|
if (Object.keys(extraMeta).length > 0) {
|
|
27510
26773
|
ctx.registry.add(baseSchema, extraMeta);
|
|
27511
26774
|
}
|
|
27512
|
-
if (schema.description) {
|
|
27513
|
-
baseSchema = baseSchema.describe(schema.description);
|
|
27514
|
-
}
|
|
27515
26775
|
return baseSchema;
|
|
27516
26776
|
}
|
|
27517
26777
|
function fromJSONSchema(schema, params) {
|
|
27518
26778
|
if (typeof schema === "boolean") {
|
|
27519
26779
|
return schema ? z.any() : z.never();
|
|
27520
26780
|
}
|
|
27521
|
-
|
|
27522
|
-
|
|
27523
|
-
normalized = JSON.parse(JSON.stringify(schema));
|
|
27524
|
-
} catch {
|
|
27525
|
-
throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
|
|
27526
|
-
}
|
|
27527
|
-
const version2 = detectVersion(normalized, params?.defaultTarget);
|
|
27528
|
-
const defs = normalized.$defs || normalized.definitions || {};
|
|
26781
|
+
const version2 = detectVersion(schema, params?.defaultTarget);
|
|
26782
|
+
const defs = schema.$defs || schema.definitions || {};
|
|
27529
26783
|
const ctx = {
|
|
27530
26784
|
version: version2,
|
|
27531
26785
|
defs,
|
|
27532
26786
|
refs: /* @__PURE__ */ new Map(),
|
|
27533
26787
|
processing: /* @__PURE__ */ new Set(),
|
|
27534
|
-
rootSchema:
|
|
26788
|
+
rootSchema: schema,
|
|
27535
26789
|
registry: params?.registry ?? globalRegistry
|
|
27536
26790
|
};
|
|
27537
|
-
return convertSchema(
|
|
26791
|
+
return convertSchema(schema, ctx);
|
|
27538
26792
|
}
|
|
27539
26793
|
|
|
27540
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
26794
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/coerce.js
|
|
27541
26795
|
var coerce_exports = {};
|
|
27542
26796
|
__export(coerce_exports, {
|
|
27543
26797
|
bigint: () => bigint3,
|
|
@@ -27562,7 +26816,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
27562
26816
|
return _coercedDate(ZodDate, params);
|
|
27563
26817
|
}
|
|
27564
26818
|
|
|
27565
|
-
// ../../node_modules/.pnpm/zod@4.
|
|
26819
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/external.js
|
|
27566
26820
|
config(en_default());
|
|
27567
26821
|
|
|
27568
26822
|
// ../protocol/dist/index.js
|
|
@@ -28026,7 +27280,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28026
27280
|
function useLumioAction(action2) {
|
|
28027
27281
|
const [data, setData] = (0, import_react22.useState)(null);
|
|
28028
27282
|
const [isLoading, setIsLoading] = (0, import_react22.useState)(false);
|
|
28029
|
-
const [
|
|
27283
|
+
const [error48, setError] = (0, import_react22.useState)(null);
|
|
28030
27284
|
const actionRef = (0, import_react22.useRef)(action2);
|
|
28031
27285
|
actionRef.current = action2;
|
|
28032
27286
|
const execute = (0, import_react22.useCallback)(
|
|
@@ -28046,7 +27300,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28046
27300
|
},
|
|
28047
27301
|
[action2]
|
|
28048
27302
|
);
|
|
28049
|
-
return { execute, data, isLoading, error:
|
|
27303
|
+
return { execute, data, isLoading, error: error48 };
|
|
28050
27304
|
}
|
|
28051
27305
|
|
|
28052
27306
|
// src/hooks/useQuery.ts
|
|
@@ -28054,7 +27308,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28054
27308
|
function useQuery(functionName, params) {
|
|
28055
27309
|
const [data, setData] = (0, import_react23.useState)(null);
|
|
28056
27310
|
const [isLoading, setIsLoading] = (0, import_react23.useState)(false);
|
|
28057
|
-
const [
|
|
27311
|
+
const [error48, setError] = (0, import_react23.useState)(null);
|
|
28058
27312
|
const fnRef = (0, import_react23.useRef)(functionName);
|
|
28059
27313
|
fnRef.current = functionName;
|
|
28060
27314
|
const sendQuery = (0, import_react23.useCallback)(() => {
|
|
@@ -28074,7 +27328,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28074
27328
|
(0, import_react23.useEffect)(() => {
|
|
28075
27329
|
sendQuery();
|
|
28076
27330
|
}, [sendQuery]);
|
|
28077
|
-
return { data, isLoading, error:
|
|
27331
|
+
return { data, isLoading, error: error48, refetch: sendQuery };
|
|
28078
27332
|
}
|
|
28079
27333
|
|
|
28080
27334
|
// src/hooks/useMutation.ts
|
|
@@ -28082,7 +27336,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28082
27336
|
function useMutation(functionName) {
|
|
28083
27337
|
const [data, setData] = (0, import_react24.useState)(null);
|
|
28084
27338
|
const [isLoading, setIsLoading] = (0, import_react24.useState)(false);
|
|
28085
|
-
const [
|
|
27339
|
+
const [error48, setError] = (0, import_react24.useState)(null);
|
|
28086
27340
|
const sendMutation = (0, import_react24.useCallback)(
|
|
28087
27341
|
(params = {}) => {
|
|
28088
27342
|
setIsLoading(true);
|
|
@@ -28114,7 +27368,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28114
27368
|
},
|
|
28115
27369
|
[sendMutation]
|
|
28116
27370
|
);
|
|
28117
|
-
return { mutate, mutateAsync, data, isLoading, error:
|
|
27371
|
+
return { mutate, mutateAsync, data, isLoading, error: error48 };
|
|
28118
27372
|
}
|
|
28119
27373
|
|
|
28120
27374
|
// src/animation/keyframes.ts
|
|
@@ -28389,18 +27643,24 @@ ${stops}
|
|
|
28389
27643
|
__export(server_exports, {
|
|
28390
27644
|
action: () => action,
|
|
28391
27645
|
arg: () => arg,
|
|
27646
|
+
command: () => command,
|
|
28392
27647
|
defineSchema: () => defineSchema,
|
|
28393
27648
|
defineTable: () => defineTable,
|
|
28394
27649
|
deleteRow: () => deleteRow,
|
|
27650
|
+
event: () => event,
|
|
28395
27651
|
fetchAction: () => fetchAction,
|
|
28396
27652
|
filter: () => filter,
|
|
28397
27653
|
identity: () => identity,
|
|
28398
27654
|
insertRow: () => insertRow,
|
|
27655
|
+
keyword: () => keyword,
|
|
27656
|
+
moderate: () => moderate,
|
|
28399
27657
|
mutation: () => mutation,
|
|
28400
27658
|
patchRow: () => patchRow,
|
|
27659
|
+
pattern: () => pattern,
|
|
28401
27660
|
query: () => query,
|
|
28402
27661
|
queryRows: () => queryRows,
|
|
28403
27662
|
secret: () => secret,
|
|
27663
|
+
timer: () => timer,
|
|
28404
27664
|
v: () => v
|
|
28405
27665
|
});
|
|
28406
27666
|
|
|
@@ -28519,6 +27779,43 @@ ${stops}
|
|
|
28519
27779
|
return { __expr: "filter", field, op, value };
|
|
28520
27780
|
}
|
|
28521
27781
|
|
|
27782
|
+
// src/server/bot-module.ts
|
|
27783
|
+
function command(name, handler) {
|
|
27784
|
+
const fn = handler;
|
|
27785
|
+
fn.__type = "command";
|
|
27786
|
+
fn.__trigger = name;
|
|
27787
|
+
return fn;
|
|
27788
|
+
}
|
|
27789
|
+
function keyword(trigger, handler) {
|
|
27790
|
+
const fn = handler;
|
|
27791
|
+
fn.__type = "keyword";
|
|
27792
|
+
fn.__trigger = trigger;
|
|
27793
|
+
return fn;
|
|
27794
|
+
}
|
|
27795
|
+
function pattern(regex, handler) {
|
|
27796
|
+
const fn = handler;
|
|
27797
|
+
fn.__type = "pattern";
|
|
27798
|
+
fn.__trigger = regex;
|
|
27799
|
+
return fn;
|
|
27800
|
+
}
|
|
27801
|
+
function event(eventType, handler) {
|
|
27802
|
+
const fn = handler;
|
|
27803
|
+
fn.__type = "event";
|
|
27804
|
+
fn.__trigger = eventType;
|
|
27805
|
+
return fn;
|
|
27806
|
+
}
|
|
27807
|
+
function timer(name, handler) {
|
|
27808
|
+
const fn = handler;
|
|
27809
|
+
fn.__type = "timer";
|
|
27810
|
+
fn.__trigger = name;
|
|
27811
|
+
return fn;
|
|
27812
|
+
}
|
|
27813
|
+
function moderate(handler) {
|
|
27814
|
+
const fn = handler;
|
|
27815
|
+
fn.__type = "moderate";
|
|
27816
|
+
return fn;
|
|
27817
|
+
}
|
|
27818
|
+
|
|
28522
27819
|
// src/runtime/worker-entry.ts
|
|
28523
27820
|
var moduleRegistry = {
|
|
28524
27821
|
"react": React16,
|
|
@@ -28557,13 +27854,13 @@ ${stops}
|
|
|
28557
27854
|
bridge.onNotification(HOST_METHODS.LIFECYCLE_DESTROY, () => {
|
|
28558
27855
|
destroyBridgeContext();
|
|
28559
27856
|
});
|
|
28560
|
-
self.addEventListener("error", (
|
|
28561
|
-
getBridge().notify("ui.error", { code: "RUNTIME_ERROR", message:
|
|
27857
|
+
self.addEventListener("error", (event2) => {
|
|
27858
|
+
getBridge().notify("ui.error", { code: "RUNTIME_ERROR", message: event2.message || "Unknown runtime error" });
|
|
28562
27859
|
});
|
|
28563
|
-
self.addEventListener("unhandledrejection", (
|
|
27860
|
+
self.addEventListener("unhandledrejection", (event2) => {
|
|
28564
27861
|
getBridge().notify("ui.error", {
|
|
28565
27862
|
code: "UNHANDLED_REJECTION",
|
|
28566
|
-
message:
|
|
27863
|
+
message: event2.reason instanceof Error ? event2.reason.message : "Unhandled promise rejection"
|
|
28567
27864
|
});
|
|
28568
27865
|
});
|
|
28569
27866
|
/*! Bundled license information:
|