@learncard/network-brain-client 2.5.38 → 2.5.39
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/CHANGELOG.md +7 -0
- package/dist/brain-client.cjs.development.js +7449 -498
- package/dist/brain-client.cjs.development.js.map +3 -3
- package/dist/brain-client.cjs.production.min.js +34 -12
- package/dist/brain-client.cjs.production.min.js.map +3 -3
- package/dist/brain-client.esm.js +288 -687
- package/dist/brain-client.esm.js.map +4 -4
- package/package.json +4 -4
package/dist/brain-client.esm.js
CHANGED
|
@@ -1,155 +1,9 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
2
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
8
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
-
};
|
|
11
3
|
var __export = (target, all) => {
|
|
12
4
|
for (var name in all)
|
|
13
5
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
14
6
|
};
|
|
15
|
-
var __copyProps = (to, from, except, desc) => {
|
|
16
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
17
|
-
for (let key of __getOwnPropNames(from))
|
|
18
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
19
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
20
|
-
}
|
|
21
|
-
return to;
|
|
22
|
-
};
|
|
23
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
24
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
25
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
26
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
27
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
28
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
29
|
-
mod
|
|
30
|
-
));
|
|
31
|
-
|
|
32
|
-
// ../../../node_modules/.pnpm/decode-uri-component@0.2.2/node_modules/decode-uri-component/index.js
|
|
33
|
-
var require_decode_uri_component = __commonJS({
|
|
34
|
-
"../../../node_modules/.pnpm/decode-uri-component@0.2.2/node_modules/decode-uri-component/index.js"(exports, module) {
|
|
35
|
-
"use strict";
|
|
36
|
-
var token = "%[a-f0-9]{2}";
|
|
37
|
-
var singleMatcher = new RegExp("(" + token + ")|([^%]+?)", "gi");
|
|
38
|
-
var multiMatcher = new RegExp("(" + token + ")+", "gi");
|
|
39
|
-
function decodeComponents(components, split) {
|
|
40
|
-
try {
|
|
41
|
-
return [decodeURIComponent(components.join(""))];
|
|
42
|
-
} catch (err) {
|
|
43
|
-
}
|
|
44
|
-
if (components.length === 1) {
|
|
45
|
-
return components;
|
|
46
|
-
}
|
|
47
|
-
split = split || 1;
|
|
48
|
-
var left = components.slice(0, split);
|
|
49
|
-
var right = components.slice(split);
|
|
50
|
-
return Array.prototype.concat.call([], decodeComponents(left), decodeComponents(right));
|
|
51
|
-
}
|
|
52
|
-
__name(decodeComponents, "decodeComponents");
|
|
53
|
-
function decode4(input) {
|
|
54
|
-
try {
|
|
55
|
-
return decodeURIComponent(input);
|
|
56
|
-
} catch (err) {
|
|
57
|
-
var tokens = input.match(singleMatcher) || [];
|
|
58
|
-
for (var i = 1; i < tokens.length; i++) {
|
|
59
|
-
input = decodeComponents(tokens, i).join("");
|
|
60
|
-
tokens = input.match(singleMatcher) || [];
|
|
61
|
-
}
|
|
62
|
-
return input;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
__name(decode4, "decode");
|
|
66
|
-
function customDecodeURIComponent(input) {
|
|
67
|
-
var replaceMap = {
|
|
68
|
-
"%FE%FF": "\uFFFD\uFFFD",
|
|
69
|
-
"%FF%FE": "\uFFFD\uFFFD"
|
|
70
|
-
};
|
|
71
|
-
var match = multiMatcher.exec(input);
|
|
72
|
-
while (match) {
|
|
73
|
-
try {
|
|
74
|
-
replaceMap[match[0]] = decodeURIComponent(match[0]);
|
|
75
|
-
} catch (err) {
|
|
76
|
-
var result = decode4(match[0]);
|
|
77
|
-
if (result !== match[0]) {
|
|
78
|
-
replaceMap[match[0]] = result;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
match = multiMatcher.exec(input);
|
|
82
|
-
}
|
|
83
|
-
replaceMap["%C2"] = "\uFFFD";
|
|
84
|
-
var entries = Object.keys(replaceMap);
|
|
85
|
-
for (var i = 0; i < entries.length; i++) {
|
|
86
|
-
var key = entries[i];
|
|
87
|
-
input = input.replace(new RegExp(key, "g"), replaceMap[key]);
|
|
88
|
-
}
|
|
89
|
-
return input;
|
|
90
|
-
}
|
|
91
|
-
__name(customDecodeURIComponent, "customDecodeURIComponent");
|
|
92
|
-
module.exports = function(encodedURI) {
|
|
93
|
-
if (typeof encodedURI !== "string") {
|
|
94
|
-
throw new TypeError("Expected `encodedURI` to be of type `string`, got `" + typeof encodedURI + "`");
|
|
95
|
-
}
|
|
96
|
-
try {
|
|
97
|
-
encodedURI = encodedURI.replace(/\+/g, " ");
|
|
98
|
-
return decodeURIComponent(encodedURI);
|
|
99
|
-
} catch (err) {
|
|
100
|
-
return customDecodeURIComponent(encodedURI);
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
|
|
106
|
-
// ../../../node_modules/.pnpm/filter-obj@1.1.0/node_modules/filter-obj/index.js
|
|
107
|
-
var require_filter_obj = __commonJS({
|
|
108
|
-
"../../../node_modules/.pnpm/filter-obj@1.1.0/node_modules/filter-obj/index.js"(exports, module) {
|
|
109
|
-
"use strict";
|
|
110
|
-
module.exports = function(obj, predicate) {
|
|
111
|
-
var ret = {};
|
|
112
|
-
var keys = Object.keys(obj);
|
|
113
|
-
var isArr = Array.isArray(predicate);
|
|
114
|
-
for (var i = 0; i < keys.length; i++) {
|
|
115
|
-
var key = keys[i];
|
|
116
|
-
var val = obj[key];
|
|
117
|
-
if (isArr ? predicate.indexOf(key) !== -1 : predicate(key, val, obj)) {
|
|
118
|
-
ret[key] = val;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
return ret;
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
|
|
126
|
-
// ../../../node_modules/.pnpm/split-on-first@1.1.0/node_modules/split-on-first/index.js
|
|
127
|
-
var require_split_on_first = __commonJS({
|
|
128
|
-
"../../../node_modules/.pnpm/split-on-first@1.1.0/node_modules/split-on-first/index.js"(exports, module) {
|
|
129
|
-
"use strict";
|
|
130
|
-
module.exports = (string4, separator) => {
|
|
131
|
-
if (!(typeof string4 === "string" && typeof separator === "string")) {
|
|
132
|
-
throw new TypeError("Expected the arguments to be of type `string`");
|
|
133
|
-
}
|
|
134
|
-
if (separator === "") {
|
|
135
|
-
return [string4];
|
|
136
|
-
}
|
|
137
|
-
const separatorIndex = string4.indexOf(separator);
|
|
138
|
-
if (separatorIndex === -1) {
|
|
139
|
-
return [string4];
|
|
140
|
-
}
|
|
141
|
-
return [
|
|
142
|
-
string4.slice(0, separatorIndex),
|
|
143
|
-
string4.slice(separatorIndex + separator.length)
|
|
144
|
-
];
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
|
-
|
|
149
|
-
// ../../learn-card-helpers/dist/helpers.esm.js
|
|
150
|
-
var import_decode_uri_component = __toESM(require_decode_uri_component(), 1);
|
|
151
|
-
var import_filter_obj = __toESM(require_filter_obj(), 1);
|
|
152
|
-
var import_split_on_first = __toESM(require_split_on_first(), 1);
|
|
153
7
|
|
|
154
8
|
// ../../../node_modules/.pnpm/immer@10.2.0/node_modules/immer/dist/immer.mjs
|
|
155
9
|
var NOTHING = /* @__PURE__ */ Symbol.for("immer-nothing");
|
|
@@ -2503,10 +2357,10 @@ var nanoid = /^[a-zA-Z0-9_-]{21}$/;
|
|
|
2503
2357
|
var duration = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;
|
|
2504
2358
|
var extendedDuration = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/;
|
|
2505
2359
|
var guid = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/;
|
|
2506
|
-
var uuid = /* @__PURE__ */ __name((
|
|
2507
|
-
if (!
|
|
2360
|
+
var uuid = /* @__PURE__ */ __name((version3) => {
|
|
2361
|
+
if (!version3)
|
|
2508
2362
|
return /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;
|
|
2509
|
-
return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${
|
|
2363
|
+
return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version3}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);
|
|
2510
2364
|
}, "uuid");
|
|
2511
2365
|
var uuid4 = /* @__PURE__ */ uuid(4);
|
|
2512
2366
|
var uuid6 = /* @__PURE__ */ uuid(6);
|
|
@@ -14001,30 +13855,196 @@ __name(date4, "date");
|
|
|
14001
13855
|
// ../../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/external.js
|
|
14002
13856
|
config(en_default());
|
|
14003
13857
|
|
|
13858
|
+
// ../../../node_modules/.pnpm/js-base64@3.7.8/node_modules/js-base64/base64.mjs
|
|
13859
|
+
var version2 = "3.7.8";
|
|
13860
|
+
var VERSION = version2;
|
|
13861
|
+
var _hasBuffer = typeof Buffer === "function";
|
|
13862
|
+
var _TD = typeof TextDecoder === "function" ? new TextDecoder() : void 0;
|
|
13863
|
+
var _TE = typeof TextEncoder === "function" ? new TextEncoder() : void 0;
|
|
13864
|
+
var b64ch = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
13865
|
+
var b64chs = Array.prototype.slice.call(b64ch);
|
|
13866
|
+
var b64tab = ((a) => {
|
|
13867
|
+
let tab = {};
|
|
13868
|
+
a.forEach((c, i) => tab[c] = i);
|
|
13869
|
+
return tab;
|
|
13870
|
+
})(b64chs);
|
|
13871
|
+
var b64re = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/;
|
|
13872
|
+
var _fromCC = String.fromCharCode.bind(String);
|
|
13873
|
+
var _U8Afrom = typeof Uint8Array.from === "function" ? Uint8Array.from.bind(Uint8Array) : (it) => new Uint8Array(Array.prototype.slice.call(it, 0));
|
|
13874
|
+
var _mkUriSafe = /* @__PURE__ */ __name((src) => src.replace(/=/g, "").replace(/[+\/]/g, (m0) => m0 == "+" ? "-" : "_"), "_mkUriSafe");
|
|
13875
|
+
var _tidyB64 = /* @__PURE__ */ __name((s) => s.replace(/[^A-Za-z0-9\+\/]/g, ""), "_tidyB64");
|
|
13876
|
+
var btoaPolyfill = /* @__PURE__ */ __name((bin) => {
|
|
13877
|
+
let u32, c0, c1, c2, asc = "";
|
|
13878
|
+
const pad = bin.length % 3;
|
|
13879
|
+
for (let i = 0; i < bin.length; ) {
|
|
13880
|
+
if ((c0 = bin.charCodeAt(i++)) > 255 || (c1 = bin.charCodeAt(i++)) > 255 || (c2 = bin.charCodeAt(i++)) > 255)
|
|
13881
|
+
throw new TypeError("invalid character found");
|
|
13882
|
+
u32 = c0 << 16 | c1 << 8 | c2;
|
|
13883
|
+
asc += b64chs[u32 >> 18 & 63] + b64chs[u32 >> 12 & 63] + b64chs[u32 >> 6 & 63] + b64chs[u32 & 63];
|
|
13884
|
+
}
|
|
13885
|
+
return pad ? asc.slice(0, pad - 3) + "===".substring(pad) : asc;
|
|
13886
|
+
}, "btoaPolyfill");
|
|
13887
|
+
var _btoa = typeof btoa === "function" ? (bin) => btoa(bin) : _hasBuffer ? (bin) => Buffer.from(bin, "binary").toString("base64") : btoaPolyfill;
|
|
13888
|
+
var _fromUint8Array = _hasBuffer ? (u8a) => Buffer.from(u8a).toString("base64") : (u8a) => {
|
|
13889
|
+
const maxargs = 4096;
|
|
13890
|
+
let strs = [];
|
|
13891
|
+
for (let i = 0, l = u8a.length; i < l; i += maxargs) {
|
|
13892
|
+
strs.push(_fromCC.apply(null, u8a.subarray(i, i + maxargs)));
|
|
13893
|
+
}
|
|
13894
|
+
return _btoa(strs.join(""));
|
|
13895
|
+
};
|
|
13896
|
+
var fromUint8Array = /* @__PURE__ */ __name((u8a, urlsafe = false) => urlsafe ? _mkUriSafe(_fromUint8Array(u8a)) : _fromUint8Array(u8a), "fromUint8Array");
|
|
13897
|
+
var cb_utob = /* @__PURE__ */ __name((c) => {
|
|
13898
|
+
if (c.length < 2) {
|
|
13899
|
+
var cc = c.charCodeAt(0);
|
|
13900
|
+
return cc < 128 ? c : cc < 2048 ? _fromCC(192 | cc >>> 6) + _fromCC(128 | cc & 63) : _fromCC(224 | cc >>> 12 & 15) + _fromCC(128 | cc >>> 6 & 63) + _fromCC(128 | cc & 63);
|
|
13901
|
+
} else {
|
|
13902
|
+
var cc = 65536 + (c.charCodeAt(0) - 55296) * 1024 + (c.charCodeAt(1) - 56320);
|
|
13903
|
+
return _fromCC(240 | cc >>> 18 & 7) + _fromCC(128 | cc >>> 12 & 63) + _fromCC(128 | cc >>> 6 & 63) + _fromCC(128 | cc & 63);
|
|
13904
|
+
}
|
|
13905
|
+
}, "cb_utob");
|
|
13906
|
+
var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;
|
|
13907
|
+
var utob = /* @__PURE__ */ __name((u) => u.replace(re_utob, cb_utob), "utob");
|
|
13908
|
+
var _encode2 = _hasBuffer ? (s) => Buffer.from(s, "utf8").toString("base64") : _TE ? (s) => _fromUint8Array(_TE.encode(s)) : (s) => _btoa(utob(s));
|
|
13909
|
+
var encode3 = /* @__PURE__ */ __name((src, urlsafe = false) => urlsafe ? _mkUriSafe(_encode2(src)) : _encode2(src), "encode");
|
|
13910
|
+
var encodeURI = /* @__PURE__ */ __name((src) => encode3(src, true), "encodeURI");
|
|
13911
|
+
var re_btou = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g;
|
|
13912
|
+
var cb_btou = /* @__PURE__ */ __name((cccc) => {
|
|
13913
|
+
switch (cccc.length) {
|
|
13914
|
+
case 4:
|
|
13915
|
+
var cp = (7 & cccc.charCodeAt(0)) << 18 | (63 & cccc.charCodeAt(1)) << 12 | (63 & cccc.charCodeAt(2)) << 6 | 63 & cccc.charCodeAt(3), offset = cp - 65536;
|
|
13916
|
+
return _fromCC((offset >>> 10) + 55296) + _fromCC((offset & 1023) + 56320);
|
|
13917
|
+
case 3:
|
|
13918
|
+
return _fromCC((15 & cccc.charCodeAt(0)) << 12 | (63 & cccc.charCodeAt(1)) << 6 | 63 & cccc.charCodeAt(2));
|
|
13919
|
+
default:
|
|
13920
|
+
return _fromCC((31 & cccc.charCodeAt(0)) << 6 | 63 & cccc.charCodeAt(1));
|
|
13921
|
+
}
|
|
13922
|
+
}, "cb_btou");
|
|
13923
|
+
var btou = /* @__PURE__ */ __name((b) => b.replace(re_btou, cb_btou), "btou");
|
|
13924
|
+
var atobPolyfill = /* @__PURE__ */ __name((asc) => {
|
|
13925
|
+
asc = asc.replace(/\s+/g, "");
|
|
13926
|
+
if (!b64re.test(asc))
|
|
13927
|
+
throw new TypeError("malformed base64.");
|
|
13928
|
+
asc += "==".slice(2 - (asc.length & 3));
|
|
13929
|
+
let u24, r1, r2;
|
|
13930
|
+
let binArray = [];
|
|
13931
|
+
for (let i = 0; i < asc.length; ) {
|
|
13932
|
+
u24 = b64tab[asc.charAt(i++)] << 18 | b64tab[asc.charAt(i++)] << 12 | (r1 = b64tab[asc.charAt(i++)]) << 6 | (r2 = b64tab[asc.charAt(i++)]);
|
|
13933
|
+
if (r1 === 64) {
|
|
13934
|
+
binArray.push(_fromCC(u24 >> 16 & 255));
|
|
13935
|
+
} else if (r2 === 64) {
|
|
13936
|
+
binArray.push(_fromCC(u24 >> 16 & 255, u24 >> 8 & 255));
|
|
13937
|
+
} else {
|
|
13938
|
+
binArray.push(_fromCC(u24 >> 16 & 255, u24 >> 8 & 255, u24 & 255));
|
|
13939
|
+
}
|
|
13940
|
+
}
|
|
13941
|
+
return binArray.join("");
|
|
13942
|
+
}, "atobPolyfill");
|
|
13943
|
+
var _atob = typeof atob === "function" ? (asc) => atob(_tidyB64(asc)) : _hasBuffer ? (asc) => Buffer.from(asc, "base64").toString("binary") : atobPolyfill;
|
|
13944
|
+
var _toUint8Array = _hasBuffer ? (a) => _U8Afrom(Buffer.from(a, "base64")) : (a) => _U8Afrom(_atob(a).split("").map((c) => c.charCodeAt(0)));
|
|
13945
|
+
var toUint8Array = /* @__PURE__ */ __name((a) => _toUint8Array(_unURI(a)), "toUint8Array");
|
|
13946
|
+
var _decode2 = _hasBuffer ? (a) => Buffer.from(a, "base64").toString("utf8") : _TD ? (a) => _TD.decode(_toUint8Array(a)) : (a) => btou(_atob(a));
|
|
13947
|
+
var _unURI = /* @__PURE__ */ __name((a) => _tidyB64(a.replace(/[-_]/g, (m0) => m0 == "-" ? "+" : "/")), "_unURI");
|
|
13948
|
+
var decode3 = /* @__PURE__ */ __name((src) => _decode2(_unURI(src)), "decode");
|
|
13949
|
+
var isValid = /* @__PURE__ */ __name((src) => {
|
|
13950
|
+
if (typeof src !== "string")
|
|
13951
|
+
return false;
|
|
13952
|
+
const s = src.replace(/\s+/g, "").replace(/={0,2}$/, "");
|
|
13953
|
+
return !/[^\s0-9a-zA-Z\+/]/.test(s) || !/[^\s0-9a-zA-Z\-_]/.test(s);
|
|
13954
|
+
}, "isValid");
|
|
13955
|
+
var _noEnum = /* @__PURE__ */ __name((v) => {
|
|
13956
|
+
return {
|
|
13957
|
+
value: v,
|
|
13958
|
+
enumerable: false,
|
|
13959
|
+
writable: true,
|
|
13960
|
+
configurable: true
|
|
13961
|
+
};
|
|
13962
|
+
}, "_noEnum");
|
|
13963
|
+
var extendString = /* @__PURE__ */ __name(function() {
|
|
13964
|
+
const _add = /* @__PURE__ */ __name((name, body) => Object.defineProperty(String.prototype, name, _noEnum(body)), "_add");
|
|
13965
|
+
_add("fromBase64", function() {
|
|
13966
|
+
return decode3(this);
|
|
13967
|
+
});
|
|
13968
|
+
_add("toBase64", function(urlsafe) {
|
|
13969
|
+
return encode3(this, urlsafe);
|
|
13970
|
+
});
|
|
13971
|
+
_add("toBase64URI", function() {
|
|
13972
|
+
return encode3(this, true);
|
|
13973
|
+
});
|
|
13974
|
+
_add("toBase64URL", function() {
|
|
13975
|
+
return encode3(this, true);
|
|
13976
|
+
});
|
|
13977
|
+
_add("toUint8Array", function() {
|
|
13978
|
+
return toUint8Array(this);
|
|
13979
|
+
});
|
|
13980
|
+
}, "extendString");
|
|
13981
|
+
var extendUint8Array = /* @__PURE__ */ __name(function() {
|
|
13982
|
+
const _add = /* @__PURE__ */ __name((name, body) => Object.defineProperty(Uint8Array.prototype, name, _noEnum(body)), "_add");
|
|
13983
|
+
_add("toBase64", function(urlsafe) {
|
|
13984
|
+
return fromUint8Array(this, urlsafe);
|
|
13985
|
+
});
|
|
13986
|
+
_add("toBase64URI", function() {
|
|
13987
|
+
return fromUint8Array(this, true);
|
|
13988
|
+
});
|
|
13989
|
+
_add("toBase64URL", function() {
|
|
13990
|
+
return fromUint8Array(this, true);
|
|
13991
|
+
});
|
|
13992
|
+
}, "extendUint8Array");
|
|
13993
|
+
var extendBuiltins = /* @__PURE__ */ __name(() => {
|
|
13994
|
+
extendString();
|
|
13995
|
+
extendUint8Array();
|
|
13996
|
+
}, "extendBuiltins");
|
|
13997
|
+
var gBase64 = {
|
|
13998
|
+
version: version2,
|
|
13999
|
+
VERSION,
|
|
14000
|
+
atob: _atob,
|
|
14001
|
+
atobPolyfill,
|
|
14002
|
+
btoa: _btoa,
|
|
14003
|
+
btoaPolyfill,
|
|
14004
|
+
fromBase64: decode3,
|
|
14005
|
+
toBase64: encode3,
|
|
14006
|
+
encode: encode3,
|
|
14007
|
+
encodeURI,
|
|
14008
|
+
encodeURL: encodeURI,
|
|
14009
|
+
utob,
|
|
14010
|
+
btou,
|
|
14011
|
+
decode: decode3,
|
|
14012
|
+
isValid,
|
|
14013
|
+
fromUint8Array,
|
|
14014
|
+
toUint8Array,
|
|
14015
|
+
extendString,
|
|
14016
|
+
extendUint8Array,
|
|
14017
|
+
extendBuiltins
|
|
14018
|
+
};
|
|
14019
|
+
|
|
14020
|
+
// ../../../node_modules/.pnpm/@sd-jwt+utils@0.19.0/node_modules/@sd-jwt/utils/dist/index.mjs
|
|
14021
|
+
var base64urlEncode = gBase64.encodeURI;
|
|
14022
|
+
var base64urlDecode = gBase64.decode;
|
|
14023
|
+
|
|
14004
14024
|
// ../../learn-card-helpers/dist/helpers.esm.js
|
|
14005
|
-
var
|
|
14025
|
+
var __create = Object.create;
|
|
14006
14026
|
var __defProp2 = Object.defineProperty;
|
|
14007
|
-
var
|
|
14008
|
-
var
|
|
14009
|
-
var
|
|
14010
|
-
var
|
|
14027
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
14028
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
14029
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
14030
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14011
14031
|
var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
|
|
14012
|
-
var
|
|
14013
|
-
return mod || (0, cb[
|
|
14032
|
+
var __commonJS = /* @__PURE__ */ __name((cb, mod) => /* @__PURE__ */ __name(function __require() {
|
|
14033
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
14014
14034
|
}, "__require"), "__commonJS");
|
|
14015
14035
|
var __export2 = /* @__PURE__ */ __name((target, all) => {
|
|
14016
14036
|
for (var name in all)
|
|
14017
14037
|
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
14018
14038
|
}, "__export");
|
|
14019
|
-
var
|
|
14039
|
+
var __copyProps = /* @__PURE__ */ __name((to, from, except, desc) => {
|
|
14020
14040
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
14021
|
-
for (let key of
|
|
14022
|
-
if (!
|
|
14023
|
-
__defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc =
|
|
14041
|
+
for (let key of __getOwnPropNames(from))
|
|
14042
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14043
|
+
__defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14024
14044
|
}
|
|
14025
14045
|
return to;
|
|
14026
14046
|
}, "__copyProps");
|
|
14027
|
-
var
|
|
14047
|
+
var __toESM = /* @__PURE__ */ __name((mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
14028
14048
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
14029
14049
|
// file that has been converted to a CommonJS file using a Babel-
|
|
14030
14050
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
@@ -14032,7 +14052,7 @@ var __toESM2 = /* @__PURE__ */ __name((mod, isNodeMode, target) => (target = mod
|
|
|
14032
14052
|
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
|
|
14033
14053
|
mod
|
|
14034
14054
|
)), "__toESM");
|
|
14035
|
-
var require_types_cjs_development =
|
|
14055
|
+
var require_types_cjs_development = __commonJS({
|
|
14036
14056
|
"../learn-card-types/dist/types.cjs.development.cjs"(exports, module) {
|
|
14037
14057
|
"use strict";
|
|
14038
14058
|
var __defProp22 = Object.defineProperty;
|
|
@@ -14291,6 +14311,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
14291
14311
|
SkillTreeNodeValidator: /* @__PURE__ */ __name2(() => SkillTreeNodeValidator, "SkillTreeNodeValidator"),
|
|
14292
14312
|
SkillValidator: /* @__PURE__ */ __name2(() => SkillValidator, "SkillValidator"),
|
|
14293
14313
|
StatusCheckEntryValidator: /* @__PURE__ */ __name2(() => StatusCheckEntryValidator, "StatusCheckEntryValidator"),
|
|
14314
|
+
StoredCredentialEnvelopeValidator: /* @__PURE__ */ __name2(() => StoredCredentialEnvelopeValidator, "StoredCredentialEnvelopeValidator"),
|
|
14294
14315
|
StringQuery: /* @__PURE__ */ __name2(() => StringQuery, "StringQuery"),
|
|
14295
14316
|
SummaryCredentialDataValidator: /* @__PURE__ */ __name2(() => SummaryCredentialDataValidator, "SummaryCredentialDataValidator"),
|
|
14296
14317
|
SummaryCredentialKeywordValidator: /* @__PURE__ */ __name2(() => SummaryCredentialKeywordValidator, "SummaryCredentialKeywordValidator"),
|
|
@@ -14311,7 +14332,8 @@ var require_types_cjs_development = __commonJS2({
|
|
|
14311
14332
|
VerificationItemValidator: /* @__PURE__ */ __name2(() => VerificationItemValidator, "VerificationItemValidator"),
|
|
14312
14333
|
VerificationMethodValidator: /* @__PURE__ */ __name2(() => VerificationMethodValidator, "VerificationMethodValidator"),
|
|
14313
14334
|
VerificationStatusEnum: /* @__PURE__ */ __name2(() => VerificationStatusEnum, "VerificationStatusEnum"),
|
|
14314
|
-
VerificationStatusValidator: /* @__PURE__ */ __name2(() => VerificationStatusValidator, "VerificationStatusValidator")
|
|
14335
|
+
VerificationStatusValidator: /* @__PURE__ */ __name2(() => VerificationStatusValidator, "VerificationStatusValidator"),
|
|
14336
|
+
isStoredCredentialEnvelope: /* @__PURE__ */ __name2(() => isStoredCredentialEnvelope2, "isStoredCredentialEnvelope")
|
|
14315
14337
|
});
|
|
14316
14338
|
module.exports = __toCommonJS(index_exports);
|
|
14317
14339
|
var external_exports2 = {};
|
|
@@ -14417,14 +14439,14 @@ var require_types_cjs_development = __commonJS2({
|
|
|
14417
14439
|
cuid2: /* @__PURE__ */ __name2(() => cuid222, "cuid2"),
|
|
14418
14440
|
custom: /* @__PURE__ */ __name2(() => custom2, "custom"),
|
|
14419
14441
|
date: /* @__PURE__ */ __name2(() => date32, "date"),
|
|
14420
|
-
decode: /* @__PURE__ */ __name2(() =>
|
|
14442
|
+
decode: /* @__PURE__ */ __name2(() => decode22, "decode"),
|
|
14421
14443
|
decodeAsync: /* @__PURE__ */ __name2(() => decodeAsync22, "decodeAsync"),
|
|
14422
14444
|
describe: /* @__PURE__ */ __name2(() => describe22, "describe"),
|
|
14423
14445
|
discriminatedUnion: /* @__PURE__ */ __name2(() => discriminatedUnion2, "discriminatedUnion"),
|
|
14424
14446
|
e164: /* @__PURE__ */ __name2(() => e16422, "e164"),
|
|
14425
14447
|
email: /* @__PURE__ */ __name2(() => email22, "email"),
|
|
14426
14448
|
emoji: /* @__PURE__ */ __name2(() => emoji22, "emoji"),
|
|
14427
|
-
encode: /* @__PURE__ */ __name2(() =>
|
|
14449
|
+
encode: /* @__PURE__ */ __name2(() => encode22, "encode"),
|
|
14428
14450
|
encodeAsync: /* @__PURE__ */ __name2(() => encodeAsync22, "encodeAsync"),
|
|
14429
14451
|
endsWith: /* @__PURE__ */ __name2(() => _endsWith2, "endsWith"),
|
|
14430
14452
|
enum: /* @__PURE__ */ __name2(() => _enum22, "enum"),
|
|
@@ -14489,7 +14511,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
14489
14511
|
object: /* @__PURE__ */ __name2(() => object2, "object"),
|
|
14490
14512
|
optional: /* @__PURE__ */ __name2(() => optional2, "optional"),
|
|
14491
14513
|
overwrite: /* @__PURE__ */ __name2(() => _overwrite2, "overwrite"),
|
|
14492
|
-
parse: /* @__PURE__ */ __name2(() =>
|
|
14514
|
+
parse: /* @__PURE__ */ __name2(() => parse22, "parse"),
|
|
14493
14515
|
parseAsync: /* @__PURE__ */ __name2(() => parseAsync22, "parseAsync"),
|
|
14494
14516
|
partialRecord: /* @__PURE__ */ __name2(() => partialRecord2, "partialRecord"),
|
|
14495
14517
|
pipe: /* @__PURE__ */ __name2(() => pipe2, "pipe"),
|
|
@@ -14675,14 +14697,14 @@ var require_types_cjs_development = __commonJS2({
|
|
|
14675
14697
|
_cuid2: /* @__PURE__ */ __name2(() => _cuid22, "_cuid2"),
|
|
14676
14698
|
_custom: /* @__PURE__ */ __name2(() => _custom2, "_custom"),
|
|
14677
14699
|
_date: /* @__PURE__ */ __name2(() => _date2, "_date"),
|
|
14678
|
-
_decode: /* @__PURE__ */ __name2(() =>
|
|
14700
|
+
_decode: /* @__PURE__ */ __name2(() => _decode3, "_decode"),
|
|
14679
14701
|
_decodeAsync: /* @__PURE__ */ __name2(() => _decodeAsync2, "_decodeAsync"),
|
|
14680
14702
|
_default: /* @__PURE__ */ __name2(() => _default3, "_default"),
|
|
14681
14703
|
_discriminatedUnion: /* @__PURE__ */ __name2(() => _discriminatedUnion2, "_discriminatedUnion"),
|
|
14682
14704
|
_e164: /* @__PURE__ */ __name2(() => _e1642, "_e164"),
|
|
14683
14705
|
_email: /* @__PURE__ */ __name2(() => _email2, "_email"),
|
|
14684
14706
|
_emoji: /* @__PURE__ */ __name2(() => _emoji22, "_emoji"),
|
|
14685
|
-
_encode: /* @__PURE__ */ __name2(() =>
|
|
14707
|
+
_encode: /* @__PURE__ */ __name2(() => _encode3, "_encode"),
|
|
14686
14708
|
_encodeAsync: /* @__PURE__ */ __name2(() => _encodeAsync2, "_encodeAsync"),
|
|
14687
14709
|
_endsWith: /* @__PURE__ */ __name2(() => _endsWith2, "_endsWith"),
|
|
14688
14710
|
_enum: /* @__PURE__ */ __name2(() => _enum3, "_enum"),
|
|
@@ -14783,10 +14805,10 @@ var require_types_cjs_development = __commonJS2({
|
|
|
14783
14805
|
_xid: /* @__PURE__ */ __name2(() => _xid2, "_xid"),
|
|
14784
14806
|
clone: /* @__PURE__ */ __name2(() => clone2, "clone"),
|
|
14785
14807
|
config: /* @__PURE__ */ __name2(() => config2, "config"),
|
|
14786
|
-
decode: /* @__PURE__ */ __name2(() =>
|
|
14808
|
+
decode: /* @__PURE__ */ __name2(() => decode4, "decode"),
|
|
14787
14809
|
decodeAsync: /* @__PURE__ */ __name2(() => decodeAsync3, "decodeAsync"),
|
|
14788
14810
|
describe: /* @__PURE__ */ __name2(() => describe3, "describe"),
|
|
14789
|
-
encode: /* @__PURE__ */ __name2(() =>
|
|
14811
|
+
encode: /* @__PURE__ */ __name2(() => encode4, "encode"),
|
|
14790
14812
|
encodeAsync: /* @__PURE__ */ __name2(() => encodeAsync3, "encodeAsync"),
|
|
14791
14813
|
flattenError: /* @__PURE__ */ __name2(() => flattenError2, "flattenError"),
|
|
14792
14814
|
formatError: /* @__PURE__ */ __name2(() => formatError2, "formatError"),
|
|
@@ -14797,7 +14819,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
14797
14819
|
isValidJWT: /* @__PURE__ */ __name2(() => isValidJWT2, "isValidJWT"),
|
|
14798
14820
|
locales: /* @__PURE__ */ __name2(() => locales_exports2, "locales"),
|
|
14799
14821
|
meta: /* @__PURE__ */ __name2(() => meta3, "meta"),
|
|
14800
|
-
parse: /* @__PURE__ */ __name2(() =>
|
|
14822
|
+
parse: /* @__PURE__ */ __name2(() => parse3, "parse"),
|
|
14801
14823
|
parseAsync: /* @__PURE__ */ __name2(() => parseAsync3, "parseAsync"),
|
|
14802
14824
|
prettifyError: /* @__PURE__ */ __name2(() => prettifyError2, "prettifyError"),
|
|
14803
14825
|
regexes: /* @__PURE__ */ __name2(() => regexes_exports2, "regexes"),
|
|
@@ -14812,7 +14834,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
14812
14834
|
toJSONSchema: /* @__PURE__ */ __name2(() => toJSONSchema2, "toJSONSchema"),
|
|
14813
14835
|
treeifyError: /* @__PURE__ */ __name2(() => treeifyError2, "treeifyError"),
|
|
14814
14836
|
util: /* @__PURE__ */ __name2(() => util_exports2, "util"),
|
|
14815
|
-
version: /* @__PURE__ */ __name2(() =>
|
|
14837
|
+
version: /* @__PURE__ */ __name2(() => version3, "version")
|
|
14816
14838
|
});
|
|
14817
14839
|
var NEVER2 = Object.freeze({
|
|
14818
14840
|
status: "aborted"
|
|
@@ -14974,7 +14996,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
14974
14996
|
omit: /* @__PURE__ */ __name2(() => omit2, "omit"),
|
|
14975
14997
|
optionalKeys: /* @__PURE__ */ __name2(() => optionalKeys2, "optionalKeys"),
|
|
14976
14998
|
partial: /* @__PURE__ */ __name2(() => partial2, "partial"),
|
|
14977
|
-
pick: /* @__PURE__ */ __name2(() =>
|
|
14999
|
+
pick: /* @__PURE__ */ __name2(() => pick2, "pick"),
|
|
14978
15000
|
prefixIssues: /* @__PURE__ */ __name2(() => prefixIssues2, "prefixIssues"),
|
|
14979
15001
|
primitiveTypes: /* @__PURE__ */ __name2(() => primitiveTypes2, "primitiveTypes"),
|
|
14980
15002
|
promiseAllObject: /* @__PURE__ */ __name2(() => promiseAllObject2, "promiseAllObject"),
|
|
@@ -15399,7 +15421,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
15399
15421
|
int64: [/* @__PURE__ */ BigInt("-9223372036854775808"), /* @__PURE__ */ BigInt("9223372036854775807")],
|
|
15400
15422
|
uint64: [/* @__PURE__ */ BigInt(0), /* @__PURE__ */ BigInt("18446744073709551615")]
|
|
15401
15423
|
};
|
|
15402
|
-
function
|
|
15424
|
+
function pick2(schema, mask) {
|
|
15403
15425
|
const currDef = schema._zod.def;
|
|
15404
15426
|
const def = mergeDefs2(schema._zod.def, {
|
|
15405
15427
|
get shape() {
|
|
@@ -15419,9 +15441,9 @@ var require_types_cjs_development = __commonJS2({
|
|
|
15419
15441
|
});
|
|
15420
15442
|
return clone2(schema, def);
|
|
15421
15443
|
}
|
|
15422
|
-
__name(
|
|
15423
|
-
__name2(
|
|
15424
|
-
__name22(
|
|
15444
|
+
__name(pick2, "pick");
|
|
15445
|
+
__name2(pick2, "pick");
|
|
15446
|
+
__name22(pick2, "pick");
|
|
15425
15447
|
function omit2(schema, mask) {
|
|
15426
15448
|
const currDef = schema._zod.def;
|
|
15427
15449
|
const def = mergeDefs2(schema._zod.def, {
|
|
@@ -15894,7 +15916,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
15894
15916
|
}
|
|
15895
15917
|
return result.value;
|
|
15896
15918
|
}, "_parse");
|
|
15897
|
-
var
|
|
15919
|
+
var parse3 = /* @__PURE__ */ _parse2($ZodRealError2);
|
|
15898
15920
|
var _parseAsync2 = /* @__PURE__ */ __name22((_Err) => async (schema, value, _ctx, params) => {
|
|
15899
15921
|
const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
|
|
15900
15922
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -15931,15 +15953,15 @@ var require_types_cjs_development = __commonJS2({
|
|
|
15931
15953
|
} : { success: true, data: result.value };
|
|
15932
15954
|
}, "_safeParseAsync");
|
|
15933
15955
|
var safeParseAsync3 = /* @__PURE__ */ _safeParseAsync2($ZodRealError2);
|
|
15934
|
-
var
|
|
15956
|
+
var _encode3 = /* @__PURE__ */ __name22((_Err) => (schema, value, _ctx) => {
|
|
15935
15957
|
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
15936
15958
|
return _parse2(_Err)(schema, value, ctx);
|
|
15937
15959
|
}, "_encode");
|
|
15938
|
-
var
|
|
15939
|
-
var
|
|
15960
|
+
var encode4 = /* @__PURE__ */ _encode3($ZodRealError2);
|
|
15961
|
+
var _decode3 = /* @__PURE__ */ __name22((_Err) => (schema, value, _ctx) => {
|
|
15940
15962
|
return _parse2(_Err)(schema, value, _ctx);
|
|
15941
15963
|
}, "_decode");
|
|
15942
|
-
var
|
|
15964
|
+
var decode4 = /* @__PURE__ */ _decode3($ZodRealError2);
|
|
15943
15965
|
var _encodeAsync2 = /* @__PURE__ */ __name22((_Err) => async (schema, value, _ctx) => {
|
|
15944
15966
|
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
15945
15967
|
return _parseAsync2(_Err)(schema, value, ctx);
|
|
@@ -16726,7 +16748,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
16726
16748
|
return new F(...args, lines.join("\n"));
|
|
16727
16749
|
}
|
|
16728
16750
|
};
|
|
16729
|
-
var
|
|
16751
|
+
var version3 = {
|
|
16730
16752
|
major: 4,
|
|
16731
16753
|
minor: 1,
|
|
16732
16754
|
patch: 13
|
|
@@ -16736,7 +16758,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
16736
16758
|
inst ?? (inst = {});
|
|
16737
16759
|
inst._zod.def = def;
|
|
16738
16760
|
inst._zod.bag = inst._zod.bag || {};
|
|
16739
|
-
inst._zod.version =
|
|
16761
|
+
inst._zod.version = version3;
|
|
16740
16762
|
const checks = [...inst._zod.def.checks ?? []];
|
|
16741
16763
|
if (inst._zod.traits.has("$ZodCheck")) {
|
|
16742
16764
|
checks.unshift(inst);
|
|
@@ -18514,10 +18536,10 @@ var require_types_cjs_development = __commonJS2({
|
|
|
18514
18536
|
throw new Error("implement() must be called with a function");
|
|
18515
18537
|
}
|
|
18516
18538
|
return function(...args) {
|
|
18517
|
-
const parsedArgs = inst._def.input ?
|
|
18539
|
+
const parsedArgs = inst._def.input ? parse3(inst._def.input, args) : args;
|
|
18518
18540
|
const result = Reflect.apply(func, this, parsedArgs);
|
|
18519
18541
|
if (inst._def.output) {
|
|
18520
|
-
return
|
|
18542
|
+
return parse3(inst._def.output, result);
|
|
18521
18543
|
}
|
|
18522
18544
|
return result;
|
|
18523
18545
|
};
|
|
@@ -26781,12 +26803,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
26781
26803
|
var ZodRealError2 = /* @__PURE__ */ $constructor2("ZodError", initializer22, {
|
|
26782
26804
|
Parent: Error
|
|
26783
26805
|
});
|
|
26784
|
-
var
|
|
26806
|
+
var parse22 = /* @__PURE__ */ _parse2(ZodRealError2);
|
|
26785
26807
|
var parseAsync22 = /* @__PURE__ */ _parseAsync2(ZodRealError2);
|
|
26786
26808
|
var safeParse22 = /* @__PURE__ */ _safeParse2(ZodRealError2);
|
|
26787
26809
|
var safeParseAsync22 = /* @__PURE__ */ _safeParseAsync2(ZodRealError2);
|
|
26788
|
-
var
|
|
26789
|
-
var
|
|
26810
|
+
var encode22 = /* @__PURE__ */ _encode3(ZodRealError2);
|
|
26811
|
+
var decode22 = /* @__PURE__ */ _decode3(ZodRealError2);
|
|
26790
26812
|
var encodeAsync22 = /* @__PURE__ */ _encodeAsync2(ZodRealError2);
|
|
26791
26813
|
var decodeAsync22 = /* @__PURE__ */ _decodeAsync2(ZodRealError2);
|
|
26792
26814
|
var safeEncode22 = /* @__PURE__ */ _safeEncode2(ZodRealError2);
|
|
@@ -26812,13 +26834,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
26812
26834
|
reg.add(inst, meta32);
|
|
26813
26835
|
return inst;
|
|
26814
26836
|
});
|
|
26815
|
-
inst.parse = (data, params) =>
|
|
26837
|
+
inst.parse = (data, params) => parse22(inst, data, params, { callee: inst.parse });
|
|
26816
26838
|
inst.safeParse = (data, params) => safeParse22(inst, data, params);
|
|
26817
26839
|
inst.parseAsync = async (data, params) => parseAsync22(inst, data, params, { callee: inst.parseAsync });
|
|
26818
26840
|
inst.safeParseAsync = async (data, params) => safeParseAsync22(inst, data, params);
|
|
26819
26841
|
inst.spa = inst.safeParseAsync;
|
|
26820
|
-
inst.encode = (data, params) =>
|
|
26821
|
-
inst.decode = (data, params) =>
|
|
26842
|
+
inst.encode = (data, params) => encode22(inst, data, params);
|
|
26843
|
+
inst.decode = (data, params) => decode22(inst, data, params);
|
|
26822
26844
|
inst.encodeAsync = async (data, params) => encodeAsync22(inst, data, params);
|
|
26823
26845
|
inst.decodeAsync = async (data, params) => decodeAsync22(inst, data, params);
|
|
26824
26846
|
inst.safeEncode = (data, params) => safeEncode22(inst, data, params);
|
|
@@ -28551,6 +28573,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28551
28573
|
"vc+sd-jwt",
|
|
28552
28574
|
"mso_mdoc"
|
|
28553
28575
|
]);
|
|
28576
|
+
var StoredCredentialEnvelopeValidator = external_exports2.object({
|
|
28577
|
+
format: CredentialFormatValidator,
|
|
28578
|
+
data: external_exports2.string()
|
|
28579
|
+
}).passthrough();
|
|
28580
|
+
var isStoredCredentialEnvelope2 = /* @__PURE__ */ __name22((value) => {
|
|
28581
|
+
if (!value || typeof value !== "object") return false;
|
|
28582
|
+
const candidate = value;
|
|
28583
|
+
if (typeof candidate.format !== "string") return false;
|
|
28584
|
+
if (!CredentialFormatValidator.safeParse(candidate.format).success) return false;
|
|
28585
|
+
return typeof candidate.data === "string" || candidate.data instanceof Uint8Array;
|
|
28586
|
+
}, "isStoredCredentialEnvelope");
|
|
28554
28587
|
var StatusCheckEntryValidator = external_exports2.object({
|
|
28555
28588
|
/**
|
|
28556
28589
|
* The `credentialStatus.type` as it appeared on the credential.
|
|
@@ -28882,7 +28915,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28882
28915
|
to: LCNVisibleProfileValidator,
|
|
28883
28916
|
from: external_exports2.string(),
|
|
28884
28917
|
received: external_exports2.string().optional(),
|
|
28885
|
-
uri: external_exports2.string().optional()
|
|
28918
|
+
uri: external_exports2.string().optional(),
|
|
28919
|
+
status: external_exports2.enum(["active", "revoked", "suspended"]).optional()
|
|
28886
28920
|
});
|
|
28887
28921
|
var PaginatedBoostRecipientsValidator = PaginationResponseValidator.extend({
|
|
28888
28922
|
records: BoostRecipientValidator.array()
|
|
@@ -28892,7 +28926,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28892
28926
|
from: external_exports2.string(),
|
|
28893
28927
|
received: external_exports2.string().optional(),
|
|
28894
28928
|
boostUris: external_exports2.array(external_exports2.string()),
|
|
28895
|
-
credentialUris: external_exports2.array(external_exports2.string()).optional()
|
|
28929
|
+
credentialUris: external_exports2.array(external_exports2.string()).optional(),
|
|
28930
|
+
status: external_exports2.enum(["active", "revoked", "suspended"]).optional()
|
|
28896
28931
|
});
|
|
28897
28932
|
var PaginatedBoostRecipientsWithChildrenValidator = PaginationResponseValidator.extend({
|
|
28898
28933
|
records: BoostRecipientWithChildrenValidator.array()
|
|
@@ -29978,7 +30013,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29978
30013
|
inboxCredentialId: external_exports2.string().optional(),
|
|
29979
30014
|
integrationId: external_exports2.string().optional(),
|
|
29980
30015
|
source: CredentialActivitySourceTypeValidator,
|
|
29981
|
-
metadata: external_exports2.record(external_exports2.string(), external_exports2.unknown()).optional()
|
|
30016
|
+
metadata: external_exports2.record(external_exports2.string(), external_exports2.unknown()).optional(),
|
|
30017
|
+
status: external_exports2.enum(["active", "revoked", "suspended"]).optional()
|
|
29982
30018
|
});
|
|
29983
30019
|
var CredentialActivityWithDetailsValidator = CredentialActivityValidator.extend({
|
|
29984
30020
|
boost: external_exports2.object({
|
|
@@ -30044,7 +30080,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
30044
30080
|
}).default({});
|
|
30045
30081
|
}
|
|
30046
30082
|
});
|
|
30047
|
-
var require_dist =
|
|
30083
|
+
var require_dist = __commonJS({
|
|
30048
30084
|
"../learn-card-types/dist/index.cjs"(exports, module) {
|
|
30049
30085
|
"use strict";
|
|
30050
30086
|
if (false) {
|
|
@@ -30054,7 +30090,7 @@ var require_dist = __commonJS2({
|
|
|
30054
30090
|
}
|
|
30055
30091
|
}
|
|
30056
30092
|
});
|
|
30057
|
-
var
|
|
30093
|
+
var import_types2 = __toESM(require_dist());
|
|
30058
30094
|
var filestack_helpers_exports = {};
|
|
30059
30095
|
__export2(filestack_helpers_exports, {
|
|
30060
30096
|
changeQuality: /* @__PURE__ */ __name(() => changeQuality, "changeQuality"),
|
|
@@ -30145,486 +30181,50 @@ __export2(unsplash_helpers_exports, {
|
|
|
30145
30181
|
resizeAndChangeQuality: /* @__PURE__ */ __name(() => resizeAndChangeQuality2, "resizeAndChangeQuality"),
|
|
30146
30182
|
resizeUrl: /* @__PURE__ */ __name(() => resizeUrl2, "resizeUrl")
|
|
30147
30183
|
});
|
|
30148
|
-
var
|
|
30149
|
-
|
|
30150
|
-
|
|
30151
|
-
|
|
30152
|
-
|
|
30153
|
-
|
|
30154
|
-
|
|
30155
|
-
|
|
30156
|
-
|
|
30157
|
-
});
|
|
30158
|
-
var isNullOrUndefined = /* @__PURE__ */ __name2((value) => value === null || value === void 0, "isNullOrUndefined");
|
|
30159
|
-
var strictUriEncode = /* @__PURE__ */ __name2((string4) => encodeURIComponent(string4).replaceAll(/[!'()*]/g, (x) => `%${x.charCodeAt(0).toString(16).toUpperCase()}`), "strictUriEncode");
|
|
30160
|
-
var encodeFragmentIdentifier = /* @__PURE__ */ Symbol("encodeFragmentIdentifier");
|
|
30161
|
-
function encoderForArrayFormat(options) {
|
|
30162
|
-
switch (options.arrayFormat) {
|
|
30163
|
-
case "index": {
|
|
30164
|
-
return (key) => (result, value) => {
|
|
30165
|
-
const index = result.length;
|
|
30166
|
-
if (value === void 0 || options.skipNull && value === null || options.skipEmptyString && value === "") {
|
|
30167
|
-
return result;
|
|
30168
|
-
}
|
|
30169
|
-
if (value === null) {
|
|
30170
|
-
return [
|
|
30171
|
-
...result,
|
|
30172
|
-
[encode3(key, options), "[", index, "]"].join("")
|
|
30173
|
-
];
|
|
30174
|
-
}
|
|
30175
|
-
return [
|
|
30176
|
-
...result,
|
|
30177
|
-
[encode3(key, options), "[", encode3(index, options), "]=", encode3(value, options)].join("")
|
|
30178
|
-
];
|
|
30179
|
-
};
|
|
30180
|
-
}
|
|
30181
|
-
case "bracket": {
|
|
30182
|
-
return (key) => (result, value) => {
|
|
30183
|
-
if (value === void 0 || options.skipNull && value === null || options.skipEmptyString && value === "") {
|
|
30184
|
-
return result;
|
|
30185
|
-
}
|
|
30186
|
-
if (value === null) {
|
|
30187
|
-
return [
|
|
30188
|
-
...result,
|
|
30189
|
-
[encode3(key, options), "[]"].join("")
|
|
30190
|
-
];
|
|
30191
|
-
}
|
|
30192
|
-
return [
|
|
30193
|
-
...result,
|
|
30194
|
-
[encode3(key, options), "[]=", encode3(value, options)].join("")
|
|
30195
|
-
];
|
|
30196
|
-
};
|
|
30197
|
-
}
|
|
30198
|
-
case "colon-list-separator": {
|
|
30199
|
-
return (key) => (result, value) => {
|
|
30200
|
-
if (value === void 0 || options.skipNull && value === null || options.skipEmptyString && value === "") {
|
|
30201
|
-
return result;
|
|
30202
|
-
}
|
|
30203
|
-
if (value === null) {
|
|
30204
|
-
return [
|
|
30205
|
-
...result,
|
|
30206
|
-
[encode3(key, options), ":list="].join("")
|
|
30207
|
-
];
|
|
30208
|
-
}
|
|
30209
|
-
return [
|
|
30210
|
-
...result,
|
|
30211
|
-
[encode3(key, options), ":list=", encode3(value, options)].join("")
|
|
30212
|
-
];
|
|
30213
|
-
};
|
|
30214
|
-
}
|
|
30215
|
-
case "comma":
|
|
30216
|
-
case "separator":
|
|
30217
|
-
case "bracket-separator": {
|
|
30218
|
-
const keyValueSeparator = options.arrayFormat === "bracket-separator" ? "[]=" : "=";
|
|
30219
|
-
return (key) => (result, value) => {
|
|
30220
|
-
if (value === void 0 || options.skipNull && value === null || options.skipEmptyString && value === "") {
|
|
30221
|
-
return result;
|
|
30222
|
-
}
|
|
30223
|
-
value = value === null ? "" : value;
|
|
30224
|
-
if (result.length === 0) {
|
|
30225
|
-
return [[encode3(key, options), keyValueSeparator, encode3(value, options)].join("")];
|
|
30226
|
-
}
|
|
30227
|
-
return [[result, encode3(value, options)].join(options.arrayFormatSeparator)];
|
|
30228
|
-
};
|
|
30229
|
-
}
|
|
30230
|
-
default: {
|
|
30231
|
-
return (key) => (result, value) => {
|
|
30232
|
-
if (value === void 0 || options.skipNull && value === null || options.skipEmptyString && value === "") {
|
|
30233
|
-
return result;
|
|
30234
|
-
}
|
|
30235
|
-
if (value === null) {
|
|
30236
|
-
return [
|
|
30237
|
-
...result,
|
|
30238
|
-
encode3(key, options)
|
|
30239
|
-
];
|
|
30240
|
-
}
|
|
30241
|
-
return [
|
|
30242
|
-
...result,
|
|
30243
|
-
[encode3(key, options), "=", encode3(value, options)].join("")
|
|
30244
|
-
];
|
|
30245
|
-
};
|
|
30246
|
-
}
|
|
30247
|
-
}
|
|
30248
|
-
}
|
|
30249
|
-
__name(encoderForArrayFormat, "encoderForArrayFormat");
|
|
30250
|
-
__name2(encoderForArrayFormat, "encoderForArrayFormat");
|
|
30251
|
-
function parserForArrayFormat(options) {
|
|
30252
|
-
let result;
|
|
30253
|
-
switch (options.arrayFormat) {
|
|
30254
|
-
case "index": {
|
|
30255
|
-
return (key, value, accumulator) => {
|
|
30256
|
-
result = /\[(\d*)]$/.exec(key);
|
|
30257
|
-
key = key.replace(/\[\d*]$/, "");
|
|
30258
|
-
if (!result) {
|
|
30259
|
-
accumulator[key] = value;
|
|
30260
|
-
return;
|
|
30261
|
-
}
|
|
30262
|
-
if (accumulator[key] === void 0) {
|
|
30263
|
-
accumulator[key] = {};
|
|
30264
|
-
}
|
|
30265
|
-
accumulator[key][result[1]] = value;
|
|
30266
|
-
};
|
|
30267
|
-
}
|
|
30268
|
-
case "bracket": {
|
|
30269
|
-
return (key, value, accumulator) => {
|
|
30270
|
-
result = /(\[])$/.exec(key);
|
|
30271
|
-
key = key.replace(/\[]$/, "");
|
|
30272
|
-
if (!result) {
|
|
30273
|
-
accumulator[key] = value;
|
|
30274
|
-
return;
|
|
30275
|
-
}
|
|
30276
|
-
if (accumulator[key] === void 0) {
|
|
30277
|
-
accumulator[key] = [value];
|
|
30278
|
-
return;
|
|
30279
|
-
}
|
|
30280
|
-
accumulator[key] = [...accumulator[key], value];
|
|
30281
|
-
};
|
|
30282
|
-
}
|
|
30283
|
-
case "colon-list-separator": {
|
|
30284
|
-
return (key, value, accumulator) => {
|
|
30285
|
-
result = /(:list)$/.exec(key);
|
|
30286
|
-
key = key.replace(/:list$/, "");
|
|
30287
|
-
if (!result) {
|
|
30288
|
-
accumulator[key] = value;
|
|
30289
|
-
return;
|
|
30290
|
-
}
|
|
30291
|
-
if (accumulator[key] === void 0) {
|
|
30292
|
-
accumulator[key] = [value];
|
|
30293
|
-
return;
|
|
30294
|
-
}
|
|
30295
|
-
accumulator[key] = [...accumulator[key], value];
|
|
30296
|
-
};
|
|
30297
|
-
}
|
|
30298
|
-
case "comma":
|
|
30299
|
-
case "separator": {
|
|
30300
|
-
return (key, value, accumulator) => {
|
|
30301
|
-
const isArray = typeof value === "string" && value.includes(options.arrayFormatSeparator);
|
|
30302
|
-
const newValue = isArray ? value.split(options.arrayFormatSeparator).map((item) => decode3(item, options)) : value === null ? value : decode3(value, options);
|
|
30303
|
-
accumulator[key] = newValue;
|
|
30304
|
-
};
|
|
30305
|
-
}
|
|
30306
|
-
case "bracket-separator": {
|
|
30307
|
-
return (key, value, accumulator) => {
|
|
30308
|
-
const isArray = /(\[])$/.test(key);
|
|
30309
|
-
key = key.replace(/\[]$/, "");
|
|
30310
|
-
if (!isArray) {
|
|
30311
|
-
accumulator[key] = value ? decode3(value, options) : value;
|
|
30312
|
-
return;
|
|
30313
|
-
}
|
|
30314
|
-
const arrayValue = value === null ? [] : decode3(value, options).split(options.arrayFormatSeparator);
|
|
30315
|
-
if (accumulator[key] === void 0) {
|
|
30316
|
-
accumulator[key] = arrayValue;
|
|
30317
|
-
return;
|
|
30318
|
-
}
|
|
30319
|
-
accumulator[key] = [...accumulator[key], ...arrayValue];
|
|
30320
|
-
};
|
|
30321
|
-
}
|
|
30322
|
-
default: {
|
|
30323
|
-
return (key, value, accumulator) => {
|
|
30324
|
-
if (accumulator[key] === void 0) {
|
|
30325
|
-
accumulator[key] = value;
|
|
30326
|
-
return;
|
|
30327
|
-
}
|
|
30328
|
-
accumulator[key] = [...[accumulator[key]].flat(), value];
|
|
30329
|
-
};
|
|
30330
|
-
}
|
|
30331
|
-
}
|
|
30332
|
-
}
|
|
30333
|
-
__name(parserForArrayFormat, "parserForArrayFormat");
|
|
30334
|
-
__name2(parserForArrayFormat, "parserForArrayFormat");
|
|
30335
|
-
function validateArrayFormatSeparator(value) {
|
|
30336
|
-
if (typeof value !== "string" || value.length !== 1) {
|
|
30337
|
-
throw new TypeError("arrayFormatSeparator must be single character string");
|
|
30338
|
-
}
|
|
30339
|
-
}
|
|
30340
|
-
__name(validateArrayFormatSeparator, "validateArrayFormatSeparator");
|
|
30341
|
-
__name2(validateArrayFormatSeparator, "validateArrayFormatSeparator");
|
|
30342
|
-
function encode3(value, options) {
|
|
30343
|
-
if (options.encode) {
|
|
30344
|
-
return options.strict ? strictUriEncode(value) : encodeURIComponent(value);
|
|
30345
|
-
}
|
|
30346
|
-
return value;
|
|
30347
|
-
}
|
|
30348
|
-
__name(encode3, "encode");
|
|
30349
|
-
__name2(encode3, "encode");
|
|
30350
|
-
function decode3(value, options) {
|
|
30351
|
-
if (options.decode) {
|
|
30352
|
-
return (0, import_decode_uri_component.default)(value);
|
|
30353
|
-
}
|
|
30354
|
-
return value;
|
|
30355
|
-
}
|
|
30356
|
-
__name(decode3, "decode");
|
|
30357
|
-
__name2(decode3, "decode");
|
|
30358
|
-
function keysSorter(input) {
|
|
30359
|
-
if (Array.isArray(input)) {
|
|
30360
|
-
return input.sort();
|
|
30361
|
-
}
|
|
30362
|
-
if (typeof input === "object") {
|
|
30363
|
-
return keysSorter(Object.keys(input)).sort((a, b) => Number(a) - Number(b)).map((key) => input[key]);
|
|
30364
|
-
}
|
|
30365
|
-
return input;
|
|
30366
|
-
}
|
|
30367
|
-
__name(keysSorter, "keysSorter");
|
|
30368
|
-
__name2(keysSorter, "keysSorter");
|
|
30369
|
-
function removeHash(input) {
|
|
30370
|
-
const hashStart = input.indexOf("#");
|
|
30371
|
-
if (hashStart !== -1) {
|
|
30372
|
-
input = input.slice(0, hashStart);
|
|
30373
|
-
}
|
|
30374
|
-
return input;
|
|
30375
|
-
}
|
|
30376
|
-
__name(removeHash, "removeHash");
|
|
30377
|
-
__name2(removeHash, "removeHash");
|
|
30378
|
-
function getHash(url2) {
|
|
30379
|
-
let hash2 = "";
|
|
30380
|
-
const hashStart = url2.indexOf("#");
|
|
30381
|
-
if (hashStart !== -1) {
|
|
30382
|
-
hash2 = url2.slice(hashStart);
|
|
30383
|
-
}
|
|
30384
|
-
return hash2;
|
|
30385
|
-
}
|
|
30386
|
-
__name(getHash, "getHash");
|
|
30387
|
-
__name2(getHash, "getHash");
|
|
30388
|
-
function parseValue(value, options, type) {
|
|
30389
|
-
if (type === "string" && typeof value === "string") {
|
|
30390
|
-
return value;
|
|
30391
|
-
}
|
|
30392
|
-
if (typeof type === "function" && typeof value === "string") {
|
|
30393
|
-
return type(value);
|
|
30394
|
-
}
|
|
30395
|
-
if (type === "boolean" && value === null) {
|
|
30396
|
-
return true;
|
|
30397
|
-
}
|
|
30398
|
-
if (type === "boolean" && value !== null && (value.toLowerCase() === "true" || value.toLowerCase() === "false")) {
|
|
30399
|
-
return value.toLowerCase() === "true";
|
|
30400
|
-
}
|
|
30401
|
-
if (type === "boolean" && value !== null && (value.toLowerCase() === "1" || value.toLowerCase() === "0")) {
|
|
30402
|
-
return value.toLowerCase() === "1";
|
|
30403
|
-
}
|
|
30404
|
-
if (type === "string[]" && options.arrayFormat !== "none" && typeof value === "string") {
|
|
30405
|
-
return [value];
|
|
30406
|
-
}
|
|
30407
|
-
if (type === "number[]" && options.arrayFormat !== "none" && !Number.isNaN(Number(value)) && (typeof value === "string" && value.trim() !== "")) {
|
|
30408
|
-
return [Number(value)];
|
|
30409
|
-
}
|
|
30410
|
-
if (type === "number" && !Number.isNaN(Number(value)) && (typeof value === "string" && value.trim() !== "")) {
|
|
30411
|
-
return Number(value);
|
|
30412
|
-
}
|
|
30413
|
-
if (options.parseBooleans && value !== null && (value.toLowerCase() === "true" || value.toLowerCase() === "false")) {
|
|
30414
|
-
return value.toLowerCase() === "true";
|
|
30415
|
-
}
|
|
30416
|
-
if (options.parseNumbers && !Number.isNaN(Number(value)) && (typeof value === "string" && value.trim() !== "")) {
|
|
30417
|
-
return Number(value);
|
|
30418
|
-
}
|
|
30419
|
-
return value;
|
|
30420
|
-
}
|
|
30421
|
-
__name(parseValue, "parseValue");
|
|
30422
|
-
__name2(parseValue, "parseValue");
|
|
30423
|
-
function extract(input) {
|
|
30424
|
-
input = removeHash(input);
|
|
30425
|
-
const queryStart = input.indexOf("?");
|
|
30426
|
-
if (queryStart === -1) {
|
|
30427
|
-
return "";
|
|
30428
|
-
}
|
|
30429
|
-
return input.slice(queryStart + 1);
|
|
30430
|
-
}
|
|
30431
|
-
__name(extract, "extract");
|
|
30432
|
-
__name2(extract, "extract");
|
|
30433
|
-
function parse3(query, options) {
|
|
30434
|
-
options = {
|
|
30435
|
-
decode: true,
|
|
30436
|
-
sort: true,
|
|
30437
|
-
arrayFormat: "none",
|
|
30438
|
-
arrayFormatSeparator: ",",
|
|
30439
|
-
parseNumbers: false,
|
|
30440
|
-
parseBooleans: false,
|
|
30441
|
-
types: /* @__PURE__ */ Object.create(null),
|
|
30442
|
-
...options
|
|
30443
|
-
};
|
|
30444
|
-
validateArrayFormatSeparator(options.arrayFormatSeparator);
|
|
30445
|
-
const formatter = parserForArrayFormat(options);
|
|
30446
|
-
const returnValue = /* @__PURE__ */ Object.create(null);
|
|
30447
|
-
if (typeof query !== "string") {
|
|
30448
|
-
return returnValue;
|
|
30449
|
-
}
|
|
30450
|
-
query = query.trim().replace(/^[?#&]/, "");
|
|
30451
|
-
if (!query) {
|
|
30452
|
-
return returnValue;
|
|
30453
|
-
}
|
|
30454
|
-
for (const parameter of query.split("&")) {
|
|
30455
|
-
if (parameter === "") {
|
|
30456
|
-
continue;
|
|
30457
|
-
}
|
|
30458
|
-
const parameter_ = options.decode ? parameter.replaceAll("+", " ") : parameter;
|
|
30459
|
-
let [key, value] = (0, import_split_on_first.default)(parameter_, "=");
|
|
30460
|
-
if (key === void 0) {
|
|
30461
|
-
key = parameter_;
|
|
30462
|
-
}
|
|
30463
|
-
value = value === void 0 ? null : ["comma", "separator", "bracket-separator"].includes(options.arrayFormat) ? value : decode3(value, options);
|
|
30464
|
-
formatter(decode3(key, options), value, returnValue);
|
|
30465
|
-
}
|
|
30466
|
-
for (const [key, value] of Object.entries(returnValue)) {
|
|
30467
|
-
if (typeof value === "object" && value !== null && options.types[key] !== "string") {
|
|
30468
|
-
for (const [key2, value2] of Object.entries(value)) {
|
|
30469
|
-
const typeOption = options.types[key];
|
|
30470
|
-
const type = typeof typeOption === "function" ? typeOption : typeOption ? typeOption.replace("[]", "") : void 0;
|
|
30471
|
-
value[key2] = parseValue(value2, options, type);
|
|
30472
|
-
}
|
|
30473
|
-
} else if (typeof value === "object" && value !== null && options.types[key] === "string") {
|
|
30474
|
-
returnValue[key] = Object.values(value).join(options.arrayFormatSeparator);
|
|
30475
|
-
} else {
|
|
30476
|
-
returnValue[key] = parseValue(value, options, options.types[key]);
|
|
30477
|
-
}
|
|
30478
|
-
}
|
|
30479
|
-
if (options.sort === false) {
|
|
30480
|
-
return returnValue;
|
|
30481
|
-
}
|
|
30482
|
-
return (options.sort === true ? Object.keys(returnValue).sort() : Object.keys(returnValue).sort(options.sort)).reduce((result, key) => {
|
|
30483
|
-
const value = returnValue[key];
|
|
30484
|
-
result[key] = Boolean(value) && typeof value === "object" && !Array.isArray(value) ? keysSorter(value) : value;
|
|
30485
|
-
return result;
|
|
30486
|
-
}, /* @__PURE__ */ Object.create(null));
|
|
30487
|
-
}
|
|
30488
|
-
__name(parse3, "parse");
|
|
30489
|
-
__name2(parse3, "parse");
|
|
30490
|
-
function stringify(object2, options) {
|
|
30491
|
-
if (!object2) {
|
|
30492
|
-
return "";
|
|
30493
|
-
}
|
|
30494
|
-
options = {
|
|
30495
|
-
encode: true,
|
|
30496
|
-
strict: true,
|
|
30497
|
-
arrayFormat: "none",
|
|
30498
|
-
arrayFormatSeparator: ",",
|
|
30499
|
-
...options
|
|
30500
|
-
};
|
|
30501
|
-
validateArrayFormatSeparator(options.arrayFormatSeparator);
|
|
30502
|
-
const shouldFilter = /* @__PURE__ */ __name2((key) => options.skipNull && isNullOrUndefined(object2[key]) || options.skipEmptyString && object2[key] === "", "shouldFilter");
|
|
30503
|
-
const formatter = encoderForArrayFormat(options);
|
|
30504
|
-
const objectCopy = {};
|
|
30505
|
-
for (const [key, value] of Object.entries(object2)) {
|
|
30506
|
-
if (!shouldFilter(key)) {
|
|
30507
|
-
objectCopy[key] = value;
|
|
30508
|
-
}
|
|
30509
|
-
}
|
|
30510
|
-
const keys = Object.keys(objectCopy);
|
|
30511
|
-
if (options.sort !== false) {
|
|
30512
|
-
keys.sort(options.sort);
|
|
30513
|
-
}
|
|
30514
|
-
return keys.map((key) => {
|
|
30515
|
-
let value = object2[key];
|
|
30516
|
-
if (options.replacer) {
|
|
30517
|
-
value = options.replacer(key, value);
|
|
30518
|
-
if (value === void 0) {
|
|
30519
|
-
return "";
|
|
30520
|
-
}
|
|
30521
|
-
}
|
|
30522
|
-
if (value === void 0) {
|
|
30523
|
-
return "";
|
|
30524
|
-
}
|
|
30525
|
-
if (value === null) {
|
|
30526
|
-
return encode3(key, options);
|
|
30527
|
-
}
|
|
30528
|
-
if (Array.isArray(value)) {
|
|
30529
|
-
if (value.length === 0 && options.arrayFormat === "bracket-separator") {
|
|
30530
|
-
return encode3(key, options) + "[]";
|
|
30531
|
-
}
|
|
30532
|
-
let processedArray = value;
|
|
30533
|
-
if (options.replacer) {
|
|
30534
|
-
processedArray = value.map(
|
|
30535
|
-
(item, index) => options.replacer(`${key}[${index}]`, item)
|
|
30536
|
-
).filter((item) => item !== void 0);
|
|
30537
|
-
}
|
|
30538
|
-
return processedArray.reduce(formatter(key), []).join("&");
|
|
30539
|
-
}
|
|
30540
|
-
return encode3(key, options) + "=" + encode3(value, options);
|
|
30541
|
-
}).filter((x) => x.length > 0).join("&");
|
|
30542
|
-
}
|
|
30543
|
-
__name(stringify, "stringify");
|
|
30544
|
-
__name2(stringify, "stringify");
|
|
30545
|
-
function parseUrl(url2, options) {
|
|
30546
|
-
options = {
|
|
30547
|
-
decode: true,
|
|
30548
|
-
...options
|
|
30549
|
-
};
|
|
30550
|
-
let [url_, hash2] = (0, import_split_on_first.default)(url2, "#");
|
|
30551
|
-
if (url_ === void 0) {
|
|
30552
|
-
url_ = url2;
|
|
30553
|
-
}
|
|
30184
|
+
var parseUrl = /* @__PURE__ */ __name2((input) => {
|
|
30185
|
+
const hashIndex = input.indexOf("#");
|
|
30186
|
+
const fragmentIdentifier = hashIndex === -1 ? void 0 : input.slice(hashIndex + 1);
|
|
30187
|
+
const withoutFragment = hashIndex === -1 ? input : input.slice(0, hashIndex);
|
|
30188
|
+
const queryIndex = withoutFragment.indexOf("?");
|
|
30189
|
+
const url2 = queryIndex === -1 ? withoutFragment : withoutFragment.slice(0, queryIndex);
|
|
30190
|
+
const search = queryIndex === -1 ? "" : withoutFragment.slice(queryIndex + 1);
|
|
30191
|
+
const query = {};
|
|
30192
|
+
for (const [key, value] of new URLSearchParams(search)) query[key] = value;
|
|
30554
30193
|
return {
|
|
30555
|
-
url: url_?.split("?")?.[0] ?? "",
|
|
30556
|
-
query: parse3(extract(url2), options),
|
|
30557
|
-
...options && options.parseFragmentIdentifier && hash2 ? { fragmentIdentifier: decode3(hash2, options) } : {}
|
|
30558
|
-
};
|
|
30559
|
-
}
|
|
30560
|
-
__name(parseUrl, "parseUrl");
|
|
30561
|
-
__name2(parseUrl, "parseUrl");
|
|
30562
|
-
function stringifyUrl(object2, options) {
|
|
30563
|
-
options = {
|
|
30564
|
-
encode: true,
|
|
30565
|
-
strict: true,
|
|
30566
|
-
[encodeFragmentIdentifier]: true,
|
|
30567
|
-
...options
|
|
30568
|
-
};
|
|
30569
|
-
const url2 = removeHash(object2.url).split("?")[0] || "";
|
|
30570
|
-
const queryFromUrl = extract(object2.url);
|
|
30571
|
-
const query = {
|
|
30572
|
-
...parse3(queryFromUrl, { sort: false, ...options }),
|
|
30573
|
-
...object2.query
|
|
30574
|
-
};
|
|
30575
|
-
let queryString = stringify(query, options);
|
|
30576
|
-
queryString &&= `?${queryString}`;
|
|
30577
|
-
let hash2 = getHash(object2.url);
|
|
30578
|
-
if (typeof object2.fragmentIdentifier === "string") {
|
|
30579
|
-
const urlObjectForFragmentEncode = new URL(url2);
|
|
30580
|
-
urlObjectForFragmentEncode.hash = object2.fragmentIdentifier;
|
|
30581
|
-
hash2 = options[encodeFragmentIdentifier] ? urlObjectForFragmentEncode.hash : `#${object2.fragmentIdentifier}`;
|
|
30582
|
-
}
|
|
30583
|
-
return `${url2}${queryString}${hash2}`;
|
|
30584
|
-
}
|
|
30585
|
-
__name(stringifyUrl, "stringifyUrl");
|
|
30586
|
-
__name2(stringifyUrl, "stringifyUrl");
|
|
30587
|
-
function pick2(input, filter, options) {
|
|
30588
|
-
options = {
|
|
30589
|
-
parseFragmentIdentifier: true,
|
|
30590
|
-
[encodeFragmentIdentifier]: false,
|
|
30591
|
-
...options
|
|
30592
|
-
};
|
|
30593
|
-
const { url: url2, query, fragmentIdentifier } = parseUrl(input, options);
|
|
30594
|
-
return stringifyUrl({
|
|
30595
30194
|
url: url2,
|
|
30596
|
-
query
|
|
30597
|
-
fragmentIdentifier
|
|
30598
|
-
}
|
|
30599
|
-
}
|
|
30600
|
-
|
|
30601
|
-
|
|
30602
|
-
|
|
30603
|
-
|
|
30604
|
-
|
|
30605
|
-
}
|
|
30606
|
-
|
|
30607
|
-
|
|
30608
|
-
|
|
30195
|
+
query,
|
|
30196
|
+
...fragmentIdentifier !== void 0 ? { fragmentIdentifier } : {}
|
|
30197
|
+
};
|
|
30198
|
+
}, "parseUrl");
|
|
30199
|
+
var stringifyUrl = /* @__PURE__ */ __name2((parsed) => {
|
|
30200
|
+
const params = new URLSearchParams();
|
|
30201
|
+
for (const [key, value] of Object.entries(parsed.query)) {
|
|
30202
|
+
if (value === void 0 || value === null) continue;
|
|
30203
|
+
params.append(key, String(value));
|
|
30204
|
+
}
|
|
30205
|
+
const search = params.toString().replace(/\+/g, "%20");
|
|
30206
|
+
const fragment = parsed.fragmentIdentifier ? `#${parsed.fragmentIdentifier}` : "";
|
|
30207
|
+
return `${parsed.url}${search ? `?${search}` : ""}${fragment}`;
|
|
30208
|
+
}, "stringifyUrl");
|
|
30609
30209
|
var fixSrcSetString2 = /* @__PURE__ */ __name2((srcSetString, _mimetype, _webp = false) => {
|
|
30610
30210
|
const urls = getUrlsFromSrcSet(srcSetString);
|
|
30611
30211
|
return urls.map(([url2, width]) => `${fixUrl2(url2)} ${width}`).join(", ");
|
|
30612
30212
|
}, "fixSrcSetString");
|
|
30613
30213
|
var fixUrl2 = /* @__PURE__ */ __name2((url2, _mimetype, _webp = false) => {
|
|
30614
30214
|
if (url2.split(" ").length > 1) return fixSrcSetString2(url2);
|
|
30615
|
-
const parsedUrl =
|
|
30215
|
+
const parsedUrl = parseUrl(url2);
|
|
30616
30216
|
parsedUrl.query.auto = "format";
|
|
30617
|
-
return
|
|
30217
|
+
return stringifyUrl(parsedUrl);
|
|
30618
30218
|
}, "fixUrl");
|
|
30619
30219
|
var resizeUrl2 = /* @__PURE__ */ __name2((url2, size) => {
|
|
30620
|
-
const parsedUrl =
|
|
30220
|
+
const parsedUrl = parseUrl(url2);
|
|
30621
30221
|
parsedUrl.query.w = size.toString();
|
|
30622
|
-
return
|
|
30222
|
+
return stringifyUrl(parsedUrl);
|
|
30623
30223
|
}, "resizeUrl");
|
|
30624
30224
|
var changeQuality2 = /* @__PURE__ */ __name2((url2, quality) => {
|
|
30625
|
-
const parsedUrl =
|
|
30225
|
+
const parsedUrl = parseUrl(url2);
|
|
30626
30226
|
parsedUrl.query.q = quality.toString();
|
|
30627
|
-
return
|
|
30227
|
+
return stringifyUrl(parsedUrl);
|
|
30628
30228
|
}, "changeQuality");
|
|
30629
30229
|
var resizeAndChangeQuality2 = /* @__PURE__ */ __name2((url2, size, quality, { fix = false } = {}) => {
|
|
30630
30230
|
const updatedUrl = changeQuality2(resizeUrl2(url2, size), quality);
|
|
@@ -30667,9 +30267,9 @@ var fixUrl3 = /* @__PURE__ */ __name2((url2, _mimetype, _webp = false) => {
|
|
|
30667
30267
|
}, "fixUrl");
|
|
30668
30268
|
var VALID_DISCORD_SIZES = [20, 32, 40, 60, 64, 80, 100, 128, 256, 512, 1024, 2048, 4096];
|
|
30669
30269
|
var resizeUrl3 = /* @__PURE__ */ __name2((url2, size) => {
|
|
30670
|
-
const parsedUrl =
|
|
30270
|
+
const parsedUrl = parseUrl(url2);
|
|
30671
30271
|
parsedUrl.query.size = quantizeValue(size, VALID_DISCORD_SIZES).toString();
|
|
30672
|
-
return
|
|
30272
|
+
return stringifyUrl(parsedUrl);
|
|
30673
30273
|
}, "resizeUrl");
|
|
30674
30274
|
var changeQuality3 = /* @__PURE__ */ __name2((url2, _quality) => {
|
|
30675
30275
|
return url2;
|
|
@@ -30771,6 +30371,7 @@ var ImageWithLoadingStateValdator = external_exports.object({
|
|
|
30771
30371
|
image: external_exports.string(),
|
|
30772
30372
|
loading: external_exports.union([ImageResizingValidator, ImageUploadingValidator]).optional()
|
|
30773
30373
|
});
|
|
30374
|
+
var import_types3 = __toESM(require_dist());
|
|
30774
30375
|
var RegExpTransformer = {
|
|
30775
30376
|
serialize(object2) {
|
|
30776
30377
|
return JSON.stringify(object2, (_key, value) => {
|
|
@@ -31021,26 +30622,26 @@ function isObject2(value) {
|
|
|
31021
30622
|
__name(isObject2, "isObject");
|
|
31022
30623
|
|
|
31023
30624
|
// ../../../node_modules/.pnpm/@trpc+server@11.7.1_typescript@5.6.2/node_modules/@trpc/server/dist/getErrorShape-BH60iMC2.mjs
|
|
31024
|
-
var
|
|
30625
|
+
var __create2 = Object.create;
|
|
31025
30626
|
var __defProp3 = Object.defineProperty;
|
|
31026
|
-
var
|
|
31027
|
-
var
|
|
31028
|
-
var
|
|
31029
|
-
var
|
|
31030
|
-
var
|
|
31031
|
-
return mod || (0, cb[
|
|
30627
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
30628
|
+
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
30629
|
+
var __getProtoOf2 = Object.getPrototypeOf;
|
|
30630
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
30631
|
+
var __commonJS2 = /* @__PURE__ */ __name((cb, mod) => function() {
|
|
30632
|
+
return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
31032
30633
|
}, "__commonJS");
|
|
31033
|
-
var
|
|
31034
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys =
|
|
30634
|
+
var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
|
|
30635
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames2(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
31035
30636
|
key = keys[i];
|
|
31036
|
-
if (!
|
|
30637
|
+
if (!__hasOwnProp2.call(to, key) && key !== except) __defProp3(to, key, {
|
|
31037
30638
|
get: ((k) => from[k]).bind(null, key),
|
|
31038
|
-
enumerable: !(desc =
|
|
30639
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
31039
30640
|
});
|
|
31040
30641
|
}
|
|
31041
30642
|
return to;
|
|
31042
30643
|
}, "__copyProps");
|
|
31043
|
-
var
|
|
30644
|
+
var __toESM2 = /* @__PURE__ */ __name((mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(isNodeMode || !mod || !mod.__esModule ? __defProp3(target, "default", {
|
|
31044
30645
|
value: mod,
|
|
31045
30646
|
enumerable: true
|
|
31046
30647
|
}) : target, mod)), "__toESM");
|
|
@@ -31086,7 +30687,7 @@ var createFlatProxy = /* @__PURE__ */ __name((callback) => {
|
|
|
31086
30687
|
return callback(name);
|
|
31087
30688
|
} });
|
|
31088
30689
|
}, "createFlatProxy");
|
|
31089
|
-
var require_typeof =
|
|
30690
|
+
var require_typeof = __commonJS2({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(exports, module) {
|
|
31090
30691
|
function _typeof$2(o) {
|
|
31091
30692
|
"@babel/helpers - typeof";
|
|
31092
30693
|
return module.exports = _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) {
|
|
@@ -31098,7 +30699,7 @@ var require_typeof = __commonJS3({ "../../node_modules/.pnpm/@oxc-project+runtim
|
|
|
31098
30699
|
__name(_typeof$2, "_typeof$2");
|
|
31099
30700
|
module.exports = _typeof$2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
31100
30701
|
} });
|
|
31101
|
-
var require_toPrimitive =
|
|
30702
|
+
var require_toPrimitive = __commonJS2({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(exports, module) {
|
|
31102
30703
|
var _typeof$1 = require_typeof()["default"];
|
|
31103
30704
|
function toPrimitive$1(t, r) {
|
|
31104
30705
|
if ("object" != _typeof$1(t) || !t) return t;
|
|
@@ -31113,7 +30714,7 @@ var require_toPrimitive = __commonJS3({ "../../node_modules/.pnpm/@oxc-project+r
|
|
|
31113
30714
|
__name(toPrimitive$1, "toPrimitive$1");
|
|
31114
30715
|
module.exports = toPrimitive$1, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
31115
30716
|
} });
|
|
31116
|
-
var require_toPropertyKey =
|
|
30717
|
+
var require_toPropertyKey = __commonJS2({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(exports, module) {
|
|
31117
30718
|
var _typeof = require_typeof()["default"];
|
|
31118
30719
|
var toPrimitive = require_toPrimitive();
|
|
31119
30720
|
function toPropertyKey$1(t) {
|
|
@@ -31123,7 +30724,7 @@ var require_toPropertyKey = __commonJS3({ "../../node_modules/.pnpm/@oxc-project
|
|
|
31123
30724
|
__name(toPropertyKey$1, "toPropertyKey$1");
|
|
31124
30725
|
module.exports = toPropertyKey$1, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
31125
30726
|
} });
|
|
31126
|
-
var require_defineProperty =
|
|
30727
|
+
var require_defineProperty = __commonJS2({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(exports, module) {
|
|
31127
30728
|
var toPropertyKey = require_toPropertyKey();
|
|
31128
30729
|
function _defineProperty(e, r, t) {
|
|
31129
30730
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
@@ -31136,7 +30737,7 @@ var require_defineProperty = __commonJS3({ "../../node_modules/.pnpm/@oxc-projec
|
|
|
31136
30737
|
__name(_defineProperty, "_defineProperty");
|
|
31137
30738
|
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
31138
30739
|
} });
|
|
31139
|
-
var require_objectSpread2 =
|
|
30740
|
+
var require_objectSpread2 = __commonJS2({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(exports, module) {
|
|
31140
30741
|
var defineProperty = require_defineProperty();
|
|
31141
30742
|
function ownKeys(e, r) {
|
|
31142
30743
|
var t = Object.keys(e);
|
|
@@ -31163,11 +30764,11 @@ var require_objectSpread2 = __commonJS3({ "../../node_modules/.pnpm/@oxc-project
|
|
|
31163
30764
|
__name(_objectSpread2, "_objectSpread2");
|
|
31164
30765
|
module.exports = _objectSpread2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
31165
30766
|
} });
|
|
31166
|
-
var import_objectSpread2 =
|
|
30767
|
+
var import_objectSpread2 = __toESM2(require_objectSpread2(), 1);
|
|
31167
30768
|
|
|
31168
30769
|
// ../../../node_modules/.pnpm/@trpc+server@11.7.1_typescript@5.6.2/node_modules/@trpc/server/dist/tracked-Blz8XOf1.mjs
|
|
31169
|
-
var import_defineProperty =
|
|
31170
|
-
var import_objectSpread2$1 =
|
|
30770
|
+
var import_defineProperty = __toESM2(require_defineProperty(), 1);
|
|
30771
|
+
var import_objectSpread2$1 = __toESM2(require_objectSpread2(), 1);
|
|
31171
30772
|
function transformResultInner(response, transformer) {
|
|
31172
30773
|
if ("error" in response) {
|
|
31173
30774
|
const error46 = transformer.deserialize(response.error);
|
|
@@ -31206,7 +30807,7 @@ function transformResult(response, transformer) {
|
|
|
31206
30807
|
return result;
|
|
31207
30808
|
}
|
|
31208
30809
|
__name(transformResult, "transformResult");
|
|
31209
|
-
var import_objectSpread22 =
|
|
30810
|
+
var import_objectSpread22 = __toESM2(require_objectSpread2(), 1);
|
|
31210
30811
|
|
|
31211
30812
|
// ../../../node_modules/.pnpm/@trpc+client@11.3.0_@trpc+server@11.7.1_typescript@5.6.2__typescript@5.6.2/node_modules/@trpc/client/dist/TRPCClientError.mjs
|
|
31212
30813
|
function _define_property(obj, key, value) {
|
|
@@ -31473,8 +31074,8 @@ function dataLoader(batchLoader) {
|
|
|
31473
31074
|
index++;
|
|
31474
31075
|
continue;
|
|
31475
31076
|
}
|
|
31476
|
-
const
|
|
31477
|
-
if (
|
|
31077
|
+
const isValid2 = batchLoader.validate(lastGroup.concat(item).map((it) => it.key));
|
|
31078
|
+
if (isValid2) {
|
|
31478
31079
|
lastGroup.push(item);
|
|
31479
31080
|
index++;
|
|
31480
31081
|
continue;
|