@powerhousedao/connect 1.0.28-dev.0 → 1.0.28-staging.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{app-BDw8v6b_.css → app-Di6g_N6F.css} +97 -79
- package/dist/assets/{app-DHw_h7gS.js → app-fD71bJN5.js} +4821 -4136
- package/dist/assets/app-fD71bJN5.js.map +1 -0
- package/dist/assets/{app-loader-DwKN8KIC.js → app-loader-BgVDAZzK.js} +831 -440
- package/dist/assets/app-loader-BgVDAZzK.js.map +1 -0
- package/dist/assets/{app-loader-CDW9U8zV.css → app-loader-b43YtazY.css} +22 -15
- package/dist/assets/{browser-CEIioANE.js → browser-BfKVilMY.js} +35 -45
- package/dist/assets/browser-BfKVilMY.js.map +1 -0
- package/dist/assets/{ccip-Cgv37f4v.js → ccip-DqNp5gVF.js} +4 -4
- package/dist/assets/ccip-DqNp5gVF.js.map +1 -0
- package/dist/assets/{content-Bnjc15M3.js → content-BnihK9ko.js} +69 -115
- package/dist/assets/content-BnihK9ko.js.map +1 -0
- package/dist/assets/{index-D9_MTgI5.js → index-Bfinzr42.js} +4 -4
- package/dist/assets/{index-D9_MTgI5.js.map → index-Bfinzr42.js.map} +1 -1
- package/dist/assets/{index-DPsLHOm9.js → index-Cteg8MEt.js} +4 -4
- package/dist/assets/index-Cteg8MEt.js.map +1 -0
- package/dist/assets/{index-BgGUWENy.js → index-D8ml-kF6.js} +3463 -61
- package/dist/assets/index-D8ml-kF6.js.map +1 -0
- package/dist/assets/{index-CrWUHus9.js → index-W1LZgOxg.js} +5 -5
- package/dist/assets/{index-CrWUHus9.js.map → index-W1LZgOxg.js.map} +1 -1
- package/dist/assets/{main.DzLLcDg5.js → main.CU15VE0F.js} +2 -2
- package/dist/assets/{main.DzLLcDg5.js.map → main.CU15VE0F.js.map} +1 -1
- package/dist/assets/{reactor-analytics-ChaldiVR.js → reactor-analytics-C1DnbKP-.js} +6 -6
- package/dist/assets/{reactor-analytics-ChaldiVR.js.map → reactor-analytics-C1DnbKP-.js.map} +1 -1
- package/dist/assets/{router-COn-IaaE.js → router-D6f-fo9X.js} +8 -8
- package/dist/assets/{router-COn-IaaE.js.map → router-D6f-fo9X.js.map} +1 -1
- package/dist/assets/{style-C0GVbPTL.css → style-CK8AY-7U.css} +12 -16
- package/dist/index.html +1 -1
- package/dist/vite-envs.sh +1 -1
- package/package.json +9 -9
- package/dist/assets/app-DHw_h7gS.js.map +0 -1
- package/dist/assets/app-loader-DwKN8KIC.js.map +0 -1
- package/dist/assets/browser-CEIioANE.js.map +0 -1
- package/dist/assets/ccip-Cgv37f4v.js.map +0 -1
- package/dist/assets/content-Bnjc15M3.js.map +0 -1
- package/dist/assets/index-BgGUWENy.js.map +0 -1
- package/dist/assets/index-DPsLHOm9.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/app-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/app-fD71bJN5.js","assets/main.CU15VE0F.js","assets/app-Di6g_N6F.css"])))=>i.map(i=>d[i]);
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __typeError = (msg) => {
|
|
4
4
|
throw TypeError(msg);
|
|
@@ -11,7 +11,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
11
11
|
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
12
12
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
13
13
|
var _tags, _levelString, _errorHandler, _ConsoleLogger_instances, levelValue_get, _getDocumentModelModule, _drives, _ReadModeService_instances, parseGraphQLErrors_fn, fetchDrive_fn, _a, _ServiceWorkerManager_instances, handleServiceWorkerMessage_fn, handleServiceWorker_fn;
|
|
14
|
-
import { _ as __vitePreload } from "./main.
|
|
14
|
+
import { _ as __vitePreload } from "./main.CU15VE0F.js";
|
|
15
15
|
import { jsx } from "react/jsx-runtime";
|
|
16
16
|
import { useState, useEffect, Suspense, lazy } from "react";
|
|
17
17
|
function _mergeNamespaces(n, m) {
|
|
@@ -1089,8 +1089,7 @@ const cjsModule = /* @__PURE__ */ getDefaultExportFromCjs(safeStableStringifyExp
|
|
|
1089
1089
|
cjsModule.configure;
|
|
1090
1090
|
var util$1;
|
|
1091
1091
|
(function(util2) {
|
|
1092
|
-
util2.assertEqual = (
|
|
1093
|
-
};
|
|
1092
|
+
util2.assertEqual = (val) => val;
|
|
1094
1093
|
function assertIs(_arg) {
|
|
1095
1094
|
}
|
|
1096
1095
|
util2.assertIs = assertIs;
|
|
@@ -1134,7 +1133,7 @@ var util$1;
|
|
|
1134
1133
|
}
|
|
1135
1134
|
return void 0;
|
|
1136
1135
|
};
|
|
1137
|
-
util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" &&
|
|
1136
|
+
util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && isFinite(val) && Math.floor(val) === val;
|
|
1138
1137
|
function joinValues(array, separator = " | ") {
|
|
1139
1138
|
return array.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator);
|
|
1140
1139
|
}
|
|
@@ -1186,7 +1185,7 @@ const getParsedType = (data) => {
|
|
|
1186
1185
|
case "string":
|
|
1187
1186
|
return ZodParsedType.string;
|
|
1188
1187
|
case "number":
|
|
1189
|
-
return
|
|
1188
|
+
return isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;
|
|
1190
1189
|
case "boolean":
|
|
1191
1190
|
return ZodParsedType.boolean;
|
|
1192
1191
|
case "function":
|
|
@@ -1237,6 +1236,10 @@ const ZodIssueCode = util$1.arrayToEnum([
|
|
|
1237
1236
|
"not_multiple_of",
|
|
1238
1237
|
"not_finite"
|
|
1239
1238
|
]);
|
|
1239
|
+
const quotelessJson = (obj) => {
|
|
1240
|
+
const json = JSON.stringify(obj, null, 2);
|
|
1241
|
+
return json.replace(/"([^"]+)":/g, "$1:");
|
|
1242
|
+
};
|
|
1240
1243
|
class ZodError extends Error {
|
|
1241
1244
|
get errors() {
|
|
1242
1245
|
return this.issues;
|
|
@@ -1429,6 +1432,9 @@ const errorMap = (issue, _ctx) => {
|
|
|
1429
1432
|
return { message };
|
|
1430
1433
|
};
|
|
1431
1434
|
let overrideErrorMap = errorMap;
|
|
1435
|
+
function setErrorMap(map) {
|
|
1436
|
+
overrideErrorMap = map;
|
|
1437
|
+
}
|
|
1432
1438
|
function getErrorMap() {
|
|
1433
1439
|
return overrideErrorMap;
|
|
1434
1440
|
}
|
|
@@ -1457,6 +1463,7 @@ const makeIssue = (params) => {
|
|
|
1457
1463
|
message: errorMessage
|
|
1458
1464
|
};
|
|
1459
1465
|
};
|
|
1466
|
+
const EMPTY_PATH = [];
|
|
1460
1467
|
function addIssueToContext(ctx, issueData) {
|
|
1461
1468
|
const overrideMap = getErrorMap();
|
|
1462
1469
|
const issue = makeIssue({
|
|
@@ -1539,22 +1546,23 @@ const isAborted = (x) => x.status === "aborted";
|
|
|
1539
1546
|
const isDirty = (x) => x.status === "dirty";
|
|
1540
1547
|
const isValid = (x) => x.status === "valid";
|
|
1541
1548
|
const isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
1549
|
+
function __classPrivateFieldGet$1(receiver, state, kind, f) {
|
|
1550
|
+
if (typeof state === "function" ? receiver !== state || true : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1551
|
+
return state.get(receiver);
|
|
1552
|
+
}
|
|
1553
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
1554
|
+
if (typeof state === "function" ? receiver !== state || true : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
1555
|
+
return state.set(receiver, value), value;
|
|
1556
|
+
}
|
|
1557
|
+
typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
|
|
1558
|
+
var e = new Error(message);
|
|
1559
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
1560
|
+
};
|
|
1542
1561
|
var errorUtil;
|
|
1543
1562
|
(function(errorUtil2) {
|
|
1544
1563
|
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
1545
|
-
errorUtil2.toString = (message) => typeof message === "string" ? message : message
|
|
1564
|
+
errorUtil2.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message;
|
|
1546
1565
|
})(errorUtil || (errorUtil = {}));
|
|
1547
|
-
var __classPrivateFieldGet$1 = function(receiver, state, kind, f) {
|
|
1548
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
1549
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1550
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
1551
|
-
};
|
|
1552
|
-
var __classPrivateFieldSet = function(receiver, state, value, kind, f) {
|
|
1553
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
1554
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
1555
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
1556
|
-
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
1557
|
-
};
|
|
1558
1566
|
var _ZodEnum_cache, _ZodNativeEnum_cache;
|
|
1559
1567
|
class ParseInputLazyPath {
|
|
1560
1568
|
constructor(parent, value, path, key) {
|
|
@@ -1566,7 +1574,7 @@ class ParseInputLazyPath {
|
|
|
1566
1574
|
}
|
|
1567
1575
|
get path() {
|
|
1568
1576
|
if (!this._cachedPath.length) {
|
|
1569
|
-
if (
|
|
1577
|
+
if (this._key instanceof Array) {
|
|
1570
1578
|
this._cachedPath.push(...this._path, ...this._key);
|
|
1571
1579
|
} else {
|
|
1572
1580
|
this._cachedPath.push(...this._path, this._key);
|
|
@@ -1604,16 +1612,17 @@ function processCreateParams(params) {
|
|
|
1604
1612
|
if (errorMap2)
|
|
1605
1613
|
return { errorMap: errorMap2, description: description2 };
|
|
1606
1614
|
const customMap = (iss, ctx) => {
|
|
1615
|
+
var _a2, _b;
|
|
1607
1616
|
const { message } = params;
|
|
1608
1617
|
if (iss.code === "invalid_enum_value") {
|
|
1609
|
-
return { message: message
|
|
1618
|
+
return { message: message !== null && message !== void 0 ? message : ctx.defaultError };
|
|
1610
1619
|
}
|
|
1611
1620
|
if (typeof ctx.data === "undefined") {
|
|
1612
|
-
return { message: message
|
|
1621
|
+
return { message: (_a2 = message !== null && message !== void 0 ? message : required_error) !== null && _a2 !== void 0 ? _a2 : ctx.defaultError };
|
|
1613
1622
|
}
|
|
1614
1623
|
if (iss.code !== "invalid_type")
|
|
1615
1624
|
return { message: ctx.defaultError };
|
|
1616
|
-
return { message: message
|
|
1625
|
+
return { message: (_b = message !== null && message !== void 0 ? message : invalid_type_error) !== null && _b !== void 0 ? _b : ctx.defaultError };
|
|
1617
1626
|
};
|
|
1618
1627
|
return { errorMap: customMap, description: description2 };
|
|
1619
1628
|
}
|
|
@@ -1665,13 +1674,14 @@ class ZodType {
|
|
|
1665
1674
|
throw result.error;
|
|
1666
1675
|
}
|
|
1667
1676
|
safeParse(data, params) {
|
|
1677
|
+
var _a2;
|
|
1668
1678
|
const ctx = {
|
|
1669
1679
|
common: {
|
|
1670
1680
|
issues: [],
|
|
1671
|
-
async: (params
|
|
1672
|
-
contextualErrorMap: params
|
|
1681
|
+
async: (_a2 = params === null || params === void 0 ? void 0 : params.async) !== null && _a2 !== void 0 ? _a2 : false,
|
|
1682
|
+
contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap
|
|
1673
1683
|
},
|
|
1674
|
-
path: (params
|
|
1684
|
+
path: (params === null || params === void 0 ? void 0 : params.path) || [],
|
|
1675
1685
|
schemaErrorMap: this._def.errorMap,
|
|
1676
1686
|
parent: null,
|
|
1677
1687
|
data,
|
|
@@ -1702,7 +1712,7 @@ class ZodType {
|
|
|
1702
1712
|
issues: ctx.common.issues
|
|
1703
1713
|
};
|
|
1704
1714
|
} catch (err) {
|
|
1705
|
-
if ((_b = (_a2 = err
|
|
1715
|
+
if ((_b = (_a2 = err === null || err === void 0 ? void 0 : err.message) === null || _a2 === void 0 ? void 0 : _a2.toLowerCase()) === null || _b === void 0 ? void 0 : _b.includes("encountered")) {
|
|
1706
1716
|
this["~standard"].async = true;
|
|
1707
1717
|
}
|
|
1708
1718
|
ctx.common = {
|
|
@@ -1727,10 +1737,10 @@ class ZodType {
|
|
|
1727
1737
|
const ctx = {
|
|
1728
1738
|
common: {
|
|
1729
1739
|
issues: [],
|
|
1730
|
-
contextualErrorMap: params
|
|
1740
|
+
contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap,
|
|
1731
1741
|
async: true
|
|
1732
1742
|
},
|
|
1733
|
-
path: (params
|
|
1743
|
+
path: (params === null || params === void 0 ? void 0 : params.path) || [],
|
|
1734
1744
|
schemaErrorMap: this._def.errorMap,
|
|
1735
1745
|
parent: null,
|
|
1736
1746
|
data,
|
|
@@ -1959,14 +1969,12 @@ function isValidJWT(jwt, alg) {
|
|
|
1959
1969
|
const decoded = JSON.parse(atob(base64));
|
|
1960
1970
|
if (typeof decoded !== "object" || decoded === null)
|
|
1961
1971
|
return false;
|
|
1962
|
-
if (
|
|
1963
|
-
return false;
|
|
1964
|
-
if (!decoded.alg)
|
|
1972
|
+
if (!decoded.typ || !decoded.alg)
|
|
1965
1973
|
return false;
|
|
1966
1974
|
if (alg && decoded.alg !== alg)
|
|
1967
1975
|
return false;
|
|
1968
1976
|
return true;
|
|
1969
|
-
} catch {
|
|
1977
|
+
} catch (_a2) {
|
|
1970
1978
|
return false;
|
|
1971
1979
|
}
|
|
1972
1980
|
}
|
|
@@ -2125,7 +2133,7 @@ class ZodString extends ZodType {
|
|
|
2125
2133
|
} else if (check.kind === "url") {
|
|
2126
2134
|
try {
|
|
2127
2135
|
new URL(input.data);
|
|
2128
|
-
} catch {
|
|
2136
|
+
} catch (_a2) {
|
|
2129
2137
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
2130
2138
|
addIssueToContext(ctx, {
|
|
2131
2139
|
validation: "url",
|
|
@@ -2337,6 +2345,7 @@ class ZodString extends ZodType {
|
|
|
2337
2345
|
return this._addCheck({ kind: "cidr", ...errorUtil.errToObj(options) });
|
|
2338
2346
|
}
|
|
2339
2347
|
datetime(options) {
|
|
2348
|
+
var _a2, _b;
|
|
2340
2349
|
if (typeof options === "string") {
|
|
2341
2350
|
return this._addCheck({
|
|
2342
2351
|
kind: "datetime",
|
|
@@ -2348,10 +2357,10 @@ class ZodString extends ZodType {
|
|
|
2348
2357
|
}
|
|
2349
2358
|
return this._addCheck({
|
|
2350
2359
|
kind: "datetime",
|
|
2351
|
-
precision: typeof (options
|
|
2352
|
-
offset: (options
|
|
2353
|
-
local: (options
|
|
2354
|
-
...errorUtil.errToObj(options
|
|
2360
|
+
precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision,
|
|
2361
|
+
offset: (_a2 = options === null || options === void 0 ? void 0 : options.offset) !== null && _a2 !== void 0 ? _a2 : false,
|
|
2362
|
+
local: (_b = options === null || options === void 0 ? void 0 : options.local) !== null && _b !== void 0 ? _b : false,
|
|
2363
|
+
...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message)
|
|
2355
2364
|
});
|
|
2356
2365
|
}
|
|
2357
2366
|
date(message) {
|
|
@@ -2367,8 +2376,8 @@ class ZodString extends ZodType {
|
|
|
2367
2376
|
}
|
|
2368
2377
|
return this._addCheck({
|
|
2369
2378
|
kind: "time",
|
|
2370
|
-
precision: typeof (options
|
|
2371
|
-
...errorUtil.errToObj(options
|
|
2379
|
+
precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision,
|
|
2380
|
+
...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message)
|
|
2372
2381
|
});
|
|
2373
2382
|
}
|
|
2374
2383
|
duration(message) {
|
|
@@ -2385,8 +2394,8 @@ class ZodString extends ZodType {
|
|
|
2385
2394
|
return this._addCheck({
|
|
2386
2395
|
kind: "includes",
|
|
2387
2396
|
value,
|
|
2388
|
-
position: options
|
|
2389
|
-
...errorUtil.errToObj(options
|
|
2397
|
+
position: options === null || options === void 0 ? void 0 : options.position,
|
|
2398
|
+
...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message)
|
|
2390
2399
|
});
|
|
2391
2400
|
}
|
|
2392
2401
|
startsWith(value, message) {
|
|
@@ -2518,10 +2527,11 @@ class ZodString extends ZodType {
|
|
|
2518
2527
|
}
|
|
2519
2528
|
}
|
|
2520
2529
|
ZodString.create = (params) => {
|
|
2530
|
+
var _a2;
|
|
2521
2531
|
return new ZodString({
|
|
2522
2532
|
checks: [],
|
|
2523
2533
|
typeName: ZodFirstPartyTypeKind.ZodString,
|
|
2524
|
-
coerce: (params
|
|
2534
|
+
coerce: (_a2 = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a2 !== void 0 ? _a2 : false,
|
|
2525
2535
|
...processCreateParams(params)
|
|
2526
2536
|
});
|
|
2527
2537
|
};
|
|
@@ -2529,9 +2539,9 @@ function floatSafeRemainder(val, step) {
|
|
|
2529
2539
|
const valDecCount = (val.toString().split(".")[1] || "").length;
|
|
2530
2540
|
const stepDecCount = (step.toString().split(".")[1] || "").length;
|
|
2531
2541
|
const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
|
|
2532
|
-
const valInt =
|
|
2533
|
-
const stepInt =
|
|
2534
|
-
return valInt % stepInt / 10
|
|
2542
|
+
const valInt = parseInt(val.toFixed(decCount).replace(".", ""));
|
|
2543
|
+
const stepInt = parseInt(step.toFixed(decCount).replace(".", ""));
|
|
2544
|
+
return valInt % stepInt / Math.pow(10, decCount);
|
|
2535
2545
|
}
|
|
2536
2546
|
class ZodNumber extends ZodType {
|
|
2537
2547
|
constructor() {
|
|
@@ -2741,8 +2751,7 @@ class ZodNumber extends ZodType {
|
|
|
2741
2751
|
return !!this._def.checks.find((ch) => ch.kind === "int" || ch.kind === "multipleOf" && util$1.isInteger(ch.value));
|
|
2742
2752
|
}
|
|
2743
2753
|
get isFinite() {
|
|
2744
|
-
let max = null;
|
|
2745
|
-
let min = null;
|
|
2754
|
+
let max = null, min = null;
|
|
2746
2755
|
for (const ch of this._def.checks) {
|
|
2747
2756
|
if (ch.kind === "finite" || ch.kind === "int" || ch.kind === "multipleOf") {
|
|
2748
2757
|
return true;
|
|
@@ -2761,7 +2770,7 @@ ZodNumber.create = (params) => {
|
|
|
2761
2770
|
return new ZodNumber({
|
|
2762
2771
|
checks: [],
|
|
2763
2772
|
typeName: ZodFirstPartyTypeKind.ZodNumber,
|
|
2764
|
-
coerce: (params
|
|
2773
|
+
coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,
|
|
2765
2774
|
...processCreateParams(params)
|
|
2766
2775
|
});
|
|
2767
2776
|
};
|
|
@@ -2775,7 +2784,7 @@ class ZodBigInt extends ZodType {
|
|
|
2775
2784
|
if (this._def.coerce) {
|
|
2776
2785
|
try {
|
|
2777
2786
|
input.data = BigInt(input.data);
|
|
2778
|
-
} catch {
|
|
2787
|
+
} catch (_a2) {
|
|
2779
2788
|
return this._getInvalidInput(input);
|
|
2780
2789
|
}
|
|
2781
2790
|
}
|
|
@@ -2930,10 +2939,11 @@ class ZodBigInt extends ZodType {
|
|
|
2930
2939
|
}
|
|
2931
2940
|
}
|
|
2932
2941
|
ZodBigInt.create = (params) => {
|
|
2942
|
+
var _a2;
|
|
2933
2943
|
return new ZodBigInt({
|
|
2934
2944
|
checks: [],
|
|
2935
2945
|
typeName: ZodFirstPartyTypeKind.ZodBigInt,
|
|
2936
|
-
coerce: (params
|
|
2946
|
+
coerce: (_a2 = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a2 !== void 0 ? _a2 : false,
|
|
2937
2947
|
...processCreateParams(params)
|
|
2938
2948
|
});
|
|
2939
2949
|
};
|
|
@@ -2958,7 +2968,7 @@ class ZodBoolean extends ZodType {
|
|
|
2958
2968
|
ZodBoolean.create = (params) => {
|
|
2959
2969
|
return new ZodBoolean({
|
|
2960
2970
|
typeName: ZodFirstPartyTypeKind.ZodBoolean,
|
|
2961
|
-
coerce: (params
|
|
2971
|
+
coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,
|
|
2962
2972
|
...processCreateParams(params)
|
|
2963
2973
|
});
|
|
2964
2974
|
};
|
|
@@ -2977,7 +2987,7 @@ class ZodDate extends ZodType {
|
|
|
2977
2987
|
});
|
|
2978
2988
|
return INVALID;
|
|
2979
2989
|
}
|
|
2980
|
-
if (
|
|
2990
|
+
if (isNaN(input.data.getTime())) {
|
|
2981
2991
|
const ctx2 = this._getOrReturnCtx(input);
|
|
2982
2992
|
addIssueToContext(ctx2, {
|
|
2983
2993
|
code: ZodIssueCode.invalid_date
|
|
@@ -3066,7 +3076,7 @@ class ZodDate extends ZodType {
|
|
|
3066
3076
|
ZodDate.create = (params) => {
|
|
3067
3077
|
return new ZodDate({
|
|
3068
3078
|
checks: [],
|
|
3069
|
-
coerce: (params
|
|
3079
|
+
coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,
|
|
3070
3080
|
typeName: ZodFirstPartyTypeKind.ZodDate,
|
|
3071
3081
|
...processCreateParams(params)
|
|
3072
3082
|
});
|
|
@@ -3341,8 +3351,7 @@ class ZodObject extends ZodType {
|
|
|
3341
3351
|
return this._cached;
|
|
3342
3352
|
const shape = this._def.shape();
|
|
3343
3353
|
const keys = util$1.objectKeys(shape);
|
|
3344
|
-
this._cached = { shape, keys };
|
|
3345
|
-
return this._cached;
|
|
3354
|
+
return this._cached = { shape, keys };
|
|
3346
3355
|
}
|
|
3347
3356
|
_parse(input) {
|
|
3348
3357
|
const parsedType = this._getType(input);
|
|
@@ -3440,11 +3449,11 @@ class ZodObject extends ZodType {
|
|
|
3440
3449
|
unknownKeys: "strict",
|
|
3441
3450
|
...message !== void 0 ? {
|
|
3442
3451
|
errorMap: (issue, ctx) => {
|
|
3443
|
-
var _a2, _b;
|
|
3444
|
-
const defaultError = ((_b = (_a2 = this._def).errorMap)
|
|
3452
|
+
var _a2, _b, _c, _d;
|
|
3453
|
+
const defaultError = (_c = (_b = (_a2 = this._def).errorMap) === null || _b === void 0 ? void 0 : _b.call(_a2, issue, ctx).message) !== null && _c !== void 0 ? _c : ctx.defaultError;
|
|
3445
3454
|
if (issue.code === "unrecognized_keys")
|
|
3446
3455
|
return {
|
|
3447
|
-
message: errorUtil.errToObj(message).message
|
|
3456
|
+
message: (_d = errorUtil.errToObj(message).message) !== null && _d !== void 0 ? _d : defaultError
|
|
3448
3457
|
};
|
|
3449
3458
|
return {
|
|
3450
3459
|
message: defaultError
|
|
@@ -3575,11 +3584,11 @@ class ZodObject extends ZodType {
|
|
|
3575
3584
|
}
|
|
3576
3585
|
pick(mask) {
|
|
3577
3586
|
const shape = {};
|
|
3578
|
-
|
|
3587
|
+
util$1.objectKeys(mask).forEach((key) => {
|
|
3579
3588
|
if (mask[key] && this.shape[key]) {
|
|
3580
3589
|
shape[key] = this.shape[key];
|
|
3581
3590
|
}
|
|
3582
|
-
}
|
|
3591
|
+
});
|
|
3583
3592
|
return new ZodObject({
|
|
3584
3593
|
...this._def,
|
|
3585
3594
|
shape: () => shape
|
|
@@ -3587,11 +3596,11 @@ class ZodObject extends ZodType {
|
|
|
3587
3596
|
}
|
|
3588
3597
|
omit(mask) {
|
|
3589
3598
|
const shape = {};
|
|
3590
|
-
|
|
3599
|
+
util$1.objectKeys(this.shape).forEach((key) => {
|
|
3591
3600
|
if (!mask[key]) {
|
|
3592
3601
|
shape[key] = this.shape[key];
|
|
3593
3602
|
}
|
|
3594
|
-
}
|
|
3603
|
+
});
|
|
3595
3604
|
return new ZodObject({
|
|
3596
3605
|
...this._def,
|
|
3597
3606
|
shape: () => shape
|
|
@@ -3605,14 +3614,14 @@ class ZodObject extends ZodType {
|
|
|
3605
3614
|
}
|
|
3606
3615
|
partial(mask) {
|
|
3607
3616
|
const newShape = {};
|
|
3608
|
-
|
|
3617
|
+
util$1.objectKeys(this.shape).forEach((key) => {
|
|
3609
3618
|
const fieldSchema = this.shape[key];
|
|
3610
3619
|
if (mask && !mask[key]) {
|
|
3611
3620
|
newShape[key] = fieldSchema;
|
|
3612
3621
|
} else {
|
|
3613
3622
|
newShape[key] = fieldSchema.optional();
|
|
3614
3623
|
}
|
|
3615
|
-
}
|
|
3624
|
+
});
|
|
3616
3625
|
return new ZodObject({
|
|
3617
3626
|
...this._def,
|
|
3618
3627
|
shape: () => newShape
|
|
@@ -3620,7 +3629,7 @@ class ZodObject extends ZodType {
|
|
|
3620
3629
|
}
|
|
3621
3630
|
required(mask) {
|
|
3622
3631
|
const newShape = {};
|
|
3623
|
-
|
|
3632
|
+
util$1.objectKeys(this.shape).forEach((key) => {
|
|
3624
3633
|
if (mask && !mask[key]) {
|
|
3625
3634
|
newShape[key] = this.shape[key];
|
|
3626
3635
|
} else {
|
|
@@ -3631,7 +3640,7 @@ class ZodObject extends ZodType {
|
|
|
3631
3640
|
}
|
|
3632
3641
|
newShape[key] = newField;
|
|
3633
3642
|
}
|
|
3634
|
-
}
|
|
3643
|
+
});
|
|
3635
3644
|
return new ZodObject({
|
|
3636
3645
|
...this._def,
|
|
3637
3646
|
shape: () => newShape
|
|
@@ -3759,6 +3768,113 @@ ZodUnion.create = (types2, params) => {
|
|
|
3759
3768
|
...processCreateParams(params)
|
|
3760
3769
|
});
|
|
3761
3770
|
};
|
|
3771
|
+
const getDiscriminator = (type2) => {
|
|
3772
|
+
if (type2 instanceof ZodLazy) {
|
|
3773
|
+
return getDiscriminator(type2.schema);
|
|
3774
|
+
} else if (type2 instanceof ZodEffects) {
|
|
3775
|
+
return getDiscriminator(type2.innerType());
|
|
3776
|
+
} else if (type2 instanceof ZodLiteral) {
|
|
3777
|
+
return [type2.value];
|
|
3778
|
+
} else if (type2 instanceof ZodEnum) {
|
|
3779
|
+
return type2.options;
|
|
3780
|
+
} else if (type2 instanceof ZodNativeEnum) {
|
|
3781
|
+
return util$1.objectValues(type2.enum);
|
|
3782
|
+
} else if (type2 instanceof ZodDefault) {
|
|
3783
|
+
return getDiscriminator(type2._def.innerType);
|
|
3784
|
+
} else if (type2 instanceof ZodUndefined) {
|
|
3785
|
+
return [void 0];
|
|
3786
|
+
} else if (type2 instanceof ZodNull) {
|
|
3787
|
+
return [null];
|
|
3788
|
+
} else if (type2 instanceof ZodOptional) {
|
|
3789
|
+
return [void 0, ...getDiscriminator(type2.unwrap())];
|
|
3790
|
+
} else if (type2 instanceof ZodNullable) {
|
|
3791
|
+
return [null, ...getDiscriminator(type2.unwrap())];
|
|
3792
|
+
} else if (type2 instanceof ZodBranded) {
|
|
3793
|
+
return getDiscriminator(type2.unwrap());
|
|
3794
|
+
} else if (type2 instanceof ZodReadonly) {
|
|
3795
|
+
return getDiscriminator(type2.unwrap());
|
|
3796
|
+
} else if (type2 instanceof ZodCatch) {
|
|
3797
|
+
return getDiscriminator(type2._def.innerType);
|
|
3798
|
+
} else {
|
|
3799
|
+
return [];
|
|
3800
|
+
}
|
|
3801
|
+
};
|
|
3802
|
+
class ZodDiscriminatedUnion extends ZodType {
|
|
3803
|
+
_parse(input) {
|
|
3804
|
+
const { ctx } = this._processInputParams(input);
|
|
3805
|
+
if (ctx.parsedType !== ZodParsedType.object) {
|
|
3806
|
+
addIssueToContext(ctx, {
|
|
3807
|
+
code: ZodIssueCode.invalid_type,
|
|
3808
|
+
expected: ZodParsedType.object,
|
|
3809
|
+
received: ctx.parsedType
|
|
3810
|
+
});
|
|
3811
|
+
return INVALID;
|
|
3812
|
+
}
|
|
3813
|
+
const discriminator = this.discriminator;
|
|
3814
|
+
const discriminatorValue = ctx.data[discriminator];
|
|
3815
|
+
const option = this.optionsMap.get(discriminatorValue);
|
|
3816
|
+
if (!option) {
|
|
3817
|
+
addIssueToContext(ctx, {
|
|
3818
|
+
code: ZodIssueCode.invalid_union_discriminator,
|
|
3819
|
+
options: Array.from(this.optionsMap.keys()),
|
|
3820
|
+
path: [discriminator]
|
|
3821
|
+
});
|
|
3822
|
+
return INVALID;
|
|
3823
|
+
}
|
|
3824
|
+
if (ctx.common.async) {
|
|
3825
|
+
return option._parseAsync({
|
|
3826
|
+
data: ctx.data,
|
|
3827
|
+
path: ctx.path,
|
|
3828
|
+
parent: ctx
|
|
3829
|
+
});
|
|
3830
|
+
} else {
|
|
3831
|
+
return option._parseSync({
|
|
3832
|
+
data: ctx.data,
|
|
3833
|
+
path: ctx.path,
|
|
3834
|
+
parent: ctx
|
|
3835
|
+
});
|
|
3836
|
+
}
|
|
3837
|
+
}
|
|
3838
|
+
get discriminator() {
|
|
3839
|
+
return this._def.discriminator;
|
|
3840
|
+
}
|
|
3841
|
+
get options() {
|
|
3842
|
+
return this._def.options;
|
|
3843
|
+
}
|
|
3844
|
+
get optionsMap() {
|
|
3845
|
+
return this._def.optionsMap;
|
|
3846
|
+
}
|
|
3847
|
+
/**
|
|
3848
|
+
* The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor.
|
|
3849
|
+
* However, it only allows a union of objects, all of which need to share a discriminator property. This property must
|
|
3850
|
+
* have a different value for each object in the union.
|
|
3851
|
+
* @param discriminator the name of the discriminator property
|
|
3852
|
+
* @param types an array of object schemas
|
|
3853
|
+
* @param params
|
|
3854
|
+
*/
|
|
3855
|
+
static create(discriminator, options, params) {
|
|
3856
|
+
const optionsMap = /* @__PURE__ */ new Map();
|
|
3857
|
+
for (const type2 of options) {
|
|
3858
|
+
const discriminatorValues = getDiscriminator(type2.shape[discriminator]);
|
|
3859
|
+
if (!discriminatorValues.length) {
|
|
3860
|
+
throw new Error(`A discriminator value for key \`${discriminator}\` could not be extracted from all schema options`);
|
|
3861
|
+
}
|
|
3862
|
+
for (const value of discriminatorValues) {
|
|
3863
|
+
if (optionsMap.has(value)) {
|
|
3864
|
+
throw new Error(`Discriminator property ${String(discriminator)} has duplicate value ${String(value)}`);
|
|
3865
|
+
}
|
|
3866
|
+
optionsMap.set(value, type2);
|
|
3867
|
+
}
|
|
3868
|
+
}
|
|
3869
|
+
return new ZodDiscriminatedUnion({
|
|
3870
|
+
typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion,
|
|
3871
|
+
discriminator,
|
|
3872
|
+
options,
|
|
3873
|
+
optionsMap,
|
|
3874
|
+
...processCreateParams(params)
|
|
3875
|
+
});
|
|
3876
|
+
}
|
|
3877
|
+
}
|
|
3762
3878
|
function mergeValues(a, b) {
|
|
3763
3879
|
const aType = getParsedType(a);
|
|
3764
3880
|
const bType = getParsedType(b);
|
|
@@ -4121,6 +4237,121 @@ ZodSet.create = (valueType, params) => {
|
|
|
4121
4237
|
...processCreateParams(params)
|
|
4122
4238
|
});
|
|
4123
4239
|
};
|
|
4240
|
+
class ZodFunction extends ZodType {
|
|
4241
|
+
constructor() {
|
|
4242
|
+
super(...arguments);
|
|
4243
|
+
this.validate = this.implement;
|
|
4244
|
+
}
|
|
4245
|
+
_parse(input) {
|
|
4246
|
+
const { ctx } = this._processInputParams(input);
|
|
4247
|
+
if (ctx.parsedType !== ZodParsedType.function) {
|
|
4248
|
+
addIssueToContext(ctx, {
|
|
4249
|
+
code: ZodIssueCode.invalid_type,
|
|
4250
|
+
expected: ZodParsedType.function,
|
|
4251
|
+
received: ctx.parsedType
|
|
4252
|
+
});
|
|
4253
|
+
return INVALID;
|
|
4254
|
+
}
|
|
4255
|
+
function makeArgsIssue(args, error) {
|
|
4256
|
+
return makeIssue({
|
|
4257
|
+
data: args,
|
|
4258
|
+
path: ctx.path,
|
|
4259
|
+
errorMaps: [
|
|
4260
|
+
ctx.common.contextualErrorMap,
|
|
4261
|
+
ctx.schemaErrorMap,
|
|
4262
|
+
getErrorMap(),
|
|
4263
|
+
errorMap
|
|
4264
|
+
].filter((x) => !!x),
|
|
4265
|
+
issueData: {
|
|
4266
|
+
code: ZodIssueCode.invalid_arguments,
|
|
4267
|
+
argumentsError: error
|
|
4268
|
+
}
|
|
4269
|
+
});
|
|
4270
|
+
}
|
|
4271
|
+
function makeReturnsIssue(returns, error) {
|
|
4272
|
+
return makeIssue({
|
|
4273
|
+
data: returns,
|
|
4274
|
+
path: ctx.path,
|
|
4275
|
+
errorMaps: [
|
|
4276
|
+
ctx.common.contextualErrorMap,
|
|
4277
|
+
ctx.schemaErrorMap,
|
|
4278
|
+
getErrorMap(),
|
|
4279
|
+
errorMap
|
|
4280
|
+
].filter((x) => !!x),
|
|
4281
|
+
issueData: {
|
|
4282
|
+
code: ZodIssueCode.invalid_return_type,
|
|
4283
|
+
returnTypeError: error
|
|
4284
|
+
}
|
|
4285
|
+
});
|
|
4286
|
+
}
|
|
4287
|
+
const params = { errorMap: ctx.common.contextualErrorMap };
|
|
4288
|
+
const fn = ctx.data;
|
|
4289
|
+
if (this._def.returns instanceof ZodPromise) {
|
|
4290
|
+
const me = this;
|
|
4291
|
+
return OK(async function(...args) {
|
|
4292
|
+
const error = new ZodError([]);
|
|
4293
|
+
const parsedArgs = await me._def.args.parseAsync(args, params).catch((e) => {
|
|
4294
|
+
error.addIssue(makeArgsIssue(args, e));
|
|
4295
|
+
throw error;
|
|
4296
|
+
});
|
|
4297
|
+
const result = await Reflect.apply(fn, this, parsedArgs);
|
|
4298
|
+
const parsedReturns = await me._def.returns._def.type.parseAsync(result, params).catch((e) => {
|
|
4299
|
+
error.addIssue(makeReturnsIssue(result, e));
|
|
4300
|
+
throw error;
|
|
4301
|
+
});
|
|
4302
|
+
return parsedReturns;
|
|
4303
|
+
});
|
|
4304
|
+
} else {
|
|
4305
|
+
const me = this;
|
|
4306
|
+
return OK(function(...args) {
|
|
4307
|
+
const parsedArgs = me._def.args.safeParse(args, params);
|
|
4308
|
+
if (!parsedArgs.success) {
|
|
4309
|
+
throw new ZodError([makeArgsIssue(args, parsedArgs.error)]);
|
|
4310
|
+
}
|
|
4311
|
+
const result = Reflect.apply(fn, this, parsedArgs.data);
|
|
4312
|
+
const parsedReturns = me._def.returns.safeParse(result, params);
|
|
4313
|
+
if (!parsedReturns.success) {
|
|
4314
|
+
throw new ZodError([makeReturnsIssue(result, parsedReturns.error)]);
|
|
4315
|
+
}
|
|
4316
|
+
return parsedReturns.data;
|
|
4317
|
+
});
|
|
4318
|
+
}
|
|
4319
|
+
}
|
|
4320
|
+
parameters() {
|
|
4321
|
+
return this._def.args;
|
|
4322
|
+
}
|
|
4323
|
+
returnType() {
|
|
4324
|
+
return this._def.returns;
|
|
4325
|
+
}
|
|
4326
|
+
args(...items) {
|
|
4327
|
+
return new ZodFunction({
|
|
4328
|
+
...this._def,
|
|
4329
|
+
args: ZodTuple.create(items).rest(ZodUnknown.create())
|
|
4330
|
+
});
|
|
4331
|
+
}
|
|
4332
|
+
returns(returnType) {
|
|
4333
|
+
return new ZodFunction({
|
|
4334
|
+
...this._def,
|
|
4335
|
+
returns: returnType
|
|
4336
|
+
});
|
|
4337
|
+
}
|
|
4338
|
+
implement(func) {
|
|
4339
|
+
const validatedFunc = this.parse(func);
|
|
4340
|
+
return validatedFunc;
|
|
4341
|
+
}
|
|
4342
|
+
strictImplement(func) {
|
|
4343
|
+
const validatedFunc = this.parse(func);
|
|
4344
|
+
return validatedFunc;
|
|
4345
|
+
}
|
|
4346
|
+
static create(args, returns, params) {
|
|
4347
|
+
return new ZodFunction({
|
|
4348
|
+
args: args ? args : ZodTuple.create([]).rest(ZodUnknown.create()),
|
|
4349
|
+
returns: returns || ZodUnknown.create(),
|
|
4350
|
+
typeName: ZodFirstPartyTypeKind.ZodFunction,
|
|
4351
|
+
...processCreateParams(params)
|
|
4352
|
+
});
|
|
4353
|
+
}
|
|
4354
|
+
}
|
|
4124
4355
|
class ZodLazy extends ZodType {
|
|
4125
4356
|
get schema() {
|
|
4126
4357
|
return this._def.getter();
|
|
@@ -4185,10 +4416,10 @@ class ZodEnum extends ZodType {
|
|
|
4185
4416
|
});
|
|
4186
4417
|
return INVALID;
|
|
4187
4418
|
}
|
|
4188
|
-
if (!__classPrivateFieldGet$1(this, _ZodEnum_cache
|
|
4189
|
-
__classPrivateFieldSet(this, _ZodEnum_cache, new Set(this._def.values)
|
|
4419
|
+
if (!__classPrivateFieldGet$1(this, _ZodEnum_cache)) {
|
|
4420
|
+
__classPrivateFieldSet(this, _ZodEnum_cache, new Set(this._def.values));
|
|
4190
4421
|
}
|
|
4191
|
-
if (!__classPrivateFieldGet$1(this, _ZodEnum_cache
|
|
4422
|
+
if (!__classPrivateFieldGet$1(this, _ZodEnum_cache).has(input.data)) {
|
|
4192
4423
|
const ctx = this._getOrReturnCtx(input);
|
|
4193
4424
|
const expectedValues = this._def.values;
|
|
4194
4425
|
addIssueToContext(ctx, {
|
|
@@ -4256,10 +4487,10 @@ class ZodNativeEnum extends ZodType {
|
|
|
4256
4487
|
});
|
|
4257
4488
|
return INVALID;
|
|
4258
4489
|
}
|
|
4259
|
-
if (!__classPrivateFieldGet$1(this, _ZodNativeEnum_cache
|
|
4260
|
-
__classPrivateFieldSet(this, _ZodNativeEnum_cache, new Set(util$1.getValidEnumValues(this._def.values))
|
|
4490
|
+
if (!__classPrivateFieldGet$1(this, _ZodNativeEnum_cache)) {
|
|
4491
|
+
__classPrivateFieldSet(this, _ZodNativeEnum_cache, new Set(util$1.getValidEnumValues(this._def.values)));
|
|
4261
4492
|
}
|
|
4262
|
-
if (!__classPrivateFieldGet$1(this, _ZodNativeEnum_cache
|
|
4493
|
+
if (!__classPrivateFieldGet$1(this, _ZodNativeEnum_cache).has(input.data)) {
|
|
4263
4494
|
const expectedValues = util$1.objectValues(nativeEnumValues);
|
|
4264
4495
|
addIssueToContext(ctx, {
|
|
4265
4496
|
received: ctx.data,
|
|
@@ -4425,10 +4656,7 @@ class ZodEffects extends ZodType {
|
|
|
4425
4656
|
return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {
|
|
4426
4657
|
if (!isValid(base))
|
|
4427
4658
|
return base;
|
|
4428
|
-
return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
|
|
4429
|
-
status: status.value,
|
|
4430
|
-
value: result
|
|
4431
|
-
}));
|
|
4659
|
+
return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({ status: status.value, value: result }));
|
|
4432
4660
|
});
|
|
4433
4661
|
}
|
|
4434
4662
|
}
|
|
@@ -4588,6 +4816,7 @@ ZodNaN.create = (params) => {
|
|
|
4588
4816
|
...processCreateParams(params)
|
|
4589
4817
|
});
|
|
4590
4818
|
};
|
|
4819
|
+
const BRAND = Symbol("zod_brand");
|
|
4591
4820
|
class ZodBranded extends ZodType {
|
|
4592
4821
|
_parse(input) {
|
|
4593
4822
|
const { ctx } = this._processInputParams(input);
|
|
@@ -4679,6 +4908,38 @@ ZodReadonly.create = (type2, params) => {
|
|
|
4679
4908
|
...processCreateParams(params)
|
|
4680
4909
|
});
|
|
4681
4910
|
};
|
|
4911
|
+
function cleanParams(params, data) {
|
|
4912
|
+
const p = typeof params === "function" ? params(data) : typeof params === "string" ? { message: params } : params;
|
|
4913
|
+
const p2 = typeof p === "string" ? { message: p } : p;
|
|
4914
|
+
return p2;
|
|
4915
|
+
}
|
|
4916
|
+
function custom(check, _params = {}, fatal) {
|
|
4917
|
+
if (check)
|
|
4918
|
+
return ZodAny.create().superRefine((data, ctx) => {
|
|
4919
|
+
var _a2, _b;
|
|
4920
|
+
const r = check(data);
|
|
4921
|
+
if (r instanceof Promise) {
|
|
4922
|
+
return r.then((r2) => {
|
|
4923
|
+
var _a3, _b2;
|
|
4924
|
+
if (!r2) {
|
|
4925
|
+
const params = cleanParams(_params, data);
|
|
4926
|
+
const _fatal = (_b2 = (_a3 = params.fatal) !== null && _a3 !== void 0 ? _a3 : fatal) !== null && _b2 !== void 0 ? _b2 : true;
|
|
4927
|
+
ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
|
|
4928
|
+
}
|
|
4929
|
+
});
|
|
4930
|
+
}
|
|
4931
|
+
if (!r) {
|
|
4932
|
+
const params = cleanParams(_params, data);
|
|
4933
|
+
const _fatal = (_b = (_a2 = params.fatal) !== null && _a2 !== void 0 ? _a2 : fatal) !== null && _b !== void 0 ? _b : true;
|
|
4934
|
+
ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
|
|
4935
|
+
}
|
|
4936
|
+
return;
|
|
4937
|
+
});
|
|
4938
|
+
return ZodAny.create();
|
|
4939
|
+
}
|
|
4940
|
+
const late = {
|
|
4941
|
+
object: ZodObject.lazycreate
|
|
4942
|
+
};
|
|
4682
4943
|
var ZodFirstPartyTypeKind;
|
|
4683
4944
|
(function(ZodFirstPartyTypeKind2) {
|
|
4684
4945
|
ZodFirstPartyTypeKind2["ZodString"] = "ZodString";
|
|
@@ -4718,25 +4979,173 @@ var ZodFirstPartyTypeKind;
|
|
|
4718
4979
|
ZodFirstPartyTypeKind2["ZodPipeline"] = "ZodPipeline";
|
|
4719
4980
|
ZodFirstPartyTypeKind2["ZodReadonly"] = "ZodReadonly";
|
|
4720
4981
|
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
4982
|
+
const instanceOfType = (cls, params = {
|
|
4983
|
+
message: `Input not instance of ${cls.name}`
|
|
4984
|
+
}) => custom((data) => data instanceof cls, params);
|
|
4721
4985
|
const stringType = ZodString.create;
|
|
4722
4986
|
const numberType = ZodNumber.create;
|
|
4987
|
+
const nanType = ZodNaN.create;
|
|
4988
|
+
const bigIntType = ZodBigInt.create;
|
|
4723
4989
|
const booleanType = ZodBoolean.create;
|
|
4990
|
+
const dateType = ZodDate.create;
|
|
4991
|
+
const symbolType = ZodSymbol.create;
|
|
4992
|
+
const undefinedType = ZodUndefined.create;
|
|
4724
4993
|
const nullType = ZodNull.create;
|
|
4725
4994
|
const anyType = ZodAny.create;
|
|
4726
4995
|
const unknownType = ZodUnknown.create;
|
|
4727
|
-
ZodNever.create;
|
|
4996
|
+
const neverType = ZodNever.create;
|
|
4997
|
+
const voidType = ZodVoid.create;
|
|
4728
4998
|
const arrayType = ZodArray.create;
|
|
4729
4999
|
const objectType = ZodObject.create;
|
|
5000
|
+
const strictObjectType = ZodObject.strictCreate;
|
|
4730
5001
|
const unionType = ZodUnion.create;
|
|
4731
|
-
|
|
4732
|
-
|
|
5002
|
+
const discriminatedUnionType = ZodDiscriminatedUnion.create;
|
|
5003
|
+
const intersectionType = ZodIntersection.create;
|
|
5004
|
+
const tupleType = ZodTuple.create;
|
|
4733
5005
|
const recordType = ZodRecord.create;
|
|
5006
|
+
const mapType = ZodMap.create;
|
|
5007
|
+
const setType = ZodSet.create;
|
|
5008
|
+
const functionType = ZodFunction.create;
|
|
4734
5009
|
const lazyType = ZodLazy.create;
|
|
4735
5010
|
const literalType = ZodLiteral.create;
|
|
4736
5011
|
const enumType = ZodEnum.create;
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
5012
|
+
const nativeEnumType = ZodNativeEnum.create;
|
|
5013
|
+
const promiseType = ZodPromise.create;
|
|
5014
|
+
const effectsType = ZodEffects.create;
|
|
5015
|
+
const optionalType = ZodOptional.create;
|
|
5016
|
+
const nullableType = ZodNullable.create;
|
|
5017
|
+
const preprocessType = ZodEffects.createWithPreprocess;
|
|
5018
|
+
const pipelineType = ZodPipeline.create;
|
|
5019
|
+
const ostring = () => stringType().optional();
|
|
5020
|
+
const onumber = () => numberType().optional();
|
|
5021
|
+
const oboolean = () => booleanType().optional();
|
|
5022
|
+
const coerce = {
|
|
5023
|
+
string: (arg) => ZodString.create({ ...arg, coerce: true }),
|
|
5024
|
+
number: (arg) => ZodNumber.create({ ...arg, coerce: true }),
|
|
5025
|
+
boolean: (arg) => ZodBoolean.create({
|
|
5026
|
+
...arg,
|
|
5027
|
+
coerce: true
|
|
5028
|
+
}),
|
|
5029
|
+
bigint: (arg) => ZodBigInt.create({ ...arg, coerce: true }),
|
|
5030
|
+
date: (arg) => ZodDate.create({ ...arg, coerce: true })
|
|
5031
|
+
};
|
|
5032
|
+
const NEVER = INVALID;
|
|
5033
|
+
var z = /* @__PURE__ */ Object.freeze({
|
|
5034
|
+
__proto__: null,
|
|
5035
|
+
defaultErrorMap: errorMap,
|
|
5036
|
+
setErrorMap,
|
|
5037
|
+
getErrorMap,
|
|
5038
|
+
makeIssue,
|
|
5039
|
+
EMPTY_PATH,
|
|
5040
|
+
addIssueToContext,
|
|
5041
|
+
ParseStatus,
|
|
5042
|
+
INVALID,
|
|
5043
|
+
DIRTY,
|
|
5044
|
+
OK,
|
|
5045
|
+
isAborted,
|
|
5046
|
+
isDirty,
|
|
5047
|
+
isValid,
|
|
5048
|
+
isAsync,
|
|
5049
|
+
get util() {
|
|
5050
|
+
return util$1;
|
|
5051
|
+
},
|
|
5052
|
+
get objectUtil() {
|
|
5053
|
+
return objectUtil;
|
|
5054
|
+
},
|
|
5055
|
+
ZodParsedType,
|
|
5056
|
+
getParsedType,
|
|
5057
|
+
ZodType,
|
|
5058
|
+
datetimeRegex,
|
|
5059
|
+
ZodString,
|
|
5060
|
+
ZodNumber,
|
|
5061
|
+
ZodBigInt,
|
|
5062
|
+
ZodBoolean,
|
|
5063
|
+
ZodDate,
|
|
5064
|
+
ZodSymbol,
|
|
5065
|
+
ZodUndefined,
|
|
5066
|
+
ZodNull,
|
|
5067
|
+
ZodAny,
|
|
5068
|
+
ZodUnknown,
|
|
5069
|
+
ZodNever,
|
|
5070
|
+
ZodVoid,
|
|
5071
|
+
ZodArray,
|
|
5072
|
+
ZodObject,
|
|
5073
|
+
ZodUnion,
|
|
5074
|
+
ZodDiscriminatedUnion,
|
|
5075
|
+
ZodIntersection,
|
|
5076
|
+
ZodTuple,
|
|
5077
|
+
ZodRecord,
|
|
5078
|
+
ZodMap,
|
|
5079
|
+
ZodSet,
|
|
5080
|
+
ZodFunction,
|
|
5081
|
+
ZodLazy,
|
|
5082
|
+
ZodLiteral,
|
|
5083
|
+
ZodEnum,
|
|
5084
|
+
ZodNativeEnum,
|
|
5085
|
+
ZodPromise,
|
|
5086
|
+
ZodEffects,
|
|
5087
|
+
ZodTransformer: ZodEffects,
|
|
5088
|
+
ZodOptional,
|
|
5089
|
+
ZodNullable,
|
|
5090
|
+
ZodDefault,
|
|
5091
|
+
ZodCatch,
|
|
5092
|
+
ZodNaN,
|
|
5093
|
+
BRAND,
|
|
5094
|
+
ZodBranded,
|
|
5095
|
+
ZodPipeline,
|
|
5096
|
+
ZodReadonly,
|
|
5097
|
+
custom,
|
|
5098
|
+
Schema: ZodType,
|
|
5099
|
+
ZodSchema: ZodType,
|
|
5100
|
+
late,
|
|
5101
|
+
get ZodFirstPartyTypeKind() {
|
|
5102
|
+
return ZodFirstPartyTypeKind;
|
|
5103
|
+
},
|
|
5104
|
+
coerce,
|
|
5105
|
+
any: anyType,
|
|
5106
|
+
array: arrayType,
|
|
5107
|
+
bigint: bigIntType,
|
|
5108
|
+
boolean: booleanType,
|
|
5109
|
+
date: dateType,
|
|
5110
|
+
discriminatedUnion: discriminatedUnionType,
|
|
5111
|
+
effect: effectsType,
|
|
5112
|
+
"enum": enumType,
|
|
5113
|
+
"function": functionType,
|
|
5114
|
+
"instanceof": instanceOfType,
|
|
5115
|
+
intersection: intersectionType,
|
|
5116
|
+
lazy: lazyType,
|
|
5117
|
+
literal: literalType,
|
|
5118
|
+
map: mapType,
|
|
5119
|
+
nan: nanType,
|
|
5120
|
+
nativeEnum: nativeEnumType,
|
|
5121
|
+
never: neverType,
|
|
5122
|
+
"null": nullType,
|
|
5123
|
+
nullable: nullableType,
|
|
5124
|
+
number: numberType,
|
|
5125
|
+
object: objectType,
|
|
5126
|
+
oboolean,
|
|
5127
|
+
onumber,
|
|
5128
|
+
optional: optionalType,
|
|
5129
|
+
ostring,
|
|
5130
|
+
pipeline: pipelineType,
|
|
5131
|
+
preprocess: preprocessType,
|
|
5132
|
+
promise: promiseType,
|
|
5133
|
+
record: recordType,
|
|
5134
|
+
set: setType,
|
|
5135
|
+
strictObject: strictObjectType,
|
|
5136
|
+
string: stringType,
|
|
5137
|
+
symbol: symbolType,
|
|
5138
|
+
transformer: effectsType,
|
|
5139
|
+
tuple: tupleType,
|
|
5140
|
+
"undefined": undefinedType,
|
|
5141
|
+
union: unionType,
|
|
5142
|
+
unknown: unknownType,
|
|
5143
|
+
"void": voidType,
|
|
5144
|
+
NEVER,
|
|
5145
|
+
ZodIssueCode,
|
|
5146
|
+
quotelessJson,
|
|
5147
|
+
ZodError
|
|
5148
|
+
});
|
|
4740
5149
|
const SET_NAME = "SET_NAME";
|
|
4741
5150
|
const UNDO = "UNDO";
|
|
4742
5151
|
const REDO = "REDO";
|
|
@@ -6221,17 +6630,17 @@ function diffOperations(clearedOperationsA, clearedOperationsB) {
|
|
|
6221
6630
|
return clearedOperationsA.filter((operationA) => !clearedOperationsB.some((operationB) => operationA.index === operationB.index));
|
|
6222
6631
|
}
|
|
6223
6632
|
const isDefinedNonNullAny$2 = (v) => v !== void 0 && v !== null;
|
|
6224
|
-
|
|
6225
|
-
const Load_StateSchema =
|
|
6226
|
-
const PruneSchema =
|
|
6227
|
-
const RedoSchema =
|
|
6228
|
-
const Set_NameSchema =
|
|
6229
|
-
const UndoSchema =
|
|
6633
|
+
z.any().refine((v) => isDefinedNonNullAny$2(v));
|
|
6634
|
+
const Load_StateSchema = z.enum(["LOAD_STATE"]);
|
|
6635
|
+
const PruneSchema = z.enum(["PRUNE"]);
|
|
6636
|
+
const RedoSchema = z.enum(["REDO"]);
|
|
6637
|
+
const Set_NameSchema = z.enum(["SET_NAME"]);
|
|
6638
|
+
const UndoSchema = z.enum(["UNDO"]);
|
|
6230
6639
|
function OperationScopeSchema$1() {
|
|
6231
|
-
return
|
|
6640
|
+
return z.literal("global").or(z.literal("local"));
|
|
6232
6641
|
}
|
|
6233
6642
|
function DocumentActionSchema() {
|
|
6234
|
-
return
|
|
6643
|
+
return z.union([
|
|
6235
6644
|
LoadStateActionSchema(),
|
|
6236
6645
|
PruneActionSchema(),
|
|
6237
6646
|
RedoActionSchema(),
|
|
@@ -6240,56 +6649,56 @@ function DocumentActionSchema() {
|
|
|
6240
6649
|
]);
|
|
6241
6650
|
}
|
|
6242
6651
|
function LoadStateActionSchema() {
|
|
6243
|
-
return
|
|
6244
|
-
input:
|
|
6652
|
+
return z.object({
|
|
6653
|
+
input: z.lazy(() => LoadStateActionInputSchema()),
|
|
6245
6654
|
type: Load_StateSchema,
|
|
6246
6655
|
scope: OperationScopeSchema$1()
|
|
6247
6656
|
});
|
|
6248
6657
|
}
|
|
6249
6658
|
function LoadStateActionInputSchema() {
|
|
6250
|
-
return
|
|
6251
|
-
operations:
|
|
6252
|
-
state:
|
|
6659
|
+
return z.object({
|
|
6660
|
+
operations: z.number(),
|
|
6661
|
+
state: z.lazy(() => LoadStateActionStateInputSchema())
|
|
6253
6662
|
});
|
|
6254
6663
|
}
|
|
6255
6664
|
function LoadStateActionStateInputSchema() {
|
|
6256
|
-
return
|
|
6257
|
-
data:
|
|
6258
|
-
name:
|
|
6665
|
+
return z.object({
|
|
6666
|
+
data: z.unknown().nullish(),
|
|
6667
|
+
name: z.string()
|
|
6259
6668
|
});
|
|
6260
6669
|
}
|
|
6261
6670
|
function PruneActionSchema() {
|
|
6262
|
-
return
|
|
6263
|
-
input:
|
|
6671
|
+
return z.object({
|
|
6672
|
+
input: z.lazy(() => PruneActionInputSchema()),
|
|
6264
6673
|
type: PruneSchema,
|
|
6265
6674
|
scope: OperationScopeSchema$1()
|
|
6266
6675
|
});
|
|
6267
6676
|
}
|
|
6268
6677
|
function PruneActionInputSchema() {
|
|
6269
|
-
return
|
|
6270
|
-
end:
|
|
6271
|
-
start:
|
|
6678
|
+
return z.object({
|
|
6679
|
+
end: z.number().nullish(),
|
|
6680
|
+
start: z.number().nullish()
|
|
6272
6681
|
});
|
|
6273
6682
|
}
|
|
6274
|
-
const RedoActionInputSchema =
|
|
6683
|
+
const RedoActionInputSchema = z.number;
|
|
6275
6684
|
function RedoActionSchema() {
|
|
6276
|
-
return
|
|
6685
|
+
return z.object({
|
|
6277
6686
|
input: RedoActionInputSchema(),
|
|
6278
6687
|
type: RedoSchema,
|
|
6279
6688
|
scope: OperationScopeSchema$1()
|
|
6280
6689
|
});
|
|
6281
6690
|
}
|
|
6282
|
-
const SetNameActionInputSchema =
|
|
6691
|
+
const SetNameActionInputSchema = z.string;
|
|
6283
6692
|
function SetNameActionSchema() {
|
|
6284
|
-
return
|
|
6693
|
+
return z.object({
|
|
6285
6694
|
input: SetNameActionInputSchema(),
|
|
6286
6695
|
type: Set_NameSchema,
|
|
6287
|
-
scope:
|
|
6696
|
+
scope: z.literal("global")
|
|
6288
6697
|
});
|
|
6289
6698
|
}
|
|
6290
|
-
const UndoActionInputSchema =
|
|
6699
|
+
const UndoActionInputSchema = z.number;
|
|
6291
6700
|
function UndoActionSchema() {
|
|
6292
|
-
return
|
|
6701
|
+
return z.object({
|
|
6293
6702
|
input: UndoActionInputSchema(),
|
|
6294
6703
|
type: UndoSchema,
|
|
6295
6704
|
scope: OperationScopeSchema$1()
|
|
@@ -6912,267 +7321,267 @@ function parseResultingState(state) {
|
|
|
6912
7321
|
}
|
|
6913
7322
|
}
|
|
6914
7323
|
const isDefinedNonNullAny$1 = (v) => v !== void 0 && v !== null;
|
|
6915
|
-
|
|
7324
|
+
z.any().refine((v) => isDefinedNonNullAny$1(v));
|
|
6916
7325
|
function AddChangeLogItemInputSchema() {
|
|
6917
|
-
return
|
|
6918
|
-
__typename:
|
|
6919
|
-
content:
|
|
6920
|
-
id:
|
|
6921
|
-
insertBefore:
|
|
7326
|
+
return z.object({
|
|
7327
|
+
__typename: z.literal("AddChangeLogItemInput").optional(),
|
|
7328
|
+
content: z.string(),
|
|
7329
|
+
id: z.string(),
|
|
7330
|
+
insertBefore: z.string().nullable()
|
|
6922
7331
|
});
|
|
6923
7332
|
}
|
|
6924
7333
|
function AddModuleInputSchema() {
|
|
6925
|
-
return
|
|
6926
|
-
description:
|
|
6927
|
-
id:
|
|
6928
|
-
name:
|
|
7334
|
+
return z.object({
|
|
7335
|
+
description: z.string().nullish(),
|
|
7336
|
+
id: z.string(),
|
|
7337
|
+
name: z.string()
|
|
6929
7338
|
});
|
|
6930
7339
|
}
|
|
6931
7340
|
function AddOperationErrorInputSchema() {
|
|
6932
|
-
return
|
|
6933
|
-
errorCode:
|
|
6934
|
-
errorDescription:
|
|
6935
|
-
errorName:
|
|
6936
|
-
errorTemplate:
|
|
6937
|
-
id:
|
|
6938
|
-
operationId:
|
|
7341
|
+
return z.object({
|
|
7342
|
+
errorCode: z.string().nullish(),
|
|
7343
|
+
errorDescription: z.string().nullish(),
|
|
7344
|
+
errorName: z.string().nullish(),
|
|
7345
|
+
errorTemplate: z.string().nullish(),
|
|
7346
|
+
id: z.string(),
|
|
7347
|
+
operationId: z.string()
|
|
6939
7348
|
});
|
|
6940
7349
|
}
|
|
6941
7350
|
function AddOperationExampleInputSchema() {
|
|
6942
|
-
return
|
|
6943
|
-
example:
|
|
6944
|
-
id:
|
|
6945
|
-
operationId:
|
|
7351
|
+
return z.object({
|
|
7352
|
+
example: z.string(),
|
|
7353
|
+
id: z.string(),
|
|
7354
|
+
operationId: z.string()
|
|
6946
7355
|
});
|
|
6947
7356
|
}
|
|
6948
7357
|
function AddOperationInputSchema() {
|
|
6949
|
-
return
|
|
6950
|
-
description:
|
|
6951
|
-
id:
|
|
6952
|
-
moduleId:
|
|
6953
|
-
name:
|
|
6954
|
-
reducer:
|
|
6955
|
-
schema:
|
|
6956
|
-
template:
|
|
7358
|
+
return z.object({
|
|
7359
|
+
description: z.string().nullish(),
|
|
7360
|
+
id: z.string(),
|
|
7361
|
+
moduleId: z.string(),
|
|
7362
|
+
name: z.string(),
|
|
7363
|
+
reducer: z.string().nullish(),
|
|
7364
|
+
schema: z.string().nullish(),
|
|
7365
|
+
template: z.string().nullish(),
|
|
6957
7366
|
scope: OperationScopeSchema().nullish()
|
|
6958
7367
|
});
|
|
6959
7368
|
}
|
|
6960
7369
|
function AddStateExampleInputSchema() {
|
|
6961
|
-
return
|
|
6962
|
-
scope:
|
|
6963
|
-
example:
|
|
6964
|
-
id:
|
|
6965
|
-
insertBefore:
|
|
7370
|
+
return z.object({
|
|
7371
|
+
scope: z.string(),
|
|
7372
|
+
example: z.string(),
|
|
7373
|
+
id: z.string(),
|
|
7374
|
+
insertBefore: z.string().nullish()
|
|
6966
7375
|
});
|
|
6967
7376
|
}
|
|
6968
7377
|
function DeleteChangeLogItemInputSchema() {
|
|
6969
|
-
return
|
|
6970
|
-
__typename:
|
|
6971
|
-
id:
|
|
7378
|
+
return z.object({
|
|
7379
|
+
__typename: z.literal("DeleteChangeLogItemInput").optional(),
|
|
7380
|
+
id: z.string()
|
|
6972
7381
|
});
|
|
6973
7382
|
}
|
|
6974
7383
|
function DeleteModuleInputSchema() {
|
|
6975
|
-
return
|
|
6976
|
-
id:
|
|
7384
|
+
return z.object({
|
|
7385
|
+
id: z.string()
|
|
6977
7386
|
});
|
|
6978
7387
|
}
|
|
6979
7388
|
function DeleteOperationErrorInputSchema() {
|
|
6980
|
-
return
|
|
6981
|
-
id:
|
|
7389
|
+
return z.object({
|
|
7390
|
+
id: z.string()
|
|
6982
7391
|
});
|
|
6983
7392
|
}
|
|
6984
7393
|
function DeleteOperationExampleInputSchema() {
|
|
6985
|
-
return
|
|
6986
|
-
id:
|
|
7394
|
+
return z.object({
|
|
7395
|
+
id: z.string()
|
|
6987
7396
|
});
|
|
6988
7397
|
}
|
|
6989
7398
|
function DeleteOperationInputSchema() {
|
|
6990
|
-
return
|
|
6991
|
-
id:
|
|
7399
|
+
return z.object({
|
|
7400
|
+
id: z.string()
|
|
6992
7401
|
});
|
|
6993
7402
|
}
|
|
6994
7403
|
function DeleteStateExampleInputSchema() {
|
|
6995
|
-
return
|
|
6996
|
-
scope:
|
|
6997
|
-
id:
|
|
7404
|
+
return z.object({
|
|
7405
|
+
scope: z.string(),
|
|
7406
|
+
id: z.string()
|
|
6998
7407
|
});
|
|
6999
7408
|
}
|
|
7000
7409
|
function OperationScopeSchema() {
|
|
7001
|
-
return
|
|
7410
|
+
return z.literal("global").or(z.literal("local"));
|
|
7002
7411
|
}
|
|
7003
7412
|
function MoveOperationInputSchema() {
|
|
7004
|
-
return
|
|
7005
|
-
newModuleId:
|
|
7006
|
-
operationId:
|
|
7413
|
+
return z.object({
|
|
7414
|
+
newModuleId: z.string(),
|
|
7415
|
+
operationId: z.string()
|
|
7007
7416
|
});
|
|
7008
7417
|
}
|
|
7009
7418
|
function ReorderChangeLogItemsInputSchema() {
|
|
7010
|
-
return
|
|
7011
|
-
__typename:
|
|
7012
|
-
order:
|
|
7419
|
+
return z.object({
|
|
7420
|
+
__typename: z.literal("ReorderChangeLogItemsInput").optional(),
|
|
7421
|
+
order: z.array(z.string())
|
|
7013
7422
|
});
|
|
7014
7423
|
}
|
|
7015
7424
|
function ReorderModuleOperationsInputSchema() {
|
|
7016
|
-
return
|
|
7017
|
-
moduleId:
|
|
7018
|
-
order:
|
|
7425
|
+
return z.object({
|
|
7426
|
+
moduleId: z.string(),
|
|
7427
|
+
order: z.array(z.string())
|
|
7019
7428
|
});
|
|
7020
7429
|
}
|
|
7021
7430
|
function ReorderModulesInputSchema() {
|
|
7022
|
-
return
|
|
7023
|
-
order:
|
|
7431
|
+
return z.object({
|
|
7432
|
+
order: z.array(z.string())
|
|
7024
7433
|
});
|
|
7025
7434
|
}
|
|
7026
7435
|
function ReorderOperationErrorsInputSchema() {
|
|
7027
|
-
return
|
|
7028
|
-
operationId:
|
|
7029
|
-
order:
|
|
7436
|
+
return z.object({
|
|
7437
|
+
operationId: z.string(),
|
|
7438
|
+
order: z.array(z.string())
|
|
7030
7439
|
});
|
|
7031
7440
|
}
|
|
7032
7441
|
function ReorderOperationExamplesInputSchema() {
|
|
7033
|
-
return
|
|
7034
|
-
operationId:
|
|
7035
|
-
order:
|
|
7442
|
+
return z.object({
|
|
7443
|
+
operationId: z.string(),
|
|
7444
|
+
order: z.array(z.string())
|
|
7036
7445
|
});
|
|
7037
7446
|
}
|
|
7038
7447
|
function ReorderStateExamplesInputSchema() {
|
|
7039
|
-
return
|
|
7040
|
-
scope:
|
|
7041
|
-
order:
|
|
7448
|
+
return z.object({
|
|
7449
|
+
scope: z.string(),
|
|
7450
|
+
order: z.array(z.string())
|
|
7042
7451
|
});
|
|
7043
7452
|
}
|
|
7044
7453
|
function SetAuthorNameInputSchema() {
|
|
7045
|
-
return
|
|
7046
|
-
authorName:
|
|
7454
|
+
return z.object({
|
|
7455
|
+
authorName: z.string()
|
|
7047
7456
|
});
|
|
7048
7457
|
}
|
|
7049
7458
|
function SetAuthorWebsiteInputSchema() {
|
|
7050
|
-
return
|
|
7051
|
-
authorWebsite:
|
|
7459
|
+
return z.object({
|
|
7460
|
+
authorWebsite: z.string()
|
|
7052
7461
|
});
|
|
7053
7462
|
}
|
|
7054
7463
|
function SetInitialStateInputSchema() {
|
|
7055
|
-
return
|
|
7056
|
-
scope:
|
|
7057
|
-
initialValue:
|
|
7464
|
+
return z.object({
|
|
7465
|
+
scope: z.string(),
|
|
7466
|
+
initialValue: z.string()
|
|
7058
7467
|
});
|
|
7059
7468
|
}
|
|
7060
7469
|
function SetModelDescriptionInputSchema() {
|
|
7061
|
-
return
|
|
7062
|
-
description:
|
|
7470
|
+
return z.object({
|
|
7471
|
+
description: z.string()
|
|
7063
7472
|
});
|
|
7064
7473
|
}
|
|
7065
7474
|
function SetModelExtensionInputSchema() {
|
|
7066
|
-
return
|
|
7067
|
-
extension:
|
|
7475
|
+
return z.object({
|
|
7476
|
+
extension: z.string()
|
|
7068
7477
|
});
|
|
7069
7478
|
}
|
|
7070
7479
|
function SetModelIdInputSchema() {
|
|
7071
|
-
return
|
|
7072
|
-
id:
|
|
7480
|
+
return z.object({
|
|
7481
|
+
id: z.string()
|
|
7073
7482
|
});
|
|
7074
7483
|
}
|
|
7075
7484
|
function SetModelNameInputSchema() {
|
|
7076
|
-
return
|
|
7077
|
-
name:
|
|
7485
|
+
return z.object({
|
|
7486
|
+
name: z.string()
|
|
7078
7487
|
});
|
|
7079
7488
|
}
|
|
7080
7489
|
function SetModuleDescriptionInputSchema() {
|
|
7081
|
-
return
|
|
7082
|
-
description:
|
|
7083
|
-
id:
|
|
7490
|
+
return z.object({
|
|
7491
|
+
description: z.string().nullish(),
|
|
7492
|
+
id: z.string()
|
|
7084
7493
|
});
|
|
7085
7494
|
}
|
|
7086
7495
|
function SetModuleNameInputSchema() {
|
|
7087
|
-
return
|
|
7088
|
-
id:
|
|
7089
|
-
name:
|
|
7496
|
+
return z.object({
|
|
7497
|
+
id: z.string(),
|
|
7498
|
+
name: z.string().nullish()
|
|
7090
7499
|
});
|
|
7091
7500
|
}
|
|
7092
7501
|
function SetOperationDescriptionInputSchema() {
|
|
7093
|
-
return
|
|
7094
|
-
description:
|
|
7095
|
-
id:
|
|
7502
|
+
return z.object({
|
|
7503
|
+
description: z.string().nullish(),
|
|
7504
|
+
id: z.string()
|
|
7096
7505
|
});
|
|
7097
7506
|
}
|
|
7098
7507
|
function SetOperationErrorCodeInputSchema() {
|
|
7099
|
-
return
|
|
7100
|
-
errorCode:
|
|
7101
|
-
id:
|
|
7508
|
+
return z.object({
|
|
7509
|
+
errorCode: z.string().nullish(),
|
|
7510
|
+
id: z.string()
|
|
7102
7511
|
});
|
|
7103
7512
|
}
|
|
7104
7513
|
function SetOperationErrorDescriptionInputSchema() {
|
|
7105
|
-
return
|
|
7106
|
-
errorDescription:
|
|
7107
|
-
id:
|
|
7514
|
+
return z.object({
|
|
7515
|
+
errorDescription: z.string().nullish(),
|
|
7516
|
+
id: z.string()
|
|
7108
7517
|
});
|
|
7109
7518
|
}
|
|
7110
7519
|
function SetOperationErrorNameInputSchema() {
|
|
7111
|
-
return
|
|
7112
|
-
errorName:
|
|
7113
|
-
id:
|
|
7520
|
+
return z.object({
|
|
7521
|
+
errorName: z.string().nullish(),
|
|
7522
|
+
id: z.string()
|
|
7114
7523
|
});
|
|
7115
7524
|
}
|
|
7116
7525
|
function SetOperationErrorTemplateInputSchema() {
|
|
7117
|
-
return
|
|
7118
|
-
errorTemplate:
|
|
7119
|
-
id:
|
|
7526
|
+
return z.object({
|
|
7527
|
+
errorTemplate: z.string().nullish(),
|
|
7528
|
+
id: z.string()
|
|
7120
7529
|
});
|
|
7121
7530
|
}
|
|
7122
7531
|
function SetOperationNameInputSchema() {
|
|
7123
|
-
return
|
|
7124
|
-
id:
|
|
7125
|
-
name:
|
|
7532
|
+
return z.object({
|
|
7533
|
+
id: z.string(),
|
|
7534
|
+
name: z.string().nullish()
|
|
7126
7535
|
});
|
|
7127
7536
|
}
|
|
7128
7537
|
function SetOperationScopeInputSchema() {
|
|
7129
|
-
return
|
|
7130
|
-
id:
|
|
7538
|
+
return z.object({
|
|
7539
|
+
id: z.string(),
|
|
7131
7540
|
scope: OperationScopeSchema()
|
|
7132
7541
|
});
|
|
7133
7542
|
}
|
|
7134
7543
|
function SetOperationReducerInputSchema() {
|
|
7135
|
-
return
|
|
7136
|
-
id:
|
|
7137
|
-
reducer:
|
|
7544
|
+
return z.object({
|
|
7545
|
+
id: z.string(),
|
|
7546
|
+
reducer: z.string().nullish()
|
|
7138
7547
|
});
|
|
7139
7548
|
}
|
|
7140
7549
|
function SetOperationSchemaInputSchema() {
|
|
7141
|
-
return
|
|
7142
|
-
id:
|
|
7143
|
-
schema:
|
|
7550
|
+
return z.object({
|
|
7551
|
+
id: z.string(),
|
|
7552
|
+
schema: z.string().nullish()
|
|
7144
7553
|
});
|
|
7145
7554
|
}
|
|
7146
7555
|
function SetOperationTemplateInputSchema() {
|
|
7147
|
-
return
|
|
7148
|
-
id:
|
|
7149
|
-
template:
|
|
7556
|
+
return z.object({
|
|
7557
|
+
id: z.string(),
|
|
7558
|
+
template: z.string().nullish()
|
|
7150
7559
|
});
|
|
7151
7560
|
}
|
|
7152
7561
|
function SetStateSchemaInputSchema() {
|
|
7153
|
-
return
|
|
7154
|
-
scope:
|
|
7155
|
-
schema:
|
|
7562
|
+
return z.object({
|
|
7563
|
+
scope: z.string(),
|
|
7564
|
+
schema: z.string()
|
|
7156
7565
|
});
|
|
7157
7566
|
}
|
|
7158
7567
|
function UpdateChangeLogItemInputSchema() {
|
|
7159
|
-
return
|
|
7160
|
-
__typename:
|
|
7161
|
-
id:
|
|
7162
|
-
newContent:
|
|
7568
|
+
return z.object({
|
|
7569
|
+
__typename: z.literal("UpdateChangeLogItemInput").optional(),
|
|
7570
|
+
id: z.string(),
|
|
7571
|
+
newContent: z.string()
|
|
7163
7572
|
});
|
|
7164
7573
|
}
|
|
7165
7574
|
function UpdateOperationExampleInputSchema() {
|
|
7166
|
-
return
|
|
7167
|
-
example:
|
|
7168
|
-
id:
|
|
7575
|
+
return z.object({
|
|
7576
|
+
example: z.string(),
|
|
7577
|
+
id: z.string()
|
|
7169
7578
|
});
|
|
7170
7579
|
}
|
|
7171
7580
|
function UpdateStateExampleInputSchema() {
|
|
7172
|
-
return
|
|
7173
|
-
scope:
|
|
7174
|
-
id:
|
|
7175
|
-
newExample:
|
|
7581
|
+
return z.object({
|
|
7582
|
+
scope: z.string(),
|
|
7583
|
+
id: z.string(),
|
|
7584
|
+
newExample: z.string()
|
|
7176
7585
|
});
|
|
7177
7586
|
}
|
|
7178
7587
|
var dist = {};
|
|
@@ -7479,15 +7888,15 @@ function requireJszip_min() {
|
|
|
7479
7888
|
t3 && !r2 || (x.crc32 = e2.crc32, x.compressedSize = e2.compressedSize, x.uncompressedSize = e2.uncompressedSize);
|
|
7480
7889
|
var S = 0;
|
|
7481
7890
|
t3 && (S |= 8), l || !_ && !g || (S |= 2048);
|
|
7482
|
-
var
|
|
7483
|
-
w && (
|
|
7891
|
+
var z2 = 0, C = 0;
|
|
7892
|
+
w && (z2 |= 16), "UNIX" === i2 ? (C = 798, z2 |= function(e3, t4) {
|
|
7484
7893
|
var r3 = e3;
|
|
7485
7894
|
return e3 || (r3 = t4 ? 16893 : 33204), (65535 & r3) << 16;
|
|
7486
|
-
}(h.unixPermissions, w)) : (C = 20,
|
|
7895
|
+
}(h.unixPermissions, w)) : (C = 20, z2 |= function(e3) {
|
|
7487
7896
|
return 63 & (e3 || 0);
|
|
7488
7897
|
}(h.dosPermissions)), a = k.getUTCHours(), a <<= 6, a |= k.getUTCMinutes(), a <<= 5, a |= k.getUTCSeconds() / 2, o = k.getUTCFullYear() - 1980, o <<= 4, o |= k.getUTCMonth() + 1, o <<= 5, o |= k.getUTCDate(), _ && (v = A(1, 1) + A(B(f), 4) + c, b += "up" + A(v.length, 2) + v), g && (y = A(1, 1) + A(B(p), 4) + m, b += "uc" + A(y.length, 2) + y);
|
|
7489
7898
|
var E = "";
|
|
7490
|
-
return E += "\n\0", E += A(S, 2), E += u.magic, E += A(a, 2), E += A(o, 2), E += A(x.crc32, 4), E += A(x.compressedSize, 4), E += A(x.uncompressedSize, 4), E += A(f.length, 2), E += A(b.length, 2), { fileRecord: R.LOCAL_FILE_HEADER + E + f + b, dirRecord: R.CENTRAL_FILE_HEADER + A(C, 2) + E + A(p.length, 2) + "\0\0\0\0" + A(
|
|
7899
|
+
return E += "\n\0", E += A(S, 2), E += u.magic, E += A(a, 2), E += A(o, 2), E += A(x.crc32, 4), E += A(x.compressedSize, 4), E += A(x.uncompressedSize, 4), E += A(f.length, 2), E += A(b.length, 2), { fileRecord: R.LOCAL_FILE_HEADER + E + f + b, dirRecord: R.CENTRAL_FILE_HEADER + A(C, 2) + E + A(p.length, 2) + "\0\0\0\0" + A(z2, 4) + A(n2, 4) + f + b + p };
|
|
7491
7900
|
}
|
|
7492
7901
|
var I = e("../utils"), i = e("../stream/GenericWorker"), O = e("../utf8"), B = e("../crc32"), R = e("../signature");
|
|
7493
7902
|
function s(e2, t3, r2, n2) {
|
|
@@ -8715,7 +9124,7 @@ function requireJszip_min() {
|
|
|
8715
9124
|
return -1 ^ e2;
|
|
8716
9125
|
};
|
|
8717
9126
|
}, {}], 46: [function(e, t2, r) {
|
|
8718
|
-
var h, c = e("../utils/common"), u = e("./trees"), d = e("./adler32"), p = e("./crc32"), n = e("./messages"), l = 0, f = 4, m = 0, _ = -2, g = -1, b = 4, i = 2, v = 8, y = 9, s = 286, a = 30, o = 19, w = 2 * s + 1, k = 15, x = 3, S = 258,
|
|
9127
|
+
var h, c = e("../utils/common"), u = e("./trees"), d = e("./adler32"), p = e("./crc32"), n = e("./messages"), l = 0, f = 4, m = 0, _ = -2, g = -1, b = 4, i = 2, v = 8, y = 9, s = 286, a = 30, o = 19, w = 2 * s + 1, k = 15, x = 3, S = 258, z2 = S + x + 1, C = 42, E = 113, A = 1, I = 2, O = 3, B = 4;
|
|
8719
9128
|
function R(e2, t3) {
|
|
8720
9129
|
return e2.msg = n[t3], t3;
|
|
8721
9130
|
}
|
|
@@ -8739,7 +9148,7 @@ function requireJszip_min() {
|
|
|
8739
9148
|
e2.pending_buf[e2.pending++] = t3 >>> 8 & 255, e2.pending_buf[e2.pending++] = 255 & t3;
|
|
8740
9149
|
}
|
|
8741
9150
|
function L(e2, t3) {
|
|
8742
|
-
var r2, n2, i2 = e2.max_chain_length, s2 = e2.strstart, a2 = e2.prev_length, o2 = e2.nice_match, h2 = e2.strstart > e2.w_size -
|
|
9151
|
+
var r2, n2, i2 = e2.max_chain_length, s2 = e2.strstart, a2 = e2.prev_length, o2 = e2.nice_match, h2 = e2.strstart > e2.w_size - z2 ? e2.strstart - (e2.w_size - z2) : 0, u2 = e2.window, l2 = e2.w_mask, f2 = e2.prev, c2 = e2.strstart + S, d2 = u2[s2 + a2 - 1], p2 = u2[s2 + a2];
|
|
8743
9152
|
e2.prev_length >= e2.good_match && (i2 >>= 2), o2 > e2.lookahead && (o2 = e2.lookahead);
|
|
8744
9153
|
do {
|
|
8745
9154
|
if (u2[(r2 = t3) + a2] === p2 && u2[r2 + a2 - 1] === d2 && u2[r2] === u2[s2] && u2[++r2] === u2[s2 + 1]) {
|
|
@@ -8757,22 +9166,22 @@ function requireJszip_min() {
|
|
|
8757
9166
|
function j(e2) {
|
|
8758
9167
|
var t3, r2, n2, i2, s2, a2, o2, h2, u2, l2, f2 = e2.w_size;
|
|
8759
9168
|
do {
|
|
8760
|
-
if (i2 = e2.window_size - e2.lookahead - e2.strstart, e2.strstart >= f2 + (f2 -
|
|
9169
|
+
if (i2 = e2.window_size - e2.lookahead - e2.strstart, e2.strstart >= f2 + (f2 - z2)) {
|
|
8761
9170
|
for (c.arraySet(e2.window, e2.window, f2, f2, 0), e2.match_start -= f2, e2.strstart -= f2, e2.block_start -= f2, t3 = r2 = e2.hash_size; n2 = e2.head[--t3], e2.head[t3] = f2 <= n2 ? n2 - f2 : 0, --r2; ) ;
|
|
8762
9171
|
for (t3 = r2 = f2; n2 = e2.prev[--t3], e2.prev[t3] = f2 <= n2 ? n2 - f2 : 0, --r2; ) ;
|
|
8763
9172
|
i2 += f2;
|
|
8764
9173
|
}
|
|
8765
9174
|
if (0 === e2.strm.avail_in) break;
|
|
8766
9175
|
if (a2 = e2.strm, o2 = e2.window, h2 = e2.strstart + e2.lookahead, u2 = i2, l2 = void 0, l2 = a2.avail_in, u2 < l2 && (l2 = u2), r2 = 0 === l2 ? 0 : (a2.avail_in -= l2, c.arraySet(o2, a2.input, a2.next_in, l2, h2), 1 === a2.state.wrap ? a2.adler = d(a2.adler, o2, l2, h2) : 2 === a2.state.wrap && (a2.adler = p(a2.adler, o2, l2, h2)), a2.next_in += l2, a2.total_in += l2, l2), e2.lookahead += r2, e2.lookahead + e2.insert >= x) for (s2 = e2.strstart - e2.insert, e2.ins_h = e2.window[s2], e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s2 + 1]) & e2.hash_mask; e2.insert && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s2 + x - 1]) & e2.hash_mask, e2.prev[s2 & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = s2, s2++, e2.insert--, !(e2.lookahead + e2.insert < x)); ) ;
|
|
8767
|
-
} while (e2.lookahead <
|
|
9176
|
+
} while (e2.lookahead < z2 && 0 !== e2.strm.avail_in);
|
|
8768
9177
|
}
|
|
8769
9178
|
function Z(e2, t3) {
|
|
8770
9179
|
for (var r2, n2; ; ) {
|
|
8771
|
-
if (e2.lookahead <
|
|
8772
|
-
if (j(e2), e2.lookahead <
|
|
9180
|
+
if (e2.lookahead < z2) {
|
|
9181
|
+
if (j(e2), e2.lookahead < z2 && t3 === l) return A;
|
|
8773
9182
|
if (0 === e2.lookahead) break;
|
|
8774
9183
|
}
|
|
8775
|
-
if (r2 = 0, e2.lookahead >= x && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r2 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 !== r2 && e2.strstart - r2 <= e2.w_size -
|
|
9184
|
+
if (r2 = 0, e2.lookahead >= x && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r2 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 !== r2 && e2.strstart - r2 <= e2.w_size - z2 && (e2.match_length = L(e2, r2)), e2.match_length >= x) if (n2 = u._tr_tally(e2, e2.strstart - e2.match_start, e2.match_length - x), e2.lookahead -= e2.match_length, e2.match_length <= e2.max_lazy_match && e2.lookahead >= x) {
|
|
8776
9185
|
for (e2.match_length--; e2.strstart++, e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r2 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart, 0 != --e2.match_length; ) ;
|
|
8777
9186
|
e2.strstart++;
|
|
8778
9187
|
} else e2.strstart += e2.match_length, e2.match_length = 0, e2.ins_h = e2.window[e2.strstart], e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + 1]) & e2.hash_mask;
|
|
@@ -8783,11 +9192,11 @@ function requireJszip_min() {
|
|
|
8783
9192
|
}
|
|
8784
9193
|
function W2(e2, t3) {
|
|
8785
9194
|
for (var r2, n2, i2; ; ) {
|
|
8786
|
-
if (e2.lookahead <
|
|
8787
|
-
if (j(e2), e2.lookahead <
|
|
9195
|
+
if (e2.lookahead < z2) {
|
|
9196
|
+
if (j(e2), e2.lookahead < z2 && t3 === l) return A;
|
|
8788
9197
|
if (0 === e2.lookahead) break;
|
|
8789
9198
|
}
|
|
8790
|
-
if (r2 = 0, e2.lookahead >= x && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r2 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), e2.prev_length = e2.match_length, e2.prev_match = e2.match_start, e2.match_length = x - 1, 0 !== r2 && e2.prev_length < e2.max_lazy_match && e2.strstart - r2 <= e2.w_size -
|
|
9199
|
+
if (r2 = 0, e2.lookahead >= x && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r2 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), e2.prev_length = e2.match_length, e2.prev_match = e2.match_start, e2.match_length = x - 1, 0 !== r2 && e2.prev_length < e2.max_lazy_match && e2.strstart - r2 <= e2.w_size - z2 && (e2.match_length = L(e2, r2), e2.match_length <= 5 && (1 === e2.strategy || e2.match_length === x && 4096 < e2.strstart - e2.match_start) && (e2.match_length = x - 1)), e2.prev_length >= x && e2.match_length <= e2.prev_length) {
|
|
8791
9200
|
for (i2 = e2.strstart + e2.lookahead - x, n2 = u._tr_tally(e2, e2.strstart - 1 - e2.prev_match, e2.prev_length - x), e2.lookahead -= e2.prev_length - 1, e2.prev_length -= 2; ++e2.strstart <= i2 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r2 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 != --e2.prev_length; ) ;
|
|
8792
9201
|
if (e2.match_available = 0, e2.match_length = x - 1, e2.strstart++, n2 && (N(e2, false), 0 === e2.strm.avail_out)) return A;
|
|
8793
9202
|
} else if (e2.match_available) {
|
|
@@ -8830,7 +9239,7 @@ function requireJszip_min() {
|
|
|
8830
9239
|
e2.strstart += e2.lookahead, e2.lookahead = 0;
|
|
8831
9240
|
var n2 = e2.block_start + r2;
|
|
8832
9241
|
if ((0 === e2.strstart || e2.strstart >= n2) && (e2.lookahead = e2.strstart - n2, e2.strstart = n2, N(e2, false), 0 === e2.strm.avail_out)) return A;
|
|
8833
|
-
if (e2.strstart - e2.block_start >= e2.w_size -
|
|
9242
|
+
if (e2.strstart - e2.block_start >= e2.w_size - z2 && (N(e2, false), 0 === e2.strm.avail_out)) return A;
|
|
8834
9243
|
}
|
|
8835
9244
|
return e2.insert = 0, t3 === f ? (N(e2, true), 0 === e2.strm.avail_out ? O : B) : (e2.strstart > e2.block_start && (N(e2, false), e2.strm.avail_out), A);
|
|
8836
9245
|
}), new M(4, 4, 8, 4, Z), new M(4, 5, 16, 8, Z), new M(4, 6, 32, 32, Z), new M(4, 4, 16, 16, W2), new M(8, 16, 32, 32, W2), new M(8, 16, 128, 128, W2), new M(8, 32, 128, 256, W2), new M(32, 128, 258, 1024, W2), new M(32, 258, 258, 4096, W2)], r.deflateInit = function(e2, t3) {
|
|
@@ -8925,10 +9334,10 @@ function requireJszip_min() {
|
|
|
8925
9334
|
};
|
|
8926
9335
|
}, {}], 48: [function(e, t2, r) {
|
|
8927
9336
|
t2.exports = function(e2, t3) {
|
|
8928
|
-
var r2, n, i, s, a, o, h, u, l, f, c, d, p, m, _, g, b, v, y, w, k, x, S,
|
|
8929
|
-
r2 = e2.state, n = e2.next_in,
|
|
9337
|
+
var r2, n, i, s, a, o, h, u, l, f, c, d, p, m, _, g, b, v, y, w, k, x, S, z2, C;
|
|
9338
|
+
r2 = e2.state, n = e2.next_in, z2 = e2.input, i = n + (e2.avail_in - 5), s = e2.next_out, C = e2.output, a = s - (t3 - e2.avail_out), o = s + (e2.avail_out - 257), h = r2.dmax, u = r2.wsize, l = r2.whave, f = r2.wnext, c = r2.window, d = r2.hold, p = r2.bits, m = r2.lencode, _ = r2.distcode, g = (1 << r2.lenbits) - 1, b = (1 << r2.distbits) - 1;
|
|
8930
9339
|
e: do {
|
|
8931
|
-
p < 15 && (d +=
|
|
9340
|
+
p < 15 && (d += z2[n++] << p, p += 8, d += z2[n++] << p, p += 8), v = m[d & g];
|
|
8932
9341
|
t: for (; ; ) {
|
|
8933
9342
|
if (d >>>= y = v >>> 24, p -= y, 0 === (y = v >>> 16 & 255)) C[s++] = 65535 & v;
|
|
8934
9343
|
else {
|
|
@@ -8944,7 +9353,7 @@ function requireJszip_min() {
|
|
|
8944
9353
|
e2.msg = "invalid literal/length code", r2.mode = 30;
|
|
8945
9354
|
break e;
|
|
8946
9355
|
}
|
|
8947
|
-
w = 65535 & v, (y &= 15) && (p < y && (d +=
|
|
9356
|
+
w = 65535 & v, (y &= 15) && (p < y && (d += z2[n++] << p, p += 8), w += d & (1 << y) - 1, d >>>= y, p -= y), p < 15 && (d += z2[n++] << p, p += 8, d += z2[n++] << p, p += 8), v = _[d & b];
|
|
8948
9357
|
r: for (; ; ) {
|
|
8949
9358
|
if (d >>>= y = v >>> 24, p -= y, !(16 & (y = v >>> 16 & 255))) {
|
|
8950
9359
|
if (0 == (64 & y)) {
|
|
@@ -8954,7 +9363,7 @@ function requireJszip_min() {
|
|
|
8954
9363
|
e2.msg = "invalid distance code", r2.mode = 30;
|
|
8955
9364
|
break e;
|
|
8956
9365
|
}
|
|
8957
|
-
if (k = 65535 & v, p < (y &= 15) && (d +=
|
|
9366
|
+
if (k = 65535 & v, p < (y &= 15) && (d += z2[n++] << p, (p += 8) < y && (d += z2[n++] << p, p += 8)), h < (k += d & (1 << y) - 1)) {
|
|
8958
9367
|
e2.msg = "invalid distance too far back", r2.mode = 30;
|
|
8959
9368
|
break e;
|
|
8960
9369
|
}
|
|
@@ -9038,7 +9447,7 @@ function requireJszip_min() {
|
|
|
9038
9447
|
r.inflateReset = o, r.inflateReset2 = h, r.inflateResetKeep = a, r.inflateInit = function(e2) {
|
|
9039
9448
|
return u(e2, 15);
|
|
9040
9449
|
}, r.inflateInit2 = u, r.inflate = function(e2, t3) {
|
|
9041
|
-
var r2, n2, i2, s2, a2, o2, h2, u2, l2, f2, c2, d, p, m, _, g, b, v, y, w, k, x, S,
|
|
9450
|
+
var r2, n2, i2, s2, a2, o2, h2, u2, l2, f2, c2, d, p, m, _, g, b, v, y, w, k, x, S, z2, C = 0, E = new I.Buf8(4), A = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
9042
9451
|
if (!e2 || !e2.state || !e2.output || !e2.input && 0 !== e2.avail_in) return U;
|
|
9043
9452
|
12 === (r2 = e2.state).mode && (r2.mode = 13), a2 = e2.next_out, i2 = e2.output, h2 = e2.avail_out, s2 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r2.hold, l2 = r2.bits, f2 = o2, c2 = h2, x = N;
|
|
9044
9453
|
e: for (; ; ) switch (r2.mode) {
|
|
@@ -9225,7 +9634,7 @@ function requireJszip_min() {
|
|
|
9225
9634
|
if (b < 16) u2 >>>= _, l2 -= _, r2.lens[r2.have++] = b;
|
|
9226
9635
|
else {
|
|
9227
9636
|
if (16 === b) {
|
|
9228
|
-
for (
|
|
9637
|
+
for (z2 = _ + 2; l2 < z2; ) {
|
|
9229
9638
|
if (0 === o2) break e;
|
|
9230
9639
|
o2--, u2 += n2[s2++] << l2, l2 += 8;
|
|
9231
9640
|
}
|
|
@@ -9235,13 +9644,13 @@ function requireJszip_min() {
|
|
|
9235
9644
|
}
|
|
9236
9645
|
k = r2.lens[r2.have - 1], d = 3 + (3 & u2), u2 >>>= 2, l2 -= 2;
|
|
9237
9646
|
} else if (17 === b) {
|
|
9238
|
-
for (
|
|
9647
|
+
for (z2 = _ + 3; l2 < z2; ) {
|
|
9239
9648
|
if (0 === o2) break e;
|
|
9240
9649
|
o2--, u2 += n2[s2++] << l2, l2 += 8;
|
|
9241
9650
|
}
|
|
9242
9651
|
l2 -= _, k = 0, d = 3 + (7 & (u2 >>>= _)), u2 >>>= 3, l2 -= 3;
|
|
9243
9652
|
} else {
|
|
9244
|
-
for (
|
|
9653
|
+
for (z2 = _ + 7; l2 < z2; ) {
|
|
9245
9654
|
if (0 === o2) break e;
|
|
9246
9655
|
o2--, u2 += n2[s2++] << l2, l2 += 8;
|
|
9247
9656
|
}
|
|
@@ -9301,7 +9710,7 @@ function requireJszip_min() {
|
|
|
9301
9710
|
r2.extra = 15 & g, r2.mode = 22;
|
|
9302
9711
|
case 22:
|
|
9303
9712
|
if (r2.extra) {
|
|
9304
|
-
for (
|
|
9713
|
+
for (z2 = r2.extra; l2 < z2; ) {
|
|
9305
9714
|
if (0 === o2) break e;
|
|
9306
9715
|
o2--, u2 += n2[s2++] << l2, l2 += 8;
|
|
9307
9716
|
}
|
|
@@ -9327,7 +9736,7 @@ function requireJszip_min() {
|
|
|
9327
9736
|
r2.offset = b, r2.extra = 15 & g, r2.mode = 24;
|
|
9328
9737
|
case 24:
|
|
9329
9738
|
if (r2.extra) {
|
|
9330
|
-
for (
|
|
9739
|
+
for (z2 = r2.extra; l2 < z2; ) {
|
|
9331
9740
|
if (0 === o2) break e;
|
|
9332
9741
|
o2--, u2 += n2[s2++] << l2, l2 += 8;
|
|
9333
9742
|
}
|
|
@@ -9407,14 +9816,14 @@ function requireJszip_min() {
|
|
|
9407
9816
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(e, t2, r) {
|
|
9408
9817
|
var D = e("../utils/common"), F = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], N = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], U = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], P = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
|
|
9409
9818
|
t2.exports = function(e2, t3, r2, n, i, s, a, o) {
|
|
9410
|
-
var h, u, l, f, c, d, p, m, _, g = o.bits, b = 0, v = 0, y = 0, w = 0, k = 0, x = 0, S = 0,
|
|
9819
|
+
var h, u, l, f, c, d, p, m, _, g = o.bits, b = 0, v = 0, y = 0, w = 0, k = 0, x = 0, S = 0, z2 = 0, C = 0, E = 0, A = null, I = 0, O = new D.Buf16(16), B = new D.Buf16(16), R = null, T = 0;
|
|
9411
9820
|
for (b = 0; b <= 15; b++) O[b] = 0;
|
|
9412
9821
|
for (v = 0; v < n; v++) O[t3[r2 + v]]++;
|
|
9413
9822
|
for (k = g, w = 15; 1 <= w && 0 === O[w]; w--) ;
|
|
9414
9823
|
if (w < k && (k = w), 0 === w) return i[s++] = 20971520, i[s++] = 20971520, o.bits = 1, 0;
|
|
9415
9824
|
for (y = 1; y < w && 0 === O[y]; y++) ;
|
|
9416
|
-
for (k < y && (k = y), b =
|
|
9417
|
-
if (0 <
|
|
9825
|
+
for (k < y && (k = y), b = z2 = 1; b <= 15; b++) if (z2 <<= 1, (z2 -= O[b]) < 0) return -1;
|
|
9826
|
+
if (0 < z2 && (0 === e2 || 1 !== w)) return -1;
|
|
9418
9827
|
for (B[1] = 0, b = 1; b < 15; b++) B[b + 1] = B[b] + O[b];
|
|
9419
9828
|
for (v = 0; v < n; v++) 0 !== t3[r2 + v] && (a[B[t3[r2 + v]]++] = v);
|
|
9420
9829
|
if (d = 0 === e2 ? (A = R = a, 19) : 1 === e2 ? (A = F, I -= 257, R = N, T -= 257, 256) : (A = U, R = P, -1), b = y, c = s, S = v = E = 0, l = -1, f = (C = 1 << (x = k)) - 1, 1 === e2 && 852 < C || 2 === e2 && 592 < C) return 1;
|
|
@@ -9426,7 +9835,7 @@ function requireJszip_min() {
|
|
|
9426
9835
|
b = t3[r2 + a[v]];
|
|
9427
9836
|
}
|
|
9428
9837
|
if (k < b && (E & f) !== l) {
|
|
9429
|
-
for (0 === S && (S = k), c += y,
|
|
9838
|
+
for (0 === S && (S = k), c += y, z2 = 1 << (x = b - S); x + S < w && !((z2 -= O[x + S]) <= 0); ) x++, z2 <<= 1;
|
|
9430
9839
|
if (C += 1 << x, 1 === e2 && 852 < C || 2 === e2 && 592 < C) return 1;
|
|
9431
9840
|
i[l = E & f] = k << 24 | x << 16 | c - s | 0;
|
|
9432
9841
|
}
|
|
@@ -9440,8 +9849,8 @@ function requireJszip_min() {
|
|
|
9440
9849
|
function n(e2) {
|
|
9441
9850
|
for (var t3 = e2.length; 0 <= --t3; ) e2[t3] = 0;
|
|
9442
9851
|
}
|
|
9443
|
-
var s = 0, a = 29, u = 256, l = u + 1 + a, f = 30, c = 19, _ = 2 * l + 1, g = 15, d = 16, p = 7, m = 256, b = 16, v = 17, y = 18, w = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], k = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], x = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], S = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15],
|
|
9444
|
-
n(
|
|
9852
|
+
var s = 0, a = 29, u = 256, l = u + 1 + a, f = 30, c = 19, _ = 2 * l + 1, g = 15, d = 16, p = 7, m = 256, b = 16, v = 17, y = 18, w = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], k = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], x = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], S = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], z2 = new Array(2 * (l + 2));
|
|
9853
|
+
n(z2);
|
|
9445
9854
|
var C = new Array(2 * f);
|
|
9446
9855
|
n(C);
|
|
9447
9856
|
var E = new Array(512);
|
|
@@ -9549,12 +9958,12 @@ function requireJszip_min() {
|
|
|
9549
9958
|
for (A[r2 - 1] = n2, n2 = i2 = 0; n2 < 16; n2++) for (T[n2] = i2, e3 = 0; e3 < 1 << k[n2]; e3++) E[i2++] = n2;
|
|
9550
9959
|
for (i2 >>= 7; n2 < f; n2++) for (T[n2] = i2 << 7, e3 = 0; e3 < 1 << k[n2] - 7; e3++) E[256 + i2++] = n2;
|
|
9551
9960
|
for (t3 = 0; t3 <= g; t3++) s2[t3] = 0;
|
|
9552
|
-
for (e3 = 0; e3 <= 143; )
|
|
9553
|
-
for (; e3 <= 255; )
|
|
9554
|
-
for (; e3 <= 279; )
|
|
9555
|
-
for (; e3 <= 287; )
|
|
9556
|
-
for (Z(
|
|
9557
|
-
O = new D(
|
|
9961
|
+
for (e3 = 0; e3 <= 143; ) z2[2 * e3 + 1] = 8, e3++, s2[8]++;
|
|
9962
|
+
for (; e3 <= 255; ) z2[2 * e3 + 1] = 9, e3++, s2[9]++;
|
|
9963
|
+
for (; e3 <= 279; ) z2[2 * e3 + 1] = 7, e3++, s2[7]++;
|
|
9964
|
+
for (; e3 <= 287; ) z2[2 * e3 + 1] = 8, e3++, s2[8]++;
|
|
9965
|
+
for (Z(z2, l + 1, s2), e3 = 0; e3 < f; e3++) C[2 * e3 + 1] = 5, C[2 * e3] = j(e3, 5);
|
|
9966
|
+
O = new D(z2, w, u + 1, l, g), B = new D(C, k, 0, f, g), R = new D(new Array(0), x, 0, c, p);
|
|
9558
9967
|
}(), q = true), e2.l_desc = new F(e2.dyn_ltree, O), e2.d_desc = new F(e2.dyn_dtree, B), e2.bl_desc = new F(e2.bl_tree, R), e2.bi_buf = 0, e2.bi_valid = 0, W2(e2);
|
|
9559
9968
|
}, r._tr_stored_block = J, r._tr_flush_block = function(e2, t3, r2, n2) {
|
|
9560
9969
|
var i2, s2, a2 = 0;
|
|
@@ -9568,7 +9977,7 @@ function requireJszip_min() {
|
|
|
9568
9977
|
var t4;
|
|
9569
9978
|
for (X(e3, e3.dyn_ltree, e3.l_desc.max_code), X(e3, e3.dyn_dtree, e3.d_desc.max_code), Y(e3, e3.bl_desc), t4 = c - 1; 3 <= t4 && 0 === e3.bl_tree[2 * S[t4] + 1]; t4--) ;
|
|
9570
9979
|
return e3.opt_len += 3 * (t4 + 1) + 5 + 5 + 4, t4;
|
|
9571
|
-
}(e2), i2 = e2.opt_len + 3 + 7 >>> 3, (s2 = e2.static_len + 3 + 7 >>> 3) <= i2 && (i2 = s2)) : i2 = s2 = r2 + 5, r2 + 4 <= i2 && -1 !== t3 ? J(e2, t3, r2, n2) : 4 === e2.strategy || s2 === i2 ? (P(e2, 2 + (n2 ? 1 : 0), 3), K2(e2,
|
|
9980
|
+
}(e2), i2 = e2.opt_len + 3 + 7 >>> 3, (s2 = e2.static_len + 3 + 7 >>> 3) <= i2 && (i2 = s2)) : i2 = s2 = r2 + 5, r2 + 4 <= i2 && -1 !== t3 ? J(e2, t3, r2, n2) : 4 === e2.strategy || s2 === i2 ? (P(e2, 2 + (n2 ? 1 : 0), 3), K2(e2, z2, C)) : (P(e2, 4 + (n2 ? 1 : 0), 3), function(e3, t4, r3, n3) {
|
|
9572
9981
|
var i3;
|
|
9573
9982
|
for (P(e3, t4 - 257, 5), P(e3, r3 - 1, 5), P(e3, n3 - 4, 4), i3 = 0; i3 < n3; i3++) P(e3, e3.bl_tree[2 * S[i3] + 1], 3);
|
|
9574
9983
|
V(e3, e3.dyn_ltree, t4 - 1), V(e3, e3.dyn_dtree, r3 - 1);
|
|
@@ -9576,7 +9985,7 @@ function requireJszip_min() {
|
|
|
9576
9985
|
}, r._tr_tally = function(e2, t3, r2) {
|
|
9577
9986
|
return e2.pending_buf[e2.d_buf + 2 * e2.last_lit] = t3 >>> 8 & 255, e2.pending_buf[e2.d_buf + 2 * e2.last_lit + 1] = 255 & t3, e2.pending_buf[e2.l_buf + e2.last_lit] = 255 & r2, e2.last_lit++, 0 === t3 ? e2.dyn_ltree[2 * r2]++ : (e2.matches++, t3--, e2.dyn_ltree[2 * (A[r2] + u + 1)]++, e2.dyn_dtree[2 * N(t3)]++), e2.last_lit === e2.lit_bufsize - 1;
|
|
9578
9987
|
}, r._tr_align = function(e2) {
|
|
9579
|
-
P(e2, 2, 3), L(e2, m,
|
|
9988
|
+
P(e2, 2, 3), L(e2, m, z2), function(e3) {
|
|
9580
9989
|
16 === e3.bi_valid ? (U(e3, e3.bi_buf), e3.bi_buf = 0, e3.bi_valid = 0) : 8 <= e3.bi_valid && (e3.pending_buf[e3.pending++] = 255 & e3.bi_buf, e3.bi_buf >>= 8, e3.bi_valid -= 8);
|
|
9581
9990
|
}(e2);
|
|
9582
9991
|
};
|
|
@@ -9697,7 +10106,6 @@ const types = {
|
|
|
9697
10106
|
"application/dash+xml": ["mpd"],
|
|
9698
10107
|
"application/dash-patch+xml": ["mpp"],
|
|
9699
10108
|
"application/davmount+xml": ["davmount"],
|
|
9700
|
-
"application/dicom": ["dcm"],
|
|
9701
10109
|
"application/docbook+xml": ["dbk"],
|
|
9702
10110
|
"application/dssc+der": ["dssc"],
|
|
9703
10111
|
"application/dssc+xml": ["xdssc"],
|
|
@@ -9784,14 +10192,7 @@ const types = {
|
|
|
9784
10192
|
"application/oebps-package+xml": ["opf"],
|
|
9785
10193
|
"application/ogg": ["ogx"],
|
|
9786
10194
|
"application/omdoc+xml": ["omdoc"],
|
|
9787
|
-
"application/onenote": [
|
|
9788
|
-
"onetoc",
|
|
9789
|
-
"onetoc2",
|
|
9790
|
-
"onetmp",
|
|
9791
|
-
"onepkg",
|
|
9792
|
-
"one",
|
|
9793
|
-
"onea"
|
|
9794
|
-
],
|
|
10195
|
+
"application/onenote": ["onetoc", "onetoc2", "onetmp", "onepkg"],
|
|
9795
10196
|
"application/oxps": ["oxps"],
|
|
9796
10197
|
"application/p2p-overlay+xml": ["relo"],
|
|
9797
10198
|
"application/patch-ops-error+xml": ["xer"],
|
|
@@ -9887,7 +10288,6 @@ const types = {
|
|
|
9887
10288
|
"application/yang": ["yang"],
|
|
9888
10289
|
"application/yin+xml": ["yin"],
|
|
9889
10290
|
"application/zip": ["zip"],
|
|
9890
|
-
"application/zip+dotlottie": ["lottie"],
|
|
9891
10291
|
"audio/3gpp": ["*3gpp"],
|
|
9892
10292
|
"audio/aac": ["adts", "aac"],
|
|
9893
10293
|
"audio/adpcm": ["adp"],
|
|
@@ -9896,7 +10296,7 @@ const types = {
|
|
|
9896
10296
|
"audio/midi": ["mid", "midi", "kar", "rmi"],
|
|
9897
10297
|
"audio/mobile-xmf": ["mxmf"],
|
|
9898
10298
|
"audio/mp3": ["*mp3"],
|
|
9899
|
-
"audio/mp4": ["m4a", "mp4a"
|
|
10299
|
+
"audio/mp4": ["m4a", "mp4a"],
|
|
9900
10300
|
"audio/mpeg": ["mpga", "mp2", "mp2a", "mp3", "m2a", "m3a"],
|
|
9901
10301
|
"audio/ogg": ["oga", "ogg", "spx", "opus"],
|
|
9902
10302
|
"audio/s3m": ["s3m"],
|
|
@@ -9928,12 +10328,11 @@ const types = {
|
|
|
9928
10328
|
"image/heif": ["heif"],
|
|
9929
10329
|
"image/heif-sequence": ["heifs"],
|
|
9930
10330
|
"image/hej2k": ["hej2"],
|
|
10331
|
+
"image/hsj2": ["hsj2"],
|
|
9931
10332
|
"image/ief": ["ief"],
|
|
9932
|
-
"image/jaii": ["jaii"],
|
|
9933
|
-
"image/jais": ["jais"],
|
|
9934
10333
|
"image/jls": ["jls"],
|
|
9935
10334
|
"image/jp2": ["jp2", "jpg2"],
|
|
9936
|
-
"image/jpeg": ["
|
|
10335
|
+
"image/jpeg": ["jpeg", "jpg", "jpe"],
|
|
9937
10336
|
"image/jph": ["jph"],
|
|
9938
10337
|
"image/jphc": ["jhc"],
|
|
9939
10338
|
"image/jpm": ["jpm", "jpgm"],
|
|
@@ -9948,7 +10347,6 @@ const types = {
|
|
|
9948
10347
|
"image/jxss": ["jxss"],
|
|
9949
10348
|
"image/ktx": ["ktx"],
|
|
9950
10349
|
"image/ktx2": ["ktx2"],
|
|
9951
|
-
"image/pjpeg": ["jfif"],
|
|
9952
10350
|
"image/png": ["png"],
|
|
9953
10351
|
"image/sgi": ["sgi"],
|
|
9954
10352
|
"image/svg+xml": ["svg", "svgz"],
|
|
@@ -9962,7 +10360,7 @@ const types = {
|
|
|
9962
10360
|
"message/global-delivery-status": ["u8dsn"],
|
|
9963
10361
|
"message/global-disposition-notification": ["u8mdn"],
|
|
9964
10362
|
"message/global-headers": ["u8hdr"],
|
|
9965
|
-
"message/rfc822": ["eml", "mime"
|
|
10363
|
+
"message/rfc822": ["eml", "mime"],
|
|
9966
10364
|
"model/3mf": ["3mf"],
|
|
9967
10365
|
"model/gltf+json": ["gltf"],
|
|
9968
10366
|
"model/gltf-binary": ["glb"],
|
|
@@ -9972,7 +10370,6 @@ const types = {
|
|
|
9972
10370
|
"model/mtl": ["mtl"],
|
|
9973
10371
|
"model/obj": ["obj"],
|
|
9974
10372
|
"model/prc": ["prc"],
|
|
9975
|
-
"model/step": ["step", "stp", "stpnc", "p21", "210"],
|
|
9976
10373
|
"model/step+xml": ["stpx"],
|
|
9977
10374
|
"model/step+zip": ["stpz"],
|
|
9978
10375
|
"model/step-xml+zip": ["stpxz"],
|
|
@@ -10078,8 +10475,8 @@ class Mime {
|
|
|
10078
10475
|
getType(path) {
|
|
10079
10476
|
if (typeof path !== "string")
|
|
10080
10477
|
return null;
|
|
10081
|
-
const last = path.replace(/^.*[/\\]
|
|
10082
|
-
const ext = last.replace(
|
|
10478
|
+
const last = path.replace(/^.*[/\\]/, "").toLowerCase();
|
|
10479
|
+
const ext = last.replace(/^.*\./, "").toLowerCase();
|
|
10083
10480
|
const hasPath = last.length < path.length;
|
|
10084
10481
|
const hasDot = ext.length < last.length - 1;
|
|
10085
10482
|
if (!hasDot && hasPath)
|
|
@@ -10338,8 +10735,8 @@ function splitPrefixSuffix(input, options = {}) {
|
|
|
10338
10735
|
];
|
|
10339
10736
|
}
|
|
10340
10737
|
const isDefinedNonNullAny = (v) => v !== void 0 && v !== null;
|
|
10341
|
-
|
|
10342
|
-
const TransmitterTypeSchema =
|
|
10738
|
+
z.any().refine((v) => isDefinedNonNullAny(v));
|
|
10739
|
+
const TransmitterTypeSchema = z.enum([
|
|
10343
10740
|
"Internal",
|
|
10344
10741
|
"MatrixConnect",
|
|
10345
10742
|
"PullResponder",
|
|
@@ -10347,133 +10744,133 @@ const TransmitterTypeSchema = enumType([
|
|
|
10347
10744
|
"SecureConnect",
|
|
10348
10745
|
"SwitchboardPush"
|
|
10349
10746
|
]);
|
|
10350
|
-
const TriggerTypeSchema =
|
|
10747
|
+
const TriggerTypeSchema = z.enum(["PullResponder"]);
|
|
10351
10748
|
function AddFileInputSchema() {
|
|
10352
|
-
return
|
|
10353
|
-
document:
|
|
10354
|
-
documentType:
|
|
10355
|
-
id:
|
|
10356
|
-
name:
|
|
10357
|
-
parentFolder:
|
|
10358
|
-
synchronizationUnits:
|
|
10749
|
+
return z.object({
|
|
10750
|
+
document: z.unknown().nullish(),
|
|
10751
|
+
documentType: z.string(),
|
|
10752
|
+
id: z.string(),
|
|
10753
|
+
name: z.string(),
|
|
10754
|
+
parentFolder: z.string().nullish(),
|
|
10755
|
+
synchronizationUnits: z.array(SynchronizationUnitSchema())
|
|
10359
10756
|
});
|
|
10360
10757
|
}
|
|
10361
10758
|
function AddFolderInputSchema() {
|
|
10362
|
-
return
|
|
10363
|
-
id:
|
|
10364
|
-
name:
|
|
10365
|
-
parentFolder:
|
|
10759
|
+
return z.object({
|
|
10760
|
+
id: z.string(),
|
|
10761
|
+
name: z.string(),
|
|
10762
|
+
parentFolder: z.string().nullish()
|
|
10366
10763
|
});
|
|
10367
10764
|
}
|
|
10368
10765
|
function AddListenerInputSchema() {
|
|
10369
|
-
return
|
|
10766
|
+
return z.object({
|
|
10370
10767
|
listener: ListenerSchema()
|
|
10371
10768
|
});
|
|
10372
10769
|
}
|
|
10373
10770
|
function AddTriggerInputSchema() {
|
|
10374
|
-
return
|
|
10771
|
+
return z.object({
|
|
10375
10772
|
trigger: TriggerSchema()
|
|
10376
10773
|
});
|
|
10377
10774
|
}
|
|
10378
10775
|
function CopyNodeInputSchema() {
|
|
10379
|
-
return
|
|
10380
|
-
srcId:
|
|
10381
|
-
synchronizationUnits:
|
|
10382
|
-
targetId:
|
|
10383
|
-
targetName:
|
|
10384
|
-
targetParentFolder:
|
|
10776
|
+
return z.object({
|
|
10777
|
+
srcId: z.string(),
|
|
10778
|
+
synchronizationUnits: z.array(SynchronizationUnitSchema()).nullish(),
|
|
10779
|
+
targetId: z.string(),
|
|
10780
|
+
targetName: z.string().nullish(),
|
|
10781
|
+
targetParentFolder: z.string().nullish()
|
|
10385
10782
|
});
|
|
10386
10783
|
}
|
|
10387
10784
|
function DeleteNodeInputSchema() {
|
|
10388
|
-
return
|
|
10389
|
-
id:
|
|
10785
|
+
return z.object({
|
|
10786
|
+
id: z.string()
|
|
10390
10787
|
});
|
|
10391
10788
|
}
|
|
10392
10789
|
function ListenerSchema() {
|
|
10393
|
-
return
|
|
10394
|
-
__typename:
|
|
10395
|
-
block:
|
|
10790
|
+
return z.object({
|
|
10791
|
+
__typename: z.literal("Listener").optional(),
|
|
10792
|
+
block: z.boolean(),
|
|
10396
10793
|
callInfo: ListenerCallInfoSchema().nullable(),
|
|
10397
10794
|
filter: ListenerFilterSchema(),
|
|
10398
|
-
label:
|
|
10399
|
-
listenerId:
|
|
10400
|
-
system:
|
|
10795
|
+
label: z.string().nullable(),
|
|
10796
|
+
listenerId: z.string(),
|
|
10797
|
+
system: z.boolean()
|
|
10401
10798
|
});
|
|
10402
10799
|
}
|
|
10403
10800
|
function ListenerCallInfoSchema() {
|
|
10404
|
-
return
|
|
10405
|
-
__typename:
|
|
10406
|
-
data:
|
|
10407
|
-
name:
|
|
10801
|
+
return z.object({
|
|
10802
|
+
__typename: z.literal("ListenerCallInfo").optional(),
|
|
10803
|
+
data: z.string().nullable(),
|
|
10804
|
+
name: z.string().nullable(),
|
|
10408
10805
|
transmitterType: TransmitterTypeSchema.nullable()
|
|
10409
10806
|
});
|
|
10410
10807
|
}
|
|
10411
10808
|
function ListenerFilterSchema() {
|
|
10412
|
-
return
|
|
10413
|
-
__typename:
|
|
10414
|
-
branch:
|
|
10415
|
-
documentId:
|
|
10416
|
-
documentType:
|
|
10417
|
-
scope:
|
|
10809
|
+
return z.object({
|
|
10810
|
+
__typename: z.literal("ListenerFilter").optional(),
|
|
10811
|
+
branch: z.array(z.string()).nullable(),
|
|
10812
|
+
documentId: z.array(z.string()).nullable(),
|
|
10813
|
+
documentType: z.array(z.string()),
|
|
10814
|
+
scope: z.array(z.string()).nullable()
|
|
10418
10815
|
});
|
|
10419
10816
|
}
|
|
10420
10817
|
function MoveNodeInputSchema() {
|
|
10421
|
-
return
|
|
10422
|
-
srcFolder:
|
|
10423
|
-
targetParentFolder:
|
|
10818
|
+
return z.object({
|
|
10819
|
+
srcFolder: z.string(),
|
|
10820
|
+
targetParentFolder: z.string().nullish()
|
|
10424
10821
|
});
|
|
10425
10822
|
}
|
|
10426
10823
|
function PullResponderTriggerDataSchema() {
|
|
10427
|
-
return
|
|
10428
|
-
__typename:
|
|
10429
|
-
interval:
|
|
10430
|
-
listenerId:
|
|
10431
|
-
url:
|
|
10824
|
+
return z.object({
|
|
10825
|
+
__typename: z.literal("PullResponderTriggerData").optional(),
|
|
10826
|
+
interval: z.string(),
|
|
10827
|
+
listenerId: z.string(),
|
|
10828
|
+
url: z.string()
|
|
10432
10829
|
});
|
|
10433
10830
|
}
|
|
10434
10831
|
function RemoveListenerInputSchema() {
|
|
10435
|
-
return
|
|
10436
|
-
listenerId:
|
|
10832
|
+
return z.object({
|
|
10833
|
+
listenerId: z.string()
|
|
10437
10834
|
});
|
|
10438
10835
|
}
|
|
10439
10836
|
function RemoveTriggerInputSchema() {
|
|
10440
|
-
return
|
|
10441
|
-
triggerId:
|
|
10837
|
+
return z.object({
|
|
10838
|
+
triggerId: z.string()
|
|
10442
10839
|
});
|
|
10443
10840
|
}
|
|
10444
10841
|
function SetAvailableOfflineInputSchema() {
|
|
10445
|
-
return
|
|
10446
|
-
availableOffline:
|
|
10842
|
+
return z.object({
|
|
10843
|
+
availableOffline: z.boolean()
|
|
10447
10844
|
});
|
|
10448
10845
|
}
|
|
10449
10846
|
function SetDriveIconInputSchema() {
|
|
10450
|
-
return
|
|
10451
|
-
icon:
|
|
10847
|
+
return z.object({
|
|
10848
|
+
icon: z.string()
|
|
10452
10849
|
});
|
|
10453
10850
|
}
|
|
10454
10851
|
function SetDriveNameInputSchema() {
|
|
10455
|
-
return
|
|
10456
|
-
name:
|
|
10852
|
+
return z.object({
|
|
10853
|
+
name: z.string()
|
|
10457
10854
|
});
|
|
10458
10855
|
}
|
|
10459
10856
|
function SetSharingTypeInputSchema() {
|
|
10460
|
-
return
|
|
10461
|
-
type:
|
|
10857
|
+
return z.object({
|
|
10858
|
+
type: z.string()
|
|
10462
10859
|
});
|
|
10463
10860
|
}
|
|
10464
10861
|
function SynchronizationUnitSchema() {
|
|
10465
|
-
return
|
|
10466
|
-
__typename:
|
|
10467
|
-
branch:
|
|
10468
|
-
scope:
|
|
10469
|
-
syncId:
|
|
10862
|
+
return z.object({
|
|
10863
|
+
__typename: z.literal("SynchronizationUnit").optional(),
|
|
10864
|
+
branch: z.string(),
|
|
10865
|
+
scope: z.string(),
|
|
10866
|
+
syncId: z.string()
|
|
10470
10867
|
});
|
|
10471
10868
|
}
|
|
10472
10869
|
function TriggerSchema() {
|
|
10473
|
-
return
|
|
10474
|
-
__typename:
|
|
10870
|
+
return z.object({
|
|
10871
|
+
__typename: z.literal("Trigger").optional(),
|
|
10475
10872
|
data: TriggerDataSchema().nullable(),
|
|
10476
|
-
id:
|
|
10873
|
+
id: z.string(),
|
|
10477
10874
|
type: TriggerTypeSchema
|
|
10478
10875
|
});
|
|
10479
10876
|
}
|
|
@@ -10481,18 +10878,18 @@ function TriggerDataSchema() {
|
|
|
10481
10878
|
return PullResponderTriggerDataSchema();
|
|
10482
10879
|
}
|
|
10483
10880
|
function UpdateFileInputSchema() {
|
|
10484
|
-
return
|
|
10485
|
-
documentType:
|
|
10486
|
-
id:
|
|
10487
|
-
name:
|
|
10488
|
-
parentFolder:
|
|
10881
|
+
return z.object({
|
|
10882
|
+
documentType: z.string().nullish(),
|
|
10883
|
+
id: z.string(),
|
|
10884
|
+
name: z.string().nullish(),
|
|
10885
|
+
parentFolder: z.string().nullish()
|
|
10489
10886
|
});
|
|
10490
10887
|
}
|
|
10491
10888
|
function UpdateNodeInputSchema() {
|
|
10492
|
-
return
|
|
10493
|
-
id:
|
|
10494
|
-
name:
|
|
10495
|
-
parentFolder:
|
|
10889
|
+
return z.object({
|
|
10890
|
+
id: z.string(),
|
|
10891
|
+
name: z.string().nullish(),
|
|
10892
|
+
parentFolder: z.string().nullish()
|
|
10496
10893
|
});
|
|
10497
10894
|
}
|
|
10498
10895
|
const reducer$2 = {
|
|
@@ -27752,7 +28149,7 @@ const CLOUD = "CLOUD";
|
|
|
27752
28149
|
const PUBLIC = "PUBLIC";
|
|
27753
28150
|
const name = "@powerhousedao/connect";
|
|
27754
28151
|
const productName = "Powerhouse-Connect";
|
|
27755
|
-
const version$1 = "1.0.28-
|
|
28152
|
+
const version$1 = "1.0.28-staging.0";
|
|
27756
28153
|
const description = "Powerhouse Connect";
|
|
27757
28154
|
const main = "./dist/index.html";
|
|
27758
28155
|
const type = "module";
|
|
@@ -30927,7 +31324,7 @@ if (window.__VITE_ENVS.MODE === "development") {
|
|
|
30927
31324
|
} else {
|
|
30928
31325
|
serviceWorkerManager.registerServiceWorker(false);
|
|
30929
31326
|
}
|
|
30930
|
-
const App = lazy(() => __vitePreload(() => import("./app-
|
|
31327
|
+
const App = lazy(() => __vitePreload(() => import("./app-fD71bJN5.js").then((n) => n.bN), true ? __vite__mapDeps([0,1,2]) : void 0));
|
|
30931
31328
|
const AppLoader = /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(App, {}) });
|
|
30932
31329
|
const appLoader = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
30933
31330
|
__proto__: null,
|
|
@@ -31033,64 +31430,58 @@ export {
|
|
|
31033
31430
|
isSpecifiedDirective as b2,
|
|
31034
31431
|
isSpecifiedScalarType as b3,
|
|
31035
31432
|
isIntrospectionType as b4,
|
|
31036
|
-
|
|
31037
|
-
|
|
31038
|
-
|
|
31039
|
-
|
|
31040
|
-
|
|
31041
|
-
|
|
31042
|
-
|
|
31043
|
-
|
|
31044
|
-
|
|
31045
|
-
|
|
31046
|
-
|
|
31047
|
-
|
|
31048
|
-
|
|
31049
|
-
|
|
31050
|
-
|
|
31051
|
-
|
|
31052
|
-
|
|
31053
|
-
|
|
31054
|
-
|
|
31055
|
-
|
|
31056
|
-
|
|
31057
|
-
|
|
31058
|
-
|
|
31059
|
-
|
|
31060
|
-
|
|
31061
|
-
|
|
31062
|
-
|
|
31063
|
-
|
|
31064
|
-
|
|
31065
|
-
|
|
31066
|
-
|
|
31067
|
-
|
|
31068
|
-
|
|
31069
|
-
|
|
31070
|
-
|
|
31071
|
-
|
|
31072
|
-
|
|
31073
|
-
|
|
31074
|
-
|
|
31075
|
-
|
|
31076
|
-
|
|
31077
|
-
|
|
31078
|
-
|
|
31079
|
-
|
|
31080
|
-
|
|
31081
|
-
|
|
31082
|
-
|
|
31083
|
-
|
|
31084
|
-
|
|
31085
|
-
|
|
31086
|
-
|
|
31087
|
-
|
|
31088
|
-
isLeafType as bu,
|
|
31089
|
-
GraphQLSchema as bv,
|
|
31090
|
-
buildSchema as bw,
|
|
31091
|
-
buildASTSchema as bx,
|
|
31092
|
-
parse as by,
|
|
31093
|
-
validate as bz,
|
|
31433
|
+
z as b5,
|
|
31434
|
+
GraphQLScalarType as b6,
|
|
31435
|
+
specifiedRules as b7,
|
|
31436
|
+
GraphQLID as b8,
|
|
31437
|
+
GraphQLBoolean as b9,
|
|
31438
|
+
SchemaMetaFieldDef as bA,
|
|
31439
|
+
TypeMetaFieldDef as bB,
|
|
31440
|
+
TypeNameMetaFieldDef as bC,
|
|
31441
|
+
isCompositeType as bD,
|
|
31442
|
+
isOutputType as bE,
|
|
31443
|
+
isInputType as bF,
|
|
31444
|
+
assertAbstractType as bG,
|
|
31445
|
+
doTypesOverlap as bH,
|
|
31446
|
+
DirectiveLocation as bI,
|
|
31447
|
+
NoUnusedFragmentsRule as bJ,
|
|
31448
|
+
ExecutableDefinitionsRule as bK,
|
|
31449
|
+
validateSchema as bL,
|
|
31450
|
+
sentenceCase as bM,
|
|
31451
|
+
garbageCollect as bN,
|
|
31452
|
+
sortOperations as bO,
|
|
31453
|
+
LZString as bP,
|
|
31454
|
+
undo as bQ,
|
|
31455
|
+
redo as bR,
|
|
31456
|
+
openUrl as bS,
|
|
31457
|
+
useDocumentDispatch as bT,
|
|
31458
|
+
appLoader as bU,
|
|
31459
|
+
GraphQLString as ba,
|
|
31460
|
+
GraphQLFloat as bb,
|
|
31461
|
+
GraphQLInt as bc,
|
|
31462
|
+
GraphQLDirective as bd,
|
|
31463
|
+
GraphQLObjectType as be,
|
|
31464
|
+
GraphQLInterfaceType as bf,
|
|
31465
|
+
GraphQLUnionType as bg,
|
|
31466
|
+
GraphQLInputObjectType as bh,
|
|
31467
|
+
GraphQLEnumType as bi,
|
|
31468
|
+
isListType as bj,
|
|
31469
|
+
GraphQLList as bk,
|
|
31470
|
+
isNonNullType as bl,
|
|
31471
|
+
GraphQLNonNull as bm,
|
|
31472
|
+
isNamedType as bn,
|
|
31473
|
+
getNullableType as bo,
|
|
31474
|
+
isLeafType as bp,
|
|
31475
|
+
GraphQLSchema as bq,
|
|
31476
|
+
buildSchema as br,
|
|
31477
|
+
buildASTSchema as bs,
|
|
31478
|
+
parse as bt,
|
|
31479
|
+
validate as bu,
|
|
31480
|
+
visit as bv,
|
|
31481
|
+
snakeCase as bw,
|
|
31482
|
+
constantCase as bx,
|
|
31483
|
+
isAbstractType as by,
|
|
31484
|
+
BREAK as bz,
|
|
31094
31485
|
createAction as c,
|
|
31095
31486
|
ReorderModuleOperationsInputSchema as d,
|
|
31096
31487
|
DeleteOperationInputSchema as e,
|
|
@@ -31116,4 +31507,4 @@ export {
|
|
|
31116
31507
|
ReorderModulesInputSchema as y,
|
|
31117
31508
|
DeleteModuleInputSchema as z
|
|
31118
31509
|
};
|
|
31119
|
-
//# sourceMappingURL=app-loader-
|
|
31510
|
+
//# sourceMappingURL=app-loader-BgVDAZzK.js.map
|