@oomol-lab/open-flow 0.1.0-beta.28 → 0.1.0-beta.29
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/browser/{createResourceDialog-C2ZLGPla.js → createResourceDialog-C_8I3Fua.js} +1 -1
- package/dist/browser/dist-CoszrK7m.js +4 -0
- package/dist/browser/{switch-DuB8aovT.js → editorComponent-Dq4IKp5R.js} +1222 -608
- package/dist/browser/flow-authoring-node.d.ts +3 -0
- package/dist/browser/flow-authoring.js +1388 -1555
- package/dist/browser/flow-change.d.ts +12 -7
- package/dist/browser/flow-change.js +966 -1105
- package/dist/browser/{flowChanges-Z49mslMz.js → flowChanges-BBtkyUGd.js} +1974 -1839
- package/dist/browser/{flowRunInputEditorStore-BBqQIOCR.js → flowRunInputEditorStore-CTORQcA2.js} +378 -429
- package/dist/browser/{flowWorkspace-DCaVDqtY.js → flowWorkspace-DNmBb3ZW.js} +52795 -52886
- package/dist/browser/{inputValues-CLnpqFAf.js → inputValues-BbSVOWQP.js} +2 -2
- package/dist/browser/{markdownContent-Bon8uhjM.js → markdownContent-D2oHGWc6.js} +1 -1
- package/dist/browser/ui.css +1 -1
- package/dist/browser/value-DPg_9yXB.js +93 -0
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.js +508 -507
- package/dist/browser/{workbenchSelect-DX9IFmX-.js → workbenchSelect-CQOvpteT.js} +1057 -1223
- package/dist/common/authoringExamples.d.ts +3 -2
- package/dist/common/control-api-conformance.js +1359 -1484
- package/dist/common/control-api.d.ts +5 -1
- package/dist/common/control-api.js +942 -1077
- package/dist/common/control-requests.js +751 -834
- package/dist/common/flow-encoding.js +1502 -1637
- package/dist/common/flow-graph.d.ts +18 -2
- package/dist/common/flow-semantics.js +1982 -2116
- package/dist/common/mcp.js +908 -1016
- package/dist/common/provider-triggers.js +2048 -2183
- package/dist/common/run-events.js +1 -0
- package/dist/common/scheduler.d.ts +2 -2
- package/dist/common/scheduler.js +1282 -1477
- package/package.json +1 -1
- package/dist/browser/dist-B_T-OpQp.js +0 -4
- package/dist/browser/languages-C0zQ4GSo.js +0 -42
|
@@ -1804,88 +1804,7 @@ function pi(e, t, n) {
|
|
|
1804
1804
|
}
|
|
1805
1805
|
return e.value = c.data, e;
|
|
1806
1806
|
}
|
|
1807
|
-
var mi = /*@__PURE__*/ D("$
|
|
1808
|
-
j.init(e, t);
|
|
1809
|
-
let n = t.items, r = O.memoizer;
|
|
1810
|
-
r?.attach(e), e._zod.parse = (i, a) => {
|
|
1811
|
-
let o = i.value;
|
|
1812
|
-
if (!Array.isArray(o)) return i.issues.push({
|
|
1813
|
-
input: o,
|
|
1814
|
-
inst: e,
|
|
1815
|
-
expected: "tuple",
|
|
1816
|
-
code: "invalid_type"
|
|
1817
|
-
}), i;
|
|
1818
|
-
i.value = r ? r.alloc(e, i, [], a) : [];
|
|
1819
|
-
let s = [], c = hi(n, "optin"), l = hi(n, "optout");
|
|
1820
|
-
if (!t.rest) {
|
|
1821
|
-
if (o.length < c) return i.issues.push({
|
|
1822
|
-
code: "too_small",
|
|
1823
|
-
minimum: c,
|
|
1824
|
-
inclusive: !0,
|
|
1825
|
-
input: o,
|
|
1826
|
-
inst: e,
|
|
1827
|
-
origin: "array"
|
|
1828
|
-
}), i;
|
|
1829
|
-
o.length > n.length && i.issues.push({
|
|
1830
|
-
code: "too_big",
|
|
1831
|
-
maximum: n.length,
|
|
1832
|
-
inclusive: !0,
|
|
1833
|
-
input: o,
|
|
1834
|
-
inst: e,
|
|
1835
|
-
origin: "array"
|
|
1836
|
-
});
|
|
1837
|
-
}
|
|
1838
|
-
let u = Array(n.length);
|
|
1839
|
-
for (let e = 0; e < n.length; e++) {
|
|
1840
|
-
let t = n[e]._zod.run({
|
|
1841
|
-
value: o[e],
|
|
1842
|
-
issues: []
|
|
1843
|
-
}, a);
|
|
1844
|
-
t instanceof Promise ? s.push(t.then((t) => {
|
|
1845
|
-
u[e] = t;
|
|
1846
|
-
})) : u[e] = t;
|
|
1847
|
-
}
|
|
1848
|
-
if (t.rest) {
|
|
1849
|
-
let e = n.length - 1, r = o.slice(n.length);
|
|
1850
|
-
for (let n of r) {
|
|
1851
|
-
e++;
|
|
1852
|
-
let r = t.rest._zod.run({
|
|
1853
|
-
value: n,
|
|
1854
|
-
issues: []
|
|
1855
|
-
}, a);
|
|
1856
|
-
r instanceof Promise ? s.push(r.then((t) => gi(t, i, e))) : gi(r, i, e);
|
|
1857
|
-
}
|
|
1858
|
-
}
|
|
1859
|
-
return s.length ? Promise.all(s).then(() => _i(u, i, n, o, l)) : _i(u, i, n, o, l);
|
|
1860
|
-
};
|
|
1861
|
-
});
|
|
1862
|
-
function hi(e, t) {
|
|
1863
|
-
for (let n = e.length - 1; n >= 0; n--) if (!(t === "optin" ? e[n]._zod.optin !== void 0 : e[n]._zod.optout === "optional")) return n + 1;
|
|
1864
|
-
return 0;
|
|
1865
|
-
}
|
|
1866
|
-
function gi(e, t, n) {
|
|
1867
|
-
e.issues.length && t.issues.push(...dt(n, e.issues)), t.value[n] = e.value;
|
|
1868
|
-
}
|
|
1869
|
-
function _i(e, t, n, r, i) {
|
|
1870
|
-
for (let a = 0; a < n.length; a++) {
|
|
1871
|
-
let o = e[a], s = a < r.length;
|
|
1872
|
-
if (!s && a >= i && n[a]._zod.optin === "optional") {
|
|
1873
|
-
t.value.length = a;
|
|
1874
|
-
break;
|
|
1875
|
-
}
|
|
1876
|
-
if (o.issues.length) {
|
|
1877
|
-
if (!s && a >= i) {
|
|
1878
|
-
t.value.length = a;
|
|
1879
|
-
break;
|
|
1880
|
-
}
|
|
1881
|
-
t.issues.push(...dt(a, o.issues));
|
|
1882
|
-
}
|
|
1883
|
-
t.value[a] = o.value;
|
|
1884
|
-
}
|
|
1885
|
-
for (let e = t.value.length - 1; e >= r.length && n[e]._zod.optout === "optional" && t.value[e] === void 0; e--) t.value.length = e;
|
|
1886
|
-
return t;
|
|
1887
|
-
}
|
|
1888
|
-
var vi = /*@__PURE__*/ D("$ZodRecord", (e, t) => {
|
|
1807
|
+
var mi = /*@__PURE__*/ D("$ZodRecord", (e, t) => {
|
|
1889
1808
|
j.init(e, t);
|
|
1890
1809
|
let n = O.memoizer;
|
|
1891
1810
|
n?.attach(e), e._zod.parse = (r, i) => {
|
|
@@ -1991,7 +1910,7 @@ var vi = /*@__PURE__*/ D("$ZodRecord", (e, t) => {
|
|
|
1991
1910
|
}
|
|
1992
1911
|
return o.length ? Promise.all(o).then(() => r) : r;
|
|
1993
1912
|
};
|
|
1994
|
-
}),
|
|
1913
|
+
}), hi = /*@__PURE__*/ D("$ZodEnum", (e, t) => {
|
|
1995
1914
|
j.init(e, t);
|
|
1996
1915
|
let n = Pe(t.entries), r = new Set(n);
|
|
1997
1916
|
e._zod.values = r;
|
|
@@ -2005,7 +1924,7 @@ var vi = /*@__PURE__*/ D("$ZodRecord", (e, t) => {
|
|
|
2005
1924
|
inst: e
|
|
2006
1925
|
}), t;
|
|
2007
1926
|
};
|
|
2008
|
-
}),
|
|
1927
|
+
}), gi = /*@__PURE__*/ D("$ZodLiteral", (e, t) => {
|
|
2009
1928
|
j.init(e, t);
|
|
2010
1929
|
let n = new Set(t.values);
|
|
2011
1930
|
e._zod.values = n, e._zod.pattern = RegExp(t.values.length ? `^(${t.values.map((e) => typeof e == "string" ? Ze(e) : e ? Ze(e.toString()) : String(e)).join("|")})$` : "^[^\\s\\S]$"), e._zod.parse = (r, i) => {
|
|
@@ -2017,7 +1936,7 @@ var vi = /*@__PURE__*/ D("$ZodRecord", (e, t) => {
|
|
|
2017
1936
|
inst: e
|
|
2018
1937
|
}), r;
|
|
2019
1938
|
};
|
|
2020
|
-
}),
|
|
1939
|
+
}), _i = /*@__PURE__*/ D("$ZodTransform", (e, t) => {
|
|
2021
1940
|
j.init(e, t), e._zod.optin = "optional", O.memoizer?.guard(e), e._zod.parse = (n, r) => {
|
|
2022
1941
|
if (r.direction === "backward") throw new It(e.constructor.name);
|
|
2023
1942
|
let i = t.transform(n.value, n);
|
|
@@ -2026,10 +1945,10 @@ var vi = /*@__PURE__*/ D("$ZodRecord", (e, t) => {
|
|
|
2026
1945
|
return n.value = i, n;
|
|
2027
1946
|
};
|
|
2028
1947
|
});
|
|
2029
|
-
function
|
|
1948
|
+
function vi(e, t) {
|
|
2030
1949
|
return e.value = t.issues.length ? void 0 : t.value, e;
|
|
2031
1950
|
}
|
|
2032
|
-
var
|
|
1951
|
+
var yi = /*@__PURE__*/ D("$ZodOptional", (e, t) => {
|
|
2033
1952
|
j.init(e, t), E(e, "optin", (e) => e.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), e._zod.optout = "optional", E(e, "values", (e) => {
|
|
2034
1953
|
let t = e.def.innerType._zod.values;
|
|
2035
1954
|
return t ? /* @__PURE__ */ new Set([...t, void 0]) : void 0;
|
|
@@ -2043,40 +1962,40 @@ var Ci = /*@__PURE__*/ D("$ZodOptional", (e, t) => {
|
|
|
2043
1962
|
value: e.value,
|
|
2044
1963
|
issues: []
|
|
2045
1964
|
}, n);
|
|
2046
|
-
return r instanceof Promise ? r.then((t) =>
|
|
1965
|
+
return r instanceof Promise ? r.then((t) => vi(e, t)) : vi(e, r);
|
|
2047
1966
|
}
|
|
2048
1967
|
return t.innerType._zod.run(e, n);
|
|
2049
1968
|
};
|
|
2050
|
-
}),
|
|
2051
|
-
|
|
2052
|
-
}),
|
|
1969
|
+
}), bi = /*@__PURE__*/ D("$ZodExactOptional", (e, t) => {
|
|
1970
|
+
yi.init(e, t), E(e, "values", (e) => e.def.innerType._zod.values), E(e, "pattern", (e) => e.def.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
|
|
1971
|
+
}), xi = /*@__PURE__*/ D("$ZodNullable", (e, t) => {
|
|
2053
1972
|
j.init(e, t), E(e, "optin", (e) => e.def.innerType._zod.optin), E(e, "optout", (e) => e.def.innerType._zod.optout), E(e, "pattern", (e) => {
|
|
2054
1973
|
let t = e.def.innerType._zod.pattern;
|
|
2055
1974
|
return t ? RegExp(`^(${ze(t.source)}|null)$`) : void 0;
|
|
2056
1975
|
}), E(e, "values", (e) => e.def.innerType._zod.values ? /* @__PURE__ */ new Set([...e.def.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
|
|
2057
|
-
}),
|
|
1976
|
+
}), Si = /*@__PURE__*/ D("$ZodDefault", (e, t) => {
|
|
2058
1977
|
j.init(e, t), e._zod.optin = "defaulted", E(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => {
|
|
2059
1978
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
2060
1979
|
if (e.value === void 0) return e.value = t.defaultValue, e;
|
|
2061
1980
|
let r = t.innerType._zod.run(e, n);
|
|
2062
|
-
return r instanceof Promise ? r.then((e) =>
|
|
1981
|
+
return r instanceof Promise ? r.then((e) => Ci(e, t)) : Ci(r, t);
|
|
2063
1982
|
};
|
|
2064
1983
|
});
|
|
2065
|
-
function
|
|
1984
|
+
function Ci(e, t) {
|
|
2066
1985
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
2067
1986
|
}
|
|
2068
|
-
var
|
|
1987
|
+
var wi = /*@__PURE__*/ D("$ZodPrefault", (e, t) => {
|
|
2069
1988
|
j.init(e, t), e._zod.optin = "defaulted", E(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
|
|
2070
|
-
}),
|
|
1989
|
+
}), Ti = /*@__PURE__*/ D("$ZodNonOptional", (e, t) => {
|
|
2071
1990
|
j.init(e, t), E(e, "values", (e) => {
|
|
2072
1991
|
let t = e.def.innerType._zod.values;
|
|
2073
1992
|
return t ? new Set([...t].filter((e) => e !== void 0)) : void 0;
|
|
2074
1993
|
}), e._zod.parse = (n, r) => {
|
|
2075
1994
|
let i = t.innerType._zod.run(n, r);
|
|
2076
|
-
return i instanceof Promise ? i.then((t) =>
|
|
1995
|
+
return i instanceof Promise ? i.then((t) => Ei(t, e)) : Ei(i, e);
|
|
2077
1996
|
};
|
|
2078
1997
|
});
|
|
2079
|
-
function
|
|
1998
|
+
function Ei(e, t) {
|
|
2080
1999
|
return !e.issues.length && e.value === void 0 && e.issues.push({
|
|
2081
2000
|
code: "invalid_type",
|
|
2082
2001
|
expected: "nonoptional",
|
|
@@ -2084,7 +2003,7 @@ function Ai(e, t) {
|
|
|
2084
2003
|
inst: t
|
|
2085
2004
|
}), e;
|
|
2086
2005
|
}
|
|
2087
|
-
function
|
|
2006
|
+
function Di(e, t, n, r) {
|
|
2088
2007
|
return t.issues.length ? (e.value = n.catchValue({
|
|
2089
2008
|
...t,
|
|
2090
2009
|
value: e.value,
|
|
@@ -2092,54 +2011,54 @@ function ji(e, t, n, r) {
|
|
|
2092
2011
|
input: e.value
|
|
2093
2012
|
}), e) : (e.value = t.value, t.memo && (e.memo = !0), e);
|
|
2094
2013
|
}
|
|
2095
|
-
var
|
|
2014
|
+
var Oi = /*@__PURE__*/ D("$ZodCatch", (e, t) => {
|
|
2096
2015
|
j.init(e, t), E(e, "optin", (e) => e.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), E(e, "optout", (e) => e.def.innerType._zod.optout), E(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => {
|
|
2097
2016
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
2098
2017
|
let r = t.innerType._zod.run({
|
|
2099
2018
|
value: e.value,
|
|
2100
2019
|
issues: []
|
|
2101
2020
|
}, n);
|
|
2102
|
-
return r instanceof Promise ? r.then((r) =>
|
|
2021
|
+
return r instanceof Promise ? r.then((r) => Di(e, r, t, n)) : Di(e, r, t, n);
|
|
2103
2022
|
};
|
|
2104
|
-
}),
|
|
2023
|
+
}), ki = /*@__PURE__*/ D("$ZodPipe", (e, t) => {
|
|
2105
2024
|
j.init(e, t), E(e, "values", (e) => e.def.in._zod.values), E(e, "optin", (e) => e.def.in._zod.optin), E(e, "optout", (e) => e.def.out._zod.optout), E(e, "propValues", (e) => e.def.in._zod.propValues), e._zod.parse = (e, n) => {
|
|
2106
2025
|
if (n.direction === "backward") {
|
|
2107
2026
|
let r = t.out._zod.run(e, n);
|
|
2108
|
-
return r instanceof Promise ? r.then((e) =>
|
|
2027
|
+
return r instanceof Promise ? r.then((e) => Ai(e, t.in, n)) : Ai(r, t.in, n);
|
|
2109
2028
|
}
|
|
2110
2029
|
let r = t.in._zod.run(e, n);
|
|
2111
|
-
return r instanceof Promise ? r.then((e) =>
|
|
2030
|
+
return r instanceof Promise ? r.then((e) => Ai(e, t.out, n)) : Ai(r, t.out, n);
|
|
2112
2031
|
};
|
|
2113
2032
|
});
|
|
2114
|
-
function
|
|
2033
|
+
function Ai(e, t, n) {
|
|
2115
2034
|
return e.issues.some((e) => e.code !== "unrecognized_keys") ? (e.aborted = !0, e) : t._zod.run({
|
|
2116
2035
|
value: e.value,
|
|
2117
2036
|
issues: e.issues
|
|
2118
2037
|
}, n);
|
|
2119
2038
|
}
|
|
2120
|
-
var
|
|
2039
|
+
var ji = /*@__PURE__*/ D("$ZodReadonly", (e, t) => {
|
|
2121
2040
|
j.init(e, t), E(e, "propValues", (e) => e.def.innerType._zod.propValues), E(e, "values", (e) => e.def.innerType._zod.values), E(e, "optin", (e) => e.def.innerType?._zod?.optin), E(e, "optout", (e) => e.def.innerType?._zod?.optout), e._zod.parse = (e, n) => {
|
|
2122
2041
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
2123
2042
|
let r = t.innerType._zod.run(e, n);
|
|
2124
|
-
return r instanceof Promise ? r.then(
|
|
2043
|
+
return r instanceof Promise ? r.then(Mi) : Mi(r);
|
|
2125
2044
|
};
|
|
2126
2045
|
});
|
|
2127
|
-
function
|
|
2046
|
+
function Mi(e) {
|
|
2128
2047
|
return e.memo || (e.value = Object.freeze(e.value)), e;
|
|
2129
2048
|
}
|
|
2130
|
-
var
|
|
2049
|
+
var Ni = /*@__PURE__*/ D("$ZodLazy", (e, t) => {
|
|
2131
2050
|
j.init(e, t), He(e._zod, "innerType", () => {
|
|
2132
2051
|
let e = t;
|
|
2133
2052
|
return e._cachedInner ||= t.getter(), e._cachedInner;
|
|
2134
2053
|
}), E(e, "pattern", (e) => e.innerType?._zod?.pattern), E(e, "propValues", (e) => e.innerType?._zod?.propValues), E(e, "optin", (e) => e.innerType?._zod?.optin ?? void 0), E(e, "optout", (e) => e.innerType?._zod?.optout ?? void 0), e._zod.parse = (t, n) => e._zod.innerType._zod.run(t, n);
|
|
2135
|
-
}),
|
|
2054
|
+
}), Pi = /*@__PURE__*/ D("$ZodCustom", (e, t) => {
|
|
2136
2055
|
A.init(e, t), j.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
|
|
2137
2056
|
let r = n.value, i = t.fn(r);
|
|
2138
|
-
if (i instanceof Promise) return i.then((t) =>
|
|
2139
|
-
|
|
2057
|
+
if (i instanceof Promise) return i.then((t) => Fi(t, n, r, e));
|
|
2058
|
+
Fi(i, n, r, e);
|
|
2140
2059
|
};
|
|
2141
2060
|
});
|
|
2142
|
-
function
|
|
2061
|
+
function Fi(e, t, n, r) {
|
|
2143
2062
|
if (!e) {
|
|
2144
2063
|
let e = {
|
|
2145
2064
|
code: "custom",
|
|
@@ -2153,25 +2072,25 @@ function zi(e, t, n, r) {
|
|
|
2153
2072
|
}
|
|
2154
2073
|
//#endregion
|
|
2155
2074
|
//#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/memoizer.js
|
|
2156
|
-
var
|
|
2075
|
+
var Ii = class extends Error {
|
|
2157
2076
|
constructor() {
|
|
2158
2077
|
super("Cannot parse a reference cycle that closes through a transform"), this.name = "ZodCyclicError";
|
|
2159
2078
|
}
|
|
2160
|
-
},
|
|
2161
|
-
function
|
|
2079
|
+
}, Li = "~memo", Ri = [];
|
|
2080
|
+
function zi(e) {
|
|
2162
2081
|
return e.map((e) => e.path ? {
|
|
2163
2082
|
...e,
|
|
2164
2083
|
path: e.path.slice()
|
|
2165
2084
|
} : { ...e });
|
|
2166
2085
|
}
|
|
2167
|
-
var
|
|
2168
|
-
function
|
|
2169
|
-
let n =
|
|
2086
|
+
var Bi = /*@__PURE__*/ new WeakMap();
|
|
2087
|
+
function Vi(e, t) {
|
|
2088
|
+
let n = Bi.get(e);
|
|
2170
2089
|
if (n !== void 0) return n;
|
|
2171
2090
|
if (t.has(e)) return !0;
|
|
2172
2091
|
t.add(e);
|
|
2173
2092
|
let r = !1, i = (e) => {
|
|
2174
|
-
!r && e?._zod &&
|
|
2093
|
+
!r && e?._zod && Vi(e, t) && (r = !0);
|
|
2175
2094
|
}, a = e._zod.def;
|
|
2176
2095
|
switch (a.type) {
|
|
2177
2096
|
case "object":
|
|
@@ -2248,28 +2167,28 @@ function Gi(e, t) {
|
|
|
2248
2167
|
}
|
|
2249
2168
|
}
|
|
2250
2169
|
}
|
|
2251
|
-
return t.delete(e),
|
|
2170
|
+
return t.delete(e), Bi.set(e, r), r;
|
|
2252
2171
|
}
|
|
2253
|
-
function
|
|
2172
|
+
function Hi(e, t) {
|
|
2254
2173
|
let n = e.buckets.get(t);
|
|
2255
2174
|
return n || (n = /* @__PURE__ */ new Map(), e.buckets.set(t, n)), n;
|
|
2256
2175
|
}
|
|
2257
|
-
var
|
|
2176
|
+
var Ui, Wi = [], Gi = {
|
|
2258
2177
|
alloc(e, t, n) {
|
|
2259
|
-
let r =
|
|
2178
|
+
let r = Ui;
|
|
2260
2179
|
if (!r) return n;
|
|
2261
|
-
|
|
2180
|
+
Ui = void 0;
|
|
2262
2181
|
let i = {
|
|
2263
2182
|
value: n,
|
|
2264
2183
|
issues: null
|
|
2265
2184
|
};
|
|
2266
|
-
return r.set(t.value, i),
|
|
2185
|
+
return r.set(t.value, i), Wi.push(i), n;
|
|
2267
2186
|
},
|
|
2268
2187
|
guard(e) {
|
|
2269
2188
|
var t;
|
|
2270
2189
|
(t = e._zod).deferred ?? (t.deferred = []), e._zod.deferred.push(() => {
|
|
2271
2190
|
let t = e._zod.parse, n = (e, n) => {
|
|
2272
|
-
if (n.direction !== "backward" &&
|
|
2191
|
+
if (n.direction !== "backward" && qi(n, e.value)) throw new Ii();
|
|
2273
2192
|
return t(e, n);
|
|
2274
2193
|
};
|
|
2275
2194
|
e._zod.parse = n, e._zod.run === t && (e._zod.run = n);
|
|
@@ -2280,38 +2199,38 @@ var qi, Ji = [], Yi = {
|
|
|
2280
2199
|
let n, r, i;
|
|
2281
2200
|
(t = e._zod).deferred ?? (t.deferred = []), e._zod.deferred.push(() => {
|
|
2282
2201
|
let t = e._zod.parse, a = (o, s) => {
|
|
2283
|
-
if (n === void 0 && (n =
|
|
2202
|
+
if (n === void 0 && (n = Vi(e, /* @__PURE__ */ new Set()), !n)) return e._zod.parse = t, e._zod.run === a && (e._zod.run = t), t(o, s);
|
|
2284
2203
|
let c = o.value;
|
|
2285
2204
|
if (typeof c != "object" || !c) return t(o, s);
|
|
2286
|
-
let l = s[
|
|
2205
|
+
let l = s[Li];
|
|
2287
2206
|
l || (l = {
|
|
2288
2207
|
buckets: /* @__PURE__ */ new Map(),
|
|
2289
2208
|
backEdges: void 0
|
|
2290
|
-
}, s[
|
|
2209
|
+
}, s[Li] = l);
|
|
2291
2210
|
let u;
|
|
2292
|
-
r === s ? u = i : (u =
|
|
2211
|
+
r === s ? u = i : (u = Hi(l, e), r = s, i = u);
|
|
2293
2212
|
let d = u.get(c);
|
|
2294
|
-
if (d) return o.value = d.value, d.issues ? d.issues.length && o.issues.push(...
|
|
2295
|
-
|
|
2296
|
-
let f =
|
|
2297
|
-
|
|
2298
|
-
let m =
|
|
2299
|
-
return p instanceof Promise ? p.then((e) => (m && (m.issues = e.issues.length ?
|
|
2213
|
+
if (d) return o.value = d.value, d.issues ? d.issues.length && o.issues.push(...zi(d.issues)) : (o.memo = !0, l.backEdges ?? (l.backEdges = /* @__PURE__ */ new Set()), l.backEdges.add(d.value)), o;
|
|
2214
|
+
Ui = u;
|
|
2215
|
+
let f = Wi.length, p = t(o, s);
|
|
2216
|
+
Ui = void 0;
|
|
2217
|
+
let m = Wi.length > f ? Wi.pop() : void 0;
|
|
2218
|
+
return p instanceof Promise ? p.then((e) => (m && (m.issues = e.issues.length ? zi(e.issues) : Ri), e)) : (m && (m.issues = p.issues.length ? zi(p.issues) : Ri), p);
|
|
2300
2219
|
};
|
|
2301
2220
|
e._zod.parse = a, e._zod.run === t && (e._zod.run = a);
|
|
2302
2221
|
});
|
|
2303
2222
|
}
|
|
2304
2223
|
};
|
|
2305
|
-
function
|
|
2306
|
-
return
|
|
2224
|
+
function Ki() {
|
|
2225
|
+
return Gi;
|
|
2307
2226
|
}
|
|
2308
|
-
function
|
|
2309
|
-
let n = e[
|
|
2227
|
+
function qi(e, t) {
|
|
2228
|
+
let n = e[Li]?.backEdges;
|
|
2310
2229
|
return n !== void 0 && typeof t == "object" && !!t && n.has(t);
|
|
2311
2230
|
}
|
|
2312
2231
|
//#endregion
|
|
2313
2232
|
//#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/en.js
|
|
2314
|
-
var
|
|
2233
|
+
var Ji = () => {
|
|
2315
2234
|
let e = {
|
|
2316
2235
|
string: {
|
|
2317
2236
|
unit: "characters",
|
|
@@ -2397,12 +2316,12 @@ var Qi = () => {
|
|
|
2397
2316
|
}
|
|
2398
2317
|
};
|
|
2399
2318
|
};
|
|
2400
|
-
function
|
|
2401
|
-
return { localeError:
|
|
2319
|
+
function Yi() {
|
|
2320
|
+
return { localeError: Ji() };
|
|
2402
2321
|
}
|
|
2403
2322
|
//#endregion
|
|
2404
2323
|
//#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/registries.js
|
|
2405
|
-
var
|
|
2324
|
+
var Xi, Zi = class {
|
|
2406
2325
|
constructor() {
|
|
2407
2326
|
this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
|
|
2408
2327
|
}
|
|
@@ -2434,22 +2353,22 @@ var ea, ta = class {
|
|
|
2434
2353
|
return this._map.has(e);
|
|
2435
2354
|
}
|
|
2436
2355
|
};
|
|
2437
|
-
function
|
|
2438
|
-
return new
|
|
2356
|
+
function Qi() {
|
|
2357
|
+
return new Zi();
|
|
2439
2358
|
}
|
|
2440
|
-
(
|
|
2441
|
-
var
|
|
2359
|
+
(Xi = globalThis).__zod_globalRegistry ?? (Xi.__zod_globalRegistry = Qi());
|
|
2360
|
+
var $i = globalThis.__zod_globalRegistry;
|
|
2442
2361
|
//#endregion
|
|
2443
2362
|
//#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/api.js
|
|
2444
2363
|
// @__NO_SIDE_EFFECTS__
|
|
2445
|
-
function
|
|
2364
|
+
function ea(e, t) {
|
|
2446
2365
|
return new e({
|
|
2447
2366
|
type: "string",
|
|
2448
2367
|
...T(t)
|
|
2449
2368
|
});
|
|
2450
2369
|
}
|
|
2451
2370
|
// @__NO_SIDE_EFFECTS__
|
|
2452
|
-
function
|
|
2371
|
+
function ta(e, t) {
|
|
2453
2372
|
return new e({
|
|
2454
2373
|
type: "string",
|
|
2455
2374
|
format: "email",
|
|
@@ -2459,7 +2378,7 @@ function aa(e, t) {
|
|
|
2459
2378
|
});
|
|
2460
2379
|
}
|
|
2461
2380
|
// @__NO_SIDE_EFFECTS__
|
|
2462
|
-
function
|
|
2381
|
+
function na(e, t) {
|
|
2463
2382
|
return new e({
|
|
2464
2383
|
type: "string",
|
|
2465
2384
|
format: "guid",
|
|
@@ -2469,7 +2388,7 @@ function oa(e, t) {
|
|
|
2469
2388
|
});
|
|
2470
2389
|
}
|
|
2471
2390
|
// @__NO_SIDE_EFFECTS__
|
|
2472
|
-
function
|
|
2391
|
+
function ra(e, t) {
|
|
2473
2392
|
return new e({
|
|
2474
2393
|
type: "string",
|
|
2475
2394
|
format: "uuid",
|
|
@@ -2479,7 +2398,7 @@ function sa(e, t) {
|
|
|
2479
2398
|
});
|
|
2480
2399
|
}
|
|
2481
2400
|
// @__NO_SIDE_EFFECTS__
|
|
2482
|
-
function
|
|
2401
|
+
function ia(e, t) {
|
|
2483
2402
|
return new e({
|
|
2484
2403
|
type: "string",
|
|
2485
2404
|
format: "uuid",
|
|
@@ -2490,7 +2409,7 @@ function ca(e, t) {
|
|
|
2490
2409
|
});
|
|
2491
2410
|
}
|
|
2492
2411
|
// @__NO_SIDE_EFFECTS__
|
|
2493
|
-
function
|
|
2412
|
+
function aa(e, t) {
|
|
2494
2413
|
return new e({
|
|
2495
2414
|
type: "string",
|
|
2496
2415
|
format: "uuid",
|
|
@@ -2501,7 +2420,7 @@ function la(e, t) {
|
|
|
2501
2420
|
});
|
|
2502
2421
|
}
|
|
2503
2422
|
// @__NO_SIDE_EFFECTS__
|
|
2504
|
-
function
|
|
2423
|
+
function oa(e, t) {
|
|
2505
2424
|
return new e({
|
|
2506
2425
|
type: "string",
|
|
2507
2426
|
format: "uuid",
|
|
@@ -2512,7 +2431,7 @@ function ua(e, t) {
|
|
|
2512
2431
|
});
|
|
2513
2432
|
}
|
|
2514
2433
|
// @__NO_SIDE_EFFECTS__
|
|
2515
|
-
function
|
|
2434
|
+
function sa(e, t) {
|
|
2516
2435
|
return new e({
|
|
2517
2436
|
type: "string",
|
|
2518
2437
|
format: "url",
|
|
@@ -2522,7 +2441,7 @@ function da(e, t) {
|
|
|
2522
2441
|
});
|
|
2523
2442
|
}
|
|
2524
2443
|
// @__NO_SIDE_EFFECTS__
|
|
2525
|
-
function
|
|
2444
|
+
function ca(e, t) {
|
|
2526
2445
|
return new e({
|
|
2527
2446
|
type: "string",
|
|
2528
2447
|
format: "emoji",
|
|
@@ -2532,7 +2451,7 @@ function fa(e, t) {
|
|
|
2532
2451
|
});
|
|
2533
2452
|
}
|
|
2534
2453
|
// @__NO_SIDE_EFFECTS__
|
|
2535
|
-
function
|
|
2454
|
+
function la(e, t) {
|
|
2536
2455
|
return new e({
|
|
2537
2456
|
type: "string",
|
|
2538
2457
|
format: "nanoid",
|
|
@@ -2542,7 +2461,7 @@ function pa(e, t) {
|
|
|
2542
2461
|
});
|
|
2543
2462
|
}
|
|
2544
2463
|
// @__NO_SIDE_EFFECTS__
|
|
2545
|
-
function
|
|
2464
|
+
function ua(e, t) {
|
|
2546
2465
|
return new e({
|
|
2547
2466
|
type: "string",
|
|
2548
2467
|
format: "cuid",
|
|
@@ -2552,7 +2471,7 @@ function ma(e, t) {
|
|
|
2552
2471
|
});
|
|
2553
2472
|
}
|
|
2554
2473
|
// @__NO_SIDE_EFFECTS__
|
|
2555
|
-
function
|
|
2474
|
+
function da(e, t) {
|
|
2556
2475
|
return new e({
|
|
2557
2476
|
type: "string",
|
|
2558
2477
|
format: "cuid2",
|
|
@@ -2562,7 +2481,7 @@ function ha(e, t) {
|
|
|
2562
2481
|
});
|
|
2563
2482
|
}
|
|
2564
2483
|
// @__NO_SIDE_EFFECTS__
|
|
2565
|
-
function
|
|
2484
|
+
function fa(e, t) {
|
|
2566
2485
|
return new e({
|
|
2567
2486
|
type: "string",
|
|
2568
2487
|
format: "ulid",
|
|
@@ -2572,7 +2491,7 @@ function ga(e, t) {
|
|
|
2572
2491
|
});
|
|
2573
2492
|
}
|
|
2574
2493
|
// @__NO_SIDE_EFFECTS__
|
|
2575
|
-
function
|
|
2494
|
+
function pa(e, t) {
|
|
2576
2495
|
return new e({
|
|
2577
2496
|
type: "string",
|
|
2578
2497
|
format: "xid",
|
|
@@ -2582,7 +2501,7 @@ function _a(e, t) {
|
|
|
2582
2501
|
});
|
|
2583
2502
|
}
|
|
2584
2503
|
// @__NO_SIDE_EFFECTS__
|
|
2585
|
-
function
|
|
2504
|
+
function ma(e, t) {
|
|
2586
2505
|
return new e({
|
|
2587
2506
|
type: "string",
|
|
2588
2507
|
format: "ksuid",
|
|
@@ -2592,7 +2511,7 @@ function va(e, t) {
|
|
|
2592
2511
|
});
|
|
2593
2512
|
}
|
|
2594
2513
|
// @__NO_SIDE_EFFECTS__
|
|
2595
|
-
function
|
|
2514
|
+
function ha(e, t) {
|
|
2596
2515
|
return new e({
|
|
2597
2516
|
type: "string",
|
|
2598
2517
|
format: "ipv4",
|
|
@@ -2602,7 +2521,7 @@ function ya(e, t) {
|
|
|
2602
2521
|
});
|
|
2603
2522
|
}
|
|
2604
2523
|
// @__NO_SIDE_EFFECTS__
|
|
2605
|
-
function
|
|
2524
|
+
function ga(e, t) {
|
|
2606
2525
|
return new e({
|
|
2607
2526
|
type: "string",
|
|
2608
2527
|
format: "ipv6",
|
|
@@ -2612,7 +2531,7 @@ function ba(e, t) {
|
|
|
2612
2531
|
});
|
|
2613
2532
|
}
|
|
2614
2533
|
// @__NO_SIDE_EFFECTS__
|
|
2615
|
-
function
|
|
2534
|
+
function _a(e, t) {
|
|
2616
2535
|
return new e({
|
|
2617
2536
|
type: "string",
|
|
2618
2537
|
format: "cidrv4",
|
|
@@ -2622,7 +2541,7 @@ function xa(e, t) {
|
|
|
2622
2541
|
});
|
|
2623
2542
|
}
|
|
2624
2543
|
// @__NO_SIDE_EFFECTS__
|
|
2625
|
-
function
|
|
2544
|
+
function va(e, t) {
|
|
2626
2545
|
return new e({
|
|
2627
2546
|
type: "string",
|
|
2628
2547
|
format: "cidrv6",
|
|
@@ -2632,7 +2551,7 @@ function Sa(e, t) {
|
|
|
2632
2551
|
});
|
|
2633
2552
|
}
|
|
2634
2553
|
// @__NO_SIDE_EFFECTS__
|
|
2635
|
-
function
|
|
2554
|
+
function ya(e, t) {
|
|
2636
2555
|
return new e({
|
|
2637
2556
|
type: "string",
|
|
2638
2557
|
format: "base64",
|
|
@@ -2642,7 +2561,7 @@ function Ca(e, t) {
|
|
|
2642
2561
|
});
|
|
2643
2562
|
}
|
|
2644
2563
|
// @__NO_SIDE_EFFECTS__
|
|
2645
|
-
function
|
|
2564
|
+
function ba(e, t) {
|
|
2646
2565
|
return new e({
|
|
2647
2566
|
type: "string",
|
|
2648
2567
|
format: "base64url",
|
|
@@ -2652,7 +2571,7 @@ function wa(e, t) {
|
|
|
2652
2571
|
});
|
|
2653
2572
|
}
|
|
2654
2573
|
// @__NO_SIDE_EFFECTS__
|
|
2655
|
-
function
|
|
2574
|
+
function xa(e, t) {
|
|
2656
2575
|
return new e({
|
|
2657
2576
|
type: "string",
|
|
2658
2577
|
format: "e164",
|
|
@@ -2662,7 +2581,7 @@ function Ta(e, t) {
|
|
|
2662
2581
|
});
|
|
2663
2582
|
}
|
|
2664
2583
|
// @__NO_SIDE_EFFECTS__
|
|
2665
|
-
function
|
|
2584
|
+
function Sa(e, t) {
|
|
2666
2585
|
return new e({
|
|
2667
2586
|
type: "string",
|
|
2668
2587
|
format: "jwt",
|
|
@@ -2672,7 +2591,7 @@ function Ea(e, t) {
|
|
|
2672
2591
|
});
|
|
2673
2592
|
}
|
|
2674
2593
|
// @__NO_SIDE_EFFECTS__
|
|
2675
|
-
function
|
|
2594
|
+
function Ca(e, t) {
|
|
2676
2595
|
return new e({
|
|
2677
2596
|
type: "string",
|
|
2678
2597
|
format: "datetime",
|
|
@@ -2684,7 +2603,7 @@ function Da(e, t) {
|
|
|
2684
2603
|
});
|
|
2685
2604
|
}
|
|
2686
2605
|
// @__NO_SIDE_EFFECTS__
|
|
2687
|
-
function
|
|
2606
|
+
function wa(e, t) {
|
|
2688
2607
|
return new e({
|
|
2689
2608
|
type: "string",
|
|
2690
2609
|
format: "date",
|
|
@@ -2693,7 +2612,7 @@ function Oa(e, t) {
|
|
|
2693
2612
|
});
|
|
2694
2613
|
}
|
|
2695
2614
|
// @__NO_SIDE_EFFECTS__
|
|
2696
|
-
function
|
|
2615
|
+
function Ta(e, t) {
|
|
2697
2616
|
return new e({
|
|
2698
2617
|
type: "string",
|
|
2699
2618
|
format: "time",
|
|
@@ -2703,7 +2622,7 @@ function ka(e, t) {
|
|
|
2703
2622
|
});
|
|
2704
2623
|
}
|
|
2705
2624
|
// @__NO_SIDE_EFFECTS__
|
|
2706
|
-
function
|
|
2625
|
+
function Ea(e, t) {
|
|
2707
2626
|
return new e({
|
|
2708
2627
|
type: "string",
|
|
2709
2628
|
format: "duration",
|
|
@@ -2712,7 +2631,7 @@ function Aa(e, t) {
|
|
|
2712
2631
|
});
|
|
2713
2632
|
}
|
|
2714
2633
|
// @__NO_SIDE_EFFECTS__
|
|
2715
|
-
function
|
|
2634
|
+
function Da(e, t) {
|
|
2716
2635
|
return new e({
|
|
2717
2636
|
type: "number",
|
|
2718
2637
|
checks: [],
|
|
@@ -2720,7 +2639,7 @@ function ja(e, t) {
|
|
|
2720
2639
|
});
|
|
2721
2640
|
}
|
|
2722
2641
|
// @__NO_SIDE_EFFECTS__
|
|
2723
|
-
function
|
|
2642
|
+
function Oa(e, t) {
|
|
2724
2643
|
return new e({
|
|
2725
2644
|
type: "number",
|
|
2726
2645
|
check: "number_format",
|
|
@@ -2730,32 +2649,32 @@ function Ma(e, t) {
|
|
|
2730
2649
|
});
|
|
2731
2650
|
}
|
|
2732
2651
|
// @__NO_SIDE_EFFECTS__
|
|
2733
|
-
function
|
|
2652
|
+
function ka(e, t) {
|
|
2734
2653
|
return new e({
|
|
2735
2654
|
type: "boolean",
|
|
2736
2655
|
...T(t)
|
|
2737
2656
|
});
|
|
2738
2657
|
}
|
|
2739
2658
|
// @__NO_SIDE_EFFECTS__
|
|
2740
|
-
function
|
|
2659
|
+
function Aa(e, t) {
|
|
2741
2660
|
return new e({
|
|
2742
2661
|
type: "null",
|
|
2743
2662
|
...T(t)
|
|
2744
2663
|
});
|
|
2745
2664
|
}
|
|
2746
2665
|
// @__NO_SIDE_EFFECTS__
|
|
2747
|
-
function
|
|
2666
|
+
function ja(e) {
|
|
2748
2667
|
return new e({ type: "unknown" });
|
|
2749
2668
|
}
|
|
2750
2669
|
// @__NO_SIDE_EFFECTS__
|
|
2751
|
-
function
|
|
2670
|
+
function Ma(e, t) {
|
|
2752
2671
|
return new e({
|
|
2753
2672
|
type: "never",
|
|
2754
2673
|
...T(t)
|
|
2755
2674
|
});
|
|
2756
2675
|
}
|
|
2757
2676
|
// @__NO_SIDE_EFFECTS__
|
|
2758
|
-
function
|
|
2677
|
+
function Na(e, t) {
|
|
2759
2678
|
return new qn({
|
|
2760
2679
|
check: "less_than",
|
|
2761
2680
|
...T(t),
|
|
@@ -2764,7 +2683,7 @@ function La(e, t) {
|
|
|
2764
2683
|
});
|
|
2765
2684
|
}
|
|
2766
2685
|
// @__NO_SIDE_EFFECTS__
|
|
2767
|
-
function
|
|
2686
|
+
function Pa(e, t) {
|
|
2768
2687
|
return new qn({
|
|
2769
2688
|
check: "less_than",
|
|
2770
2689
|
...T(t),
|
|
@@ -2773,7 +2692,7 @@ function Ra(e, t) {
|
|
|
2773
2692
|
});
|
|
2774
2693
|
}
|
|
2775
2694
|
// @__NO_SIDE_EFFECTS__
|
|
2776
|
-
function
|
|
2695
|
+
function Fa(e, t) {
|
|
2777
2696
|
return new Jn({
|
|
2778
2697
|
check: "greater_than",
|
|
2779
2698
|
...T(t),
|
|
@@ -2782,7 +2701,7 @@ function za(e, t) {
|
|
|
2782
2701
|
});
|
|
2783
2702
|
}
|
|
2784
2703
|
// @__NO_SIDE_EFFECTS__
|
|
2785
|
-
function
|
|
2704
|
+
function Ia(e, t) {
|
|
2786
2705
|
return new Jn({
|
|
2787
2706
|
check: "greater_than",
|
|
2788
2707
|
...T(t),
|
|
@@ -2791,7 +2710,7 @@ function Ba(e, t) {
|
|
|
2791
2710
|
});
|
|
2792
2711
|
}
|
|
2793
2712
|
// @__NO_SIDE_EFFECTS__
|
|
2794
|
-
function
|
|
2713
|
+
function La(e, t) {
|
|
2795
2714
|
return new Yn({
|
|
2796
2715
|
check: "multiple_of",
|
|
2797
2716
|
...T(t),
|
|
@@ -2799,7 +2718,7 @@ function Va(e, t) {
|
|
|
2799
2718
|
});
|
|
2800
2719
|
}
|
|
2801
2720
|
// @__NO_SIDE_EFFECTS__
|
|
2802
|
-
function
|
|
2721
|
+
function Ra(e, t) {
|
|
2803
2722
|
return new Zn({
|
|
2804
2723
|
check: "max_length",
|
|
2805
2724
|
...T(t),
|
|
@@ -2807,7 +2726,7 @@ function Ha(e, t) {
|
|
|
2807
2726
|
});
|
|
2808
2727
|
}
|
|
2809
2728
|
// @__NO_SIDE_EFFECTS__
|
|
2810
|
-
function
|
|
2729
|
+
function za(e, t) {
|
|
2811
2730
|
return new Qn({
|
|
2812
2731
|
check: "min_length",
|
|
2813
2732
|
...T(t),
|
|
@@ -2815,7 +2734,7 @@ function Ua(e, t) {
|
|
|
2815
2734
|
});
|
|
2816
2735
|
}
|
|
2817
2736
|
// @__NO_SIDE_EFFECTS__
|
|
2818
|
-
function
|
|
2737
|
+
function Ba(e, t) {
|
|
2819
2738
|
return new $n({
|
|
2820
2739
|
check: "length_equals",
|
|
2821
2740
|
...T(t),
|
|
@@ -2823,7 +2742,7 @@ function Wa(e, t) {
|
|
|
2823
2742
|
});
|
|
2824
2743
|
}
|
|
2825
2744
|
// @__NO_SIDE_EFFECTS__
|
|
2826
|
-
function
|
|
2745
|
+
function Va(e, t) {
|
|
2827
2746
|
return new tr({
|
|
2828
2747
|
check: "string_format",
|
|
2829
2748
|
format: "regex",
|
|
@@ -2832,7 +2751,7 @@ function Ga(e, t) {
|
|
|
2832
2751
|
});
|
|
2833
2752
|
}
|
|
2834
2753
|
// @__NO_SIDE_EFFECTS__
|
|
2835
|
-
function
|
|
2754
|
+
function Ha(e) {
|
|
2836
2755
|
return new nr({
|
|
2837
2756
|
check: "string_format",
|
|
2838
2757
|
format: "lowercase",
|
|
@@ -2840,7 +2759,7 @@ function Ka(e) {
|
|
|
2840
2759
|
});
|
|
2841
2760
|
}
|
|
2842
2761
|
// @__NO_SIDE_EFFECTS__
|
|
2843
|
-
function
|
|
2762
|
+
function Ua(e) {
|
|
2844
2763
|
return new rr({
|
|
2845
2764
|
check: "string_format",
|
|
2846
2765
|
format: "uppercase",
|
|
@@ -2848,7 +2767,7 @@ function qa(e) {
|
|
|
2848
2767
|
});
|
|
2849
2768
|
}
|
|
2850
2769
|
// @__NO_SIDE_EFFECTS__
|
|
2851
|
-
function
|
|
2770
|
+
function Wa(e, t) {
|
|
2852
2771
|
return new ir({
|
|
2853
2772
|
check: "string_format",
|
|
2854
2773
|
format: "includes",
|
|
@@ -2857,7 +2776,7 @@ function Ja(e, t) {
|
|
|
2857
2776
|
});
|
|
2858
2777
|
}
|
|
2859
2778
|
// @__NO_SIDE_EFFECTS__
|
|
2860
|
-
function
|
|
2779
|
+
function Ga(e, t) {
|
|
2861
2780
|
return new ar({
|
|
2862
2781
|
check: "string_format",
|
|
2863
2782
|
format: "starts_with",
|
|
@@ -2866,7 +2785,7 @@ function Ya(e, t) {
|
|
|
2866
2785
|
});
|
|
2867
2786
|
}
|
|
2868
2787
|
// @__NO_SIDE_EFFECTS__
|
|
2869
|
-
function
|
|
2788
|
+
function Ka(e, t) {
|
|
2870
2789
|
return new or({
|
|
2871
2790
|
check: "string_format",
|
|
2872
2791
|
format: "ends_with",
|
|
@@ -2875,34 +2794,34 @@ function Xa(e, t) {
|
|
|
2875
2794
|
});
|
|
2876
2795
|
}
|
|
2877
2796
|
// @__NO_SIDE_EFFECTS__
|
|
2878
|
-
function
|
|
2797
|
+
function qa(e) {
|
|
2879
2798
|
return new sr({
|
|
2880
2799
|
check: "overwrite",
|
|
2881
2800
|
tx: e
|
|
2882
2801
|
});
|
|
2883
2802
|
}
|
|
2884
2803
|
// @__NO_SIDE_EFFECTS__
|
|
2885
|
-
function
|
|
2886
|
-
return /* @__PURE__ */
|
|
2804
|
+
function Ja(e) {
|
|
2805
|
+
return /* @__PURE__ */ qa((t) => t.normalize(e));
|
|
2887
2806
|
}
|
|
2888
2807
|
// @__NO_SIDE_EFFECTS__
|
|
2889
|
-
function
|
|
2890
|
-
return /* @__PURE__ */
|
|
2808
|
+
function Ya() {
|
|
2809
|
+
return /* @__PURE__ */ qa((e) => e.trim());
|
|
2891
2810
|
}
|
|
2892
2811
|
// @__NO_SIDE_EFFECTS__
|
|
2893
|
-
function
|
|
2894
|
-
return /* @__PURE__ */
|
|
2812
|
+
function Xa() {
|
|
2813
|
+
return /* @__PURE__ */ qa((e) => e.toLowerCase());
|
|
2895
2814
|
}
|
|
2896
2815
|
// @__NO_SIDE_EFFECTS__
|
|
2897
|
-
function
|
|
2898
|
-
return /* @__PURE__ */
|
|
2816
|
+
function Za() {
|
|
2817
|
+
return /* @__PURE__ */ qa((e) => e.toUpperCase());
|
|
2899
2818
|
}
|
|
2900
2819
|
// @__NO_SIDE_EFFECTS__
|
|
2901
|
-
function
|
|
2902
|
-
return /* @__PURE__ */
|
|
2820
|
+
function Qa() {
|
|
2821
|
+
return /* @__PURE__ */ qa((e) => We(e));
|
|
2903
2822
|
}
|
|
2904
2823
|
// @__NO_SIDE_EFFECTS__
|
|
2905
|
-
function
|
|
2824
|
+
function $a(e, t, n) {
|
|
2906
2825
|
return new e({
|
|
2907
2826
|
type: "array",
|
|
2908
2827
|
element: t,
|
|
@@ -2910,7 +2829,7 @@ function ro(e, t, n) {
|
|
|
2910
2829
|
});
|
|
2911
2830
|
}
|
|
2912
2831
|
// @__NO_SIDE_EFFECTS__
|
|
2913
|
-
function
|
|
2832
|
+
function eo(e, t, n) {
|
|
2914
2833
|
return new e({
|
|
2915
2834
|
type: "custom",
|
|
2916
2835
|
check: "custom",
|
|
@@ -2919,8 +2838,8 @@ function io(e, t, n) {
|
|
|
2919
2838
|
});
|
|
2920
2839
|
}
|
|
2921
2840
|
// @__NO_SIDE_EFFECTS__
|
|
2922
|
-
function
|
|
2923
|
-
let n = /* @__PURE__ */
|
|
2841
|
+
function to(e, t) {
|
|
2842
|
+
let n = /* @__PURE__ */ no((t) => (t.addIssue = (e) => {
|
|
2924
2843
|
if (typeof e == "string") t.issues.push(yt(e, t.value, n._zod.def));
|
|
2925
2844
|
else {
|
|
2926
2845
|
let r = e;
|
|
@@ -2930,7 +2849,7 @@ function ao(e, t) {
|
|
|
2930
2849
|
return n;
|
|
2931
2850
|
}
|
|
2932
2851
|
// @__NO_SIDE_EFFECTS__
|
|
2933
|
-
function
|
|
2852
|
+
function no(e, t) {
|
|
2934
2853
|
let n = new A({
|
|
2935
2854
|
check: "custom",
|
|
2936
2855
|
...T(t)
|
|
@@ -2939,15 +2858,15 @@ function oo(e, t) {
|
|
|
2939
2858
|
}
|
|
2940
2859
|
//#endregion
|
|
2941
2860
|
//#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/to-json-schema.js
|
|
2942
|
-
function
|
|
2861
|
+
function ro(e, ...t) {
|
|
2943
2862
|
for (let n of t) for (let t of Reflect.ownKeys(n)) Object.prototype.propertyIsEnumerable.call(n, t) && C(e, t, n[t]);
|
|
2944
2863
|
return e;
|
|
2945
2864
|
}
|
|
2946
|
-
function
|
|
2865
|
+
function io(e) {
|
|
2947
2866
|
let t = e?.target ?? "draft-2020-12";
|
|
2948
2867
|
return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
|
|
2949
2868
|
processors: e.processors ?? {},
|
|
2950
|
-
metadataRegistry: e?.metadata ??
|
|
2869
|
+
metadataRegistry: e?.metadata ?? $i,
|
|
2951
2870
|
target: t,
|
|
2952
2871
|
unrepresentable: e?.unrepresentable ?? "throw",
|
|
2953
2872
|
override: e?.override ?? (() => {}),
|
|
@@ -2963,7 +2882,7 @@ function co(e) {
|
|
|
2963
2882
|
external: e?.external ?? void 0
|
|
2964
2883
|
};
|
|
2965
2884
|
}
|
|
2966
|
-
function
|
|
2885
|
+
function ao(e, t, n, r, i) {
|
|
2967
2886
|
let a = typeof t.unrepresentable == "function" ? t.unrepresentable({
|
|
2968
2887
|
zodSchema: e,
|
|
2969
2888
|
path: r.path,
|
|
@@ -2973,7 +2892,7 @@ function N(e, t, n, r, i) {
|
|
|
2973
2892
|
if (a === void 0 || a === "throw") throw Error(i);
|
|
2974
2893
|
return Object.assign(n, a), !0;
|
|
2975
2894
|
}
|
|
2976
|
-
function
|
|
2895
|
+
function N(e, t, n = {
|
|
2977
2896
|
path: [],
|
|
2978
2897
|
schemaPath: []
|
|
2979
2898
|
}) {
|
|
@@ -3002,15 +2921,15 @@ function P(e, t, n = {
|
|
|
3002
2921
|
a(e, t, n, r);
|
|
3003
2922
|
}
|
|
3004
2923
|
let a = e._zod.parent;
|
|
3005
|
-
a && (o.ref ||= a,
|
|
2924
|
+
a && (o.ref ||= a, N(a, t, r), t.seen.get(a).isParent = !0);
|
|
3006
2925
|
}
|
|
3007
2926
|
let c = t.metadataRegistry.get(e);
|
|
3008
|
-
return c &&
|
|
2927
|
+
return c && ro(o.schema, c), t.io === "input" && P(e) && (delete o.schema.examples, delete o.schema.default), t.io === "input" && "_prefault" in o.schema && ((r = o.schema).default ?? (r.default = o.schema._prefault)), delete o.schema._prefault, t.seen.get(e).schema;
|
|
3009
2928
|
}
|
|
3010
|
-
function
|
|
2929
|
+
function oo(e) {
|
|
3011
2930
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
3012
2931
|
}
|
|
3013
|
-
function
|
|
2932
|
+
function so(e, t) {
|
|
3014
2933
|
let n = e.seen.get(t);
|
|
3015
2934
|
if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
|
|
3016
2935
|
if (e.external && e.sharedDefsExtractedFor === e.external) return;
|
|
@@ -3031,7 +2950,7 @@ function uo(e, t) {
|
|
|
3031
2950
|
let a = t[1].defId ?? t[1].schema.id ?? `schema${e.counter++}`;
|
|
3032
2951
|
return t[1].defId = a, {
|
|
3033
2952
|
defId: a,
|
|
3034
|
-
ref: `${i("__shared")}#/${r}/${
|
|
2953
|
+
ref: `${i("__shared")}#/${r}/${oo(a)}`
|
|
3035
2954
|
};
|
|
3036
2955
|
}
|
|
3037
2956
|
let i = `#/${r}/`;
|
|
@@ -3039,7 +2958,7 @@ function uo(e, t) {
|
|
|
3039
2958
|
let a = t[1].schema.id ?? `__schema${e.counter++}`;
|
|
3040
2959
|
return {
|
|
3041
2960
|
defId: a,
|
|
3042
|
-
ref: i +
|
|
2961
|
+
ref: i + oo(a)
|
|
3043
2962
|
};
|
|
3044
2963
|
}, a = (e) => {
|
|
3045
2964
|
if (e[1].schema.$ref) return;
|
|
@@ -3083,13 +3002,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
3083
3002
|
}
|
|
3084
3003
|
e.external && (e.sharedDefsExtractedFor = e.external);
|
|
3085
3004
|
}
|
|
3086
|
-
function
|
|
3005
|
+
function co(e) {
|
|
3087
3006
|
let t = e.anyOf;
|
|
3088
3007
|
if (!Array.isArray(t) || t.length === 0 || e.type !== void 0) return;
|
|
3089
3008
|
let n = [];
|
|
3090
3009
|
for (let e of t) {
|
|
3091
3010
|
if (!e || typeof e != "object") return;
|
|
3092
|
-
|
|
3011
|
+
co(e);
|
|
3093
3012
|
let t = Object.keys(e);
|
|
3094
3013
|
if (t.length !== 1 || t[0] !== "type") return;
|
|
3095
3014
|
let r = e.type;
|
|
@@ -3100,21 +3019,21 @@ function fo(e) {
|
|
|
3100
3019
|
}
|
|
3101
3020
|
delete e.anyOf, e.type = n.length === 1 ? n[0] : n;
|
|
3102
3021
|
}
|
|
3103
|
-
var
|
|
3022
|
+
var lo = /* @__PURE__ */ new Set([
|
|
3104
3023
|
"type",
|
|
3105
3024
|
"properties",
|
|
3106
3025
|
"required",
|
|
3107
3026
|
"additionalProperties"
|
|
3108
|
-
]),
|
|
3109
|
-
function
|
|
3027
|
+
]), uo = ["oneOf", "anyOf"];
|
|
3028
|
+
function fo(e) {
|
|
3110
3029
|
let t = e.additionalProperties;
|
|
3111
3030
|
return t === void 0 || t === !1 || typeof t != "object" || !t ? null : Object.keys(t).length ? t : null;
|
|
3112
3031
|
}
|
|
3113
|
-
function
|
|
3032
|
+
function po(e) {
|
|
3114
3033
|
let t = [];
|
|
3115
3034
|
for (let n of e) {
|
|
3116
3035
|
if (typeof n != "object" || n.type !== "object") return null;
|
|
3117
|
-
for (let e in n) if (!
|
|
3036
|
+
for (let e in n) if (!lo.has(e)) return null;
|
|
3118
3037
|
t.push(n);
|
|
3119
3038
|
}
|
|
3120
3039
|
let n = {}, r = /* @__PURE__ */ new Set();
|
|
@@ -3123,10 +3042,10 @@ function go(e) {
|
|
|
3123
3042
|
if (Object.prototype.hasOwnProperty.call(n, r)) continue;
|
|
3124
3043
|
let e = [];
|
|
3125
3044
|
for (let n of t) {
|
|
3126
|
-
let t = n.properties?.[r] ??
|
|
3045
|
+
let t = n.properties?.[r] ?? fo(n);
|
|
3127
3046
|
t != null && (e.some((e) => JSON.stringify(e) === JSON.stringify(t)) || e.push(t));
|
|
3128
3047
|
}
|
|
3129
|
-
C(n, r, e.length === 1 ? e[0] :
|
|
3048
|
+
C(n, r, e.length === 1 ? e[0] : po(e) ?? { allOf: e });
|
|
3130
3049
|
}
|
|
3131
3050
|
for (let t of e.required ?? []) r.add(t);
|
|
3132
3051
|
}
|
|
@@ -3138,29 +3057,29 @@ function go(e) {
|
|
|
3138
3057
|
else {
|
|
3139
3058
|
let e = [];
|
|
3140
3059
|
for (let n of t) {
|
|
3141
|
-
let t =
|
|
3060
|
+
let t = fo(n);
|
|
3142
3061
|
t && !e.some((e) => JSON.stringify(e) === JSON.stringify(t)) && e.push(t);
|
|
3143
3062
|
}
|
|
3144
3063
|
e.length === 1 ? i.additionalProperties = e[0] : e.length > 1 && (i.additionalProperties = { allOf: e });
|
|
3145
3064
|
}
|
|
3146
3065
|
return i;
|
|
3147
3066
|
}
|
|
3148
|
-
function
|
|
3067
|
+
function mo(e) {
|
|
3149
3068
|
let t = e.allOf;
|
|
3150
3069
|
if (!Array.isArray(t) || t.length < 2) return;
|
|
3151
|
-
for (let t of
|
|
3152
|
-
let n = t.filter((e) =>
|
|
3153
|
-
if (!n.length) r =
|
|
3070
|
+
for (let t of lo) if (t in e) return;
|
|
3071
|
+
let n = t.filter((e) => uo.some((t) => Array.isArray(e[t]))), r = null;
|
|
3072
|
+
if (!n.length) r = po(t);
|
|
3154
3073
|
else {
|
|
3155
|
-
let e = n[0], i =
|
|
3074
|
+
let e = n[0], i = uo.find((t) => Array.isArray(e[t]));
|
|
3156
3075
|
if (Object.keys(e).length !== 1) return;
|
|
3157
|
-
let a = t.filter((t) => t !== e), o = e[i].map((e) =>
|
|
3076
|
+
let a = t.filter((t) => t !== e), o = e[i].map((e) => po([...a, e]));
|
|
3158
3077
|
if (o.some((e) => !e)) return;
|
|
3159
3078
|
r = { [i]: o };
|
|
3160
3079
|
}
|
|
3161
|
-
r && (delete e.allOf,
|
|
3080
|
+
r && (delete e.allOf, ro(e, r));
|
|
3162
3081
|
}
|
|
3163
|
-
function
|
|
3082
|
+
function ho(e, t) {
|
|
3164
3083
|
let n = e.seen.get(t);
|
|
3165
3084
|
if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
|
|
3166
3085
|
let r = (t) => {
|
|
@@ -3170,7 +3089,7 @@ function vo(e, t) {
|
|
|
3170
3089
|
if (n.ref = null, o) {
|
|
3171
3090
|
r(o);
|
|
3172
3091
|
let n = e.seen.get(o), s = n.schema;
|
|
3173
|
-
if (s.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (i.allOf = i.allOf ?? [], i.allOf.push(s)) :
|
|
3092
|
+
if (s.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (i.allOf = i.allOf ?? [], i.allOf.push(s)) : ro(i, s), ro(i, a), t._zod.parent === o) for (let e in i) e !== "$ref" && e !== "allOf" && (e in a || delete i[e]);
|
|
3174
3093
|
if (s.$ref && n.def) for (let e in i) e !== "$ref" && e !== "allOf" && e in n.def && JSON.stringify(i[e]) === JSON.stringify(n.def[e]) && delete i[e];
|
|
3175
3094
|
}
|
|
3176
3095
|
let s = t._zod.parent;
|
|
@@ -3187,7 +3106,7 @@ function vo(e, t) {
|
|
|
3187
3106
|
};
|
|
3188
3107
|
if (!e.external || e.sharedEmitDoneFor !== e.external) {
|
|
3189
3108
|
for (let t of [...e.seen.entries()].reverse()) r(t[0]);
|
|
3190
|
-
if (e.target !== "openapi-3.0") for (let t of e.seen.entries())
|
|
3109
|
+
if (e.target !== "openapi-3.0") for (let t of e.seen.entries()) co(t[1].def ?? t[1].schema);
|
|
3191
3110
|
for (let t of e.deferred) t();
|
|
3192
3111
|
if (e.intersections.length) {
|
|
3193
3112
|
let t = /* @__PURE__ */ new Map();
|
|
@@ -3197,7 +3116,7 @@ function vo(e, t) {
|
|
|
3197
3116
|
let r = t.get(n);
|
|
3198
3117
|
r ? r.push(e) : t.set(n, [e]);
|
|
3199
3118
|
}
|
|
3200
|
-
for (let n of e.intersections) for (let e of t.get(n) ?? [])
|
|
3119
|
+
for (let n of e.intersections) for (let e of t.get(n) ?? []) mo(e);
|
|
3201
3120
|
}
|
|
3202
3121
|
}
|
|
3203
3122
|
let i = {};
|
|
@@ -3206,7 +3125,7 @@ function vo(e, t) {
|
|
|
3206
3125
|
if (!n) throw Error("Schema is missing an `id` property");
|
|
3207
3126
|
i.$id = e.external.uri(n);
|
|
3208
3127
|
}
|
|
3209
|
-
|
|
3128
|
+
ro(i, n.defId ? n.schema : n.def ?? n.schema);
|
|
3210
3129
|
let a = e.metadataRegistry.get(t)?.id;
|
|
3211
3130
|
a !== void 0 && i.id === a && delete i.id;
|
|
3212
3131
|
let o = e.external?.defs ?? {};
|
|
@@ -3221,8 +3140,8 @@ function vo(e, t) {
|
|
|
3221
3140
|
value: {
|
|
3222
3141
|
...t["~standard"],
|
|
3223
3142
|
jsonSchema: {
|
|
3224
|
-
input:
|
|
3225
|
-
output:
|
|
3143
|
+
input: _o(t, "input", e.processors),
|
|
3144
|
+
output: _o(t, "output", e.processors)
|
|
3226
3145
|
}
|
|
3227
3146
|
},
|
|
3228
3147
|
enumerable: !1,
|
|
@@ -3232,83 +3151,83 @@ function vo(e, t) {
|
|
|
3232
3151
|
throw Error("Error converting schema to JSON.");
|
|
3233
3152
|
}
|
|
3234
3153
|
}
|
|
3235
|
-
function
|
|
3154
|
+
function P(e, t) {
|
|
3236
3155
|
let n = t ?? { seen: /* @__PURE__ */ new Set() };
|
|
3237
3156
|
if (n.seen.has(e)) return !1;
|
|
3238
3157
|
n.seen.add(e);
|
|
3239
3158
|
let r = e._zod.def;
|
|
3240
3159
|
if (r.type === "transform") return !0;
|
|
3241
|
-
if (r.type === "array") return
|
|
3242
|
-
if (r.type === "set") return
|
|
3243
|
-
if (r.type === "lazy") return
|
|
3244
|
-
if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault" || r.type === "catch") return
|
|
3245
|
-
if (r.type === "intersection") return
|
|
3246
|
-
if (r.type === "record" || r.type === "map") return
|
|
3247
|
-
if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 :
|
|
3160
|
+
if (r.type === "array") return P(r.element, n);
|
|
3161
|
+
if (r.type === "set") return P(r.valueType, n);
|
|
3162
|
+
if (r.type === "lazy") return P(r.getter(), n);
|
|
3163
|
+
if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault" || r.type === "catch") return P(r.innerType, n);
|
|
3164
|
+
if (r.type === "intersection") return P(r.left, n) || P(r.right, n);
|
|
3165
|
+
if (r.type === "record" || r.type === "map") return P(r.keyType, n) || P(r.valueType, n);
|
|
3166
|
+
if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 : P(r.in, n) || P(r.out, n);
|
|
3248
3167
|
if (r.type === "object") {
|
|
3249
|
-
for (let e in r.shape) if (
|
|
3168
|
+
for (let e in r.shape) if (P(r.shape[e], n)) return !0;
|
|
3250
3169
|
return !1;
|
|
3251
3170
|
}
|
|
3252
3171
|
if (r.type === "union") {
|
|
3253
|
-
for (let e of r.options) if (
|
|
3172
|
+
for (let e of r.options) if (P(e, n)) return !0;
|
|
3254
3173
|
return !1;
|
|
3255
3174
|
}
|
|
3256
3175
|
if (r.type === "tuple") {
|
|
3257
|
-
for (let e of r.items) if (
|
|
3258
|
-
return !!(r.rest &&
|
|
3176
|
+
for (let e of r.items) if (P(e, n)) return !0;
|
|
3177
|
+
return !!(r.rest && P(r.rest, n));
|
|
3259
3178
|
}
|
|
3260
3179
|
return !1;
|
|
3261
3180
|
}
|
|
3262
|
-
var
|
|
3263
|
-
let r =
|
|
3181
|
+
var go = (e, t = {}) => (n) => {
|
|
3182
|
+
let r = io({
|
|
3264
3183
|
...n,
|
|
3265
3184
|
processors: t
|
|
3266
3185
|
});
|
|
3267
|
-
return
|
|
3268
|
-
},
|
|
3269
|
-
let { libraryOptions: i, target: a } = r ?? {}, o =
|
|
3186
|
+
return N(e, r), so(r, e), ho(r, e);
|
|
3187
|
+
}, _o = (e, t, n = {}) => (r) => {
|
|
3188
|
+
let { libraryOptions: i, target: a } = r ?? {}, o = io({
|
|
3270
3189
|
...i ?? {},
|
|
3271
3190
|
target: a,
|
|
3272
3191
|
io: t,
|
|
3273
3192
|
processors: n
|
|
3274
3193
|
});
|
|
3275
|
-
return
|
|
3276
|
-
},
|
|
3194
|
+
return N(e, o), so(o, e), ho(o, e);
|
|
3195
|
+
}, vo = {
|
|
3277
3196
|
guid: "uuid",
|
|
3278
3197
|
url: "uri",
|
|
3279
3198
|
datetime: "date-time",
|
|
3280
3199
|
json_string: "json-string",
|
|
3281
3200
|
regex: ""
|
|
3282
|
-
},
|
|
3201
|
+
}, yo = (e, t, n, r) => {
|
|
3283
3202
|
let i = n;
|
|
3284
3203
|
i.type = "string";
|
|
3285
3204
|
let { minimum: a, maximum: o, format: s, patterns: c, contentEncoding: l, laxFormat: u } = e._zod.bag;
|
|
3286
|
-
if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format =
|
|
3205
|
+
if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = vo[s] ?? s, i.format === "" && delete i.format, (s === "time" || u) && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
|
|
3287
3206
|
let e = [...c];
|
|
3288
3207
|
e.length === 1 ? i.pattern = e[0].source : e.length > 1 && (i.allOf = [...e.map((e) => ({
|
|
3289
3208
|
...t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0" ? { type: "string" } : {},
|
|
3290
3209
|
pattern: e.source
|
|
3291
3210
|
}))]);
|
|
3292
3211
|
}
|
|
3293
|
-
},
|
|
3212
|
+
}, bo = (e, t, n, r) => {
|
|
3294
3213
|
let i = n, { minimum: a, maximum: o, format: s, multipleOf: c, exclusiveMaximum: l, exclusiveMinimum: u } = e._zod.bag;
|
|
3295
3214
|
i.type = typeof s == "string" && s.includes("int") ? "integer" : "number";
|
|
3296
3215
|
let d = typeof u == "number" && u >= (a ?? -Infinity), f = typeof l == "number" && l <= (o ?? Infinity), p = t.target === "draft-04" || t.target === "openapi-3.0";
|
|
3297
|
-
d ? p ? (i.minimum = u, i.exclusiveMinimum = !0) : i.exclusiveMinimum = u : typeof a == "number" && (i.minimum = a), f ? p ? (i.maximum = l, i.exclusiveMaximum = !0) : i.exclusiveMaximum = l : typeof o == "number" && (i.maximum = o), typeof c == "number" && (Number.isFinite(c) && c !== 0 ? i.multipleOf = Math.abs(c) :
|
|
3298
|
-
},
|
|
3216
|
+
d ? p ? (i.minimum = u, i.exclusiveMinimum = !0) : i.exclusiveMinimum = u : typeof a == "number" && (i.minimum = a), f ? p ? (i.maximum = l, i.exclusiveMaximum = !0) : i.exclusiveMaximum = l : typeof o == "number" && (i.maximum = o), typeof c == "number" && (Number.isFinite(c) && c !== 0 ? i.multipleOf = Math.abs(c) : ao(e, t, i, r, `A multipleOf divisor of ${c} cannot be represented in JSON Schema`));
|
|
3217
|
+
}, xo = (e, t, n, r) => {
|
|
3299
3218
|
n.type = "boolean";
|
|
3300
|
-
},
|
|
3219
|
+
}, So = (e, t, n, r) => {
|
|
3301
3220
|
t.target === "openapi-3.0" ? (n.type = "string", n.nullable = !0, n.enum = [null]) : n.type = "null";
|
|
3302
|
-
},
|
|
3221
|
+
}, Co = (e, t, n, r) => {
|
|
3303
3222
|
n.not = {};
|
|
3304
|
-
},
|
|
3223
|
+
}, wo = (e, t, n, r) => {
|
|
3305
3224
|
let i = e._zod.def, a = Pe(i.entries);
|
|
3306
3225
|
if (a.length === 0) {
|
|
3307
3226
|
n.not = {};
|
|
3308
3227
|
return;
|
|
3309
3228
|
}
|
|
3310
3229
|
a.every((e) => typeof e == "number") && (n.type = "number"), a.every((e) => typeof e == "string") && (n.type = "string"), n.enum = a;
|
|
3311
|
-
},
|
|
3230
|
+
}, To = (e, t, n, r) => {
|
|
3312
3231
|
let i = e._zod.def;
|
|
3313
3232
|
if (i.values.length === 0) {
|
|
3314
3233
|
n.not = {};
|
|
@@ -3316,9 +3235,9 @@ var yo = (e, t = {}) => (n) => {
|
|
|
3316
3235
|
}
|
|
3317
3236
|
let a = [];
|
|
3318
3237
|
for (let o of i.values) if (o === void 0) {
|
|
3319
|
-
if (
|
|
3238
|
+
if (ao(e, t, n, r, "Literal `undefined` cannot be represented in JSON Schema")) return;
|
|
3320
3239
|
} else if (typeof o == "bigint") {
|
|
3321
|
-
if (
|
|
3240
|
+
if (ao(e, t, n, r, "BigInt literals cannot be represented in JSON Schema")) return;
|
|
3322
3241
|
a.push(Number(o));
|
|
3323
3242
|
} else a.push(o);
|
|
3324
3243
|
if (a.length !== 0) {
|
|
@@ -3327,26 +3246,26 @@ var yo = (e, t = {}) => (n) => {
|
|
|
3327
3246
|
n.type = e === null ? "null" : typeof e, t.target === "draft-04" || t.target === "openapi-3.0" ? n.enum = [e] : n.const = e;
|
|
3328
3247
|
} else a.every((e) => typeof e == "number") && (n.type = "number"), a.every((e) => typeof e == "string") && (n.type = "string"), a.every((e) => typeof e == "boolean") && (n.type = "boolean"), a.every((e) => e === null) && (n.type = "null"), n.enum = a;
|
|
3329
3248
|
}
|
|
3330
|
-
},
|
|
3331
|
-
|
|
3332
|
-
},
|
|
3333
|
-
|
|
3334
|
-
},
|
|
3249
|
+
}, Eo = (e, t, n, r) => {
|
|
3250
|
+
ao(e, t, n, r, "Custom types cannot be represented in JSON Schema");
|
|
3251
|
+
}, Do = (e, t, n, r) => {
|
|
3252
|
+
ao(e, t, n, r, "Transforms cannot be represented in JSON Schema");
|
|
3253
|
+
}, Oo = (e, t, n, r) => {
|
|
3335
3254
|
let i = n, a = e._zod.def, { minimum: o, maximum: s } = e._zod.bag;
|
|
3336
|
-
typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items =
|
|
3255
|
+
typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = N(a.element, t, {
|
|
3337
3256
|
...r,
|
|
3338
3257
|
path: [...r.path, "items"]
|
|
3339
3258
|
});
|
|
3340
3259
|
};
|
|
3341
|
-
function
|
|
3260
|
+
function ko(e) {
|
|
3342
3261
|
let t = e._zod.def;
|
|
3343
|
-
return t.type === "pipe" && t.in._zod.traits.has("$ZodTransform") ?
|
|
3262
|
+
return t.type === "pipe" && t.in._zod.traits.has("$ZodTransform") ? ko(t.out) : t.type === "catch" ? ko(t.innerType) : e._zod.optin;
|
|
3344
3263
|
}
|
|
3345
|
-
var
|
|
3264
|
+
var Ao = (e, t, n, r) => {
|
|
3346
3265
|
let i = n, a = e._zod.def, o = a.shape;
|
|
3347
|
-
if (Object.getOwnPropertySymbols(o).length &&
|
|
3266
|
+
if (Object.getOwnPropertySymbols(o).length && ao(e, t, i, r, "Symbol keys cannot be represented in JSON Schema")) return;
|
|
3348
3267
|
i.type = "object", i.properties = {};
|
|
3349
|
-
for (let e in o) C(i.properties, e,
|
|
3268
|
+
for (let e in o) C(i.properties, e, N(o[e], t, {
|
|
3350
3269
|
...r,
|
|
3351
3270
|
path: [
|
|
3352
3271
|
...r.path,
|
|
@@ -3356,14 +3275,14 @@ var No = (e, t, n, r) => {
|
|
|
3356
3275
|
}));
|
|
3357
3276
|
let s = new Set(Object.keys(o)), c = new Set([...s].filter((e) => {
|
|
3358
3277
|
let n = a.shape[e];
|
|
3359
|
-
return t.io === "input" ?
|
|
3278
|
+
return t.io === "input" ? ko(n) === void 0 : n._zod.optout === void 0;
|
|
3360
3279
|
}));
|
|
3361
|
-
c.size > 0 && (i.required = Array.from(c)), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties =
|
|
3280
|
+
c.size > 0 && (i.required = Array.from(c)), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties = N(a.catchall, t, {
|
|
3362
3281
|
...r,
|
|
3363
3282
|
path: [...r.path, "additionalProperties"]
|
|
3364
3283
|
})) : t.io === "output" && (i.additionalProperties = !1);
|
|
3365
|
-
},
|
|
3366
|
-
let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) =>
|
|
3284
|
+
}, jo = (e, t, n, r) => {
|
|
3285
|
+
let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => N(e, t, {
|
|
3367
3286
|
...r,
|
|
3368
3287
|
path: [
|
|
3369
3288
|
...r.path,
|
|
@@ -3372,15 +3291,15 @@ var No = (e, t, n, r) => {
|
|
|
3372
3291
|
]
|
|
3373
3292
|
}));
|
|
3374
3293
|
a ? n.oneOf = o : n.anyOf = o;
|
|
3375
|
-
},
|
|
3376
|
-
let i = e._zod.def, a =
|
|
3294
|
+
}, Mo = (e, t, n, r) => {
|
|
3295
|
+
let i = e._zod.def, a = N(i.left, t, {
|
|
3377
3296
|
...r,
|
|
3378
3297
|
path: [
|
|
3379
3298
|
...r.path,
|
|
3380
3299
|
"allOf",
|
|
3381
3300
|
0
|
|
3382
3301
|
]
|
|
3383
|
-
}), o =
|
|
3302
|
+
}), o = N(i.right, t, {
|
|
3384
3303
|
...r,
|
|
3385
3304
|
path: [
|
|
3386
3305
|
...r.path,
|
|
@@ -3389,47 +3308,20 @@ var No = (e, t, n, r) => {
|
|
|
3389
3308
|
]
|
|
3390
3309
|
}), s = (e) => "allOf" in e && Object.keys(e).length === 1, c = [...s(a) ? a.allOf : [a], ...s(o) ? o.allOf : [o]];
|
|
3391
3310
|
n.allOf = c, t.intersections.push(c);
|
|
3392
|
-
}, Io = (e, t, n, r) => {
|
|
3393
|
-
let i = n, a = e._zod.def;
|
|
3394
|
-
i.type = "array";
|
|
3395
|
-
let o = t.target === "draft-2020-12" ? "prefixItems" : "items", s = t.target === "draft-2020-12" || t.target === "openapi-3.0" ? "items" : "additionalItems", c = a.items.map((e, n) => P(e, t, {
|
|
3396
|
-
...r,
|
|
3397
|
-
path: [
|
|
3398
|
-
...r.path,
|
|
3399
|
-
o,
|
|
3400
|
-
n
|
|
3401
|
-
]
|
|
3402
|
-
})), l = a.rest ? P(a.rest, t, {
|
|
3403
|
-
...r,
|
|
3404
|
-
path: [
|
|
3405
|
-
...r.path,
|
|
3406
|
-
s,
|
|
3407
|
-
...t.target === "openapi-3.0" ? [a.items.length] : []
|
|
3408
|
-
]
|
|
3409
|
-
}) : null, u = a.items.length;
|
|
3410
|
-
for (; u > 0;) {
|
|
3411
|
-
let e = a.items[u - 1];
|
|
3412
|
-
if (!(t.io === "input" ? Mo(e) !== void 0 : e._zod.optout === "optional")) break;
|
|
3413
|
-
u--;
|
|
3414
|
-
}
|
|
3415
|
-
let d = a.items.length, f = !a.rest;
|
|
3416
|
-
t.target === "draft-2020-12" ? (i.prefixItems = c, f ? i.items = !1 : l && (i.items = l), u > 0 && (i.minItems = u), f && (i.maxItems = d)) : t.target === "openapi-3.0" ? (i.items = { anyOf: c }, l && i.items.anyOf.push(l), u > 0 && (i.minItems = u), f && (i.maxItems = d)) : (i.items = c, f ? i.additionalItems = !1 : l && (i.additionalItems = l), u > 0 && (i.minItems = u), f && (i.maxItems = d));
|
|
3417
|
-
let { minimum: p, maximum: m } = e._zod.bag;
|
|
3418
|
-
typeof p == "number" && (i.minItems = p), typeof m == "number" && (i.maxItems = m);
|
|
3419
3311
|
};
|
|
3420
|
-
function
|
|
3312
|
+
function No(e, t, n) {
|
|
3421
3313
|
if (t.$ref) {
|
|
3422
3314
|
if (n.has(t)) return t;
|
|
3423
3315
|
n.add(t);
|
|
3424
3316
|
let r = e.get(t)?.def;
|
|
3425
3317
|
if (!r) return t;
|
|
3426
|
-
let i =
|
|
3318
|
+
let i = No(e, r, n);
|
|
3427
3319
|
return i === r ? t : i;
|
|
3428
3320
|
}
|
|
3429
3321
|
for (let r of ["anyOf", "oneOf"]) {
|
|
3430
3322
|
let i = t[r];
|
|
3431
3323
|
if (!Array.isArray(i)) continue;
|
|
3432
|
-
let a = i.map((t) =>
|
|
3324
|
+
let a = i.map((t) => No(e, t, n));
|
|
3433
3325
|
a.some((e, t) => e !== i[t]) && (t = {
|
|
3434
3326
|
...t,
|
|
3435
3327
|
[r]: a
|
|
@@ -3440,15 +3332,15 @@ function Lo(e, t, n) {
|
|
|
3440
3332
|
let { minimum: o, maximum: s, exclusiveMinimum: c, exclusiveMaximum: l, multipleOf: u, format: d, id: f, ...p } = t;
|
|
3441
3333
|
return p.enum ? p.enum = p.enum.map((e) => typeof e == "number" ? String(e) : e) : typeof p.const == "number" && (p.const = String(p.const)), i ? (p.type = "string", a || (p.pattern = (r.includes("number") ? Bn : zn).source), p) : p;
|
|
3442
3334
|
}
|
|
3443
|
-
var
|
|
3444
|
-
function
|
|
3335
|
+
var Po = /* @__PURE__ */ new WeakMap();
|
|
3336
|
+
function Fo(e) {
|
|
3445
3337
|
let t = /* @__PURE__ */ new Map();
|
|
3446
3338
|
for (let n of e.seen.values()) n.def && !t.has(n.schema) && t.set(n.schema, n);
|
|
3447
3339
|
let n = /* @__PURE__ */ new Map();
|
|
3448
|
-
for (let r of
|
|
3340
|
+
for (let r of Po.get(e) ?? []) {
|
|
3449
3341
|
let i = e.seen.get(r), a = (i?.def ?? i?.schema)?.propertyNames;
|
|
3450
3342
|
if (!a || a === !0 || n.has(a)) continue;
|
|
3451
|
-
let o =
|
|
3343
|
+
let o = No(t, a, /* @__PURE__ */ new Set());
|
|
3452
3344
|
o !== a && n.set(a, o);
|
|
3453
3345
|
}
|
|
3454
3346
|
if (n.size) for (let t of e.seen.values()) for (let e of [t.schema, t.def]) {
|
|
@@ -3456,12 +3348,12 @@ function zo(e) {
|
|
|
3456
3348
|
t && (e.propertyNames = t);
|
|
3457
3349
|
}
|
|
3458
3350
|
}
|
|
3459
|
-
var
|
|
3351
|
+
var Io = (e, t, n, r) => {
|
|
3460
3352
|
let i = n, a = e._zod.def;
|
|
3461
3353
|
i.type = "object";
|
|
3462
3354
|
let o = a.keyType, s = o._zod.bag?.patterns;
|
|
3463
3355
|
if (a.mode === "loose" && s && s.size > 0) {
|
|
3464
|
-
let e =
|
|
3356
|
+
let e = N(a.valueType, t, {
|
|
3465
3357
|
...r,
|
|
3466
3358
|
path: [
|
|
3467
3359
|
...r.path,
|
|
@@ -3473,85 +3365,85 @@ var Bo = (e, t, n, r) => {
|
|
|
3473
3365
|
for (let t of s) C(i.patternProperties, t.source, e);
|
|
3474
3366
|
} else {
|
|
3475
3367
|
if (t.target === "draft-07" || t.target === "draft-2020-12") {
|
|
3476
|
-
i.propertyNames =
|
|
3368
|
+
i.propertyNames = N(a.keyType, t, {
|
|
3477
3369
|
...r,
|
|
3478
3370
|
path: [...r.path, "propertyNames"]
|
|
3479
3371
|
});
|
|
3480
|
-
let n =
|
|
3481
|
-
n || (n = [],
|
|
3372
|
+
let n = Po.get(t);
|
|
3373
|
+
n || (n = [], Po.set(t, n), t.deferred.push(() => Fo(t))), n.push(e);
|
|
3482
3374
|
}
|
|
3483
|
-
i.additionalProperties =
|
|
3375
|
+
i.additionalProperties = N(a.valueType, t, {
|
|
3484
3376
|
...r,
|
|
3485
3377
|
path: [...r.path, "additionalProperties"]
|
|
3486
3378
|
});
|
|
3487
3379
|
}
|
|
3488
|
-
let c = o._zod.values, l = t.io === "input" &&
|
|
3380
|
+
let c = o._zod.values, l = t.io === "input" && ko(a.valueType) !== void 0;
|
|
3489
3381
|
if (c && !a.partial && !l) {
|
|
3490
3382
|
let e = [...c].filter((e) => typeof e == "string" || typeof e == "number");
|
|
3491
3383
|
e.length > 0 && (i.required = e.map(String));
|
|
3492
3384
|
}
|
|
3493
|
-
},
|
|
3494
|
-
let i = e._zod.def, a =
|
|
3385
|
+
}, Lo = (e, t, n, r) => {
|
|
3386
|
+
let i = e._zod.def, a = N(i.innerType, t, r), o = t.seen.get(e);
|
|
3495
3387
|
t.target === "openapi-3.0" ? (o.ref = i.innerType, n.nullable = !0) : n.anyOf = [a, { type: "null" }];
|
|
3496
|
-
},
|
|
3388
|
+
}, Ro = (e, t, n, r) => {
|
|
3497
3389
|
let i = e._zod.def;
|
|
3498
|
-
|
|
3390
|
+
N(i.innerType, t, r);
|
|
3499
3391
|
let a = t.seen.get(e);
|
|
3500
3392
|
a.ref = i.innerType;
|
|
3501
|
-
},
|
|
3502
|
-
function
|
|
3393
|
+
}, zo = Symbol();
|
|
3394
|
+
function Bo(e, t, n, r, i) {
|
|
3503
3395
|
let a = !1, o = JSON.stringify(e, (e, t) => typeof t == "bigint" ? (a = !0, null) : t);
|
|
3504
|
-
return a ? (
|
|
3396
|
+
return a ? (ao(t, n, r, i, "BigInt defaults cannot be represented in JSON Schema"), zo) : JSON.parse(o);
|
|
3505
3397
|
}
|
|
3506
|
-
var
|
|
3398
|
+
var Vo = (e, t, n, r) => {
|
|
3507
3399
|
let i = e._zod.def;
|
|
3508
|
-
|
|
3400
|
+
N(i.innerType, t, r);
|
|
3509
3401
|
let a = t.seen.get(e);
|
|
3510
3402
|
a.ref = i.innerType;
|
|
3511
|
-
let o =
|
|
3512
|
-
o !==
|
|
3513
|
-
},
|
|
3403
|
+
let o = Bo(i.defaultValue, e, t, n, r);
|
|
3404
|
+
o !== zo && (n.default = o);
|
|
3405
|
+
}, Ho = (e, t, n, r) => {
|
|
3514
3406
|
let i = e._zod.def;
|
|
3515
|
-
|
|
3407
|
+
N(i.innerType, t, r);
|
|
3516
3408
|
let a = t.seen.get(e);
|
|
3517
3409
|
if (a.ref = i.innerType, t.io !== "input") return;
|
|
3518
|
-
let o =
|
|
3519
|
-
o !==
|
|
3520
|
-
},
|
|
3410
|
+
let o = Bo(i.defaultValue, e, t, n, r);
|
|
3411
|
+
o !== zo && (n._prefault = o);
|
|
3412
|
+
}, Uo = (e, t, n, r) => {
|
|
3521
3413
|
let i = e._zod.def;
|
|
3522
|
-
|
|
3414
|
+
N(i.innerType, t, r);
|
|
3523
3415
|
let a = t.seen.get(e);
|
|
3524
3416
|
a.ref = i.innerType;
|
|
3525
3417
|
let o;
|
|
3526
3418
|
try {
|
|
3527
3419
|
o = i.catchValue(void 0);
|
|
3528
3420
|
} catch {
|
|
3529
|
-
|
|
3421
|
+
ao(e, t, n, r, "Dynamic catch values are not supported in JSON Schema");
|
|
3530
3422
|
return;
|
|
3531
3423
|
}
|
|
3532
3424
|
n.default = o;
|
|
3533
|
-
},
|
|
3425
|
+
}, Wo = (e, t, n, r) => {
|
|
3534
3426
|
let i = e._zod.def, a = i.in._zod.traits.has("$ZodTransform"), o = t.io === "input" ? a ? i.out : i.in : i.out;
|
|
3535
|
-
|
|
3427
|
+
N(o, t, r);
|
|
3536
3428
|
let s = t.seen.get(e);
|
|
3537
3429
|
s.ref = o;
|
|
3538
|
-
},
|
|
3430
|
+
}, Go = (e, t, n, r) => {
|
|
3539
3431
|
let i = e._zod.def;
|
|
3540
|
-
|
|
3432
|
+
N(i.innerType, t, r);
|
|
3541
3433
|
let a = t.seen.get(e);
|
|
3542
3434
|
a.ref = i.innerType, n.readOnly = !0;
|
|
3543
|
-
},
|
|
3435
|
+
}, Ko = (e, t, n, r) => {
|
|
3544
3436
|
let i = e._zod.def;
|
|
3545
|
-
|
|
3437
|
+
N(i.innerType, t, r);
|
|
3546
3438
|
let a = t.seen.get(e);
|
|
3547
3439
|
a.ref = i.innerType;
|
|
3548
|
-
},
|
|
3440
|
+
}, qo = (e, t, n, r) => {
|
|
3549
3441
|
let i = e._zod.innerType;
|
|
3550
|
-
|
|
3442
|
+
N(i, t, r);
|
|
3551
3443
|
let a = t.seen.get(e);
|
|
3552
3444
|
a.ref = i;
|
|
3553
|
-
},
|
|
3554
|
-
function
|
|
3445
|
+
}, Jo = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
|
|
3446
|
+
function Yo(e, t, n) {
|
|
3555
3447
|
Object.defineProperty(e, t, {
|
|
3556
3448
|
configurable: !0,
|
|
3557
3449
|
enumerable: !1,
|
|
@@ -3572,12 +3464,12 @@ function $o(e, t, n) {
|
|
|
3572
3464
|
}
|
|
3573
3465
|
});
|
|
3574
3466
|
}
|
|
3575
|
-
var
|
|
3467
|
+
var F = /*@__PURE__*/ D("ZodError", (e, t) => {
|
|
3576
3468
|
Wt.init(e, t), e.name = "ZodError";
|
|
3577
3469
|
let n = Object.getPrototypeOf(e);
|
|
3578
|
-
|
|
3470
|
+
Jo.has(n) || (Jo.add(n), Yo(n, "format", (e) => (t) => Jt(e, t)), Yo(n, "flatten", (e) => (t) => qt(e, t)), Yo(n, "addIssue", (e) => (t) => {
|
|
3579
3471
|
e.issues.push(t), e.message = JSON.stringify(e.issues, Ie, 2);
|
|
3580
|
-
}),
|
|
3472
|
+
}), Yo(n, "addIssues", (e) => (t) => {
|
|
3581
3473
|
e.issues.push(...t), e.message = JSON.stringify(e.issues, Ie, 2);
|
|
3582
3474
|
}), Object.defineProperty(n, "isEmpty", {
|
|
3583
3475
|
configurable: !0,
|
|
@@ -3586,16 +3478,16 @@ var I = /*@__PURE__*/ D("ZodError", (e, t) => {
|
|
|
3586
3478
|
return this.issues.length === 0;
|
|
3587
3479
|
}
|
|
3588
3480
|
}));
|
|
3589
|
-
}, void 0, { Parent: Error }),
|
|
3481
|
+
}, void 0, { Parent: Error }), Xo = /* @__PURE__ */ Xt(F), Zo = /* @__PURE__ */ Zt(F), Qo = /* @__PURE__ */ Qt(F), $o = /* @__PURE__ */ en(F), es = /* @__PURE__ */ nn(F), ts = /* @__PURE__ */ rn(F), ns = /* @__PURE__ */ an(F), rs = /* @__PURE__ */ on(F), is = /* @__PURE__ */ sn(F), as = /* @__PURE__ */ cn(F), os = /* @__PURE__ */ ln(F), ss = /* @__PURE__ */ un(F);
|
|
3590
3482
|
//#endregion
|
|
3591
3483
|
//#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/classic/schemas.js
|
|
3592
|
-
function
|
|
3593
|
-
O.localeError || k(
|
|
3484
|
+
function cs() {
|
|
3485
|
+
O.localeError || k(Yi());
|
|
3594
3486
|
}
|
|
3595
|
-
function
|
|
3596
|
-
O.memoizer || k({ memoizer:
|
|
3487
|
+
function ls() {
|
|
3488
|
+
O.memoizer || k({ memoizer: Ki() });
|
|
3597
3489
|
}
|
|
3598
|
-
var
|
|
3490
|
+
var I = /*@__PURE__*/ D("ZodType", (e, t) => (cs(), j.init(e, t), e.def = t, e.type = t.type, e), {
|
|
3599
3491
|
check(...e) {
|
|
3600
3492
|
let t = this.def;
|
|
3601
3493
|
return this.clone(w(t, { checks: [...t.checks ?? [], ...e.map((e) => typeof e == "function" ? { _zod: {
|
|
@@ -3617,64 +3509,64 @@ var L = /*@__PURE__*/ D("ZodType", (e, t) => (fs(), j.init(e, t), e.def = t, e.t
|
|
|
3617
3509
|
return e.add(this, t), this;
|
|
3618
3510
|
},
|
|
3619
3511
|
refine(e, t) {
|
|
3620
|
-
return this.check(
|
|
3512
|
+
return this.check(Ec(e, t));
|
|
3621
3513
|
},
|
|
3622
3514
|
superRefine(e, t) {
|
|
3623
|
-
return this.check(
|
|
3515
|
+
return this.check(Dc(e, t));
|
|
3624
3516
|
},
|
|
3625
3517
|
overwrite(e) {
|
|
3626
|
-
return this.check(/* @__PURE__ */
|
|
3518
|
+
return this.check(/* @__PURE__ */ qa(e));
|
|
3627
3519
|
},
|
|
3628
3520
|
optional() {
|
|
3629
|
-
return
|
|
3521
|
+
return oc(this);
|
|
3630
3522
|
},
|
|
3631
3523
|
exactOptional() {
|
|
3632
|
-
return
|
|
3524
|
+
return cc(this);
|
|
3633
3525
|
},
|
|
3634
3526
|
nullable() {
|
|
3635
|
-
return
|
|
3527
|
+
return uc(this);
|
|
3636
3528
|
},
|
|
3637
3529
|
nullish() {
|
|
3638
|
-
return
|
|
3530
|
+
return oc(uc(this));
|
|
3639
3531
|
},
|
|
3640
3532
|
nonoptional(e) {
|
|
3641
|
-
return
|
|
3533
|
+
return gc(this, e);
|
|
3642
3534
|
},
|
|
3643
3535
|
array() {
|
|
3644
|
-
return
|
|
3536
|
+
return B(this);
|
|
3645
3537
|
},
|
|
3646
3538
|
or(e) {
|
|
3647
|
-
return
|
|
3539
|
+
return H([this, e]);
|
|
3648
3540
|
},
|
|
3649
3541
|
and(e) {
|
|
3650
|
-
return
|
|
3542
|
+
return $s(this, e);
|
|
3651
3543
|
},
|
|
3652
3544
|
transform(e) {
|
|
3653
|
-
return
|
|
3545
|
+
return bc(this, ic(e));
|
|
3654
3546
|
},
|
|
3655
3547
|
default(e) {
|
|
3656
|
-
return
|
|
3548
|
+
return fc(this, e);
|
|
3657
3549
|
},
|
|
3658
3550
|
prefault(e) {
|
|
3659
|
-
return
|
|
3551
|
+
return mc(this, e);
|
|
3660
3552
|
},
|
|
3661
3553
|
catch(e) {
|
|
3662
|
-
return
|
|
3554
|
+
return vc(this, e);
|
|
3663
3555
|
},
|
|
3664
3556
|
pipe(e) {
|
|
3665
|
-
return
|
|
3557
|
+
return bc(this, e);
|
|
3666
3558
|
},
|
|
3667
3559
|
readonly() {
|
|
3668
|
-
return
|
|
3560
|
+
return Sc(this);
|
|
3669
3561
|
},
|
|
3670
3562
|
describe(e) {
|
|
3671
3563
|
let t = this.clone();
|
|
3672
|
-
return
|
|
3564
|
+
return $i.add(t, { description: e }), t;
|
|
3673
3565
|
},
|
|
3674
3566
|
meta(...e) {
|
|
3675
|
-
if (e.length === 0) return
|
|
3567
|
+
if (e.length === 0) return $i.get(this);
|
|
3676
3568
|
let t = this.clone();
|
|
3677
|
-
return
|
|
3569
|
+
return $i.add(t, e[0]), t;
|
|
3678
3570
|
},
|
|
3679
3571
|
isOptional() {
|
|
3680
3572
|
return this.safeParse(void 0).success;
|
|
@@ -3689,8 +3581,8 @@ var L = /*@__PURE__*/ D("ZodType", (e, t) => (fs(), j.init(e, t), e.def = t, e.t
|
|
|
3689
3581
|
return St(this, "~standard", {
|
|
3690
3582
|
...dr(this),
|
|
3691
3583
|
jsonSchema: {
|
|
3692
|
-
input:
|
|
3693
|
-
output:
|
|
3584
|
+
input: _o(this, "input"),
|
|
3585
|
+
output: _o(this, "output")
|
|
3694
3586
|
}
|
|
3695
3587
|
});
|
|
3696
3588
|
},
|
|
@@ -3698,16 +3590,16 @@ var L = /*@__PURE__*/ D("ZodType", (e, t) => (fs(), j.init(e, t), e.def = t, e.t
|
|
|
3698
3590
|
xt(this, "~standard", e);
|
|
3699
3591
|
},
|
|
3700
3592
|
parse: function e(t, n) {
|
|
3701
|
-
return
|
|
3593
|
+
return Xo(this, t, n, { callee: e });
|
|
3702
3594
|
},
|
|
3703
3595
|
parseAsync: async function e(t, n) {
|
|
3704
|
-
return await
|
|
3596
|
+
return await Zo(this, t, n, { callee: e });
|
|
3705
3597
|
},
|
|
3706
3598
|
safeParse(e, t) {
|
|
3707
|
-
return
|
|
3599
|
+
return Qo(this, e, t);
|
|
3708
3600
|
},
|
|
3709
3601
|
async safeParseAsync(e, t) {
|
|
3710
|
-
return
|
|
3602
|
+
return $o(this, e, t);
|
|
3711
3603
|
},
|
|
3712
3604
|
get spa() {
|
|
3713
3605
|
return this?.safeParseAsync;
|
|
@@ -3716,332 +3608,332 @@ var L = /*@__PURE__*/ D("ZodType", (e, t) => (fs(), j.init(e, t), e.def = t, e.t
|
|
|
3716
3608
|
xt(this, "spa", e);
|
|
3717
3609
|
},
|
|
3718
3610
|
encode: function e(t, n) {
|
|
3719
|
-
return
|
|
3611
|
+
return es(this, t, n, { callee: e });
|
|
3720
3612
|
},
|
|
3721
3613
|
decode: function e(t, n) {
|
|
3722
|
-
return
|
|
3614
|
+
return ts(this, t, n, { callee: e });
|
|
3723
3615
|
},
|
|
3724
3616
|
encodeAsync: async function e(t, n) {
|
|
3725
|
-
return await
|
|
3617
|
+
return await ns(this, t, n, { callee: e });
|
|
3726
3618
|
},
|
|
3727
3619
|
decodeAsync: async function e(t, n) {
|
|
3728
|
-
return await
|
|
3620
|
+
return await rs(this, t, n, { callee: e });
|
|
3729
3621
|
},
|
|
3730
3622
|
safeEncode(e, t) {
|
|
3731
|
-
return
|
|
3623
|
+
return is(this, e, t);
|
|
3732
3624
|
},
|
|
3733
3625
|
safeDecode(e, t) {
|
|
3734
|
-
return
|
|
3626
|
+
return as(this, e, t);
|
|
3735
3627
|
},
|
|
3736
3628
|
async safeEncodeAsync(e, t) {
|
|
3737
|
-
return
|
|
3629
|
+
return os(this, e, t);
|
|
3738
3630
|
},
|
|
3739
3631
|
async safeDecodeAsync(e, t) {
|
|
3740
|
-
return
|
|
3632
|
+
return ss(this, e, t);
|
|
3741
3633
|
},
|
|
3742
3634
|
toJSONSchema(e) {
|
|
3743
|
-
return
|
|
3635
|
+
return go(this, {})(e);
|
|
3744
3636
|
},
|
|
3745
3637
|
get description() {
|
|
3746
|
-
return
|
|
3638
|
+
return $i.get(this)?.description;
|
|
3747
3639
|
},
|
|
3748
3640
|
get _def() {
|
|
3749
3641
|
return this._zod.def;
|
|
3750
3642
|
}
|
|
3751
|
-
}),
|
|
3752
|
-
fr.init(e, t),
|
|
3643
|
+
}), us = /*@__PURE__*/ D("_ZodString", (e, t) => {
|
|
3644
|
+
fr.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => yo(e, t, n, r);
|
|
3753
3645
|
let n = e._zod.bag;
|
|
3754
3646
|
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null;
|
|
3755
3647
|
}, {
|
|
3756
3648
|
regex(...e) {
|
|
3757
|
-
return this.check(/* @__PURE__ */
|
|
3649
|
+
return this.check(/* @__PURE__ */ Va(...e));
|
|
3758
3650
|
},
|
|
3759
3651
|
includes(...e) {
|
|
3760
|
-
return this.check(/* @__PURE__ */
|
|
3652
|
+
return this.check(/* @__PURE__ */ Wa(...e));
|
|
3761
3653
|
},
|
|
3762
3654
|
startsWith(...e) {
|
|
3763
|
-
return this.check(/* @__PURE__ */
|
|
3655
|
+
return this.check(/* @__PURE__ */ Ga(...e));
|
|
3764
3656
|
},
|
|
3765
3657
|
endsWith(...e) {
|
|
3766
|
-
return this.check(/* @__PURE__ */
|
|
3658
|
+
return this.check(/* @__PURE__ */ Ka(...e));
|
|
3767
3659
|
},
|
|
3768
3660
|
min(...e) {
|
|
3769
|
-
return this.check(/* @__PURE__ */
|
|
3661
|
+
return this.check(/* @__PURE__ */ za(...e));
|
|
3770
3662
|
},
|
|
3771
3663
|
max(...e) {
|
|
3772
|
-
return this.check(/* @__PURE__ */
|
|
3664
|
+
return this.check(/* @__PURE__ */ Ra(...e));
|
|
3773
3665
|
},
|
|
3774
3666
|
length(...e) {
|
|
3775
|
-
return this.check(/* @__PURE__ */
|
|
3667
|
+
return this.check(/* @__PURE__ */ Ba(...e));
|
|
3776
3668
|
},
|
|
3777
3669
|
nonempty(...e) {
|
|
3778
|
-
return this.check(/* @__PURE__ */
|
|
3670
|
+
return this.check(/* @__PURE__ */ za(1, ...e));
|
|
3779
3671
|
},
|
|
3780
3672
|
lowercase(e) {
|
|
3781
|
-
return this.check(/* @__PURE__ */
|
|
3673
|
+
return this.check(/* @__PURE__ */ Ha(e));
|
|
3782
3674
|
},
|
|
3783
3675
|
uppercase(e) {
|
|
3784
|
-
return this.check(/* @__PURE__ */
|
|
3676
|
+
return this.check(/* @__PURE__ */ Ua(e));
|
|
3785
3677
|
},
|
|
3786
3678
|
trim() {
|
|
3787
|
-
return this.check(/* @__PURE__ */
|
|
3679
|
+
return this.check(/* @__PURE__ */ Ya());
|
|
3788
3680
|
},
|
|
3789
3681
|
normalize(...e) {
|
|
3790
|
-
return this.check(/* @__PURE__ */
|
|
3682
|
+
return this.check(/* @__PURE__ */ Ja(...e));
|
|
3791
3683
|
},
|
|
3792
3684
|
toLowerCase() {
|
|
3793
|
-
return this.check(/* @__PURE__ */
|
|
3685
|
+
return this.check(/* @__PURE__ */ Xa());
|
|
3794
3686
|
},
|
|
3795
3687
|
toUpperCase() {
|
|
3796
|
-
return this.check(/* @__PURE__ */
|
|
3688
|
+
return this.check(/* @__PURE__ */ Za());
|
|
3797
3689
|
},
|
|
3798
3690
|
slugify() {
|
|
3799
|
-
return this.check(/* @__PURE__ */
|
|
3691
|
+
return this.check(/* @__PURE__ */ Qa());
|
|
3800
3692
|
}
|
|
3801
|
-
}),
|
|
3802
|
-
fr.init(e, t),
|
|
3693
|
+
}), ds = /*@__PURE__*/ D("ZodString", (e, t) => {
|
|
3694
|
+
fr.init(e, t), us.init(e, t);
|
|
3803
3695
|
}, {
|
|
3804
3696
|
email(e) {
|
|
3805
|
-
return this.check(/* @__PURE__ */
|
|
3697
|
+
return this.check(/* @__PURE__ */ ta(_s, e));
|
|
3806
3698
|
},
|
|
3807
3699
|
url(e) {
|
|
3808
|
-
return this.check(/* @__PURE__ */
|
|
3700
|
+
return this.check(/* @__PURE__ */ sa(bs, e));
|
|
3809
3701
|
},
|
|
3810
3702
|
jwt(e) {
|
|
3811
|
-
return this.check(/* @__PURE__ */
|
|
3703
|
+
return this.check(/* @__PURE__ */ Sa(Fs, e));
|
|
3812
3704
|
},
|
|
3813
3705
|
emoji(e) {
|
|
3814
|
-
return this.check(/* @__PURE__ */
|
|
3706
|
+
return this.check(/* @__PURE__ */ ca(xs, e));
|
|
3815
3707
|
},
|
|
3816
3708
|
guid(e) {
|
|
3817
|
-
return this.check(/* @__PURE__ */
|
|
3709
|
+
return this.check(/* @__PURE__ */ na(vs, e));
|
|
3818
3710
|
},
|
|
3819
3711
|
uuid(e) {
|
|
3820
|
-
return this.check(/* @__PURE__ */
|
|
3712
|
+
return this.check(/* @__PURE__ */ ra(ys, e));
|
|
3821
3713
|
},
|
|
3822
3714
|
uuidv4(e) {
|
|
3823
|
-
return this.check(/* @__PURE__ */
|
|
3715
|
+
return this.check(/* @__PURE__ */ ia(ys, e));
|
|
3824
3716
|
},
|
|
3825
3717
|
uuidv6(e) {
|
|
3826
|
-
return this.check(/* @__PURE__ */
|
|
3718
|
+
return this.check(/* @__PURE__ */ aa(ys, e));
|
|
3827
3719
|
},
|
|
3828
3720
|
uuidv7(e) {
|
|
3829
|
-
return this.check(/* @__PURE__ */
|
|
3721
|
+
return this.check(/* @__PURE__ */ oa(ys, e));
|
|
3830
3722
|
},
|
|
3831
3723
|
nanoid(e) {
|
|
3832
|
-
return this.check(/* @__PURE__ */
|
|
3724
|
+
return this.check(/* @__PURE__ */ la(Ss, e));
|
|
3833
3725
|
},
|
|
3834
3726
|
cuid(e) {
|
|
3835
|
-
return this.check(/* @__PURE__ */
|
|
3727
|
+
return this.check(/* @__PURE__ */ ua(Cs, e));
|
|
3836
3728
|
},
|
|
3837
3729
|
cuid2(e) {
|
|
3838
|
-
return this.check(/* @__PURE__ */
|
|
3730
|
+
return this.check(/* @__PURE__ */ da(ws, e));
|
|
3839
3731
|
},
|
|
3840
3732
|
ulid(e) {
|
|
3841
|
-
return this.check(/* @__PURE__ */
|
|
3733
|
+
return this.check(/* @__PURE__ */ fa(Ts, e));
|
|
3842
3734
|
},
|
|
3843
3735
|
base64(e) {
|
|
3844
|
-
return this.check(/* @__PURE__ */
|
|
3736
|
+
return this.check(/* @__PURE__ */ ya(Ms, e));
|
|
3845
3737
|
},
|
|
3846
3738
|
base64url(e) {
|
|
3847
|
-
return this.check(/* @__PURE__ */
|
|
3739
|
+
return this.check(/* @__PURE__ */ ba(Ns, e));
|
|
3848
3740
|
},
|
|
3849
3741
|
xid(e) {
|
|
3850
|
-
return this.check(/* @__PURE__ */
|
|
3742
|
+
return this.check(/* @__PURE__ */ pa(Es, e));
|
|
3851
3743
|
},
|
|
3852
3744
|
ksuid(e) {
|
|
3853
|
-
return this.check(/* @__PURE__ */
|
|
3745
|
+
return this.check(/* @__PURE__ */ ma(Ds, e));
|
|
3854
3746
|
},
|
|
3855
3747
|
ipv4(e) {
|
|
3856
|
-
return this.check(/* @__PURE__ */
|
|
3748
|
+
return this.check(/* @__PURE__ */ ha(Os, e));
|
|
3857
3749
|
},
|
|
3858
3750
|
ipv6(e) {
|
|
3859
|
-
return this.check(/* @__PURE__ */
|
|
3751
|
+
return this.check(/* @__PURE__ */ ga(ks, e));
|
|
3860
3752
|
},
|
|
3861
3753
|
cidrv4(e) {
|
|
3862
|
-
return this.check(/* @__PURE__ */
|
|
3754
|
+
return this.check(/* @__PURE__ */ _a(As, e));
|
|
3863
3755
|
},
|
|
3864
3756
|
cidrv6(e) {
|
|
3865
|
-
return this.check(/* @__PURE__ */
|
|
3757
|
+
return this.check(/* @__PURE__ */ va(js, e));
|
|
3866
3758
|
},
|
|
3867
3759
|
e164(e) {
|
|
3868
|
-
return this.check(/* @__PURE__ */
|
|
3760
|
+
return this.check(/* @__PURE__ */ xa(Ps, e));
|
|
3869
3761
|
},
|
|
3870
3762
|
datetime(e) {
|
|
3871
|
-
return this.check(/* @__PURE__ */
|
|
3763
|
+
return this.check(/* @__PURE__ */ Ca(ps, e));
|
|
3872
3764
|
},
|
|
3873
3765
|
date(e) {
|
|
3874
|
-
return this.check(/* @__PURE__ */
|
|
3766
|
+
return this.check(/* @__PURE__ */ wa(ms, e));
|
|
3875
3767
|
},
|
|
3876
3768
|
time(e) {
|
|
3877
|
-
return this.check(/* @__PURE__ */
|
|
3769
|
+
return this.check(/* @__PURE__ */ Ta(hs, e));
|
|
3878
3770
|
},
|
|
3879
3771
|
duration(e) {
|
|
3880
|
-
return this.check(/* @__PURE__ */
|
|
3772
|
+
return this.check(/* @__PURE__ */ Ea(gs, e));
|
|
3881
3773
|
}
|
|
3882
3774
|
});
|
|
3883
|
-
function
|
|
3884
|
-
return /* @__PURE__ */
|
|
3885
|
-
}
|
|
3886
|
-
var
|
|
3887
|
-
M.init(e, t),
|
|
3888
|
-
}),
|
|
3889
|
-
kr.init(e, t),
|
|
3890
|
-
}),
|
|
3891
|
-
Ar.init(e, t),
|
|
3892
|
-
}),
|
|
3893
|
-
jr.init(e, t),
|
|
3894
|
-
}),
|
|
3895
|
-
Mr.init(e, t),
|
|
3896
|
-
}),
|
|
3897
|
-
hr.init(e, t),
|
|
3898
|
-
}),
|
|
3899
|
-
pr.init(e, t),
|
|
3900
|
-
}),
|
|
3901
|
-
mr.init(e, t),
|
|
3902
|
-
}),
|
|
3903
|
-
xr.init(e, t),
|
|
3904
|
-
}),
|
|
3905
|
-
Sr.init(e, t),
|
|
3906
|
-
}),
|
|
3907
|
-
Cr.init(e, t),
|
|
3908
|
-
}),
|
|
3909
|
-
wr.init(e, t),
|
|
3910
|
-
}),
|
|
3911
|
-
Tr.init(e, t),
|
|
3912
|
-
}),
|
|
3913
|
-
Er.init(e, t),
|
|
3914
|
-
}),
|
|
3915
|
-
Dr.init(e, t),
|
|
3916
|
-
}),
|
|
3917
|
-
Or.init(e, t),
|
|
3918
|
-
}),
|
|
3919
|
-
Nr.init(e, t),
|
|
3920
|
-
}),
|
|
3921
|
-
Ir.init(e, t),
|
|
3922
|
-
}),
|
|
3923
|
-
Lr.init(e, t),
|
|
3924
|
-
}),
|
|
3925
|
-
zr.init(e, t),
|
|
3926
|
-
}),
|
|
3927
|
-
Vr.init(e, t),
|
|
3928
|
-
}),
|
|
3929
|
-
Ur.init(e, t),
|
|
3930
|
-
}),
|
|
3931
|
-
Wr.init(e, t),
|
|
3932
|
-
}),
|
|
3933
|
-
Kr.init(e, t),
|
|
3934
|
-
}),
|
|
3935
|
-
qr.init(e, t),
|
|
3775
|
+
function fs(e) {
|
|
3776
|
+
return /* @__PURE__ */ ea(ds, e);
|
|
3777
|
+
}
|
|
3778
|
+
var L = /*@__PURE__*/ D("ZodStringFormat", (e, t) => {
|
|
3779
|
+
M.init(e, t), us.init(e, t);
|
|
3780
|
+
}), ps = /*@__PURE__*/ D("ZodISODateTime", (e, t) => {
|
|
3781
|
+
kr.init(e, t), L.init(e, t);
|
|
3782
|
+
}), ms = /*@__PURE__*/ D("ZodISODate", (e, t) => {
|
|
3783
|
+
Ar.init(e, t), L.init(e, t);
|
|
3784
|
+
}), hs = /*@__PURE__*/ D("ZodISOTime", (e, t) => {
|
|
3785
|
+
jr.init(e, t), L.init(e, t);
|
|
3786
|
+
}), gs = /*@__PURE__*/ D("ZodISODuration", (e, t) => {
|
|
3787
|
+
Mr.init(e, t), L.init(e, t);
|
|
3788
|
+
}), _s = /*@__PURE__*/ D("ZodEmail", (e, t) => {
|
|
3789
|
+
hr.init(e, t), L.init(e, t);
|
|
3790
|
+
}), vs = /*@__PURE__*/ D("ZodGUID", (e, t) => {
|
|
3791
|
+
pr.init(e, t), L.init(e, t);
|
|
3792
|
+
}), ys = /*@__PURE__*/ D("ZodUUID", (e, t) => {
|
|
3793
|
+
mr.init(e, t), L.init(e, t);
|
|
3794
|
+
}), bs = /*@__PURE__*/ D("ZodURL", (e, t) => {
|
|
3795
|
+
xr.init(e, t), L.init(e, t);
|
|
3796
|
+
}), xs = /*@__PURE__*/ D("ZodEmoji", (e, t) => {
|
|
3797
|
+
Sr.init(e, t), L.init(e, t);
|
|
3798
|
+
}), Ss = /*@__PURE__*/ D("ZodNanoID", (e, t) => {
|
|
3799
|
+
Cr.init(e, t), L.init(e, t);
|
|
3800
|
+
}), Cs = /*@__PURE__*/ D("ZodCUID", (e, t) => {
|
|
3801
|
+
wr.init(e, t), L.init(e, t);
|
|
3802
|
+
}), ws = /*@__PURE__*/ D("ZodCUID2", (e, t) => {
|
|
3803
|
+
Tr.init(e, t), L.init(e, t);
|
|
3804
|
+
}), Ts = /*@__PURE__*/ D("ZodULID", (e, t) => {
|
|
3805
|
+
Er.init(e, t), L.init(e, t);
|
|
3806
|
+
}), Es = /*@__PURE__*/ D("ZodXID", (e, t) => {
|
|
3807
|
+
Dr.init(e, t), L.init(e, t);
|
|
3808
|
+
}), Ds = /*@__PURE__*/ D("ZodKSUID", (e, t) => {
|
|
3809
|
+
Or.init(e, t), L.init(e, t);
|
|
3810
|
+
}), Os = /*@__PURE__*/ D("ZodIPv4", (e, t) => {
|
|
3811
|
+
Nr.init(e, t), L.init(e, t);
|
|
3812
|
+
}), ks = /*@__PURE__*/ D("ZodIPv6", (e, t) => {
|
|
3813
|
+
Ir.init(e, t), L.init(e, t);
|
|
3814
|
+
}), As = /*@__PURE__*/ D("ZodCIDRv4", (e, t) => {
|
|
3815
|
+
Lr.init(e, t), L.init(e, t);
|
|
3816
|
+
}), js = /*@__PURE__*/ D("ZodCIDRv6", (e, t) => {
|
|
3817
|
+
zr.init(e, t), L.init(e, t);
|
|
3818
|
+
}), Ms = /*@__PURE__*/ D("ZodBase64", (e, t) => {
|
|
3819
|
+
Vr.init(e, t), L.init(e, t);
|
|
3820
|
+
}), Ns = /*@__PURE__*/ D("ZodBase64URL", (e, t) => {
|
|
3821
|
+
Ur.init(e, t), L.init(e, t);
|
|
3822
|
+
}), Ps = /*@__PURE__*/ D("ZodE164", (e, t) => {
|
|
3823
|
+
Wr.init(e, t), L.init(e, t);
|
|
3824
|
+
}), Fs = /*@__PURE__*/ D("ZodJWT", (e, t) => {
|
|
3825
|
+
Kr.init(e, t), L.init(e, t);
|
|
3826
|
+
}), Is = /*@__PURE__*/ D("ZodNumber", (e, t) => {
|
|
3827
|
+
qr.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => bo(e, t, n, r);
|
|
3936
3828
|
let n = e._zod.bag;
|
|
3937
3829
|
e.minValue = Math.max(n.minimum ?? -Infinity, n.exclusiveMinimum ?? -Infinity) ?? null, e.maxValue = Math.min(n.maximum ?? Infinity, n.exclusiveMaximum ?? Infinity) ?? null, e.isInt = (n.format ?? "").includes("int") || Number.isSafeInteger(n.multipleOf ?? .5), e.isFinite = !0, e.format = n.format ?? null;
|
|
3938
3830
|
}, {
|
|
3939
3831
|
gt(e, t) {
|
|
3940
|
-
return this.check(/* @__PURE__ */
|
|
3832
|
+
return this.check(/* @__PURE__ */ Fa(e, t));
|
|
3941
3833
|
},
|
|
3942
3834
|
gte(e, t) {
|
|
3943
|
-
return this.check(/* @__PURE__ */
|
|
3835
|
+
return this.check(/* @__PURE__ */ Ia(e, t));
|
|
3944
3836
|
},
|
|
3945
3837
|
min(e, t) {
|
|
3946
|
-
return this.check(/* @__PURE__ */
|
|
3838
|
+
return this.check(/* @__PURE__ */ Ia(e, t));
|
|
3947
3839
|
},
|
|
3948
3840
|
lt(e, t) {
|
|
3949
|
-
return this.check(/* @__PURE__ */
|
|
3841
|
+
return this.check(/* @__PURE__ */ Na(e, t));
|
|
3950
3842
|
},
|
|
3951
3843
|
lte(e, t) {
|
|
3952
|
-
return this.check(/* @__PURE__ */
|
|
3844
|
+
return this.check(/* @__PURE__ */ Pa(e, t));
|
|
3953
3845
|
},
|
|
3954
3846
|
max(e, t) {
|
|
3955
|
-
return this.check(/* @__PURE__ */
|
|
3847
|
+
return this.check(/* @__PURE__ */ Pa(e, t));
|
|
3956
3848
|
},
|
|
3957
3849
|
int(e) {
|
|
3958
|
-
return this.check(
|
|
3850
|
+
return this.check(Rs(e));
|
|
3959
3851
|
},
|
|
3960
3852
|
safe(e) {
|
|
3961
|
-
return this.check(
|
|
3853
|
+
return this.check(Rs(e));
|
|
3962
3854
|
},
|
|
3963
3855
|
positive(e) {
|
|
3964
|
-
return this.check(/* @__PURE__ */
|
|
3856
|
+
return this.check(/* @__PURE__ */ Fa(0, e));
|
|
3965
3857
|
},
|
|
3966
3858
|
nonnegative(e) {
|
|
3967
|
-
return this.check(/* @__PURE__ */
|
|
3859
|
+
return this.check(/* @__PURE__ */ Ia(0, e));
|
|
3968
3860
|
},
|
|
3969
3861
|
negative(e) {
|
|
3970
|
-
return this.check(/* @__PURE__ */
|
|
3862
|
+
return this.check(/* @__PURE__ */ Na(0, e));
|
|
3971
3863
|
},
|
|
3972
3864
|
nonpositive(e) {
|
|
3973
|
-
return this.check(/* @__PURE__ */
|
|
3865
|
+
return this.check(/* @__PURE__ */ Pa(0, e));
|
|
3974
3866
|
},
|
|
3975
3867
|
multipleOf(e, t) {
|
|
3976
|
-
return this.check(/* @__PURE__ */
|
|
3868
|
+
return this.check(/* @__PURE__ */ La(e, t));
|
|
3977
3869
|
},
|
|
3978
3870
|
step(e, t) {
|
|
3979
|
-
return this.check(/* @__PURE__ */
|
|
3871
|
+
return this.check(/* @__PURE__ */ La(e, t));
|
|
3980
3872
|
},
|
|
3981
3873
|
finite() {
|
|
3982
3874
|
return this;
|
|
3983
3875
|
}
|
|
3984
3876
|
});
|
|
3985
|
-
function
|
|
3986
|
-
return /* @__PURE__ */
|
|
3877
|
+
function R(e) {
|
|
3878
|
+
return /* @__PURE__ */ Da(Is, e);
|
|
3987
3879
|
}
|
|
3988
|
-
var
|
|
3989
|
-
Jr.init(e, t),
|
|
3880
|
+
var Ls = /*@__PURE__*/ D("ZodNumberFormat", (e, t) => {
|
|
3881
|
+
Jr.init(e, t), Is.init(e, t);
|
|
3990
3882
|
});
|
|
3991
|
-
function
|
|
3992
|
-
return /* @__PURE__ */
|
|
3883
|
+
function Rs(e) {
|
|
3884
|
+
return /* @__PURE__ */ Oa(Ls, e);
|
|
3993
3885
|
}
|
|
3994
|
-
var
|
|
3995
|
-
Yr.init(e, t),
|
|
3886
|
+
var zs = /*@__PURE__*/ D("ZodBoolean", (e, t) => {
|
|
3887
|
+
Yr.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => xo(e, t, n, r);
|
|
3996
3888
|
});
|
|
3997
|
-
function
|
|
3998
|
-
return /* @__PURE__ */
|
|
3889
|
+
function z(e) {
|
|
3890
|
+
return /* @__PURE__ */ ka(zs, e);
|
|
3999
3891
|
}
|
|
4000
|
-
var
|
|
4001
|
-
Xr.init(e, t),
|
|
3892
|
+
var Bs = /*@__PURE__*/ D("ZodNull", (e, t) => {
|
|
3893
|
+
Xr.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => So(e, t, n, r);
|
|
4002
3894
|
});
|
|
4003
|
-
function
|
|
4004
|
-
return /* @__PURE__ */
|
|
3895
|
+
function Vs(e) {
|
|
3896
|
+
return /* @__PURE__ */ Aa(Bs, e);
|
|
4005
3897
|
}
|
|
4006
|
-
var
|
|
4007
|
-
Zr.init(e, t),
|
|
3898
|
+
var Hs = /*@__PURE__*/ D("ZodUnknown", (e, t) => {
|
|
3899
|
+
Zr.init(e, t), I.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
|
|
4008
3900
|
});
|
|
4009
|
-
function
|
|
4010
|
-
return /* @__PURE__ */
|
|
3901
|
+
function Us() {
|
|
3902
|
+
return /* @__PURE__ */ ja(Hs);
|
|
4011
3903
|
}
|
|
4012
|
-
var
|
|
4013
|
-
Qr.init(e, t),
|
|
3904
|
+
var Ws = /*@__PURE__*/ D("ZodNever", (e, t) => {
|
|
3905
|
+
Qr.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Co(e, t, n, r);
|
|
4014
3906
|
});
|
|
4015
|
-
function
|
|
4016
|
-
return /* @__PURE__ */
|
|
3907
|
+
function Gs(e) {
|
|
3908
|
+
return /* @__PURE__ */ Ma(Ws, e);
|
|
4017
3909
|
}
|
|
4018
|
-
var
|
|
4019
|
-
|
|
3910
|
+
var Ks = /*@__PURE__*/ D("ZodArray", (e, t) => {
|
|
3911
|
+
ls(), ei.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Oo(e, t, n, r), e.element = t.element;
|
|
4020
3912
|
}, {
|
|
4021
3913
|
min(e, t) {
|
|
4022
|
-
return this.check(/* @__PURE__ */
|
|
3914
|
+
return this.check(/* @__PURE__ */ za(e, t));
|
|
4023
3915
|
},
|
|
4024
3916
|
nonempty(e) {
|
|
4025
|
-
return this.check(/* @__PURE__ */
|
|
3917
|
+
return this.check(/* @__PURE__ */ za(1, e));
|
|
4026
3918
|
},
|
|
4027
3919
|
max(e, t) {
|
|
4028
|
-
return this.check(/* @__PURE__ */
|
|
3920
|
+
return this.check(/* @__PURE__ */ Ra(e, t));
|
|
4029
3921
|
},
|
|
4030
3922
|
length(e, t) {
|
|
4031
|
-
return this.check(/* @__PURE__ */
|
|
3923
|
+
return this.check(/* @__PURE__ */ Ba(e, t));
|
|
4032
3924
|
},
|
|
4033
3925
|
unwrap() {
|
|
4034
3926
|
return this.element;
|
|
4035
3927
|
}
|
|
4036
3928
|
});
|
|
4037
|
-
function
|
|
4038
|
-
return /* @__PURE__ */
|
|
3929
|
+
function B(e, t) {
|
|
3930
|
+
return /* @__PURE__ */ $a(Ks, e, t);
|
|
4039
3931
|
}
|
|
4040
|
-
var
|
|
4041
|
-
|
|
3932
|
+
var qs = /*@__PURE__*/ D("ZodObject", (e, t) => {
|
|
3933
|
+
ls(), si.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ao(e, t, n, r), Ot(e, "shape", (e) => e._zod.def.shape, !1);
|
|
4042
3934
|
}, {
|
|
4043
3935
|
keyof() {
|
|
4044
|
-
return
|
|
3936
|
+
return W(Object.keys(this._zod.def.shape));
|
|
4045
3937
|
},
|
|
4046
3938
|
catchall(e) {
|
|
4047
3939
|
return this.clone({
|
|
@@ -4052,19 +3944,19 @@ var Zs = /*@__PURE__*/ D("ZodObject", (e, t) => {
|
|
|
4052
3944
|
passthrough() {
|
|
4053
3945
|
return this.clone({
|
|
4054
3946
|
...this._zod.def,
|
|
4055
|
-
catchall:
|
|
3947
|
+
catchall: Us()
|
|
4056
3948
|
});
|
|
4057
3949
|
},
|
|
4058
3950
|
loose() {
|
|
4059
3951
|
return this.clone({
|
|
4060
3952
|
...this._zod.def,
|
|
4061
|
-
catchall:
|
|
3953
|
+
catchall: Us()
|
|
4062
3954
|
});
|
|
4063
3955
|
},
|
|
4064
3956
|
strict() {
|
|
4065
3957
|
return this.clone({
|
|
4066
3958
|
...this._zod.def,
|
|
4067
|
-
catchall:
|
|
3959
|
+
catchall: Gs()
|
|
4068
3960
|
});
|
|
4069
3961
|
},
|
|
4070
3962
|
strip() {
|
|
@@ -4089,115 +3981,85 @@ var Zs = /*@__PURE__*/ D("ZodObject", (e, t) => {
|
|
|
4089
3981
|
return rt(this, e);
|
|
4090
3982
|
},
|
|
4091
3983
|
partial(...e) {
|
|
4092
|
-
return st(
|
|
3984
|
+
return st(ac, this, e[0]);
|
|
4093
3985
|
},
|
|
4094
3986
|
exactPartial(...e) {
|
|
4095
|
-
return st(
|
|
3987
|
+
return st(sc, this, e[0], "exactPartial");
|
|
4096
3988
|
},
|
|
4097
3989
|
required(...e) {
|
|
4098
|
-
return ct(
|
|
3990
|
+
return ct(hc, this, e[0]);
|
|
4099
3991
|
}
|
|
4100
3992
|
});
|
|
4101
|
-
function
|
|
4102
|
-
return new
|
|
3993
|
+
function V(e, t) {
|
|
3994
|
+
return new qs({
|
|
4103
3995
|
type: "object",
|
|
4104
3996
|
shape: e ?? {},
|
|
4105
3997
|
...T(t)
|
|
4106
3998
|
});
|
|
4107
3999
|
}
|
|
4108
|
-
function
|
|
4109
|
-
return new
|
|
4000
|
+
function Js(e, t) {
|
|
4001
|
+
return new qs({
|
|
4110
4002
|
type: "object",
|
|
4111
4003
|
shape: e,
|
|
4112
|
-
catchall:
|
|
4004
|
+
catchall: Gs(),
|
|
4113
4005
|
...T(t)
|
|
4114
4006
|
});
|
|
4115
4007
|
}
|
|
4116
|
-
var
|
|
4117
|
-
li.init(e, t),
|
|
4008
|
+
var Ys = /*@__PURE__*/ D("ZodUnion", (e, t) => {
|
|
4009
|
+
li.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => jo(e, t, n, r), e.options = t.options;
|
|
4118
4010
|
});
|
|
4119
|
-
function
|
|
4120
|
-
return new
|
|
4011
|
+
function H(e, t) {
|
|
4012
|
+
return new Ys({
|
|
4121
4013
|
type: "union",
|
|
4122
4014
|
options: e,
|
|
4123
4015
|
...T(t)
|
|
4124
4016
|
});
|
|
4125
4017
|
}
|
|
4126
|
-
var
|
|
4127
|
-
|
|
4018
|
+
var Xs = /*@__PURE__*/ D("ZodDiscriminatedUnion", (e, t) => {
|
|
4019
|
+
Ys.init(e, t), ui.init(e, t);
|
|
4128
4020
|
});
|
|
4129
|
-
function
|
|
4130
|
-
return new
|
|
4021
|
+
function Zs(e, t, n) {
|
|
4022
|
+
return new Xs({
|
|
4131
4023
|
type: "union",
|
|
4132
4024
|
options: t,
|
|
4133
4025
|
discriminator: e,
|
|
4134
4026
|
...T(n)
|
|
4135
4027
|
});
|
|
4136
4028
|
}
|
|
4137
|
-
var
|
|
4138
|
-
di.init(e, t),
|
|
4029
|
+
var Qs = /*@__PURE__*/ D("ZodIntersection", (e, t) => {
|
|
4030
|
+
di.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Mo(e, t, n, r);
|
|
4139
4031
|
});
|
|
4140
|
-
function
|
|
4141
|
-
return new
|
|
4032
|
+
function $s(e, t) {
|
|
4033
|
+
return new Qs({
|
|
4142
4034
|
type: "intersection",
|
|
4143
4035
|
left: e,
|
|
4144
4036
|
right: t
|
|
4145
4037
|
});
|
|
4146
4038
|
}
|
|
4147
|
-
var
|
|
4148
|
-
|
|
4149
|
-
}, {
|
|
4150
|
-
rest(e) {
|
|
4151
|
-
return this.clone({
|
|
4152
|
-
...this._zod.def,
|
|
4153
|
-
rest: e
|
|
4154
|
-
});
|
|
4155
|
-
},
|
|
4156
|
-
partial() {
|
|
4157
|
-
let e = this._zod.def;
|
|
4158
|
-
if (e.checks?.length) throw Error(".partial() cannot be used on tuple schemas containing refinements");
|
|
4159
|
-
return this.clone({
|
|
4160
|
-
...e,
|
|
4161
|
-
items: e.items.map((e) => new dc({
|
|
4162
|
-
type: "optional",
|
|
4163
|
-
innerType: e
|
|
4164
|
-
}))
|
|
4165
|
-
});
|
|
4166
|
-
}
|
|
4039
|
+
var ec = /*@__PURE__*/ D("ZodRecord", (e, t) => {
|
|
4040
|
+
ls(), mi.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Io(e, t, n, r), e.keyType = t.keyType, e.valueType = t.valueType;
|
|
4167
4041
|
});
|
|
4168
|
-
function
|
|
4169
|
-
|
|
4170
|
-
return new ic({
|
|
4171
|
-
type: "tuple",
|
|
4172
|
-
items: e,
|
|
4173
|
-
rest: r ? t : null,
|
|
4174
|
-
...T(r ? n : t)
|
|
4175
|
-
});
|
|
4176
|
-
}
|
|
4177
|
-
var oc = /*@__PURE__*/ D("ZodRecord", (e, t) => {
|
|
4178
|
-
ps(), vi.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Bo(e, t, n, r), e.keyType = t.keyType, e.valueType = t.valueType;
|
|
4179
|
-
});
|
|
4180
|
-
function W(e, t, n) {
|
|
4181
|
-
return !t || !t._zod ? new oc({
|
|
4042
|
+
function U(e, t, n) {
|
|
4043
|
+
return !t || !t._zod ? new ec({
|
|
4182
4044
|
type: "record",
|
|
4183
|
-
keyType:
|
|
4045
|
+
keyType: fs(),
|
|
4184
4046
|
valueType: e,
|
|
4185
4047
|
...T(t)
|
|
4186
|
-
}) : new
|
|
4048
|
+
}) : new ec({
|
|
4187
4049
|
type: "record",
|
|
4188
4050
|
keyType: e,
|
|
4189
4051
|
valueType: t,
|
|
4190
4052
|
...T(n)
|
|
4191
4053
|
});
|
|
4192
4054
|
}
|
|
4193
|
-
var
|
|
4194
|
-
|
|
4055
|
+
var tc = /*@__PURE__*/ D("ZodEnum", (e, t) => {
|
|
4056
|
+
hi.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => wo(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
|
|
4195
4057
|
let n = new Set(Object.keys(t.entries));
|
|
4196
4058
|
e.extract = (e, r) => {
|
|
4197
4059
|
let i = {};
|
|
4198
4060
|
for (let r of e) if (n.has(r)) i[r] = t.entries[r];
|
|
4199
4061
|
else throw Error(`Key ${r} not found in enum`);
|
|
4200
|
-
return new
|
|
4062
|
+
return new tc({
|
|
4201
4063
|
...t,
|
|
4202
4064
|
checks: [],
|
|
4203
4065
|
...T(r),
|
|
@@ -4207,7 +4069,7 @@ var sc = /*@__PURE__*/ D("ZodEnum", (e, t) => {
|
|
|
4207
4069
|
let i = { ...t.entries };
|
|
4208
4070
|
for (let t of e) if (n.has(t)) delete i[t];
|
|
4209
4071
|
else throw Error(`Key ${t} not found in enum`);
|
|
4210
|
-
return new
|
|
4072
|
+
return new tc({
|
|
4211
4073
|
...t,
|
|
4212
4074
|
checks: [],
|
|
4213
4075
|
...T(r),
|
|
@@ -4215,28 +4077,28 @@ var sc = /*@__PURE__*/ D("ZodEnum", (e, t) => {
|
|
|
4215
4077
|
});
|
|
4216
4078
|
};
|
|
4217
4079
|
});
|
|
4218
|
-
function
|
|
4219
|
-
return new
|
|
4080
|
+
function W(e, t) {
|
|
4081
|
+
return new tc({
|
|
4220
4082
|
type: "enum",
|
|
4221
4083
|
entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
|
|
4222
4084
|
...T(t)
|
|
4223
4085
|
});
|
|
4224
4086
|
}
|
|
4225
|
-
var
|
|
4226
|
-
|
|
4087
|
+
var nc = /*@__PURE__*/ D("ZodLiteral", (e, t) => {
|
|
4088
|
+
gi.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => To(e, t, n, r), e.values = new Set(t.values), Object.defineProperty(e, "value", { get() {
|
|
4227
4089
|
if (t.values.length > 1) throw Error("This schema contains multiple valid literal values. Use `.values` instead.");
|
|
4228
4090
|
return t.values[0];
|
|
4229
4091
|
} });
|
|
4230
4092
|
});
|
|
4231
|
-
function
|
|
4232
|
-
return new
|
|
4093
|
+
function G(e, t) {
|
|
4094
|
+
return new nc({
|
|
4233
4095
|
type: "literal",
|
|
4234
4096
|
values: Array.isArray(e) ? e : [e],
|
|
4235
4097
|
...T(t)
|
|
4236
4098
|
});
|
|
4237
4099
|
}
|
|
4238
|
-
var
|
|
4239
|
-
|
|
4100
|
+
var rc = /*@__PURE__*/ D("ZodTransform", (e, t) => {
|
|
4101
|
+
ls(), _i.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Do(e, t, n, r), e._zod.parse = (n, r) => {
|
|
4240
4102
|
if (r.direction === "backward") throw new It(e.constructor.name);
|
|
4241
4103
|
n.addIssue = (r) => {
|
|
4242
4104
|
if (typeof r == "string") n.issues.push(yt(r, n.value, t));
|
|
@@ -4249,44 +4111,44 @@ var lc = /*@__PURE__*/ D("ZodTransform", (e, t) => {
|
|
|
4249
4111
|
return i instanceof Promise ? i.then((e) => (n.value = e, n)) : (n.value = i, n);
|
|
4250
4112
|
};
|
|
4251
4113
|
});
|
|
4252
|
-
function
|
|
4253
|
-
return new
|
|
4114
|
+
function ic(e) {
|
|
4115
|
+
return new rc({
|
|
4254
4116
|
type: "transform",
|
|
4255
4117
|
transform: e
|
|
4256
4118
|
});
|
|
4257
4119
|
}
|
|
4258
|
-
var
|
|
4259
|
-
|
|
4120
|
+
var ac = /*@__PURE__*/ D("ZodOptional", (e, t) => {
|
|
4121
|
+
yi.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ko(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
4260
4122
|
});
|
|
4261
|
-
function
|
|
4262
|
-
return new
|
|
4123
|
+
function oc(e) {
|
|
4124
|
+
return new ac({
|
|
4263
4125
|
type: "optional",
|
|
4264
4126
|
innerType: e
|
|
4265
4127
|
});
|
|
4266
4128
|
}
|
|
4267
|
-
var
|
|
4268
|
-
|
|
4129
|
+
var sc = /*@__PURE__*/ D("ZodExactOptional", (e, t) => {
|
|
4130
|
+
bi.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ko(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
4269
4131
|
});
|
|
4270
|
-
function
|
|
4271
|
-
return new
|
|
4132
|
+
function cc(e) {
|
|
4133
|
+
return new sc({
|
|
4272
4134
|
type: "optional",
|
|
4273
4135
|
innerType: e
|
|
4274
4136
|
});
|
|
4275
4137
|
}
|
|
4276
|
-
var
|
|
4277
|
-
|
|
4138
|
+
var lc = /*@__PURE__*/ D("ZodNullable", (e, t) => {
|
|
4139
|
+
xi.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Lo(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
4278
4140
|
});
|
|
4279
|
-
function
|
|
4280
|
-
return new
|
|
4141
|
+
function uc(e) {
|
|
4142
|
+
return new lc({
|
|
4281
4143
|
type: "nullable",
|
|
4282
4144
|
innerType: e
|
|
4283
4145
|
});
|
|
4284
4146
|
}
|
|
4285
|
-
var
|
|
4286
|
-
|
|
4147
|
+
var dc = /*@__PURE__*/ D("ZodDefault", (e, t) => {
|
|
4148
|
+
Si.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Vo(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
4287
4149
|
});
|
|
4288
|
-
function
|
|
4289
|
-
return new
|
|
4150
|
+
function fc(e, t) {
|
|
4151
|
+
return new dc({
|
|
4290
4152
|
type: "default",
|
|
4291
4153
|
innerType: e,
|
|
4292
4154
|
get defaultValue() {
|
|
@@ -4294,11 +4156,11 @@ function vc(e, t) {
|
|
|
4294
4156
|
}
|
|
4295
4157
|
});
|
|
4296
4158
|
}
|
|
4297
|
-
var
|
|
4298
|
-
|
|
4159
|
+
var pc = /*@__PURE__*/ D("ZodPrefault", (e, t) => {
|
|
4160
|
+
wi.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ho(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
4299
4161
|
});
|
|
4300
|
-
function
|
|
4301
|
-
return new
|
|
4162
|
+
function mc(e, t) {
|
|
4163
|
+
return new pc({
|
|
4302
4164
|
type: "prefault",
|
|
4303
4165
|
innerType: e,
|
|
4304
4166
|
get defaultValue() {
|
|
@@ -4306,188 +4168,188 @@ function bc(e, t) {
|
|
|
4306
4168
|
}
|
|
4307
4169
|
});
|
|
4308
4170
|
}
|
|
4309
|
-
var
|
|
4310
|
-
|
|
4171
|
+
var hc = /*@__PURE__*/ D("ZodNonOptional", (e, t) => {
|
|
4172
|
+
Ti.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ro(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
4311
4173
|
});
|
|
4312
|
-
function
|
|
4313
|
-
return new
|
|
4174
|
+
function gc(e, t) {
|
|
4175
|
+
return new hc({
|
|
4314
4176
|
type: "nonoptional",
|
|
4315
4177
|
innerType: e,
|
|
4316
4178
|
...T(t)
|
|
4317
4179
|
});
|
|
4318
4180
|
}
|
|
4319
|
-
var
|
|
4320
|
-
|
|
4181
|
+
var _c = /*@__PURE__*/ D("ZodCatch", (e, t) => {
|
|
4182
|
+
Oi.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Uo(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
|
|
4321
4183
|
});
|
|
4322
|
-
function
|
|
4323
|
-
return new
|
|
4184
|
+
function vc(e, t) {
|
|
4185
|
+
return new _c({
|
|
4324
4186
|
type: "catch",
|
|
4325
4187
|
innerType: e,
|
|
4326
4188
|
catchValue: typeof t == "function" ? t : At(t)
|
|
4327
4189
|
});
|
|
4328
4190
|
}
|
|
4329
|
-
var
|
|
4330
|
-
|
|
4191
|
+
var yc = /*@__PURE__*/ D("ZodPipe", (e, t) => {
|
|
4192
|
+
ki.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Wo(e, t, n, r), e.in = t.in, e.out = t.out;
|
|
4331
4193
|
});
|
|
4332
|
-
function
|
|
4333
|
-
return new
|
|
4194
|
+
function bc(e, t) {
|
|
4195
|
+
return new yc({
|
|
4334
4196
|
type: "pipe",
|
|
4335
4197
|
in: e,
|
|
4336
4198
|
out: t
|
|
4337
4199
|
});
|
|
4338
4200
|
}
|
|
4339
|
-
var
|
|
4340
|
-
|
|
4201
|
+
var xc = /*@__PURE__*/ D("ZodReadonly", (e, t) => {
|
|
4202
|
+
ji.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Go(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
4341
4203
|
});
|
|
4342
|
-
function
|
|
4343
|
-
return new
|
|
4204
|
+
function Sc(e) {
|
|
4205
|
+
return new xc({
|
|
4344
4206
|
type: "readonly",
|
|
4345
4207
|
innerType: e
|
|
4346
4208
|
});
|
|
4347
4209
|
}
|
|
4348
|
-
var
|
|
4349
|
-
|
|
4210
|
+
var Cc = /*@__PURE__*/ D("ZodLazy", (e, t) => {
|
|
4211
|
+
Ni.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => qo(e, t, n, r), e.unwrap = () => e._zod.def.getter();
|
|
4350
4212
|
});
|
|
4351
|
-
function
|
|
4352
|
-
return new
|
|
4213
|
+
function wc(e) {
|
|
4214
|
+
return new Cc({
|
|
4353
4215
|
type: "lazy",
|
|
4354
4216
|
getter: e
|
|
4355
4217
|
});
|
|
4356
4218
|
}
|
|
4357
|
-
var
|
|
4358
|
-
|
|
4219
|
+
var Tc = /*@__PURE__*/ D("ZodCustom", (e, t) => {
|
|
4220
|
+
Pi.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Eo(e, t, n, r);
|
|
4359
4221
|
});
|
|
4360
|
-
function
|
|
4361
|
-
return /* @__PURE__ */
|
|
4222
|
+
function Ec(e, t = {}) {
|
|
4223
|
+
return /* @__PURE__ */ eo(Tc, e, t);
|
|
4362
4224
|
}
|
|
4363
|
-
function
|
|
4364
|
-
return /* @__PURE__ */
|
|
4225
|
+
function Dc(e, t) {
|
|
4226
|
+
return /* @__PURE__ */ to(e, t);
|
|
4365
4227
|
}
|
|
4366
|
-
function
|
|
4367
|
-
let t =
|
|
4368
|
-
|
|
4228
|
+
function Oc(e) {
|
|
4229
|
+
let t = wc(() => H([
|
|
4230
|
+
fs(e),
|
|
4231
|
+
R(),
|
|
4369
4232
|
z(),
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
W(gs(), t)
|
|
4233
|
+
Vs(),
|
|
4234
|
+
B(t),
|
|
4235
|
+
U(fs(), t)
|
|
4374
4236
|
]));
|
|
4375
4237
|
return t;
|
|
4376
4238
|
}
|
|
4377
|
-
function
|
|
4239
|
+
function kc(e, t = 0) {
|
|
4378
4240
|
if (t > 64) throw TypeError("Value exceeds the maximum JSON depth.");
|
|
4379
|
-
if (typeof e == "object" && e) for (let n of Object.values(e))
|
|
4241
|
+
if (typeof e == "object" && e) for (let n of Object.values(e)) kc(n, t + 1);
|
|
4380
4242
|
}
|
|
4381
4243
|
//#endregion
|
|
4382
4244
|
//#region src/flow/common/triggerScheduleSchema.ts
|
|
4383
|
-
var
|
|
4384
|
-
type:
|
|
4385
|
-
expression:
|
|
4386
|
-
timezone:
|
|
4387
|
-
}),
|
|
4388
|
-
type:
|
|
4389
|
-
unit:
|
|
4245
|
+
var Ac = B(H([V({
|
|
4246
|
+
type: G("cron"),
|
|
4247
|
+
expression: fs(),
|
|
4248
|
+
timezone: fs()
|
|
4249
|
+
}), V({
|
|
4250
|
+
type: G("every"),
|
|
4251
|
+
unit: W([
|
|
4390
4252
|
"day",
|
|
4391
4253
|
"hour",
|
|
4392
4254
|
"minute",
|
|
4393
4255
|
"month",
|
|
4394
4256
|
"week"
|
|
4395
4257
|
]),
|
|
4396
|
-
value:
|
|
4397
|
-
})])),
|
|
4398
|
-
description:
|
|
4399
|
-
jsonSchema:
|
|
4400
|
-
nullable:
|
|
4401
|
-
handle:
|
|
4402
|
-
}),
|
|
4403
|
-
collapsed:
|
|
4404
|
-
group:
|
|
4405
|
-
}),
|
|
4406
|
-
kind:
|
|
4407
|
-
nodeId:
|
|
4408
|
-
output:
|
|
4409
|
-
}),
|
|
4410
|
-
kind:
|
|
4411
|
-
input:
|
|
4412
|
-
}),
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
kind:
|
|
4417
|
-
bindingId:
|
|
4258
|
+
value: R()
|
|
4259
|
+
})])), K = fs(), q = Oc(), jc = B(K), Mc = V({
|
|
4260
|
+
description: K.optional(),
|
|
4261
|
+
jsonSchema: q,
|
|
4262
|
+
nullable: z(),
|
|
4263
|
+
handle: K
|
|
4264
|
+
}), J = Mc.extend({ value: q.optional() }), Nc = V({
|
|
4265
|
+
collapsed: z().optional(),
|
|
4266
|
+
group: K
|
|
4267
|
+
}), Pc = V({
|
|
4268
|
+
kind: G("node"),
|
|
4269
|
+
nodeId: K,
|
|
4270
|
+
output: K
|
|
4271
|
+
}), Fc = V({
|
|
4272
|
+
kind: G("flow"),
|
|
4273
|
+
input: K
|
|
4274
|
+
}), Ic = H([
|
|
4275
|
+
Pc,
|
|
4276
|
+
Fc,
|
|
4277
|
+
V({
|
|
4278
|
+
kind: G("binding"),
|
|
4279
|
+
bindingId: K
|
|
4418
4280
|
})
|
|
4419
|
-
]),
|
|
4420
|
-
kind:
|
|
4421
|
-
value:
|
|
4422
|
-
}),
|
|
4423
|
-
kind:
|
|
4424
|
-
sources:
|
|
4425
|
-
})]),
|
|
4426
|
-
inputs:
|
|
4427
|
-
outputs:
|
|
4428
|
-
},
|
|
4429
|
-
kind:
|
|
4430
|
-
action:
|
|
4431
|
-
connectionId:
|
|
4432
|
-
connections: V(
|
|
4433
|
-
connectionId:
|
|
4434
|
-
alias:
|
|
4281
|
+
]), Lc = H([V({
|
|
4282
|
+
kind: G("value"),
|
|
4283
|
+
value: q
|
|
4284
|
+
}), V({
|
|
4285
|
+
kind: G("sources"),
|
|
4286
|
+
sources: B(Ic)
|
|
4287
|
+
})]), Rc = U(K, Lc), zc = {
|
|
4288
|
+
inputs: B(H([J, Nc])),
|
|
4289
|
+
outputs: B(H([Mc, Nc]))
|
|
4290
|
+
}, Bc = V({
|
|
4291
|
+
kind: G("connector"),
|
|
4292
|
+
action: K,
|
|
4293
|
+
connectionId: K.optional(),
|
|
4294
|
+
connections: B(V({
|
|
4295
|
+
connectionId: K,
|
|
4296
|
+
alias: K.optional()
|
|
4435
4297
|
}))
|
|
4436
|
-
}),
|
|
4437
|
-
...
|
|
4438
|
-
name:
|
|
4439
|
-
moduleId:
|
|
4440
|
-
capabilities:
|
|
4441
|
-
}),
|
|
4442
|
-
kind:
|
|
4443
|
-
value:
|
|
4444
|
-
}),
|
|
4445
|
-
kind:
|
|
4446
|
-
input:
|
|
4447
|
-
})]),
|
|
4448
|
-
...
|
|
4449
|
-
name:
|
|
4450
|
-
executor:
|
|
4451
|
-
|
|
4452
|
-
kind:
|
|
4453
|
-
action:
|
|
4454
|
-
connectionId:
|
|
4298
|
+
}), Vc = V({
|
|
4299
|
+
...zc,
|
|
4300
|
+
name: K,
|
|
4301
|
+
moduleId: K,
|
|
4302
|
+
capabilities: B(Bc).optional()
|
|
4303
|
+
}), Hc = H([V({
|
|
4304
|
+
kind: G("value"),
|
|
4305
|
+
value: q
|
|
4306
|
+
}), V({
|
|
4307
|
+
kind: G("input"),
|
|
4308
|
+
input: K
|
|
4309
|
+
})]), Uc = H([Hc, V({ kind: G("model") })]), Wc = V({
|
|
4310
|
+
...zc,
|
|
4311
|
+
name: K,
|
|
4312
|
+
executor: H([
|
|
4313
|
+
V({
|
|
4314
|
+
kind: G("connector"),
|
|
4315
|
+
action: K,
|
|
4316
|
+
connectionId: K.optional()
|
|
4455
4317
|
}),
|
|
4456
|
-
|
|
4457
|
-
kind:
|
|
4458
|
-
mode:
|
|
4318
|
+
V({
|
|
4319
|
+
kind: G("llm"),
|
|
4320
|
+
mode: W(["chat", "json"])
|
|
4459
4321
|
}),
|
|
4460
|
-
|
|
4461
|
-
kind:
|
|
4462
|
-
code:
|
|
4463
|
-
model:
|
|
4464
|
-
prompt:
|
|
4465
|
-
system:
|
|
4466
|
-
maxRounds:
|
|
4467
|
-
tools: V(
|
|
4468
|
-
id:
|
|
4469
|
-
name:
|
|
4470
|
-
description:
|
|
4471
|
-
action:
|
|
4472
|
-
connectionId:
|
|
4473
|
-
approval:
|
|
4474
|
-
inputs:
|
|
4322
|
+
V({
|
|
4323
|
+
kind: G("agent"),
|
|
4324
|
+
code: z().optional(),
|
|
4325
|
+
model: K,
|
|
4326
|
+
prompt: Hc,
|
|
4327
|
+
system: K,
|
|
4328
|
+
maxRounds: R(),
|
|
4329
|
+
tools: B(V({
|
|
4330
|
+
id: K,
|
|
4331
|
+
name: K,
|
|
4332
|
+
description: K,
|
|
4333
|
+
action: K,
|
|
4334
|
+
connectionId: K.optional(),
|
|
4335
|
+
approval: z(),
|
|
4336
|
+
inputs: B(J.extend({ source: Uc }))
|
|
4475
4337
|
})),
|
|
4476
|
-
notification:
|
|
4477
|
-
taskId:
|
|
4478
|
-
messageHandle:
|
|
4479
|
-
inputs:
|
|
4338
|
+
notification: V({
|
|
4339
|
+
taskId: K,
|
|
4340
|
+
messageHandle: K,
|
|
4341
|
+
inputs: U(K, Hc)
|
|
4480
4342
|
}).optional()
|
|
4481
4343
|
})
|
|
4482
4344
|
])
|
|
4483
|
-
}),
|
|
4484
|
-
input:
|
|
4485
|
-
cases: V(
|
|
4486
|
-
output:
|
|
4487
|
-
relation:
|
|
4488
|
-
expressions: V(
|
|
4489
|
-
input:
|
|
4490
|
-
operator:
|
|
4345
|
+
}), Gc = {
|
|
4346
|
+
input: J,
|
|
4347
|
+
cases: B(V({
|
|
4348
|
+
output: K,
|
|
4349
|
+
relation: W(["all", "any"]),
|
|
4350
|
+
expressions: B(V({
|
|
4351
|
+
input: K,
|
|
4352
|
+
operator: W([
|
|
4491
4353
|
"!=",
|
|
4492
4354
|
"<",
|
|
4493
4355
|
"<=",
|
|
@@ -4509,44 +4371,41 @@ var Ic = V(U([H({
|
|
|
4509
4371
|
"notHasValue",
|
|
4510
4372
|
"startsWith"
|
|
4511
4373
|
]),
|
|
4512
|
-
value:
|
|
4374
|
+
value: q.optional()
|
|
4513
4375
|
}))
|
|
4514
4376
|
})),
|
|
4515
|
-
defaultOutput:
|
|
4516
|
-
},
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
responseData: q.optional(),
|
|
4526
|
-
responseHeaders: W(q, q).optional(),
|
|
4527
|
-
responseStatusCode: z().optional()
|
|
4377
|
+
defaultOutput: K.optional()
|
|
4378
|
+
}, Kc = { prompt: K }, qc = {
|
|
4379
|
+
bodyFields: B(J),
|
|
4380
|
+
options: V({
|
|
4381
|
+
allowedMethods: jc.optional(),
|
|
4382
|
+
allowedOrigins: jc.optional(),
|
|
4383
|
+
noResponseBody: z().optional(),
|
|
4384
|
+
responseData: K.optional(),
|
|
4385
|
+
responseHeaders: U(K, K).optional(),
|
|
4386
|
+
responseStatusCode: R().optional()
|
|
4528
4387
|
}).optional()
|
|
4529
|
-
},
|
|
4530
|
-
configSchema:
|
|
4531
|
-
definitionVersion:
|
|
4532
|
-
description:
|
|
4533
|
-
displayName:
|
|
4534
|
-
key:
|
|
4535
|
-
name:
|
|
4536
|
-
outputs:
|
|
4537
|
-
provider:
|
|
4538
|
-
},
|
|
4539
|
-
body:
|
|
4540
|
-
allowArray:
|
|
4541
|
-
allowEmpty:
|
|
4542
|
-
formats:
|
|
4388
|
+
}, Jc = {
|
|
4389
|
+
configSchema: q,
|
|
4390
|
+
definitionVersion: G(2),
|
|
4391
|
+
description: K,
|
|
4392
|
+
displayName: K,
|
|
4393
|
+
key: K,
|
|
4394
|
+
name: K,
|
|
4395
|
+
outputs: B(Mc).refine((e) => new Set(e.map((e) => e.handle)).size === e.length, "Duplicate Trigger output handle."),
|
|
4396
|
+
provider: K
|
|
4397
|
+
}, Yc = V({
|
|
4398
|
+
body: V({
|
|
4399
|
+
allowArray: z(),
|
|
4400
|
+
allowEmpty: z(),
|
|
4401
|
+
formats: B(W([
|
|
4543
4402
|
"form",
|
|
4544
4403
|
"json",
|
|
4545
4404
|
"multipart",
|
|
4546
4405
|
"text"
|
|
4547
4406
|
]))
|
|
4548
4407
|
}),
|
|
4549
|
-
methods:
|
|
4408
|
+
methods: B(W([
|
|
4550
4409
|
"DELETE",
|
|
4551
4410
|
"GET",
|
|
4552
4411
|
"HEAD",
|
|
@@ -4554,300 +4413,306 @@ var Ic = V(U([H({
|
|
|
4554
4413
|
"POST",
|
|
4555
4414
|
"PUT"
|
|
4556
4415
|
])),
|
|
4557
|
-
successStatus:
|
|
4558
|
-
}),
|
|
4559
|
-
name:
|
|
4560
|
-
description:
|
|
4561
|
-
icon:
|
|
4562
|
-
},
|
|
4563
|
-
maxExecutions:
|
|
4564
|
-
inputs:
|
|
4565
|
-
name:
|
|
4566
|
-
description:
|
|
4567
|
-
icon:
|
|
4568
|
-
timeoutMs:
|
|
4569
|
-
},
|
|
4570
|
-
|
|
4571
|
-
...
|
|
4572
|
-
kind:
|
|
4573
|
-
...
|
|
4416
|
+
successStatus: R()
|
|
4417
|
+
}), Xc = {
|
|
4418
|
+
name: K,
|
|
4419
|
+
description: K.optional(),
|
|
4420
|
+
icon: K.optional()
|
|
4421
|
+
}, Zc = {
|
|
4422
|
+
maxExecutions: R().int().positive().max(2 ** 53 - 1).optional(),
|
|
4423
|
+
inputs: Rc,
|
|
4424
|
+
name: K.optional(),
|
|
4425
|
+
description: K.optional(),
|
|
4426
|
+
icon: K.optional(),
|
|
4427
|
+
timeoutMs: R().optional()
|
|
4428
|
+
}, Qc = H([
|
|
4429
|
+
V({
|
|
4430
|
+
...Zc,
|
|
4431
|
+
kind: G("condition"),
|
|
4432
|
+
...Gc
|
|
4574
4433
|
}),
|
|
4575
|
-
|
|
4576
|
-
...
|
|
4577
|
-
inputs:
|
|
4578
|
-
kind:
|
|
4579
|
-
values:
|
|
4434
|
+
V({
|
|
4435
|
+
...Zc,
|
|
4436
|
+
inputs: Us().transform(() => ({})).default({}),
|
|
4437
|
+
kind: G("value"),
|
|
4438
|
+
values: B(J)
|
|
4580
4439
|
}),
|
|
4581
|
-
|
|
4582
|
-
...
|
|
4583
|
-
kind:
|
|
4584
|
-
subflowId:
|
|
4440
|
+
V({
|
|
4441
|
+
...Zc,
|
|
4442
|
+
kind: G("subflow"),
|
|
4443
|
+
subflowId: K
|
|
4585
4444
|
}),
|
|
4586
|
-
|
|
4587
|
-
...
|
|
4588
|
-
kind:
|
|
4589
|
-
task:
|
|
4590
|
-
additionalInputs:
|
|
4445
|
+
V({
|
|
4446
|
+
...Zc,
|
|
4447
|
+
kind: G("task"),
|
|
4448
|
+
task: Vc,
|
|
4449
|
+
additionalInputs: B(J).optional()
|
|
4591
4450
|
}),
|
|
4592
|
-
|
|
4593
|
-
...
|
|
4594
|
-
kind:
|
|
4595
|
-
taskId:
|
|
4596
|
-
additionalInputs:
|
|
4451
|
+
V({
|
|
4452
|
+
...Zc,
|
|
4453
|
+
kind: G("task"),
|
|
4454
|
+
taskId: K,
|
|
4455
|
+
additionalInputs: B(J).optional()
|
|
4597
4456
|
}),
|
|
4598
|
-
|
|
4599
|
-
...
|
|
4600
|
-
kind:
|
|
4601
|
-
input:
|
|
4602
|
-
...
|
|
4457
|
+
Js({
|
|
4458
|
+
...Zc,
|
|
4459
|
+
kind: G("approval"),
|
|
4460
|
+
input: J,
|
|
4461
|
+
...Kc
|
|
4603
4462
|
}).omit({ timeoutMs: !0 }),
|
|
4604
|
-
|
|
4605
|
-
...
|
|
4606
|
-
kind:
|
|
4463
|
+
Js({
|
|
4464
|
+
...Zc,
|
|
4465
|
+
kind: G("wait"),
|
|
4466
|
+
input: J,
|
|
4467
|
+
...Kc
|
|
4468
|
+
}).omit({ timeoutMs: !0 }),
|
|
4469
|
+
V({
|
|
4470
|
+
...Xc,
|
|
4471
|
+
kind: G("manual")
|
|
4607
4472
|
}),
|
|
4608
|
-
|
|
4609
|
-
...
|
|
4610
|
-
kind:
|
|
4611
|
-
|
|
4473
|
+
V({
|
|
4474
|
+
...Xc,
|
|
4475
|
+
kind: G("webhook"),
|
|
4476
|
+
...qc
|
|
4612
4477
|
}),
|
|
4613
|
-
|
|
4614
|
-
...
|
|
4615
|
-
kind:
|
|
4616
|
-
cronTimes:
|
|
4478
|
+
V({
|
|
4479
|
+
...Xc,
|
|
4480
|
+
kind: G("cron"),
|
|
4481
|
+
cronTimes: Ac
|
|
4617
4482
|
}),
|
|
4618
|
-
|
|
4619
|
-
...
|
|
4620
|
-
kind:
|
|
4621
|
-
bindingId:
|
|
4622
|
-
config:
|
|
4623
|
-
definition:
|
|
4624
|
-
...
|
|
4625
|
-
type:
|
|
4483
|
+
V({
|
|
4484
|
+
...Xc,
|
|
4485
|
+
kind: G("poll"),
|
|
4486
|
+
bindingId: K,
|
|
4487
|
+
config: U(K, q),
|
|
4488
|
+
definition: V({
|
|
4489
|
+
...Jc,
|
|
4490
|
+
type: G("poll")
|
|
4626
4491
|
}),
|
|
4627
|
-
pollTimes:
|
|
4492
|
+
pollTimes: Ac
|
|
4628
4493
|
}),
|
|
4629
|
-
|
|
4630
|
-
...
|
|
4631
|
-
kind:
|
|
4632
|
-
bindingId:
|
|
4633
|
-
config:
|
|
4634
|
-
definition:
|
|
4635
|
-
...
|
|
4636
|
-
type:
|
|
4637
|
-
endpoint:
|
|
4494
|
+
V({
|
|
4495
|
+
...Xc,
|
|
4496
|
+
kind: G("integration"),
|
|
4497
|
+
bindingId: K,
|
|
4498
|
+
config: U(K, q),
|
|
4499
|
+
definition: V({
|
|
4500
|
+
...Jc,
|
|
4501
|
+
type: G("integration"),
|
|
4502
|
+
endpoint: Yc
|
|
4638
4503
|
})
|
|
4639
4504
|
})
|
|
4640
|
-
]),
|
|
4641
|
-
kind:
|
|
4642
|
-
id:
|
|
4643
|
-
})]),
|
|
4644
|
-
source:
|
|
4645
|
-
target:
|
|
4646
|
-
sourceHandle:
|
|
4647
|
-
}),
|
|
4648
|
-
nodeId:
|
|
4649
|
-
target:
|
|
4650
|
-
},
|
|
4651
|
-
name:
|
|
4652
|
-
inputs:
|
|
4653
|
-
outputs:
|
|
4654
|
-
}),
|
|
4655
|
-
nodes:
|
|
4656
|
-
edges:
|
|
4657
|
-
}),
|
|
4658
|
-
kind:
|
|
4659
|
-
target:
|
|
4660
|
-
}),
|
|
4661
|
-
name:
|
|
4662
|
-
imports:
|
|
4663
|
-
source:
|
|
4664
|
-
}),
|
|
4665
|
-
bindings:
|
|
4666
|
-
graph:
|
|
4667
|
-
subflows:
|
|
4668
|
-
tasks:
|
|
4669
|
-
}),
|
|
4670
|
-
modelVersion:
|
|
4671
|
-
document:
|
|
4672
|
-
modules:
|
|
4505
|
+
]), $c = H([V({ kind: G("flow") }), V({
|
|
4506
|
+
kind: G("subflow"),
|
|
4507
|
+
id: K
|
|
4508
|
+
})]), el = V({
|
|
4509
|
+
source: K,
|
|
4510
|
+
target: K,
|
|
4511
|
+
sourceHandle: K.optional()
|
|
4512
|
+
}), Y = {
|
|
4513
|
+
nodeId: K,
|
|
4514
|
+
target: $c
|
|
4515
|
+
}, tl = V({
|
|
4516
|
+
name: K,
|
|
4517
|
+
inputs: B(J),
|
|
4518
|
+
outputs: B(Mc.extend({ sources: B(H([Pc, Fc])) }))
|
|
4519
|
+
}), nl = V({
|
|
4520
|
+
nodes: U(K, Qc),
|
|
4521
|
+
edges: B(el).default([])
|
|
4522
|
+
}), rl = V({
|
|
4523
|
+
kind: W(["connection", "variable"]),
|
|
4524
|
+
target: K
|
|
4525
|
+
}), il = V({
|
|
4526
|
+
name: K,
|
|
4527
|
+
imports: jc,
|
|
4528
|
+
source: K
|
|
4529
|
+
}), al = V({
|
|
4530
|
+
bindings: U(K, rl),
|
|
4531
|
+
graph: nl,
|
|
4532
|
+
subflows: U(K, tl.extend({ graph: nl })),
|
|
4533
|
+
tasks: U(K, Wc)
|
|
4534
|
+
}), ol = V({
|
|
4535
|
+
modelVersion: G(2),
|
|
4536
|
+
document: al,
|
|
4537
|
+
modules: U(K, il)
|
|
4673
4538
|
});
|
|
4674
|
-
|
|
4675
|
-
kind:
|
|
4676
|
-
version:
|
|
4539
|
+
ol.extend({
|
|
4540
|
+
kind: G("open-flow-flow-revision"),
|
|
4541
|
+
version: G(1)
|
|
4677
4542
|
});
|
|
4678
|
-
function
|
|
4679
|
-
return
|
|
4543
|
+
function sl(e) {
|
|
4544
|
+
return kc(e), ol.parse(e);
|
|
4680
4545
|
}
|
|
4681
|
-
var
|
|
4546
|
+
var cl = {
|
|
4682
4547
|
"binding.create": {
|
|
4683
|
-
bindingId:
|
|
4684
|
-
binding:
|
|
4548
|
+
bindingId: K,
|
|
4549
|
+
binding: rl
|
|
4685
4550
|
},
|
|
4686
|
-
"binding.delete": { bindingId:
|
|
4551
|
+
"binding.delete": { bindingId: K },
|
|
4687
4552
|
"binding.target.set": {
|
|
4688
|
-
bindingId:
|
|
4689
|
-
before:
|
|
4690
|
-
value:
|
|
4553
|
+
bindingId: K,
|
|
4554
|
+
before: K,
|
|
4555
|
+
value: K
|
|
4691
4556
|
},
|
|
4692
4557
|
"graph.edge.connect": {
|
|
4693
|
-
target:
|
|
4694
|
-
edge:
|
|
4558
|
+
target: $c,
|
|
4559
|
+
edge: el
|
|
4695
4560
|
},
|
|
4696
4561
|
"graph.edge.disconnect": {
|
|
4697
|
-
target:
|
|
4698
|
-
edge:
|
|
4562
|
+
target: $c,
|
|
4563
|
+
edge: el
|
|
4699
4564
|
},
|
|
4700
4565
|
"graph.node.create": {
|
|
4701
|
-
...
|
|
4702
|
-
node:
|
|
4703
|
-
},
|
|
4704
|
-
"graph.node.delete":
|
|
4705
|
-
"graph.node.field.set":
|
|
4706
|
-
|
|
4707
|
-
...
|
|
4708
|
-
kind:
|
|
4709
|
-
field:
|
|
4566
|
+
...Y,
|
|
4567
|
+
node: Qc
|
|
4568
|
+
},
|
|
4569
|
+
"graph.node.delete": Y,
|
|
4570
|
+
"graph.node.field.set": H([
|
|
4571
|
+
V({
|
|
4572
|
+
...Y,
|
|
4573
|
+
kind: G("graph.node.field.set"),
|
|
4574
|
+
field: W([
|
|
4710
4575
|
"description",
|
|
4711
4576
|
"icon",
|
|
4712
4577
|
"name"
|
|
4713
4578
|
]),
|
|
4714
|
-
before:
|
|
4715
|
-
value:
|
|
4579
|
+
before: K.optional(),
|
|
4580
|
+
value: K.optional()
|
|
4716
4581
|
}),
|
|
4717
|
-
|
|
4718
|
-
...
|
|
4719
|
-
kind:
|
|
4720
|
-
field:
|
|
4721
|
-
before:
|
|
4722
|
-
value:
|
|
4582
|
+
V({
|
|
4583
|
+
...Y,
|
|
4584
|
+
kind: G("graph.node.field.set"),
|
|
4585
|
+
field: G("maxExecutions"),
|
|
4586
|
+
before: R().int().positive().max(2 ** 53 - 1).optional(),
|
|
4587
|
+
value: R().int().positive().max(2 ** 53 - 1).optional()
|
|
4723
4588
|
}),
|
|
4724
|
-
|
|
4725
|
-
...
|
|
4726
|
-
kind:
|
|
4727
|
-
field:
|
|
4728
|
-
before:
|
|
4729
|
-
value:
|
|
4589
|
+
V({
|
|
4590
|
+
...Y,
|
|
4591
|
+
kind: G("graph.node.field.set"),
|
|
4592
|
+
field: G("timeoutMs"),
|
|
4593
|
+
before: R().optional(),
|
|
4594
|
+
value: R().optional()
|
|
4730
4595
|
})
|
|
4731
4596
|
]),
|
|
4732
4597
|
"graph.node.input.set": {
|
|
4733
|
-
...
|
|
4734
|
-
handle:
|
|
4735
|
-
before:
|
|
4736
|
-
value:
|
|
4598
|
+
...Y,
|
|
4599
|
+
handle: K,
|
|
4600
|
+
before: Lc.optional(),
|
|
4601
|
+
value: Lc.optional()
|
|
4737
4602
|
},
|
|
4738
4603
|
"graph.node.additional-inputs.set": {
|
|
4739
|
-
...
|
|
4740
|
-
before:
|
|
4741
|
-
value:
|
|
4604
|
+
...Y,
|
|
4605
|
+
before: B(J).optional(),
|
|
4606
|
+
value: B(J).optional()
|
|
4742
4607
|
},
|
|
4743
4608
|
"graph.node.condition.set": {
|
|
4744
|
-
...
|
|
4745
|
-
before:
|
|
4746
|
-
value:
|
|
4609
|
+
...Y,
|
|
4610
|
+
before: V(Gc),
|
|
4611
|
+
value: V(Gc)
|
|
4747
4612
|
},
|
|
4748
4613
|
"graph.node.values.set": {
|
|
4749
|
-
...
|
|
4750
|
-
before:
|
|
4751
|
-
value:
|
|
4614
|
+
...Y,
|
|
4615
|
+
before: B(J),
|
|
4616
|
+
value: B(J)
|
|
4752
4617
|
},
|
|
4753
|
-
"graph.node.
|
|
4754
|
-
...
|
|
4755
|
-
target:
|
|
4756
|
-
before:
|
|
4757
|
-
value:
|
|
4618
|
+
"graph.node.resolution.set": {
|
|
4619
|
+
...Y,
|
|
4620
|
+
target: V({ kind: G("flow") }),
|
|
4621
|
+
before: V(Kc),
|
|
4622
|
+
value: V(Kc)
|
|
4758
4623
|
},
|
|
4759
4624
|
"graph.node.webhook.set": {
|
|
4760
|
-
...
|
|
4761
|
-
target:
|
|
4762
|
-
before:
|
|
4763
|
-
value:
|
|
4625
|
+
...Y,
|
|
4626
|
+
target: V({ kind: G("flow") }),
|
|
4627
|
+
before: V(qc),
|
|
4628
|
+
value: V(qc)
|
|
4764
4629
|
},
|
|
4765
4630
|
"graph.node.task.ports.set": {
|
|
4766
|
-
...
|
|
4767
|
-
before:
|
|
4768
|
-
value:
|
|
4631
|
+
...Y,
|
|
4632
|
+
before: V(zc),
|
|
4633
|
+
value: V(zc)
|
|
4769
4634
|
},
|
|
4770
4635
|
"graph.node.task.name.set": {
|
|
4771
|
-
...
|
|
4772
|
-
before:
|
|
4773
|
-
value:
|
|
4636
|
+
...Y,
|
|
4637
|
+
before: K,
|
|
4638
|
+
value: K
|
|
4774
4639
|
},
|
|
4775
4640
|
"graph.node.task.capabilities.set": {
|
|
4776
|
-
...
|
|
4777
|
-
before:
|
|
4778
|
-
value:
|
|
4641
|
+
...Y,
|
|
4642
|
+
before: B(Bc).optional(),
|
|
4643
|
+
value: B(Bc).optional()
|
|
4779
4644
|
},
|
|
4780
4645
|
"graph.trigger.config.set": {
|
|
4781
|
-
nodeId:
|
|
4782
|
-
name:
|
|
4783
|
-
before:
|
|
4784
|
-
value:
|
|
4646
|
+
nodeId: K,
|
|
4647
|
+
name: K,
|
|
4648
|
+
before: q.optional(),
|
|
4649
|
+
value: q.optional()
|
|
4785
4650
|
},
|
|
4786
4651
|
"graph.trigger.schedule.set": {
|
|
4787
|
-
nodeId:
|
|
4788
|
-
before:
|
|
4789
|
-
value:
|
|
4652
|
+
nodeId: K,
|
|
4653
|
+
before: Ac,
|
|
4654
|
+
value: Ac
|
|
4790
4655
|
},
|
|
4791
4656
|
"module.create": {
|
|
4792
|
-
moduleId:
|
|
4793
|
-
module:
|
|
4657
|
+
moduleId: K,
|
|
4658
|
+
module: il
|
|
4794
4659
|
},
|
|
4795
|
-
"module.delete": { moduleId:
|
|
4660
|
+
"module.delete": { moduleId: K },
|
|
4796
4661
|
"module.rename": {
|
|
4797
|
-
moduleId:
|
|
4798
|
-
before:
|
|
4799
|
-
name:
|
|
4662
|
+
moduleId: K,
|
|
4663
|
+
before: K,
|
|
4664
|
+
name: K
|
|
4800
4665
|
},
|
|
4801
4666
|
"module.source.replace": {
|
|
4802
|
-
moduleId:
|
|
4803
|
-
beforeImports:
|
|
4804
|
-
beforeSource:
|
|
4805
|
-
imports:
|
|
4806
|
-
source:
|
|
4667
|
+
moduleId: K,
|
|
4668
|
+
beforeImports: jc,
|
|
4669
|
+
beforeSource: K,
|
|
4670
|
+
imports: jc,
|
|
4671
|
+
source: K
|
|
4807
4672
|
},
|
|
4808
4673
|
"subflow.create": {
|
|
4809
|
-
subflowId:
|
|
4810
|
-
subflow:
|
|
4674
|
+
subflowId: K,
|
|
4675
|
+
subflow: tl.extend({ graph: nl })
|
|
4811
4676
|
},
|
|
4812
4677
|
"subflow.definition.set": {
|
|
4813
|
-
subflowId:
|
|
4814
|
-
before:
|
|
4815
|
-
definition:
|
|
4678
|
+
subflowId: K,
|
|
4679
|
+
before: tl,
|
|
4680
|
+
definition: tl
|
|
4816
4681
|
},
|
|
4817
|
-
"subflow.delete": { subflowId:
|
|
4682
|
+
"subflow.delete": { subflowId: K },
|
|
4818
4683
|
"task.create": {
|
|
4819
|
-
taskId:
|
|
4820
|
-
task:
|
|
4684
|
+
taskId: K,
|
|
4685
|
+
task: Wc
|
|
4821
4686
|
},
|
|
4822
|
-
"task.delete": { taskId:
|
|
4687
|
+
"task.delete": { taskId: K },
|
|
4823
4688
|
"task.connector.connection.set": {
|
|
4824
|
-
taskId:
|
|
4825
|
-
before:
|
|
4826
|
-
value:
|
|
4689
|
+
taskId: K,
|
|
4690
|
+
before: K.optional(),
|
|
4691
|
+
value: K.optional()
|
|
4827
4692
|
},
|
|
4828
4693
|
"task.agent.set": {
|
|
4829
|
-
taskId:
|
|
4830
|
-
before:
|
|
4831
|
-
value:
|
|
4694
|
+
taskId: K,
|
|
4695
|
+
before: Wc,
|
|
4696
|
+
value: Wc
|
|
4832
4697
|
},
|
|
4833
4698
|
"task.llm.mode.set": {
|
|
4834
|
-
taskId:
|
|
4835
|
-
before:
|
|
4836
|
-
value:
|
|
4699
|
+
taskId: K,
|
|
4700
|
+
before: W(["chat", "json"]),
|
|
4701
|
+
value: W(["chat", "json"])
|
|
4837
4702
|
},
|
|
4838
4703
|
"task.name.set": {
|
|
4839
|
-
taskId:
|
|
4840
|
-
before:
|
|
4841
|
-
value:
|
|
4704
|
+
taskId: K,
|
|
4705
|
+
before: K,
|
|
4706
|
+
value: K
|
|
4842
4707
|
}
|
|
4843
4708
|
};
|
|
4844
|
-
|
|
4845
|
-
kind:
|
|
4709
|
+
B(H([...new Map(Object.entries(cl).map(([e, t]) => [e, t instanceof I ? t : V({
|
|
4710
|
+
kind: G(e),
|
|
4846
4711
|
...t
|
|
4847
4712
|
})])).values()])).min(1);
|
|
4848
4713
|
//#endregion
|
|
4849
4714
|
//#region src/flow/common/change.ts
|
|
4850
|
-
var
|
|
4715
|
+
var ll = /* @__PURE__ */ new Set([
|
|
4851
4716
|
"const",
|
|
4852
4717
|
"enum",
|
|
4853
4718
|
"exclusiveMaximum",
|
|
@@ -4865,10 +4730,10 @@ var hl = /* @__PURE__ */ new Set([
|
|
|
4865
4730
|
"required",
|
|
4866
4731
|
"type"
|
|
4867
4732
|
]);
|
|
4868
|
-
function
|
|
4869
|
-
return
|
|
4733
|
+
function ul(e) {
|
|
4734
|
+
return ll.has(e);
|
|
4870
4735
|
}
|
|
4871
|
-
function
|
|
4736
|
+
function dl(e) {
|
|
4872
4737
|
let t = e.trim();
|
|
4873
4738
|
if (t.length == 0) return "empty";
|
|
4874
4739
|
if (t.length > 80) return "tooLong";
|
|
@@ -4878,10 +4743,10 @@ function _l(e) {
|
|
|
4878
4743
|
}
|
|
4879
4744
|
if (!/^[\p{L}\p{N}](?:[\p{L}\p{N} _-]*[\p{L}\p{N}])?$/u.test(t)) return "specialCharacter";
|
|
4880
4745
|
}
|
|
4881
|
-
function
|
|
4746
|
+
function fl(e) {
|
|
4882
4747
|
return Object.fromEntries(e.flatMap((e) => "handle" in e ? [[e.handle, e]] : []));
|
|
4883
4748
|
}
|
|
4884
|
-
function
|
|
4749
|
+
function pl(e) {
|
|
4885
4750
|
if (!Array.isArray(e)) throw TypeError("Connector capabilities must be an array.");
|
|
4886
4751
|
let t = /* @__PURE__ */ new Set();
|
|
4887
4752
|
return e.map((e) => {
|
|
@@ -4917,40 +4782,40 @@ function yl(e) {
|
|
|
4917
4782
|
};
|
|
4918
4783
|
});
|
|
4919
4784
|
}
|
|
4920
|
-
function
|
|
4785
|
+
function ml(e) {
|
|
4921
4786
|
return e.trim().normalize("NFC");
|
|
4922
4787
|
}
|
|
4923
|
-
function
|
|
4924
|
-
let n =
|
|
4788
|
+
function hl(e, t) {
|
|
4789
|
+
let n = ml(e), r = new Set([...t].map(ml));
|
|
4925
4790
|
if (!r.has(n)) return n;
|
|
4926
4791
|
let i = /^(.*) \((\d+)\)$/.exec(n), a = i?.[2], o = a != null && Number(a) >= 2 ? Number(a) : void 0, s = o == null ? n : i?.[1] ?? n, c = o == null ? 2 : o + 1;
|
|
4927
4792
|
for (; r.has(`${s} (${c})`);) c += 1;
|
|
4928
4793
|
return `${s} (${c})`;
|
|
4929
4794
|
}
|
|
4930
|
-
function
|
|
4931
|
-
let r =
|
|
4932
|
-
return r.length == 0 ? "empty" : Object.entries(e.nodes).some(([e, n]) => e != t && n.name != null &&
|
|
4795
|
+
function gl(e, t, n) {
|
|
4796
|
+
let r = ml(n);
|
|
4797
|
+
return r.length == 0 ? "empty" : Object.entries(e.nodes).some(([e, n]) => e != t && n.name != null && ml(n.name) == r) ? "duplicate" : void 0;
|
|
4933
4798
|
}
|
|
4934
|
-
var
|
|
4799
|
+
var _l = class extends Error {
|
|
4935
4800
|
constructor(e) {
|
|
4936
4801
|
super(e), this.name = "FlowChangeError";
|
|
4937
4802
|
}
|
|
4938
4803
|
};
|
|
4939
|
-
function
|
|
4940
|
-
throw new
|
|
4804
|
+
function X(e) {
|
|
4805
|
+
throw new _l(e);
|
|
4941
4806
|
}
|
|
4942
|
-
function
|
|
4807
|
+
function Z(e, t) {
|
|
4943
4808
|
if (t.kind == "flow") return e.graph;
|
|
4944
4809
|
let n = e.subflows[t.id];
|
|
4945
|
-
return n ??
|
|
4810
|
+
return n ?? X("The target Subflow does not exist."), n.graph;
|
|
4946
4811
|
}
|
|
4947
|
-
function
|
|
4812
|
+
function Q(e, t, n) {
|
|
4948
4813
|
if (t.kind == "flow") return {
|
|
4949
4814
|
...e,
|
|
4950
4815
|
graph: n
|
|
4951
4816
|
};
|
|
4952
4817
|
let r = e.subflows[t.id];
|
|
4953
|
-
return r ??
|
|
4818
|
+
return r ?? X("The target Subflow does not exist."), {
|
|
4954
4819
|
...e,
|
|
4955
4820
|
subflows: {
|
|
4956
4821
|
...e.subflows,
|
|
@@ -4961,40 +4826,24 @@ function $(e, t, n) {
|
|
|
4961
4826
|
}
|
|
4962
4827
|
};
|
|
4963
4828
|
}
|
|
4964
|
-
function
|
|
4965
|
-
if (!("inputs" in e)) return e;
|
|
4966
|
-
let n = { ...e.inputs };
|
|
4967
|
-
for (let [e, r] of Object.entries(n)) {
|
|
4968
|
-
if (r.kind != "sources") continue;
|
|
4969
|
-
let i = r.sources.filter((e) => e.kind != "node" || !t.has(e.nodeId));
|
|
4970
|
-
i.length == 0 ? delete n[e] : n[e] = {
|
|
4971
|
-
kind: "sources",
|
|
4972
|
-
sources: i
|
|
4973
|
-
};
|
|
4974
|
-
}
|
|
4975
|
-
return {
|
|
4976
|
-
...e,
|
|
4977
|
-
inputs: n
|
|
4978
|
-
};
|
|
4979
|
-
}
|
|
4980
|
-
function Tl(e, t) {
|
|
4829
|
+
function vl(e, t) {
|
|
4981
4830
|
let n = { ...e.document }, r = { ...e.modules };
|
|
4982
4831
|
for (let e of t) switch (e.kind) {
|
|
4983
4832
|
case "binding.create":
|
|
4984
|
-
n.bindings[e.bindingId] != null &&
|
|
4833
|
+
n.bindings[e.bindingId] != null && X("A Binding with this ID already exists."), n.bindings = {
|
|
4985
4834
|
...n.bindings,
|
|
4986
4835
|
[e.bindingId]: e.binding
|
|
4987
4836
|
};
|
|
4988
4837
|
break;
|
|
4989
4838
|
case "binding.delete": {
|
|
4990
|
-
n.bindings[e.bindingId] ??
|
|
4839
|
+
n.bindings[e.bindingId] ?? X("The Binding does not exist.");
|
|
4991
4840
|
let t = { ...n.bindings };
|
|
4992
4841
|
delete t[e.bindingId], n.bindings = t;
|
|
4993
4842
|
break;
|
|
4994
4843
|
}
|
|
4995
4844
|
case "binding.target.set": {
|
|
4996
4845
|
let t = n.bindings[e.bindingId];
|
|
4997
|
-
t ??
|
|
4846
|
+
t ?? X("The Binding does not exist."), t.target != e.before && X("The Binding target changed before this operation was applied."), n.bindings = {
|
|
4998
4847
|
...n.bindings,
|
|
4999
4848
|
[e.bindingId]: {
|
|
5000
4849
|
...t,
|
|
@@ -5004,31 +4853,31 @@ function Tl(e, t) {
|
|
|
5004
4853
|
break;
|
|
5005
4854
|
}
|
|
5006
4855
|
case "graph.edge.connect": {
|
|
5007
|
-
let t =
|
|
5008
|
-
t.nodes[e.edge.source] ??
|
|
4856
|
+
let t = Z(n, e.target);
|
|
4857
|
+
t.nodes[e.edge.source] ?? X("The source Node does not exist.");
|
|
5009
4858
|
let r = t.nodes[e.edge.target];
|
|
5010
|
-
(r == null || !("inputs" in r)) &&
|
|
4859
|
+
(r == null || !("inputs" in r)) && X("The target Node does not accept execution dependencies."), t.edges.some((t) => v(t, e.edge)) && X("The Nodes are already connected."), Object.assign(n, Q(n, e.target, {
|
|
5011
4860
|
...t,
|
|
5012
4861
|
edges: [...t.edges, e.edge]
|
|
5013
4862
|
}));
|
|
5014
4863
|
break;
|
|
5015
4864
|
}
|
|
5016
4865
|
case "graph.edge.disconnect": {
|
|
5017
|
-
let t =
|
|
5018
|
-
r.length == t.edges.length &&
|
|
4866
|
+
let t = Z(n, e.target), r = t.edges.filter((t) => !v(t, e.edge));
|
|
4867
|
+
r.length == t.edges.length && X("The Nodes are not connected."), Object.assign(n, Q(n, e.target, {
|
|
5019
4868
|
...t,
|
|
5020
4869
|
edges: r
|
|
5021
4870
|
}));
|
|
5022
4871
|
break;
|
|
5023
4872
|
}
|
|
5024
4873
|
case "graph.node.additional-inputs.set": {
|
|
5025
|
-
let t =
|
|
5026
|
-
r?.kind != "task" &&
|
|
4874
|
+
let t = Z(n, e.target), r = t.nodes[e.nodeId];
|
|
4875
|
+
r?.kind != "task" && X("The Task Node does not exist."), v(r.additionalInputs, e.before) || X("The Task Node inputs changed before this operation was applied.");
|
|
5027
4876
|
let { additionalInputs: i, ...a } = r, o = e.value == null ? a : {
|
|
5028
4877
|
...a,
|
|
5029
4878
|
additionalInputs: e.value
|
|
5030
4879
|
};
|
|
5031
|
-
Object.assign(n,
|
|
4880
|
+
Object.assign(n, Q(n, e.target, {
|
|
5032
4881
|
...t,
|
|
5033
4882
|
nodes: {
|
|
5034
4883
|
...t.nodes,
|
|
@@ -5038,8 +4887,8 @@ function Tl(e, t) {
|
|
|
5038
4887
|
break;
|
|
5039
4888
|
}
|
|
5040
4889
|
case "graph.node.condition.set": {
|
|
5041
|
-
let t =
|
|
5042
|
-
r?.kind != "condition" &&
|
|
4890
|
+
let t = Z(n, e.target), r = t.nodes[e.nodeId];
|
|
4891
|
+
r?.kind != "condition" && X("The Condition Node does not exist."), (!v(r.cases, e.before.cases) || r.defaultOutput != e.before.defaultOutput || !v(r.input, e.before.input)) && X("The Condition Node changed before this operation was applied.");
|
|
5043
4892
|
let { defaultOutput: i, ...a } = r, o = e.value.defaultOutput == null ? {
|
|
5044
4893
|
...a,
|
|
5045
4894
|
...e.value
|
|
@@ -5047,7 +4896,7 @@ function Tl(e, t) {
|
|
|
5047
4896
|
...r,
|
|
5048
4897
|
...e.value
|
|
5049
4898
|
};
|
|
5050
|
-
Object.assign(n,
|
|
4899
|
+
Object.assign(n, Q(n, e.target, {
|
|
5051
4900
|
...t,
|
|
5052
4901
|
nodes: {
|
|
5053
4902
|
...t.nodes,
|
|
@@ -5057,15 +4906,15 @@ function Tl(e, t) {
|
|
|
5057
4906
|
break;
|
|
5058
4907
|
}
|
|
5059
4908
|
case "graph.node.create": {
|
|
5060
|
-
let t =
|
|
5061
|
-
t.nodes[e.nodeId] != null &&
|
|
5062
|
-
let r =
|
|
5063
|
-
i == "empty" &&
|
|
4909
|
+
let t = Z(n, e.target);
|
|
4910
|
+
t.nodes[e.nodeId] != null && X("A Node with this ID already exists in the target graph."), e.target.kind == "subflow" && !("inputs" in e.node) && X("Trigger Nodes cannot be created inside a Subflow."), e.node.kind == "manual" && Object.values(t.nodes).some((e) => e.kind == "manual") && X("A graph can contain only one manual Trigger."), e.node.kind == "task" && e.node.task?.capabilities !== void 0 && pl(e.node.task.capabilities), e.node.name ?? X("A Node name cannot be empty.");
|
|
4911
|
+
let r = ml(e.node.name), i = gl(t, e.nodeId, r);
|
|
4912
|
+
i == "empty" && X("A Node name cannot be empty."), i == "duplicate" && X("A Node with this name already exists in the target graph.");
|
|
5064
4913
|
let a = r == e.node.name ? e.node : {
|
|
5065
4914
|
...e.node,
|
|
5066
4915
|
name: r
|
|
5067
4916
|
};
|
|
5068
|
-
Object.assign(n,
|
|
4917
|
+
Object.assign(n, Q(n, e.target, {
|
|
5069
4918
|
...t,
|
|
5070
4919
|
nodes: {
|
|
5071
4920
|
...t.nodes,
|
|
@@ -5075,38 +4924,26 @@ function Tl(e, t) {
|
|
|
5075
4924
|
break;
|
|
5076
4925
|
}
|
|
5077
4926
|
case "graph.node.delete": {
|
|
5078
|
-
let t =
|
|
5079
|
-
t.nodes[e.nodeId] ??
|
|
5080
|
-
let r = /* @__PURE__ */ new Set([e.nodeId]), i = Object.fromEntries(Object.entries(t.nodes).
|
|
5081
|
-
|
|
4927
|
+
let t = Z(n, e.target);
|
|
4928
|
+
t.nodes[e.nodeId] ?? X("The Node does not exist in the target graph.");
|
|
4929
|
+
let r = /* @__PURE__ */ new Set([e.nodeId]), i = Object.fromEntries(Object.entries(t.nodes).filter(([e]) => !r.has(e)));
|
|
4930
|
+
Object.assign(n, Q(n, e.target, {
|
|
5082
4931
|
...t,
|
|
5083
4932
|
edges: t.edges.filter((e) => !r.has(e.source) && !r.has(e.target)),
|
|
5084
4933
|
nodes: i
|
|
5085
|
-
}))
|
|
5086
|
-
let t = n.subflows[e.target.id], i = t.outputs.map((e) => ({
|
|
5087
|
-
...e,
|
|
5088
|
-
sources: e.sources.filter((e) => e.kind != "node" || !r.has(e.nodeId))
|
|
5089
|
-
}));
|
|
5090
|
-
n.subflows = {
|
|
5091
|
-
...n.subflows,
|
|
5092
|
-
[e.target.id]: {
|
|
5093
|
-
...t,
|
|
5094
|
-
outputs: i
|
|
5095
|
-
}
|
|
5096
|
-
};
|
|
5097
|
-
}
|
|
4934
|
+
}));
|
|
5098
4935
|
break;
|
|
5099
4936
|
}
|
|
5100
4937
|
case "graph.node.field.set": {
|
|
5101
|
-
let t =
|
|
5102
|
-
r ??
|
|
4938
|
+
let t = Z(n, e.target), r = t.nodes[e.nodeId];
|
|
4939
|
+
r ?? X("The Node does not exist in the target graph."), v(Reflect.get(r, e.field), e.before) || X("The Node field changed before this operation was applied.");
|
|
5103
4940
|
let i = { ...r };
|
|
5104
4941
|
if (e.field == "name") {
|
|
5105
|
-
typeof e.value != "string" &&
|
|
5106
|
-
let n =
|
|
5107
|
-
r == "empty" &&
|
|
4942
|
+
typeof e.value != "string" && X("A Node name cannot be empty.");
|
|
4943
|
+
let n = ml(e.value), r = gl(t, e.nodeId, n);
|
|
4944
|
+
r == "empty" && X("A Node name cannot be empty."), r == "duplicate" && X("A Node with this name already exists in the target graph."), Object.assign(i, { name: n });
|
|
5108
4945
|
} else e.value == null ? Reflect.deleteProperty(i, e.field) : Object.assign(i, { [e.field]: e.value });
|
|
5109
|
-
Object.assign(n,
|
|
4946
|
+
Object.assign(n, Q(n, e.target, {
|
|
5110
4947
|
...t,
|
|
5111
4948
|
nodes: {
|
|
5112
4949
|
...t.nodes,
|
|
@@ -5116,10 +4953,10 @@ function Tl(e, t) {
|
|
|
5116
4953
|
break;
|
|
5117
4954
|
}
|
|
5118
4955
|
case "graph.node.input.set": {
|
|
5119
|
-
let t =
|
|
5120
|
-
(r == null || !("inputs" in r)) &&
|
|
4956
|
+
let t = Z(n, e.target), r = t.nodes[e.nodeId];
|
|
4957
|
+
(r == null || !("inputs" in r)) && X("The Node does not accept inputs."), v(r.inputs[e.handle], e.before) || X("The Node input changed before this operation was applied.");
|
|
5121
4958
|
let i = { ...r.inputs };
|
|
5122
|
-
e.value == null ? delete i[e.handle] : i[e.handle] = e.value, Object.assign(n,
|
|
4959
|
+
e.value == null ? delete i[e.handle] : i[e.handle] = e.value, Object.assign(n, Q(n, e.target, {
|
|
5123
4960
|
...t,
|
|
5124
4961
|
nodes: {
|
|
5125
4962
|
...t.nodes,
|
|
@@ -5132,10 +4969,10 @@ function Tl(e, t) {
|
|
|
5132
4969
|
break;
|
|
5133
4970
|
}
|
|
5134
4971
|
case "graph.node.task.capabilities.set": {
|
|
5135
|
-
let t =
|
|
5136
|
-
(r?.kind != "task" || r.task == null) &&
|
|
4972
|
+
let t = Z(n, e.target), r = t.nodes[e.nodeId];
|
|
4973
|
+
(r?.kind != "task" || r.task == null) && X("The inline Task Node does not exist."), v(r.task.capabilities, e.before) || X("The inline Task capabilities changed before this operation was applied.");
|
|
5137
4974
|
let i = { ...r.task };
|
|
5138
|
-
e.value === void 0 ? delete i.capabilities : i.capabilities =
|
|
4975
|
+
e.value === void 0 ? delete i.capabilities : i.capabilities = pl(e.value), Object.assign(n, Q(n, e.target, {
|
|
5139
4976
|
...t,
|
|
5140
4977
|
nodes: {
|
|
5141
4978
|
...t.nodes,
|
|
@@ -5148,8 +4985,8 @@ function Tl(e, t) {
|
|
|
5148
4985
|
break;
|
|
5149
4986
|
}
|
|
5150
4987
|
case "graph.node.task.name.set": {
|
|
5151
|
-
let t =
|
|
5152
|
-
(r?.kind != "task" || r.task == null) &&
|
|
4988
|
+
let t = Z(n, e.target), r = t.nodes[e.nodeId];
|
|
4989
|
+
(r?.kind != "task" || r.task == null) && X("The inline Task Node does not exist."), r.task.name != e.before && X("The inline Task name changed before this operation was applied.");
|
|
5153
4990
|
let i = {
|
|
5154
4991
|
...r,
|
|
5155
4992
|
task: {
|
|
@@ -5157,7 +4994,7 @@ function Tl(e, t) {
|
|
|
5157
4994
|
name: e.value
|
|
5158
4995
|
}
|
|
5159
4996
|
};
|
|
5160
|
-
Object.assign(n,
|
|
4997
|
+
Object.assign(n, Q(n, e.target, {
|
|
5161
4998
|
...t,
|
|
5162
4999
|
nodes: {
|
|
5163
5000
|
...t.nodes,
|
|
@@ -5167,11 +5004,11 @@ function Tl(e, t) {
|
|
|
5167
5004
|
break;
|
|
5168
5005
|
}
|
|
5169
5006
|
case "graph.node.task.ports.set": {
|
|
5170
|
-
let t =
|
|
5171
|
-
(r?.kind != "task" || r.task == null) &&
|
|
5007
|
+
let t = Z(n, e.target), r = t.nodes[e.nodeId];
|
|
5008
|
+
(r?.kind != "task" || r.task == null) && X("The inline Task Node does not exist."), v({
|
|
5172
5009
|
inputs: r.task.inputs,
|
|
5173
5010
|
outputs: r.task.outputs
|
|
5174
|
-
}, e.before) ||
|
|
5011
|
+
}, e.before) || X("The inline Task ports changed before this operation was applied.");
|
|
5175
5012
|
let i = {
|
|
5176
5013
|
...r,
|
|
5177
5014
|
task: {
|
|
@@ -5180,7 +5017,7 @@ function Tl(e, t) {
|
|
|
5180
5017
|
outputs: e.value.outputs
|
|
5181
5018
|
}
|
|
5182
5019
|
};
|
|
5183
|
-
Object.assign(n,
|
|
5020
|
+
Object.assign(n, Q(n, e.target, {
|
|
5184
5021
|
...t,
|
|
5185
5022
|
nodes: {
|
|
5186
5023
|
...t.nodes,
|
|
@@ -5190,8 +5027,8 @@ function Tl(e, t) {
|
|
|
5190
5027
|
break;
|
|
5191
5028
|
}
|
|
5192
5029
|
case "graph.node.values.set": {
|
|
5193
|
-
let t =
|
|
5194
|
-
r?.kind != "value" &&
|
|
5030
|
+
let t = Z(n, e.target), r = t.nodes[e.nodeId];
|
|
5031
|
+
r?.kind != "value" && X("The Value Node does not exist."), v(r.values, e.before) || X("The Value Node changed before this operation was applied."), Object.assign(n, Q(n, e.target, {
|
|
5195
5032
|
...t,
|
|
5196
5033
|
nodes: {
|
|
5197
5034
|
...t.nodes,
|
|
@@ -5203,12 +5040,9 @@ function Tl(e, t) {
|
|
|
5203
5040
|
}));
|
|
5204
5041
|
break;
|
|
5205
5042
|
}
|
|
5206
|
-
case "graph.node.
|
|
5043
|
+
case "graph.node.resolution.set": {
|
|
5207
5044
|
let t = n.graph, r = t.nodes[e.nodeId];
|
|
5208
|
-
(r?.kind != "wait" || !v({
|
|
5209
|
-
actions: r.actions,
|
|
5210
|
-
prompt: r.prompt
|
|
5211
|
-
}, e.before)) && Z("The Wait Node changed before this operation was applied.");
|
|
5045
|
+
(r?.kind != "wait" && r?.kind != "approval" || !v({ prompt: r.prompt }, e.before)) && X("The resolution node changed before this operation was applied.");
|
|
5212
5046
|
let i = {
|
|
5213
5047
|
...r,
|
|
5214
5048
|
...e.value
|
|
@@ -5223,8 +5057,8 @@ function Tl(e, t) {
|
|
|
5223
5057
|
break;
|
|
5224
5058
|
}
|
|
5225
5059
|
case "graph.node.webhook.set": {
|
|
5226
|
-
let t =
|
|
5227
|
-
r?.kind != "webhook" &&
|
|
5060
|
+
let t = Z(n, e.target), r = t.nodes[e.nodeId];
|
|
5061
|
+
r?.kind != "webhook" && X("The Webhook Node does not exist."), (!v(r.bodyFields, e.before.bodyFields) || !v(r.options, e.before.options)) && X("The Webhook Node changed before this operation was applied.");
|
|
5228
5062
|
let { options: i, ...a } = r, o = e.value.options == null ? {
|
|
5229
5063
|
...a,
|
|
5230
5064
|
bodyFields: e.value.bodyFields
|
|
@@ -5232,7 +5066,7 @@ function Tl(e, t) {
|
|
|
5232
5066
|
...r,
|
|
5233
5067
|
...e.value
|
|
5234
5068
|
};
|
|
5235
|
-
Object.assign(n,
|
|
5069
|
+
Object.assign(n, Q(n, e.target, {
|
|
5236
5070
|
...t,
|
|
5237
5071
|
nodes: {
|
|
5238
5072
|
...t.nodes,
|
|
@@ -5243,7 +5077,7 @@ function Tl(e, t) {
|
|
|
5243
5077
|
}
|
|
5244
5078
|
case "graph.trigger.config.set": {
|
|
5245
5079
|
let t = n.graph, r = t.nodes[e.nodeId];
|
|
5246
|
-
(r == null || r.kind != "integration" && r.kind != "poll") &&
|
|
5080
|
+
(r == null || r.kind != "integration" && r.kind != "poll") && X("The configurable Trigger Node does not exist."), v(r.config[e.name], e.before) || X("The Trigger configuration changed before this operation was applied.");
|
|
5247
5081
|
let i = { ...r.config };
|
|
5248
5082
|
e.value === void 0 ? delete i[e.name] : i[e.name] = e.value, n.graph = {
|
|
5249
5083
|
...t,
|
|
@@ -5259,9 +5093,9 @@ function Tl(e, t) {
|
|
|
5259
5093
|
}
|
|
5260
5094
|
case "graph.trigger.schedule.set": {
|
|
5261
5095
|
let t = n.graph, r = t.nodes[e.nodeId];
|
|
5262
|
-
(r == null || r.kind != "cron" && r.kind != "poll") &&
|
|
5096
|
+
(r == null || r.kind != "cron" && r.kind != "poll") && X("The scheduled Trigger Node does not exist.");
|
|
5263
5097
|
let i = r.kind == "cron" ? r.cronTimes : r.pollTimes;
|
|
5264
|
-
v(i, e.before) ||
|
|
5098
|
+
v(i, e.before) || X("The Trigger schedule changed before this operation was applied.");
|
|
5265
5099
|
let a = r.kind == "cron" ? {
|
|
5266
5100
|
...r,
|
|
5267
5101
|
cronTimes: e.value
|
|
@@ -5279,14 +5113,14 @@ function Tl(e, t) {
|
|
|
5279
5113
|
break;
|
|
5280
5114
|
}
|
|
5281
5115
|
case "module.create":
|
|
5282
|
-
r[e.moduleId] != null &&
|
|
5116
|
+
r[e.moduleId] != null && X("A CodeModule with this ID already exists."), r[e.moduleId] = e.module;
|
|
5283
5117
|
break;
|
|
5284
5118
|
case "module.delete":
|
|
5285
|
-
r[e.moduleId] ??
|
|
5119
|
+
r[e.moduleId] ?? X("The CodeModule does not exist."), delete r[e.moduleId];
|
|
5286
5120
|
break;
|
|
5287
5121
|
case "module.rename": {
|
|
5288
5122
|
let t = r[e.moduleId];
|
|
5289
|
-
t ??
|
|
5123
|
+
t ?? X("The CodeModule does not exist."), t.name != e.before && X("The CodeModule name changed before this operation was applied."), r[e.moduleId] = {
|
|
5290
5124
|
...t,
|
|
5291
5125
|
name: e.name
|
|
5292
5126
|
};
|
|
@@ -5294,7 +5128,7 @@ function Tl(e, t) {
|
|
|
5294
5128
|
}
|
|
5295
5129
|
case "module.source.replace": {
|
|
5296
5130
|
let t = r[e.moduleId];
|
|
5297
|
-
t ??
|
|
5131
|
+
t ?? X("The CodeModule does not exist."), (t.source != e.beforeSource || !v(t.imports, e.beforeImports)) && X("The CodeModule source changed before this operation was applied."), r[e.moduleId] = {
|
|
5298
5132
|
...t,
|
|
5299
5133
|
imports: e.imports,
|
|
5300
5134
|
source: e.source
|
|
@@ -5302,8 +5136,8 @@ function Tl(e, t) {
|
|
|
5302
5136
|
break;
|
|
5303
5137
|
}
|
|
5304
5138
|
case "subflow.create":
|
|
5305
|
-
n.subflows[e.subflowId] != null &&
|
|
5306
|
-
for (let t of Object.values(e.subflow.graph.nodes)) t.kind == "task" && t.task?.capabilities !== void 0 &&
|
|
5139
|
+
n.subflows[e.subflowId] != null && X("A Subflow with this ID already exists.");
|
|
5140
|
+
for (let t of Object.values(e.subflow.graph.nodes)) t.kind == "task" && t.task?.capabilities !== void 0 && pl(t.task.capabilities);
|
|
5307
5141
|
n.subflows = {
|
|
5308
5142
|
...n.subflows,
|
|
5309
5143
|
[e.subflowId]: e.subflow
|
|
@@ -5311,11 +5145,11 @@ function Tl(e, t) {
|
|
|
5311
5145
|
break;
|
|
5312
5146
|
case "subflow.definition.set": {
|
|
5313
5147
|
let t = n.subflows[e.subflowId];
|
|
5314
|
-
t ??
|
|
5148
|
+
t ?? X("The Subflow does not exist."), v({
|
|
5315
5149
|
inputs: t.inputs,
|
|
5316
5150
|
name: t.name,
|
|
5317
5151
|
outputs: t.outputs
|
|
5318
|
-
}, e.before) ||
|
|
5152
|
+
}, e.before) || X("The Subflow definition changed before this operation was applied."), n.subflows = {
|
|
5319
5153
|
...n.subflows,
|
|
5320
5154
|
[e.subflowId]: {
|
|
5321
5155
|
...e.definition,
|
|
@@ -5325,20 +5159,20 @@ function Tl(e, t) {
|
|
|
5325
5159
|
break;
|
|
5326
5160
|
}
|
|
5327
5161
|
case "subflow.delete": {
|
|
5328
|
-
n.subflows[e.subflowId] ??
|
|
5162
|
+
n.subflows[e.subflowId] ?? X("The Subflow does not exist.");
|
|
5329
5163
|
let t = { ...n.subflows };
|
|
5330
5164
|
delete t[e.subflowId], n.subflows = t;
|
|
5331
5165
|
break;
|
|
5332
5166
|
}
|
|
5333
5167
|
case "task.create":
|
|
5334
|
-
n.tasks[e.taskId] != null &&
|
|
5168
|
+
n.tasks[e.taskId] != null && X("A Task with this ID already exists."), n.tasks = {
|
|
5335
5169
|
...n.tasks,
|
|
5336
5170
|
[e.taskId]: e.task
|
|
5337
5171
|
};
|
|
5338
5172
|
break;
|
|
5339
5173
|
case "task.connector.connection.set": {
|
|
5340
5174
|
let t = n.tasks[e.taskId];
|
|
5341
|
-
(t == null || !("executor" in t) || t.executor.kind != "connector") &&
|
|
5175
|
+
(t == null || !("executor" in t) || t.executor.kind != "connector") && X("The Connector Task does not exist."), t.executor.connectionId != e.before && X("The Connector Task connection changed before this operation was applied.");
|
|
5342
5176
|
let { connectionId: r, ...i } = t.executor, a = e.value == null ? i : {
|
|
5343
5177
|
...i,
|
|
5344
5178
|
connectionId: e.value
|
|
@@ -5353,14 +5187,14 @@ function Tl(e, t) {
|
|
|
5353
5187
|
break;
|
|
5354
5188
|
}
|
|
5355
5189
|
case "task.delete": {
|
|
5356
|
-
n.tasks[e.taskId] ??
|
|
5190
|
+
n.tasks[e.taskId] ?? X("The Task does not exist.");
|
|
5357
5191
|
let t = { ...n.tasks };
|
|
5358
5192
|
delete t[e.taskId], n.tasks = t;
|
|
5359
5193
|
break;
|
|
5360
5194
|
}
|
|
5361
5195
|
case "task.agent.set": {
|
|
5362
5196
|
let t = n.tasks[e.taskId];
|
|
5363
|
-
(t?.executor.kind != "agent" || e.value.executor.kind != "agent") &&
|
|
5197
|
+
(t?.executor.kind != "agent" || e.value.executor.kind != "agent") && X("The Agent Task does not exist."), v(t, e.before) || X("The Agent Task changed before this operation was applied."), n.tasks = {
|
|
5364
5198
|
...n.tasks,
|
|
5365
5199
|
[e.taskId]: e.value
|
|
5366
5200
|
};
|
|
@@ -5368,7 +5202,7 @@ function Tl(e, t) {
|
|
|
5368
5202
|
}
|
|
5369
5203
|
case "task.llm.mode.set": {
|
|
5370
5204
|
let t = n.tasks[e.taskId];
|
|
5371
|
-
(t == null || !("executor" in t) || t.executor.kind != "llm") &&
|
|
5205
|
+
(t == null || !("executor" in t) || t.executor.kind != "llm") && X("The LLM Task does not exist."), t.executor.mode != e.before && X("The LLM Task mode changed before this operation was applied."), n.tasks = {
|
|
5372
5206
|
...n.tasks,
|
|
5373
5207
|
[e.taskId]: {
|
|
5374
5208
|
...t,
|
|
@@ -5382,7 +5216,7 @@ function Tl(e, t) {
|
|
|
5382
5216
|
}
|
|
5383
5217
|
case "task.name.set": {
|
|
5384
5218
|
let t = n.tasks[e.taskId];
|
|
5385
|
-
t ??
|
|
5219
|
+
t ?? X("The Task does not exist."), t.name != e.before && X("The Task name changed before this operation was applied."), n.tasks = {
|
|
5386
5220
|
...n.tasks,
|
|
5387
5221
|
[e.taskId]: {
|
|
5388
5222
|
...t,
|
|
@@ -5400,14 +5234,14 @@ function Tl(e, t) {
|
|
|
5400
5234
|
}
|
|
5401
5235
|
//#endregion
|
|
5402
5236
|
//#region src/ui/browser/field.tsx
|
|
5403
|
-
function
|
|
5237
|
+
function yl({ className: e, ...t }) {
|
|
5404
5238
|
return /* @__PURE__ */ b("div", {
|
|
5405
5239
|
"data-slot": "field-group",
|
|
5406
5240
|
className: a("group/field-group @container/field-group flex w-full flex-col gap-5 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4", e),
|
|
5407
5241
|
...t
|
|
5408
5242
|
});
|
|
5409
5243
|
}
|
|
5410
|
-
var
|
|
5244
|
+
var bl = m("group/field flex w-full gap-2 data-[invalid=true]:text-destructive", {
|
|
5411
5245
|
variants: { orientation: {
|
|
5412
5246
|
vertical: "flex-col *:w-full [&>.sr-only]:w-auto",
|
|
5413
5247
|
horizontal: "flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",
|
|
@@ -5415,30 +5249,30 @@ var Dl = m("group/field flex w-full gap-2 data-[invalid=true]:text-destructive",
|
|
|
5415
5249
|
} },
|
|
5416
5250
|
defaultVariants: { orientation: "vertical" }
|
|
5417
5251
|
});
|
|
5418
|
-
function
|
|
5252
|
+
function xl({ className: e, orientation: t = "vertical", ...n }) {
|
|
5419
5253
|
return /* @__PURE__ */ b("div", {
|
|
5420
5254
|
role: "group",
|
|
5421
5255
|
"data-slot": "field",
|
|
5422
5256
|
"data-orientation": t,
|
|
5423
|
-
className: a(
|
|
5257
|
+
className: a(bl({ orientation: t }), e),
|
|
5424
5258
|
...n
|
|
5425
5259
|
});
|
|
5426
5260
|
}
|
|
5427
|
-
function
|
|
5261
|
+
function Sl({ className: e, ...t }) {
|
|
5428
5262
|
return /* @__PURE__ */ b(Ne, {
|
|
5429
5263
|
"data-slot": "field-label",
|
|
5430
5264
|
className: a("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border has-[>[data-slot=field]]:not-has-[:disabled,[data-disabled]]:hover:bg-muted/50 has-[>[data-slot=field]]:has-[:focus-visible]:outline-2 has-[>[data-slot=field]]:has-[:focus-visible]:outline-solid has-[>[data-slot=field]]:has-[:focus-visible]:ring-0 has-[>[data-slot=field]]:has-[:focus-visible]:outline-offset-1 has-[>[data-slot=field]]:has-[:focus-visible]:outline-ring *:data-[slot=field]:p-2.5 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col", e),
|
|
5431
5265
|
...t
|
|
5432
5266
|
});
|
|
5433
5267
|
}
|
|
5434
|
-
function
|
|
5268
|
+
function Cl({ className: e, ...t }) {
|
|
5435
5269
|
return /* @__PURE__ */ b("p", {
|
|
5436
5270
|
"data-slot": "field-description",
|
|
5437
5271
|
className: a("text-left text-sm leading-normal font-normal text-muted-foreground group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-1.5", "last:mt-0 nth-last-2:-mt-1", "[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", e),
|
|
5438
5272
|
...t
|
|
5439
5273
|
});
|
|
5440
5274
|
}
|
|
5441
|
-
function
|
|
5275
|
+
function wl({ className: e, children: t, errors: n, ...r }) {
|
|
5442
5276
|
let i = ke(() => {
|
|
5443
5277
|
if (t) return t;
|
|
5444
5278
|
if (!n?.length) return null;
|
|
@@ -5458,7 +5292,7 @@ function jl({ className: e, children: t, errors: n, ...r }) {
|
|
|
5458
5292
|
}
|
|
5459
5293
|
//#endregion
|
|
5460
5294
|
//#region src/ui/browser/spinner.tsx
|
|
5461
|
-
function
|
|
5295
|
+
function Tl({ className: e, ...t }) {
|
|
5462
5296
|
return /* @__PURE__ */ b(Ae, {
|
|
5463
5297
|
"data-slot": "spinner",
|
|
5464
5298
|
role: "status",
|
|
@@ -5469,27 +5303,27 @@ function Ml({ className: e, ...t }) {
|
|
|
5469
5303
|
}
|
|
5470
5304
|
//#endregion
|
|
5471
5305
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/root/DialogRootContext.js
|
|
5472
|
-
var
|
|
5473
|
-
process.env.NODE_ENV !== "production" && (
|
|
5474
|
-
function
|
|
5475
|
-
let t = S.useContext(
|
|
5306
|
+
var El = /*#__PURE__*/ S.createContext(void 0);
|
|
5307
|
+
process.env.NODE_ENV !== "production" && (El.displayName = "DialogRootContext");
|
|
5308
|
+
function $(e) {
|
|
5309
|
+
let t = S.useContext(El);
|
|
5476
5310
|
if (e === !1 && t === void 0) throw Error(process.env.NODE_ENV === "production" ? ce(27) : "Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>.");
|
|
5477
5311
|
return t;
|
|
5478
5312
|
}
|
|
5479
5313
|
//#endregion
|
|
5480
5314
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/backdrop/DialogBackdrop.js
|
|
5481
|
-
var
|
|
5315
|
+
var Dl = {
|
|
5482
5316
|
...h,
|
|
5483
5317
|
...ue
|
|
5484
|
-
},
|
|
5485
|
-
let { render: n, className: r, style: a, forceRender: o = !1, ...s } = e, { store: c } =
|
|
5318
|
+
}, Ol = /*#__PURE__*/ S.forwardRef(function(e, t) {
|
|
5319
|
+
let { render: n, className: r, style: a, forceRender: o = !1, ...s } = e, { store: c } = $(), l = c.useState("open"), u = c.useState("nested"), d = c.useState("mounted"), f = {
|
|
5486
5320
|
open: l,
|
|
5487
5321
|
transitionStatus: c.useState("transitionStatus")
|
|
5488
5322
|
};
|
|
5489
5323
|
return i("div", e, {
|
|
5490
5324
|
state: f,
|
|
5491
5325
|
ref: [c.context.backdropRef, t],
|
|
5492
|
-
stateAttributesMapping:
|
|
5326
|
+
stateAttributesMapping: Dl,
|
|
5493
5327
|
props: [{
|
|
5494
5328
|
role: "presentation",
|
|
5495
5329
|
hidden: !d,
|
|
@@ -5501,11 +5335,11 @@ var Fl = {
|
|
|
5501
5335
|
enabled: o || !u
|
|
5502
5336
|
});
|
|
5503
5337
|
});
|
|
5504
|
-
process.env.NODE_ENV !== "production" && (
|
|
5338
|
+
process.env.NODE_ENV !== "production" && (Ol.displayName = "DialogBackdrop");
|
|
5505
5339
|
//#endregion
|
|
5506
5340
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/close/DialogClose.js
|
|
5507
|
-
var
|
|
5508
|
-
let { render: n, className: r, disabled: a = !1, nativeButton: o = !0, style: s, ...c } = e, { store: l } =
|
|
5341
|
+
var kl = /*#__PURE__*/ S.forwardRef(function(e, t) {
|
|
5342
|
+
let { render: n, className: r, disabled: a = !1, nativeButton: o = !0, style: s, ...c } = e, { store: l } = $(), u = l.useState("open");
|
|
5509
5343
|
function d(e) {
|
|
5510
5344
|
u && l.setOpen(!1, fe(re, e.nativeEvent));
|
|
5511
5345
|
}
|
|
@@ -5523,41 +5357,41 @@ var Ll = /*#__PURE__*/ S.forwardRef(function(e, t) {
|
|
|
5523
5357
|
]
|
|
5524
5358
|
});
|
|
5525
5359
|
});
|
|
5526
|
-
process.env.NODE_ENV !== "production" && (
|
|
5360
|
+
process.env.NODE_ENV !== "production" && (kl.displayName = "DialogClose");
|
|
5527
5361
|
//#endregion
|
|
5528
5362
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/description/DialogDescription.js
|
|
5529
|
-
var
|
|
5530
|
-
let { render: n, className: r, style: a, id: o, ...s } = e, { store: c } =
|
|
5363
|
+
var Al = /*#__PURE__*/ S.forwardRef(function(e, t) {
|
|
5364
|
+
let { render: n, className: r, style: a, id: o, ...s } = e, { store: c } = $(), l = d(o);
|
|
5531
5365
|
return c.useSyncedValueWithCleanup("descriptionElementId", l), i("p", e, {
|
|
5532
5366
|
ref: t,
|
|
5533
5367
|
props: [{ id: l }, s]
|
|
5534
5368
|
});
|
|
5535
5369
|
});
|
|
5536
|
-
process.env.NODE_ENV !== "production" && (
|
|
5370
|
+
process.env.NODE_ENV !== "production" && (Al.displayName = "DialogDescription");
|
|
5537
5371
|
//#endregion
|
|
5538
5372
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/popup/DialogPopupCssVars.js
|
|
5539
|
-
var
|
|
5373
|
+
var jl = /*#__PURE__*/ function(e) {
|
|
5540
5374
|
return e.nestedDialogs = "--nested-dialogs", e;
|
|
5541
|
-
}({}),
|
|
5375
|
+
}({}), Ml = function(e) {
|
|
5542
5376
|
return e[e.open = Oe.open] = "open", e[e.closed = Oe.closed] = "closed", e[e.startingStyle = Oe.startingStyle] = "startingStyle", e[e.endingStyle = Oe.endingStyle] = "endingStyle", e.nested = "data-nested", e.nestedDialogOpen = "data-nested-dialog-open", e;
|
|
5543
|
-
}({}),
|
|
5544
|
-
process.env.NODE_ENV !== "production" && (
|
|
5545
|
-
function
|
|
5546
|
-
let e = S.useContext(
|
|
5377
|
+
}({}), Nl = /*#__PURE__*/ S.createContext(void 0);
|
|
5378
|
+
process.env.NODE_ENV !== "production" && (Nl.displayName = "DialogPortalContext");
|
|
5379
|
+
function Pl() {
|
|
5380
|
+
let e = S.useContext(Nl);
|
|
5547
5381
|
if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? ce(26) : "Base UI: <Dialog.Portal> is missing.");
|
|
5548
5382
|
return e;
|
|
5549
5383
|
}
|
|
5550
5384
|
//#endregion
|
|
5551
5385
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/popup/DialogPopup.js
|
|
5552
|
-
var
|
|
5386
|
+
var Fl = {
|
|
5553
5387
|
...h,
|
|
5554
5388
|
...ue,
|
|
5555
5389
|
nestedDialogOpen(e) {
|
|
5556
|
-
return e ? { [
|
|
5390
|
+
return e ? { [Ml.nestedDialogOpen]: "" } : null;
|
|
5557
5391
|
}
|
|
5558
|
-
},
|
|
5559
|
-
let { className: n, finalFocus: r, initialFocus: a, render: o, style: s, ...c } = e, { store: l } =
|
|
5560
|
-
|
|
5392
|
+
}, Il = /*#__PURE__*/ S.forwardRef(function(e, t) {
|
|
5393
|
+
let { className: n, finalFocus: r, initialFocus: a, render: o, style: s, ...c } = e, { store: l } = $(), u = l.useState("descriptionElementId"), d = l.useState("disablePointerDismissal"), f = l.useState("floatingRootContext"), p = l.useState("popupProps"), m = l.useState("modal"), h = l.useState("mounted"), g = l.useState("nested"), _ = l.useState("nestedOpenDialogCount"), ee = l.useState("open"), te = l.useState("openMethod"), ne = l.useState("titleElementId"), re = l.useState("transitionStatus"), ie = l.useState("role");
|
|
5394
|
+
Pl(), _e({
|
|
5561
5395
|
open: ee,
|
|
5562
5396
|
ref: l.context.popupRef,
|
|
5563
5397
|
onComplete() {
|
|
@@ -5585,7 +5419,7 @@ var Ul = {
|
|
|
5585
5419
|
onKeyDown(e) {
|
|
5586
5420
|
Te.has(e.key) && e.stopPropagation();
|
|
5587
5421
|
},
|
|
5588
|
-
style: { [
|
|
5422
|
+
style: { [jl.nestedDialogs]: _ }
|
|
5589
5423
|
},
|
|
5590
5424
|
c
|
|
5591
5425
|
],
|
|
@@ -5594,7 +5428,7 @@ var Ul = {
|
|
|
5594
5428
|
l.context.popupRef,
|
|
5595
5429
|
l.useStateSetter("popupElement")
|
|
5596
5430
|
],
|
|
5597
|
-
stateAttributesMapping:
|
|
5431
|
+
stateAttributesMapping: Fl
|
|
5598
5432
|
});
|
|
5599
5433
|
return /*#__PURE__*/ b(ae, {
|
|
5600
5434
|
context: f,
|
|
@@ -5608,12 +5442,12 @@ var Ul = {
|
|
|
5608
5442
|
children: ce
|
|
5609
5443
|
});
|
|
5610
5444
|
});
|
|
5611
|
-
process.env.NODE_ENV !== "production" && (
|
|
5445
|
+
process.env.NODE_ENV !== "production" && (Il.displayName = "DialogPopup");
|
|
5612
5446
|
//#endregion
|
|
5613
5447
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/portal/DialogPortal.js
|
|
5614
|
-
var
|
|
5615
|
-
let { keepMounted: n = !1, ...r } = e, { store: i } =
|
|
5616
|
-
return a || n ? /*#__PURE__*/ b(
|
|
5448
|
+
var Ll = /*#__PURE__*/ S.forwardRef(function(e, t) {
|
|
5449
|
+
let { keepMounted: n = !1, ...r } = e, { store: i } = $(), a = i.useState("mounted"), o = i.useState("modal"), s = i.useState("open");
|
|
5450
|
+
return a || n ? /*#__PURE__*/ b(Nl.Provider, {
|
|
5617
5451
|
value: n,
|
|
5618
5452
|
children: /*#__PURE__*/ x(de, {
|
|
5619
5453
|
ref: t,
|
|
@@ -5625,10 +5459,10 @@ var Gl = /*#__PURE__*/ S.forwardRef(function(e, t) {
|
|
|
5625
5459
|
})
|
|
5626
5460
|
}) : null;
|
|
5627
5461
|
});
|
|
5628
|
-
process.env.NODE_ENV !== "production" && (
|
|
5462
|
+
process.env.NODE_ENV !== "production" && (Ll.displayName = "DialogPortal");
|
|
5629
5463
|
//#endregion
|
|
5630
5464
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/root/useDialogRoot.js
|
|
5631
|
-
function
|
|
5465
|
+
function Rl(n) {
|
|
5632
5466
|
let { store: r, parentContext: i, actionsRef: a, isDrawer: c } = n, l = r.useState("open"), u = r.useState("disablePointerDismissal"), d = r.useState("modal"), f = r.useState("popupElement"), { openMethod: p, triggerProps: m } = g(l);
|
|
5633
5467
|
e(r);
|
|
5634
5468
|
let { forceUnmount: h } = le(l, r), _ = S.useCallback(() => {
|
|
@@ -5688,7 +5522,7 @@ function Kl(n) {
|
|
|
5688
5522
|
}
|
|
5689
5523
|
//#endregion
|
|
5690
5524
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/store/DialogStore.js
|
|
5691
|
-
var
|
|
5525
|
+
var zl = {
|
|
5692
5526
|
...te,
|
|
5693
5527
|
modal: r((e) => e.modal),
|
|
5694
5528
|
nested: r((e) => e.nested),
|
|
@@ -5700,9 +5534,9 @@ var ql = {
|
|
|
5700
5534
|
titleElementId: r((e) => e.titleElementId),
|
|
5701
5535
|
viewportElement: r((e) => e.viewportElement),
|
|
5702
5536
|
role: r((e) => e.role)
|
|
5703
|
-
},
|
|
5537
|
+
}, Bl = class e extends De {
|
|
5704
5538
|
constructor(e) {
|
|
5705
|
-
super(
|
|
5539
|
+
super(Vl(e), {
|
|
5706
5540
|
popupRef: /*#__PURE__*/ S.createRef(),
|
|
5707
5541
|
backdropRef: /*#__PURE__*/ S.createRef(),
|
|
5708
5542
|
internalBackdropRef: /*#__PURE__*/ S.createRef(),
|
|
@@ -5710,7 +5544,7 @@ var ql = {
|
|
|
5710
5544
|
triggerElements: new f(),
|
|
5711
5545
|
onOpenChange: void 0,
|
|
5712
5546
|
onOpenChangeComplete: void 0
|
|
5713
|
-
},
|
|
5547
|
+
}, zl);
|
|
5714
5548
|
}
|
|
5715
5549
|
setOpen = (e, t) => {
|
|
5716
5550
|
if (t.preventUnmountOnClose = () => {
|
|
@@ -5725,7 +5559,7 @@ var ql = {
|
|
|
5725
5559
|
return t ?? r;
|
|
5726
5560
|
}
|
|
5727
5561
|
};
|
|
5728
|
-
function
|
|
5562
|
+
function Vl(e = {}) {
|
|
5729
5563
|
return {
|
|
5730
5564
|
..._(),
|
|
5731
5565
|
modal: !0,
|
|
@@ -5744,10 +5578,10 @@ function Yl(e = {}) {
|
|
|
5744
5578
|
}
|
|
5745
5579
|
//#endregion
|
|
5746
5580
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/root/DialogRoot.js
|
|
5747
|
-
var
|
|
5748
|
-
process.env.NODE_ENV !== "production" && (
|
|
5749
|
-
function
|
|
5750
|
-
let { children: t, open: n, defaultOpen: r = !1, onOpenChange: i, onOpenChangeComplete: a, disablePointerDismissal: o = !1, modal: s = !0, actionsRef: c, handle: l, triggerId: d, defaultTriggerId: f = null } = e, p =
|
|
5581
|
+
var Hl = /*#__PURE__*/ S.createContext(!1);
|
|
5582
|
+
process.env.NODE_ENV !== "production" && (Hl.displayName = "IsDrawerContext");
|
|
5583
|
+
function Ul(e) {
|
|
5584
|
+
let { children: t, open: n, defaultOpen: r = !1, onOpenChange: i, onOpenChangeComplete: a, disablePointerDismissal: o = !1, modal: s = !0, actionsRef: c, handle: l, triggerId: d, defaultTriggerId: f = null } = e, p = $(!0), m = S.useContext(Hl), h = !!p, g = Bl.useStore(l?.store, {
|
|
5751
5585
|
open: r,
|
|
5752
5586
|
openProp: n,
|
|
5753
5587
|
activeTriggerId: f,
|
|
@@ -5767,7 +5601,7 @@ function Zl(e) {
|
|
|
5767
5601
|
modal: s
|
|
5768
5602
|
}), g.useContextCallback("onOpenChange", i), g.useContextCallback("onOpenChangeComplete", a);
|
|
5769
5603
|
let _ = g.useState("payload");
|
|
5770
|
-
|
|
5604
|
+
Rl({
|
|
5771
5605
|
store: g,
|
|
5772
5606
|
actionsRef: c,
|
|
5773
5607
|
parentContext: p?.store.context,
|
|
@@ -5776,9 +5610,9 @@ function Zl(e) {
|
|
|
5776
5610
|
triggerIdProp: d
|
|
5777
5611
|
});
|
|
5778
5612
|
let ee = S.useMemo(() => ({ store: g }), [g]);
|
|
5779
|
-
return /*#__PURE__*/ b(
|
|
5613
|
+
return /*#__PURE__*/ b(Hl.Provider, {
|
|
5780
5614
|
value: !1,
|
|
5781
|
-
children: /*#__PURE__*/ b(
|
|
5615
|
+
children: /*#__PURE__*/ b(El.Provider, {
|
|
5782
5616
|
value: ee,
|
|
5783
5617
|
children: typeof t == "function" ? t({ payload: _ }) : t
|
|
5784
5618
|
})
|
|
@@ -5786,18 +5620,18 @@ function Zl(e) {
|
|
|
5786
5620
|
}
|
|
5787
5621
|
//#endregion
|
|
5788
5622
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/title/DialogTitle.js
|
|
5789
|
-
var
|
|
5790
|
-
let { render: n, className: r, style: a, id: o, ...s } = e, { store: c } =
|
|
5623
|
+
var Wl = /*#__PURE__*/ S.forwardRef(function(e, t) {
|
|
5624
|
+
let { render: n, className: r, style: a, id: o, ...s } = e, { store: c } = $(), l = d(o);
|
|
5791
5625
|
return c.useSyncedValueWithCleanup("titleElementId", l), i("h2", e, {
|
|
5792
5626
|
ref: t,
|
|
5793
5627
|
props: [{ id: l }, s]
|
|
5794
5628
|
});
|
|
5795
5629
|
});
|
|
5796
|
-
process.env.NODE_ENV !== "production" && (
|
|
5630
|
+
process.env.NODE_ENV !== "production" && (Wl.displayName = "DialogTitle");
|
|
5797
5631
|
//#endregion
|
|
5798
5632
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/trigger/DialogTrigger.js
|
|
5799
|
-
var
|
|
5800
|
-
let { render: n, className: r, disabled: a = !1, nativeButton: s = !0, id: c, payload: l, handle: u, style: f, ...m } = e, h =
|
|
5633
|
+
var Gl = /*#__PURE__*/ S.forwardRef(function(e, t) {
|
|
5634
|
+
let { render: n, className: r, disabled: a = !1, nativeButton: s = !0, id: c, payload: l, handle: u, style: f, ...m } = e, h = $(!0), g = u?.store ?? h?.store;
|
|
5801
5635
|
if (!g) throw Error(process.env.NODE_ENV === "production" ? ce(79) : "Base UI: <Dialog.Trigger> must be used within <Dialog.Root> or provided with a handle.");
|
|
5802
5636
|
let _ = d(c), ee = g.useState("floatingRootContext"), te = g.useState("isOpenedByTrigger", _), re = S.useRef(null), { registerTrigger: ie, isMountedByThisTrigger: ae } = we(_, re, g, { payload: l }), { getButtonProps: oe, buttonRef: se } = ne({
|
|
5803
5637
|
disabled: a,
|
|
@@ -5827,48 +5661,48 @@ var $l = /*#__PURE__*/ S.forwardRef(function(e, t) {
|
|
|
5827
5661
|
stateAttributesMapping: p
|
|
5828
5662
|
});
|
|
5829
5663
|
});
|
|
5830
|
-
process.env.NODE_ENV !== "production" && (
|
|
5664
|
+
process.env.NODE_ENV !== "production" && (Gl.displayName = "DialogTrigger");
|
|
5831
5665
|
//#endregion
|
|
5832
5666
|
//#region src/ui/browser/dialog.tsx
|
|
5833
|
-
function
|
|
5834
|
-
return /* @__PURE__ */ b(
|
|
5667
|
+
function Kl(e) {
|
|
5668
|
+
return /* @__PURE__ */ b(Ul, {
|
|
5835
5669
|
"data-slot": "dialog",
|
|
5836
5670
|
...e
|
|
5837
5671
|
});
|
|
5838
5672
|
}
|
|
5839
|
-
function
|
|
5840
|
-
return /* @__PURE__ */ b(
|
|
5673
|
+
function ql(e) {
|
|
5674
|
+
return /* @__PURE__ */ b(Gl, {
|
|
5841
5675
|
"data-slot": "dialog-trigger",
|
|
5842
5676
|
...e
|
|
5843
5677
|
});
|
|
5844
5678
|
}
|
|
5845
|
-
function
|
|
5846
|
-
return /* @__PURE__ */ b(
|
|
5679
|
+
function Jl(e) {
|
|
5680
|
+
return /* @__PURE__ */ b(Ll, {
|
|
5847
5681
|
"data-slot": "dialog-portal",
|
|
5848
5682
|
...e
|
|
5849
5683
|
});
|
|
5850
5684
|
}
|
|
5851
|
-
function
|
|
5852
|
-
return /* @__PURE__ */ b(
|
|
5685
|
+
function Yl(e) {
|
|
5686
|
+
return /* @__PURE__ */ b(kl, {
|
|
5853
5687
|
"data-slot": "dialog-close",
|
|
5854
5688
|
...e
|
|
5855
5689
|
});
|
|
5856
5690
|
}
|
|
5857
|
-
function
|
|
5858
|
-
return /* @__PURE__ */ b(
|
|
5691
|
+
function Xl({ className: e, ...t }) {
|
|
5692
|
+
return /* @__PURE__ */ b(Ol, {
|
|
5859
5693
|
"data-slot": "dialog-overlay",
|
|
5860
5694
|
className: a("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 motion-reduce:animate-none motion-reduce:transition-none", e),
|
|
5861
5695
|
...t
|
|
5862
5696
|
});
|
|
5863
5697
|
}
|
|
5864
|
-
function
|
|
5865
|
-
return /* @__PURE__ */ x(
|
|
5698
|
+
function Zl({ children: e, className: t, closeLabel: r = "Close", container: i, showCloseButton: o = !0, ...s }) {
|
|
5699
|
+
return /* @__PURE__ */ x(Jl, {
|
|
5866
5700
|
container: i,
|
|
5867
|
-
children: [/* @__PURE__ */ b(
|
|
5701
|
+
children: [/* @__PURE__ */ b(Xl, {}), /* @__PURE__ */ x(Il, {
|
|
5868
5702
|
"data-slot": "dialog-content",
|
|
5869
5703
|
className: a("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground shadow-lg ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:animate-none motion-reduce:transition-none", t),
|
|
5870
5704
|
...s,
|
|
5871
|
-
children: [e, o && /* @__PURE__ */ x(
|
|
5705
|
+
children: [e, o && /* @__PURE__ */ x(kl, {
|
|
5872
5706
|
"data-slot": "dialog-close",
|
|
5873
5707
|
render: /* @__PURE__ */ b(n, {
|
|
5874
5708
|
className: "absolute top-2 right-2",
|
|
@@ -5883,29 +5717,29 @@ function au({ children: e, className: t, closeLabel: r = "Close", container: i,
|
|
|
5883
5717
|
})]
|
|
5884
5718
|
});
|
|
5885
5719
|
}
|
|
5886
|
-
function
|
|
5720
|
+
function Ql({ className: e, ...t }) {
|
|
5887
5721
|
return /* @__PURE__ */ b("div", {
|
|
5888
5722
|
"data-slot": "dialog-header",
|
|
5889
5723
|
className: a("flex flex-col gap-2", e),
|
|
5890
5724
|
...t
|
|
5891
5725
|
});
|
|
5892
5726
|
}
|
|
5893
|
-
function
|
|
5727
|
+
function $l({ className: e, ...t }) {
|
|
5894
5728
|
return /* @__PURE__ */ b("div", {
|
|
5895
5729
|
"data-slot": "dialog-footer",
|
|
5896
5730
|
className: a("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t border-border bg-muted/50 p-4 sm:flex-row sm:justify-end", e),
|
|
5897
5731
|
...t
|
|
5898
5732
|
});
|
|
5899
5733
|
}
|
|
5900
|
-
function
|
|
5901
|
-
return /* @__PURE__ */ b(
|
|
5734
|
+
function eu({ className: e, ...t }) {
|
|
5735
|
+
return /* @__PURE__ */ b(Wl, {
|
|
5902
5736
|
"data-slot": "dialog-title",
|
|
5903
5737
|
className: a("text-base leading-none font-medium", e),
|
|
5904
5738
|
...t
|
|
5905
5739
|
});
|
|
5906
5740
|
}
|
|
5907
|
-
function
|
|
5908
|
-
return /* @__PURE__ */ b(
|
|
5741
|
+
function tu({ className: e, ...t }) {
|
|
5742
|
+
return /* @__PURE__ */ b(Al, {
|
|
5909
5743
|
"data-slot": "dialog-description",
|
|
5910
5744
|
className: a("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", e),
|
|
5911
5745
|
...t
|
|
@@ -5913,7 +5747,7 @@ function lu({ className: e, ...t }) {
|
|
|
5913
5747
|
}
|
|
5914
5748
|
//#endregion
|
|
5915
5749
|
//#region src/workbench/browser/runtime/icons.tsx
|
|
5916
|
-
function
|
|
5750
|
+
function nu(e) {
|
|
5917
5751
|
switch (e) {
|
|
5918
5752
|
case "alert": return /* @__PURE__ */ x(y, { children: [
|
|
5919
5753
|
/* @__PURE__ */ b("circle", {
|
|
@@ -6079,7 +5913,7 @@ function uu(e) {
|
|
|
6079
5913
|
] });
|
|
6080
5914
|
}
|
|
6081
5915
|
}
|
|
6082
|
-
function
|
|
5916
|
+
function ru({ name: e, size: t = 18, ...n }) {
|
|
6083
5917
|
return e === "flow" ? /* @__PURE__ */ b(je, {
|
|
6084
5918
|
"aria-hidden": "true",
|
|
6085
5919
|
size: t,
|
|
@@ -6097,13 +5931,13 @@ function du({ name: e, size: t = 18, ...n }) {
|
|
|
6097
5931
|
strokeLinecap: "round",
|
|
6098
5932
|
strokeLinejoin: "round",
|
|
6099
5933
|
strokeWidth: "1.7",
|
|
6100
|
-
children:
|
|
5934
|
+
children: nu(e)
|
|
6101
5935
|
})
|
|
6102
5936
|
});
|
|
6103
5937
|
}
|
|
6104
5938
|
//#endregion
|
|
6105
5939
|
//#region src/workbench/browser/runtime/shell/workbenchSelect.tsx
|
|
6106
|
-
function
|
|
5940
|
+
function iu({ ariaLabel: e, className: t, disabled: n = !1, id: r, onValueChange: i, options: o, portalRoot: s, size: c, value: l, variant: u }) {
|
|
6107
5941
|
return /* @__PURE__ */ x(ye, {
|
|
6108
5942
|
disabled: n,
|
|
6109
5943
|
onValueChange: (e) => {
|
|
@@ -6130,4 +5964,4 @@ function fu({ ariaLabel: e, className: t, disabled: n = !1, id: r, onValueChange
|
|
|
6130
5964
|
});
|
|
6131
5965
|
}
|
|
6132
5966
|
//#endregion
|
|
6133
|
-
export {
|
|
5967
|
+
export { Rs as A, Us as B, fl as C, B as D, W as E, V as F, Me as H, U as I, Js as L, wc as M, G as N, z as O, R as P, fs as R, ml as S, sl as T, Ne as V, _l as _, Zl as a, hl as b, Ql as c, Tl as d, xl as f, Sl as g, yl as h, Yl as i, Oc as j, Zs as k, eu as l, wl as m, ru as n, tu as o, Cl as p, Kl as r, $l as s, iu as t, ql as u, vl as v, dl as w, gl as x, ul as y, H as z };
|