@workflow/web 5.0.0-beta.12 → 5.0.0-beta.14
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/build/client/assets/{highlighted-body-B3W2YXNL-DmlmGvFd.js → highlighted-body-B3W2YXNL-BEqiCpJd.js} +1 -1
- package/build/client/assets/{home-BQRPxkXT.js → home-D9oyGYfj.js} +2 -2
- package/build/client/assets/{manifest-b8838010.js → manifest-6fc92124.js} +1 -1
- package/build/client/assets/{mermaid-3ZIDBTTL-CeSti4VQ.js → mermaid-3ZIDBTTL-C02sm-ZS.js} +353 -365
- package/build/client/assets/root-Bqr5evzw.css +1 -0
- package/build/client/assets/{root-8wYQKqnE.js → root-Dduz44vX.js} +1 -1
- package/build/client/assets/{run-detail-Dn4QeKHW.js → run-detail-uOQTua8_.js} +79 -45
- package/build/client/assets/server-build-CNnlgxpd.css +1 -0
- package/build/client/assets/{workflow-graph-viewer-CxZS9r2o.js → workflow-graph-viewer-CU0UU458.js} +1 -1
- package/build/server/assets/{app-D-W9Jr82.js → app-BKJ-G0q_.js} +2 -2
- package/build/server/assets/{highlighted-body-B3W2YXNL-CcRpp5rq.js → highlighted-body-B3W2YXNL-Frh10t8y.js} +2 -2
- package/build/server/assets/index-B8YoYr9f.js +1117 -0
- package/build/server/assets/{index-BUU6Hdm_.js → index-GhULR6rc.js} +15 -12
- package/build/server/assets/{mermaid-3ZIDBTTL-Nh9-IDfL.js → mermaid-3ZIDBTTL-BtSvadnb.js} +2 -2
- package/build/server/assets/{server-build-BshzAvNv.js → server-build-B9XdaVeE.js} +1141 -1938
- package/build/server/assets/{token-BaJALexf.js → token-CpI-8AoV.js} +2 -2
- package/build/server/assets/{token-util-Bc0jltWL.js → token-util-FXtXbDcd.js} +2 -2
- package/build/server/index.js +1 -1
- package/package.json +9 -9
- package/build/client/assets/root-DvB36HGI.css +0 -1
- package/build/client/assets/server-build-B5Dibl7P.css +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/encryption-g14N5vQl.js","assets/index-B6-SzLmT.js","assets/index-BXZSIDEp.js","assets/highlighted-body-B3W2YXNL-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/encryption-g14N5vQl.js","assets/index-B6-SzLmT.js","assets/index-BXZSIDEp.js","assets/highlighted-body-B3W2YXNL-BEqiCpJd.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
-
var _a2;
|
|
5
|
+
var _a2, _b;
|
|
6
6
|
import { r as reactExports, j as jsxRuntimeExports, f as reactDomExports, I as React, G as ReactDOM, R as ReactExports, g as getDefaultExportFromCjs } from "./index-BXZSIDEp.js";
|
|
7
7
|
function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
|
|
8
8
|
return function handleEvent(event) {
|
|
@@ -200,13 +200,13 @@ function mergeProps$1(slotProps, childProps) {
|
|
|
200
200
|
return { ...slotProps, ...overrideProps };
|
|
201
201
|
}
|
|
202
202
|
function getElementRef$2(element2) {
|
|
203
|
-
var _a3,
|
|
203
|
+
var _a3, _b2;
|
|
204
204
|
let getter = (_a3 = Object.getOwnPropertyDescriptor(element2.props, "ref")) == null ? void 0 : _a3.get;
|
|
205
205
|
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
206
206
|
if (mayWarn) {
|
|
207
207
|
return element2.ref;
|
|
208
208
|
}
|
|
209
|
-
getter = (
|
|
209
|
+
getter = (_b2 = Object.getOwnPropertyDescriptor(element2, "ref")) == null ? void 0 : _b2.get;
|
|
210
210
|
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
211
211
|
if (mayWarn) {
|
|
212
212
|
return element2.props.ref;
|
|
@@ -2443,7 +2443,7 @@ var CONTENT_NAME$1 = "PopperContent";
|
|
|
2443
2443
|
var [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME$1);
|
|
2444
2444
|
var PopperContent = reactExports.forwardRef(
|
|
2445
2445
|
(props, forwardedRef) => {
|
|
2446
|
-
var _a3,
|
|
2446
|
+
var _a3, _b2, _c, _d, _e2, _f;
|
|
2447
2447
|
const {
|
|
2448
2448
|
__scopePopper,
|
|
2449
2449
|
side = "bottom",
|
|
@@ -2523,7 +2523,7 @@ var PopperContent = reactExports.forwardRef(
|
|
|
2523
2523
|
}
|
|
2524
2524
|
}, [isPositioned, handlePlaced]);
|
|
2525
2525
|
const arrowX = (_a3 = middlewareData.arrow) == null ? void 0 : _a3.x;
|
|
2526
|
-
const arrowY = (
|
|
2526
|
+
const arrowY = (_b2 = middlewareData.arrow) == null ? void 0 : _b2.y;
|
|
2527
2527
|
const cannotCenterArrow = ((_c = middlewareData.arrow) == null ? void 0 : _c.centerOffset) !== 0;
|
|
2528
2528
|
const [contentZIndex, setContentZIndex] = reactExports.useState();
|
|
2529
2529
|
useLayoutEffect2(() => {
|
|
@@ -2646,7 +2646,7 @@ var transformOrigin = (options) => ({
|
|
|
2646
2646
|
name: "transformOrigin",
|
|
2647
2647
|
options,
|
|
2648
2648
|
fn(data) {
|
|
2649
|
-
var _a3,
|
|
2649
|
+
var _a3, _b2, _c;
|
|
2650
2650
|
const { placement, rects, middlewareData } = data;
|
|
2651
2651
|
const cannotCenterArrow = ((_a3 = middlewareData.arrow) == null ? void 0 : _a3.centerOffset) !== 0;
|
|
2652
2652
|
const isArrowHidden = cannotCenterArrow;
|
|
@@ -2654,7 +2654,7 @@ var transformOrigin = (options) => ({
|
|
|
2654
2654
|
const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;
|
|
2655
2655
|
const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);
|
|
2656
2656
|
const noArrowAlign = { start: "0%", center: "50%", end: "100%" }[placedAlign];
|
|
2657
|
-
const arrowXCenter = (((
|
|
2657
|
+
const arrowXCenter = (((_b2 = middlewareData.arrow) == null ? void 0 : _b2.x) ?? 0) + arrowWidth / 2;
|
|
2658
2658
|
const arrowYCenter = (((_c = middlewareData.arrow) == null ? void 0 : _c.y) ?? 0) + arrowHeight / 2;
|
|
2659
2659
|
let x2 = "";
|
|
2660
2660
|
let y2 = "";
|
|
@@ -2802,13 +2802,13 @@ function getAnimationName(styles2) {
|
|
|
2802
2802
|
return (styles2 == null ? void 0 : styles2.animationName) || "none";
|
|
2803
2803
|
}
|
|
2804
2804
|
function getElementRef$1(element2) {
|
|
2805
|
-
var _a3,
|
|
2805
|
+
var _a3, _b2;
|
|
2806
2806
|
let getter = (_a3 = Object.getOwnPropertyDescriptor(element2.props, "ref")) == null ? void 0 : _a3.get;
|
|
2807
2807
|
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
2808
2808
|
if (mayWarn) {
|
|
2809
2809
|
return element2.ref;
|
|
2810
2810
|
}
|
|
2811
|
-
getter = (
|
|
2811
|
+
getter = (_b2 = Object.getOwnPropertyDescriptor(element2, "ref")) == null ? void 0 : _b2.get;
|
|
2812
2812
|
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
2813
2813
|
if (mayWarn) {
|
|
2814
2814
|
return element2.props.ref;
|
|
@@ -6779,6 +6779,41 @@ function formatDuration(ms, compact = false) {
|
|
|
6779
6779
|
parts.push(`${seconds}s`);
|
|
6780
6780
|
return parts.join(" ");
|
|
6781
6781
|
}
|
|
6782
|
+
const preciseSecondsFormatter = new Intl.NumberFormat(void 0, {
|
|
6783
|
+
minimumFractionDigits: 2,
|
|
6784
|
+
maximumFractionDigits: 2
|
|
6785
|
+
});
|
|
6786
|
+
function formatDurationPrecise(ms) {
|
|
6787
|
+
if (ms === 0) {
|
|
6788
|
+
return "0s";
|
|
6789
|
+
}
|
|
6790
|
+
if (ms < MS_IN_SECOND) {
|
|
6791
|
+
const roundedMs = Math.round(ms);
|
|
6792
|
+
if (roundedMs < MS_IN_SECOND) {
|
|
6793
|
+
return `${roundedMs}ms`;
|
|
6794
|
+
}
|
|
6795
|
+
}
|
|
6796
|
+
const normalizedMs = Math.round(ms / 10) * 10;
|
|
6797
|
+
if (normalizedMs < MS_IN_MINUTE) {
|
|
6798
|
+
return `${preciseSecondsFormatter.format(normalizedMs / MS_IN_SECOND)}s`;
|
|
6799
|
+
}
|
|
6800
|
+
const days = Math.floor(normalizedMs / MS_IN_DAY);
|
|
6801
|
+
const hours = Math.floor(normalizedMs % MS_IN_DAY / MS_IN_HOUR);
|
|
6802
|
+
const minutes = Math.floor(normalizedMs % MS_IN_HOUR / MS_IN_MINUTE);
|
|
6803
|
+
const seconds = normalizedMs % MS_IN_MINUTE / MS_IN_SECOND;
|
|
6804
|
+
const parts = [];
|
|
6805
|
+
if (days > 0) {
|
|
6806
|
+
parts.push(`${days}d`);
|
|
6807
|
+
}
|
|
6808
|
+
if (hours > 0) {
|
|
6809
|
+
parts.push(`${hours}h`);
|
|
6810
|
+
}
|
|
6811
|
+
if (minutes > 0) {
|
|
6812
|
+
parts.push(`${minutes}m`);
|
|
6813
|
+
}
|
|
6814
|
+
parts.push(`${preciseSecondsFormatter.format(seconds)}s`);
|
|
6815
|
+
return parts.join(" ");
|
|
6816
|
+
}
|
|
6782
6817
|
function isDoStreamStep(stepName) {
|
|
6783
6818
|
return stepName.endsWith("//doStreamStep");
|
|
6784
6819
|
}
|
|
@@ -10098,44 +10133,6 @@ const __vitePreload = function preload(baseModule, deps, importerUrl) {
|
|
|
10098
10133
|
return baseModule().catch(handlePreloadError);
|
|
10099
10134
|
});
|
|
10100
10135
|
};
|
|
10101
|
-
function decode64(string2) {
|
|
10102
|
-
const binaryString = asciiToBinary(string2);
|
|
10103
|
-
const arraybuffer = new ArrayBuffer(binaryString.length);
|
|
10104
|
-
const dv = new DataView(arraybuffer);
|
|
10105
|
-
for (let i = 0; i < arraybuffer.byteLength; i++) {
|
|
10106
|
-
dv.setUint8(i, binaryString.charCodeAt(i));
|
|
10107
|
-
}
|
|
10108
|
-
return arraybuffer;
|
|
10109
|
-
}
|
|
10110
|
-
const KEY_STRING = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
10111
|
-
function asciiToBinary(data) {
|
|
10112
|
-
if (data.length % 4 === 0) {
|
|
10113
|
-
data = data.replace(/==?$/, "");
|
|
10114
|
-
}
|
|
10115
|
-
let output = "";
|
|
10116
|
-
let buffer = 0;
|
|
10117
|
-
let accumulatedBits = 0;
|
|
10118
|
-
for (let i = 0; i < data.length; i++) {
|
|
10119
|
-
buffer <<= 6;
|
|
10120
|
-
buffer |= KEY_STRING.indexOf(data[i]);
|
|
10121
|
-
accumulatedBits += 6;
|
|
10122
|
-
if (accumulatedBits === 24) {
|
|
10123
|
-
output += String.fromCharCode((buffer & 16711680) >> 16);
|
|
10124
|
-
output += String.fromCharCode((buffer & 65280) >> 8);
|
|
10125
|
-
output += String.fromCharCode(buffer & 255);
|
|
10126
|
-
buffer = accumulatedBits = 0;
|
|
10127
|
-
}
|
|
10128
|
-
}
|
|
10129
|
-
if (accumulatedBits === 12) {
|
|
10130
|
-
buffer >>= 4;
|
|
10131
|
-
output += String.fromCharCode(buffer);
|
|
10132
|
-
} else if (accumulatedBits === 18) {
|
|
10133
|
-
buffer >>= 2;
|
|
10134
|
-
output += String.fromCharCode((buffer & 65280) >> 8);
|
|
10135
|
-
output += String.fromCharCode(buffer & 255);
|
|
10136
|
-
}
|
|
10137
|
-
return output;
|
|
10138
|
-
}
|
|
10139
10136
|
const UNDEFINED = -1;
|
|
10140
10137
|
const HOLE = -2;
|
|
10141
10138
|
const NAN = -3;
|
|
@@ -10143,6 +10140,38 @@ const POSITIVE_INFINITY = -4;
|
|
|
10143
10140
|
const NEGATIVE_INFINITY = -5;
|
|
10144
10141
|
const NEGATIVE_ZERO = -6;
|
|
10145
10142
|
const SPARSE = -7;
|
|
10143
|
+
const MAX_ARRAY_LEN = 2 ** 32 - 1;
|
|
10144
|
+
const MAX_ARRAY_INDEX = MAX_ARRAY_LEN - 1;
|
|
10145
|
+
function is_valid_array_index(n) {
|
|
10146
|
+
if (!Number.isInteger(n)) return false;
|
|
10147
|
+
if (n < 0) return false;
|
|
10148
|
+
if (n > MAX_ARRAY_INDEX) return false;
|
|
10149
|
+
return true;
|
|
10150
|
+
}
|
|
10151
|
+
function is_valid_array_len(n) {
|
|
10152
|
+
if (!Number.isInteger(n)) return false;
|
|
10153
|
+
if (n < 0) return false;
|
|
10154
|
+
if (n > MAX_ARRAY_LEN) return false;
|
|
10155
|
+
return true;
|
|
10156
|
+
}
|
|
10157
|
+
function decode_native(base642) {
|
|
10158
|
+
return Uint8Array.fromBase64(base642).buffer;
|
|
10159
|
+
}
|
|
10160
|
+
function decode_buffer(base642) {
|
|
10161
|
+
return Uint8Array.from(Buffer.from(base642, "base64")).buffer;
|
|
10162
|
+
}
|
|
10163
|
+
function decode_legacy(base642) {
|
|
10164
|
+
const binary_string = atob(base642);
|
|
10165
|
+
const len = binary_string.length;
|
|
10166
|
+
const array2 = new Uint8Array(len);
|
|
10167
|
+
for (let i = 0; i < len; i++) {
|
|
10168
|
+
array2[i] = binary_string.charCodeAt(i);
|
|
10169
|
+
}
|
|
10170
|
+
return array2.buffer;
|
|
10171
|
+
}
|
|
10172
|
+
const native = typeof Uint8Array.fromBase64 === "function";
|
|
10173
|
+
const buffer = typeof process === "object" && ((_a2 = process.versions) == null ? void 0 : _a2.node) !== void 0;
|
|
10174
|
+
const decode64 = native ? decode_native : buffer ? decode_buffer : decode_legacy;
|
|
10146
10175
|
function parse$4(serialized, revivers) {
|
|
10147
10176
|
return unflatten(JSON.parse(serialized), revivers);
|
|
10148
10177
|
}
|
|
@@ -10209,9 +10238,14 @@ function unflatten(parsed, revivers) {
|
|
|
10209
10238
|
case "RegExp":
|
|
10210
10239
|
hydrated[index2] = new RegExp(value[1], value[2]);
|
|
10211
10240
|
break;
|
|
10212
|
-
case "Object":
|
|
10213
|
-
|
|
10241
|
+
case "Object": {
|
|
10242
|
+
const wrapped_index = value[1];
|
|
10243
|
+
if (typeof values[wrapped_index] === "object" && values[wrapped_index][0] !== "BigInt") {
|
|
10244
|
+
throw new Error("Invalid input");
|
|
10245
|
+
}
|
|
10246
|
+
hydrated[index2] = Object(hydrate(wrapped_index));
|
|
10214
10247
|
break;
|
|
10248
|
+
}
|
|
10215
10249
|
case "BigInt":
|
|
10216
10250
|
hydrated[index2] = BigInt(value[1]);
|
|
10217
10251
|
break;
|
|
@@ -10219,6 +10253,9 @@ function unflatten(parsed, revivers) {
|
|
|
10219
10253
|
const obj = /* @__PURE__ */ Object.create(null);
|
|
10220
10254
|
hydrated[index2] = obj;
|
|
10221
10255
|
for (let i = 1; i < value.length; i += 2) {
|
|
10256
|
+
if (value[i] === "__proto__") {
|
|
10257
|
+
throw new Error("Cannot parse an object with a `__proto__` property");
|
|
10258
|
+
}
|
|
10222
10259
|
obj[value[i]] = hydrate(value[i + 1]);
|
|
10223
10260
|
}
|
|
10224
10261
|
break;
|
|
@@ -10227,19 +10264,20 @@ function unflatten(parsed, revivers) {
|
|
|
10227
10264
|
case "Uint8ClampedArray":
|
|
10228
10265
|
case "Int16Array":
|
|
10229
10266
|
case "Uint16Array":
|
|
10267
|
+
case "Float16Array":
|
|
10230
10268
|
case "Int32Array":
|
|
10231
10269
|
case "Uint32Array":
|
|
10232
10270
|
case "Float32Array":
|
|
10233
10271
|
case "Float64Array":
|
|
10234
10272
|
case "BigInt64Array":
|
|
10235
|
-
case "BigUint64Array":
|
|
10273
|
+
case "BigUint64Array":
|
|
10274
|
+
case "DataView": {
|
|
10236
10275
|
if (values[value[1]][0] !== "ArrayBuffer") {
|
|
10237
10276
|
throw new Error("Invalid data");
|
|
10238
10277
|
}
|
|
10239
10278
|
const TypedArrayConstructor = globalThis[type];
|
|
10240
|
-
const
|
|
10241
|
-
|
|
10242
|
-
hydrated[index2] = value[2] !== void 0 ? typedArray.subarray(value[2], value[3]) : typedArray;
|
|
10279
|
+
const buffer2 = hydrate(value[1]);
|
|
10280
|
+
hydrated[index2] = value[2] !== void 0 ? new TypedArrayConstructor(buffer2, value[2], value[3]) : new TypedArrayConstructor(buffer2);
|
|
10243
10281
|
break;
|
|
10244
10282
|
}
|
|
10245
10283
|
case "ArrayBuffer": {
|
|
@@ -10278,12 +10316,21 @@ function unflatten(parsed, revivers) {
|
|
|
10278
10316
|
}
|
|
10279
10317
|
} else if (value[0] === SPARSE) {
|
|
10280
10318
|
const len = value[1];
|
|
10281
|
-
|
|
10319
|
+
if (!is_valid_array_len(len)) {
|
|
10320
|
+
throw new Error("Invalid input");
|
|
10321
|
+
}
|
|
10322
|
+
const array2 = [];
|
|
10282
10323
|
hydrated[index2] = array2;
|
|
10324
|
+
array2[MAX_ARRAY_INDEX] = void 0;
|
|
10325
|
+
delete array2[MAX_ARRAY_INDEX];
|
|
10283
10326
|
for (let i = 2; i < value.length; i += 2) {
|
|
10284
10327
|
const idx = value[i];
|
|
10328
|
+
if (!is_valid_array_index(idx) || idx >= len) {
|
|
10329
|
+
throw new Error("Invalid input");
|
|
10330
|
+
}
|
|
10285
10331
|
array2[idx] = hydrate(value[i + 1]);
|
|
10286
10332
|
}
|
|
10333
|
+
array2.length = len;
|
|
10287
10334
|
} else {
|
|
10288
10335
|
const array2 = new Array(value.length);
|
|
10289
10336
|
hydrated[index2] = array2;
|
|
@@ -10691,10 +10738,10 @@ function $constructor(name2, initializer2, params) {
|
|
|
10691
10738
|
Object.defineProperty(_2, "init", { value: init });
|
|
10692
10739
|
Object.defineProperty(_2, Symbol.hasInstance, {
|
|
10693
10740
|
value: (inst) => {
|
|
10694
|
-
var _a3,
|
|
10741
|
+
var _a3, _b2;
|
|
10695
10742
|
if ((params == null ? void 0 : params.Parent) && inst instanceof params.Parent)
|
|
10696
10743
|
return true;
|
|
10697
|
-
return (
|
|
10744
|
+
return (_b2 = (_a3 = inst == null ? void 0 : inst._zod) == null ? void 0 : _a3.traits) == null ? void 0 : _b2.has(name2);
|
|
10698
10745
|
}
|
|
10699
10746
|
});
|
|
10700
10747
|
Object.defineProperty(_2, "name", { value: name2 });
|
|
@@ -10846,7 +10893,6 @@ function shallowClone(o) {
|
|
|
10846
10893
|
return o;
|
|
10847
10894
|
}
|
|
10848
10895
|
const propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
10849
|
-
const primitiveTypes = /* @__PURE__ */ new Set(["string", "number", "bigint", "boolean", "symbol", "undefined"]);
|
|
10850
10896
|
function escapeRegex(str) {
|
|
10851
10897
|
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
10852
10898
|
}
|
|
@@ -11077,10 +11123,10 @@ function unwrapMessage(message) {
|
|
|
11077
11123
|
return typeof message === "string" ? message : message == null ? void 0 : message.message;
|
|
11078
11124
|
}
|
|
11079
11125
|
function finalizeIssue(iss, ctx, config2) {
|
|
11080
|
-
var _a3,
|
|
11126
|
+
var _a3, _b2, _c, _d, _e2, _f;
|
|
11081
11127
|
const full = { ...iss, path: iss.path ?? [] };
|
|
11082
11128
|
if (!iss.message) {
|
|
11083
|
-
const message = unwrapMessage((_c = (
|
|
11129
|
+
const message = unwrapMessage((_c = (_b2 = (_a3 = iss.inst) == null ? void 0 : _a3._zod.def) == null ? void 0 : _b2.error) == null ? void 0 : _c.call(_b2, iss)) ?? unwrapMessage((_d = ctx == null ? void 0 : ctx.error) == null ? void 0 : _d.call(ctx, iss)) ?? unwrapMessage((_e2 = config2.customError) == null ? void 0 : _e2.call(config2, iss)) ?? unwrapMessage((_f = config2.localeError) == null ? void 0 : _f.call(config2, iss)) ?? "Invalid input";
|
|
11084
11130
|
full.message = message;
|
|
11085
11131
|
}
|
|
11086
11132
|
delete full.inst;
|
|
@@ -11564,7 +11610,7 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEqual
|
|
|
11564
11610
|
};
|
|
11565
11611
|
});
|
|
11566
11612
|
const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
11567
|
-
var _a3,
|
|
11613
|
+
var _a3, _b2;
|
|
11568
11614
|
$ZodCheck.init(inst, def);
|
|
11569
11615
|
inst._zod.onattach.push((inst2) => {
|
|
11570
11616
|
const bag = inst2._zod.bag;
|
|
@@ -11590,7 +11636,7 @@ const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringForma
|
|
|
11590
11636
|
});
|
|
11591
11637
|
});
|
|
11592
11638
|
else
|
|
11593
|
-
(
|
|
11639
|
+
(_b2 = inst._zod).check ?? (_b2.check = () => {
|
|
11594
11640
|
});
|
|
11595
11641
|
});
|
|
11596
11642
|
const $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def) => {
|
|
@@ -12323,10 +12369,10 @@ function handlePropertyResult(result, final, key, input, isOptionalOut) {
|
|
|
12323
12369
|
}
|
|
12324
12370
|
}
|
|
12325
12371
|
function normalizeDef(def) {
|
|
12326
|
-
var _a3,
|
|
12372
|
+
var _a3, _b2, _c, _d;
|
|
12327
12373
|
const keys2 = Object.keys(def.shape);
|
|
12328
12374
|
for (const k2 of keys2) {
|
|
12329
|
-
if (!((_d = (_c = (
|
|
12375
|
+
if (!((_d = (_c = (_b2 = (_a3 = def.shape) == null ? void 0 : _a3[k2]) == null ? void 0 : _b2._zod) == null ? void 0 : _c.traits) == null ? void 0 : _d.has("$ZodType"))) {
|
|
12330
12376
|
throw new Error(`Invalid element at key "${k2}": expected a Zod schema`);
|
|
12331
12377
|
}
|
|
12332
12378
|
}
|
|
@@ -13130,12 +13176,12 @@ const $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) =>
|
|
|
13130
13176
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
13131
13177
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
13132
13178
|
defineLazy(inst._zod, "optin", () => {
|
|
13133
|
-
var _a3,
|
|
13134
|
-
return (
|
|
13179
|
+
var _a3, _b2;
|
|
13180
|
+
return (_b2 = (_a3 = def.innerType) == null ? void 0 : _a3._zod) == null ? void 0 : _b2.optin;
|
|
13135
13181
|
});
|
|
13136
13182
|
defineLazy(inst._zod, "optout", () => {
|
|
13137
|
-
var _a3,
|
|
13138
|
-
return (
|
|
13183
|
+
var _a3, _b2;
|
|
13184
|
+
return (_b2 = (_a3 = def.innerType) == null ? void 0 : _a3._zod) == null ? void 0 : _b2.optout;
|
|
13139
13185
|
});
|
|
13140
13186
|
inst._zod.parse = (payload, ctx) => {
|
|
13141
13187
|
if (ctx.direction === "backward") {
|
|
@@ -13152,69 +13198,24 @@ function handleReadonlyResult(payload) {
|
|
|
13152
13198
|
payload.value = Object.freeze(payload.value);
|
|
13153
13199
|
return payload;
|
|
13154
13200
|
}
|
|
13155
|
-
const $ZodTemplateLiteral = /* @__PURE__ */ $constructor("$ZodTemplateLiteral", (inst, def) => {
|
|
13156
|
-
$ZodType.init(inst, def);
|
|
13157
|
-
const regexParts = [];
|
|
13158
|
-
for (const part of def.parts) {
|
|
13159
|
-
if (typeof part === "object" && part !== null) {
|
|
13160
|
-
if (!part._zod.pattern) {
|
|
13161
|
-
throw new Error(`Invalid template literal part, no pattern found: ${[...part._zod.traits].shift()}`);
|
|
13162
|
-
}
|
|
13163
|
-
const source = part._zod.pattern instanceof RegExp ? part._zod.pattern.source : part._zod.pattern;
|
|
13164
|
-
if (!source)
|
|
13165
|
-
throw new Error(`Invalid template literal part: ${part._zod.traits}`);
|
|
13166
|
-
const start = source.startsWith("^") ? 1 : 0;
|
|
13167
|
-
const end = source.endsWith("$") ? source.length - 1 : source.length;
|
|
13168
|
-
regexParts.push(source.slice(start, end));
|
|
13169
|
-
} else if (part === null || primitiveTypes.has(typeof part)) {
|
|
13170
|
-
regexParts.push(escapeRegex(`${part}`));
|
|
13171
|
-
} else {
|
|
13172
|
-
throw new Error(`Invalid template literal part: ${part}`);
|
|
13173
|
-
}
|
|
13174
|
-
}
|
|
13175
|
-
inst._zod.pattern = new RegExp(`^${regexParts.join("")}$`);
|
|
13176
|
-
inst._zod.parse = (payload, _ctx) => {
|
|
13177
|
-
if (typeof payload.value !== "string") {
|
|
13178
|
-
payload.issues.push({
|
|
13179
|
-
input: payload.value,
|
|
13180
|
-
inst,
|
|
13181
|
-
expected: "string",
|
|
13182
|
-
code: "invalid_type"
|
|
13183
|
-
});
|
|
13184
|
-
return payload;
|
|
13185
|
-
}
|
|
13186
|
-
inst._zod.pattern.lastIndex = 0;
|
|
13187
|
-
if (!inst._zod.pattern.test(payload.value)) {
|
|
13188
|
-
payload.issues.push({
|
|
13189
|
-
input: payload.value,
|
|
13190
|
-
inst,
|
|
13191
|
-
code: "invalid_format",
|
|
13192
|
-
format: def.format ?? "template_literal",
|
|
13193
|
-
pattern: inst._zod.pattern.source
|
|
13194
|
-
});
|
|
13195
|
-
return payload;
|
|
13196
|
-
}
|
|
13197
|
-
return payload;
|
|
13198
|
-
};
|
|
13199
|
-
});
|
|
13200
13201
|
const $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
|
|
13201
13202
|
$ZodType.init(inst, def);
|
|
13202
13203
|
defineLazy(inst._zod, "innerType", () => def.getter());
|
|
13203
13204
|
defineLazy(inst._zod, "pattern", () => {
|
|
13204
|
-
var _a3,
|
|
13205
|
-
return (
|
|
13205
|
+
var _a3, _b2;
|
|
13206
|
+
return (_b2 = (_a3 = inst._zod.innerType) == null ? void 0 : _a3._zod) == null ? void 0 : _b2.pattern;
|
|
13206
13207
|
});
|
|
13207
13208
|
defineLazy(inst._zod, "propValues", () => {
|
|
13208
|
-
var _a3,
|
|
13209
|
-
return (
|
|
13209
|
+
var _a3, _b2;
|
|
13210
|
+
return (_b2 = (_a3 = inst._zod.innerType) == null ? void 0 : _a3._zod) == null ? void 0 : _b2.propValues;
|
|
13210
13211
|
});
|
|
13211
13212
|
defineLazy(inst._zod, "optin", () => {
|
|
13212
|
-
var _a3,
|
|
13213
|
-
return ((
|
|
13213
|
+
var _a3, _b2;
|
|
13214
|
+
return ((_b2 = (_a3 = inst._zod.innerType) == null ? void 0 : _a3._zod) == null ? void 0 : _b2.optin) ?? void 0;
|
|
13214
13215
|
});
|
|
13215
13216
|
defineLazy(inst._zod, "optout", () => {
|
|
13216
|
-
var _a3,
|
|
13217
|
-
return ((
|
|
13217
|
+
var _a3, _b2;
|
|
13218
|
+
return ((_b2 = (_a3 = inst._zod.innerType) == null ? void 0 : _a3._zod) == null ? void 0 : _b2.optout) ?? void 0;
|
|
13218
13219
|
});
|
|
13219
13220
|
inst._zod.parse = (payload, ctx) => {
|
|
13220
13221
|
const inner = inst._zod.innerType;
|
|
@@ -13856,8 +13857,8 @@ function initializeContext(params) {
|
|
|
13856
13857
|
external: (params == null ? void 0 : params.external) ?? void 0
|
|
13857
13858
|
};
|
|
13858
13859
|
}
|
|
13859
|
-
function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
13860
|
-
var _a4,
|
|
13860
|
+
function process$1(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
13861
|
+
var _a4, _b2;
|
|
13861
13862
|
var _a3;
|
|
13862
13863
|
const def = schema._zod.def;
|
|
13863
13864
|
const seen2 = ctx.seen.get(schema);
|
|
@@ -13871,7 +13872,7 @@ function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
|
13871
13872
|
}
|
|
13872
13873
|
const result = { schema: {}, count: 1, cycle: void 0, path: _params.path };
|
|
13873
13874
|
ctx.seen.set(schema, result);
|
|
13874
|
-
const overrideSchema = (
|
|
13875
|
+
const overrideSchema = (_b2 = (_a4 = schema._zod).toJSONSchema) == null ? void 0 : _b2.call(_a4);
|
|
13875
13876
|
if (overrideSchema) {
|
|
13876
13877
|
result.schema = overrideSchema;
|
|
13877
13878
|
} else {
|
|
@@ -13894,7 +13895,7 @@ function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
|
13894
13895
|
if (parent) {
|
|
13895
13896
|
if (!result.ref)
|
|
13896
13897
|
result.ref = parent;
|
|
13897
|
-
process(parent, ctx, params);
|
|
13898
|
+
process$1(parent, ctx, params);
|
|
13898
13899
|
ctx.seen.get(parent).isParent = true;
|
|
13899
13900
|
}
|
|
13900
13901
|
}
|
|
@@ -13912,7 +13913,7 @@ function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
|
13912
13913
|
return _result.schema;
|
|
13913
13914
|
}
|
|
13914
13915
|
function extractDefs(ctx, schema) {
|
|
13915
|
-
var _a3,
|
|
13916
|
+
var _a3, _b2, _c, _d;
|
|
13916
13917
|
const root2 = ctx.seen.get(schema);
|
|
13917
13918
|
if (!root2)
|
|
13918
13919
|
throw new Error("Unprocessed schema. This is a bug in Zod.");
|
|
@@ -13967,7 +13968,7 @@ function extractDefs(ctx, schema) {
|
|
|
13967
13968
|
for (const entry of ctx.seen.entries()) {
|
|
13968
13969
|
const seen2 = entry[1];
|
|
13969
13970
|
if (seen2.cycle) {
|
|
13970
|
-
throw new Error(`Cycle detected: #/${(
|
|
13971
|
+
throw new Error(`Cycle detected: #/${(_b2 = seen2.cycle) == null ? void 0 : _b2.join("/")}/<root>
|
|
13971
13972
|
|
|
13972
13973
|
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`);
|
|
13973
13974
|
}
|
|
@@ -14004,7 +14005,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14004
14005
|
}
|
|
14005
14006
|
}
|
|
14006
14007
|
function finalize(ctx, schema) {
|
|
14007
|
-
var _a3,
|
|
14008
|
+
var _a3, _b2, _c;
|
|
14008
14009
|
const root2 = ctx.seen.get(schema);
|
|
14009
14010
|
if (!root2)
|
|
14010
14011
|
throw new Error("Unprocessed schema. This is a bug in Zod.");
|
|
@@ -14083,7 +14084,7 @@ function finalize(ctx, schema) {
|
|
|
14083
14084
|
} else if (ctx.target === "openapi-3.0") ;
|
|
14084
14085
|
else ;
|
|
14085
14086
|
if ((_a3 = ctx.external) == null ? void 0 : _a3.uri) {
|
|
14086
|
-
const id = (
|
|
14087
|
+
const id = (_b2 = ctx.external.registry.get(schema)) == null ? void 0 : _b2.id;
|
|
14087
14088
|
if (!id)
|
|
14088
14089
|
throw new Error("Schema is missing an `id` property");
|
|
14089
14090
|
result.$id = ctx.external.uri(id);
|
|
@@ -14177,14 +14178,14 @@ function isTransforming(_schema, _ctx) {
|
|
|
14177
14178
|
}
|
|
14178
14179
|
const createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
|
|
14179
14180
|
const ctx = initializeContext({ ...params, processors });
|
|
14180
|
-
process(schema, ctx);
|
|
14181
|
+
process$1(schema, ctx);
|
|
14181
14182
|
extractDefs(ctx, schema);
|
|
14182
14183
|
return finalize(ctx, schema);
|
|
14183
14184
|
};
|
|
14184
14185
|
const createStandardJSONSchemaMethod = (schema, io2, processors = {}) => (params) => {
|
|
14185
14186
|
const { libraryOptions, target: target2 } = params ?? {};
|
|
14186
14187
|
const ctx = initializeContext({ ...libraryOptions ?? {}, target: target2, io: io2, processors });
|
|
14187
|
-
process(schema, ctx);
|
|
14188
|
+
process$1(schema, ctx);
|
|
14188
14189
|
extractDefs(ctx, schema);
|
|
14189
14190
|
return finalize(ctx, schema);
|
|
14190
14191
|
};
|
|
@@ -14349,14 +14350,6 @@ const literalProcessor = (schema, ctx, json, _params) => {
|
|
|
14349
14350
|
json.enum = vals;
|
|
14350
14351
|
}
|
|
14351
14352
|
};
|
|
14352
|
-
const templateLiteralProcessor = (schema, _ctx, json, _params) => {
|
|
14353
|
-
const _json = json;
|
|
14354
|
-
const pattern = schema._zod.pattern;
|
|
14355
|
-
if (!pattern)
|
|
14356
|
-
throw new Error("Pattern not found in template literal");
|
|
14357
|
-
_json.type = "string";
|
|
14358
|
-
_json.pattern = pattern.source;
|
|
14359
|
-
};
|
|
14360
14353
|
const customProcessor = (_schema, ctx, _json, _params) => {
|
|
14361
14354
|
if (ctx.unrepresentable === "throw") {
|
|
14362
14355
|
throw new Error("Custom types cannot be represented in JSON Schema");
|
|
@@ -14376,7 +14369,7 @@ const arrayProcessor = (schema, ctx, _json, params) => {
|
|
|
14376
14369
|
if (typeof maximum === "number")
|
|
14377
14370
|
json.maxItems = maximum;
|
|
14378
14371
|
json.type = "array";
|
|
14379
|
-
json.items = process(def.element, ctx, { ...params, path: [...params.path, "items"] });
|
|
14372
|
+
json.items = process$1(def.element, ctx, { ...params, path: [...params.path, "items"] });
|
|
14380
14373
|
};
|
|
14381
14374
|
const objectProcessor = (schema, ctx, _json, params) => {
|
|
14382
14375
|
var _a3;
|
|
@@ -14386,7 +14379,7 @@ const objectProcessor = (schema, ctx, _json, params) => {
|
|
|
14386
14379
|
json.properties = {};
|
|
14387
14380
|
const shape = def.shape;
|
|
14388
14381
|
for (const key in shape) {
|
|
14389
|
-
json.properties[key] = process(shape[key], ctx, {
|
|
14382
|
+
json.properties[key] = process$1(shape[key], ctx, {
|
|
14390
14383
|
...params,
|
|
14391
14384
|
path: [...params.path, "properties", key]
|
|
14392
14385
|
});
|
|
@@ -14409,7 +14402,7 @@ const objectProcessor = (schema, ctx, _json, params) => {
|
|
|
14409
14402
|
if (ctx.io === "output")
|
|
14410
14403
|
json.additionalProperties = false;
|
|
14411
14404
|
} else if (def.catchall) {
|
|
14412
|
-
json.additionalProperties = process(def.catchall, ctx, {
|
|
14405
|
+
json.additionalProperties = process$1(def.catchall, ctx, {
|
|
14413
14406
|
...params,
|
|
14414
14407
|
path: [...params.path, "additionalProperties"]
|
|
14415
14408
|
});
|
|
@@ -14418,7 +14411,7 @@ const objectProcessor = (schema, ctx, _json, params) => {
|
|
|
14418
14411
|
const unionProcessor = (schema, ctx, json, params) => {
|
|
14419
14412
|
const def = schema._zod.def;
|
|
14420
14413
|
const isExclusive = def.inclusive === false;
|
|
14421
|
-
const options = def.options.map((x2, i) => process(x2, ctx, {
|
|
14414
|
+
const options = def.options.map((x2, i) => process$1(x2, ctx, {
|
|
14422
14415
|
...params,
|
|
14423
14416
|
path: [...params.path, isExclusive ? "oneOf" : "anyOf", i]
|
|
14424
14417
|
}));
|
|
@@ -14430,11 +14423,11 @@ const unionProcessor = (schema, ctx, json, params) => {
|
|
|
14430
14423
|
};
|
|
14431
14424
|
const intersectionProcessor = (schema, ctx, json, params) => {
|
|
14432
14425
|
const def = schema._zod.def;
|
|
14433
|
-
const a2 = process(def.left, ctx, {
|
|
14426
|
+
const a2 = process$1(def.left, ctx, {
|
|
14434
14427
|
...params,
|
|
14435
14428
|
path: [...params.path, "allOf", 0]
|
|
14436
14429
|
});
|
|
14437
|
-
const b2 = process(def.right, ctx, {
|
|
14430
|
+
const b2 = process$1(def.right, ctx, {
|
|
14438
14431
|
...params,
|
|
14439
14432
|
path: [...params.path, "allOf", 1]
|
|
14440
14433
|
});
|
|
@@ -14453,7 +14446,7 @@ const recordProcessor = (schema, ctx, _json, params) => {
|
|
|
14453
14446
|
const keyBag = keyType._zod.bag;
|
|
14454
14447
|
const patterns = keyBag == null ? void 0 : keyBag.patterns;
|
|
14455
14448
|
if (def.mode === "loose" && patterns && patterns.size > 0) {
|
|
14456
|
-
const valueSchema = process(def.valueType, ctx, {
|
|
14449
|
+
const valueSchema = process$1(def.valueType, ctx, {
|
|
14457
14450
|
...params,
|
|
14458
14451
|
path: [...params.path, "patternProperties", "*"]
|
|
14459
14452
|
});
|
|
@@ -14463,12 +14456,12 @@ const recordProcessor = (schema, ctx, _json, params) => {
|
|
|
14463
14456
|
}
|
|
14464
14457
|
} else {
|
|
14465
14458
|
if (ctx.target === "draft-07" || ctx.target === "draft-2020-12") {
|
|
14466
|
-
json.propertyNames = process(def.keyType, ctx, {
|
|
14459
|
+
json.propertyNames = process$1(def.keyType, ctx, {
|
|
14467
14460
|
...params,
|
|
14468
14461
|
path: [...params.path, "propertyNames"]
|
|
14469
14462
|
});
|
|
14470
14463
|
}
|
|
14471
|
-
json.additionalProperties = process(def.valueType, ctx, {
|
|
14464
|
+
json.additionalProperties = process$1(def.valueType, ctx, {
|
|
14472
14465
|
...params,
|
|
14473
14466
|
path: [...params.path, "additionalProperties"]
|
|
14474
14467
|
});
|
|
@@ -14483,7 +14476,7 @@ const recordProcessor = (schema, ctx, _json, params) => {
|
|
|
14483
14476
|
};
|
|
14484
14477
|
const nullableProcessor = (schema, ctx, json, params) => {
|
|
14485
14478
|
const def = schema._zod.def;
|
|
14486
|
-
const inner = process(def.innerType, ctx, params);
|
|
14479
|
+
const inner = process$1(def.innerType, ctx, params);
|
|
14487
14480
|
const seen2 = ctx.seen.get(schema);
|
|
14488
14481
|
if (ctx.target === "openapi-3.0") {
|
|
14489
14482
|
seen2.ref = def.innerType;
|
|
@@ -14494,20 +14487,20 @@ const nullableProcessor = (schema, ctx, json, params) => {
|
|
|
14494
14487
|
};
|
|
14495
14488
|
const nonoptionalProcessor = (schema, ctx, _json, params) => {
|
|
14496
14489
|
const def = schema._zod.def;
|
|
14497
|
-
process(def.innerType, ctx, params);
|
|
14490
|
+
process$1(def.innerType, ctx, params);
|
|
14498
14491
|
const seen2 = ctx.seen.get(schema);
|
|
14499
14492
|
seen2.ref = def.innerType;
|
|
14500
14493
|
};
|
|
14501
14494
|
const defaultProcessor = (schema, ctx, json, params) => {
|
|
14502
14495
|
const def = schema._zod.def;
|
|
14503
|
-
process(def.innerType, ctx, params);
|
|
14496
|
+
process$1(def.innerType, ctx, params);
|
|
14504
14497
|
const seen2 = ctx.seen.get(schema);
|
|
14505
14498
|
seen2.ref = def.innerType;
|
|
14506
14499
|
json.default = JSON.parse(JSON.stringify(def.defaultValue));
|
|
14507
14500
|
};
|
|
14508
14501
|
const prefaultProcessor = (schema, ctx, json, params) => {
|
|
14509
14502
|
const def = schema._zod.def;
|
|
14510
|
-
process(def.innerType, ctx, params);
|
|
14503
|
+
process$1(def.innerType, ctx, params);
|
|
14511
14504
|
const seen2 = ctx.seen.get(schema);
|
|
14512
14505
|
seen2.ref = def.innerType;
|
|
14513
14506
|
if (ctx.io === "input")
|
|
@@ -14515,7 +14508,7 @@ const prefaultProcessor = (schema, ctx, json, params) => {
|
|
|
14515
14508
|
};
|
|
14516
14509
|
const catchProcessor = (schema, ctx, json, params) => {
|
|
14517
14510
|
const def = schema._zod.def;
|
|
14518
|
-
process(def.innerType, ctx, params);
|
|
14511
|
+
process$1(def.innerType, ctx, params);
|
|
14519
14512
|
const seen2 = ctx.seen.get(schema);
|
|
14520
14513
|
seen2.ref = def.innerType;
|
|
14521
14514
|
let catchValue;
|
|
@@ -14529,26 +14522,26 @@ const catchProcessor = (schema, ctx, json, params) => {
|
|
|
14529
14522
|
const pipeProcessor = (schema, ctx, _json, params) => {
|
|
14530
14523
|
const def = schema._zod.def;
|
|
14531
14524
|
const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
|
|
14532
|
-
process(innerType, ctx, params);
|
|
14525
|
+
process$1(innerType, ctx, params);
|
|
14533
14526
|
const seen2 = ctx.seen.get(schema);
|
|
14534
14527
|
seen2.ref = innerType;
|
|
14535
14528
|
};
|
|
14536
14529
|
const readonlyProcessor = (schema, ctx, json, params) => {
|
|
14537
14530
|
const def = schema._zod.def;
|
|
14538
|
-
process(def.innerType, ctx, params);
|
|
14531
|
+
process$1(def.innerType, ctx, params);
|
|
14539
14532
|
const seen2 = ctx.seen.get(schema);
|
|
14540
14533
|
seen2.ref = def.innerType;
|
|
14541
14534
|
json.readOnly = true;
|
|
14542
14535
|
};
|
|
14543
14536
|
const optionalProcessor = (schema, ctx, _json, params) => {
|
|
14544
14537
|
const def = schema._zod.def;
|
|
14545
|
-
process(def.innerType, ctx, params);
|
|
14538
|
+
process$1(def.innerType, ctx, params);
|
|
14546
14539
|
const seen2 = ctx.seen.get(schema);
|
|
14547
14540
|
seen2.ref = def.innerType;
|
|
14548
14541
|
};
|
|
14549
14542
|
const lazyProcessor = (schema, ctx, _json, params) => {
|
|
14550
14543
|
const innerType = schema._zod.innerType;
|
|
14551
|
-
process(innerType, ctx, params);
|
|
14544
|
+
process$1(innerType, ctx, params);
|
|
14552
14545
|
const seen2 = ctx.seen.get(schema);
|
|
14553
14546
|
seen2.ref = innerType;
|
|
14554
14547
|
};
|
|
@@ -15270,18 +15263,6 @@ function readonly(innerType) {
|
|
|
15270
15263
|
innerType
|
|
15271
15264
|
});
|
|
15272
15265
|
}
|
|
15273
|
-
const ZodTemplateLiteral = /* @__PURE__ */ $constructor("ZodTemplateLiteral", (inst, def) => {
|
|
15274
|
-
$ZodTemplateLiteral.init(inst, def);
|
|
15275
|
-
ZodType.init(inst, def);
|
|
15276
|
-
inst._zod.processJSONSchema = (ctx, json, params) => templateLiteralProcessor(inst, ctx, json);
|
|
15277
|
-
});
|
|
15278
|
-
function templateLiteral(parts, params) {
|
|
15279
|
-
return new ZodTemplateLiteral({
|
|
15280
|
-
type: "template_literal",
|
|
15281
|
-
parts,
|
|
15282
|
-
...normalizeParams(params)
|
|
15283
|
-
});
|
|
15284
|
-
}
|
|
15285
15266
|
const ZodLazy = /* @__PURE__ */ $constructor("ZodLazy", (inst, def) => {
|
|
15286
15267
|
$ZodLazy.init(inst, def);
|
|
15287
15268
|
ZodType.init(inst, def);
|
|
@@ -15577,11 +15558,9 @@ object({
|
|
|
15577
15558
|
isWebhook: boolean$2().optional(),
|
|
15578
15559
|
isSystem: boolean$2().optional()
|
|
15579
15560
|
});
|
|
15580
|
-
|
|
15581
|
-
|
|
15582
|
-
|
|
15583
|
-
]);
|
|
15584
|
-
templateLiteral([QueuePrefix, string$2()]);
|
|
15561
|
+
string$2().regex(/^__(?:[a-z][a-z0-9]*_)?wkf_(?:workflow|step)_$/, "Must match __wkf_{workflow|step}_ or __{namespace}_wkf_{workflow|step}_");
|
|
15562
|
+
string$2().regex(/^__(?:[a-z][a-z0-9]*_)?wkf_(?:workflow|step)_.+$/, "Must be a valid queue name with a recognized prefix");
|
|
15563
|
+
string$2().regex(/^[a-z][a-z0-9]*$/, "Must be lowercase alphanumeric, starting with a letter");
|
|
15585
15564
|
string$2().brand().describe("A stored queue message ID");
|
|
15586
15565
|
const TraceCarrierSchema = record(string$2(), string$2());
|
|
15587
15566
|
const RunInputSchema = object({
|
|
@@ -16150,60 +16129,6 @@ function hasEncryptedFields(resource) {
|
|
|
16150
16129
|
}
|
|
16151
16130
|
return false;
|
|
16152
16131
|
}
|
|
16153
|
-
const KEYFRAMES = `@keyframes wf-spinner-fade{0%{opacity:1}100%{opacity:.15}}`;
|
|
16154
|
-
function Spinner({ size: size2 = 14, color: color5 }) {
|
|
16155
|
-
const config2 = size2 <= 12 ? {
|
|
16156
|
-
angle: 45,
|
|
16157
|
-
delays: [-875, -750, -625, -500, -375, -250, -125, 0],
|
|
16158
|
-
duration: 1e3,
|
|
16159
|
-
lineW: 3,
|
|
16160
|
-
lineH: 1.5
|
|
16161
|
-
} : size2 <= 16 ? {
|
|
16162
|
-
angle: 36,
|
|
16163
|
-
delays: [-900, -800, -700, -600, -500, -400, -300, -200, -100, 0],
|
|
16164
|
-
duration: 1e3,
|
|
16165
|
-
lineW: 4,
|
|
16166
|
-
lineH: 1.5
|
|
16167
|
-
} : {
|
|
16168
|
-
angle: 30,
|
|
16169
|
-
delays: [
|
|
16170
|
-
-1100,
|
|
16171
|
-
-1e3,
|
|
16172
|
-
-900,
|
|
16173
|
-
-800,
|
|
16174
|
-
-700,
|
|
16175
|
-
-600,
|
|
16176
|
-
-500,
|
|
16177
|
-
-400,
|
|
16178
|
-
-300,
|
|
16179
|
-
-200,
|
|
16180
|
-
-100,
|
|
16181
|
-
0
|
|
16182
|
-
],
|
|
16183
|
-
duration: 1200,
|
|
16184
|
-
lineW: size2 * 0.24,
|
|
16185
|
-
lineH: size2 * 0.08
|
|
16186
|
-
};
|
|
16187
|
-
return jsxRuntimeExports.jsxs("span", { style: {
|
|
16188
|
-
display: "inline-flex",
|
|
16189
|
-
position: "relative",
|
|
16190
|
-
width: size2,
|
|
16191
|
-
height: size2
|
|
16192
|
-
}, children: [jsxRuntimeExports.jsx("style", { dangerouslySetInnerHTML: { __html: KEYFRAMES } }), config2.delays.map((delay, i) => jsxRuntimeExports.jsx("span", { style: {
|
|
16193
|
-
position: "absolute",
|
|
16194
|
-
left: "50%",
|
|
16195
|
-
top: "50%",
|
|
16196
|
-
width: config2.lineW,
|
|
16197
|
-
height: config2.lineH,
|
|
16198
|
-
marginLeft: -config2.lineW / 2,
|
|
16199
|
-
marginTop: -config2.lineH / 2,
|
|
16200
|
-
borderRadius: 1,
|
|
16201
|
-
backgroundColor: color5 ?? "var(--ds-gray-700)",
|
|
16202
|
-
transform: `rotate(${i * config2.angle}deg) translate(${size2 * 0.36}px)`,
|
|
16203
|
-
animation: `wf-spinner-fade ${config2.duration}ms linear infinite`,
|
|
16204
|
-
animationDelay: `${delay}ms`
|
|
16205
|
-
} }, delay))] });
|
|
16206
|
-
}
|
|
16207
16132
|
function __insertCSS(code2) {
|
|
16208
16133
|
if (typeof document == "undefined") return;
|
|
16209
16134
|
let head = document.head || document.getElementsByTagName("head")[0];
|
|
@@ -18240,6 +18165,60 @@ const buttonVariants$1 = cva([
|
|
|
18240
18165
|
function Button$1({ className, variant, size: size2, type = "button", ...props }) {
|
|
18241
18166
|
return jsxRuntimeExports.jsx("button", { type, className: cn$4(buttonVariants$1({ variant, size: size2, className })), ...props });
|
|
18242
18167
|
}
|
|
18168
|
+
const KEYFRAMES = `@keyframes wf-spinner-fade{0%{opacity:1}100%{opacity:.15}}`;
|
|
18169
|
+
function Spinner({ size: size2 = 14, color: color5 }) {
|
|
18170
|
+
const config2 = size2 <= 12 ? {
|
|
18171
|
+
angle: 45,
|
|
18172
|
+
delays: [-875, -750, -625, -500, -375, -250, -125, 0],
|
|
18173
|
+
duration: 1e3,
|
|
18174
|
+
lineW: 3,
|
|
18175
|
+
lineH: 1.5
|
|
18176
|
+
} : size2 <= 16 ? {
|
|
18177
|
+
angle: 36,
|
|
18178
|
+
delays: [-900, -800, -700, -600, -500, -400, -300, -200, -100, 0],
|
|
18179
|
+
duration: 1e3,
|
|
18180
|
+
lineW: 4,
|
|
18181
|
+
lineH: 1.5
|
|
18182
|
+
} : {
|
|
18183
|
+
angle: 30,
|
|
18184
|
+
delays: [
|
|
18185
|
+
-1100,
|
|
18186
|
+
-1e3,
|
|
18187
|
+
-900,
|
|
18188
|
+
-800,
|
|
18189
|
+
-700,
|
|
18190
|
+
-600,
|
|
18191
|
+
-500,
|
|
18192
|
+
-400,
|
|
18193
|
+
-300,
|
|
18194
|
+
-200,
|
|
18195
|
+
-100,
|
|
18196
|
+
0
|
|
18197
|
+
],
|
|
18198
|
+
duration: 1200,
|
|
18199
|
+
lineW: size2 * 0.24,
|
|
18200
|
+
lineH: size2 * 0.08
|
|
18201
|
+
};
|
|
18202
|
+
return jsxRuntimeExports.jsxs("span", { style: {
|
|
18203
|
+
display: "inline-flex",
|
|
18204
|
+
position: "relative",
|
|
18205
|
+
width: size2,
|
|
18206
|
+
height: size2
|
|
18207
|
+
}, children: [jsxRuntimeExports.jsx("style", { dangerouslySetInnerHTML: { __html: KEYFRAMES } }), config2.delays.map((delay, i) => jsxRuntimeExports.jsx("span", { style: {
|
|
18208
|
+
position: "absolute",
|
|
18209
|
+
left: "50%",
|
|
18210
|
+
top: "50%",
|
|
18211
|
+
width: config2.lineW,
|
|
18212
|
+
height: config2.lineH,
|
|
18213
|
+
marginLeft: -config2.lineW / 2,
|
|
18214
|
+
marginTop: -config2.lineH / 2,
|
|
18215
|
+
borderRadius: 1,
|
|
18216
|
+
backgroundColor: color5 ?? "var(--ds-gray-700)",
|
|
18217
|
+
transform: `rotate(${i * config2.angle}deg) translate(${size2 * 0.36}px)`,
|
|
18218
|
+
animation: `wf-spinner-fade ${config2.duration}ms linear infinite`,
|
|
18219
|
+
animationDelay: `${delay}ms`
|
|
18220
|
+
} }, delay))] });
|
|
18221
|
+
}
|
|
18243
18222
|
const STREAM_REF_TYPE = "__workflow_stream_ref__";
|
|
18244
18223
|
const CLASS_INSTANCE_REF_TYPE = "__workflow_class_instance_ref__";
|
|
18245
18224
|
const RUN_REF_TYPE = "__workflow_run_ref__";
|
|
@@ -18474,8 +18453,8 @@ function isObjectLike(value) {
|
|
|
18474
18453
|
return typeof value === "object" && value !== null;
|
|
18475
18454
|
}
|
|
18476
18455
|
function isSameBytesDisplay(a2, b2) {
|
|
18477
|
-
var _a3,
|
|
18478
|
-
return a2.text === b2.text && ((_a3 = a2.decodedFrom) == null ? void 0 : _a3.type) === ((
|
|
18456
|
+
var _a3, _b2, _c, _d, _e2, _f;
|
|
18457
|
+
return a2.text === b2.text && ((_a3 = a2.decodedFrom) == null ? void 0 : _a3.type) === ((_b2 = b2.decodedFrom) == null ? void 0 : _b2.type) && ((_c = a2.decodedFrom) == null ? void 0 : _c.encoding) === ((_d = b2.decodedFrom) == null ? void 0 : _d.encoding) && ((_e2 = a2.decodedFrom) == null ? void 0 : _e2.rawSummary) === ((_f = b2.decodedFrom) == null ? void 0 : _f.rawSummary);
|
|
18479
18458
|
}
|
|
18480
18459
|
function isDeepEqual(a2, b2, seen2 = /* @__PURE__ */ new WeakMap()) {
|
|
18481
18460
|
if (Object.is(a2, b2))
|
|
@@ -19054,8 +19033,8 @@ const deserializer = ($2, _2) => {
|
|
|
19054
19033
|
case "ArrayBuffer":
|
|
19055
19034
|
return as(new Uint8Array(value).buffer, value);
|
|
19056
19035
|
case "DataView": {
|
|
19057
|
-
const { buffer } = new Uint8Array(value);
|
|
19058
|
-
return as(new DataView(
|
|
19036
|
+
const { buffer: buffer2 } = new Uint8Array(value);
|
|
19037
|
+
return as(new DataView(buffer2), value);
|
|
19059
19038
|
}
|
|
19060
19039
|
}
|
|
19061
19040
|
return as(new env[type](value), index2);
|
|
@@ -23638,8 +23617,8 @@ class Tokenizer {
|
|
|
23638
23617
|
}
|
|
23639
23618
|
//Errors
|
|
23640
23619
|
_err(code2, cpOffset = 0) {
|
|
23641
|
-
var _a3,
|
|
23642
|
-
(
|
|
23620
|
+
var _a3, _b2;
|
|
23621
|
+
(_b2 = (_a3 = this.handler).onParseError) === null || _b2 === void 0 ? void 0 : _b2.call(_a3, this.preprocessor.getError(code2, cpOffset));
|
|
23643
23622
|
}
|
|
23644
23623
|
// NOTE: `offset` may never run across line boundaries.
|
|
23645
23624
|
getCurrentLocation(offset2) {
|
|
@@ -23782,12 +23761,12 @@ class Tokenizer {
|
|
|
23782
23761
|
}
|
|
23783
23762
|
_leaveAttrName() {
|
|
23784
23763
|
var _a3;
|
|
23785
|
-
var
|
|
23764
|
+
var _b2;
|
|
23786
23765
|
const token = this.currentToken;
|
|
23787
23766
|
if (getTokenAttr(token, this.currentAttr.name) === null) {
|
|
23788
23767
|
token.attrs.push(this.currentAttr);
|
|
23789
23768
|
if (token.location && this.currentLocation) {
|
|
23790
|
-
const attrLocations = (_a3 = (
|
|
23769
|
+
const attrLocations = (_a3 = (_b2 = token.location).attrs) !== null && _a3 !== void 0 ? _a3 : _b2.attrs = /* @__PURE__ */ Object.create(null);
|
|
23791
23770
|
attrLocations[this.currentAttr.name] = this.currentLocation;
|
|
23792
23771
|
this._leaveAttrValue();
|
|
23793
23772
|
}
|
|
@@ -27132,18 +27111,18 @@ class Parser {
|
|
|
27132
27111
|
//Stack events
|
|
27133
27112
|
/** @internal */
|
|
27134
27113
|
onItemPush(node2, tid, isTop) {
|
|
27135
|
-
var _a3,
|
|
27136
|
-
(
|
|
27114
|
+
var _a3, _b2;
|
|
27115
|
+
(_b2 = (_a3 = this.treeAdapter).onItemPush) === null || _b2 === void 0 ? void 0 : _b2.call(_a3, node2);
|
|
27137
27116
|
if (isTop && this.openElements.stackTop > 0)
|
|
27138
27117
|
this._setContextModes(node2, tid);
|
|
27139
27118
|
}
|
|
27140
27119
|
/** @internal */
|
|
27141
27120
|
onItemPop(node2, isTop) {
|
|
27142
|
-
var _a3,
|
|
27121
|
+
var _a3, _b2;
|
|
27143
27122
|
if (this.options.sourceCodeLocationInfo) {
|
|
27144
27123
|
this._setEndLocation(node2, this.currentToken);
|
|
27145
27124
|
}
|
|
27146
|
-
(
|
|
27125
|
+
(_b2 = (_a3 = this.treeAdapter).onItemPop) === null || _b2 === void 0 ? void 0 : _b2.call(_a3, node2, this.openElements.current);
|
|
27147
27126
|
if (isTop) {
|
|
27148
27127
|
let current;
|
|
27149
27128
|
let currentTagId;
|
|
@@ -32846,27 +32825,27 @@ function tokenizeWwwAutolink(effects, ok2, nok) {
|
|
|
32846
32825
|
}
|
|
32847
32826
|
function tokenizeProtocolAutolink(effects, ok2, nok) {
|
|
32848
32827
|
const self2 = this;
|
|
32849
|
-
let
|
|
32828
|
+
let buffer2 = "";
|
|
32850
32829
|
let seen2 = false;
|
|
32851
32830
|
return protocolStart;
|
|
32852
32831
|
function protocolStart(code2) {
|
|
32853
32832
|
if ((code2 === 72 || code2 === 104) && previousProtocol.call(self2, self2.previous) && !previousUnbalanced(self2.events)) {
|
|
32854
32833
|
effects.enter("literalAutolink");
|
|
32855
32834
|
effects.enter("literalAutolinkHttp");
|
|
32856
|
-
|
|
32835
|
+
buffer2 += String.fromCodePoint(code2);
|
|
32857
32836
|
effects.consume(code2);
|
|
32858
32837
|
return protocolPrefixInside;
|
|
32859
32838
|
}
|
|
32860
32839
|
return nok(code2);
|
|
32861
32840
|
}
|
|
32862
32841
|
function protocolPrefixInside(code2) {
|
|
32863
|
-
if (asciiAlpha(code2) &&
|
|
32864
|
-
|
|
32842
|
+
if (asciiAlpha(code2) && buffer2.length < 5) {
|
|
32843
|
+
buffer2 += String.fromCodePoint(code2);
|
|
32865
32844
|
effects.consume(code2);
|
|
32866
32845
|
return protocolPrefixInside;
|
|
32867
32846
|
}
|
|
32868
32847
|
if (code2 === 58) {
|
|
32869
|
-
const protocol =
|
|
32848
|
+
const protocol = buffer2.toLowerCase();
|
|
32870
32849
|
if (protocol === "http" || protocol === "https") {
|
|
32871
32850
|
effects.consume(code2);
|
|
32872
32851
|
return protocolSlashesInside;
|
|
@@ -34796,7 +34775,7 @@ function tokenizeHtmlFlow(effects, ok2, nok) {
|
|
|
34796
34775
|
const self2 = this;
|
|
34797
34776
|
let marker2;
|
|
34798
34777
|
let closingTag;
|
|
34799
|
-
let
|
|
34778
|
+
let buffer2;
|
|
34800
34779
|
let index2;
|
|
34801
34780
|
let markerB;
|
|
34802
34781
|
return start;
|
|
@@ -34826,7 +34805,7 @@ function tokenizeHtmlFlow(effects, ok2, nok) {
|
|
|
34826
34805
|
}
|
|
34827
34806
|
if (asciiAlpha(code2)) {
|
|
34828
34807
|
effects.consume(code2);
|
|
34829
|
-
|
|
34808
|
+
buffer2 = String.fromCharCode(code2);
|
|
34830
34809
|
return tagName;
|
|
34831
34810
|
}
|
|
34832
34811
|
return nok(code2);
|
|
@@ -34871,7 +34850,7 @@ function tokenizeHtmlFlow(effects, ok2, nok) {
|
|
|
34871
34850
|
function tagCloseStart(code2) {
|
|
34872
34851
|
if (asciiAlpha(code2)) {
|
|
34873
34852
|
effects.consume(code2);
|
|
34874
|
-
|
|
34853
|
+
buffer2 = String.fromCharCode(code2);
|
|
34875
34854
|
return tagName;
|
|
34876
34855
|
}
|
|
34877
34856
|
return nok(code2);
|
|
@@ -34879,12 +34858,12 @@ function tokenizeHtmlFlow(effects, ok2, nok) {
|
|
|
34879
34858
|
function tagName(code2) {
|
|
34880
34859
|
if (code2 === null || code2 === 47 || code2 === 62 || markdownLineEndingOrSpace(code2)) {
|
|
34881
34860
|
const slash = code2 === 47;
|
|
34882
|
-
const name2 =
|
|
34861
|
+
const name2 = buffer2.toLowerCase();
|
|
34883
34862
|
if (!slash && !closingTag && htmlRawNames.includes(name2)) {
|
|
34884
34863
|
marker2 = 1;
|
|
34885
34864
|
return self2.interrupt ? ok2(code2) : continuation(code2);
|
|
34886
34865
|
}
|
|
34887
|
-
if (htmlBlockNames.includes(
|
|
34866
|
+
if (htmlBlockNames.includes(buffer2.toLowerCase())) {
|
|
34888
34867
|
marker2 = 6;
|
|
34889
34868
|
if (slash) {
|
|
34890
34869
|
effects.consume(code2);
|
|
@@ -34897,7 +34876,7 @@ function tokenizeHtmlFlow(effects, ok2, nok) {
|
|
|
34897
34876
|
}
|
|
34898
34877
|
if (code2 === 45 || asciiAlphanumeric(code2)) {
|
|
34899
34878
|
effects.consume(code2);
|
|
34900
|
-
|
|
34879
|
+
buffer2 += String.fromCharCode(code2);
|
|
34901
34880
|
return tagName;
|
|
34902
34881
|
}
|
|
34903
34882
|
return nok(code2);
|
|
@@ -35064,23 +35043,23 @@ function tokenizeHtmlFlow(effects, ok2, nok) {
|
|
|
35064
35043
|
function continuationRawTagOpen(code2) {
|
|
35065
35044
|
if (code2 === 47) {
|
|
35066
35045
|
effects.consume(code2);
|
|
35067
|
-
|
|
35046
|
+
buffer2 = "";
|
|
35068
35047
|
return continuationRawEndTag;
|
|
35069
35048
|
}
|
|
35070
35049
|
return continuation(code2);
|
|
35071
35050
|
}
|
|
35072
35051
|
function continuationRawEndTag(code2) {
|
|
35073
35052
|
if (code2 === 62) {
|
|
35074
|
-
const name2 =
|
|
35053
|
+
const name2 = buffer2.toLowerCase();
|
|
35075
35054
|
if (htmlRawNames.includes(name2)) {
|
|
35076
35055
|
effects.consume(code2);
|
|
35077
35056
|
return continuationClose;
|
|
35078
35057
|
}
|
|
35079
35058
|
return continuation(code2);
|
|
35080
35059
|
}
|
|
35081
|
-
if (asciiAlpha(code2) &&
|
|
35060
|
+
if (asciiAlpha(code2) && buffer2.length < 8) {
|
|
35082
35061
|
effects.consume(code2);
|
|
35083
|
-
|
|
35062
|
+
buffer2 += String.fromCharCode(code2);
|
|
35084
35063
|
return continuationRawEndTag;
|
|
35085
35064
|
}
|
|
35086
35065
|
return continuation(code2);
|
|
@@ -38950,7 +38929,7 @@ function postprocess(events) {
|
|
|
38950
38929
|
const search = /[\0\t\n\r]/g;
|
|
38951
38930
|
function preprocess() {
|
|
38952
38931
|
let column = 1;
|
|
38953
|
-
let
|
|
38932
|
+
let buffer2 = "";
|
|
38954
38933
|
let start = true;
|
|
38955
38934
|
let atCarriageReturn;
|
|
38956
38935
|
return preprocessor;
|
|
@@ -38961,9 +38940,9 @@ function preprocess() {
|
|
|
38961
38940
|
let startPosition;
|
|
38962
38941
|
let endPosition;
|
|
38963
38942
|
let code2;
|
|
38964
|
-
value =
|
|
38943
|
+
value = buffer2 + (typeof value === "string" ? value.toString() : new TextDecoder(encoding || void 0).decode(value));
|
|
38965
38944
|
startPosition = 0;
|
|
38966
|
-
|
|
38945
|
+
buffer2 = "";
|
|
38967
38946
|
if (start) {
|
|
38968
38947
|
if (value.charCodeAt(0) === 65279) {
|
|
38969
38948
|
startPosition++;
|
|
@@ -38976,7 +38955,7 @@ function preprocess() {
|
|
|
38976
38955
|
endPosition = match && match.index !== void 0 ? match.index : value.length;
|
|
38977
38956
|
code2 = value.charCodeAt(endPosition);
|
|
38978
38957
|
if (!match) {
|
|
38979
|
-
|
|
38958
|
+
buffer2 = value.slice(startPosition);
|
|
38980
38959
|
break;
|
|
38981
38960
|
}
|
|
38982
38961
|
if (code2 === 10 && startPosition === endPosition && atCarriageReturn) {
|
|
@@ -39018,7 +38997,7 @@ function preprocess() {
|
|
|
39018
38997
|
}
|
|
39019
38998
|
if (end) {
|
|
39020
38999
|
if (atCarriageReturn) chunks.push(-5);
|
|
39021
|
-
if (
|
|
39000
|
+
if (buffer2) chunks.push(buffer2);
|
|
39022
39001
|
chunks.push(null);
|
|
39023
39002
|
}
|
|
39024
39003
|
return chunks;
|
|
@@ -39045,26 +39024,26 @@ function compiler(options) {
|
|
|
39045
39024
|
characterEscape: onenterdata,
|
|
39046
39025
|
characterReference: onenterdata,
|
|
39047
39026
|
codeFenced: opener(codeFlow),
|
|
39048
|
-
codeFencedFenceInfo:
|
|
39049
|
-
codeFencedFenceMeta:
|
|
39050
|
-
codeIndented: opener(codeFlow,
|
|
39051
|
-
codeText: opener(codeText2,
|
|
39027
|
+
codeFencedFenceInfo: buffer2,
|
|
39028
|
+
codeFencedFenceMeta: buffer2,
|
|
39029
|
+
codeIndented: opener(codeFlow, buffer2),
|
|
39030
|
+
codeText: opener(codeText2, buffer2),
|
|
39052
39031
|
codeTextData: onenterdata,
|
|
39053
39032
|
data: onenterdata,
|
|
39054
39033
|
codeFlowValue: onenterdata,
|
|
39055
39034
|
definition: opener(definition2),
|
|
39056
|
-
definitionDestinationString:
|
|
39057
|
-
definitionLabelString:
|
|
39058
|
-
definitionTitleString:
|
|
39035
|
+
definitionDestinationString: buffer2,
|
|
39036
|
+
definitionLabelString: buffer2,
|
|
39037
|
+
definitionTitleString: buffer2,
|
|
39059
39038
|
emphasis: opener(emphasis2),
|
|
39060
39039
|
hardBreakEscape: opener(hardBreak2),
|
|
39061
39040
|
hardBreakTrailing: opener(hardBreak2),
|
|
39062
|
-
htmlFlow: opener(html2,
|
|
39041
|
+
htmlFlow: opener(html2, buffer2),
|
|
39063
39042
|
htmlFlowData: onenterdata,
|
|
39064
|
-
htmlText: opener(html2,
|
|
39043
|
+
htmlText: opener(html2, buffer2),
|
|
39065
39044
|
htmlTextData: onenterdata,
|
|
39066
39045
|
image: opener(image2),
|
|
39067
|
-
label:
|
|
39046
|
+
label: buffer2,
|
|
39068
39047
|
link: opener(link2),
|
|
39069
39048
|
listItem: opener(listItem2),
|
|
39070
39049
|
listItemValue: onenterlistitemvalue,
|
|
@@ -39072,9 +39051,9 @@ function compiler(options) {
|
|
|
39072
39051
|
listUnordered: opener(list2),
|
|
39073
39052
|
paragraph: opener(paragraph2),
|
|
39074
39053
|
reference: onenterreference,
|
|
39075
|
-
referenceString:
|
|
39076
|
-
resourceDestinationString:
|
|
39077
|
-
resourceTitleString:
|
|
39054
|
+
referenceString: buffer2,
|
|
39055
|
+
resourceDestinationString: buffer2,
|
|
39056
|
+
resourceTitleString: buffer2,
|
|
39078
39057
|
setextHeading: opener(heading2),
|
|
39079
39058
|
strong: opener(strong2),
|
|
39080
39059
|
thematicBreak: opener(thematicBreak2)
|
|
@@ -39145,7 +39124,7 @@ function compiler(options) {
|
|
|
39145
39124
|
config: config2,
|
|
39146
39125
|
enter,
|
|
39147
39126
|
exit: exit2,
|
|
39148
|
-
buffer,
|
|
39127
|
+
buffer: buffer2,
|
|
39149
39128
|
resume,
|
|
39150
39129
|
data
|
|
39151
39130
|
};
|
|
@@ -39289,7 +39268,7 @@ function compiler(options) {
|
|
|
39289
39268
|
if (and) and.call(this, token);
|
|
39290
39269
|
}
|
|
39291
39270
|
}
|
|
39292
|
-
function
|
|
39271
|
+
function buffer2() {
|
|
39293
39272
|
this.stack.push({
|
|
39294
39273
|
type: "fragment",
|
|
39295
39274
|
children: []
|
|
@@ -42237,7 +42216,7 @@ ${c}` : c;
|
|
|
42237
42216
|
}
|
|
42238
42217
|
}
|
|
42239
42218
|
list(e) {
|
|
42240
|
-
var _a3,
|
|
42219
|
+
var _a3, _b2;
|
|
42241
42220
|
let t = this.rules.block.list.exec(e);
|
|
42242
42221
|
if (t) {
|
|
42243
42222
|
let n = t[1].trim(), r2 = n.length > 1, i = { type: "list", raw: "", ordered: r2, start: r2 ? +n.slice(0, -1) : "", loose: false, items: [] };
|
|
@@ -42276,7 +42255,7 @@ ${c}` : c;
|
|
|
42276
42255
|
i.raw = i.raw.trimEnd();
|
|
42277
42256
|
for (let l of i.items) {
|
|
42278
42257
|
if (this.lexer.state.top = false, l.tokens = this.lexer.blockTokens(l.text, []), l.task) {
|
|
42279
|
-
if (l.text = l.text.replace(this.rules.other.listReplaceTask, ""), ((_a3 = l.tokens[0]) == null ? void 0 : _a3.type) === "text" || ((
|
|
42258
|
+
if (l.text = l.text.replace(this.rules.other.listReplaceTask, ""), ((_a3 = l.tokens[0]) == null ? void 0 : _a3.type) === "text" || ((_b2 = l.tokens[0]) == null ? void 0 : _b2.type) === "paragraph") {
|
|
42280
42259
|
l.tokens[0].raw = l.tokens[0].raw.replace(this.rules.other.listReplaceTask, ""), l.tokens[0].text = l.tokens[0].text.replace(this.rules.other.listReplaceTask, "");
|
|
42281
42260
|
for (let c = this.lexer.inlineQueue.length - 1; c >= 0; c--) if (this.rules.other.listIsTask.test(this.lexer.inlineQueue[c].src)) {
|
|
42282
42261
|
this.lexer.inlineQueue[c].src = this.lexer.inlineQueue[c].src.replace(this.rules.other.listReplaceTask, "");
|
|
@@ -42500,10 +42479,10 @@ var x = class u2 {
|
|
|
42500
42479
|
return this.inlineQueue = [], this.tokens;
|
|
42501
42480
|
}
|
|
42502
42481
|
blockTokens(e, t = [], n = false) {
|
|
42503
|
-
var _a3,
|
|
42482
|
+
var _a3, _b2, _c;
|
|
42504
42483
|
for (this.options.pedantic && (e = e.replace(m.tabCharGlobal, " ").replace(m.spaceLine, "")); e; ) {
|
|
42505
42484
|
let r2;
|
|
42506
|
-
if ((
|
|
42485
|
+
if ((_b2 = (_a3 = this.options.extensions) == null ? void 0 : _a3.block) == null ? void 0 : _b2.some((s2) => (r2 = s2.call({ lexer: this }, e, t)) ? (e = e.substring(r2.raw.length), t.push(r2), true) : false)) continue;
|
|
42507
42486
|
if (r2 = this.tokenizer.space(e)) {
|
|
42508
42487
|
e = e.substring(r2.raw.length);
|
|
42509
42488
|
let s2 = t.at(-1);
|
|
@@ -42599,7 +42578,7 @@ var x = class u2 {
|
|
|
42599
42578
|
return this.inlineQueue.push({ src: e, tokens: t }), t;
|
|
42600
42579
|
}
|
|
42601
42580
|
inlineTokens(e, t = []) {
|
|
42602
|
-
var _a3,
|
|
42581
|
+
var _a3, _b2, _c, _d, _e2;
|
|
42603
42582
|
let n = e, r2 = null;
|
|
42604
42583
|
if (this.tokens.links) {
|
|
42605
42584
|
let o = Object.keys(this.tokens.links);
|
|
@@ -42608,7 +42587,7 @@ var x = class u2 {
|
|
|
42608
42587
|
for (; (r2 = this.tokenizer.rules.inline.anyPunctuation.exec(n)) != null; ) n = n.slice(0, r2.index) + "++" + n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
|
|
42609
42588
|
let i;
|
|
42610
42589
|
for (; (r2 = this.tokenizer.rules.inline.blockSkip.exec(n)) != null; ) i = r2[2] ? r2[2].length : 0, n = n.slice(0, r2.index + i) + "[" + "a".repeat(r2[0].length - i - 2) + "]" + n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
|
|
42611
|
-
n = ((
|
|
42590
|
+
n = ((_b2 = (_a3 = this.options.hooks) == null ? void 0 : _a3.emStrongMask) == null ? void 0 : _b2.call({ lexer: this }, n)) ?? n;
|
|
42612
42591
|
let s2 = false, a2 = "";
|
|
42613
42592
|
for (; e; ) {
|
|
42614
42593
|
s2 || (a2 = ""), s2 = false;
|
|
@@ -42845,11 +42824,11 @@ var b = class u3 {
|
|
|
42845
42824
|
return new u3(t).parseInline(e);
|
|
42846
42825
|
}
|
|
42847
42826
|
parse(e) {
|
|
42848
|
-
var _a3,
|
|
42827
|
+
var _a3, _b2;
|
|
42849
42828
|
let t = "";
|
|
42850
42829
|
for (let n = 0; n < e.length; n++) {
|
|
42851
42830
|
let r2 = e[n];
|
|
42852
|
-
if ((
|
|
42831
|
+
if ((_b2 = (_a3 = this.options.extensions) == null ? void 0 : _a3.renderers) == null ? void 0 : _b2[r2.type]) {
|
|
42853
42832
|
let s2 = r2, a2 = this.options.extensions.renderers[s2.type].call({ parser: this }, s2);
|
|
42854
42833
|
if (a2 !== false || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "def", "paragraph", "text"].includes(s2.type)) {
|
|
42855
42834
|
t += a2 || "";
|
|
@@ -42916,11 +42895,11 @@ var b = class u3 {
|
|
|
42916
42895
|
return t;
|
|
42917
42896
|
}
|
|
42918
42897
|
parseInline(e, t = this.renderer) {
|
|
42919
|
-
var _a3,
|
|
42898
|
+
var _a3, _b2;
|
|
42920
42899
|
let n = "";
|
|
42921
42900
|
for (let r2 = 0; r2 < e.length; r2++) {
|
|
42922
42901
|
let i = e[r2];
|
|
42923
|
-
if ((
|
|
42902
|
+
if ((_b2 = (_a3 = this.options.extensions) == null ? void 0 : _a3.renderers) == null ? void 0 : _b2[i.type]) {
|
|
42924
42903
|
let a2 = this.options.extensions.renderers[i.type].call({ parser: this }, i);
|
|
42925
42904
|
if (a2 !== false || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(i.type)) {
|
|
42926
42905
|
n += a2 || "";
|
|
@@ -42983,7 +42962,7 @@ var b = class u3 {
|
|
|
42983
42962
|
return n;
|
|
42984
42963
|
}
|
|
42985
42964
|
};
|
|
42986
|
-
var P = (
|
|
42965
|
+
var P = (_b = class {
|
|
42987
42966
|
constructor(e) {
|
|
42988
42967
|
__publicField(this, "options");
|
|
42989
42968
|
__publicField(this, "block");
|
|
@@ -43007,7 +42986,7 @@ var P = (_a2 = class {
|
|
|
43007
42986
|
provideParser() {
|
|
43008
42987
|
return this.block ? b.parse : b.parseInline;
|
|
43009
42988
|
}
|
|
43010
|
-
}, __publicField(
|
|
42989
|
+
}, __publicField(_b, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), __publicField(_b, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), _b);
|
|
43011
42990
|
var B = class {
|
|
43012
42991
|
constructor(...e) {
|
|
43013
42992
|
__publicField(this, "defaults", M());
|
|
@@ -43023,7 +43002,7 @@ var B = class {
|
|
|
43023
43002
|
this.use(...e);
|
|
43024
43003
|
}
|
|
43025
43004
|
walkTokens(e, t) {
|
|
43026
|
-
var _a3,
|
|
43005
|
+
var _a3, _b2;
|
|
43027
43006
|
let n = [];
|
|
43028
43007
|
for (let r2 of e) switch (n = n.concat(t.call(this, r2)), r2.type) {
|
|
43029
43008
|
case "table": {
|
|
@@ -43039,7 +43018,7 @@ var B = class {
|
|
|
43039
43018
|
}
|
|
43040
43019
|
default: {
|
|
43041
43020
|
let i = r2;
|
|
43042
|
-
((
|
|
43021
|
+
((_b2 = (_a3 = this.defaults.extensions) == null ? void 0 : _a3.childTokens) == null ? void 0 : _b2[i.type]) ? this.defaults.extensions.childTokens[i.type].forEach((s2) => {
|
|
43043
43022
|
let a2 = i[s2].flat(1 / 0);
|
|
43044
43023
|
n = n.concat(this.walkTokens(a2, t));
|
|
43045
43024
|
}) : i.tokens && (n = n.concat(this.walkTokens(i.tokens, t)));
|
|
@@ -43303,7 +43282,7 @@ var tn = f("block", "before:content-[counter(line)]", "before:inline-block", "be
|
|
|
43303
43282
|
var et = ({ className: e, language: t, style: o, isIncomplete: n, ...s2 }) => jsxRuntimeExports.jsx("div", { className: f("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2", e), "data-incomplete": n || void 0, "data-language": t, "data-streamdown": "code-block", style: { contentVisibility: "auto", containIntrinsicSize: "auto 200px", ...o }, ...s2 });
|
|
43304
43283
|
var Se = reactExports.createContext({ code: "" }), de = () => reactExports.useContext(Se);
|
|
43305
43284
|
var ot = ({ language: e }) => jsxRuntimeExports.jsx("div", { className: "flex h-8 items-center text-muted-foreground text-xs", "data-language": e, "data-streamdown": "code-block-header", children: jsxRuntimeExports.jsx("span", { className: "ml-1 font-mono lowercase", children: e }) });
|
|
43306
|
-
var cn$1 = /\n+$/, dn = reactExports.lazy(() => __vitePreload(() => import("./highlighted-body-B3W2YXNL-
|
|
43285
|
+
var cn$1 = /\n+$/, dn = reactExports.lazy(() => __vitePreload(() => import("./highlighted-body-B3W2YXNL-BEqiCpJd.js"), true ? __vite__mapDeps([3,2]) : void 0).then((e) => ({ default: e.HighlightedCodeBlockBody }))), rt = ({ code: e, language: t, className: o, children: n, isIncomplete: s2 = false, ...r2 }) => {
|
|
43307
43286
|
let i = reactExports.useMemo(() => e.replace(cn$1, ""), [e]), c = reactExports.useMemo(() => ({ bg: "transparent", fg: "inherit", tokens: i.split(`
|
|
43308
43287
|
`).map((a2) => [{ content: a2, color: "inherit", bgColor: "transparent", htmlStyle: {}, offset: 0 }]) }), [i]);
|
|
43309
43288
|
return jsxRuntimeExports.jsx(Se.Provider, { value: { code: e }, children: jsxRuntimeExports.jsxs(et, { isIncomplete: s2, language: t, children: [jsxRuntimeExports.jsx(ot, { language: t }), n ? jsxRuntimeExports.jsx("div", { className: "pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end", children: jsxRuntimeExports.jsx("div", { className: "pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur", "data-streamdown": "code-block-actions", children: n }) }) : null, jsxRuntimeExports.jsx(reactExports.Suspense, { fallback: jsxRuntimeExports.jsx(Qe, { className: o, language: t, result: c, ...r2 }), children: jsxRuntimeExports.jsx(dn, { className: o, code: i, language: t, raw: c, ...r2 }) })] }) });
|
|
@@ -44072,6 +44051,13 @@ SidebarDataContext.displayName = "SidebarDataContext";
|
|
|
44072
44051
|
function SidebarDataProvider({ value, children: children2 }) {
|
|
44073
44052
|
return jsxRuntimeExports.jsx(SidebarDataContext.Provider, { value, children: children2 });
|
|
44074
44053
|
}
|
|
44054
|
+
function useSidebarData() {
|
|
44055
|
+
const ctx = reactExports.useContext(SidebarDataContext);
|
|
44056
|
+
if (!ctx) {
|
|
44057
|
+
throw new Error("useSidebarData must be used within a SidebarDataProvider");
|
|
44058
|
+
}
|
|
44059
|
+
return ctx;
|
|
44060
|
+
}
|
|
44075
44061
|
function useSidebarDataOptional() {
|
|
44076
44062
|
return reactExports.useContext(SidebarDataContext);
|
|
44077
44063
|
}
|
|
@@ -45364,10 +45350,10 @@ const IconButton = reactExports.forwardRef(({ className, variant, size: size2, t
|
|
|
45364
45350
|
IconButton.displayName = "IconButton";
|
|
45365
45351
|
const ATTR_FILTER_REGEX = /(?:^|\s)(?<pair>(?<key>[\w.]+):(?<value>\S*))/g;
|
|
45366
45352
|
function parseSpanSearchQuery(rawQuery) {
|
|
45367
|
-
var _a3,
|
|
45353
|
+
var _a3, _b2, _c;
|
|
45368
45354
|
const attributes = [];
|
|
45369
45355
|
for (const match of rawQuery.matchAll(ATTR_FILTER_REGEX)) {
|
|
45370
|
-
const key = (
|
|
45356
|
+
const key = (_b2 = (_a3 = match.groups) == null ? void 0 : _a3.key) == null ? void 0 : _b2.trim();
|
|
45371
45357
|
if (!key)
|
|
45372
45358
|
continue;
|
|
45373
45359
|
attributes.push({
|
|
@@ -45946,7 +45932,7 @@ function PlainBar({ bg, border, label }) {
|
|
|
45946
45932
|
}
|
|
45947
45933
|
function SegmentBar({ segments }) {
|
|
45948
45934
|
return jsxRuntimeExports.jsx("div", { className: "relative h-6 w-full", children: segments.map((seg, i) => {
|
|
45949
|
-
const label =
|
|
45935
|
+
const label = formatDurationPrecise(seg.fullDurationMs);
|
|
45950
45936
|
const showLabel = seg.pixelWidth >= Math.max(40, label.length * 6 + 12);
|
|
45951
45937
|
const isNarrowQueued = seg.status === "queued" && seg.pixelWidth < 20;
|
|
45952
45938
|
const overrideBg = isNarrowQueued ? "var(--ds-gray-400)" : void 0;
|
|
@@ -45958,7 +45944,7 @@ function SegmentBar({ segments }) {
|
|
|
45958
45944
|
minWidth: 1,
|
|
45959
45945
|
background: overrideBg,
|
|
45960
45946
|
borderColor: overrideBorder
|
|
45961
|
-
}, children: showLabel ? jsxRuntimeExports.jsx(DurationLabel, { label }) : null },
|
|
45947
|
+
}, children: showLabel ? jsxRuntimeExports.jsx(DurationLabel, { label }) : null }, i);
|
|
45962
45948
|
}) });
|
|
45963
45949
|
}
|
|
45964
45950
|
const TimelineBar = reactExports.memo(function TimelineBar2({ span, viewStart, viewDuration, containerWidth, isSelected, isDimmed, onSelect }) {
|
|
@@ -45974,7 +45960,7 @@ const TimelineBar = reactExports.memo(function TimelineBar2({ span, viewStart, v
|
|
|
45974
45960
|
const colors = getResourceColor(span.resource);
|
|
45975
45961
|
const fallbackBg = isErrored ? colors.errorBg ?? "var(--ds-red-200)" : colors.bg;
|
|
45976
45962
|
const fallbackBorder = isErrored ? colors.errorBorder ?? "var(--ds-red-500)" : colors.border;
|
|
45977
|
-
const totalLabel =
|
|
45963
|
+
const totalLabel = formatDurationPrecise(totalDurationMs);
|
|
45978
45964
|
const showTotalLabel = geometry.visiblePixelWidth >= Math.max(40, totalLabel.length * 6 + 12);
|
|
45979
45965
|
const handleClick = reactExports.useCallback(() => {
|
|
45980
45966
|
onSelect(span.spanId);
|
|
@@ -45993,7 +45979,7 @@ const DeltaIndicator = reactExports.memo(function DeltaIndicator2({ leftFrac, ri
|
|
|
45993
45979
|
}, children: [jsxRuntimeExports.jsx("div", { className: "absolute left-0 top-0 w-px h-full bg-amber-800" }), jsxRuntimeExports.jsx("div", { className: "absolute left-0 right-0 top-1/2 h-px bg-amber-800" }), jsxRuntimeExports.jsx("div", { className: "absolute right-0 top-0 w-px h-full bg-amber-800" }), jsxRuntimeExports.jsx("span", { className: "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-label-12 leading-none whitespace-nowrap rounded-xs px-1 py-0.5 text-gray-100 bg-amber-800", children: label })] });
|
|
45994
45980
|
});
|
|
45995
45981
|
function TimelineHeader({ markers: markers2, hoverInfo: hoverInfo2 }) {
|
|
45996
|
-
return jsxRuntimeExports.jsx("div", { className: "relative bg-background-100 border-b border-gray-alpha-400 h-10 min-h-10 flex items-end px-4 pb-1", children: jsxRuntimeExports.jsxs("div", { className: "relative h-full flex-1", children: [markers2.map((m2) => jsxRuntimeExports.jsx("span", { className: "absolute bottom-1 font-mono text-xs font-normal leading-4 text-gray-900 whitespace-nowrap", style: { left: `${m2.position * 100}%` }, children: m2.label },
|
|
45982
|
+
return jsxRuntimeExports.jsx("div", { className: "relative bg-background-100 border-b border-gray-alpha-400 h-10 min-h-10 flex items-end px-4 pb-1", children: jsxRuntimeExports.jsxs("div", { className: "relative h-full flex-1", children: [markers2.map((m2) => jsxRuntimeExports.jsx("span", { className: "absolute bottom-1 font-mono text-xs font-normal leading-4 text-gray-900 whitespace-nowrap", style: { left: `${m2.position * 100}%` }, children: m2.label }, String(m2.value))), hoverInfo2 && jsxRuntimeExports.jsx("span", { className: "absolute top-1 pointer-events-none z-10 font-mono text-[11px] leading-4 text-gray-1000 whitespace-nowrap bg-background-100 border border-gray-alpha-400 rounded px-1 -translate-x-1/2", style: { left: `${hoverInfo2.fraction * 100}%` }, children: hoverInfo2.label })] }) });
|
|
45997
45983
|
}
|
|
45998
45984
|
function Timeline({ spans, viewStart, viewEnd, markers: markers2, selectedId, searchResult, onSelect, hoverFraction, altHeld = false }) {
|
|
45999
45985
|
const containerRef = reactExports.useRef(null);
|
|
@@ -46014,7 +46000,7 @@ function Timeline({ spans, viewStart, viewEnd, markers: markers2, selectedId, se
|
|
|
46014
46000
|
const gaps = reactExports.useMemo(() => computeSpanGaps(spans, viewStart, viewEnd), [spans, viewStart, viewEnd]);
|
|
46015
46001
|
return jsxRuntimeExports.jsxs("div", { ref: containerRef, className: "relative h-full overflow-hidden", style: { minHeight: spans.length * ROW_HEIGHT_PX }, children: [jsxRuntimeExports.jsx("div", { "aria-hidden": true, className: "absolute inset-y-0 pointer-events-none", style: TIMELINE_INSET_STYLE, children: markers2.map((marker2) => (
|
|
46016
46002
|
// Skip the "0s" origin marker since the left edge already implies it.
|
|
46017
|
-
Math.abs(marker2.value) > 1e-6 ? jsxRuntimeExports.jsx("div", { className: "absolute top-0 bottom-0 w-px bg-gray-alpha-300", style: { left: `${marker2.position * 100}%` } },
|
|
46003
|
+
Math.abs(marker2.value) > 1e-6 ? jsxRuntimeExports.jsx("div", { className: "absolute top-0 bottom-0 w-px bg-gray-alpha-300", style: { left: `${marker2.position * 100}%` } }, String(marker2.value)) : null
|
|
46018
46004
|
)) }), hoverFraction != null && jsxRuntimeExports.jsx("div", { className: "absolute inset-y-0 pointer-events-none z-10", style: TIMELINE_INSET_STYLE, children: jsxRuntimeExports.jsx("div", { className: "absolute top-0 bottom-0 w-px bg-gray-alpha-500", style: { left: `${hoverFraction * 100}%` } }) }), jsxRuntimeExports.jsx("div", { style: { transform: `translateY(${start * ROW_HEIGHT_PX}px)` }, children: spans.slice(start, end).map((span) => jsxRuntimeExports.jsx(TimelineBar, { span, viewStart, viewDuration, containerWidth: timelineWidth, isSelected: selectedId === span.spanId, isDimmed: isSpanDimmedBySearch(span.spanId, searchResult), onSelect }, span.spanId)) }), altHeld && jsxRuntimeExports.jsx("div", { "aria-hidden": true, className: "absolute inset-y-0 pointer-events-none", style: TIMELINE_INSET_STYLE, children: gaps.map((gap) => jsxRuntimeExports.jsx(DeltaIndicator, { leftFrac: gap.leftFrac, rightFrac: gap.rightFrac, label: formatDuration(gap.gapMs, true), rowIndex: gap.rowIndex }, gap.rowIndex)) })] });
|
|
46019
46005
|
}
|
|
46020
46006
|
const TooltipProvider = Provider;
|
|
@@ -46208,13 +46194,13 @@ function mergeProps(slotProps, childProps) {
|
|
|
46208
46194
|
return { ...slotProps, ...overrideProps };
|
|
46209
46195
|
}
|
|
46210
46196
|
function getElementRef(element2) {
|
|
46211
|
-
var _a3,
|
|
46197
|
+
var _a3, _b2;
|
|
46212
46198
|
let getter = (_a3 = Object.getOwnPropertyDescriptor(element2.props, "ref")) == null ? void 0 : _a3.get;
|
|
46213
46199
|
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
46214
46200
|
if (mayWarn) {
|
|
46215
46201
|
return element2.ref;
|
|
46216
46202
|
}
|
|
46217
|
-
getter = (
|
|
46203
|
+
getter = (_b2 = Object.getOwnPropertyDescriptor(element2, "ref")) == null ? void 0 : _b2.get;
|
|
46218
46204
|
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
46219
46205
|
if (mayWarn) {
|
|
46220
46206
|
return element2.props.ref;
|
|
@@ -46996,15 +46982,15 @@ currentExtensions[0] = (dateString) => {
|
|
|
46996
46982
|
currentExtensions[1] = (epochSec) => {
|
|
46997
46983
|
return new Date(Math.round(epochSec * 1e3));
|
|
46998
46984
|
};
|
|
46999
|
-
currentExtensions[2] = (
|
|
46985
|
+
currentExtensions[2] = (buffer2) => {
|
|
47000
46986
|
let value = BigInt(0);
|
|
47001
|
-
for (let i = 0, l =
|
|
47002
|
-
value = BigInt(
|
|
46987
|
+
for (let i = 0, l = buffer2.byteLength; i < l; i++) {
|
|
46988
|
+
value = BigInt(buffer2[i]) + (value << BigInt(8));
|
|
47003
46989
|
}
|
|
47004
46990
|
return value;
|
|
47005
46991
|
};
|
|
47006
|
-
currentExtensions[3] = (
|
|
47007
|
-
return BigInt(-1) - currentExtensions[2](
|
|
46992
|
+
currentExtensions[3] = (buffer2) => {
|
|
46993
|
+
return BigInt(-1) - currentExtensions[2](buffer2);
|
|
47008
46994
|
};
|
|
47009
46995
|
currentExtensions[4] = (fraction) => {
|
|
47010
46996
|
return +(fraction[1] + "e" + fraction[0]);
|
|
@@ -47191,19 +47177,19 @@ function registerTypedArray(TypedArray, tag) {
|
|
|
47191
47177
|
if (!littleEndian && bytesPerElement == 1)
|
|
47192
47178
|
continue;
|
|
47193
47179
|
let sizeShift = bytesPerElement == 2 ? 1 : bytesPerElement == 4 ? 2 : bytesPerElement == 8 ? 3 : 0;
|
|
47194
|
-
currentExtensions[littleEndian ? tag : tag - 4] = bytesPerElement == 1 || littleEndian == isLittleEndianMachine$1 ? (
|
|
47180
|
+
currentExtensions[littleEndian ? tag : tag - 4] = bytesPerElement == 1 || littleEndian == isLittleEndianMachine$1 ? (buffer2) => {
|
|
47195
47181
|
if (!TypedArray)
|
|
47196
47182
|
throw new Error("Could not find typed array for code " + tag);
|
|
47197
47183
|
if (!currentDecoder.copyBuffers) {
|
|
47198
|
-
if (bytesPerElement === 1 || bytesPerElement === 2 && !(
|
|
47199
|
-
return new TypedArray(
|
|
47184
|
+
if (bytesPerElement === 1 || bytesPerElement === 2 && !(buffer2.byteOffset & 1) || bytesPerElement === 4 && !(buffer2.byteOffset & 3) || bytesPerElement === 8 && !(buffer2.byteOffset & 7))
|
|
47185
|
+
return new TypedArray(buffer2.buffer, buffer2.byteOffset, buffer2.byteLength >> sizeShift);
|
|
47200
47186
|
}
|
|
47201
|
-
return new TypedArray(Uint8Array.prototype.slice.call(
|
|
47202
|
-
} : (
|
|
47187
|
+
return new TypedArray(Uint8Array.prototype.slice.call(buffer2, 0).buffer);
|
|
47188
|
+
} : (buffer2) => {
|
|
47203
47189
|
if (!TypedArray)
|
|
47204
47190
|
throw new Error("Could not find typed array for code " + tag);
|
|
47205
|
-
let dv = new DataView(
|
|
47206
|
-
let elements =
|
|
47191
|
+
let dv = new DataView(buffer2.buffer, buffer2.byteOffset, buffer2.byteLength);
|
|
47192
|
+
let elements = buffer2.length >> sizeShift;
|
|
47207
47193
|
let ta = new TypedArray(elements);
|
|
47208
47194
|
let method = dv[dvMethod];
|
|
47209
47195
|
for (let i = 0; i < elements; i++) {
|
|
@@ -48152,8 +48138,8 @@ class Encoder extends Decoder {
|
|
|
48152
48138
|
}
|
|
48153
48139
|
}
|
|
48154
48140
|
}
|
|
48155
|
-
useBuffer(
|
|
48156
|
-
target =
|
|
48141
|
+
useBuffer(buffer2) {
|
|
48142
|
+
target = buffer2;
|
|
48157
48143
|
targetView = new DataView(target.buffer, target.byteOffset, target.byteLength);
|
|
48158
48144
|
position = 0;
|
|
48159
48145
|
}
|
|
@@ -48419,13 +48405,13 @@ function typedArrayEncoder(tag, size2) {
|
|
|
48419
48405
|
encode: function writeExtBuffer(typedArray, encode2) {
|
|
48420
48406
|
let length = typedArray.byteLength;
|
|
48421
48407
|
let offset2 = typedArray.byteOffset || 0;
|
|
48422
|
-
let
|
|
48423
|
-
encode2(hasNodeBuffer ? Buffer$1.from(
|
|
48408
|
+
let buffer2 = typedArray.buffer || typedArray;
|
|
48409
|
+
encode2(hasNodeBuffer ? Buffer$1.from(buffer2, offset2, length) : new Uint8Array(buffer2, offset2, length));
|
|
48424
48410
|
}
|
|
48425
48411
|
};
|
|
48426
48412
|
}
|
|
48427
|
-
function writeBuffer(
|
|
48428
|
-
let length =
|
|
48413
|
+
function writeBuffer(buffer2, makeRoom) {
|
|
48414
|
+
let length = buffer2.byteLength;
|
|
48429
48415
|
if (length < 24) {
|
|
48430
48416
|
target[position++] = 64 + length;
|
|
48431
48417
|
} else if (length < 256) {
|
|
@@ -48443,7 +48429,7 @@ function writeBuffer(buffer, makeRoom) {
|
|
|
48443
48429
|
if (position + length >= target.length) {
|
|
48444
48430
|
makeRoom(position + length);
|
|
48445
48431
|
}
|
|
48446
|
-
target.set(
|
|
48432
|
+
target.set(buffer2.buffer ? buffer2 : new Uint8Array(buffer2), position);
|
|
48447
48433
|
position += length;
|
|
48448
48434
|
}
|
|
48449
48435
|
function insertIds(serialized, idsToInsert) {
|
|
@@ -48496,8 +48482,8 @@ async function rpc(method, params) {
|
|
|
48496
48482
|
});
|
|
48497
48483
|
if (!res.ok) {
|
|
48498
48484
|
try {
|
|
48499
|
-
const
|
|
48500
|
-
const errorBody = decode(new Uint8Array(
|
|
48485
|
+
const buffer22 = await res.arrayBuffer();
|
|
48486
|
+
const errorBody = decode(new Uint8Array(buffer22));
|
|
48501
48487
|
if ((_a3 = errorBody == null ? void 0 : errorBody.error) == null ? void 0 : _a3.message) {
|
|
48502
48488
|
throw new Error(errorBody.error.message);
|
|
48503
48489
|
}
|
|
@@ -48510,8 +48496,8 @@ async function rpc(method, params) {
|
|
|
48510
48496
|
`RPC call ${method} failed: ${res.status} ${res.statusText}`
|
|
48511
48497
|
);
|
|
48512
48498
|
}
|
|
48513
|
-
const
|
|
48514
|
-
return decode(new Uint8Array(
|
|
48499
|
+
const buffer2 = await res.arrayBuffer();
|
|
48500
|
+
return decode(new Uint8Array(buffer2));
|
|
48515
48501
|
}
|
|
48516
48502
|
async function fetchRuns(worldEnv, params) {
|
|
48517
48503
|
return rpc("fetchRuns", { worldEnv, params });
|
|
@@ -48612,57 +48598,59 @@ export {
|
|
|
48612
48598
|
hasEncryptedFields as a7,
|
|
48613
48599
|
EVENT_DATA_REF_FIELDS as a8,
|
|
48614
48600
|
useSidebarDataOptional as a9,
|
|
48615
|
-
|
|
48616
|
-
|
|
48617
|
-
|
|
48618
|
-
|
|
48619
|
-
|
|
48620
|
-
|
|
48621
|
-
|
|
48622
|
-
|
|
48623
|
-
|
|
48624
|
-
|
|
48625
|
-
|
|
48626
|
-
|
|
48627
|
-
|
|
48628
|
-
|
|
48629
|
-
|
|
48630
|
-
|
|
48631
|
-
|
|
48632
|
-
|
|
48633
|
-
|
|
48634
|
-
|
|
48635
|
-
|
|
48636
|
-
|
|
48637
|
-
|
|
48638
|
-
|
|
48639
|
-
|
|
48601
|
+
fetchStreams as aA,
|
|
48602
|
+
Slot as aB,
|
|
48603
|
+
Slottable as aC,
|
|
48604
|
+
buttonVariants as aD,
|
|
48605
|
+
fetchEvent as aE,
|
|
48606
|
+
fetchEventsByCorrelationId as aF,
|
|
48607
|
+
isEncryptedData as aG,
|
|
48608
|
+
hydrateData as aH,
|
|
48609
|
+
getWebRevivers as aI,
|
|
48610
|
+
LIVE_UPDATE_INTERVAL_MS as aJ,
|
|
48611
|
+
getEncryptionKeyForRun as aK,
|
|
48612
|
+
StreamViewer as aL,
|
|
48613
|
+
composeRefs as aM,
|
|
48614
|
+
useFloating as aN,
|
|
48615
|
+
offset as aO,
|
|
48616
|
+
shift as aP,
|
|
48617
|
+
limitShift as aQ,
|
|
48618
|
+
flip as aR,
|
|
48619
|
+
size as aS,
|
|
48620
|
+
arrow as aT,
|
|
48621
|
+
hide as aU,
|
|
48622
|
+
autoUpdate as aV,
|
|
48623
|
+
cancelRun as aW,
|
|
48624
|
+
reenqueueRun as aX,
|
|
48625
|
+
wakeUpRun as aY,
|
|
48626
|
+
resumeHook as aZ,
|
|
48627
|
+
recreateRun as a_,
|
|
48640
48628
|
clsx as aa,
|
|
48641
48629
|
useRowWindow as ab,
|
|
48642
48630
|
isSpanDimmedBySearch as ac,
|
|
48643
48631
|
ROW_HEIGHT_PX as ad,
|
|
48644
48632
|
getSpanDurationMs as ae,
|
|
48645
|
-
|
|
48646
|
-
|
|
48647
|
-
|
|
48648
|
-
|
|
48649
|
-
|
|
48633
|
+
formatDurationPrecise as af,
|
|
48634
|
+
TooltipProvider as ag,
|
|
48635
|
+
ActiveSpanProvider as ah,
|
|
48636
|
+
useActiveSpan as ai,
|
|
48637
|
+
useSidebarData as aj,
|
|
48650
48638
|
searchSpans as ak,
|
|
48651
48639
|
computeRootBounds as al,
|
|
48652
48640
|
computeTimeMarkers as am,
|
|
48653
|
-
|
|
48654
|
-
|
|
48655
|
-
|
|
48656
|
-
|
|
48657
|
-
|
|
48658
|
-
|
|
48659
|
-
|
|
48660
|
-
|
|
48661
|
-
|
|
48662
|
-
|
|
48663
|
-
|
|
48664
|
-
|
|
48665
|
-
|
|
48641
|
+
getHighResInMs as an,
|
|
48642
|
+
TIMELINE_PADDING_PX as ao,
|
|
48643
|
+
Timeline as ap,
|
|
48644
|
+
TimelineHeader as aq,
|
|
48645
|
+
IconButton as ar,
|
|
48646
|
+
Tooltip$1 as as,
|
|
48647
|
+
TooltipTrigger$1 as at,
|
|
48648
|
+
TooltipContent$1 as au,
|
|
48649
|
+
SidebarDataProvider as av,
|
|
48650
|
+
hydrateResourceIOWithKey as aw,
|
|
48651
|
+
hydrateResourceIO as ax,
|
|
48652
|
+
fetchHook as ay,
|
|
48653
|
+
fetchStep as az,
|
|
48666
48654
|
TooltipContent as b,
|
|
48667
48655
|
createLucideIcon as c,
|
|
48668
48656
|
cn as d,
|