@kevisual/cli 0.1.25 → 0.1.26
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/assistant-opencode.js +1507 -263
- package/dist/assistant-server.js +1011 -246
- package/dist/assistant.js +616 -112
- package/dist/envision.js +2 -2
- package/package.json +1 -1
- package/readme.md +1 -0
|
@@ -1954,26 +1954,26 @@ var require_escape_html = __commonJS((exports, module) => {
|
|
|
1954
1954
|
if (!match) {
|
|
1955
1955
|
return str;
|
|
1956
1956
|
}
|
|
1957
|
-
var
|
|
1957
|
+
var escape3;
|
|
1958
1958
|
var html = "";
|
|
1959
1959
|
var index = 0;
|
|
1960
1960
|
var lastIndex = 0;
|
|
1961
1961
|
for (index = match.index;index < str.length; index++) {
|
|
1962
1962
|
switch (str.charCodeAt(index)) {
|
|
1963
1963
|
case 34:
|
|
1964
|
-
|
|
1964
|
+
escape3 = """;
|
|
1965
1965
|
break;
|
|
1966
1966
|
case 38:
|
|
1967
|
-
|
|
1967
|
+
escape3 = "&";
|
|
1968
1968
|
break;
|
|
1969
1969
|
case 39:
|
|
1970
|
-
|
|
1970
|
+
escape3 = "'";
|
|
1971
1971
|
break;
|
|
1972
1972
|
case 60:
|
|
1973
|
-
|
|
1973
|
+
escape3 = "<";
|
|
1974
1974
|
break;
|
|
1975
1975
|
case 62:
|
|
1976
|
-
|
|
1976
|
+
escape3 = ">";
|
|
1977
1977
|
break;
|
|
1978
1978
|
default:
|
|
1979
1979
|
continue;
|
|
@@ -1982,7 +1982,7 @@ var require_escape_html = __commonJS((exports, module) => {
|
|
|
1982
1982
|
html += str.substring(lastIndex, index);
|
|
1983
1983
|
}
|
|
1984
1984
|
lastIndex = index + 1;
|
|
1985
|
-
html +=
|
|
1985
|
+
html += escape3;
|
|
1986
1986
|
}
|
|
1987
1987
|
return lastIndex !== index ? html + str.substring(lastIndex, index) : html;
|
|
1988
1988
|
}
|
|
@@ -15133,7 +15133,7 @@ var require_micromatch = __commonJS((exports, module) => {
|
|
|
15133
15133
|
var micromatch = (list3, patterns, options) => {
|
|
15134
15134
|
patterns = [].concat(patterns);
|
|
15135
15135
|
list3 = [].concat(list3);
|
|
15136
|
-
let
|
|
15136
|
+
let omit = new Set;
|
|
15137
15137
|
let keep = new Set;
|
|
15138
15138
|
let items = new Set;
|
|
15139
15139
|
let negatives = 0;
|
|
@@ -15154,15 +15154,15 @@ var require_micromatch = __commonJS((exports, module) => {
|
|
|
15154
15154
|
if (!match)
|
|
15155
15155
|
continue;
|
|
15156
15156
|
if (negated) {
|
|
15157
|
-
|
|
15157
|
+
omit.add(matched.output);
|
|
15158
15158
|
} else {
|
|
15159
|
-
|
|
15159
|
+
omit.delete(matched.output);
|
|
15160
15160
|
keep.add(matched.output);
|
|
15161
15161
|
}
|
|
15162
15162
|
}
|
|
15163
15163
|
}
|
|
15164
15164
|
let result = negatives === patterns.length ? [...items] : [...keep];
|
|
15165
|
-
let matches = result.filter((item) => !
|
|
15165
|
+
let matches = result.filter((item) => !omit.has(item));
|
|
15166
15166
|
if (options && matches.length === 0) {
|
|
15167
15167
|
if (options.failglob === true) {
|
|
15168
15168
|
throw new Error(`No matches found for "${patterns.join(", ")}"`);
|
|
@@ -23714,7 +23714,7 @@ var require_lib2 = __commonJS((exports, module) => {
|
|
|
23714
23714
|
};
|
|
23715
23715
|
});
|
|
23716
23716
|
|
|
23717
|
-
// ../node_modules/.pnpm/@kevisual+router@0.1.
|
|
23717
|
+
// ../node_modules/.pnpm/@kevisual+router@0.1.2/node_modules/@kevisual/router/dist/router.js
|
|
23718
23718
|
import { createRequire as createRequire2 } from "node:module";
|
|
23719
23719
|
import { webcrypto as crypto2 } from "node:crypto";
|
|
23720
23720
|
import http from "node:http";
|
|
@@ -23726,25 +23726,43 @@ var __getProtoOf2 = Object.getPrototypeOf;
|
|
|
23726
23726
|
var __defProp2 = Object.defineProperty;
|
|
23727
23727
|
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
23728
23728
|
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
23729
|
+
function __accessProp2(key) {
|
|
23730
|
+
return this[key];
|
|
23731
|
+
}
|
|
23732
|
+
var __toESMCache_node2;
|
|
23733
|
+
var __toESMCache_esm2;
|
|
23729
23734
|
var __toESM2 = (mod, isNodeMode, target) => {
|
|
23735
|
+
var canCache = mod != null && typeof mod === "object";
|
|
23736
|
+
if (canCache) {
|
|
23737
|
+
var cache = isNodeMode ? __toESMCache_node2 ??= new WeakMap : __toESMCache_esm2 ??= new WeakMap;
|
|
23738
|
+
var cached = cache.get(mod);
|
|
23739
|
+
if (cached)
|
|
23740
|
+
return cached;
|
|
23741
|
+
}
|
|
23730
23742
|
target = mod != null ? __create2(__getProtoOf2(mod)) : {};
|
|
23731
23743
|
const to = isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target;
|
|
23732
23744
|
for (let key of __getOwnPropNames2(mod))
|
|
23733
23745
|
if (!__hasOwnProp2.call(to, key))
|
|
23734
23746
|
__defProp2(to, key, {
|
|
23735
|
-
get: (
|
|
23747
|
+
get: __accessProp2.bind(mod, key),
|
|
23736
23748
|
enumerable: true
|
|
23737
23749
|
});
|
|
23750
|
+
if (canCache)
|
|
23751
|
+
cache.set(mod, to);
|
|
23738
23752
|
return to;
|
|
23739
23753
|
};
|
|
23740
23754
|
var __commonJS2 = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
23755
|
+
var __returnValue2 = (v) => v;
|
|
23756
|
+
function __exportSetter2(name, newValue) {
|
|
23757
|
+
this[name] = __returnValue2.bind(null, newValue);
|
|
23758
|
+
}
|
|
23741
23759
|
var __export2 = (target, all) => {
|
|
23742
23760
|
for (var name in all)
|
|
23743
23761
|
__defProp2(target, name, {
|
|
23744
23762
|
get: all[name],
|
|
23745
23763
|
enumerable: true,
|
|
23746
23764
|
configurable: true,
|
|
23747
|
-
set: (
|
|
23765
|
+
set: __exportSetter2.bind(all, name)
|
|
23748
23766
|
});
|
|
23749
23767
|
};
|
|
23750
23768
|
var __require2 = /* @__PURE__ */ createRequire2(import.meta.url);
|
|
@@ -23924,6 +23942,464 @@ var require_eventemitter3 = __commonJS2((exports, module) => {
|
|
|
23924
23942
|
module.exports = EventEmitter;
|
|
23925
23943
|
}
|
|
23926
23944
|
});
|
|
23945
|
+
var require_core = __commonJS2((exports, module) => {
|
|
23946
|
+
(function(root, factory) {
|
|
23947
|
+
if (typeof exports === "object") {
|
|
23948
|
+
module.exports = exports = factory();
|
|
23949
|
+
} else if (typeof define === "function" && define.amd) {
|
|
23950
|
+
define([], factory);
|
|
23951
|
+
} else {
|
|
23952
|
+
root.CryptoJS = factory();
|
|
23953
|
+
}
|
|
23954
|
+
})(exports, function() {
|
|
23955
|
+
var CryptoJS = CryptoJS || function(Math2, undefined2) {
|
|
23956
|
+
var crypto22;
|
|
23957
|
+
if (typeof window !== "undefined" && window.crypto) {
|
|
23958
|
+
crypto22 = window.crypto;
|
|
23959
|
+
}
|
|
23960
|
+
if (typeof self !== "undefined" && self.crypto) {
|
|
23961
|
+
crypto22 = self.crypto;
|
|
23962
|
+
}
|
|
23963
|
+
if (typeof globalThis !== "undefined" && globalThis.crypto) {
|
|
23964
|
+
crypto22 = globalThis.crypto;
|
|
23965
|
+
}
|
|
23966
|
+
if (!crypto22 && typeof window !== "undefined" && window.msCrypto) {
|
|
23967
|
+
crypto22 = window.msCrypto;
|
|
23968
|
+
}
|
|
23969
|
+
if (!crypto22 && typeof global !== "undefined" && global.crypto) {
|
|
23970
|
+
crypto22 = global.crypto;
|
|
23971
|
+
}
|
|
23972
|
+
if (!crypto22 && true) {
|
|
23973
|
+
try {
|
|
23974
|
+
crypto22 = __require2("crypto");
|
|
23975
|
+
} catch (err) {}
|
|
23976
|
+
}
|
|
23977
|
+
var cryptoSecureRandomInt = function() {
|
|
23978
|
+
if (crypto22) {
|
|
23979
|
+
if (typeof crypto22.getRandomValues === "function") {
|
|
23980
|
+
try {
|
|
23981
|
+
return crypto22.getRandomValues(new Uint32Array(1))[0];
|
|
23982
|
+
} catch (err) {}
|
|
23983
|
+
}
|
|
23984
|
+
if (typeof crypto22.randomBytes === "function") {
|
|
23985
|
+
try {
|
|
23986
|
+
return crypto22.randomBytes(4).readInt32LE();
|
|
23987
|
+
} catch (err) {}
|
|
23988
|
+
}
|
|
23989
|
+
}
|
|
23990
|
+
throw new Error("Native crypto module could not be used to get secure random number.");
|
|
23991
|
+
};
|
|
23992
|
+
var create = Object.create || function() {
|
|
23993
|
+
function F() {}
|
|
23994
|
+
return function(obj) {
|
|
23995
|
+
var subtype;
|
|
23996
|
+
F.prototype = obj;
|
|
23997
|
+
subtype = new F;
|
|
23998
|
+
F.prototype = null;
|
|
23999
|
+
return subtype;
|
|
24000
|
+
};
|
|
24001
|
+
}();
|
|
24002
|
+
var C = {};
|
|
24003
|
+
var C_lib = C.lib = {};
|
|
24004
|
+
var Base = C_lib.Base = function() {
|
|
24005
|
+
return {
|
|
24006
|
+
extend: function(overrides) {
|
|
24007
|
+
var subtype = create(this);
|
|
24008
|
+
if (overrides) {
|
|
24009
|
+
subtype.mixIn(overrides);
|
|
24010
|
+
}
|
|
24011
|
+
if (!subtype.hasOwnProperty("init") || this.init === subtype.init) {
|
|
24012
|
+
subtype.init = function() {
|
|
24013
|
+
subtype.$super.init.apply(this, arguments);
|
|
24014
|
+
};
|
|
24015
|
+
}
|
|
24016
|
+
subtype.init.prototype = subtype;
|
|
24017
|
+
subtype.$super = this;
|
|
24018
|
+
return subtype;
|
|
24019
|
+
},
|
|
24020
|
+
create: function() {
|
|
24021
|
+
var instance = this.extend();
|
|
24022
|
+
instance.init.apply(instance, arguments);
|
|
24023
|
+
return instance;
|
|
24024
|
+
},
|
|
24025
|
+
init: function() {},
|
|
24026
|
+
mixIn: function(properties) {
|
|
24027
|
+
for (var propertyName in properties) {
|
|
24028
|
+
if (properties.hasOwnProperty(propertyName)) {
|
|
24029
|
+
this[propertyName] = properties[propertyName];
|
|
24030
|
+
}
|
|
24031
|
+
}
|
|
24032
|
+
if (properties.hasOwnProperty("toString")) {
|
|
24033
|
+
this.toString = properties.toString;
|
|
24034
|
+
}
|
|
24035
|
+
},
|
|
24036
|
+
clone: function() {
|
|
24037
|
+
return this.init.prototype.extend(this);
|
|
24038
|
+
}
|
|
24039
|
+
};
|
|
24040
|
+
}();
|
|
24041
|
+
var WordArray = C_lib.WordArray = Base.extend({
|
|
24042
|
+
init: function(words2, sigBytes) {
|
|
24043
|
+
words2 = this.words = words2 || [];
|
|
24044
|
+
if (sigBytes != undefined2) {
|
|
24045
|
+
this.sigBytes = sigBytes;
|
|
24046
|
+
} else {
|
|
24047
|
+
this.sigBytes = words2.length * 4;
|
|
24048
|
+
}
|
|
24049
|
+
},
|
|
24050
|
+
toString: function(encoder) {
|
|
24051
|
+
return (encoder || Hex).stringify(this);
|
|
24052
|
+
},
|
|
24053
|
+
concat: function(wordArray) {
|
|
24054
|
+
var thisWords = this.words;
|
|
24055
|
+
var thatWords = wordArray.words;
|
|
24056
|
+
var thisSigBytes = this.sigBytes;
|
|
24057
|
+
var thatSigBytes = wordArray.sigBytes;
|
|
24058
|
+
this.clamp();
|
|
24059
|
+
if (thisSigBytes % 4) {
|
|
24060
|
+
for (var i = 0;i < thatSigBytes; i++) {
|
|
24061
|
+
var thatByte = thatWords[i >>> 2] >>> 24 - i % 4 * 8 & 255;
|
|
24062
|
+
thisWords[thisSigBytes + i >>> 2] |= thatByte << 24 - (thisSigBytes + i) % 4 * 8;
|
|
24063
|
+
}
|
|
24064
|
+
} else {
|
|
24065
|
+
for (var j = 0;j < thatSigBytes; j += 4) {
|
|
24066
|
+
thisWords[thisSigBytes + j >>> 2] = thatWords[j >>> 2];
|
|
24067
|
+
}
|
|
24068
|
+
}
|
|
24069
|
+
this.sigBytes += thatSigBytes;
|
|
24070
|
+
return this;
|
|
24071
|
+
},
|
|
24072
|
+
clamp: function() {
|
|
24073
|
+
var words2 = this.words;
|
|
24074
|
+
var sigBytes = this.sigBytes;
|
|
24075
|
+
words2[sigBytes >>> 2] &= 4294967295 << 32 - sigBytes % 4 * 8;
|
|
24076
|
+
words2.length = Math2.ceil(sigBytes / 4);
|
|
24077
|
+
},
|
|
24078
|
+
clone: function() {
|
|
24079
|
+
var clone3 = Base.clone.call(this);
|
|
24080
|
+
clone3.words = this.words.slice(0);
|
|
24081
|
+
return clone3;
|
|
24082
|
+
},
|
|
24083
|
+
random: function(nBytes) {
|
|
24084
|
+
var words2 = [];
|
|
24085
|
+
for (var i = 0;i < nBytes; i += 4) {
|
|
24086
|
+
words2.push(cryptoSecureRandomInt());
|
|
24087
|
+
}
|
|
24088
|
+
return new WordArray.init(words2, nBytes);
|
|
24089
|
+
}
|
|
24090
|
+
});
|
|
24091
|
+
var C_enc = C.enc = {};
|
|
24092
|
+
var Hex = C_enc.Hex = {
|
|
24093
|
+
stringify: function(wordArray) {
|
|
24094
|
+
var words2 = wordArray.words;
|
|
24095
|
+
var sigBytes = wordArray.sigBytes;
|
|
24096
|
+
var hexChars = [];
|
|
24097
|
+
for (var i = 0;i < sigBytes; i++) {
|
|
24098
|
+
var bite = words2[i >>> 2] >>> 24 - i % 4 * 8 & 255;
|
|
24099
|
+
hexChars.push((bite >>> 4).toString(16));
|
|
24100
|
+
hexChars.push((bite & 15).toString(16));
|
|
24101
|
+
}
|
|
24102
|
+
return hexChars.join("");
|
|
24103
|
+
},
|
|
24104
|
+
parse: function(hexStr) {
|
|
24105
|
+
var hexStrLength = hexStr.length;
|
|
24106
|
+
var words2 = [];
|
|
24107
|
+
for (var i = 0;i < hexStrLength; i += 2) {
|
|
24108
|
+
words2[i >>> 3] |= parseInt(hexStr.substr(i, 2), 16) << 24 - i % 8 * 4;
|
|
24109
|
+
}
|
|
24110
|
+
return new WordArray.init(words2, hexStrLength / 2);
|
|
24111
|
+
}
|
|
24112
|
+
};
|
|
24113
|
+
var Latin1 = C_enc.Latin1 = {
|
|
24114
|
+
stringify: function(wordArray) {
|
|
24115
|
+
var words2 = wordArray.words;
|
|
24116
|
+
var sigBytes = wordArray.sigBytes;
|
|
24117
|
+
var latin1Chars = [];
|
|
24118
|
+
for (var i = 0;i < sigBytes; i++) {
|
|
24119
|
+
var bite = words2[i >>> 2] >>> 24 - i % 4 * 8 & 255;
|
|
24120
|
+
latin1Chars.push(String.fromCharCode(bite));
|
|
24121
|
+
}
|
|
24122
|
+
return latin1Chars.join("");
|
|
24123
|
+
},
|
|
24124
|
+
parse: function(latin1Str) {
|
|
24125
|
+
var latin1StrLength = latin1Str.length;
|
|
24126
|
+
var words2 = [];
|
|
24127
|
+
for (var i = 0;i < latin1StrLength; i++) {
|
|
24128
|
+
words2[i >>> 2] |= (latin1Str.charCodeAt(i) & 255) << 24 - i % 4 * 8;
|
|
24129
|
+
}
|
|
24130
|
+
return new WordArray.init(words2, latin1StrLength);
|
|
24131
|
+
}
|
|
24132
|
+
};
|
|
24133
|
+
var Utf8 = C_enc.Utf8 = {
|
|
24134
|
+
stringify: function(wordArray) {
|
|
24135
|
+
try {
|
|
24136
|
+
return decodeURIComponent(escape(Latin1.stringify(wordArray)));
|
|
24137
|
+
} catch (e) {
|
|
24138
|
+
throw new Error("Malformed UTF-8 data");
|
|
24139
|
+
}
|
|
24140
|
+
},
|
|
24141
|
+
parse: function(utf8Str) {
|
|
24142
|
+
return Latin1.parse(unescape(encodeURIComponent(utf8Str)));
|
|
24143
|
+
}
|
|
24144
|
+
};
|
|
24145
|
+
var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm = Base.extend({
|
|
24146
|
+
reset: function() {
|
|
24147
|
+
this._data = new WordArray.init;
|
|
24148
|
+
this._nDataBytes = 0;
|
|
24149
|
+
},
|
|
24150
|
+
_append: function(data) {
|
|
24151
|
+
if (typeof data == "string") {
|
|
24152
|
+
data = Utf8.parse(data);
|
|
24153
|
+
}
|
|
24154
|
+
this._data.concat(data);
|
|
24155
|
+
this._nDataBytes += data.sigBytes;
|
|
24156
|
+
},
|
|
24157
|
+
_process: function(doFlush) {
|
|
24158
|
+
var processedWords;
|
|
24159
|
+
var data = this._data;
|
|
24160
|
+
var dataWords = data.words;
|
|
24161
|
+
var dataSigBytes = data.sigBytes;
|
|
24162
|
+
var blockSize = this.blockSize;
|
|
24163
|
+
var blockSizeBytes = blockSize * 4;
|
|
24164
|
+
var nBlocksReady = dataSigBytes / blockSizeBytes;
|
|
24165
|
+
if (doFlush) {
|
|
24166
|
+
nBlocksReady = Math2.ceil(nBlocksReady);
|
|
24167
|
+
} else {
|
|
24168
|
+
nBlocksReady = Math2.max((nBlocksReady | 0) - this._minBufferSize, 0);
|
|
24169
|
+
}
|
|
24170
|
+
var nWordsReady = nBlocksReady * blockSize;
|
|
24171
|
+
var nBytesReady = Math2.min(nWordsReady * 4, dataSigBytes);
|
|
24172
|
+
if (nWordsReady) {
|
|
24173
|
+
for (var offset = 0;offset < nWordsReady; offset += blockSize) {
|
|
24174
|
+
this._doProcessBlock(dataWords, offset);
|
|
24175
|
+
}
|
|
24176
|
+
processedWords = dataWords.splice(0, nWordsReady);
|
|
24177
|
+
data.sigBytes -= nBytesReady;
|
|
24178
|
+
}
|
|
24179
|
+
return new WordArray.init(processedWords, nBytesReady);
|
|
24180
|
+
},
|
|
24181
|
+
clone: function() {
|
|
24182
|
+
var clone3 = Base.clone.call(this);
|
|
24183
|
+
clone3._data = this._data.clone();
|
|
24184
|
+
return clone3;
|
|
24185
|
+
},
|
|
24186
|
+
_minBufferSize: 0
|
|
24187
|
+
});
|
|
24188
|
+
var Hasher = C_lib.Hasher = BufferedBlockAlgorithm.extend({
|
|
24189
|
+
cfg: Base.extend(),
|
|
24190
|
+
init: function(cfg) {
|
|
24191
|
+
this.cfg = this.cfg.extend(cfg);
|
|
24192
|
+
this.reset();
|
|
24193
|
+
},
|
|
24194
|
+
reset: function() {
|
|
24195
|
+
BufferedBlockAlgorithm.reset.call(this);
|
|
24196
|
+
this._doReset();
|
|
24197
|
+
},
|
|
24198
|
+
update: function(messageUpdate) {
|
|
24199
|
+
this._append(messageUpdate);
|
|
24200
|
+
this._process();
|
|
24201
|
+
return this;
|
|
24202
|
+
},
|
|
24203
|
+
finalize: function(messageUpdate) {
|
|
24204
|
+
if (messageUpdate) {
|
|
24205
|
+
this._append(messageUpdate);
|
|
24206
|
+
}
|
|
24207
|
+
var hash2 = this._doFinalize();
|
|
24208
|
+
return hash2;
|
|
24209
|
+
},
|
|
24210
|
+
blockSize: 512 / 32,
|
|
24211
|
+
_createHelper: function(hasher) {
|
|
24212
|
+
return function(message, cfg) {
|
|
24213
|
+
return new hasher.init(cfg).finalize(message);
|
|
24214
|
+
};
|
|
24215
|
+
},
|
|
24216
|
+
_createHmacHelper: function(hasher) {
|
|
24217
|
+
return function(message, key) {
|
|
24218
|
+
return new C_algo.HMAC.init(hasher, key).finalize(message);
|
|
24219
|
+
};
|
|
24220
|
+
}
|
|
24221
|
+
});
|
|
24222
|
+
var C_algo = C.algo = {};
|
|
24223
|
+
return C;
|
|
24224
|
+
}(Math);
|
|
24225
|
+
return CryptoJS;
|
|
24226
|
+
});
|
|
24227
|
+
});
|
|
24228
|
+
var require_md5 = __commonJS2((exports, module) => {
|
|
24229
|
+
(function(root, factory) {
|
|
24230
|
+
if (typeof exports === "object") {
|
|
24231
|
+
module.exports = exports = factory(require_core());
|
|
24232
|
+
} else if (typeof define === "function" && define.amd) {
|
|
24233
|
+
define(["./core"], factory);
|
|
24234
|
+
} else {
|
|
24235
|
+
factory(root.CryptoJS);
|
|
24236
|
+
}
|
|
24237
|
+
})(exports, function(CryptoJS) {
|
|
24238
|
+
(function(Math2) {
|
|
24239
|
+
var C = CryptoJS;
|
|
24240
|
+
var C_lib = C.lib;
|
|
24241
|
+
var WordArray = C_lib.WordArray;
|
|
24242
|
+
var Hasher = C_lib.Hasher;
|
|
24243
|
+
var C_algo = C.algo;
|
|
24244
|
+
var T = [];
|
|
24245
|
+
(function() {
|
|
24246
|
+
for (var i = 0;i < 64; i++) {
|
|
24247
|
+
T[i] = Math2.abs(Math2.sin(i + 1)) * 4294967296 | 0;
|
|
24248
|
+
}
|
|
24249
|
+
})();
|
|
24250
|
+
var MD5 = C_algo.MD5 = Hasher.extend({
|
|
24251
|
+
_doReset: function() {
|
|
24252
|
+
this._hash = new WordArray.init([
|
|
24253
|
+
1732584193,
|
|
24254
|
+
4023233417,
|
|
24255
|
+
2562383102,
|
|
24256
|
+
271733878
|
|
24257
|
+
]);
|
|
24258
|
+
},
|
|
24259
|
+
_doProcessBlock: function(M, offset) {
|
|
24260
|
+
for (var i = 0;i < 16; i++) {
|
|
24261
|
+
var offset_i = offset + i;
|
|
24262
|
+
var M_offset_i = M[offset_i];
|
|
24263
|
+
M[offset_i] = (M_offset_i << 8 | M_offset_i >>> 24) & 16711935 | (M_offset_i << 24 | M_offset_i >>> 8) & 4278255360;
|
|
24264
|
+
}
|
|
24265
|
+
var H = this._hash.words;
|
|
24266
|
+
var M_offset_0 = M[offset + 0];
|
|
24267
|
+
var M_offset_1 = M[offset + 1];
|
|
24268
|
+
var M_offset_2 = M[offset + 2];
|
|
24269
|
+
var M_offset_3 = M[offset + 3];
|
|
24270
|
+
var M_offset_4 = M[offset + 4];
|
|
24271
|
+
var M_offset_5 = M[offset + 5];
|
|
24272
|
+
var M_offset_6 = M[offset + 6];
|
|
24273
|
+
var M_offset_7 = M[offset + 7];
|
|
24274
|
+
var M_offset_8 = M[offset + 8];
|
|
24275
|
+
var M_offset_9 = M[offset + 9];
|
|
24276
|
+
var M_offset_10 = M[offset + 10];
|
|
24277
|
+
var M_offset_11 = M[offset + 11];
|
|
24278
|
+
var M_offset_12 = M[offset + 12];
|
|
24279
|
+
var M_offset_13 = M[offset + 13];
|
|
24280
|
+
var M_offset_14 = M[offset + 14];
|
|
24281
|
+
var M_offset_15 = M[offset + 15];
|
|
24282
|
+
var a = H[0];
|
|
24283
|
+
var b = H[1];
|
|
24284
|
+
var c = H[2];
|
|
24285
|
+
var d = H[3];
|
|
24286
|
+
a = FF(a, b, c, d, M_offset_0, 7, T[0]);
|
|
24287
|
+
d = FF(d, a, b, c, M_offset_1, 12, T[1]);
|
|
24288
|
+
c = FF(c, d, a, b, M_offset_2, 17, T[2]);
|
|
24289
|
+
b = FF(b, c, d, a, M_offset_3, 22, T[3]);
|
|
24290
|
+
a = FF(a, b, c, d, M_offset_4, 7, T[4]);
|
|
24291
|
+
d = FF(d, a, b, c, M_offset_5, 12, T[5]);
|
|
24292
|
+
c = FF(c, d, a, b, M_offset_6, 17, T[6]);
|
|
24293
|
+
b = FF(b, c, d, a, M_offset_7, 22, T[7]);
|
|
24294
|
+
a = FF(a, b, c, d, M_offset_8, 7, T[8]);
|
|
24295
|
+
d = FF(d, a, b, c, M_offset_9, 12, T[9]);
|
|
24296
|
+
c = FF(c, d, a, b, M_offset_10, 17, T[10]);
|
|
24297
|
+
b = FF(b, c, d, a, M_offset_11, 22, T[11]);
|
|
24298
|
+
a = FF(a, b, c, d, M_offset_12, 7, T[12]);
|
|
24299
|
+
d = FF(d, a, b, c, M_offset_13, 12, T[13]);
|
|
24300
|
+
c = FF(c, d, a, b, M_offset_14, 17, T[14]);
|
|
24301
|
+
b = FF(b, c, d, a, M_offset_15, 22, T[15]);
|
|
24302
|
+
a = GG(a, b, c, d, M_offset_1, 5, T[16]);
|
|
24303
|
+
d = GG(d, a, b, c, M_offset_6, 9, T[17]);
|
|
24304
|
+
c = GG(c, d, a, b, M_offset_11, 14, T[18]);
|
|
24305
|
+
b = GG(b, c, d, a, M_offset_0, 20, T[19]);
|
|
24306
|
+
a = GG(a, b, c, d, M_offset_5, 5, T[20]);
|
|
24307
|
+
d = GG(d, a, b, c, M_offset_10, 9, T[21]);
|
|
24308
|
+
c = GG(c, d, a, b, M_offset_15, 14, T[22]);
|
|
24309
|
+
b = GG(b, c, d, a, M_offset_4, 20, T[23]);
|
|
24310
|
+
a = GG(a, b, c, d, M_offset_9, 5, T[24]);
|
|
24311
|
+
d = GG(d, a, b, c, M_offset_14, 9, T[25]);
|
|
24312
|
+
c = GG(c, d, a, b, M_offset_3, 14, T[26]);
|
|
24313
|
+
b = GG(b, c, d, a, M_offset_8, 20, T[27]);
|
|
24314
|
+
a = GG(a, b, c, d, M_offset_13, 5, T[28]);
|
|
24315
|
+
d = GG(d, a, b, c, M_offset_2, 9, T[29]);
|
|
24316
|
+
c = GG(c, d, a, b, M_offset_7, 14, T[30]);
|
|
24317
|
+
b = GG(b, c, d, a, M_offset_12, 20, T[31]);
|
|
24318
|
+
a = HH(a, b, c, d, M_offset_5, 4, T[32]);
|
|
24319
|
+
d = HH(d, a, b, c, M_offset_8, 11, T[33]);
|
|
24320
|
+
c = HH(c, d, a, b, M_offset_11, 16, T[34]);
|
|
24321
|
+
b = HH(b, c, d, a, M_offset_14, 23, T[35]);
|
|
24322
|
+
a = HH(a, b, c, d, M_offset_1, 4, T[36]);
|
|
24323
|
+
d = HH(d, a, b, c, M_offset_4, 11, T[37]);
|
|
24324
|
+
c = HH(c, d, a, b, M_offset_7, 16, T[38]);
|
|
24325
|
+
b = HH(b, c, d, a, M_offset_10, 23, T[39]);
|
|
24326
|
+
a = HH(a, b, c, d, M_offset_13, 4, T[40]);
|
|
24327
|
+
d = HH(d, a, b, c, M_offset_0, 11, T[41]);
|
|
24328
|
+
c = HH(c, d, a, b, M_offset_3, 16, T[42]);
|
|
24329
|
+
b = HH(b, c, d, a, M_offset_6, 23, T[43]);
|
|
24330
|
+
a = HH(a, b, c, d, M_offset_9, 4, T[44]);
|
|
24331
|
+
d = HH(d, a, b, c, M_offset_12, 11, T[45]);
|
|
24332
|
+
c = HH(c, d, a, b, M_offset_15, 16, T[46]);
|
|
24333
|
+
b = HH(b, c, d, a, M_offset_2, 23, T[47]);
|
|
24334
|
+
a = II(a, b, c, d, M_offset_0, 6, T[48]);
|
|
24335
|
+
d = II(d, a, b, c, M_offset_7, 10, T[49]);
|
|
24336
|
+
c = II(c, d, a, b, M_offset_14, 15, T[50]);
|
|
24337
|
+
b = II(b, c, d, a, M_offset_5, 21, T[51]);
|
|
24338
|
+
a = II(a, b, c, d, M_offset_12, 6, T[52]);
|
|
24339
|
+
d = II(d, a, b, c, M_offset_3, 10, T[53]);
|
|
24340
|
+
c = II(c, d, a, b, M_offset_10, 15, T[54]);
|
|
24341
|
+
b = II(b, c, d, a, M_offset_1, 21, T[55]);
|
|
24342
|
+
a = II(a, b, c, d, M_offset_8, 6, T[56]);
|
|
24343
|
+
d = II(d, a, b, c, M_offset_15, 10, T[57]);
|
|
24344
|
+
c = II(c, d, a, b, M_offset_6, 15, T[58]);
|
|
24345
|
+
b = II(b, c, d, a, M_offset_13, 21, T[59]);
|
|
24346
|
+
a = II(a, b, c, d, M_offset_4, 6, T[60]);
|
|
24347
|
+
d = II(d, a, b, c, M_offset_11, 10, T[61]);
|
|
24348
|
+
c = II(c, d, a, b, M_offset_2, 15, T[62]);
|
|
24349
|
+
b = II(b, c, d, a, M_offset_9, 21, T[63]);
|
|
24350
|
+
H[0] = H[0] + a | 0;
|
|
24351
|
+
H[1] = H[1] + b | 0;
|
|
24352
|
+
H[2] = H[2] + c | 0;
|
|
24353
|
+
H[3] = H[3] + d | 0;
|
|
24354
|
+
},
|
|
24355
|
+
_doFinalize: function() {
|
|
24356
|
+
var data = this._data;
|
|
24357
|
+
var dataWords = data.words;
|
|
24358
|
+
var nBitsTotal = this._nDataBytes * 8;
|
|
24359
|
+
var nBitsLeft = data.sigBytes * 8;
|
|
24360
|
+
dataWords[nBitsLeft >>> 5] |= 128 << 24 - nBitsLeft % 32;
|
|
24361
|
+
var nBitsTotalH = Math2.floor(nBitsTotal / 4294967296);
|
|
24362
|
+
var nBitsTotalL = nBitsTotal;
|
|
24363
|
+
dataWords[(nBitsLeft + 64 >>> 9 << 4) + 15] = (nBitsTotalH << 8 | nBitsTotalH >>> 24) & 16711935 | (nBitsTotalH << 24 | nBitsTotalH >>> 8) & 4278255360;
|
|
24364
|
+
dataWords[(nBitsLeft + 64 >>> 9 << 4) + 14] = (nBitsTotalL << 8 | nBitsTotalL >>> 24) & 16711935 | (nBitsTotalL << 24 | nBitsTotalL >>> 8) & 4278255360;
|
|
24365
|
+
data.sigBytes = (dataWords.length + 1) * 4;
|
|
24366
|
+
this._process();
|
|
24367
|
+
var hash2 = this._hash;
|
|
24368
|
+
var H = hash2.words;
|
|
24369
|
+
for (var i = 0;i < 4; i++) {
|
|
24370
|
+
var H_i = H[i];
|
|
24371
|
+
H[i] = (H_i << 8 | H_i >>> 24) & 16711935 | (H_i << 24 | H_i >>> 8) & 4278255360;
|
|
24372
|
+
}
|
|
24373
|
+
return hash2;
|
|
24374
|
+
},
|
|
24375
|
+
clone: function() {
|
|
24376
|
+
var clone3 = Hasher.clone.call(this);
|
|
24377
|
+
clone3._hash = this._hash.clone();
|
|
24378
|
+
return clone3;
|
|
24379
|
+
}
|
|
24380
|
+
});
|
|
24381
|
+
function FF(a, b, c, d, x, s, t) {
|
|
24382
|
+
var n = a + (b & c | ~b & d) + x + t;
|
|
24383
|
+
return (n << s | n >>> 32 - s) + b;
|
|
24384
|
+
}
|
|
24385
|
+
function GG(a, b, c, d, x, s, t) {
|
|
24386
|
+
var n = a + (b & d | c & ~d) + x + t;
|
|
24387
|
+
return (n << s | n >>> 32 - s) + b;
|
|
24388
|
+
}
|
|
24389
|
+
function HH(a, b, c, d, x, s, t) {
|
|
24390
|
+
var n = a + (b ^ c ^ d) + x + t;
|
|
24391
|
+
return (n << s | n >>> 32 - s) + b;
|
|
24392
|
+
}
|
|
24393
|
+
function II(a, b, c, d, x, s, t) {
|
|
24394
|
+
var n = a + (c ^ (b | ~d)) + x + t;
|
|
24395
|
+
return (n << s | n >>> 32 - s) + b;
|
|
24396
|
+
}
|
|
24397
|
+
C.MD5 = Hasher._createHelper(MD5);
|
|
24398
|
+
C.HmacMD5 = Hasher._createHmacHelper(MD5);
|
|
24399
|
+
})(Math);
|
|
24400
|
+
return CryptoJS.MD5;
|
|
24401
|
+
});
|
|
24402
|
+
});
|
|
23927
24403
|
var require_constants = __commonJS2((exports, module) => {
|
|
23928
24404
|
var BINARY_TYPES = ["nodebuffer", "arraybuffer", "fragments"];
|
|
23929
24405
|
var hasBlob = typeof Blob !== "undefined";
|
|
@@ -23931,6 +24407,7 @@ var require_constants = __commonJS2((exports, module) => {
|
|
|
23931
24407
|
BINARY_TYPES.push("blob");
|
|
23932
24408
|
module.exports = {
|
|
23933
24409
|
BINARY_TYPES,
|
|
24410
|
+
CLOSE_TIMEOUT: 30000,
|
|
23934
24411
|
EMPTY_BUFFER: Buffer.alloc(0),
|
|
23935
24412
|
GUID: "258EAFA5-E914-47DA-95CA-C5AB0DC85B11",
|
|
23936
24413
|
hasBlob,
|
|
@@ -24266,14 +24743,14 @@ var require_permessage_deflate = __commonJS2((exports, module) => {
|
|
|
24266
24743
|
}
|
|
24267
24744
|
}
|
|
24268
24745
|
module.exports = PerMessageDeflate;
|
|
24269
|
-
function deflateOnData(
|
|
24270
|
-
this[kBuffers].push(
|
|
24271
|
-
this[kTotalLength] +=
|
|
24746
|
+
function deflateOnData(chunk2) {
|
|
24747
|
+
this[kBuffers].push(chunk2);
|
|
24748
|
+
this[kTotalLength] += chunk2.length;
|
|
24272
24749
|
}
|
|
24273
|
-
function inflateOnData(
|
|
24274
|
-
this[kTotalLength] +=
|
|
24750
|
+
function inflateOnData(chunk2) {
|
|
24751
|
+
this[kTotalLength] += chunk2.length;
|
|
24275
24752
|
if (this[kPerMessageDeflate]._maxPayload < 1 || this[kTotalLength] <= this[kPerMessageDeflate]._maxPayload) {
|
|
24276
|
-
this[kBuffers].push(
|
|
24753
|
+
this[kBuffers].push(chunk2);
|
|
24277
24754
|
return;
|
|
24278
24755
|
}
|
|
24279
24756
|
this[kError] = new RangeError("Max payload size exceeded");
|
|
@@ -24284,6 +24761,10 @@ var require_permessage_deflate = __commonJS2((exports, module) => {
|
|
|
24284
24761
|
}
|
|
24285
24762
|
function inflateOnError(err) {
|
|
24286
24763
|
this[kPerMessageDeflate]._inflate = null;
|
|
24764
|
+
if (this[kError]) {
|
|
24765
|
+
this[kCallback](this[kError]);
|
|
24766
|
+
return;
|
|
24767
|
+
}
|
|
24287
24768
|
err[kStatusCode] = 1007;
|
|
24288
24769
|
this[kCallback](err);
|
|
24289
24770
|
}
|
|
@@ -24451,11 +24932,11 @@ var require_validation = __commonJS2((exports, module) => {
|
|
|
24451
24932
|
}
|
|
24452
24933
|
return true;
|
|
24453
24934
|
}
|
|
24454
|
-
function
|
|
24935
|
+
function isBlob2(value) {
|
|
24455
24936
|
return hasBlob && typeof value === "object" && typeof value.arrayBuffer === "function" && typeof value.type === "string" && typeof value.stream === "function" && (value[Symbol.toStringTag] === "Blob" || value[Symbol.toStringTag] === "File");
|
|
24456
24937
|
}
|
|
24457
24938
|
module.exports = {
|
|
24458
|
-
isBlob,
|
|
24939
|
+
isBlob: isBlob2,
|
|
24459
24940
|
isValidStatusCode,
|
|
24460
24941
|
isValidUTF8: _isValidUTF8,
|
|
24461
24942
|
tokenChars
|
|
@@ -24512,11 +24993,11 @@ var require_receiver = __commonJS2((exports, module) => {
|
|
|
24512
24993
|
this._loop = false;
|
|
24513
24994
|
this._state = GET_INFO;
|
|
24514
24995
|
}
|
|
24515
|
-
_write(
|
|
24996
|
+
_write(chunk2, encoding, cb) {
|
|
24516
24997
|
if (this._opcode === 8 && this._state == GET_INFO)
|
|
24517
24998
|
return cb();
|
|
24518
|
-
this._bufferedBytes +=
|
|
24519
|
-
this._buffers.push(
|
|
24999
|
+
this._bufferedBytes += chunk2.length;
|
|
25000
|
+
this._buffers.push(chunk2);
|
|
24520
25001
|
this.startLoop(cb);
|
|
24521
25002
|
}
|
|
24522
25003
|
consume(n) {
|
|
@@ -24850,7 +25331,7 @@ var require_sender = __commonJS2((exports, module) => {
|
|
|
24850
25331
|
var { randomFillSync } = __require2("crypto");
|
|
24851
25332
|
var PerMessageDeflate = require_permessage_deflate();
|
|
24852
25333
|
var { EMPTY_BUFFER, kWebSocket, NOOP } = require_constants();
|
|
24853
|
-
var { isBlob, isValidStatusCode } = require_validation();
|
|
25334
|
+
var { isBlob: isBlob2, isValidStatusCode } = require_validation();
|
|
24854
25335
|
var { mask: applyMask, toBuffer } = require_buffer_util();
|
|
24855
25336
|
var kByteLength = Symbol("kByteLength");
|
|
24856
25337
|
var maskBuffer = Buffer.alloc(4);
|
|
@@ -24993,7 +25474,7 @@ var require_sender = __commonJS2((exports, module) => {
|
|
|
24993
25474
|
if (typeof data === "string") {
|
|
24994
25475
|
byteLength = Buffer.byteLength(data);
|
|
24995
25476
|
readOnly = false;
|
|
24996
|
-
} else if (
|
|
25477
|
+
} else if (isBlob2(data)) {
|
|
24997
25478
|
byteLength = data.size;
|
|
24998
25479
|
readOnly = false;
|
|
24999
25480
|
} else {
|
|
@@ -25014,7 +25495,7 @@ var require_sender = __commonJS2((exports, module) => {
|
|
|
25014
25495
|
readOnly,
|
|
25015
25496
|
rsv1: false
|
|
25016
25497
|
};
|
|
25017
|
-
if (
|
|
25498
|
+
if (isBlob2(data)) {
|
|
25018
25499
|
if (this._state !== DEFAULT) {
|
|
25019
25500
|
this.enqueue([this.getBlobData, data, false, options, cb]);
|
|
25020
25501
|
} else {
|
|
@@ -25032,7 +25513,7 @@ var require_sender = __commonJS2((exports, module) => {
|
|
|
25032
25513
|
if (typeof data === "string") {
|
|
25033
25514
|
byteLength = Buffer.byteLength(data);
|
|
25034
25515
|
readOnly = false;
|
|
25035
|
-
} else if (
|
|
25516
|
+
} else if (isBlob2(data)) {
|
|
25036
25517
|
byteLength = data.size;
|
|
25037
25518
|
readOnly = false;
|
|
25038
25519
|
} else {
|
|
@@ -25053,7 +25534,7 @@ var require_sender = __commonJS2((exports, module) => {
|
|
|
25053
25534
|
readOnly,
|
|
25054
25535
|
rsv1: false
|
|
25055
25536
|
};
|
|
25056
|
-
if (
|
|
25537
|
+
if (isBlob2(data)) {
|
|
25057
25538
|
if (this._state !== DEFAULT) {
|
|
25058
25539
|
this.enqueue([this.getBlobData, data, false, options, cb]);
|
|
25059
25540
|
} else {
|
|
@@ -25074,7 +25555,7 @@ var require_sender = __commonJS2((exports, module) => {
|
|
|
25074
25555
|
if (typeof data === "string") {
|
|
25075
25556
|
byteLength = Buffer.byteLength(data);
|
|
25076
25557
|
readOnly = false;
|
|
25077
|
-
} else if (
|
|
25558
|
+
} else if (isBlob2(data)) {
|
|
25078
25559
|
byteLength = data.size;
|
|
25079
25560
|
readOnly = false;
|
|
25080
25561
|
} else {
|
|
@@ -25104,7 +25585,7 @@ var require_sender = __commonJS2((exports, module) => {
|
|
|
25104
25585
|
readOnly,
|
|
25105
25586
|
rsv1
|
|
25106
25587
|
};
|
|
25107
|
-
if (
|
|
25588
|
+
if (isBlob2(data)) {
|
|
25108
25589
|
if (this._state !== DEFAULT) {
|
|
25109
25590
|
this.enqueue([this.getBlobData, data, this._compress, opts, cb]);
|
|
25110
25591
|
} else {
|
|
@@ -25521,9 +26002,10 @@ var require_websocket = __commonJS2((exports, module) => {
|
|
|
25521
26002
|
var PerMessageDeflate = require_permessage_deflate();
|
|
25522
26003
|
var Receiver = require_receiver();
|
|
25523
26004
|
var Sender = require_sender();
|
|
25524
|
-
var { isBlob } = require_validation();
|
|
26005
|
+
var { isBlob: isBlob2 } = require_validation();
|
|
25525
26006
|
var {
|
|
25526
26007
|
BINARY_TYPES,
|
|
26008
|
+
CLOSE_TIMEOUT,
|
|
25527
26009
|
EMPTY_BUFFER,
|
|
25528
26010
|
GUID,
|
|
25529
26011
|
kForOnEventAttribute,
|
|
@@ -25537,7 +26019,6 @@ var require_websocket = __commonJS2((exports, module) => {
|
|
|
25537
26019
|
} = require_event_target();
|
|
25538
26020
|
var { format, parse: parse5 } = require_extension();
|
|
25539
26021
|
var { toBuffer } = require_buffer_util();
|
|
25540
|
-
var closeTimeout = 30 * 1000;
|
|
25541
26022
|
var kAborted = Symbol("kAborted");
|
|
25542
26023
|
var protocolVersions = [8, 13];
|
|
25543
26024
|
var readyStates = ["CONNECTING", "OPEN", "CLOSING", "CLOSED"];
|
|
@@ -25577,6 +26058,7 @@ var require_websocket = __commonJS2((exports, module) => {
|
|
|
25577
26058
|
initAsClient(this, address, protocols, options);
|
|
25578
26059
|
} else {
|
|
25579
26060
|
this._autoPong = options.autoPong;
|
|
26061
|
+
this._closeTimeout = options.closeTimeout;
|
|
25580
26062
|
this._isServer = true;
|
|
25581
26063
|
}
|
|
25582
26064
|
}
|
|
@@ -25622,7 +26104,7 @@ var require_websocket = __commonJS2((exports, module) => {
|
|
|
25622
26104
|
get url() {
|
|
25623
26105
|
return this._url;
|
|
25624
26106
|
}
|
|
25625
|
-
setSocket(socket,
|
|
26107
|
+
setSocket(socket, head2, options) {
|
|
25626
26108
|
const receiver = new Receiver({
|
|
25627
26109
|
allowSynchronousEvents: options.allowSynchronousEvents,
|
|
25628
26110
|
binaryType: this.binaryType,
|
|
@@ -25649,8 +26131,8 @@ var require_websocket = __commonJS2((exports, module) => {
|
|
|
25649
26131
|
socket.setTimeout(0);
|
|
25650
26132
|
if (socket.setNoDelay)
|
|
25651
26133
|
socket.setNoDelay();
|
|
25652
|
-
if (
|
|
25653
|
-
socket.unshift(
|
|
26134
|
+
if (head2.length > 0)
|
|
26135
|
+
socket.unshift(head2);
|
|
25654
26136
|
socket.on("close", socketOnClose);
|
|
25655
26137
|
socket.on("data", socketOnData);
|
|
25656
26138
|
socket.on("end", socketOnEnd);
|
|
@@ -25868,6 +26350,7 @@ var require_websocket = __commonJS2((exports, module) => {
|
|
|
25868
26350
|
const opts = {
|
|
25869
26351
|
allowSynchronousEvents: true,
|
|
25870
26352
|
autoPong: true,
|
|
26353
|
+
closeTimeout: CLOSE_TIMEOUT,
|
|
25871
26354
|
protocolVersion: protocolVersions[1],
|
|
25872
26355
|
maxPayload: 100 * 1024 * 1024,
|
|
25873
26356
|
skipUTF8Validation: false,
|
|
@@ -25885,6 +26368,7 @@ var require_websocket = __commonJS2((exports, module) => {
|
|
|
25885
26368
|
port: undefined
|
|
25886
26369
|
};
|
|
25887
26370
|
websocket._autoPong = opts.autoPong;
|
|
26371
|
+
websocket._closeTimeout = opts.closeTimeout;
|
|
25888
26372
|
if (!protocolVersions.includes(opts.protocolVersion)) {
|
|
25889
26373
|
throw new RangeError(`Unsupported protocol version: ${opts.protocolVersion} ` + `(supported versions: ${protocolVersions.join(", ")})`);
|
|
25890
26374
|
}
|
|
@@ -26037,7 +26521,7 @@ var require_websocket = __commonJS2((exports, module) => {
|
|
|
26037
26521
|
abortHandshake(websocket, req, `Unexpected server response: ${res.statusCode}`);
|
|
26038
26522
|
}
|
|
26039
26523
|
});
|
|
26040
|
-
req.on("upgrade", (res, socket,
|
|
26524
|
+
req.on("upgrade", (res, socket, head2) => {
|
|
26041
26525
|
websocket.emit("upgrade", res);
|
|
26042
26526
|
if (websocket.readyState !== WebSocket2.CONNECTING)
|
|
26043
26527
|
return;
|
|
@@ -26099,7 +26583,7 @@ var require_websocket = __commonJS2((exports, module) => {
|
|
|
26099
26583
|
}
|
|
26100
26584
|
websocket._extensions[PerMessageDeflate.extensionName] = perMessageDeflate;
|
|
26101
26585
|
}
|
|
26102
|
-
websocket.setSocket(socket,
|
|
26586
|
+
websocket.setSocket(socket, head2, {
|
|
26103
26587
|
allowSynchronousEvents: opts.allowSynchronousEvents,
|
|
26104
26588
|
generateMask: opts.generateMask,
|
|
26105
26589
|
maxPayload: opts.maxPayload,
|
|
@@ -26148,7 +26632,7 @@ var require_websocket = __commonJS2((exports, module) => {
|
|
|
26148
26632
|
}
|
|
26149
26633
|
function sendAfterClose(websocket, data, cb) {
|
|
26150
26634
|
if (data) {
|
|
26151
|
-
const length =
|
|
26635
|
+
const length = isBlob2(data) ? data.size : toBuffer(data).length;
|
|
26152
26636
|
if (websocket._socket)
|
|
26153
26637
|
websocket._sender._bufferedBytes += length;
|
|
26154
26638
|
else
|
|
@@ -26223,7 +26707,7 @@ var require_websocket = __commonJS2((exports, module) => {
|
|
|
26223
26707
|
}
|
|
26224
26708
|
}
|
|
26225
26709
|
function setCloseTimer(websocket) {
|
|
26226
|
-
websocket._closeTimer = setTimeout(websocket._socket.destroy.bind(websocket._socket),
|
|
26710
|
+
websocket._closeTimer = setTimeout(websocket._socket.destroy.bind(websocket._socket), websocket._closeTimeout);
|
|
26227
26711
|
}
|
|
26228
26712
|
function socketOnClose() {
|
|
26229
26713
|
const websocket = this[kWebSocket];
|
|
@@ -26231,9 +26715,9 @@ var require_websocket = __commonJS2((exports, module) => {
|
|
|
26231
26715
|
this.removeListener("data", socketOnData);
|
|
26232
26716
|
this.removeListener("end", socketOnEnd);
|
|
26233
26717
|
websocket._readyState = WebSocket2.CLOSING;
|
|
26234
|
-
|
|
26235
|
-
|
|
26236
|
-
websocket._receiver.write(
|
|
26718
|
+
if (!this._readableState.endEmitted && !websocket._closeFrameReceived && !websocket._receiver._writableState.errorEmitted && this._readableState.length !== 0) {
|
|
26719
|
+
const chunk2 = this.read(this._readableState.length);
|
|
26720
|
+
websocket._receiver.write(chunk2);
|
|
26237
26721
|
}
|
|
26238
26722
|
websocket._receiver.end();
|
|
26239
26723
|
this[kWebSocket] = undefined;
|
|
@@ -26245,8 +26729,8 @@ var require_websocket = __commonJS2((exports, module) => {
|
|
|
26245
26729
|
websocket._receiver.on("finish", receiverOnFinish);
|
|
26246
26730
|
}
|
|
26247
26731
|
}
|
|
26248
|
-
function socketOnData(
|
|
26249
|
-
if (!this[kWebSocket]._receiver.write(
|
|
26732
|
+
function socketOnData(chunk2) {
|
|
26733
|
+
if (!this[kWebSocket]._receiver.write(chunk2)) {
|
|
26250
26734
|
this.pause();
|
|
26251
26735
|
}
|
|
26252
26736
|
}
|
|
@@ -26352,14 +26836,14 @@ var require_stream = __commonJS2((exports, module) => {
|
|
|
26352
26836
|
if (ws.isPaused)
|
|
26353
26837
|
ws.resume();
|
|
26354
26838
|
};
|
|
26355
|
-
duplex._write = function(
|
|
26839
|
+
duplex._write = function(chunk2, encoding, callback) {
|
|
26356
26840
|
if (ws.readyState === ws.CONNECTING) {
|
|
26357
26841
|
ws.once("open", function open() {
|
|
26358
|
-
duplex._write(
|
|
26842
|
+
duplex._write(chunk2, encoding, callback);
|
|
26359
26843
|
});
|
|
26360
26844
|
return;
|
|
26361
26845
|
}
|
|
26362
|
-
ws.send(
|
|
26846
|
+
ws.send(chunk2, callback);
|
|
26363
26847
|
};
|
|
26364
26848
|
duplex.on("end", duplexOnEnd);
|
|
26365
26849
|
duplex.on("error", duplexOnError);
|
|
@@ -26419,7 +26903,7 @@ var require_websocket_server = __commonJS2((exports, module) => {
|
|
|
26419
26903
|
var PerMessageDeflate = require_permessage_deflate();
|
|
26420
26904
|
var subprotocol = require_subprotocol();
|
|
26421
26905
|
var WebSocket2 = require_websocket();
|
|
26422
|
-
var { GUID, kWebSocket } = require_constants();
|
|
26906
|
+
var { CLOSE_TIMEOUT, GUID, kWebSocket } = require_constants();
|
|
26423
26907
|
var keyRegex = /^[+/0-9A-Za-z]{22}==$/;
|
|
26424
26908
|
var RUNNING = 0;
|
|
26425
26909
|
var CLOSING = 1;
|
|
@@ -26436,6 +26920,7 @@ var require_websocket_server = __commonJS2((exports, module) => {
|
|
|
26436
26920
|
perMessageDeflate: false,
|
|
26437
26921
|
handleProtocols: null,
|
|
26438
26922
|
clientTracking: true,
|
|
26923
|
+
closeTimeout: CLOSE_TIMEOUT,
|
|
26439
26924
|
verifyClient: null,
|
|
26440
26925
|
noServer: false,
|
|
26441
26926
|
backlog: null,
|
|
@@ -26467,8 +26952,8 @@ var require_websocket_server = __commonJS2((exports, module) => {
|
|
|
26467
26952
|
this._removeListeners = addListeners(this._server, {
|
|
26468
26953
|
listening: this.emit.bind(this, "listening"),
|
|
26469
26954
|
error: this.emit.bind(this, "error"),
|
|
26470
|
-
upgrade: (req, socket,
|
|
26471
|
-
this.handleUpgrade(req, socket,
|
|
26955
|
+
upgrade: (req, socket, head2) => {
|
|
26956
|
+
this.handleUpgrade(req, socket, head2, emitConnection);
|
|
26472
26957
|
}
|
|
26473
26958
|
});
|
|
26474
26959
|
}
|
|
@@ -26536,7 +27021,7 @@ var require_websocket_server = __commonJS2((exports, module) => {
|
|
|
26536
27021
|
}
|
|
26537
27022
|
return true;
|
|
26538
27023
|
}
|
|
26539
|
-
handleUpgrade(req, socket,
|
|
27024
|
+
handleUpgrade(req, socket, head2, cb) {
|
|
26540
27025
|
socket.on("error", socketOnError);
|
|
26541
27026
|
const key = req.headers["sec-websocket-key"];
|
|
26542
27027
|
const upgrade = req.headers.upgrade;
|
|
@@ -26556,9 +27041,11 @@ var require_websocket_server = __commonJS2((exports, module) => {
|
|
|
26556
27041
|
abortHandshakeOrEmitwsClientError(this, req, socket, 400, message);
|
|
26557
27042
|
return;
|
|
26558
27043
|
}
|
|
26559
|
-
if (version2 !==
|
|
27044
|
+
if (version2 !== 13 && version2 !== 8) {
|
|
26560
27045
|
const message = "Missing or invalid Sec-WebSocket-Version header";
|
|
26561
|
-
abortHandshakeOrEmitwsClientError(this, req, socket, 400, message
|
|
27046
|
+
abortHandshakeOrEmitwsClientError(this, req, socket, 400, message, {
|
|
27047
|
+
"Sec-WebSocket-Version": "13, 8"
|
|
27048
|
+
});
|
|
26562
27049
|
return;
|
|
26563
27050
|
}
|
|
26564
27051
|
if (!this.shouldHandle(req)) {
|
|
@@ -26603,16 +27090,16 @@ var require_websocket_server = __commonJS2((exports, module) => {
|
|
|
26603
27090
|
if (!verified) {
|
|
26604
27091
|
return abortHandshake(socket, code || 401, message, headers);
|
|
26605
27092
|
}
|
|
26606
|
-
this.completeUpgrade(extensions, key, protocols, req, socket,
|
|
27093
|
+
this.completeUpgrade(extensions, key, protocols, req, socket, head2, cb);
|
|
26607
27094
|
});
|
|
26608
27095
|
return;
|
|
26609
27096
|
}
|
|
26610
27097
|
if (!this.options.verifyClient(info))
|
|
26611
27098
|
return abortHandshake(socket, 401);
|
|
26612
27099
|
}
|
|
26613
|
-
this.completeUpgrade(extensions, key, protocols, req, socket,
|
|
27100
|
+
this.completeUpgrade(extensions, key, protocols, req, socket, head2, cb);
|
|
26614
27101
|
}
|
|
26615
|
-
completeUpgrade(extensions, key, protocols, req, socket,
|
|
27102
|
+
completeUpgrade(extensions, key, protocols, req, socket, head2, cb) {
|
|
26616
27103
|
if (!socket.readable || !socket.writable)
|
|
26617
27104
|
return socket.destroy();
|
|
26618
27105
|
if (socket[kWebSocket]) {
|
|
@@ -26648,7 +27135,7 @@ var require_websocket_server = __commonJS2((exports, module) => {
|
|
|
26648
27135
|
`).join(`\r
|
|
26649
27136
|
`));
|
|
26650
27137
|
socket.removeListener("error", socketOnError);
|
|
26651
|
-
ws.setSocket(socket,
|
|
27138
|
+
ws.setSocket(socket, head2, {
|
|
26652
27139
|
allowSynchronousEvents: this.options.allowSynchronousEvents,
|
|
26653
27140
|
maxPayload: this.options.maxPayload,
|
|
26654
27141
|
skipUTF8Validation: this.options.skipUTF8Validation
|
|
@@ -26697,13 +27184,13 @@ var require_websocket_server = __commonJS2((exports, module) => {
|
|
|
26697
27184
|
\r
|
|
26698
27185
|
` + message);
|
|
26699
27186
|
}
|
|
26700
|
-
function abortHandshakeOrEmitwsClientError(server, req, socket, code, message) {
|
|
27187
|
+
function abortHandshakeOrEmitwsClientError(server, req, socket, code, message, headers) {
|
|
26701
27188
|
if (server.listenerCount("wsClientError")) {
|
|
26702
27189
|
const err = new Error(message);
|
|
26703
27190
|
Error.captureStackTrace(err, abortHandshakeOrEmitwsClientError);
|
|
26704
27191
|
server.emit("wsClientError", err, socket, req);
|
|
26705
27192
|
} else {
|
|
26706
|
-
abortHandshake(socket, code, message);
|
|
27193
|
+
abortHandshake(socket, code, message, headers);
|
|
26707
27194
|
}
|
|
26708
27195
|
}
|
|
26709
27196
|
});
|
|
@@ -26779,6 +27266,9 @@ function pick(obj, keys) {
|
|
|
26779
27266
|
return result;
|
|
26780
27267
|
}
|
|
26781
27268
|
var import__ = __toESM2(require_eventemitter3(), 1);
|
|
27269
|
+
function isUnsafeProperty(key) {
|
|
27270
|
+
return key === "__proto__";
|
|
27271
|
+
}
|
|
26782
27272
|
function isPlainObject(value) {
|
|
26783
27273
|
if (!value || typeof value !== "object") {
|
|
26784
27274
|
return false;
|
|
@@ -26790,9 +27280,6 @@ function isPlainObject(value) {
|
|
|
26790
27280
|
}
|
|
26791
27281
|
return Object.prototype.toString.call(value) === "[object Object]";
|
|
26792
27282
|
}
|
|
26793
|
-
function isUnsafeProperty(key) {
|
|
26794
|
-
return key === "__proto__";
|
|
26795
|
-
}
|
|
26796
27283
|
function merge(target, source) {
|
|
26797
27284
|
const sourceKeys = Object.keys(source);
|
|
26798
27285
|
for (let i = 0;i < sourceKeys.length; i++) {
|
|
@@ -26823,8 +27310,8 @@ class MockProcess {
|
|
|
26823
27310
|
process;
|
|
26824
27311
|
constructor(opts) {
|
|
26825
27312
|
this.emitter = opts?.emitter || new import__.default;
|
|
26826
|
-
const
|
|
26827
|
-
if (
|
|
27313
|
+
const isNode2 = opts?.isNode ?? true;
|
|
27314
|
+
if (isNode2) {
|
|
26828
27315
|
this.process = globalThis?.process;
|
|
26829
27316
|
}
|
|
26830
27317
|
}
|
|
@@ -26855,7 +27342,7 @@ class MockProcess {
|
|
|
26855
27342
|
this.process = undefined;
|
|
26856
27343
|
}
|
|
26857
27344
|
}
|
|
26858
|
-
var listenProcess = async ({ app, mockProcess, params = {}, timeout = 10 * 60 * 60 * 1000 }) => {
|
|
27345
|
+
var listenProcess = async ({ app, mockProcess, params = {}, timeout: timeout2 = 10 * 60 * 60 * 1000 }) => {
|
|
26859
27346
|
const process2 = mockProcess || new MockProcess;
|
|
26860
27347
|
let isEnd = false;
|
|
26861
27348
|
const timer = setTimeout(() => {
|
|
@@ -26865,7 +27352,7 @@ var listenProcess = async ({ app, mockProcess, params = {}, timeout = 10 * 60 *
|
|
|
26865
27352
|
process2.send?.({ success: false, error: "Timeout" }, () => {
|
|
26866
27353
|
process2.exit?.(1);
|
|
26867
27354
|
});
|
|
26868
|
-
},
|
|
27355
|
+
}, timeout2);
|
|
26869
27356
|
const getParams = async () => {
|
|
26870
27357
|
return new Promise((resolve) => {
|
|
26871
27358
|
process2.on((params2) => {
|
|
@@ -26907,7 +27394,7 @@ var listenProcess = async ({ app, mockProcess, params = {}, timeout = 10 * 60 *
|
|
|
26907
27394
|
};
|
|
26908
27395
|
var exports_external = {};
|
|
26909
27396
|
__export2(exports_external, {
|
|
26910
|
-
xor: () =>
|
|
27397
|
+
xor: () => xor2,
|
|
26911
27398
|
xid: () => xid2,
|
|
26912
27399
|
void: () => _void2,
|
|
26913
27400
|
uuidv7: () => uuidv7,
|
|
@@ -26918,7 +27405,7 @@ __export2(exports_external, {
|
|
|
26918
27405
|
url: () => url,
|
|
26919
27406
|
uppercase: () => _uppercase,
|
|
26920
27407
|
unknown: () => unknown,
|
|
26921
|
-
union: () =>
|
|
27408
|
+
union: () => union2,
|
|
26922
27409
|
undefined: () => _undefined3,
|
|
26923
27410
|
ulid: () => ulid2,
|
|
26924
27411
|
uint64: () => uint64,
|
|
@@ -27006,7 +27493,7 @@ __export2(exports_external, {
|
|
|
27006
27493
|
iso: () => exports_iso,
|
|
27007
27494
|
ipv6: () => ipv62,
|
|
27008
27495
|
ipv4: () => ipv42,
|
|
27009
|
-
intersection: () =>
|
|
27496
|
+
intersection: () => intersection2,
|
|
27010
27497
|
int64: () => int64,
|
|
27011
27498
|
int32: () => int32,
|
|
27012
27499
|
int: () => int,
|
|
@@ -27048,7 +27535,7 @@ __export2(exports_external, {
|
|
|
27048
27535
|
config: () => config,
|
|
27049
27536
|
coerce: () => exports_coerce,
|
|
27050
27537
|
codec: () => codec,
|
|
27051
|
-
clone: () =>
|
|
27538
|
+
clone: () => clone2,
|
|
27052
27539
|
cidrv6: () => cidrv62,
|
|
27053
27540
|
cidrv4: () => cidrv42,
|
|
27054
27541
|
check: () => check,
|
|
@@ -27183,7 +27670,7 @@ __export2(exports_core2, {
|
|
|
27183
27670
|
createToJSONSchemaMethod: () => createToJSONSchemaMethod,
|
|
27184
27671
|
createStandardJSONSchemaMethod: () => createStandardJSONSchemaMethod,
|
|
27185
27672
|
config: () => config,
|
|
27186
|
-
clone: () =>
|
|
27673
|
+
clone: () => clone2,
|
|
27187
27674
|
_xor: () => _xor,
|
|
27188
27675
|
_xid: () => _xid,
|
|
27189
27676
|
_void: () => _void,
|
|
@@ -27511,11 +27998,11 @@ __export2(exports_util, {
|
|
|
27511
27998
|
promiseAllObject: () => promiseAllObject,
|
|
27512
27999
|
primitiveTypes: () => primitiveTypes,
|
|
27513
28000
|
prefixIssues: () => prefixIssues,
|
|
27514
|
-
pick: () =>
|
|
27515
|
-
partial: () =>
|
|
28001
|
+
pick: () => pick3,
|
|
28002
|
+
partial: () => partial2,
|
|
27516
28003
|
parsedType: () => parsedType,
|
|
27517
28004
|
optionalKeys: () => optionalKeys,
|
|
27518
|
-
omit: () =>
|
|
28005
|
+
omit: () => omit2,
|
|
27519
28006
|
objectClone: () => objectClone,
|
|
27520
28007
|
numKeys: () => numKeys,
|
|
27521
28008
|
nullish: () => nullish,
|
|
@@ -27525,7 +28012,7 @@ __export2(exports_util, {
|
|
|
27525
28012
|
jsonStringifyReplacer: () => jsonStringifyReplacer,
|
|
27526
28013
|
joinValues: () => joinValues,
|
|
27527
28014
|
issue: () => issue,
|
|
27528
|
-
isPlainObject: () =>
|
|
28015
|
+
isPlainObject: () => isPlainObject3,
|
|
27529
28016
|
isObject: () => isObject,
|
|
27530
28017
|
hexToUint8Array: () => hexToUint8Array,
|
|
27531
28018
|
getSizableOrigin: () => getSizableOrigin,
|
|
@@ -27541,7 +28028,7 @@ __export2(exports_util, {
|
|
|
27541
28028
|
defineLazy: () => defineLazy,
|
|
27542
28029
|
createTransparentProxy: () => createTransparentProxy,
|
|
27543
28030
|
cloneDef: () => cloneDef,
|
|
27544
|
-
clone: () =>
|
|
28031
|
+
clone: () => clone2,
|
|
27545
28032
|
cleanRegex: () => cleanRegex,
|
|
27546
28033
|
cleanEnum: () => cleanEnum,
|
|
27547
28034
|
captureStackTrace: () => captureStackTrace,
|
|
@@ -27710,7 +28197,7 @@ var allowsEval = cached(() => {
|
|
|
27710
28197
|
return false;
|
|
27711
28198
|
}
|
|
27712
28199
|
});
|
|
27713
|
-
function
|
|
28200
|
+
function isPlainObject3(o) {
|
|
27714
28201
|
if (isObject(o) === false)
|
|
27715
28202
|
return false;
|
|
27716
28203
|
const ctor = o.constructor;
|
|
@@ -27727,7 +28214,7 @@ function isPlainObject2(o) {
|
|
|
27727
28214
|
return true;
|
|
27728
28215
|
}
|
|
27729
28216
|
function shallowClone(o) {
|
|
27730
|
-
if (
|
|
28217
|
+
if (isPlainObject3(o))
|
|
27731
28218
|
return { ...o };
|
|
27732
28219
|
if (Array.isArray(o))
|
|
27733
28220
|
return [...o];
|
|
@@ -27791,7 +28278,7 @@ var primitiveTypes = new Set(["string", "number", "bigint", "boolean", "symbol",
|
|
|
27791
28278
|
function escapeRegex(str) {
|
|
27792
28279
|
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
27793
28280
|
}
|
|
27794
|
-
function
|
|
28281
|
+
function clone2(inst, def, params) {
|
|
27795
28282
|
const cl = new inst._zod.constr(def ?? inst._zod.def);
|
|
27796
28283
|
if (!def || params?.parent)
|
|
27797
28284
|
cl._zod.parent = inst;
|
|
@@ -27869,7 +28356,7 @@ var BIGINT_FORMAT_RANGES = {
|
|
|
27869
28356
|
int64: [/* @__PURE__ */ BigInt("-9223372036854775808"), /* @__PURE__ */ BigInt("9223372036854775807")],
|
|
27870
28357
|
uint64: [/* @__PURE__ */ BigInt(0), /* @__PURE__ */ BigInt("18446744073709551615")]
|
|
27871
28358
|
};
|
|
27872
|
-
function
|
|
28359
|
+
function pick3(schema, mask) {
|
|
27873
28360
|
const currDef = schema._zod.def;
|
|
27874
28361
|
const checks = currDef.checks;
|
|
27875
28362
|
const hasChecks = checks && checks.length > 0;
|
|
@@ -27892,9 +28379,9 @@ function pick2(schema, mask) {
|
|
|
27892
28379
|
},
|
|
27893
28380
|
checks: []
|
|
27894
28381
|
});
|
|
27895
|
-
return
|
|
28382
|
+
return clone2(schema, def);
|
|
27896
28383
|
}
|
|
27897
|
-
function
|
|
28384
|
+
function omit2(schema, mask) {
|
|
27898
28385
|
const currDef = schema._zod.def;
|
|
27899
28386
|
const checks = currDef.checks;
|
|
27900
28387
|
const hasChecks = checks && checks.length > 0;
|
|
@@ -27917,10 +28404,10 @@ function omit(schema, mask) {
|
|
|
27917
28404
|
},
|
|
27918
28405
|
checks: []
|
|
27919
28406
|
});
|
|
27920
|
-
return
|
|
28407
|
+
return clone2(schema, def);
|
|
27921
28408
|
}
|
|
27922
28409
|
function extend(schema, shape) {
|
|
27923
|
-
if (!
|
|
28410
|
+
if (!isPlainObject3(shape)) {
|
|
27924
28411
|
throw new Error("Invalid input to extend: expected a plain object");
|
|
27925
28412
|
}
|
|
27926
28413
|
const checks = schema._zod.def.checks;
|
|
@@ -27940,10 +28427,10 @@ function extend(schema, shape) {
|
|
|
27940
28427
|
return _shape;
|
|
27941
28428
|
}
|
|
27942
28429
|
});
|
|
27943
|
-
return
|
|
28430
|
+
return clone2(schema, def);
|
|
27944
28431
|
}
|
|
27945
28432
|
function safeExtend(schema, shape) {
|
|
27946
|
-
if (!
|
|
28433
|
+
if (!isPlainObject3(shape)) {
|
|
27947
28434
|
throw new Error("Invalid input to safeExtend: expected a plain object");
|
|
27948
28435
|
}
|
|
27949
28436
|
const def = mergeDefs(schema._zod.def, {
|
|
@@ -27953,7 +28440,7 @@ function safeExtend(schema, shape) {
|
|
|
27953
28440
|
return _shape;
|
|
27954
28441
|
}
|
|
27955
28442
|
});
|
|
27956
|
-
return
|
|
28443
|
+
return clone2(schema, def);
|
|
27957
28444
|
}
|
|
27958
28445
|
function merge2(a, b) {
|
|
27959
28446
|
const def = mergeDefs(a._zod.def, {
|
|
@@ -27967,9 +28454,9 @@ function merge2(a, b) {
|
|
|
27967
28454
|
},
|
|
27968
28455
|
checks: []
|
|
27969
28456
|
});
|
|
27970
|
-
return
|
|
28457
|
+
return clone2(a, def);
|
|
27971
28458
|
}
|
|
27972
|
-
function
|
|
28459
|
+
function partial2(Class, schema, mask) {
|
|
27973
28460
|
const currDef = schema._zod.def;
|
|
27974
28461
|
const checks = currDef.checks;
|
|
27975
28462
|
const hasChecks = checks && checks.length > 0;
|
|
@@ -28005,7 +28492,7 @@ function partial(Class, schema, mask) {
|
|
|
28005
28492
|
},
|
|
28006
28493
|
checks: []
|
|
28007
28494
|
});
|
|
28008
|
-
return
|
|
28495
|
+
return clone2(schema, def);
|
|
28009
28496
|
}
|
|
28010
28497
|
function required(Class, schema, mask) {
|
|
28011
28498
|
const def = mergeDefs(schema._zod.def, {
|
|
@@ -28036,7 +28523,7 @@ function required(Class, schema, mask) {
|
|
|
28036
28523
|
return shape;
|
|
28037
28524
|
}
|
|
28038
28525
|
});
|
|
28039
|
-
return
|
|
28526
|
+
return clone2(schema, def);
|
|
28040
28527
|
}
|
|
28041
28528
|
function aborted(x, startIndex = 0) {
|
|
28042
28529
|
if (x.aborted === true)
|
|
@@ -29713,15 +30200,15 @@ var $ZodDate = /* @__PURE__ */ $constructor("$ZodDate", (inst, def) => {
|
|
|
29713
30200
|
} catch (_err) {}
|
|
29714
30201
|
}
|
|
29715
30202
|
const input = payload.value;
|
|
29716
|
-
const
|
|
29717
|
-
const isValidDate =
|
|
30203
|
+
const isDate2 = input instanceof Date;
|
|
30204
|
+
const isValidDate = isDate2 && !Number.isNaN(input.getTime());
|
|
29718
30205
|
if (isValidDate)
|
|
29719
30206
|
return payload;
|
|
29720
30207
|
payload.issues.push({
|
|
29721
30208
|
expected: "date",
|
|
29722
30209
|
code: "invalid_type",
|
|
29723
30210
|
input,
|
|
29724
|
-
...
|
|
30211
|
+
...isDate2 ? { received: "Invalid Date" } : {},
|
|
29725
30212
|
inst
|
|
29726
30213
|
});
|
|
29727
30214
|
return payload;
|
|
@@ -30201,7 +30688,7 @@ function mergeValues(a, b) {
|
|
|
30201
30688
|
if (a instanceof Date && b instanceof Date && +a === +b) {
|
|
30202
30689
|
return { valid: true, data: a };
|
|
30203
30690
|
}
|
|
30204
|
-
if (
|
|
30691
|
+
if (isPlainObject3(a) && isPlainObject3(b)) {
|
|
30205
30692
|
const bKeys = Object.keys(b);
|
|
30206
30693
|
const sharedKeys = Object.keys(a).filter((key) => bKeys.indexOf(key) !== -1);
|
|
30207
30694
|
const newObj = { ...a, ...b };
|
|
@@ -30326,8 +30813,8 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
|
|
|
30326
30813
|
}
|
|
30327
30814
|
}
|
|
30328
30815
|
if (def.rest) {
|
|
30329
|
-
const
|
|
30330
|
-
for (const el of
|
|
30816
|
+
const rest2 = input.slice(items.length);
|
|
30817
|
+
for (const el of rest2) {
|
|
30331
30818
|
i++;
|
|
30332
30819
|
const result = def.rest._zod.run({
|
|
30333
30820
|
value: el,
|
|
@@ -30355,7 +30842,7 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
30355
30842
|
$ZodType.init(inst, def);
|
|
30356
30843
|
inst._zod.parse = (payload, ctx) => {
|
|
30357
30844
|
const input = payload.value;
|
|
30358
|
-
if (!
|
|
30845
|
+
if (!isPlainObject3(input)) {
|
|
30359
30846
|
payload.issues.push({
|
|
30360
30847
|
expected: "record",
|
|
30361
30848
|
code: "invalid_type",
|
|
@@ -34053,11 +34540,11 @@ var capitalizeFirstCharacter = (text) => {
|
|
|
34053
34540
|
};
|
|
34054
34541
|
function getUnitTypeFromNumber(number2) {
|
|
34055
34542
|
const abs = Math.abs(number2);
|
|
34056
|
-
const
|
|
34057
|
-
const
|
|
34058
|
-
if (
|
|
34543
|
+
const last2 = abs % 10;
|
|
34544
|
+
const last22 = abs % 100;
|
|
34545
|
+
if (last22 >= 11 && last22 <= 19 || last2 === 0)
|
|
34059
34546
|
return "many";
|
|
34060
|
-
if (
|
|
34547
|
+
if (last2 === 1)
|
|
34061
34548
|
return "one";
|
|
34062
34549
|
return "few";
|
|
34063
34550
|
}
|
|
@@ -37258,11 +37745,11 @@ function _intersection(Class2, left, right) {
|
|
|
37258
37745
|
function _tuple(Class2, items, _paramsOrRest, _params) {
|
|
37259
37746
|
const hasRest = _paramsOrRest instanceof $ZodType;
|
|
37260
37747
|
const params = hasRest ? _params : _paramsOrRest;
|
|
37261
|
-
const
|
|
37748
|
+
const rest2 = hasRest ? _paramsOrRest : null;
|
|
37262
37749
|
return new Class2({
|
|
37263
37750
|
type: "tuple",
|
|
37264
37751
|
items,
|
|
37265
|
-
rest,
|
|
37752
|
+
rest: rest2,
|
|
37266
37753
|
...normalizeParams(params)
|
|
37267
37754
|
});
|
|
37268
37755
|
}
|
|
@@ -38200,30 +38687,30 @@ var tupleProcessor = (schema, ctx, _json, params) => {
|
|
|
38200
38687
|
...params,
|
|
38201
38688
|
path: [...params.path, prefixPath, i]
|
|
38202
38689
|
}));
|
|
38203
|
-
const
|
|
38690
|
+
const rest2 = def.rest ? process2(def.rest, ctx, {
|
|
38204
38691
|
...params,
|
|
38205
38692
|
path: [...params.path, restPath, ...ctx.target === "openapi-3.0" ? [def.items.length] : []]
|
|
38206
38693
|
}) : null;
|
|
38207
38694
|
if (ctx.target === "draft-2020-12") {
|
|
38208
38695
|
json.prefixItems = prefixItems;
|
|
38209
|
-
if (
|
|
38210
|
-
json.items =
|
|
38696
|
+
if (rest2) {
|
|
38697
|
+
json.items = rest2;
|
|
38211
38698
|
}
|
|
38212
38699
|
} else if (ctx.target === "openapi-3.0") {
|
|
38213
38700
|
json.items = {
|
|
38214
38701
|
anyOf: prefixItems
|
|
38215
38702
|
};
|
|
38216
|
-
if (
|
|
38217
|
-
json.items.anyOf.push(
|
|
38703
|
+
if (rest2) {
|
|
38704
|
+
json.items.anyOf.push(rest2);
|
|
38218
38705
|
}
|
|
38219
38706
|
json.minItems = prefixItems.length;
|
|
38220
|
-
if (!
|
|
38707
|
+
if (!rest2) {
|
|
38221
38708
|
json.maxItems = prefixItems.length;
|
|
38222
38709
|
}
|
|
38223
38710
|
} else {
|
|
38224
38711
|
json.items = prefixItems;
|
|
38225
|
-
if (
|
|
38226
|
-
json.additionalItems =
|
|
38712
|
+
if (rest2) {
|
|
38713
|
+
json.additionalItems = rest2;
|
|
38227
38714
|
}
|
|
38228
38715
|
}
|
|
38229
38716
|
const { minimum, maximum } = schema._zod.bag;
|
|
@@ -38482,7 +38969,7 @@ class JSONSchemaGenerator {
|
|
|
38482
38969
|
var exports_json_schema = {};
|
|
38483
38970
|
var exports_schemas2 = {};
|
|
38484
38971
|
__export2(exports_schemas2, {
|
|
38485
|
-
xor: () =>
|
|
38972
|
+
xor: () => xor2,
|
|
38486
38973
|
xid: () => xid2,
|
|
38487
38974
|
void: () => _void2,
|
|
38488
38975
|
uuidv7: () => uuidv7,
|
|
@@ -38491,7 +38978,7 @@ __export2(exports_schemas2, {
|
|
|
38491
38978
|
uuid: () => uuid2,
|
|
38492
38979
|
url: () => url,
|
|
38493
38980
|
unknown: () => unknown,
|
|
38494
|
-
union: () =>
|
|
38981
|
+
union: () => union2,
|
|
38495
38982
|
undefined: () => _undefined3,
|
|
38496
38983
|
ulid: () => ulid2,
|
|
38497
38984
|
uint64: () => uint64,
|
|
@@ -38539,7 +39026,7 @@ __export2(exports_schemas2, {
|
|
|
38539
39026
|
json: () => json,
|
|
38540
39027
|
ipv6: () => ipv62,
|
|
38541
39028
|
ipv4: () => ipv42,
|
|
38542
|
-
intersection: () =>
|
|
39029
|
+
intersection: () => intersection2,
|
|
38543
39030
|
int64: () => int64,
|
|
38544
39031
|
int32: () => int32,
|
|
38545
39032
|
int: () => int,
|
|
@@ -38786,7 +39273,7 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
38786
39273
|
});
|
|
38787
39274
|
};
|
|
38788
39275
|
inst.with = inst.check;
|
|
38789
|
-
inst.clone = (def2, params) =>
|
|
39276
|
+
inst.clone = (def2, params) => clone2(inst, def2, params);
|
|
38790
39277
|
inst.brand = () => inst;
|
|
38791
39278
|
inst.register = (reg, meta2) => {
|
|
38792
39279
|
reg.add(inst, meta2);
|
|
@@ -38814,8 +39301,8 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
38814
39301
|
inst.nullish = () => optional(nullable(inst));
|
|
38815
39302
|
inst.nonoptional = (params) => nonoptional(inst, params);
|
|
38816
39303
|
inst.array = () => array(inst);
|
|
38817
|
-
inst.or = (arg) =>
|
|
38818
|
-
inst.and = (arg) =>
|
|
39304
|
+
inst.or = (arg) => union2([inst, arg]);
|
|
39305
|
+
inst.and = (arg) => intersection2(inst, arg);
|
|
38819
39306
|
inst.transform = (tx) => pipe(inst, transform(tx));
|
|
38820
39307
|
inst.default = (def2) => _default2(inst, def2);
|
|
38821
39308
|
inst.prefault = (def2) => prefault(inst, def2);
|
|
@@ -39318,7 +39805,7 @@ var ZodUnion = /* @__PURE__ */ $constructor("ZodUnion", (inst, def) => {
|
|
|
39318
39805
|
inst._zod.processJSONSchema = (ctx, json, params) => unionProcessor(inst, ctx, json, params);
|
|
39319
39806
|
inst.options = def.options;
|
|
39320
39807
|
});
|
|
39321
|
-
function
|
|
39808
|
+
function union2(options, params) {
|
|
39322
39809
|
return new ZodUnion({
|
|
39323
39810
|
type: "union",
|
|
39324
39811
|
options,
|
|
@@ -39331,7 +39818,7 @@ var ZodXor = /* @__PURE__ */ $constructor("ZodXor", (inst, def) => {
|
|
|
39331
39818
|
inst._zod.processJSONSchema = (ctx, json, params) => unionProcessor(inst, ctx, json, params);
|
|
39332
39819
|
inst.options = def.options;
|
|
39333
39820
|
});
|
|
39334
|
-
function
|
|
39821
|
+
function xor2(options, params) {
|
|
39335
39822
|
return new ZodXor({
|
|
39336
39823
|
type: "union",
|
|
39337
39824
|
options,
|
|
@@ -39356,7 +39843,7 @@ var ZodIntersection = /* @__PURE__ */ $constructor("ZodIntersection", (inst, def
|
|
|
39356
39843
|
ZodType.init(inst, def);
|
|
39357
39844
|
inst._zod.processJSONSchema = (ctx, json, params) => intersectionProcessor(inst, ctx, json, params);
|
|
39358
39845
|
});
|
|
39359
|
-
function
|
|
39846
|
+
function intersection2(left, right) {
|
|
39360
39847
|
return new ZodIntersection({
|
|
39361
39848
|
type: "intersection",
|
|
39362
39849
|
left,
|
|
@@ -39367,19 +39854,19 @@ var ZodTuple = /* @__PURE__ */ $constructor("ZodTuple", (inst, def) => {
|
|
|
39367
39854
|
$ZodTuple.init(inst, def);
|
|
39368
39855
|
ZodType.init(inst, def);
|
|
39369
39856
|
inst._zod.processJSONSchema = (ctx, json, params) => tupleProcessor(inst, ctx, json, params);
|
|
39370
|
-
inst.rest = (
|
|
39857
|
+
inst.rest = (rest2) => inst.clone({
|
|
39371
39858
|
...inst._zod.def,
|
|
39372
|
-
rest
|
|
39859
|
+
rest: rest2
|
|
39373
39860
|
});
|
|
39374
39861
|
});
|
|
39375
39862
|
function tuple(items, _paramsOrRest, _params) {
|
|
39376
39863
|
const hasRest = _paramsOrRest instanceof $ZodType;
|
|
39377
39864
|
const params = hasRest ? _params : _paramsOrRest;
|
|
39378
|
-
const
|
|
39865
|
+
const rest2 = hasRest ? _paramsOrRest : null;
|
|
39379
39866
|
return new ZodTuple({
|
|
39380
39867
|
type: "tuple",
|
|
39381
39868
|
items,
|
|
39382
|
-
rest,
|
|
39869
|
+
rest: rest2,
|
|
39383
39870
|
...exports_util.normalizeParams(params)
|
|
39384
39871
|
});
|
|
39385
39872
|
}
|
|
@@ -39399,7 +39886,7 @@ function record(keyType, valueType, params) {
|
|
|
39399
39886
|
});
|
|
39400
39887
|
}
|
|
39401
39888
|
function partialRecord(keyType, valueType, params) {
|
|
39402
|
-
const k =
|
|
39889
|
+
const k = clone2(keyType);
|
|
39403
39890
|
k._zod.values = undefined;
|
|
39404
39891
|
return new ZodRecord({
|
|
39405
39892
|
type: "record",
|
|
@@ -39831,7 +40318,7 @@ var stringbool = (...args) => _stringbool({
|
|
|
39831
40318
|
}, ...args);
|
|
39832
40319
|
function json(params) {
|
|
39833
40320
|
const jsonSchema = lazy(() => {
|
|
39834
|
-
return
|
|
40321
|
+
return union2([string2(params), number2(), boolean2(), _null3(), array(jsonSchema), record(string2(), jsonSchema)]);
|
|
39835
40322
|
});
|
|
39836
40323
|
return jsonSchema;
|
|
39837
40324
|
}
|
|
@@ -40196,9 +40683,9 @@ function convertBaseSchema(schema, ctx) {
|
|
|
40196
40683
|
const items = schema.items;
|
|
40197
40684
|
if (prefixItems && Array.isArray(prefixItems)) {
|
|
40198
40685
|
const tupleItems = prefixItems.map((item) => convertSchema(item, ctx));
|
|
40199
|
-
const
|
|
40200
|
-
if (
|
|
40201
|
-
zodSchema = z.tuple(tupleItems).rest(
|
|
40686
|
+
const rest2 = items && typeof items === "object" && !Array.isArray(items) ? convertSchema(items, ctx) : undefined;
|
|
40687
|
+
if (rest2) {
|
|
40688
|
+
zodSchema = z.tuple(tupleItems).rest(rest2);
|
|
40202
40689
|
} else {
|
|
40203
40690
|
zodSchema = z.tuple(tupleItems);
|
|
40204
40691
|
}
|
|
@@ -40210,9 +40697,9 @@ function convertBaseSchema(schema, ctx) {
|
|
|
40210
40697
|
}
|
|
40211
40698
|
} else if (Array.isArray(items)) {
|
|
40212
40699
|
const tupleItems = items.map((item) => convertSchema(item, ctx));
|
|
40213
|
-
const
|
|
40214
|
-
if (
|
|
40215
|
-
zodSchema = z.tuple(tupleItems).rest(
|
|
40700
|
+
const rest2 = schema.additionalItems && typeof schema.additionalItems === "object" ? convertSchema(schema.additionalItems, ctx) : undefined;
|
|
40701
|
+
if (rest2) {
|
|
40702
|
+
zodSchema = z.tuple(tupleItems).rest(rest2);
|
|
40216
40703
|
} else {
|
|
40217
40704
|
zodSchema = z.tuple(tupleItems);
|
|
40218
40705
|
}
|
|
@@ -40359,7 +40846,7 @@ function fillPool(bytes) {
|
|
|
40359
40846
|
}
|
|
40360
40847
|
poolOffset += bytes;
|
|
40361
40848
|
}
|
|
40362
|
-
function
|
|
40849
|
+
function random2(bytes) {
|
|
40363
40850
|
fillPool(bytes |= 0);
|
|
40364
40851
|
return pool.subarray(poolOffset - bytes, poolOffset);
|
|
40365
40852
|
}
|
|
@@ -40382,12 +40869,16 @@ function customRandom(alphabet, defaultSize, getRandom) {
|
|
|
40382
40869
|
};
|
|
40383
40870
|
}
|
|
40384
40871
|
function customAlphabet(alphabet, size = 21) {
|
|
40385
|
-
return customRandom(alphabet, size,
|
|
40872
|
+
return customRandom(alphabet, size, random2);
|
|
40386
40873
|
}
|
|
40874
|
+
var import_md5 = __toESM2(require_md5(), 1);
|
|
40387
40875
|
var nanoid3 = customAlphabet("abcdefghijklmnopqrstuvwxyz", 16);
|
|
40388
40876
|
var randomId = (length = 8, affix = "") => {
|
|
40389
40877
|
return affix + nanoid3(length);
|
|
40390
40878
|
};
|
|
40879
|
+
var hashIdMd5Sync = (pathKey) => {
|
|
40880
|
+
return import_md5.default(pathKey).toString().substring(0, 16);
|
|
40881
|
+
};
|
|
40391
40882
|
var extractArgs = (args) => {
|
|
40392
40883
|
if (args && typeof args === "object" && typeof args.shape === "object") {
|
|
40393
40884
|
return args.shape;
|
|
@@ -40407,7 +40898,7 @@ var toJSONSchema2 = (args, opts) => {
|
|
|
40407
40898
|
jsonSchema.optional = true;
|
|
40408
40899
|
}
|
|
40409
40900
|
};
|
|
40410
|
-
const
|
|
40901
|
+
const isError2 = (keys2) => {
|
|
40411
40902
|
const errorKeys = ["toJSONSchema", "def", "type", "parse"];
|
|
40412
40903
|
const hasErrorKeys = errorKeys.every((key) => keys2.includes(key));
|
|
40413
40904
|
return hasErrorKeys;
|
|
@@ -40417,7 +40908,7 @@ var toJSONSchema2 = (args, opts) => {
|
|
|
40417
40908
|
if (typeof args === "object" && typeof args.toJSONSchema === "function") {
|
|
40418
40909
|
return args.toJSONSchema();
|
|
40419
40910
|
}
|
|
40420
|
-
if (
|
|
40911
|
+
if (isError2(Object.keys(args))) {
|
|
40421
40912
|
return {};
|
|
40422
40913
|
}
|
|
40423
40914
|
const schema = exports_external.object(args);
|
|
@@ -40425,7 +40916,7 @@ var toJSONSchema2 = (args, opts) => {
|
|
|
40425
40916
|
}
|
|
40426
40917
|
args = extractArgs(args);
|
|
40427
40918
|
let keys = Object.keys(args);
|
|
40428
|
-
if (
|
|
40919
|
+
if (isError2(keys)) {
|
|
40429
40920
|
console.error(`[toJSONSchema error]: 解析到的 schema 可能不正确,包含了zod默认的value的schema. 请检查输入的 schema 是否正确。`);
|
|
40430
40921
|
args = {};
|
|
40431
40922
|
keys = [];
|
|
@@ -40508,12 +40999,9 @@ class Route {
|
|
|
40508
40999
|
key = key.trim();
|
|
40509
41000
|
this.path = path;
|
|
40510
41001
|
this.key = key;
|
|
41002
|
+
const pathKey = `${path}$$${key}`;
|
|
40511
41003
|
if (opts) {
|
|
40512
|
-
this.id = opts.id ||
|
|
40513
|
-
if (!opts.id && opts.idUsePath) {
|
|
40514
|
-
const delimiter = opts.delimiter ?? "$$";
|
|
40515
|
-
this.id = path + delimiter + key;
|
|
40516
|
-
}
|
|
41004
|
+
this.id = opts.id || hashIdMd5Sync(pathKey);
|
|
40517
41005
|
this.run = opts.run;
|
|
40518
41006
|
this.nextRoute = opts.nextRoute;
|
|
40519
41007
|
this.description = opts.description;
|
|
@@ -40524,7 +41012,9 @@ class Route {
|
|
|
40524
41012
|
this.path = opts.path || path;
|
|
40525
41013
|
} else {
|
|
40526
41014
|
this.middleware = [];
|
|
40527
|
-
|
|
41015
|
+
}
|
|
41016
|
+
if (!this.id) {
|
|
41017
|
+
this.id = hashIdMd5Sync(pathKey);
|
|
40528
41018
|
}
|
|
40529
41019
|
this.isDebug = opts?.isDebug ?? false;
|
|
40530
41020
|
}
|
|
@@ -40662,8 +41152,8 @@ class QueryRouter {
|
|
|
40662
41152
|
for (let i = 0;i < m.middleware.length; i++) {
|
|
40663
41153
|
const item = m.middleware[i];
|
|
40664
41154
|
let route2;
|
|
40665
|
-
const
|
|
40666
|
-
if (
|
|
41155
|
+
const isString2 = typeof item === "string";
|
|
41156
|
+
if (isString2) {
|
|
40667
41157
|
route2 = this.routes.find((r) => r.id === item);
|
|
40668
41158
|
} else {
|
|
40669
41159
|
route2 = this.routes.find((r) => {
|
|
@@ -40675,7 +41165,7 @@ class QueryRouter {
|
|
|
40675
41165
|
});
|
|
40676
41166
|
}
|
|
40677
41167
|
if (!route2) {
|
|
40678
|
-
if (
|
|
41168
|
+
if (isString2) {
|
|
40679
41169
|
errorMiddleware.push({
|
|
40680
41170
|
id: item
|
|
40681
41171
|
});
|
|
@@ -41006,8 +41496,8 @@ class QueryRouterServer extends QueryRouter {
|
|
|
41006
41496
|
return this.run({ path, key, id, payload }, ctx);
|
|
41007
41497
|
}
|
|
41008
41498
|
}
|
|
41009
|
-
var
|
|
41010
|
-
var
|
|
41499
|
+
var isNode2 = typeof process !== "undefined" && process.versions != null && process.versions.node != null;
|
|
41500
|
+
var isBrowser2 = typeof window !== "undefined" && typeof document !== "undefined" && typeof document.createElement === "function";
|
|
41011
41501
|
var isDeno = typeof Deno !== "undefined" && typeof Deno.version === "object" && typeof Deno.version.deno === "string";
|
|
41012
41502
|
var isBun = typeof Bun !== "undefined" && typeof Bun.version === "string";
|
|
41013
41503
|
var parseBody = async (req) => {
|
|
@@ -41046,8 +41536,8 @@ var parseBody = async (req) => {
|
|
|
41046
41536
|
}
|
|
41047
41537
|
return new Promise((resolve, reject) => {
|
|
41048
41538
|
const arr = [];
|
|
41049
|
-
req.on("data", (
|
|
41050
|
-
arr.push(
|
|
41539
|
+
req.on("data", (chunk2) => {
|
|
41540
|
+
arr.push(chunk2);
|
|
41051
41541
|
});
|
|
41052
41542
|
req.on("end", () => {
|
|
41053
41543
|
try {
|
|
@@ -41164,7 +41654,7 @@ function stringifySetCookie(_name, _val, _opts) {
|
|
|
41164
41654
|
str += "; Path=" + cookie.path;
|
|
41165
41655
|
}
|
|
41166
41656
|
if (cookie.expires) {
|
|
41167
|
-
if (!
|
|
41657
|
+
if (!isDate2(cookie.expires) || !Number.isFinite(cookie.expires.valueOf())) {
|
|
41168
41658
|
throw new TypeError(`option expires is invalid: ${cookie.expires}`);
|
|
41169
41659
|
}
|
|
41170
41660
|
str += "; Expires=" + cookie.expires.toUTCString();
|
|
@@ -41246,7 +41736,7 @@ function decode3(str) {
|
|
|
41246
41736
|
return str;
|
|
41247
41737
|
}
|
|
41248
41738
|
}
|
|
41249
|
-
function
|
|
41739
|
+
function isDate2(val) {
|
|
41250
41740
|
return __toString.call(val) === "[object Date]";
|
|
41251
41741
|
}
|
|
41252
41742
|
var parseIfJson = (input) => {
|
|
@@ -41445,7 +41935,7 @@ class ServerBase {
|
|
|
41445
41935
|
return;
|
|
41446
41936
|
}
|
|
41447
41937
|
}
|
|
41448
|
-
const { type, data: typeData, ...
|
|
41938
|
+
const { type, data: typeData, ...rest2 } = data;
|
|
41449
41939
|
if (!type) {
|
|
41450
41940
|
ws.send(JSON.stringify({ code: 500, message: "type is required" }));
|
|
41451
41941
|
return;
|
|
@@ -41453,7 +41943,7 @@ class ServerBase {
|
|
|
41453
41943
|
const res = {
|
|
41454
41944
|
type,
|
|
41455
41945
|
data: {},
|
|
41456
|
-
...
|
|
41946
|
+
...rest2
|
|
41457
41947
|
};
|
|
41458
41948
|
const end = (data2, all) => {
|
|
41459
41949
|
const result = {
|
|
@@ -41567,11 +42057,11 @@ class WsServer extends WsServerBase {
|
|
|
41567
42057
|
super.listen();
|
|
41568
42058
|
const server = this.server;
|
|
41569
42059
|
const wss = this.wss;
|
|
41570
|
-
server.server.on("upgrade", (req, socket,
|
|
42060
|
+
server.server.on("upgrade", (req, socket, head2) => {
|
|
41571
42061
|
const url3 = new URL(req.url, "http://localhost");
|
|
41572
42062
|
const listenPath = this.server.listeners.map((item) => item.path).filter((item) => item);
|
|
41573
42063
|
if (listenPath.includes(url3.pathname) || url3.pathname === this.server.path) {
|
|
41574
|
-
wss.handleUpgrade(req, socket,
|
|
42064
|
+
wss.handleUpgrade(req, socket, head2, (ws) => {
|
|
41575
42065
|
wss.emit("connection", ws, req);
|
|
41576
42066
|
});
|
|
41577
42067
|
} else {
|
|
@@ -41765,7 +42255,7 @@ class BunServer extends ServerBase {
|
|
|
41765
42255
|
}
|
|
41766
42256
|
this.setHeader("Set-Cookie", cookieString);
|
|
41767
42257
|
},
|
|
41768
|
-
write(
|
|
42258
|
+
write(chunk2, encoding, callback2) {
|
|
41769
42259
|
if (typeof encoding === "function") {
|
|
41770
42260
|
callback2 = encoding;
|
|
41771
42261
|
encoding = "utf8";
|
|
@@ -41773,7 +42263,7 @@ class BunServer extends ServerBase {
|
|
|
41773
42263
|
if (!this._bodyChunks) {
|
|
41774
42264
|
this._bodyChunks = [];
|
|
41775
42265
|
}
|
|
41776
|
-
this._bodyChunks.push(
|
|
42266
|
+
this._bodyChunks.push(chunk2);
|
|
41777
42267
|
if (callback2)
|
|
41778
42268
|
callback2();
|
|
41779
42269
|
return true;
|
|
@@ -41789,8 +42279,8 @@ class BunServer extends ServerBase {
|
|
|
41789
42279
|
}
|
|
41790
42280
|
const readableStream = new ReadableStream({
|
|
41791
42281
|
start(controller) {
|
|
41792
|
-
stream.on("data", (
|
|
41793
|
-
controller.enqueue(
|
|
42282
|
+
stream.on("data", (chunk2) => {
|
|
42283
|
+
controller.enqueue(chunk2);
|
|
41794
42284
|
});
|
|
41795
42285
|
stream.on("end", () => {
|
|
41796
42286
|
onClose();
|
|
@@ -41815,18 +42305,18 @@ class BunServer extends ServerBase {
|
|
|
41815
42305
|
if (this._bodyChunks && this._bodyChunks.length > 0) {
|
|
41816
42306
|
if (data)
|
|
41817
42307
|
this._bodyChunks.push(data);
|
|
41818
|
-
const hasBuffer = this._bodyChunks.some((
|
|
42308
|
+
const hasBuffer = this._bodyChunks.some((chunk2) => chunk2 instanceof Buffer || chunk2 instanceof Uint8Array);
|
|
41819
42309
|
if (hasBuffer) {
|
|
41820
|
-
const buffers = this._bodyChunks.map((
|
|
41821
|
-
if (
|
|
41822
|
-
return
|
|
41823
|
-
if (
|
|
41824
|
-
return Buffer.from(
|
|
41825
|
-
return Buffer.from(String(
|
|
42310
|
+
const buffers = this._bodyChunks.map((chunk2) => {
|
|
42311
|
+
if (chunk2 instanceof Buffer)
|
|
42312
|
+
return chunk2;
|
|
42313
|
+
if (chunk2 instanceof Uint8Array)
|
|
42314
|
+
return Buffer.from(chunk2);
|
|
42315
|
+
return Buffer.from(String(chunk2));
|
|
41826
42316
|
});
|
|
41827
42317
|
responseData = Buffer.concat(buffers);
|
|
41828
42318
|
} else {
|
|
41829
|
-
responseData = this._bodyChunks.map((
|
|
42319
|
+
responseData = this._bodyChunks.map((chunk2) => String(chunk2)).join("");
|
|
41830
42320
|
}
|
|
41831
42321
|
}
|
|
41832
42322
|
resolve(new Response(responseData, {
|
|
@@ -41929,22 +42419,36 @@ class App extends QueryRouterServer {
|
|
|
41929
42419
|
}
|
|
41930
42420
|
}
|
|
41931
42421
|
|
|
41932
|
-
// ../node_modules/.pnpm/@kevisual+router@0.1.
|
|
42422
|
+
// ../node_modules/.pnpm/@kevisual+router@0.1.2/node_modules/@kevisual/router/dist/router-simple.js
|
|
41933
42423
|
import url3 from "node:url";
|
|
41934
42424
|
var __create3 = Object.create;
|
|
41935
42425
|
var __getProtoOf3 = Object.getPrototypeOf;
|
|
41936
42426
|
var __defProp3 = Object.defineProperty;
|
|
41937
42427
|
var __getOwnPropNames3 = Object.getOwnPropertyNames;
|
|
41938
42428
|
var __hasOwnProp3 = Object.prototype.hasOwnProperty;
|
|
42429
|
+
function __accessProp3(key) {
|
|
42430
|
+
return this[key];
|
|
42431
|
+
}
|
|
42432
|
+
var __toESMCache_node3;
|
|
42433
|
+
var __toESMCache_esm3;
|
|
41939
42434
|
var __toESM3 = (mod, isNodeMode, target) => {
|
|
42435
|
+
var canCache = mod != null && typeof mod === "object";
|
|
42436
|
+
if (canCache) {
|
|
42437
|
+
var cache = isNodeMode ? __toESMCache_node3 ??= new WeakMap : __toESMCache_esm3 ??= new WeakMap;
|
|
42438
|
+
var cached2 = cache.get(mod);
|
|
42439
|
+
if (cached2)
|
|
42440
|
+
return cached2;
|
|
42441
|
+
}
|
|
41940
42442
|
target = mod != null ? __create3(__getProtoOf3(mod)) : {};
|
|
41941
42443
|
const to = isNodeMode || !mod || !mod.__esModule ? __defProp3(target, "default", { value: mod, enumerable: true }) : target;
|
|
41942
42444
|
for (let key of __getOwnPropNames3(mod))
|
|
41943
42445
|
if (!__hasOwnProp3.call(to, key))
|
|
41944
42446
|
__defProp3(to, key, {
|
|
41945
|
-
get: (
|
|
42447
|
+
get: __accessProp3.bind(mod, key),
|
|
41946
42448
|
enumerable: true
|
|
41947
42449
|
});
|
|
42450
|
+
if (canCache)
|
|
42451
|
+
cache.set(mod, to);
|
|
41948
42452
|
return to;
|
|
41949
42453
|
};
|
|
41950
42454
|
var __commonJS3 = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
@@ -41974,7 +42478,7 @@ var require_dist = __commonJS3((exports) => {
|
|
|
41974
42478
|
function escapeText(str) {
|
|
41975
42479
|
return str.replace(/[{}()\[\]+?!:*\\]/g, "\\$&");
|
|
41976
42480
|
}
|
|
41977
|
-
function
|
|
42481
|
+
function escape2(str) {
|
|
41978
42482
|
return str.replace(/[.+*?^${}()[\]|/\\]/g, "\\$&");
|
|
41979
42483
|
}
|
|
41980
42484
|
|
|
@@ -42189,8 +42693,8 @@ var require_dist = __commonJS3((exports) => {
|
|
|
42189
42693
|
}
|
|
42190
42694
|
let pattern = `^(?:${sources.join("|")})`;
|
|
42191
42695
|
if (trailing)
|
|
42192
|
-
pattern += `(?:${
|
|
42193
|
-
pattern += end ? "$" : `(?=${
|
|
42696
|
+
pattern += `(?:${escape2(delimiter)}$)?`;
|
|
42697
|
+
pattern += end ? "$" : `(?=${escape2(delimiter)}|$)`;
|
|
42194
42698
|
const regexp = new RegExp(pattern, flags);
|
|
42195
42699
|
return { regexp, keys };
|
|
42196
42700
|
}
|
|
@@ -42223,7 +42727,7 @@ var require_dist = __commonJS3((exports) => {
|
|
|
42223
42727
|
let isSafeSegmentParam = true;
|
|
42224
42728
|
for (const token of tokens) {
|
|
42225
42729
|
if (token.type === "text") {
|
|
42226
|
-
result +=
|
|
42730
|
+
result += escape2(token.value);
|
|
42227
42731
|
backtrack += token.value;
|
|
42228
42732
|
isSafeSegmentParam || (isSafeSegmentParam = token.value.includes(delimiter));
|
|
42229
42733
|
continue;
|
|
@@ -42248,13 +42752,13 @@ var require_dist = __commonJS3((exports) => {
|
|
|
42248
42752
|
function negate(delimiter, backtrack) {
|
|
42249
42753
|
if (backtrack.length < 2) {
|
|
42250
42754
|
if (delimiter.length < 2)
|
|
42251
|
-
return `[^${
|
|
42252
|
-
return `(?:(?!${
|
|
42755
|
+
return `[^${escape2(delimiter + backtrack)}]`;
|
|
42756
|
+
return `(?:(?!${escape2(delimiter)})[^${escape2(backtrack)}])`;
|
|
42253
42757
|
}
|
|
42254
42758
|
if (delimiter.length < 2) {
|
|
42255
|
-
return `(?:(?!${
|
|
42759
|
+
return `(?:(?!${escape2(backtrack)})[^${escape2(delimiter)}])`;
|
|
42256
42760
|
}
|
|
42257
|
-
return `(?:(?!${
|
|
42761
|
+
return `(?:(?!${escape2(backtrack)}|${escape2(delimiter)})[\\s\\S])`;
|
|
42258
42762
|
}
|
|
42259
42763
|
function stringifyTokens(tokens) {
|
|
42260
42764
|
let value = "";
|
|
@@ -42299,8 +42803,8 @@ var require_dist = __commonJS3((exports) => {
|
|
|
42299
42803
|
}
|
|
42300
42804
|
});
|
|
42301
42805
|
var import_path_to_regexp = __toESM3(require_dist(), 1);
|
|
42302
|
-
var
|
|
42303
|
-
var
|
|
42806
|
+
var isNode = typeof process !== "undefined" && process.versions != null && process.versions.node != null;
|
|
42807
|
+
var isBrowser = typeof window !== "undefined" && typeof document !== "undefined" && typeof document.createElement === "function";
|
|
42304
42808
|
var isDeno2 = typeof Deno !== "undefined" && typeof Deno.version === "object" && typeof Deno.version.deno === "string";
|
|
42305
42809
|
var isBun2 = typeof Bun !== "undefined" && typeof Bun.version === "string";
|
|
42306
42810
|
var parseBody2 = async (req) => {
|
|
@@ -44139,7 +44643,7 @@ function isUnsafeProperty2(key) {
|
|
|
44139
44643
|
}
|
|
44140
44644
|
|
|
44141
44645
|
// ../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
|
|
44142
|
-
function
|
|
44646
|
+
function isPlainObject2(value) {
|
|
44143
44647
|
if (!value || typeof value !== "object") {
|
|
44144
44648
|
return false;
|
|
44145
44649
|
}
|
|
@@ -44165,7 +44669,7 @@ function merge3(target, source) {
|
|
|
44165
44669
|
target[key] = merge3(targetValue, sourceValue);
|
|
44166
44670
|
} else if (Array.isArray(sourceValue)) {
|
|
44167
44671
|
target[key] = merge3([], sourceValue);
|
|
44168
|
-
} else if (
|
|
44672
|
+
} else if (isPlainObject2(sourceValue)) {
|
|
44169
44673
|
target[key] = merge3({}, sourceValue);
|
|
44170
44674
|
} else if (targetValue === undefined || sourceValue !== undefined) {
|
|
44171
44675
|
target[key] = sourceValue;
|
|
@@ -44174,10 +44678,10 @@ function merge3(target, source) {
|
|
|
44174
44678
|
return target;
|
|
44175
44679
|
}
|
|
44176
44680
|
function isMergeableValue2(value) {
|
|
44177
|
-
return
|
|
44681
|
+
return isPlainObject2(value) || Array.isArray(value);
|
|
44178
44682
|
}
|
|
44179
44683
|
// ../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/predicate/isBrowser.mjs
|
|
44180
|
-
function
|
|
44684
|
+
function isBrowser5() {
|
|
44181
44685
|
return typeof window !== "undefined" && window?.document != null;
|
|
44182
44686
|
}
|
|
44183
44687
|
// src/module/assistant/proxy/s3.ts
|
|
@@ -47889,7 +48393,7 @@ function requireMicromatch() {
|
|
|
47889
48393
|
const micromatch = (list, patterns, options) => {
|
|
47890
48394
|
patterns = [].concat(patterns);
|
|
47891
48395
|
list = [].concat(list);
|
|
47892
|
-
let
|
|
48396
|
+
let omit = new Set;
|
|
47893
48397
|
let keep = new Set;
|
|
47894
48398
|
let items = new Set;
|
|
47895
48399
|
let negatives = 0;
|
|
@@ -47910,15 +48414,15 @@ function requireMicromatch() {
|
|
|
47910
48414
|
if (!match)
|
|
47911
48415
|
continue;
|
|
47912
48416
|
if (negated) {
|
|
47913
|
-
|
|
48417
|
+
omit.add(matched.output);
|
|
47914
48418
|
} else {
|
|
47915
|
-
|
|
48419
|
+
omit.delete(matched.output);
|
|
47916
48420
|
keep.add(matched.output);
|
|
47917
48421
|
}
|
|
47918
48422
|
}
|
|
47919
48423
|
}
|
|
47920
48424
|
let result = negatives === patterns.length ? [...items] : [...keep];
|
|
47921
|
-
let matches = result.filter((item) => !
|
|
48425
|
+
let matches = result.filter((item) => !omit.has(item));
|
|
47922
48426
|
if (options && matches.length === 0) {
|
|
47923
48427
|
if (options.failglob === true) {
|
|
47924
48428
|
throw new Error(`No matches found for "${patterns.join(", ")}"`);
|
|
@@ -53266,10 +53770,10 @@ __export3(exports_util2, {
|
|
|
53266
53770
|
primitiveTypes: () => primitiveTypes2,
|
|
53267
53771
|
prefixIssues: () => prefixIssues2,
|
|
53268
53772
|
pick: () => pick22,
|
|
53269
|
-
partial: () =>
|
|
53773
|
+
partial: () => partial5,
|
|
53270
53774
|
parsedType: () => parsedType2,
|
|
53271
53775
|
optionalKeys: () => optionalKeys2,
|
|
53272
|
-
omit: () =>
|
|
53776
|
+
omit: () => omit,
|
|
53273
53777
|
objectClone: () => objectClone2,
|
|
53274
53778
|
numKeys: () => numKeys2,
|
|
53275
53779
|
nullish: () => nullish3,
|
|
@@ -53648,7 +54152,7 @@ function pick22(schema, mask) {
|
|
|
53648
54152
|
});
|
|
53649
54153
|
return clone3(schema, def);
|
|
53650
54154
|
}
|
|
53651
|
-
function
|
|
54155
|
+
function omit(schema, mask) {
|
|
53652
54156
|
const currDef = schema._zod.def;
|
|
53653
54157
|
const checks = currDef.checks;
|
|
53654
54158
|
const hasChecks = checks && checks.length > 0;
|
|
@@ -53723,7 +54227,7 @@ function merge22(a, b) {
|
|
|
53723
54227
|
});
|
|
53724
54228
|
return clone3(a, def);
|
|
53725
54229
|
}
|
|
53726
|
-
function
|
|
54230
|
+
function partial5(Class2, schema, mask) {
|
|
53727
54231
|
const currDef = schema._zod.def;
|
|
53728
54232
|
const checks = currDef.checks;
|
|
53729
54233
|
const hasChecks = checks && checks.length > 0;
|
|
@@ -66486,7 +66990,7 @@ var initApi = async (opts) => {
|
|
|
66486
66990
|
_list = _list.filter((i) => !excludeIds.includes(i.id));
|
|
66487
66991
|
}
|
|
66488
66992
|
}
|
|
66489
|
-
const _isBrowser =
|
|
66993
|
+
const _isBrowser = isBrowser5();
|
|
66490
66994
|
for (const r of _list) {
|
|
66491
66995
|
if (r.path || r.id) {
|
|
66492
66996
|
_isBrowser && console.debug(`注册路由: [${r.path}] ${r?.key}`, "API");
|
|
@@ -66875,7 +67379,7 @@ class ModuleResolver {
|
|
|
66875
67379
|
// ../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/external.js
|
|
66876
67380
|
var exports_external3 = {};
|
|
66877
67381
|
__export(exports_external3, {
|
|
66878
|
-
xor: () =>
|
|
67382
|
+
xor: () => xor5,
|
|
66879
67383
|
xid: () => xid6,
|
|
66880
67384
|
void: () => _void6,
|
|
66881
67385
|
uuidv7: () => uuidv73,
|
|
@@ -66886,7 +67390,7 @@ __export(exports_external3, {
|
|
|
66886
67390
|
url: () => url6,
|
|
66887
67391
|
uppercase: () => _uppercase3,
|
|
66888
67392
|
unknown: () => unknown3,
|
|
66889
|
-
union: () =>
|
|
67393
|
+
union: () => union5,
|
|
66890
67394
|
undefined: () => _undefined8,
|
|
66891
67395
|
ulid: () => ulid6,
|
|
66892
67396
|
uint64: () => uint643,
|
|
@@ -66974,7 +67478,7 @@ __export(exports_external3, {
|
|
|
66974
67478
|
iso: () => exports_iso3,
|
|
66975
67479
|
ipv6: () => ipv66,
|
|
66976
67480
|
ipv4: () => ipv46,
|
|
66977
|
-
intersection: () =>
|
|
67481
|
+
intersection: () => intersection5,
|
|
66978
67482
|
int64: () => int643,
|
|
66979
67483
|
int32: () => int323,
|
|
66980
67484
|
int: () => int3,
|
|
@@ -67016,7 +67520,7 @@ __export(exports_external3, {
|
|
|
67016
67520
|
config: () => config3,
|
|
67017
67521
|
coerce: () => exports_coerce3,
|
|
67018
67522
|
codec: () => codec3,
|
|
67019
|
-
clone: () =>
|
|
67523
|
+
clone: () => clone5,
|
|
67020
67524
|
cidrv6: () => cidrv66,
|
|
67021
67525
|
cidrv4: () => cidrv46,
|
|
67022
67526
|
check: () => check3,
|
|
@@ -67153,7 +67657,7 @@ __export(exports_core3, {
|
|
|
67153
67657
|
createToJSONSchemaMethod: () => createToJSONSchemaMethod3,
|
|
67154
67658
|
createStandardJSONSchemaMethod: () => createStandardJSONSchemaMethod3,
|
|
67155
67659
|
config: () => config3,
|
|
67156
|
-
clone: () =>
|
|
67660
|
+
clone: () => clone5,
|
|
67157
67661
|
_xor: () => _xor3,
|
|
67158
67662
|
_xid: () => _xid3,
|
|
67159
67663
|
_void: () => _void5,
|
|
@@ -67484,8 +67988,8 @@ __export(exports_util3, {
|
|
|
67484
67988
|
promiseAllObject: () => promiseAllObject3,
|
|
67485
67989
|
primitiveTypes: () => primitiveTypes3,
|
|
67486
67990
|
prefixIssues: () => prefixIssues3,
|
|
67487
|
-
pick: () =>
|
|
67488
|
-
partial: () =>
|
|
67991
|
+
pick: () => pick4,
|
|
67992
|
+
partial: () => partial6,
|
|
67489
67993
|
parsedType: () => parsedType3,
|
|
67490
67994
|
optionalKeys: () => optionalKeys3,
|
|
67491
67995
|
omit: () => omit3,
|
|
@@ -67514,7 +68018,7 @@ __export(exports_util3, {
|
|
|
67514
68018
|
defineLazy: () => defineLazy3,
|
|
67515
68019
|
createTransparentProxy: () => createTransparentProxy3,
|
|
67516
68020
|
cloneDef: () => cloneDef3,
|
|
67517
|
-
clone: () =>
|
|
68021
|
+
clone: () => clone5,
|
|
67518
68022
|
cleanRegex: () => cleanRegex3,
|
|
67519
68023
|
cleanEnum: () => cleanEnum3,
|
|
67520
68024
|
captureStackTrace: () => captureStackTrace3,
|
|
@@ -67764,7 +68268,7 @@ var primitiveTypes3 = new Set(["string", "number", "bigint", "boolean", "symbol"
|
|
|
67764
68268
|
function escapeRegex3(str) {
|
|
67765
68269
|
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
67766
68270
|
}
|
|
67767
|
-
function
|
|
68271
|
+
function clone5(inst, def, params) {
|
|
67768
68272
|
const cl = new inst._zod.constr(def ?? inst._zod.def);
|
|
67769
68273
|
if (!def || params?.parent)
|
|
67770
68274
|
cl._zod.parent = inst;
|
|
@@ -67842,7 +68346,7 @@ var BIGINT_FORMAT_RANGES3 = {
|
|
|
67842
68346
|
int64: [/* @__PURE__ */ BigInt("-9223372036854775808"), /* @__PURE__ */ BigInt("9223372036854775807")],
|
|
67843
68347
|
uint64: [/* @__PURE__ */ BigInt(0), /* @__PURE__ */ BigInt("18446744073709551615")]
|
|
67844
68348
|
};
|
|
67845
|
-
function
|
|
68349
|
+
function pick4(schema, mask) {
|
|
67846
68350
|
const currDef = schema._zod.def;
|
|
67847
68351
|
const checks = currDef.checks;
|
|
67848
68352
|
const hasChecks = checks && checks.length > 0;
|
|
@@ -67865,7 +68369,7 @@ function pick5(schema, mask) {
|
|
|
67865
68369
|
},
|
|
67866
68370
|
checks: []
|
|
67867
68371
|
});
|
|
67868
|
-
return
|
|
68372
|
+
return clone5(schema, def);
|
|
67869
68373
|
}
|
|
67870
68374
|
function omit3(schema, mask) {
|
|
67871
68375
|
const currDef = schema._zod.def;
|
|
@@ -67890,7 +68394,7 @@ function omit3(schema, mask) {
|
|
|
67890
68394
|
},
|
|
67891
68395
|
checks: []
|
|
67892
68396
|
});
|
|
67893
|
-
return
|
|
68397
|
+
return clone5(schema, def);
|
|
67894
68398
|
}
|
|
67895
68399
|
function extend3(schema, shape) {
|
|
67896
68400
|
if (!isPlainObject7(shape)) {
|
|
@@ -67913,7 +68417,7 @@ function extend3(schema, shape) {
|
|
|
67913
68417
|
return _shape;
|
|
67914
68418
|
}
|
|
67915
68419
|
});
|
|
67916
|
-
return
|
|
68420
|
+
return clone5(schema, def);
|
|
67917
68421
|
}
|
|
67918
68422
|
function safeExtend3(schema, shape) {
|
|
67919
68423
|
if (!isPlainObject7(shape)) {
|
|
@@ -67926,7 +68430,7 @@ function safeExtend3(schema, shape) {
|
|
|
67926
68430
|
return _shape;
|
|
67927
68431
|
}
|
|
67928
68432
|
});
|
|
67929
|
-
return
|
|
68433
|
+
return clone5(schema, def);
|
|
67930
68434
|
}
|
|
67931
68435
|
function merge6(a, b) {
|
|
67932
68436
|
const def = mergeDefs3(a._zod.def, {
|
|
@@ -67940,9 +68444,9 @@ function merge6(a, b) {
|
|
|
67940
68444
|
},
|
|
67941
68445
|
checks: []
|
|
67942
68446
|
});
|
|
67943
|
-
return
|
|
68447
|
+
return clone5(a, def);
|
|
67944
68448
|
}
|
|
67945
|
-
function
|
|
68449
|
+
function partial6(Class3, schema, mask) {
|
|
67946
68450
|
const currDef = schema._zod.def;
|
|
67947
68451
|
const checks = currDef.checks;
|
|
67948
68452
|
const hasChecks = checks && checks.length > 0;
|
|
@@ -67978,7 +68482,7 @@ function partial5(Class3, schema, mask) {
|
|
|
67978
68482
|
},
|
|
67979
68483
|
checks: []
|
|
67980
68484
|
});
|
|
67981
|
-
return
|
|
68485
|
+
return clone5(schema, def);
|
|
67982
68486
|
}
|
|
67983
68487
|
function required3(Class3, schema, mask) {
|
|
67984
68488
|
const def = mergeDefs3(schema._zod.def, {
|
|
@@ -68009,7 +68513,7 @@ function required3(Class3, schema, mask) {
|
|
|
68009
68513
|
return shape;
|
|
68010
68514
|
}
|
|
68011
68515
|
});
|
|
68012
|
-
return
|
|
68516
|
+
return clone5(schema, def);
|
|
68013
68517
|
}
|
|
68014
68518
|
function aborted3(x, startIndex = 0) {
|
|
68015
68519
|
if (x.aborted === true)
|
|
@@ -78526,7 +79030,7 @@ var exports_json_schema3 = {};
|
|
|
78526
79030
|
// ../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
|
|
78527
79031
|
var exports_schemas3 = {};
|
|
78528
79032
|
__export(exports_schemas3, {
|
|
78529
|
-
xor: () =>
|
|
79033
|
+
xor: () => xor5,
|
|
78530
79034
|
xid: () => xid6,
|
|
78531
79035
|
void: () => _void6,
|
|
78532
79036
|
uuidv7: () => uuidv73,
|
|
@@ -78535,7 +79039,7 @@ __export(exports_schemas3, {
|
|
|
78535
79039
|
uuid: () => uuid8,
|
|
78536
79040
|
url: () => url6,
|
|
78537
79041
|
unknown: () => unknown3,
|
|
78538
|
-
union: () =>
|
|
79042
|
+
union: () => union5,
|
|
78539
79043
|
undefined: () => _undefined8,
|
|
78540
79044
|
ulid: () => ulid6,
|
|
78541
79045
|
uint64: () => uint643,
|
|
@@ -78583,7 +79087,7 @@ __export(exports_schemas3, {
|
|
|
78583
79087
|
json: () => json3,
|
|
78584
79088
|
ipv6: () => ipv66,
|
|
78585
79089
|
ipv4: () => ipv46,
|
|
78586
|
-
intersection: () =>
|
|
79090
|
+
intersection: () => intersection5,
|
|
78587
79091
|
int64: () => int643,
|
|
78588
79092
|
int32: () => int323,
|
|
78589
79093
|
int: () => int3,
|
|
@@ -78840,7 +79344,7 @@ var ZodType3 = /* @__PURE__ */ $constructor3("ZodType", (inst, def) => {
|
|
|
78840
79344
|
});
|
|
78841
79345
|
};
|
|
78842
79346
|
inst.with = inst.check;
|
|
78843
|
-
inst.clone = (def2, params) =>
|
|
79347
|
+
inst.clone = (def2, params) => clone5(inst, def2, params);
|
|
78844
79348
|
inst.brand = () => inst;
|
|
78845
79349
|
inst.register = (reg, meta4) => {
|
|
78846
79350
|
reg.add(inst, meta4);
|
|
@@ -78868,8 +79372,8 @@ var ZodType3 = /* @__PURE__ */ $constructor3("ZodType", (inst, def) => {
|
|
|
78868
79372
|
inst.nullish = () => optional3(nullable3(inst));
|
|
78869
79373
|
inst.nonoptional = (params) => nonoptional3(inst, params);
|
|
78870
79374
|
inst.array = () => array4(inst);
|
|
78871
|
-
inst.or = (arg) =>
|
|
78872
|
-
inst.and = (arg) =>
|
|
79375
|
+
inst.or = (arg) => union5([inst, arg]);
|
|
79376
|
+
inst.and = (arg) => intersection5(inst, arg);
|
|
78873
79377
|
inst.transform = (tx) => pipe3(inst, transform3(tx));
|
|
78874
79378
|
inst.default = (def2) => _default6(inst, def2);
|
|
78875
79379
|
inst.prefault = (def2) => prefault3(inst, def2);
|
|
@@ -79372,7 +79876,7 @@ var ZodUnion3 = /* @__PURE__ */ $constructor3("ZodUnion", (inst, def) => {
|
|
|
79372
79876
|
inst._zod.processJSONSchema = (ctx, json3, params) => unionProcessor3(inst, ctx, json3, params);
|
|
79373
79877
|
inst.options = def.options;
|
|
79374
79878
|
});
|
|
79375
|
-
function
|
|
79879
|
+
function union5(options, params) {
|
|
79376
79880
|
return new ZodUnion3({
|
|
79377
79881
|
type: "union",
|
|
79378
79882
|
options,
|
|
@@ -79385,7 +79889,7 @@ var ZodXor3 = /* @__PURE__ */ $constructor3("ZodXor", (inst, def) => {
|
|
|
79385
79889
|
inst._zod.processJSONSchema = (ctx, json3, params) => unionProcessor3(inst, ctx, json3, params);
|
|
79386
79890
|
inst.options = def.options;
|
|
79387
79891
|
});
|
|
79388
|
-
function
|
|
79892
|
+
function xor5(options, params) {
|
|
79389
79893
|
return new ZodXor3({
|
|
79390
79894
|
type: "union",
|
|
79391
79895
|
options,
|
|
@@ -79410,7 +79914,7 @@ var ZodIntersection3 = /* @__PURE__ */ $constructor3("ZodIntersection", (inst, d
|
|
|
79410
79914
|
ZodType3.init(inst, def);
|
|
79411
79915
|
inst._zod.processJSONSchema = (ctx, json3, params) => intersectionProcessor3(inst, ctx, json3, params);
|
|
79412
79916
|
});
|
|
79413
|
-
function
|
|
79917
|
+
function intersection5(left, right) {
|
|
79414
79918
|
return new ZodIntersection3({
|
|
79415
79919
|
type: "intersection",
|
|
79416
79920
|
left,
|
|
@@ -79453,7 +79957,7 @@ function record3(keyType, valueType, params) {
|
|
|
79453
79957
|
});
|
|
79454
79958
|
}
|
|
79455
79959
|
function partialRecord3(keyType, valueType, params) {
|
|
79456
|
-
const k =
|
|
79960
|
+
const k = clone5(keyType);
|
|
79457
79961
|
k._zod.values = undefined;
|
|
79458
79962
|
return new ZodRecord3({
|
|
79459
79963
|
type: "record",
|
|
@@ -79885,7 +80389,7 @@ var stringbool3 = (...args2) => _stringbool3({
|
|
|
79885
80389
|
}, ...args2);
|
|
79886
80390
|
function json3(params) {
|
|
79887
80391
|
const jsonSchema = lazy3(() => {
|
|
79888
|
-
return
|
|
80392
|
+
return union5([string8(params), number7(), boolean7(), _null8(), array4(jsonSchema), record3(string8(), jsonSchema)]);
|
|
79889
80393
|
});
|
|
79890
80394
|
return jsonSchema;
|
|
79891
80395
|
}
|
|
@@ -80408,7 +80912,7 @@ config3(en_default3());
|
|
|
80408
80912
|
var zod_default = exports_external3;
|
|
80409
80913
|
|
|
80410
80914
|
// ../node_modules/.pnpm/@kevisual+context@0.0.8/node_modules/@kevisual/context/dist/app.js
|
|
80411
|
-
var
|
|
80915
|
+
var isBrowser6 = typeof window !== "undefined" && typeof document !== "undefined";
|
|
80412
80916
|
var isBrowser22 = typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
80413
80917
|
function getDefaultExportFromCjs3(x) {
|
|
80414
80918
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
@@ -80969,7 +81473,7 @@ var useKey2 = (envKey, initKey = "context") => {
|
|
|
80969
81473
|
if (typeof _env[key] !== "undefined") {
|
|
80970
81474
|
return _env[key];
|
|
80971
81475
|
}
|
|
80972
|
-
if (!
|
|
81476
|
+
if (!isBrowser6) {
|
|
80973
81477
|
const nodeEev = gt2?.process?.env;
|
|
80974
81478
|
if (typeof nodeEev !== "undefined") {
|
|
80975
81479
|
const value = nodeEev[key];
|
|
@@ -84120,34 +84624,54 @@ var simpleRouter = useContextKey("simpleRouter", () => {
|
|
|
84120
84624
|
});
|
|
84121
84625
|
app.createRouteList();
|
|
84122
84626
|
|
|
84123
|
-
// ../node_modules/.pnpm/@kevisual+router@0.1.
|
|
84627
|
+
// ../node_modules/.pnpm/@kevisual+router@0.1.2/node_modules/@kevisual/router/dist/opencode.js
|
|
84628
|
+
import { createRequire as createRequire4 } from "node:module";
|
|
84124
84629
|
import { webcrypto as crypto4 } from "node:crypto";
|
|
84125
84630
|
var __create7 = Object.create;
|
|
84126
84631
|
var __getProtoOf7 = Object.getPrototypeOf;
|
|
84127
84632
|
var __defProp7 = Object.defineProperty;
|
|
84128
84633
|
var __getOwnPropNames7 = Object.getOwnPropertyNames;
|
|
84129
84634
|
var __hasOwnProp7 = Object.prototype.hasOwnProperty;
|
|
84635
|
+
function __accessProp4(key) {
|
|
84636
|
+
return this[key];
|
|
84637
|
+
}
|
|
84638
|
+
var __toESMCache_node4;
|
|
84639
|
+
var __toESMCache_esm4;
|
|
84130
84640
|
var __toESM7 = (mod, isNodeMode, target) => {
|
|
84641
|
+
var canCache = mod != null && typeof mod === "object";
|
|
84642
|
+
if (canCache) {
|
|
84643
|
+
var cache2 = isNodeMode ? __toESMCache_node4 ??= new WeakMap : __toESMCache_esm4 ??= new WeakMap;
|
|
84644
|
+
var cached4 = cache2.get(mod);
|
|
84645
|
+
if (cached4)
|
|
84646
|
+
return cached4;
|
|
84647
|
+
}
|
|
84131
84648
|
target = mod != null ? __create7(__getProtoOf7(mod)) : {};
|
|
84132
84649
|
const to = isNodeMode || !mod || !mod.__esModule ? __defProp7(target, "default", { value: mod, enumerable: true }) : target;
|
|
84133
84650
|
for (let key of __getOwnPropNames7(mod))
|
|
84134
84651
|
if (!__hasOwnProp7.call(to, key))
|
|
84135
84652
|
__defProp7(to, key, {
|
|
84136
|
-
get: (
|
|
84653
|
+
get: __accessProp4.bind(mod, key),
|
|
84137
84654
|
enumerable: true
|
|
84138
84655
|
});
|
|
84656
|
+
if (canCache)
|
|
84657
|
+
cache2.set(mod, to);
|
|
84139
84658
|
return to;
|
|
84140
84659
|
};
|
|
84141
84660
|
var __commonJS7 = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
84661
|
+
var __returnValue3 = (v) => v;
|
|
84662
|
+
function __exportSetter3(name, newValue) {
|
|
84663
|
+
this[name] = __returnValue3.bind(null, newValue);
|
|
84664
|
+
}
|
|
84142
84665
|
var __export4 = (target, all) => {
|
|
84143
84666
|
for (var name in all)
|
|
84144
84667
|
__defProp7(target, name, {
|
|
84145
84668
|
get: all[name],
|
|
84146
84669
|
enumerable: true,
|
|
84147
84670
|
configurable: true,
|
|
84148
|
-
set: (
|
|
84671
|
+
set: __exportSetter3.bind(all, name)
|
|
84149
84672
|
});
|
|
84150
84673
|
};
|
|
84674
|
+
var __require4 = /* @__PURE__ */ createRequire4(import.meta.url);
|
|
84151
84675
|
var require_eventemitter35 = __commonJS7((exports, module) => {
|
|
84152
84676
|
var has = Object.prototype.hasOwnProperty;
|
|
84153
84677
|
var prefix = "~";
|
|
@@ -84324,6 +84848,464 @@ var require_eventemitter35 = __commonJS7((exports, module) => {
|
|
|
84324
84848
|
module.exports = EventEmitter22;
|
|
84325
84849
|
}
|
|
84326
84850
|
});
|
|
84851
|
+
var require_core2 = __commonJS7((exports, module) => {
|
|
84852
|
+
(function(root2, factory) {
|
|
84853
|
+
if (typeof exports === "object") {
|
|
84854
|
+
module.exports = exports = factory();
|
|
84855
|
+
} else if (typeof define === "function" && define.amd) {
|
|
84856
|
+
define([], factory);
|
|
84857
|
+
} else {
|
|
84858
|
+
root2.CryptoJS = factory();
|
|
84859
|
+
}
|
|
84860
|
+
})(exports, function() {
|
|
84861
|
+
var CryptoJS = CryptoJS || function(Math2, undefined2) {
|
|
84862
|
+
var crypto22;
|
|
84863
|
+
if (typeof window !== "undefined" && window.crypto) {
|
|
84864
|
+
crypto22 = window.crypto;
|
|
84865
|
+
}
|
|
84866
|
+
if (typeof self !== "undefined" && self.crypto) {
|
|
84867
|
+
crypto22 = self.crypto;
|
|
84868
|
+
}
|
|
84869
|
+
if (typeof globalThis !== "undefined" && globalThis.crypto) {
|
|
84870
|
+
crypto22 = globalThis.crypto;
|
|
84871
|
+
}
|
|
84872
|
+
if (!crypto22 && typeof window !== "undefined" && window.msCrypto) {
|
|
84873
|
+
crypto22 = window.msCrypto;
|
|
84874
|
+
}
|
|
84875
|
+
if (!crypto22 && typeof global !== "undefined" && global.crypto) {
|
|
84876
|
+
crypto22 = global.crypto;
|
|
84877
|
+
}
|
|
84878
|
+
if (!crypto22 && true) {
|
|
84879
|
+
try {
|
|
84880
|
+
crypto22 = __require4("crypto");
|
|
84881
|
+
} catch (err) {}
|
|
84882
|
+
}
|
|
84883
|
+
var cryptoSecureRandomInt = function() {
|
|
84884
|
+
if (crypto22) {
|
|
84885
|
+
if (typeof crypto22.getRandomValues === "function") {
|
|
84886
|
+
try {
|
|
84887
|
+
return crypto22.getRandomValues(new Uint32Array(1))[0];
|
|
84888
|
+
} catch (err) {}
|
|
84889
|
+
}
|
|
84890
|
+
if (typeof crypto22.randomBytes === "function") {
|
|
84891
|
+
try {
|
|
84892
|
+
return crypto22.randomBytes(4).readInt32LE();
|
|
84893
|
+
} catch (err) {}
|
|
84894
|
+
}
|
|
84895
|
+
}
|
|
84896
|
+
throw new Error("Native crypto module could not be used to get secure random number.");
|
|
84897
|
+
};
|
|
84898
|
+
var create = Object.create || function() {
|
|
84899
|
+
function F() {}
|
|
84900
|
+
return function(obj) {
|
|
84901
|
+
var subtype;
|
|
84902
|
+
F.prototype = obj;
|
|
84903
|
+
subtype = new F;
|
|
84904
|
+
F.prototype = null;
|
|
84905
|
+
return subtype;
|
|
84906
|
+
};
|
|
84907
|
+
}();
|
|
84908
|
+
var C = {};
|
|
84909
|
+
var C_lib = C.lib = {};
|
|
84910
|
+
var Base = C_lib.Base = function() {
|
|
84911
|
+
return {
|
|
84912
|
+
extend: function(overrides) {
|
|
84913
|
+
var subtype = create(this);
|
|
84914
|
+
if (overrides) {
|
|
84915
|
+
subtype.mixIn(overrides);
|
|
84916
|
+
}
|
|
84917
|
+
if (!subtype.hasOwnProperty("init") || this.init === subtype.init) {
|
|
84918
|
+
subtype.init = function() {
|
|
84919
|
+
subtype.$super.init.apply(this, arguments);
|
|
84920
|
+
};
|
|
84921
|
+
}
|
|
84922
|
+
subtype.init.prototype = subtype;
|
|
84923
|
+
subtype.$super = this;
|
|
84924
|
+
return subtype;
|
|
84925
|
+
},
|
|
84926
|
+
create: function() {
|
|
84927
|
+
var instance = this.extend();
|
|
84928
|
+
instance.init.apply(instance, arguments);
|
|
84929
|
+
return instance;
|
|
84930
|
+
},
|
|
84931
|
+
init: function() {},
|
|
84932
|
+
mixIn: function(properties) {
|
|
84933
|
+
for (var propertyName in properties) {
|
|
84934
|
+
if (properties.hasOwnProperty(propertyName)) {
|
|
84935
|
+
this[propertyName] = properties[propertyName];
|
|
84936
|
+
}
|
|
84937
|
+
}
|
|
84938
|
+
if (properties.hasOwnProperty("toString")) {
|
|
84939
|
+
this.toString = properties.toString;
|
|
84940
|
+
}
|
|
84941
|
+
},
|
|
84942
|
+
clone: function() {
|
|
84943
|
+
return this.init.prototype.extend(this);
|
|
84944
|
+
}
|
|
84945
|
+
};
|
|
84946
|
+
}();
|
|
84947
|
+
var WordArray = C_lib.WordArray = Base.extend({
|
|
84948
|
+
init: function(words2, sigBytes) {
|
|
84949
|
+
words2 = this.words = words2 || [];
|
|
84950
|
+
if (sigBytes != undefined2) {
|
|
84951
|
+
this.sigBytes = sigBytes;
|
|
84952
|
+
} else {
|
|
84953
|
+
this.sigBytes = words2.length * 4;
|
|
84954
|
+
}
|
|
84955
|
+
},
|
|
84956
|
+
toString: function(encoder) {
|
|
84957
|
+
return (encoder || Hex).stringify(this);
|
|
84958
|
+
},
|
|
84959
|
+
concat: function(wordArray) {
|
|
84960
|
+
var thisWords = this.words;
|
|
84961
|
+
var thatWords = wordArray.words;
|
|
84962
|
+
var thisSigBytes = this.sigBytes;
|
|
84963
|
+
var thatSigBytes = wordArray.sigBytes;
|
|
84964
|
+
this.clamp();
|
|
84965
|
+
if (thisSigBytes % 4) {
|
|
84966
|
+
for (var i = 0;i < thatSigBytes; i++) {
|
|
84967
|
+
var thatByte = thatWords[i >>> 2] >>> 24 - i % 4 * 8 & 255;
|
|
84968
|
+
thisWords[thisSigBytes + i >>> 2] |= thatByte << 24 - (thisSigBytes + i) % 4 * 8;
|
|
84969
|
+
}
|
|
84970
|
+
} else {
|
|
84971
|
+
for (var j = 0;j < thatSigBytes; j += 4) {
|
|
84972
|
+
thisWords[thisSigBytes + j >>> 2] = thatWords[j >>> 2];
|
|
84973
|
+
}
|
|
84974
|
+
}
|
|
84975
|
+
this.sigBytes += thatSigBytes;
|
|
84976
|
+
return this;
|
|
84977
|
+
},
|
|
84978
|
+
clamp: function() {
|
|
84979
|
+
var words2 = this.words;
|
|
84980
|
+
var sigBytes = this.sigBytes;
|
|
84981
|
+
words2[sigBytes >>> 2] &= 4294967295 << 32 - sigBytes % 4 * 8;
|
|
84982
|
+
words2.length = Math2.ceil(sigBytes / 4);
|
|
84983
|
+
},
|
|
84984
|
+
clone: function() {
|
|
84985
|
+
var clone22 = Base.clone.call(this);
|
|
84986
|
+
clone22.words = this.words.slice(0);
|
|
84987
|
+
return clone22;
|
|
84988
|
+
},
|
|
84989
|
+
random: function(nBytes) {
|
|
84990
|
+
var words2 = [];
|
|
84991
|
+
for (var i = 0;i < nBytes; i += 4) {
|
|
84992
|
+
words2.push(cryptoSecureRandomInt());
|
|
84993
|
+
}
|
|
84994
|
+
return new WordArray.init(words2, nBytes);
|
|
84995
|
+
}
|
|
84996
|
+
});
|
|
84997
|
+
var C_enc = C.enc = {};
|
|
84998
|
+
var Hex = C_enc.Hex = {
|
|
84999
|
+
stringify: function(wordArray) {
|
|
85000
|
+
var words2 = wordArray.words;
|
|
85001
|
+
var sigBytes = wordArray.sigBytes;
|
|
85002
|
+
var hexChars = [];
|
|
85003
|
+
for (var i = 0;i < sigBytes; i++) {
|
|
85004
|
+
var bite = words2[i >>> 2] >>> 24 - i % 4 * 8 & 255;
|
|
85005
|
+
hexChars.push((bite >>> 4).toString(16));
|
|
85006
|
+
hexChars.push((bite & 15).toString(16));
|
|
85007
|
+
}
|
|
85008
|
+
return hexChars.join("");
|
|
85009
|
+
},
|
|
85010
|
+
parse: function(hexStr) {
|
|
85011
|
+
var hexStrLength = hexStr.length;
|
|
85012
|
+
var words2 = [];
|
|
85013
|
+
for (var i = 0;i < hexStrLength; i += 2) {
|
|
85014
|
+
words2[i >>> 3] |= parseInt(hexStr.substr(i, 2), 16) << 24 - i % 8 * 4;
|
|
85015
|
+
}
|
|
85016
|
+
return new WordArray.init(words2, hexStrLength / 2);
|
|
85017
|
+
}
|
|
85018
|
+
};
|
|
85019
|
+
var Latin1 = C_enc.Latin1 = {
|
|
85020
|
+
stringify: function(wordArray) {
|
|
85021
|
+
var words2 = wordArray.words;
|
|
85022
|
+
var sigBytes = wordArray.sigBytes;
|
|
85023
|
+
var latin1Chars = [];
|
|
85024
|
+
for (var i = 0;i < sigBytes; i++) {
|
|
85025
|
+
var bite = words2[i >>> 2] >>> 24 - i % 4 * 8 & 255;
|
|
85026
|
+
latin1Chars.push(String.fromCharCode(bite));
|
|
85027
|
+
}
|
|
85028
|
+
return latin1Chars.join("");
|
|
85029
|
+
},
|
|
85030
|
+
parse: function(latin1Str) {
|
|
85031
|
+
var latin1StrLength = latin1Str.length;
|
|
85032
|
+
var words2 = [];
|
|
85033
|
+
for (var i = 0;i < latin1StrLength; i++) {
|
|
85034
|
+
words2[i >>> 2] |= (latin1Str.charCodeAt(i) & 255) << 24 - i % 4 * 8;
|
|
85035
|
+
}
|
|
85036
|
+
return new WordArray.init(words2, latin1StrLength);
|
|
85037
|
+
}
|
|
85038
|
+
};
|
|
85039
|
+
var Utf8 = C_enc.Utf8 = {
|
|
85040
|
+
stringify: function(wordArray) {
|
|
85041
|
+
try {
|
|
85042
|
+
return decodeURIComponent(escape(Latin1.stringify(wordArray)));
|
|
85043
|
+
} catch (e) {
|
|
85044
|
+
throw new Error("Malformed UTF-8 data");
|
|
85045
|
+
}
|
|
85046
|
+
},
|
|
85047
|
+
parse: function(utf8Str) {
|
|
85048
|
+
return Latin1.parse(unescape(encodeURIComponent(utf8Str)));
|
|
85049
|
+
}
|
|
85050
|
+
};
|
|
85051
|
+
var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm = Base.extend({
|
|
85052
|
+
reset: function() {
|
|
85053
|
+
this._data = new WordArray.init;
|
|
85054
|
+
this._nDataBytes = 0;
|
|
85055
|
+
},
|
|
85056
|
+
_append: function(data) {
|
|
85057
|
+
if (typeof data == "string") {
|
|
85058
|
+
data = Utf8.parse(data);
|
|
85059
|
+
}
|
|
85060
|
+
this._data.concat(data);
|
|
85061
|
+
this._nDataBytes += data.sigBytes;
|
|
85062
|
+
},
|
|
85063
|
+
_process: function(doFlush) {
|
|
85064
|
+
var processedWords;
|
|
85065
|
+
var data = this._data;
|
|
85066
|
+
var dataWords = data.words;
|
|
85067
|
+
var dataSigBytes = data.sigBytes;
|
|
85068
|
+
var blockSize = this.blockSize;
|
|
85069
|
+
var blockSizeBytes = blockSize * 4;
|
|
85070
|
+
var nBlocksReady = dataSigBytes / blockSizeBytes;
|
|
85071
|
+
if (doFlush) {
|
|
85072
|
+
nBlocksReady = Math2.ceil(nBlocksReady);
|
|
85073
|
+
} else {
|
|
85074
|
+
nBlocksReady = Math2.max((nBlocksReady | 0) - this._minBufferSize, 0);
|
|
85075
|
+
}
|
|
85076
|
+
var nWordsReady = nBlocksReady * blockSize;
|
|
85077
|
+
var nBytesReady = Math2.min(nWordsReady * 4, dataSigBytes);
|
|
85078
|
+
if (nWordsReady) {
|
|
85079
|
+
for (var offset = 0;offset < nWordsReady; offset += blockSize) {
|
|
85080
|
+
this._doProcessBlock(dataWords, offset);
|
|
85081
|
+
}
|
|
85082
|
+
processedWords = dataWords.splice(0, nWordsReady);
|
|
85083
|
+
data.sigBytes -= nBytesReady;
|
|
85084
|
+
}
|
|
85085
|
+
return new WordArray.init(processedWords, nBytesReady);
|
|
85086
|
+
},
|
|
85087
|
+
clone: function() {
|
|
85088
|
+
var clone22 = Base.clone.call(this);
|
|
85089
|
+
clone22._data = this._data.clone();
|
|
85090
|
+
return clone22;
|
|
85091
|
+
},
|
|
85092
|
+
_minBufferSize: 0
|
|
85093
|
+
});
|
|
85094
|
+
var Hasher = C_lib.Hasher = BufferedBlockAlgorithm.extend({
|
|
85095
|
+
cfg: Base.extend(),
|
|
85096
|
+
init: function(cfg) {
|
|
85097
|
+
this.cfg = this.cfg.extend(cfg);
|
|
85098
|
+
this.reset();
|
|
85099
|
+
},
|
|
85100
|
+
reset: function() {
|
|
85101
|
+
BufferedBlockAlgorithm.reset.call(this);
|
|
85102
|
+
this._doReset();
|
|
85103
|
+
},
|
|
85104
|
+
update: function(messageUpdate) {
|
|
85105
|
+
this._append(messageUpdate);
|
|
85106
|
+
this._process();
|
|
85107
|
+
return this;
|
|
85108
|
+
},
|
|
85109
|
+
finalize: function(messageUpdate) {
|
|
85110
|
+
if (messageUpdate) {
|
|
85111
|
+
this._append(messageUpdate);
|
|
85112
|
+
}
|
|
85113
|
+
var hash22 = this._doFinalize();
|
|
85114
|
+
return hash22;
|
|
85115
|
+
},
|
|
85116
|
+
blockSize: 512 / 32,
|
|
85117
|
+
_createHelper: function(hasher) {
|
|
85118
|
+
return function(message, cfg) {
|
|
85119
|
+
return new hasher.init(cfg).finalize(message);
|
|
85120
|
+
};
|
|
85121
|
+
},
|
|
85122
|
+
_createHmacHelper: function(hasher) {
|
|
85123
|
+
return function(message, key) {
|
|
85124
|
+
return new C_algo.HMAC.init(hasher, key).finalize(message);
|
|
85125
|
+
};
|
|
85126
|
+
}
|
|
85127
|
+
});
|
|
85128
|
+
var C_algo = C.algo = {};
|
|
85129
|
+
return C;
|
|
85130
|
+
}(Math);
|
|
85131
|
+
return CryptoJS;
|
|
85132
|
+
});
|
|
85133
|
+
});
|
|
85134
|
+
var require_md52 = __commonJS7((exports, module) => {
|
|
85135
|
+
(function(root2, factory) {
|
|
85136
|
+
if (typeof exports === "object") {
|
|
85137
|
+
module.exports = exports = factory(require_core2());
|
|
85138
|
+
} else if (typeof define === "function" && define.amd) {
|
|
85139
|
+
define(["./core"], factory);
|
|
85140
|
+
} else {
|
|
85141
|
+
factory(root2.CryptoJS);
|
|
85142
|
+
}
|
|
85143
|
+
})(exports, function(CryptoJS) {
|
|
85144
|
+
(function(Math2) {
|
|
85145
|
+
var C = CryptoJS;
|
|
85146
|
+
var C_lib = C.lib;
|
|
85147
|
+
var WordArray = C_lib.WordArray;
|
|
85148
|
+
var Hasher = C_lib.Hasher;
|
|
85149
|
+
var C_algo = C.algo;
|
|
85150
|
+
var T = [];
|
|
85151
|
+
(function() {
|
|
85152
|
+
for (var i = 0;i < 64; i++) {
|
|
85153
|
+
T[i] = Math2.abs(Math2.sin(i + 1)) * 4294967296 | 0;
|
|
85154
|
+
}
|
|
85155
|
+
})();
|
|
85156
|
+
var MD5 = C_algo.MD5 = Hasher.extend({
|
|
85157
|
+
_doReset: function() {
|
|
85158
|
+
this._hash = new WordArray.init([
|
|
85159
|
+
1732584193,
|
|
85160
|
+
4023233417,
|
|
85161
|
+
2562383102,
|
|
85162
|
+
271733878
|
|
85163
|
+
]);
|
|
85164
|
+
},
|
|
85165
|
+
_doProcessBlock: function(M, offset) {
|
|
85166
|
+
for (var i = 0;i < 16; i++) {
|
|
85167
|
+
var offset_i = offset + i;
|
|
85168
|
+
var M_offset_i = M[offset_i];
|
|
85169
|
+
M[offset_i] = (M_offset_i << 8 | M_offset_i >>> 24) & 16711935 | (M_offset_i << 24 | M_offset_i >>> 8) & 4278255360;
|
|
85170
|
+
}
|
|
85171
|
+
var H = this._hash.words;
|
|
85172
|
+
var M_offset_0 = M[offset + 0];
|
|
85173
|
+
var M_offset_1 = M[offset + 1];
|
|
85174
|
+
var M_offset_2 = M[offset + 2];
|
|
85175
|
+
var M_offset_3 = M[offset + 3];
|
|
85176
|
+
var M_offset_4 = M[offset + 4];
|
|
85177
|
+
var M_offset_5 = M[offset + 5];
|
|
85178
|
+
var M_offset_6 = M[offset + 6];
|
|
85179
|
+
var M_offset_7 = M[offset + 7];
|
|
85180
|
+
var M_offset_8 = M[offset + 8];
|
|
85181
|
+
var M_offset_9 = M[offset + 9];
|
|
85182
|
+
var M_offset_10 = M[offset + 10];
|
|
85183
|
+
var M_offset_11 = M[offset + 11];
|
|
85184
|
+
var M_offset_12 = M[offset + 12];
|
|
85185
|
+
var M_offset_13 = M[offset + 13];
|
|
85186
|
+
var M_offset_14 = M[offset + 14];
|
|
85187
|
+
var M_offset_15 = M[offset + 15];
|
|
85188
|
+
var a = H[0];
|
|
85189
|
+
var b = H[1];
|
|
85190
|
+
var c = H[2];
|
|
85191
|
+
var d = H[3];
|
|
85192
|
+
a = FF(a, b, c, d, M_offset_0, 7, T[0]);
|
|
85193
|
+
d = FF(d, a, b, c, M_offset_1, 12, T[1]);
|
|
85194
|
+
c = FF(c, d, a, b, M_offset_2, 17, T[2]);
|
|
85195
|
+
b = FF(b, c, d, a, M_offset_3, 22, T[3]);
|
|
85196
|
+
a = FF(a, b, c, d, M_offset_4, 7, T[4]);
|
|
85197
|
+
d = FF(d, a, b, c, M_offset_5, 12, T[5]);
|
|
85198
|
+
c = FF(c, d, a, b, M_offset_6, 17, T[6]);
|
|
85199
|
+
b = FF(b, c, d, a, M_offset_7, 22, T[7]);
|
|
85200
|
+
a = FF(a, b, c, d, M_offset_8, 7, T[8]);
|
|
85201
|
+
d = FF(d, a, b, c, M_offset_9, 12, T[9]);
|
|
85202
|
+
c = FF(c, d, a, b, M_offset_10, 17, T[10]);
|
|
85203
|
+
b = FF(b, c, d, a, M_offset_11, 22, T[11]);
|
|
85204
|
+
a = FF(a, b, c, d, M_offset_12, 7, T[12]);
|
|
85205
|
+
d = FF(d, a, b, c, M_offset_13, 12, T[13]);
|
|
85206
|
+
c = FF(c, d, a, b, M_offset_14, 17, T[14]);
|
|
85207
|
+
b = FF(b, c, d, a, M_offset_15, 22, T[15]);
|
|
85208
|
+
a = GG(a, b, c, d, M_offset_1, 5, T[16]);
|
|
85209
|
+
d = GG(d, a, b, c, M_offset_6, 9, T[17]);
|
|
85210
|
+
c = GG(c, d, a, b, M_offset_11, 14, T[18]);
|
|
85211
|
+
b = GG(b, c, d, a, M_offset_0, 20, T[19]);
|
|
85212
|
+
a = GG(a, b, c, d, M_offset_5, 5, T[20]);
|
|
85213
|
+
d = GG(d, a, b, c, M_offset_10, 9, T[21]);
|
|
85214
|
+
c = GG(c, d, a, b, M_offset_15, 14, T[22]);
|
|
85215
|
+
b = GG(b, c, d, a, M_offset_4, 20, T[23]);
|
|
85216
|
+
a = GG(a, b, c, d, M_offset_9, 5, T[24]);
|
|
85217
|
+
d = GG(d, a, b, c, M_offset_14, 9, T[25]);
|
|
85218
|
+
c = GG(c, d, a, b, M_offset_3, 14, T[26]);
|
|
85219
|
+
b = GG(b, c, d, a, M_offset_8, 20, T[27]);
|
|
85220
|
+
a = GG(a, b, c, d, M_offset_13, 5, T[28]);
|
|
85221
|
+
d = GG(d, a, b, c, M_offset_2, 9, T[29]);
|
|
85222
|
+
c = GG(c, d, a, b, M_offset_7, 14, T[30]);
|
|
85223
|
+
b = GG(b, c, d, a, M_offset_12, 20, T[31]);
|
|
85224
|
+
a = HH(a, b, c, d, M_offset_5, 4, T[32]);
|
|
85225
|
+
d = HH(d, a, b, c, M_offset_8, 11, T[33]);
|
|
85226
|
+
c = HH(c, d, a, b, M_offset_11, 16, T[34]);
|
|
85227
|
+
b = HH(b, c, d, a, M_offset_14, 23, T[35]);
|
|
85228
|
+
a = HH(a, b, c, d, M_offset_1, 4, T[36]);
|
|
85229
|
+
d = HH(d, a, b, c, M_offset_4, 11, T[37]);
|
|
85230
|
+
c = HH(c, d, a, b, M_offset_7, 16, T[38]);
|
|
85231
|
+
b = HH(b, c, d, a, M_offset_10, 23, T[39]);
|
|
85232
|
+
a = HH(a, b, c, d, M_offset_13, 4, T[40]);
|
|
85233
|
+
d = HH(d, a, b, c, M_offset_0, 11, T[41]);
|
|
85234
|
+
c = HH(c, d, a, b, M_offset_3, 16, T[42]);
|
|
85235
|
+
b = HH(b, c, d, a, M_offset_6, 23, T[43]);
|
|
85236
|
+
a = HH(a, b, c, d, M_offset_9, 4, T[44]);
|
|
85237
|
+
d = HH(d, a, b, c, M_offset_12, 11, T[45]);
|
|
85238
|
+
c = HH(c, d, a, b, M_offset_15, 16, T[46]);
|
|
85239
|
+
b = HH(b, c, d, a, M_offset_2, 23, T[47]);
|
|
85240
|
+
a = II(a, b, c, d, M_offset_0, 6, T[48]);
|
|
85241
|
+
d = II(d, a, b, c, M_offset_7, 10, T[49]);
|
|
85242
|
+
c = II(c, d, a, b, M_offset_14, 15, T[50]);
|
|
85243
|
+
b = II(b, c, d, a, M_offset_5, 21, T[51]);
|
|
85244
|
+
a = II(a, b, c, d, M_offset_12, 6, T[52]);
|
|
85245
|
+
d = II(d, a, b, c, M_offset_3, 10, T[53]);
|
|
85246
|
+
c = II(c, d, a, b, M_offset_10, 15, T[54]);
|
|
85247
|
+
b = II(b, c, d, a, M_offset_1, 21, T[55]);
|
|
85248
|
+
a = II(a, b, c, d, M_offset_8, 6, T[56]);
|
|
85249
|
+
d = II(d, a, b, c, M_offset_15, 10, T[57]);
|
|
85250
|
+
c = II(c, d, a, b, M_offset_6, 15, T[58]);
|
|
85251
|
+
b = II(b, c, d, a, M_offset_13, 21, T[59]);
|
|
85252
|
+
a = II(a, b, c, d, M_offset_4, 6, T[60]);
|
|
85253
|
+
d = II(d, a, b, c, M_offset_11, 10, T[61]);
|
|
85254
|
+
c = II(c, d, a, b, M_offset_2, 15, T[62]);
|
|
85255
|
+
b = II(b, c, d, a, M_offset_9, 21, T[63]);
|
|
85256
|
+
H[0] = H[0] + a | 0;
|
|
85257
|
+
H[1] = H[1] + b | 0;
|
|
85258
|
+
H[2] = H[2] + c | 0;
|
|
85259
|
+
H[3] = H[3] + d | 0;
|
|
85260
|
+
},
|
|
85261
|
+
_doFinalize: function() {
|
|
85262
|
+
var data = this._data;
|
|
85263
|
+
var dataWords = data.words;
|
|
85264
|
+
var nBitsTotal = this._nDataBytes * 8;
|
|
85265
|
+
var nBitsLeft = data.sigBytes * 8;
|
|
85266
|
+
dataWords[nBitsLeft >>> 5] |= 128 << 24 - nBitsLeft % 32;
|
|
85267
|
+
var nBitsTotalH = Math2.floor(nBitsTotal / 4294967296);
|
|
85268
|
+
var nBitsTotalL = nBitsTotal;
|
|
85269
|
+
dataWords[(nBitsLeft + 64 >>> 9 << 4) + 15] = (nBitsTotalH << 8 | nBitsTotalH >>> 24) & 16711935 | (nBitsTotalH << 24 | nBitsTotalH >>> 8) & 4278255360;
|
|
85270
|
+
dataWords[(nBitsLeft + 64 >>> 9 << 4) + 14] = (nBitsTotalL << 8 | nBitsTotalL >>> 24) & 16711935 | (nBitsTotalL << 24 | nBitsTotalL >>> 8) & 4278255360;
|
|
85271
|
+
data.sigBytes = (dataWords.length + 1) * 4;
|
|
85272
|
+
this._process();
|
|
85273
|
+
var hash22 = this._hash;
|
|
85274
|
+
var H = hash22.words;
|
|
85275
|
+
for (var i = 0;i < 4; i++) {
|
|
85276
|
+
var H_i = H[i];
|
|
85277
|
+
H[i] = (H_i << 8 | H_i >>> 24) & 16711935 | (H_i << 24 | H_i >>> 8) & 4278255360;
|
|
85278
|
+
}
|
|
85279
|
+
return hash22;
|
|
85280
|
+
},
|
|
85281
|
+
clone: function() {
|
|
85282
|
+
var clone22 = Hasher.clone.call(this);
|
|
85283
|
+
clone22._hash = this._hash.clone();
|
|
85284
|
+
return clone22;
|
|
85285
|
+
}
|
|
85286
|
+
});
|
|
85287
|
+
function FF(a, b, c, d, x, s, t) {
|
|
85288
|
+
var n = a + (b & c | ~b & d) + x + t;
|
|
85289
|
+
return (n << s | n >>> 32 - s) + b;
|
|
85290
|
+
}
|
|
85291
|
+
function GG(a, b, c, d, x, s, t) {
|
|
85292
|
+
var n = a + (b & d | c & ~d) + x + t;
|
|
85293
|
+
return (n << s | n >>> 32 - s) + b;
|
|
85294
|
+
}
|
|
85295
|
+
function HH(a, b, c, d, x, s, t) {
|
|
85296
|
+
var n = a + (b ^ c ^ d) + x + t;
|
|
85297
|
+
return (n << s | n >>> 32 - s) + b;
|
|
85298
|
+
}
|
|
85299
|
+
function II(a, b, c, d, x, s, t) {
|
|
85300
|
+
var n = a + (c ^ (b | ~d)) + x + t;
|
|
85301
|
+
return (n << s | n >>> 32 - s) + b;
|
|
85302
|
+
}
|
|
85303
|
+
C.MD5 = Hasher._createHelper(MD5);
|
|
85304
|
+
C.HmacMD5 = Hasher._createHmacHelper(MD5);
|
|
85305
|
+
})(Math);
|
|
85306
|
+
return CryptoJS.MD5;
|
|
85307
|
+
});
|
|
85308
|
+
});
|
|
84327
85309
|
var isBrowser23 = typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
84328
85310
|
function getDefaultExportFromCjs5(x) {
|
|
84329
85311
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
@@ -84879,7 +85861,7 @@ InitEnv3.init();
|
|
|
84879
85861
|
var import__5 = __toESM7(require_eventemitter35(), 1);
|
|
84880
85862
|
var exports_external4 = {};
|
|
84881
85863
|
__export4(exports_external4, {
|
|
84882
|
-
xor: () =>
|
|
85864
|
+
xor: () => xor6,
|
|
84883
85865
|
xid: () => xid23,
|
|
84884
85866
|
void: () => _void23,
|
|
84885
85867
|
uuidv7: () => uuidv74,
|
|
@@ -84890,7 +85872,7 @@ __export4(exports_external4, {
|
|
|
84890
85872
|
url: () => url7,
|
|
84891
85873
|
uppercase: () => _uppercase4,
|
|
84892
85874
|
unknown: () => unknown4,
|
|
84893
|
-
union: () =>
|
|
85875
|
+
union: () => union6,
|
|
84894
85876
|
undefined: () => _undefined33,
|
|
84895
85877
|
ulid: () => ulid23,
|
|
84896
85878
|
uint64: () => uint644,
|
|
@@ -84978,7 +85960,7 @@ __export4(exports_external4, {
|
|
|
84978
85960
|
iso: () => exports_iso4,
|
|
84979
85961
|
ipv6: () => ipv623,
|
|
84980
85962
|
ipv4: () => ipv423,
|
|
84981
|
-
intersection: () =>
|
|
85963
|
+
intersection: () => intersection6,
|
|
84982
85964
|
int64: () => int644,
|
|
84983
85965
|
int32: () => int324,
|
|
84984
85966
|
int: () => int4,
|
|
@@ -85020,7 +86002,7 @@ __export4(exports_external4, {
|
|
|
85020
86002
|
config: () => config6,
|
|
85021
86003
|
coerce: () => exports_coerce4,
|
|
85022
86004
|
codec: () => codec4,
|
|
85023
|
-
clone: () =>
|
|
86005
|
+
clone: () => clone6,
|
|
85024
86006
|
cidrv6: () => cidrv623,
|
|
85025
86007
|
cidrv4: () => cidrv423,
|
|
85026
86008
|
check: () => check4,
|
|
@@ -85155,7 +86137,7 @@ __export4(exports_core23, {
|
|
|
85155
86137
|
createToJSONSchemaMethod: () => createToJSONSchemaMethod4,
|
|
85156
86138
|
createStandardJSONSchemaMethod: () => createStandardJSONSchemaMethod4,
|
|
85157
86139
|
config: () => config6,
|
|
85158
|
-
clone: () =>
|
|
86140
|
+
clone: () => clone6,
|
|
85159
86141
|
_xor: () => _xor4,
|
|
85160
86142
|
_xid: () => _xid4,
|
|
85161
86143
|
_void: () => _void7,
|
|
@@ -85484,10 +86466,10 @@ __export4(exports_util4, {
|
|
|
85484
86466
|
primitiveTypes: () => primitiveTypes4,
|
|
85485
86467
|
prefixIssues: () => prefixIssues4,
|
|
85486
86468
|
pick: () => pick6,
|
|
85487
|
-
partial: () =>
|
|
86469
|
+
partial: () => partial7,
|
|
85488
86470
|
parsedType: () => parsedType4,
|
|
85489
86471
|
optionalKeys: () => optionalKeys4,
|
|
85490
|
-
omit: () =>
|
|
86472
|
+
omit: () => omit5,
|
|
85491
86473
|
objectClone: () => objectClone4,
|
|
85492
86474
|
numKeys: () => numKeys4,
|
|
85493
86475
|
nullish: () => nullish7,
|
|
@@ -85513,7 +86495,7 @@ __export4(exports_util4, {
|
|
|
85513
86495
|
defineLazy: () => defineLazy4,
|
|
85514
86496
|
createTransparentProxy: () => createTransparentProxy4,
|
|
85515
86497
|
cloneDef: () => cloneDef4,
|
|
85516
|
-
clone: () =>
|
|
86498
|
+
clone: () => clone6,
|
|
85517
86499
|
cleanRegex: () => cleanRegex4,
|
|
85518
86500
|
cleanEnum: () => cleanEnum4,
|
|
85519
86501
|
captureStackTrace: () => captureStackTrace4,
|
|
@@ -85763,7 +86745,7 @@ var primitiveTypes4 = new Set(["string", "number", "bigint", "boolean", "symbol"
|
|
|
85763
86745
|
function escapeRegex4(str) {
|
|
85764
86746
|
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
85765
86747
|
}
|
|
85766
|
-
function
|
|
86748
|
+
function clone6(inst, def, params) {
|
|
85767
86749
|
const cl = new inst._zod.constr(def ?? inst._zod.def);
|
|
85768
86750
|
if (!def || params?.parent)
|
|
85769
86751
|
cl._zod.parent = inst;
|
|
@@ -85864,9 +86846,9 @@ function pick6(schema, mask) {
|
|
|
85864
86846
|
},
|
|
85865
86847
|
checks: []
|
|
85866
86848
|
});
|
|
85867
|
-
return
|
|
86849
|
+
return clone6(schema, def);
|
|
85868
86850
|
}
|
|
85869
|
-
function
|
|
86851
|
+
function omit5(schema, mask) {
|
|
85870
86852
|
const currDef = schema._zod.def;
|
|
85871
86853
|
const checks3 = currDef.checks;
|
|
85872
86854
|
const hasChecks = checks3 && checks3.length > 0;
|
|
@@ -85889,7 +86871,7 @@ function omit4(schema, mask) {
|
|
|
85889
86871
|
},
|
|
85890
86872
|
checks: []
|
|
85891
86873
|
});
|
|
85892
|
-
return
|
|
86874
|
+
return clone6(schema, def);
|
|
85893
86875
|
}
|
|
85894
86876
|
function extend4(schema, shape) {
|
|
85895
86877
|
if (!isPlainObject8(shape)) {
|
|
@@ -85912,7 +86894,7 @@ function extend4(schema, shape) {
|
|
|
85912
86894
|
return _shape;
|
|
85913
86895
|
}
|
|
85914
86896
|
});
|
|
85915
|
-
return
|
|
86897
|
+
return clone6(schema, def);
|
|
85916
86898
|
}
|
|
85917
86899
|
function safeExtend4(schema, shape) {
|
|
85918
86900
|
if (!isPlainObject8(shape)) {
|
|
@@ -85925,7 +86907,7 @@ function safeExtend4(schema, shape) {
|
|
|
85925
86907
|
return _shape;
|
|
85926
86908
|
}
|
|
85927
86909
|
});
|
|
85928
|
-
return
|
|
86910
|
+
return clone6(schema, def);
|
|
85929
86911
|
}
|
|
85930
86912
|
function merge7(a, b) {
|
|
85931
86913
|
const def = mergeDefs4(a._zod.def, {
|
|
@@ -85939,9 +86921,9 @@ function merge7(a, b) {
|
|
|
85939
86921
|
},
|
|
85940
86922
|
checks: []
|
|
85941
86923
|
});
|
|
85942
|
-
return
|
|
86924
|
+
return clone6(a, def);
|
|
85943
86925
|
}
|
|
85944
|
-
function
|
|
86926
|
+
function partial7(Class4, schema, mask) {
|
|
85945
86927
|
const currDef = schema._zod.def;
|
|
85946
86928
|
const checks3 = currDef.checks;
|
|
85947
86929
|
const hasChecks = checks3 && checks3.length > 0;
|
|
@@ -85977,7 +86959,7 @@ function partial6(Class4, schema, mask) {
|
|
|
85977
86959
|
},
|
|
85978
86960
|
checks: []
|
|
85979
86961
|
});
|
|
85980
|
-
return
|
|
86962
|
+
return clone6(schema, def);
|
|
85981
86963
|
}
|
|
85982
86964
|
function required4(Class4, schema, mask) {
|
|
85983
86965
|
const def = mergeDefs4(schema._zod.def, {
|
|
@@ -86008,7 +86990,7 @@ function required4(Class4, schema, mask) {
|
|
|
86008
86990
|
return shape;
|
|
86009
86991
|
}
|
|
86010
86992
|
});
|
|
86011
|
-
return
|
|
86993
|
+
return clone6(schema, def);
|
|
86012
86994
|
}
|
|
86013
86995
|
function aborted4(x, startIndex = 0) {
|
|
86014
86996
|
if (x.aborted === true)
|
|
@@ -96454,7 +97436,7 @@ class JSONSchemaGenerator4 {
|
|
|
96454
97436
|
var exports_json_schema4 = {};
|
|
96455
97437
|
var exports_schemas23 = {};
|
|
96456
97438
|
__export4(exports_schemas23, {
|
|
96457
|
-
xor: () =>
|
|
97439
|
+
xor: () => xor6,
|
|
96458
97440
|
xid: () => xid23,
|
|
96459
97441
|
void: () => _void23,
|
|
96460
97442
|
uuidv7: () => uuidv74,
|
|
@@ -96463,7 +97445,7 @@ __export4(exports_schemas23, {
|
|
|
96463
97445
|
uuid: () => uuid23,
|
|
96464
97446
|
url: () => url7,
|
|
96465
97447
|
unknown: () => unknown4,
|
|
96466
|
-
union: () =>
|
|
97448
|
+
union: () => union6,
|
|
96467
97449
|
undefined: () => _undefined33,
|
|
96468
97450
|
ulid: () => ulid23,
|
|
96469
97451
|
uint64: () => uint644,
|
|
@@ -96511,7 +97493,7 @@ __export4(exports_schemas23, {
|
|
|
96511
97493
|
json: () => json4,
|
|
96512
97494
|
ipv6: () => ipv623,
|
|
96513
97495
|
ipv4: () => ipv423,
|
|
96514
|
-
intersection: () =>
|
|
97496
|
+
intersection: () => intersection6,
|
|
96515
97497
|
int64: () => int644,
|
|
96516
97498
|
int32: () => int324,
|
|
96517
97499
|
int: () => int4,
|
|
@@ -96758,7 +97740,7 @@ var ZodType4 = /* @__PURE__ */ $constructor4("ZodType", (inst, def) => {
|
|
|
96758
97740
|
});
|
|
96759
97741
|
};
|
|
96760
97742
|
inst.with = inst.check;
|
|
96761
|
-
inst.clone = (def2, params) =>
|
|
97743
|
+
inst.clone = (def2, params) => clone6(inst, def2, params);
|
|
96762
97744
|
inst.brand = () => inst;
|
|
96763
97745
|
inst.register = (reg, meta23) => {
|
|
96764
97746
|
reg.add(inst, meta23);
|
|
@@ -96786,8 +97768,8 @@ var ZodType4 = /* @__PURE__ */ $constructor4("ZodType", (inst, def) => {
|
|
|
96786
97768
|
inst.nullish = () => optional4(nullable4(inst));
|
|
96787
97769
|
inst.nonoptional = (params) => nonoptional4(inst, params);
|
|
96788
97770
|
inst.array = () => array5(inst);
|
|
96789
|
-
inst.or = (arg) =>
|
|
96790
|
-
inst.and = (arg) =>
|
|
97771
|
+
inst.or = (arg) => union6([inst, arg]);
|
|
97772
|
+
inst.and = (arg) => intersection6(inst, arg);
|
|
96791
97773
|
inst.transform = (tx) => pipe4(inst, transform4(tx));
|
|
96792
97774
|
inst.default = (def2) => _default23(inst, def2);
|
|
96793
97775
|
inst.prefault = (def2) => prefault4(inst, def2);
|
|
@@ -97290,7 +98272,7 @@ var ZodUnion4 = /* @__PURE__ */ $constructor4("ZodUnion", (inst, def) => {
|
|
|
97290
98272
|
inst._zod.processJSONSchema = (ctx, json4, params) => unionProcessor4(inst, ctx, json4, params);
|
|
97291
98273
|
inst.options = def.options;
|
|
97292
98274
|
});
|
|
97293
|
-
function
|
|
98275
|
+
function union6(options, params) {
|
|
97294
98276
|
return new ZodUnion4({
|
|
97295
98277
|
type: "union",
|
|
97296
98278
|
options,
|
|
@@ -97303,7 +98285,7 @@ var ZodXor4 = /* @__PURE__ */ $constructor4("ZodXor", (inst, def) => {
|
|
|
97303
98285
|
inst._zod.processJSONSchema = (ctx, json4, params) => unionProcessor4(inst, ctx, json4, params);
|
|
97304
98286
|
inst.options = def.options;
|
|
97305
98287
|
});
|
|
97306
|
-
function
|
|
98288
|
+
function xor6(options, params) {
|
|
97307
98289
|
return new ZodXor4({
|
|
97308
98290
|
type: "union",
|
|
97309
98291
|
options,
|
|
@@ -97328,7 +98310,7 @@ var ZodIntersection4 = /* @__PURE__ */ $constructor4("ZodIntersection", (inst, d
|
|
|
97328
98310
|
ZodType4.init(inst, def);
|
|
97329
98311
|
inst._zod.processJSONSchema = (ctx, json4, params) => intersectionProcessor4(inst, ctx, json4, params);
|
|
97330
98312
|
});
|
|
97331
|
-
function
|
|
98313
|
+
function intersection6(left, right) {
|
|
97332
98314
|
return new ZodIntersection4({
|
|
97333
98315
|
type: "intersection",
|
|
97334
98316
|
left,
|
|
@@ -97371,7 +98353,7 @@ function record4(keyType, valueType, params) {
|
|
|
97371
98353
|
});
|
|
97372
98354
|
}
|
|
97373
98355
|
function partialRecord4(keyType, valueType, params) {
|
|
97374
|
-
const k =
|
|
98356
|
+
const k = clone6(keyType);
|
|
97375
98357
|
k._zod.values = undefined;
|
|
97376
98358
|
return new ZodRecord4({
|
|
97377
98359
|
type: "record",
|
|
@@ -97803,7 +98785,7 @@ var stringbool4 = (...args2) => _stringbool4({
|
|
|
97803
98785
|
}, ...args2);
|
|
97804
98786
|
function json4(params) {
|
|
97805
98787
|
const jsonSchema = lazy4(() => {
|
|
97806
|
-
return
|
|
98788
|
+
return union6([string23(params), number23(), boolean23(), _null33(), array5(jsonSchema), record4(string23(), jsonSchema)]);
|
|
97807
98789
|
});
|
|
97808
98790
|
return jsonSchema;
|
|
97809
98791
|
}
|
|
@@ -98331,7 +99313,7 @@ function fillPool2(bytes) {
|
|
|
98331
99313
|
}
|
|
98332
99314
|
poolOffset2 += bytes;
|
|
98333
99315
|
}
|
|
98334
|
-
function
|
|
99316
|
+
function random5(bytes) {
|
|
98335
99317
|
fillPool2(bytes |= 0);
|
|
98336
99318
|
return pool2.subarray(poolOffset2 - bytes, poolOffset2);
|
|
98337
99319
|
}
|
|
@@ -98354,8 +99336,9 @@ function customRandom3(alphabet, defaultSize, getRandom) {
|
|
|
98354
99336
|
};
|
|
98355
99337
|
}
|
|
98356
99338
|
function customAlphabet3(alphabet, size = 21) {
|
|
98357
|
-
return customRandom3(alphabet, size,
|
|
99339
|
+
return customRandom3(alphabet, size, random5);
|
|
98358
99340
|
}
|
|
99341
|
+
var import_md52 = __toESM7(require_md52(), 1);
|
|
98359
99342
|
var nanoid33 = customAlphabet3("abcdefghijklmnopqrstuvwxyz", 16);
|
|
98360
99343
|
var tool2 = {
|
|
98361
99344
|
schema: exports_external4
|
|
@@ -102533,6 +103516,267 @@ app.route({
|
|
|
102533
103516
|
ctx.body = { content: `已经启动`, data };
|
|
102534
103517
|
}).addTo(app);
|
|
102535
103518
|
|
|
103519
|
+
// src/routes/opencode/session/index.ts
|
|
103520
|
+
app.route({
|
|
103521
|
+
path: "opencode-session",
|
|
103522
|
+
key: "list",
|
|
103523
|
+
middleware: ["auth-admin"],
|
|
103524
|
+
description: "列出所有 OpenCode Session",
|
|
103525
|
+
metadata: {
|
|
103526
|
+
tags: ["session"],
|
|
103527
|
+
...createSkill({
|
|
103528
|
+
skill: "list-opencode-sessions",
|
|
103529
|
+
title: "列出所有 Session",
|
|
103530
|
+
summary: "列出 OpenCode 中的所有会话,可按目录过滤",
|
|
103531
|
+
args: {
|
|
103532
|
+
port: tool.schema.number().optional().describe("OpenCode 服务端口,默认为 4096")
|
|
103533
|
+
}
|
|
103534
|
+
})
|
|
103535
|
+
}
|
|
103536
|
+
}).define(async (ctx) => {
|
|
103537
|
+
const { port } = ctx.query;
|
|
103538
|
+
const client3 = await opencodeManager.getClient({ port });
|
|
103539
|
+
const result = await client3.session.list();
|
|
103540
|
+
ctx.body = { data: result.data, content: `共 ${result.data?.length ?? 0} 个 Session` };
|
|
103541
|
+
}).addTo(app);
|
|
103542
|
+
app.route({
|
|
103543
|
+
path: "opencode-session",
|
|
103544
|
+
key: "get",
|
|
103545
|
+
middleware: ["auth-admin"],
|
|
103546
|
+
description: "获取指定 OpenCode Session",
|
|
103547
|
+
metadata: {
|
|
103548
|
+
tags: ["session"],
|
|
103549
|
+
...createSkill({
|
|
103550
|
+
skill: "get-opencode-session",
|
|
103551
|
+
title: "获取 Session",
|
|
103552
|
+
summary: "根据 ID 获取指定的 OpenCode 会话信息",
|
|
103553
|
+
args: {
|
|
103554
|
+
id: tool.schema.string().describe("Session ID"),
|
|
103555
|
+
port: tool.schema.number().optional().describe("OpenCode 服务端口,默认为 4096")
|
|
103556
|
+
}
|
|
103557
|
+
})
|
|
103558
|
+
}
|
|
103559
|
+
}).define(async (ctx) => {
|
|
103560
|
+
const { id, port } = ctx.query;
|
|
103561
|
+
if (!id) {
|
|
103562
|
+
ctx.throw(400, "Session ID 不能为空");
|
|
103563
|
+
return;
|
|
103564
|
+
}
|
|
103565
|
+
const client3 = await opencodeManager.getClient({ port });
|
|
103566
|
+
const result = await client3.session.get({ path: { id } });
|
|
103567
|
+
ctx.body = { data: result.data, content: `已获取 Session: ${id}` };
|
|
103568
|
+
}).addTo(app);
|
|
103569
|
+
app.route({
|
|
103570
|
+
path: "opencode-session",
|
|
103571
|
+
key: "status",
|
|
103572
|
+
middleware: ["auth-admin"],
|
|
103573
|
+
description: "获取 OpenCode Session 状态",
|
|
103574
|
+
metadata: {
|
|
103575
|
+
tags: ["session"],
|
|
103576
|
+
...createSkill({
|
|
103577
|
+
skill: "get-opencode-session-status",
|
|
103578
|
+
title: "获取 Session 状态",
|
|
103579
|
+
summary: "获取当前 OpenCode 会话的运行状态,可按目录过滤",
|
|
103580
|
+
args: {
|
|
103581
|
+
directory: tool.schema.string().optional().describe("工作目录"),
|
|
103582
|
+
port: tool.schema.number().optional().describe("OpenCode 服务端口,默认为 4096")
|
|
103583
|
+
}
|
|
103584
|
+
})
|
|
103585
|
+
}
|
|
103586
|
+
}).define(async (ctx) => {
|
|
103587
|
+
const { directory, port } = ctx.query;
|
|
103588
|
+
const client3 = await opencodeManager.getClient({ port });
|
|
103589
|
+
const result = await client3.session.status(directory ? { query: { directory } } : undefined);
|
|
103590
|
+
ctx.body = { data: result.data, content: `Session 状态已获取` };
|
|
103591
|
+
}).addTo(app);
|
|
103592
|
+
app.route({
|
|
103593
|
+
path: "opencode-session",
|
|
103594
|
+
key: "messages",
|
|
103595
|
+
middleware: ["auth-admin"],
|
|
103596
|
+
description: "列出 OpenCode Session 消息",
|
|
103597
|
+
metadata: {
|
|
103598
|
+
tags: ["session"],
|
|
103599
|
+
...createSkill({
|
|
103600
|
+
skill: "list-opencode-session-messages",
|
|
103601
|
+
title: "列出 Session 消息",
|
|
103602
|
+
summary: "列出指定 OpenCode 会话的所有消息记录",
|
|
103603
|
+
args: {
|
|
103604
|
+
id: tool.schema.string().describe("Session ID"),
|
|
103605
|
+
port: tool.schema.number().optional().describe("OpenCode 服务端口,默认为 4096")
|
|
103606
|
+
}
|
|
103607
|
+
})
|
|
103608
|
+
}
|
|
103609
|
+
}).define(async (ctx) => {
|
|
103610
|
+
const { id, port } = ctx.query;
|
|
103611
|
+
if (!id) {
|
|
103612
|
+
ctx.throw(400, "Session ID 不能为空");
|
|
103613
|
+
return;
|
|
103614
|
+
}
|
|
103615
|
+
const client3 = await opencodeManager.getClient({ port });
|
|
103616
|
+
const result = await client3.session.messages({ path: { id } });
|
|
103617
|
+
ctx.body = { data: result.data, content: `Session ${id} 共 ${result.data?.length ?? 0} 条消息` };
|
|
103618
|
+
}).addTo(app);
|
|
103619
|
+
app.route({
|
|
103620
|
+
path: "opencode-session",
|
|
103621
|
+
key: "create",
|
|
103622
|
+
middleware: ["auth-admin"],
|
|
103623
|
+
description: "创建 OpenCode Session",
|
|
103624
|
+
metadata: {
|
|
103625
|
+
tags: ["session"],
|
|
103626
|
+
...createSkill({
|
|
103627
|
+
skill: "create-opencode-session",
|
|
103628
|
+
title: "创建 Session",
|
|
103629
|
+
summary: "在指定目录创建一个新的 OpenCode 会话",
|
|
103630
|
+
args: {
|
|
103631
|
+
directory: tool.schema.string().optional().describe("工作目录,默认为 /workspace"),
|
|
103632
|
+
port: tool.schema.number().optional().describe("OpenCode 服务端口,默认为 4096")
|
|
103633
|
+
}
|
|
103634
|
+
})
|
|
103635
|
+
}
|
|
103636
|
+
}).define(async (ctx) => {
|
|
103637
|
+
const { directory = "/workspace", port } = ctx.query;
|
|
103638
|
+
const client3 = await opencodeManager.getClient({ port });
|
|
103639
|
+
const result = await client3.session.create({ query: { directory } });
|
|
103640
|
+
ctx.body = { data: result.data, content: `Session 已创建,ID: ${result.data?.id}` };
|
|
103641
|
+
}).addTo(app);
|
|
103642
|
+
app.route({
|
|
103643
|
+
path: "opencode-session",
|
|
103644
|
+
key: "update",
|
|
103645
|
+
middleware: ["auth-admin"],
|
|
103646
|
+
description: "更新 OpenCode Session",
|
|
103647
|
+
metadata: {
|
|
103648
|
+
tags: ["session"],
|
|
103649
|
+
...createSkill({
|
|
103650
|
+
skill: "update-opencode-session",
|
|
103651
|
+
title: "更新 Session",
|
|
103652
|
+
summary: "更新指定 OpenCode 会话的属性,如标题",
|
|
103653
|
+
args: {
|
|
103654
|
+
id: tool.schema.string().describe("Session ID"),
|
|
103655
|
+
title: tool.schema.string().optional().describe("新的会话标题"),
|
|
103656
|
+
port: tool.schema.number().optional().describe("OpenCode 服务端口,默认为 4096")
|
|
103657
|
+
}
|
|
103658
|
+
})
|
|
103659
|
+
}
|
|
103660
|
+
}).define(async (ctx) => {
|
|
103661
|
+
const { id, title, port } = ctx.query;
|
|
103662
|
+
if (!id) {
|
|
103663
|
+
ctx.throw(400, "Session ID 不能为空");
|
|
103664
|
+
return;
|
|
103665
|
+
}
|
|
103666
|
+
const client3 = await opencodeManager.getClient({ port });
|
|
103667
|
+
const result = await client3.session.update({ path: { id }, body: { title } });
|
|
103668
|
+
ctx.body = { data: result.data, content: `Session ${id} 已更新` };
|
|
103669
|
+
}).addTo(app);
|
|
103670
|
+
app.route({
|
|
103671
|
+
path: "opencode-session",
|
|
103672
|
+
key: "delete",
|
|
103673
|
+
middleware: ["auth-admin"],
|
|
103674
|
+
description: "删除 OpenCode Session",
|
|
103675
|
+
metadata: {
|
|
103676
|
+
tags: ["session"],
|
|
103677
|
+
...createSkill({
|
|
103678
|
+
skill: "delete-opencode-session",
|
|
103679
|
+
title: "删除 Session",
|
|
103680
|
+
summary: "根据 ID 删除指定的 OpenCode 会话及其所有数据",
|
|
103681
|
+
args: {
|
|
103682
|
+
id: tool.schema.string().describe("Session ID"),
|
|
103683
|
+
port: tool.schema.number().optional().describe("OpenCode 服务端口,默认为 4096")
|
|
103684
|
+
}
|
|
103685
|
+
})
|
|
103686
|
+
}
|
|
103687
|
+
}).define(async (ctx) => {
|
|
103688
|
+
const { id, port } = ctx.query;
|
|
103689
|
+
if (!id) {
|
|
103690
|
+
ctx.throw(400, "Session ID 不能为空");
|
|
103691
|
+
return;
|
|
103692
|
+
}
|
|
103693
|
+
const client3 = await opencodeManager.getClient({ port });
|
|
103694
|
+
await client3.session.delete({ path: { id } });
|
|
103695
|
+
ctx.body = { content: `Session ${id} 已删除` };
|
|
103696
|
+
}).addTo(app);
|
|
103697
|
+
app.route({
|
|
103698
|
+
path: "opencode-session",
|
|
103699
|
+
key: "abort",
|
|
103700
|
+
middleware: ["auth-admin"],
|
|
103701
|
+
description: "中止 OpenCode Session",
|
|
103702
|
+
metadata: {
|
|
103703
|
+
tags: ["session"],
|
|
103704
|
+
...createSkill({
|
|
103705
|
+
skill: "abort-opencode-session",
|
|
103706
|
+
title: "中止 Session",
|
|
103707
|
+
summary: "中止正在运行的 OpenCode 会话",
|
|
103708
|
+
args: {
|
|
103709
|
+
id: tool.schema.string().describe("Session ID"),
|
|
103710
|
+
port: tool.schema.number().optional().describe("OpenCode 服务端口,默认为 4096")
|
|
103711
|
+
}
|
|
103712
|
+
})
|
|
103713
|
+
}
|
|
103714
|
+
}).define(async (ctx) => {
|
|
103715
|
+
const { id, port } = ctx.query;
|
|
103716
|
+
if (!id) {
|
|
103717
|
+
ctx.throw(400, "Session ID 不能为空");
|
|
103718
|
+
return;
|
|
103719
|
+
}
|
|
103720
|
+
const client3 = await opencodeManager.getClient({ port });
|
|
103721
|
+
await client3.session.abort({ path: { id } });
|
|
103722
|
+
ctx.body = { content: `Session ${id} 已中止` };
|
|
103723
|
+
}).addTo(app);
|
|
103724
|
+
app.route({
|
|
103725
|
+
path: "opencode-session",
|
|
103726
|
+
key: "fork",
|
|
103727
|
+
middleware: ["auth-admin"],
|
|
103728
|
+
description: "Fork OpenCode Session",
|
|
103729
|
+
metadata: {
|
|
103730
|
+
tags: ["session"],
|
|
103731
|
+
...createSkill({
|
|
103732
|
+
skill: "fork-opencode-session",
|
|
103733
|
+
title: "Fork Session",
|
|
103734
|
+
summary: "从指定消息处 Fork 一个 OpenCode 会话",
|
|
103735
|
+
args: {
|
|
103736
|
+
id: tool.schema.string().describe("Session ID"),
|
|
103737
|
+
messageId: tool.schema.string().describe("从该消息处开始 Fork"),
|
|
103738
|
+
port: tool.schema.number().optional().describe("OpenCode 服务端口,默认为 4096")
|
|
103739
|
+
}
|
|
103740
|
+
})
|
|
103741
|
+
}
|
|
103742
|
+
}).define(async (ctx) => {
|
|
103743
|
+
const { id, messageId, port } = ctx.query;
|
|
103744
|
+
if (!id || !messageId) {
|
|
103745
|
+
ctx.throw(400, "Session ID 和 messageId 不能为空");
|
|
103746
|
+
return;
|
|
103747
|
+
}
|
|
103748
|
+
const client3 = await opencodeManager.getClient({ port });
|
|
103749
|
+
const result = await client3.session.fork({ path: { id }, body: { messageID: messageId } });
|
|
103750
|
+
ctx.body = { data: result.data, content: `Session ${id} 已从消息 ${messageId} Fork` };
|
|
103751
|
+
}).addTo(app);
|
|
103752
|
+
app.route({
|
|
103753
|
+
path: "opencode-session",
|
|
103754
|
+
key: "summarize",
|
|
103755
|
+
middleware: ["auth-admin"],
|
|
103756
|
+
description: "总结 OpenCode Session",
|
|
103757
|
+
metadata: {
|
|
103758
|
+
tags: ["session"],
|
|
103759
|
+
...createSkill({
|
|
103760
|
+
skill: "summarize-opencode-session",
|
|
103761
|
+
title: "总结 Session",
|
|
103762
|
+
summary: "对指定的 OpenCode 会话进行内容总结",
|
|
103763
|
+
args: {
|
|
103764
|
+
id: tool.schema.string().describe("Session ID"),
|
|
103765
|
+
port: tool.schema.number().optional().describe("OpenCode 服务端口,默认为 4096")
|
|
103766
|
+
}
|
|
103767
|
+
})
|
|
103768
|
+
}
|
|
103769
|
+
}).define(async (ctx) => {
|
|
103770
|
+
const { id, port } = ctx.query;
|
|
103771
|
+
if (!id) {
|
|
103772
|
+
ctx.throw(400, "Session ID 不能为空");
|
|
103773
|
+
return;
|
|
103774
|
+
}
|
|
103775
|
+
const client3 = await opencodeManager.getClient({ port });
|
|
103776
|
+
const result = await client3.session.summarize({ path: { id } });
|
|
103777
|
+
ctx.body = { data: result.data, content: `Session ${id} 总结完成` };
|
|
103778
|
+
}).addTo(app);
|
|
103779
|
+
|
|
102536
103780
|
// src/routes/remote/index.ts
|
|
102537
103781
|
app.route({
|
|
102538
103782
|
path: "remote",
|
|
@@ -102594,7 +103838,7 @@ var getLiveMdContent = (opts) => {
|
|
|
102594
103838
|
const token = useKey2("CNB_TOKEN") || "";
|
|
102595
103839
|
const openclawPort = useKey2("OPENCLAW_PORT") || "80";
|
|
102596
103840
|
const openclawUrl = url4.replace("{{port}}", openclawPort);
|
|
102597
|
-
const openclawUrlSecret = openclawUrl + "/openclaw
|
|
103841
|
+
const openclawUrlSecret = openclawUrl + "/openclaw#token=" + token;
|
|
102598
103842
|
const opencodePort = useKey2("OPENCODE_PORT") || "100";
|
|
102599
103843
|
const opencodeUrl = url4.replace("{{port}}", opencodePort);
|
|
102600
103844
|
const _opencodeURL = new URL(opencodeUrl);
|
|
@@ -104035,7 +105279,7 @@ var import_busboy = __toESM(require_lib2(), 1);
|
|
|
104035
105279
|
import path16 from "path";
|
|
104036
105280
|
import fs19 from "fs";
|
|
104037
105281
|
|
|
104038
|
-
// ../node_modules/.pnpm/@kevisual+router@0.1.
|
|
105282
|
+
// ../node_modules/.pnpm/@kevisual+router@0.1.2/node_modules/@kevisual/router/src/server/cookie.ts
|
|
104039
105283
|
var NullObject2 = /* @__PURE__ */ (() => {
|
|
104040
105284
|
const C2 = function() {};
|
|
104041
105285
|
C2.prototype = Object.create(null);
|