@learncard/render-method-plugin 3.0.1 → 3.0.2
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/render-method-plugin.cjs.development.cjs +272 -644
- package/dist/render-method-plugin.cjs.development.cjs.map +4 -4
- package/dist/render-method-plugin.cjs.production.min.cjs +15 -15
- package/dist/render-method-plugin.cjs.production.min.cjs.map +4 -4
- package/dist/render-method-plugin.esm.js +288 -671
- package/dist/render-method-plugin.esm.js.map +4 -4
- package/package.json +8 -8
|
@@ -1,155 +1,13 @@
|
|
|
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
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
|
|
28
|
-
// ../../../node_modules/.pnpm/decode-uri-component@0.2.2/node_modules/decode-uri-component/index.js
|
|
29
|
-
var require_decode_uri_component = __commonJS({
|
|
30
|
-
"../../../node_modules/.pnpm/decode-uri-component@0.2.2/node_modules/decode-uri-component/index.js"(exports, module) {
|
|
31
|
-
"use strict";
|
|
32
|
-
var token = "%[a-f0-9]{2}";
|
|
33
|
-
var singleMatcher = new RegExp("(" + token + ")|([^%]+?)", "gi");
|
|
34
|
-
var multiMatcher = new RegExp("(" + token + ")+", "gi");
|
|
35
|
-
function decodeComponents(components, split) {
|
|
36
|
-
try {
|
|
37
|
-
return [decodeURIComponent(components.join(""))];
|
|
38
|
-
} catch (err) {
|
|
39
|
-
}
|
|
40
|
-
if (components.length === 1) {
|
|
41
|
-
return components;
|
|
42
|
-
}
|
|
43
|
-
split = split || 1;
|
|
44
|
-
var left = components.slice(0, split);
|
|
45
|
-
var right = components.slice(split);
|
|
46
|
-
return Array.prototype.concat.call([], decodeComponents(left), decodeComponents(right));
|
|
47
|
-
}
|
|
48
|
-
__name(decodeComponents, "decodeComponents");
|
|
49
|
-
function decode4(input) {
|
|
50
|
-
try {
|
|
51
|
-
return decodeURIComponent(input);
|
|
52
|
-
} catch (err) {
|
|
53
|
-
var tokens = input.match(singleMatcher) || [];
|
|
54
|
-
for (var i = 1; i < tokens.length; i++) {
|
|
55
|
-
input = decodeComponents(tokens, i).join("");
|
|
56
|
-
tokens = input.match(singleMatcher) || [];
|
|
57
|
-
}
|
|
58
|
-
return input;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
__name(decode4, "decode");
|
|
62
|
-
function customDecodeURIComponent(input) {
|
|
63
|
-
var replaceMap = {
|
|
64
|
-
"%FE%FF": "\uFFFD\uFFFD",
|
|
65
|
-
"%FF%FE": "\uFFFD\uFFFD"
|
|
66
|
-
};
|
|
67
|
-
var match = multiMatcher.exec(input);
|
|
68
|
-
while (match) {
|
|
69
|
-
try {
|
|
70
|
-
replaceMap[match[0]] = decodeURIComponent(match[0]);
|
|
71
|
-
} catch (err) {
|
|
72
|
-
var result = decode4(match[0]);
|
|
73
|
-
if (result !== match[0]) {
|
|
74
|
-
replaceMap[match[0]] = result;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
match = multiMatcher.exec(input);
|
|
78
|
-
}
|
|
79
|
-
replaceMap["%C2"] = "\uFFFD";
|
|
80
|
-
var entries = Object.keys(replaceMap);
|
|
81
|
-
for (var i = 0; i < entries.length; i++) {
|
|
82
|
-
var key = entries[i];
|
|
83
|
-
input = input.replace(new RegExp(key, "g"), replaceMap[key]);
|
|
84
|
-
}
|
|
85
|
-
return input;
|
|
86
|
-
}
|
|
87
|
-
__name(customDecodeURIComponent, "customDecodeURIComponent");
|
|
88
|
-
module.exports = function(encodedURI) {
|
|
89
|
-
if (typeof encodedURI !== "string") {
|
|
90
|
-
throw new TypeError("Expected `encodedURI` to be of type `string`, got `" + typeof encodedURI + "`");
|
|
91
|
-
}
|
|
92
|
-
try {
|
|
93
|
-
encodedURI = encodedURI.replace(/\+/g, " ");
|
|
94
|
-
return decodeURIComponent(encodedURI);
|
|
95
|
-
} catch (err) {
|
|
96
|
-
return customDecodeURIComponent(encodedURI);
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
|
|
102
|
-
// ../../../node_modules/.pnpm/filter-obj@1.1.0/node_modules/filter-obj/index.js
|
|
103
|
-
var require_filter_obj = __commonJS({
|
|
104
|
-
"../../../node_modules/.pnpm/filter-obj@1.1.0/node_modules/filter-obj/index.js"(exports, module) {
|
|
105
|
-
"use strict";
|
|
106
|
-
module.exports = function(obj, predicate) {
|
|
107
|
-
var ret = {};
|
|
108
|
-
var keys = Object.keys(obj);
|
|
109
|
-
var isArr = Array.isArray(predicate);
|
|
110
|
-
for (var i = 0; i < keys.length; i++) {
|
|
111
|
-
var key = keys[i];
|
|
112
|
-
var val = obj[key];
|
|
113
|
-
if (isArr ? predicate.indexOf(key) !== -1 : predicate(key, val, obj)) {
|
|
114
|
-
ret[key] = val;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
return ret;
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
// ../../../node_modules/.pnpm/split-on-first@1.1.0/node_modules/split-on-first/index.js
|
|
123
|
-
var require_split_on_first = __commonJS({
|
|
124
|
-
"../../../node_modules/.pnpm/split-on-first@1.1.0/node_modules/split-on-first/index.js"(exports, module) {
|
|
125
|
-
"use strict";
|
|
126
|
-
module.exports = (string4, separator) => {
|
|
127
|
-
if (!(typeof string4 === "string" && typeof separator === "string")) {
|
|
128
|
-
throw new TypeError("Expected the arguments to be of type `string`");
|
|
129
|
-
}
|
|
130
|
-
if (separator === "") {
|
|
131
|
-
return [string4];
|
|
132
|
-
}
|
|
133
|
-
const separatorIndex = string4.indexOf(separator);
|
|
134
|
-
if (separatorIndex === -1) {
|
|
135
|
-
return [string4];
|
|
136
|
-
}
|
|
137
|
-
return [
|
|
138
|
-
string4.slice(0, separatorIndex),
|
|
139
|
-
string4.slice(separatorIndex + separator.length)
|
|
140
|
-
];
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
7
|
|
|
145
8
|
// src/types.ts
|
|
146
9
|
var RENDER_METHOD_CONTEXT = "https://digitalbazaar.github.io/vc-render-method-context/contexts/v2rc2.jsonld";
|
|
147
10
|
|
|
148
|
-
// ../../learn-card-helpers/dist/helpers.esm.js
|
|
149
|
-
var import_decode_uri_component = __toESM(require_decode_uri_component(), 1);
|
|
150
|
-
var import_filter_obj = __toESM(require_filter_obj(), 1);
|
|
151
|
-
var import_split_on_first = __toESM(require_split_on_first(), 1);
|
|
152
|
-
|
|
153
11
|
// ../../../node_modules/.pnpm/immer@10.2.0/node_modules/immer/dist/immer.mjs
|
|
154
12
|
var NOTHING = Symbol.for("immer-nothing");
|
|
155
13
|
var DRAFTABLE = Symbol.for("immer-draftable");
|
|
@@ -2447,10 +2305,10 @@ var nanoid = /^[a-zA-Z0-9_-]{21}$/;
|
|
|
2447
2305
|
var duration = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;
|
|
2448
2306
|
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)?)??$/;
|
|
2449
2307
|
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})$/;
|
|
2450
|
-
var uuid = /* @__PURE__ */ __name((
|
|
2451
|
-
if (!
|
|
2308
|
+
var uuid = /* @__PURE__ */ __name((version3) => {
|
|
2309
|
+
if (!version3)
|
|
2452
2310
|
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)$/;
|
|
2453
|
-
return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${
|
|
2311
|
+
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})$`);
|
|
2454
2312
|
}, "uuid");
|
|
2455
2313
|
var uuid4 = /* @__PURE__ */ uuid(4);
|
|
2456
2314
|
var uuid6 = /* @__PURE__ */ uuid(6);
|
|
@@ -13912,55 +13770,221 @@ __name(date4, "date");
|
|
|
13912
13770
|
// ../../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/external.js
|
|
13913
13771
|
config(en_default());
|
|
13914
13772
|
|
|
13773
|
+
// ../../../node_modules/.pnpm/js-base64@3.7.8/node_modules/js-base64/base64.mjs
|
|
13774
|
+
var version2 = "3.7.8";
|
|
13775
|
+
var VERSION = version2;
|
|
13776
|
+
var _hasBuffer = typeof Buffer === "function";
|
|
13777
|
+
var _TD = typeof TextDecoder === "function" ? new TextDecoder() : void 0;
|
|
13778
|
+
var _TE = typeof TextEncoder === "function" ? new TextEncoder() : void 0;
|
|
13779
|
+
var b64ch = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
13780
|
+
var b64chs = Array.prototype.slice.call(b64ch);
|
|
13781
|
+
var b64tab = ((a) => {
|
|
13782
|
+
let tab = {};
|
|
13783
|
+
a.forEach((c, i) => tab[c] = i);
|
|
13784
|
+
return tab;
|
|
13785
|
+
})(b64chs);
|
|
13786
|
+
var b64re = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/;
|
|
13787
|
+
var _fromCC = String.fromCharCode.bind(String);
|
|
13788
|
+
var _U8Afrom = typeof Uint8Array.from === "function" ? Uint8Array.from.bind(Uint8Array) : (it) => new Uint8Array(Array.prototype.slice.call(it, 0));
|
|
13789
|
+
var _mkUriSafe = /* @__PURE__ */ __name((src) => src.replace(/=/g, "").replace(/[+\/]/g, (m0) => m0 == "+" ? "-" : "_"), "_mkUriSafe");
|
|
13790
|
+
var _tidyB64 = /* @__PURE__ */ __name((s) => s.replace(/[^A-Za-z0-9\+\/]/g, ""), "_tidyB64");
|
|
13791
|
+
var btoaPolyfill = /* @__PURE__ */ __name((bin) => {
|
|
13792
|
+
let u32, c0, c1, c2, asc = "";
|
|
13793
|
+
const pad = bin.length % 3;
|
|
13794
|
+
for (let i = 0; i < bin.length; ) {
|
|
13795
|
+
if ((c0 = bin.charCodeAt(i++)) > 255 || (c1 = bin.charCodeAt(i++)) > 255 || (c2 = bin.charCodeAt(i++)) > 255)
|
|
13796
|
+
throw new TypeError("invalid character found");
|
|
13797
|
+
u32 = c0 << 16 | c1 << 8 | c2;
|
|
13798
|
+
asc += b64chs[u32 >> 18 & 63] + b64chs[u32 >> 12 & 63] + b64chs[u32 >> 6 & 63] + b64chs[u32 & 63];
|
|
13799
|
+
}
|
|
13800
|
+
return pad ? asc.slice(0, pad - 3) + "===".substring(pad) : asc;
|
|
13801
|
+
}, "btoaPolyfill");
|
|
13802
|
+
var _btoa = typeof btoa === "function" ? (bin) => btoa(bin) : _hasBuffer ? (bin) => Buffer.from(bin, "binary").toString("base64") : btoaPolyfill;
|
|
13803
|
+
var _fromUint8Array = _hasBuffer ? (u8a) => Buffer.from(u8a).toString("base64") : (u8a) => {
|
|
13804
|
+
const maxargs = 4096;
|
|
13805
|
+
let strs = [];
|
|
13806
|
+
for (let i = 0, l = u8a.length; i < l; i += maxargs) {
|
|
13807
|
+
strs.push(_fromCC.apply(null, u8a.subarray(i, i + maxargs)));
|
|
13808
|
+
}
|
|
13809
|
+
return _btoa(strs.join(""));
|
|
13810
|
+
};
|
|
13811
|
+
var fromUint8Array = /* @__PURE__ */ __name((u8a, urlsafe = false) => urlsafe ? _mkUriSafe(_fromUint8Array(u8a)) : _fromUint8Array(u8a), "fromUint8Array");
|
|
13812
|
+
var cb_utob = /* @__PURE__ */ __name((c) => {
|
|
13813
|
+
if (c.length < 2) {
|
|
13814
|
+
var cc = c.charCodeAt(0);
|
|
13815
|
+
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);
|
|
13816
|
+
} else {
|
|
13817
|
+
var cc = 65536 + (c.charCodeAt(0) - 55296) * 1024 + (c.charCodeAt(1) - 56320);
|
|
13818
|
+
return _fromCC(240 | cc >>> 18 & 7) + _fromCC(128 | cc >>> 12 & 63) + _fromCC(128 | cc >>> 6 & 63) + _fromCC(128 | cc & 63);
|
|
13819
|
+
}
|
|
13820
|
+
}, "cb_utob");
|
|
13821
|
+
var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;
|
|
13822
|
+
var utob = /* @__PURE__ */ __name((u) => u.replace(re_utob, cb_utob), "utob");
|
|
13823
|
+
var _encode2 = _hasBuffer ? (s) => Buffer.from(s, "utf8").toString("base64") : _TE ? (s) => _fromUint8Array(_TE.encode(s)) : (s) => _btoa(utob(s));
|
|
13824
|
+
var encode3 = /* @__PURE__ */ __name((src, urlsafe = false) => urlsafe ? _mkUriSafe(_encode2(src)) : _encode2(src), "encode");
|
|
13825
|
+
var encodeURI = /* @__PURE__ */ __name((src) => encode3(src, true), "encodeURI");
|
|
13826
|
+
var re_btou = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g;
|
|
13827
|
+
var cb_btou = /* @__PURE__ */ __name((cccc) => {
|
|
13828
|
+
switch (cccc.length) {
|
|
13829
|
+
case 4:
|
|
13830
|
+
var cp = (7 & cccc.charCodeAt(0)) << 18 | (63 & cccc.charCodeAt(1)) << 12 | (63 & cccc.charCodeAt(2)) << 6 | 63 & cccc.charCodeAt(3), offset = cp - 65536;
|
|
13831
|
+
return _fromCC((offset >>> 10) + 55296) + _fromCC((offset & 1023) + 56320);
|
|
13832
|
+
case 3:
|
|
13833
|
+
return _fromCC((15 & cccc.charCodeAt(0)) << 12 | (63 & cccc.charCodeAt(1)) << 6 | 63 & cccc.charCodeAt(2));
|
|
13834
|
+
default:
|
|
13835
|
+
return _fromCC((31 & cccc.charCodeAt(0)) << 6 | 63 & cccc.charCodeAt(1));
|
|
13836
|
+
}
|
|
13837
|
+
}, "cb_btou");
|
|
13838
|
+
var btou = /* @__PURE__ */ __name((b) => b.replace(re_btou, cb_btou), "btou");
|
|
13839
|
+
var atobPolyfill = /* @__PURE__ */ __name((asc) => {
|
|
13840
|
+
asc = asc.replace(/\s+/g, "");
|
|
13841
|
+
if (!b64re.test(asc))
|
|
13842
|
+
throw new TypeError("malformed base64.");
|
|
13843
|
+
asc += "==".slice(2 - (asc.length & 3));
|
|
13844
|
+
let u24, r1, r2;
|
|
13845
|
+
let binArray = [];
|
|
13846
|
+
for (let i = 0; i < asc.length; ) {
|
|
13847
|
+
u24 = b64tab[asc.charAt(i++)] << 18 | b64tab[asc.charAt(i++)] << 12 | (r1 = b64tab[asc.charAt(i++)]) << 6 | (r2 = b64tab[asc.charAt(i++)]);
|
|
13848
|
+
if (r1 === 64) {
|
|
13849
|
+
binArray.push(_fromCC(u24 >> 16 & 255));
|
|
13850
|
+
} else if (r2 === 64) {
|
|
13851
|
+
binArray.push(_fromCC(u24 >> 16 & 255, u24 >> 8 & 255));
|
|
13852
|
+
} else {
|
|
13853
|
+
binArray.push(_fromCC(u24 >> 16 & 255, u24 >> 8 & 255, u24 & 255));
|
|
13854
|
+
}
|
|
13855
|
+
}
|
|
13856
|
+
return binArray.join("");
|
|
13857
|
+
}, "atobPolyfill");
|
|
13858
|
+
var _atob = typeof atob === "function" ? (asc) => atob(_tidyB64(asc)) : _hasBuffer ? (asc) => Buffer.from(asc, "base64").toString("binary") : atobPolyfill;
|
|
13859
|
+
var _toUint8Array = _hasBuffer ? (a) => _U8Afrom(Buffer.from(a, "base64")) : (a) => _U8Afrom(_atob(a).split("").map((c) => c.charCodeAt(0)));
|
|
13860
|
+
var toUint8Array = /* @__PURE__ */ __name((a) => _toUint8Array(_unURI(a)), "toUint8Array");
|
|
13861
|
+
var _decode2 = _hasBuffer ? (a) => Buffer.from(a, "base64").toString("utf8") : _TD ? (a) => _TD.decode(_toUint8Array(a)) : (a) => btou(_atob(a));
|
|
13862
|
+
var _unURI = /* @__PURE__ */ __name((a) => _tidyB64(a.replace(/[-_]/g, (m0) => m0 == "-" ? "+" : "/")), "_unURI");
|
|
13863
|
+
var decode3 = /* @__PURE__ */ __name((src) => _decode2(_unURI(src)), "decode");
|
|
13864
|
+
var isValid = /* @__PURE__ */ __name((src) => {
|
|
13865
|
+
if (typeof src !== "string")
|
|
13866
|
+
return false;
|
|
13867
|
+
const s = src.replace(/\s+/g, "").replace(/={0,2}$/, "");
|
|
13868
|
+
return !/[^\s0-9a-zA-Z\+/]/.test(s) || !/[^\s0-9a-zA-Z\-_]/.test(s);
|
|
13869
|
+
}, "isValid");
|
|
13870
|
+
var _noEnum = /* @__PURE__ */ __name((v) => {
|
|
13871
|
+
return {
|
|
13872
|
+
value: v,
|
|
13873
|
+
enumerable: false,
|
|
13874
|
+
writable: true,
|
|
13875
|
+
configurable: true
|
|
13876
|
+
};
|
|
13877
|
+
}, "_noEnum");
|
|
13878
|
+
var extendString = /* @__PURE__ */ __name(function() {
|
|
13879
|
+
const _add = /* @__PURE__ */ __name((name, body) => Object.defineProperty(String.prototype, name, _noEnum(body)), "_add");
|
|
13880
|
+
_add("fromBase64", function() {
|
|
13881
|
+
return decode3(this);
|
|
13882
|
+
});
|
|
13883
|
+
_add("toBase64", function(urlsafe) {
|
|
13884
|
+
return encode3(this, urlsafe);
|
|
13885
|
+
});
|
|
13886
|
+
_add("toBase64URI", function() {
|
|
13887
|
+
return encode3(this, true);
|
|
13888
|
+
});
|
|
13889
|
+
_add("toBase64URL", function() {
|
|
13890
|
+
return encode3(this, true);
|
|
13891
|
+
});
|
|
13892
|
+
_add("toUint8Array", function() {
|
|
13893
|
+
return toUint8Array(this);
|
|
13894
|
+
});
|
|
13895
|
+
}, "extendString");
|
|
13896
|
+
var extendUint8Array = /* @__PURE__ */ __name(function() {
|
|
13897
|
+
const _add = /* @__PURE__ */ __name((name, body) => Object.defineProperty(Uint8Array.prototype, name, _noEnum(body)), "_add");
|
|
13898
|
+
_add("toBase64", function(urlsafe) {
|
|
13899
|
+
return fromUint8Array(this, urlsafe);
|
|
13900
|
+
});
|
|
13901
|
+
_add("toBase64URI", function() {
|
|
13902
|
+
return fromUint8Array(this, true);
|
|
13903
|
+
});
|
|
13904
|
+
_add("toBase64URL", function() {
|
|
13905
|
+
return fromUint8Array(this, true);
|
|
13906
|
+
});
|
|
13907
|
+
}, "extendUint8Array");
|
|
13908
|
+
var extendBuiltins = /* @__PURE__ */ __name(() => {
|
|
13909
|
+
extendString();
|
|
13910
|
+
extendUint8Array();
|
|
13911
|
+
}, "extendBuiltins");
|
|
13912
|
+
var gBase64 = {
|
|
13913
|
+
version: version2,
|
|
13914
|
+
VERSION,
|
|
13915
|
+
atob: _atob,
|
|
13916
|
+
atobPolyfill,
|
|
13917
|
+
btoa: _btoa,
|
|
13918
|
+
btoaPolyfill,
|
|
13919
|
+
fromBase64: decode3,
|
|
13920
|
+
toBase64: encode3,
|
|
13921
|
+
encode: encode3,
|
|
13922
|
+
encodeURI,
|
|
13923
|
+
encodeURL: encodeURI,
|
|
13924
|
+
utob,
|
|
13925
|
+
btou,
|
|
13926
|
+
decode: decode3,
|
|
13927
|
+
isValid,
|
|
13928
|
+
fromUint8Array,
|
|
13929
|
+
toUint8Array,
|
|
13930
|
+
extendString,
|
|
13931
|
+
extendUint8Array,
|
|
13932
|
+
extendBuiltins
|
|
13933
|
+
};
|
|
13934
|
+
|
|
13935
|
+
// ../../../node_modules/.pnpm/@sd-jwt+utils@0.19.0/node_modules/@sd-jwt/utils/dist/index.mjs
|
|
13936
|
+
var base64urlEncode = gBase64.encodeURI;
|
|
13937
|
+
var base64urlDecode = gBase64.decode;
|
|
13938
|
+
|
|
13915
13939
|
// ../../learn-card-helpers/dist/helpers.esm.js
|
|
13916
|
-
var
|
|
13940
|
+
var __create = Object.create;
|
|
13917
13941
|
var __defProp2 = Object.defineProperty;
|
|
13918
|
-
var
|
|
13919
|
-
var
|
|
13920
|
-
var
|
|
13921
|
-
var
|
|
13942
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13943
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13944
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
13945
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
13922
13946
|
var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
|
|
13923
|
-
var
|
|
13924
|
-
return mod || (0, cb[
|
|
13947
|
+
var __commonJS = /* @__PURE__ */ __name((cb, mod) => /* @__PURE__ */ __name(function __require() {
|
|
13948
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
13925
13949
|
}, "__require"), "__commonJS");
|
|
13926
13950
|
var __export2 = /* @__PURE__ */ __name((target, all) => {
|
|
13927
13951
|
for (var name in all)
|
|
13928
13952
|
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
13929
13953
|
}, "__export");
|
|
13930
|
-
var
|
|
13954
|
+
var __copyProps = /* @__PURE__ */ __name((to, from, except, desc) => {
|
|
13931
13955
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
13932
|
-
for (let key of
|
|
13933
|
-
if (!
|
|
13934
|
-
__defProp2(to, key, { get: () => from[key], enumerable: !(desc =
|
|
13956
|
+
for (let key of __getOwnPropNames(from))
|
|
13957
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13958
|
+
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13935
13959
|
}
|
|
13936
13960
|
return to;
|
|
13937
13961
|
}, "__copyProps");
|
|
13938
|
-
var
|
|
13962
|
+
var __toESM = /* @__PURE__ */ __name((mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
13939
13963
|
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
|
|
13940
13964
|
mod
|
|
13941
13965
|
)), "__toESM");
|
|
13942
|
-
var require_types_cjs_development =
|
|
13966
|
+
var require_types_cjs_development = __commonJS({
|
|
13943
13967
|
"../learn-card-types/dist/types.cjs.development.cjs"(exports, module) {
|
|
13944
13968
|
var _a4, _b, _c, _d, _e, _f, _g;
|
|
13945
13969
|
"use strict";
|
|
13946
13970
|
var __defProp22 = Object.defineProperty;
|
|
13947
|
-
var
|
|
13948
|
-
var
|
|
13949
|
-
var
|
|
13971
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
13972
|
+
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
13973
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
13950
13974
|
var __name22 = /* @__PURE__ */ __name2((target, value) => __defProp22(target, "name", { value, configurable: true }), "__name");
|
|
13951
13975
|
var __export22 = /* @__PURE__ */ __name2((target, all) => {
|
|
13952
13976
|
for (var name in all)
|
|
13953
13977
|
__defProp22(target, name, { get: all[name], enumerable: true });
|
|
13954
13978
|
}, "__export");
|
|
13955
|
-
var
|
|
13979
|
+
var __copyProps2 = /* @__PURE__ */ __name2((to, from, except, desc) => {
|
|
13956
13980
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
13957
|
-
for (let key of
|
|
13958
|
-
if (!
|
|
13959
|
-
__defProp22(to, key, { get: /* @__PURE__ */ __name2(() => from[key], "get"), enumerable: !(desc =
|
|
13981
|
+
for (let key of __getOwnPropNames2(from))
|
|
13982
|
+
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
13983
|
+
__defProp22(to, key, { get: /* @__PURE__ */ __name2(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
13960
13984
|
}
|
|
13961
13985
|
return to;
|
|
13962
13986
|
}, "__copyProps");
|
|
13963
|
-
var __toCommonJS = /* @__PURE__ */ __name2((mod) =>
|
|
13987
|
+
var __toCommonJS = /* @__PURE__ */ __name2((mod) => __copyProps2(__defProp22({}, "__esModule", { value: true }), mod), "__toCommonJS");
|
|
13964
13988
|
var index_exports = {};
|
|
13965
13989
|
__export22(index_exports, {
|
|
13966
13990
|
AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX: /* @__PURE__ */ __name2(() => AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX2, "AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX"),
|
|
@@ -14199,6 +14223,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
14199
14223
|
SkillTreeNodeValidator: /* @__PURE__ */ __name2(() => SkillTreeNodeValidator2, "SkillTreeNodeValidator"),
|
|
14200
14224
|
SkillValidator: /* @__PURE__ */ __name2(() => SkillValidator2, "SkillValidator"),
|
|
14201
14225
|
StatusCheckEntryValidator: /* @__PURE__ */ __name2(() => StatusCheckEntryValidator2, "StatusCheckEntryValidator"),
|
|
14226
|
+
StoredCredentialEnvelopeValidator: /* @__PURE__ */ __name2(() => StoredCredentialEnvelopeValidator2, "StoredCredentialEnvelopeValidator"),
|
|
14202
14227
|
StringQuery: /* @__PURE__ */ __name2(() => StringQuery2, "StringQuery"),
|
|
14203
14228
|
SummaryCredentialDataValidator: /* @__PURE__ */ __name2(() => SummaryCredentialDataValidator2, "SummaryCredentialDataValidator"),
|
|
14204
14229
|
SummaryCredentialKeywordValidator: /* @__PURE__ */ __name2(() => SummaryCredentialKeywordValidator2, "SummaryCredentialKeywordValidator"),
|
|
@@ -14219,7 +14244,8 @@ var require_types_cjs_development = __commonJS2({
|
|
|
14219
14244
|
VerificationItemValidator: /* @__PURE__ */ __name2(() => VerificationItemValidator2, "VerificationItemValidator"),
|
|
14220
14245
|
VerificationMethodValidator: /* @__PURE__ */ __name2(() => VerificationMethodValidator2, "VerificationMethodValidator"),
|
|
14221
14246
|
VerificationStatusEnum: /* @__PURE__ */ __name2(() => VerificationStatusEnum2, "VerificationStatusEnum"),
|
|
14222
|
-
VerificationStatusValidator: /* @__PURE__ */ __name2(() => VerificationStatusValidator2, "VerificationStatusValidator")
|
|
14247
|
+
VerificationStatusValidator: /* @__PURE__ */ __name2(() => VerificationStatusValidator2, "VerificationStatusValidator"),
|
|
14248
|
+
isStoredCredentialEnvelope: /* @__PURE__ */ __name2(() => isStoredCredentialEnvelope2, "isStoredCredentialEnvelope")
|
|
14223
14249
|
});
|
|
14224
14250
|
module.exports = __toCommonJS(index_exports);
|
|
14225
14251
|
var external_exports2 = {};
|
|
@@ -14325,14 +14351,14 @@ var require_types_cjs_development = __commonJS2({
|
|
|
14325
14351
|
cuid2: /* @__PURE__ */ __name2(() => cuid222, "cuid2"),
|
|
14326
14352
|
custom: /* @__PURE__ */ __name2(() => custom2, "custom"),
|
|
14327
14353
|
date: /* @__PURE__ */ __name2(() => date32, "date"),
|
|
14328
|
-
decode: /* @__PURE__ */ __name2(() =>
|
|
14354
|
+
decode: /* @__PURE__ */ __name2(() => decode22, "decode"),
|
|
14329
14355
|
decodeAsync: /* @__PURE__ */ __name2(() => decodeAsync22, "decodeAsync"),
|
|
14330
14356
|
describe: /* @__PURE__ */ __name2(() => describe22, "describe"),
|
|
14331
14357
|
discriminatedUnion: /* @__PURE__ */ __name2(() => discriminatedUnion2, "discriminatedUnion"),
|
|
14332
14358
|
e164: /* @__PURE__ */ __name2(() => e16422, "e164"),
|
|
14333
14359
|
email: /* @__PURE__ */ __name2(() => email22, "email"),
|
|
14334
14360
|
emoji: /* @__PURE__ */ __name2(() => emoji22, "emoji"),
|
|
14335
|
-
encode: /* @__PURE__ */ __name2(() =>
|
|
14361
|
+
encode: /* @__PURE__ */ __name2(() => encode22, "encode"),
|
|
14336
14362
|
encodeAsync: /* @__PURE__ */ __name2(() => encodeAsync22, "encodeAsync"),
|
|
14337
14363
|
endsWith: /* @__PURE__ */ __name2(() => _endsWith2, "endsWith"),
|
|
14338
14364
|
enum: /* @__PURE__ */ __name2(() => _enum22, "enum"),
|
|
@@ -14397,7 +14423,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
14397
14423
|
object: /* @__PURE__ */ __name2(() => object2, "object"),
|
|
14398
14424
|
optional: /* @__PURE__ */ __name2(() => optional2, "optional"),
|
|
14399
14425
|
overwrite: /* @__PURE__ */ __name2(() => _overwrite2, "overwrite"),
|
|
14400
|
-
parse: /* @__PURE__ */ __name2(() =>
|
|
14426
|
+
parse: /* @__PURE__ */ __name2(() => parse22, "parse"),
|
|
14401
14427
|
parseAsync: /* @__PURE__ */ __name2(() => parseAsync22, "parseAsync"),
|
|
14402
14428
|
partialRecord: /* @__PURE__ */ __name2(() => partialRecord2, "partialRecord"),
|
|
14403
14429
|
pipe: /* @__PURE__ */ __name2(() => pipe2, "pipe"),
|
|
@@ -14583,14 +14609,14 @@ var require_types_cjs_development = __commonJS2({
|
|
|
14583
14609
|
_cuid2: /* @__PURE__ */ __name2(() => _cuid22, "_cuid2"),
|
|
14584
14610
|
_custom: /* @__PURE__ */ __name2(() => _custom2, "_custom"),
|
|
14585
14611
|
_date: /* @__PURE__ */ __name2(() => _date2, "_date"),
|
|
14586
|
-
_decode: /* @__PURE__ */ __name2(() =>
|
|
14612
|
+
_decode: /* @__PURE__ */ __name2(() => _decode3, "_decode"),
|
|
14587
14613
|
_decodeAsync: /* @__PURE__ */ __name2(() => _decodeAsync2, "_decodeAsync"),
|
|
14588
14614
|
_default: /* @__PURE__ */ __name2(() => _default3, "_default"),
|
|
14589
14615
|
_discriminatedUnion: /* @__PURE__ */ __name2(() => _discriminatedUnion2, "_discriminatedUnion"),
|
|
14590
14616
|
_e164: /* @__PURE__ */ __name2(() => _e1642, "_e164"),
|
|
14591
14617
|
_email: /* @__PURE__ */ __name2(() => _email2, "_email"),
|
|
14592
14618
|
_emoji: /* @__PURE__ */ __name2(() => _emoji22, "_emoji"),
|
|
14593
|
-
_encode: /* @__PURE__ */ __name2(() =>
|
|
14619
|
+
_encode: /* @__PURE__ */ __name2(() => _encode3, "_encode"),
|
|
14594
14620
|
_encodeAsync: /* @__PURE__ */ __name2(() => _encodeAsync2, "_encodeAsync"),
|
|
14595
14621
|
_endsWith: /* @__PURE__ */ __name2(() => _endsWith2, "_endsWith"),
|
|
14596
14622
|
_enum: /* @__PURE__ */ __name2(() => _enum3, "_enum"),
|
|
@@ -14691,10 +14717,10 @@ var require_types_cjs_development = __commonJS2({
|
|
|
14691
14717
|
_xid: /* @__PURE__ */ __name2(() => _xid2, "_xid"),
|
|
14692
14718
|
clone: /* @__PURE__ */ __name2(() => clone2, "clone"),
|
|
14693
14719
|
config: /* @__PURE__ */ __name2(() => config2, "config"),
|
|
14694
|
-
decode: /* @__PURE__ */ __name2(() =>
|
|
14720
|
+
decode: /* @__PURE__ */ __name2(() => decode4, "decode"),
|
|
14695
14721
|
decodeAsync: /* @__PURE__ */ __name2(() => decodeAsync3, "decodeAsync"),
|
|
14696
14722
|
describe: /* @__PURE__ */ __name2(() => describe3, "describe"),
|
|
14697
|
-
encode: /* @__PURE__ */ __name2(() =>
|
|
14723
|
+
encode: /* @__PURE__ */ __name2(() => encode4, "encode"),
|
|
14698
14724
|
encodeAsync: /* @__PURE__ */ __name2(() => encodeAsync3, "encodeAsync"),
|
|
14699
14725
|
flattenError: /* @__PURE__ */ __name2(() => flattenError2, "flattenError"),
|
|
14700
14726
|
formatError: /* @__PURE__ */ __name2(() => formatError2, "formatError"),
|
|
@@ -14705,7 +14731,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
14705
14731
|
isValidJWT: /* @__PURE__ */ __name2(() => isValidJWT2, "isValidJWT"),
|
|
14706
14732
|
locales: /* @__PURE__ */ __name2(() => locales_exports2, "locales"),
|
|
14707
14733
|
meta: /* @__PURE__ */ __name2(() => meta3, "meta"),
|
|
14708
|
-
parse: /* @__PURE__ */ __name2(() =>
|
|
14734
|
+
parse: /* @__PURE__ */ __name2(() => parse3, "parse"),
|
|
14709
14735
|
parseAsync: /* @__PURE__ */ __name2(() => parseAsync3, "parseAsync"),
|
|
14710
14736
|
prettifyError: /* @__PURE__ */ __name2(() => prettifyError2, "prettifyError"),
|
|
14711
14737
|
regexes: /* @__PURE__ */ __name2(() => regexes_exports2, "regexes"),
|
|
@@ -14720,7 +14746,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
14720
14746
|
toJSONSchema: /* @__PURE__ */ __name2(() => toJSONSchema2, "toJSONSchema"),
|
|
14721
14747
|
treeifyError: /* @__PURE__ */ __name2(() => treeifyError2, "treeifyError"),
|
|
14722
14748
|
util: /* @__PURE__ */ __name2(() => util_exports2, "util"),
|
|
14723
|
-
version: /* @__PURE__ */ __name2(() =>
|
|
14749
|
+
version: /* @__PURE__ */ __name2(() => version3, "version")
|
|
14724
14750
|
});
|
|
14725
14751
|
var NEVER2 = Object.freeze({
|
|
14726
14752
|
status: "aborted"
|
|
@@ -14870,7 +14896,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
14870
14896
|
omit: /* @__PURE__ */ __name2(() => omit2, "omit"),
|
|
14871
14897
|
optionalKeys: /* @__PURE__ */ __name2(() => optionalKeys2, "optionalKeys"),
|
|
14872
14898
|
partial: /* @__PURE__ */ __name2(() => partial2, "partial"),
|
|
14873
|
-
pick: /* @__PURE__ */ __name2(() =>
|
|
14899
|
+
pick: /* @__PURE__ */ __name2(() => pick2, "pick"),
|
|
14874
14900
|
prefixIssues: /* @__PURE__ */ __name2(() => prefixIssues2, "prefixIssues"),
|
|
14875
14901
|
primitiveTypes: /* @__PURE__ */ __name2(() => primitiveTypes2, "primitiveTypes"),
|
|
14876
14902
|
promiseAllObject: /* @__PURE__ */ __name2(() => promiseAllObject2, "promiseAllObject"),
|
|
@@ -15294,7 +15320,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
15294
15320
|
int64: [/* @__PURE__ */ BigInt("-9223372036854775808"), /* @__PURE__ */ BigInt("9223372036854775807")],
|
|
15295
15321
|
uint64: [/* @__PURE__ */ BigInt(0), /* @__PURE__ */ BigInt("18446744073709551615")]
|
|
15296
15322
|
};
|
|
15297
|
-
function
|
|
15323
|
+
function pick2(schema, mask) {
|
|
15298
15324
|
const currDef = schema._zod.def;
|
|
15299
15325
|
const def = mergeDefs2(schema._zod.def, {
|
|
15300
15326
|
get shape() {
|
|
@@ -15314,9 +15340,9 @@ var require_types_cjs_development = __commonJS2({
|
|
|
15314
15340
|
});
|
|
15315
15341
|
return clone2(schema, def);
|
|
15316
15342
|
}
|
|
15317
|
-
__name(
|
|
15318
|
-
__name2(
|
|
15319
|
-
__name22(
|
|
15343
|
+
__name(pick2, "pick");
|
|
15344
|
+
__name2(pick2, "pick");
|
|
15345
|
+
__name22(pick2, "pick");
|
|
15320
15346
|
function omit2(schema, mask) {
|
|
15321
15347
|
const currDef = schema._zod.def;
|
|
15322
15348
|
const def = mergeDefs2(schema._zod.def, {
|
|
@@ -15783,7 +15809,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
15783
15809
|
}
|
|
15784
15810
|
return result.value;
|
|
15785
15811
|
}, "_parse");
|
|
15786
|
-
var
|
|
15812
|
+
var parse3 = /* @__PURE__ */ _parse2($ZodRealError2);
|
|
15787
15813
|
var _parseAsync2 = /* @__PURE__ */ __name22((_Err) => async (schema, value, _ctx, params) => {
|
|
15788
15814
|
const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
|
|
15789
15815
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -15820,15 +15846,15 @@ var require_types_cjs_development = __commonJS2({
|
|
|
15820
15846
|
} : { success: true, data: result.value };
|
|
15821
15847
|
}, "_safeParseAsync");
|
|
15822
15848
|
var safeParseAsync3 = /* @__PURE__ */ _safeParseAsync2($ZodRealError2);
|
|
15823
|
-
var
|
|
15849
|
+
var _encode3 = /* @__PURE__ */ __name22((_Err) => (schema, value, _ctx) => {
|
|
15824
15850
|
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
15825
15851
|
return _parse2(_Err)(schema, value, ctx);
|
|
15826
15852
|
}, "_encode");
|
|
15827
|
-
var
|
|
15828
|
-
var
|
|
15853
|
+
var encode4 = /* @__PURE__ */ _encode3($ZodRealError2);
|
|
15854
|
+
var _decode3 = /* @__PURE__ */ __name22((_Err) => (schema, value, _ctx) => {
|
|
15829
15855
|
return _parse2(_Err)(schema, value, _ctx);
|
|
15830
15856
|
}, "_decode");
|
|
15831
|
-
var
|
|
15857
|
+
var decode4 = /* @__PURE__ */ _decode3($ZodRealError2);
|
|
15832
15858
|
var _encodeAsync2 = /* @__PURE__ */ __name22((_Err) => async (schema, value, _ctx) => {
|
|
15833
15859
|
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
15834
15860
|
return _parseAsync2(_Err)(schema, value, ctx);
|
|
@@ -16610,7 +16636,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
16610
16636
|
})(), (() => {
|
|
16611
16637
|
__name22(_d, "Doc");
|
|
16612
16638
|
})(), _d), "Doc");
|
|
16613
|
-
var
|
|
16639
|
+
var version3 = {
|
|
16614
16640
|
major: 4,
|
|
16615
16641
|
minor: 1,
|
|
16616
16642
|
patch: 13
|
|
@@ -16620,7 +16646,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
16620
16646
|
inst ?? (inst = {});
|
|
16621
16647
|
inst._zod.def = def;
|
|
16622
16648
|
inst._zod.bag = inst._zod.bag || {};
|
|
16623
|
-
inst._zod.version =
|
|
16649
|
+
inst._zod.version = version3;
|
|
16624
16650
|
const checks = [...inst._zod.def.checks ?? []];
|
|
16625
16651
|
if (inst._zod.traits.has("$ZodCheck")) {
|
|
16626
16652
|
checks.unshift(inst);
|
|
@@ -18398,10 +18424,10 @@ var require_types_cjs_development = __commonJS2({
|
|
|
18398
18424
|
throw new Error("implement() must be called with a function");
|
|
18399
18425
|
}
|
|
18400
18426
|
return function(...args) {
|
|
18401
|
-
const parsedArgs = inst._def.input ?
|
|
18427
|
+
const parsedArgs = inst._def.input ? parse3(inst._def.input, args) : args;
|
|
18402
18428
|
const result = Reflect.apply(func, this, parsedArgs);
|
|
18403
18429
|
if (inst._def.output) {
|
|
18404
|
-
return
|
|
18430
|
+
return parse3(inst._def.output, result);
|
|
18405
18431
|
}
|
|
18406
18432
|
return result;
|
|
18407
18433
|
};
|
|
@@ -26630,12 +26656,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
26630
26656
|
var ZodRealError2 = /* @__PURE__ */ $constructor2("ZodError", initializer22, {
|
|
26631
26657
|
Parent: Error
|
|
26632
26658
|
});
|
|
26633
|
-
var
|
|
26659
|
+
var parse22 = /* @__PURE__ */ _parse2(ZodRealError2);
|
|
26634
26660
|
var parseAsync22 = /* @__PURE__ */ _parseAsync2(ZodRealError2);
|
|
26635
26661
|
var safeParse22 = /* @__PURE__ */ _safeParse2(ZodRealError2);
|
|
26636
26662
|
var safeParseAsync22 = /* @__PURE__ */ _safeParseAsync2(ZodRealError2);
|
|
26637
|
-
var
|
|
26638
|
-
var
|
|
26663
|
+
var encode22 = /* @__PURE__ */ _encode3(ZodRealError2);
|
|
26664
|
+
var decode22 = /* @__PURE__ */ _decode3(ZodRealError2);
|
|
26639
26665
|
var encodeAsync22 = /* @__PURE__ */ _encodeAsync2(ZodRealError2);
|
|
26640
26666
|
var decodeAsync22 = /* @__PURE__ */ _decodeAsync2(ZodRealError2);
|
|
26641
26667
|
var safeEncode22 = /* @__PURE__ */ _safeEncode2(ZodRealError2);
|
|
@@ -26661,13 +26687,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
26661
26687
|
reg.add(inst, meta32);
|
|
26662
26688
|
return inst;
|
|
26663
26689
|
};
|
|
26664
|
-
inst.parse = (data, params) =>
|
|
26690
|
+
inst.parse = (data, params) => parse22(inst, data, params, { callee: inst.parse });
|
|
26665
26691
|
inst.safeParse = (data, params) => safeParse22(inst, data, params);
|
|
26666
26692
|
inst.parseAsync = async (data, params) => parseAsync22(inst, data, params, { callee: inst.parseAsync });
|
|
26667
26693
|
inst.safeParseAsync = async (data, params) => safeParseAsync22(inst, data, params);
|
|
26668
26694
|
inst.spa = inst.safeParseAsync;
|
|
26669
|
-
inst.encode = (data, params) =>
|
|
26670
|
-
inst.decode = (data, params) =>
|
|
26695
|
+
inst.encode = (data, params) => encode22(inst, data, params);
|
|
26696
|
+
inst.decode = (data, params) => decode22(inst, data, params);
|
|
26671
26697
|
inst.encodeAsync = async (data, params) => encodeAsync22(inst, data, params);
|
|
26672
26698
|
inst.decodeAsync = async (data, params) => decodeAsync22(inst, data, params);
|
|
26673
26699
|
inst.safeEncode = (data, params) => safeEncode22(inst, data, params);
|
|
@@ -28394,6 +28420,20 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28394
28420
|
"vc+sd-jwt",
|
|
28395
28421
|
"mso_mdoc"
|
|
28396
28422
|
]);
|
|
28423
|
+
var StoredCredentialEnvelopeValidator2 = external_exports2.object({
|
|
28424
|
+
format: CredentialFormatValidator2,
|
|
28425
|
+
data: external_exports2.string()
|
|
28426
|
+
}).passthrough();
|
|
28427
|
+
var isStoredCredentialEnvelope2 = /* @__PURE__ */ __name22((value) => {
|
|
28428
|
+
if (!value || typeof value !== "object")
|
|
28429
|
+
return false;
|
|
28430
|
+
const candidate = value;
|
|
28431
|
+
if (typeof candidate.format !== "string")
|
|
28432
|
+
return false;
|
|
28433
|
+
if (!CredentialFormatValidator2.safeParse(candidate.format).success)
|
|
28434
|
+
return false;
|
|
28435
|
+
return typeof candidate.data === "string" || candidate.data instanceof Uint8Array;
|
|
28436
|
+
}, "isStoredCredentialEnvelope");
|
|
28397
28437
|
var StatusCheckEntryValidator2 = external_exports2.object({
|
|
28398
28438
|
entryType: external_exports2.string(),
|
|
28399
28439
|
statusPurpose: external_exports2.string(),
|
|
@@ -28699,7 +28739,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28699
28739
|
to: LCNVisibleProfileValidator2,
|
|
28700
28740
|
from: external_exports2.string(),
|
|
28701
28741
|
received: external_exports2.string().optional(),
|
|
28702
|
-
uri: external_exports2.string().optional()
|
|
28742
|
+
uri: external_exports2.string().optional(),
|
|
28743
|
+
status: external_exports2.enum(["active", "revoked", "suspended"]).optional()
|
|
28703
28744
|
});
|
|
28704
28745
|
var PaginatedBoostRecipientsValidator2 = PaginationResponseValidator2.extend({
|
|
28705
28746
|
records: BoostRecipientValidator2.array()
|
|
@@ -28709,7 +28750,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28709
28750
|
from: external_exports2.string(),
|
|
28710
28751
|
received: external_exports2.string().optional(),
|
|
28711
28752
|
boostUris: external_exports2.array(external_exports2.string()),
|
|
28712
|
-
credentialUris: external_exports2.array(external_exports2.string()).optional()
|
|
28753
|
+
credentialUris: external_exports2.array(external_exports2.string()).optional(),
|
|
28754
|
+
status: external_exports2.enum(["active", "revoked", "suspended"]).optional()
|
|
28713
28755
|
});
|
|
28714
28756
|
var PaginatedBoostRecipientsWithChildrenValidator2 = PaginationResponseValidator2.extend({
|
|
28715
28757
|
records: BoostRecipientWithChildrenValidator2.array()
|
|
@@ -29780,7 +29822,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29780
29822
|
inboxCredentialId: external_exports2.string().optional(),
|
|
29781
29823
|
integrationId: external_exports2.string().optional(),
|
|
29782
29824
|
source: CredentialActivitySourceTypeValidator2,
|
|
29783
|
-
metadata: external_exports2.record(external_exports2.string(), external_exports2.unknown()).optional()
|
|
29825
|
+
metadata: external_exports2.record(external_exports2.string(), external_exports2.unknown()).optional(),
|
|
29826
|
+
status: external_exports2.enum(["active", "revoked", "suspended"]).optional()
|
|
29784
29827
|
});
|
|
29785
29828
|
var CredentialActivityWithDetailsValidator2 = CredentialActivityValidator2.extend({
|
|
29786
29829
|
boost: external_exports2.object({
|
|
@@ -29841,7 +29884,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29841
29884
|
}).default({});
|
|
29842
29885
|
}
|
|
29843
29886
|
});
|
|
29844
|
-
var require_dist =
|
|
29887
|
+
var require_dist = __commonJS({
|
|
29845
29888
|
"../learn-card-types/dist/index.cjs"(exports, module) {
|
|
29846
29889
|
"use strict";
|
|
29847
29890
|
if (false) {
|
|
@@ -29851,7 +29894,7 @@ var require_dist = __commonJS2({
|
|
|
29851
29894
|
}
|
|
29852
29895
|
}
|
|
29853
29896
|
});
|
|
29854
|
-
var
|
|
29897
|
+
var import_types2 = __toESM(require_dist());
|
|
29855
29898
|
var filestack_helpers_exports = {};
|
|
29856
29899
|
__export2(filestack_helpers_exports, {
|
|
29857
29900
|
changeQuality: () => changeQuality,
|
|
@@ -29946,467 +29989,33 @@ __export2(unsplash_helpers_exports, {
|
|
|
29946
29989
|
resizeAndChangeQuality: () => resizeAndChangeQuality2,
|
|
29947
29990
|
resizeUrl: () => resizeUrl2
|
|
29948
29991
|
});
|
|
29949
|
-
var
|
|
29950
|
-
|
|
29951
|
-
|
|
29952
|
-
|
|
29953
|
-
|
|
29954
|
-
|
|
29955
|
-
|
|
29956
|
-
|
|
29957
|
-
|
|
29958
|
-
|
|
29959
|
-
var isNullOrUndefined = /* @__PURE__ */ __name2((value) => value === null || value === void 0, "isNullOrUndefined");
|
|
29960
|
-
var strictUriEncode = /* @__PURE__ */ __name2((string4) => encodeURIComponent(string4).replaceAll(/[!'()*]/g, (x) => `%${x.charCodeAt(0).toString(16).toUpperCase()}`), "strictUriEncode");
|
|
29961
|
-
var encodeFragmentIdentifier = /* @__PURE__ */ Symbol("encodeFragmentIdentifier");
|
|
29962
|
-
function encoderForArrayFormat(options) {
|
|
29963
|
-
switch (options.arrayFormat) {
|
|
29964
|
-
case "index": {
|
|
29965
|
-
return (key) => (result, value) => {
|
|
29966
|
-
const index = result.length;
|
|
29967
|
-
if (value === void 0 || options.skipNull && value === null || options.skipEmptyString && value === "") {
|
|
29968
|
-
return result;
|
|
29969
|
-
}
|
|
29970
|
-
if (value === null) {
|
|
29971
|
-
return [
|
|
29972
|
-
...result,
|
|
29973
|
-
[encode3(key, options), "[", index, "]"].join("")
|
|
29974
|
-
];
|
|
29975
|
-
}
|
|
29976
|
-
return [
|
|
29977
|
-
...result,
|
|
29978
|
-
[encode3(key, options), "[", encode3(index, options), "]=", encode3(value, options)].join("")
|
|
29979
|
-
];
|
|
29980
|
-
};
|
|
29981
|
-
}
|
|
29982
|
-
case "bracket": {
|
|
29983
|
-
return (key) => (result, value) => {
|
|
29984
|
-
if (value === void 0 || options.skipNull && value === null || options.skipEmptyString && value === "") {
|
|
29985
|
-
return result;
|
|
29986
|
-
}
|
|
29987
|
-
if (value === null) {
|
|
29988
|
-
return [
|
|
29989
|
-
...result,
|
|
29990
|
-
[encode3(key, options), "[]"].join("")
|
|
29991
|
-
];
|
|
29992
|
-
}
|
|
29993
|
-
return [
|
|
29994
|
-
...result,
|
|
29995
|
-
[encode3(key, options), "[]=", encode3(value, options)].join("")
|
|
29996
|
-
];
|
|
29997
|
-
};
|
|
29998
|
-
}
|
|
29999
|
-
case "colon-list-separator": {
|
|
30000
|
-
return (key) => (result, value) => {
|
|
30001
|
-
if (value === void 0 || options.skipNull && value === null || options.skipEmptyString && value === "") {
|
|
30002
|
-
return result;
|
|
30003
|
-
}
|
|
30004
|
-
if (value === null) {
|
|
30005
|
-
return [
|
|
30006
|
-
...result,
|
|
30007
|
-
[encode3(key, options), ":list="].join("")
|
|
30008
|
-
];
|
|
30009
|
-
}
|
|
30010
|
-
return [
|
|
30011
|
-
...result,
|
|
30012
|
-
[encode3(key, options), ":list=", encode3(value, options)].join("")
|
|
30013
|
-
];
|
|
30014
|
-
};
|
|
30015
|
-
}
|
|
30016
|
-
case "comma":
|
|
30017
|
-
case "separator":
|
|
30018
|
-
case "bracket-separator": {
|
|
30019
|
-
const keyValueSeparator = options.arrayFormat === "bracket-separator" ? "[]=" : "=";
|
|
30020
|
-
return (key) => (result, value) => {
|
|
30021
|
-
if (value === void 0 || options.skipNull && value === null || options.skipEmptyString && value === "") {
|
|
30022
|
-
return result;
|
|
30023
|
-
}
|
|
30024
|
-
value = value === null ? "" : value;
|
|
30025
|
-
if (result.length === 0) {
|
|
30026
|
-
return [[encode3(key, options), keyValueSeparator, encode3(value, options)].join("")];
|
|
30027
|
-
}
|
|
30028
|
-
return [[result, encode3(value, options)].join(options.arrayFormatSeparator)];
|
|
30029
|
-
};
|
|
30030
|
-
}
|
|
30031
|
-
default: {
|
|
30032
|
-
return (key) => (result, value) => {
|
|
30033
|
-
if (value === void 0 || options.skipNull && value === null || options.skipEmptyString && value === "") {
|
|
30034
|
-
return result;
|
|
30035
|
-
}
|
|
30036
|
-
if (value === null) {
|
|
30037
|
-
return [
|
|
30038
|
-
...result,
|
|
30039
|
-
encode3(key, options)
|
|
30040
|
-
];
|
|
30041
|
-
}
|
|
30042
|
-
return [
|
|
30043
|
-
...result,
|
|
30044
|
-
[encode3(key, options), "=", encode3(value, options)].join("")
|
|
30045
|
-
];
|
|
30046
|
-
};
|
|
30047
|
-
}
|
|
30048
|
-
}
|
|
30049
|
-
}
|
|
30050
|
-
__name(encoderForArrayFormat, "encoderForArrayFormat");
|
|
30051
|
-
__name2(encoderForArrayFormat, "encoderForArrayFormat");
|
|
30052
|
-
function parserForArrayFormat(options) {
|
|
30053
|
-
let result;
|
|
30054
|
-
switch (options.arrayFormat) {
|
|
30055
|
-
case "index": {
|
|
30056
|
-
return (key, value, accumulator) => {
|
|
30057
|
-
result = /\[(\d*)]$/.exec(key);
|
|
30058
|
-
key = key.replace(/\[\d*]$/, "");
|
|
30059
|
-
if (!result) {
|
|
30060
|
-
accumulator[key] = value;
|
|
30061
|
-
return;
|
|
30062
|
-
}
|
|
30063
|
-
if (accumulator[key] === void 0) {
|
|
30064
|
-
accumulator[key] = {};
|
|
30065
|
-
}
|
|
30066
|
-
accumulator[key][result[1]] = value;
|
|
30067
|
-
};
|
|
30068
|
-
}
|
|
30069
|
-
case "bracket": {
|
|
30070
|
-
return (key, value, accumulator) => {
|
|
30071
|
-
result = /(\[])$/.exec(key);
|
|
30072
|
-
key = key.replace(/\[]$/, "");
|
|
30073
|
-
if (!result) {
|
|
30074
|
-
accumulator[key] = value;
|
|
30075
|
-
return;
|
|
30076
|
-
}
|
|
30077
|
-
if (accumulator[key] === void 0) {
|
|
30078
|
-
accumulator[key] = [value];
|
|
30079
|
-
return;
|
|
30080
|
-
}
|
|
30081
|
-
accumulator[key] = [...accumulator[key], value];
|
|
30082
|
-
};
|
|
30083
|
-
}
|
|
30084
|
-
case "colon-list-separator": {
|
|
30085
|
-
return (key, value, accumulator) => {
|
|
30086
|
-
result = /(:list)$/.exec(key);
|
|
30087
|
-
key = key.replace(/:list$/, "");
|
|
30088
|
-
if (!result) {
|
|
30089
|
-
accumulator[key] = value;
|
|
30090
|
-
return;
|
|
30091
|
-
}
|
|
30092
|
-
if (accumulator[key] === void 0) {
|
|
30093
|
-
accumulator[key] = [value];
|
|
30094
|
-
return;
|
|
30095
|
-
}
|
|
30096
|
-
accumulator[key] = [...accumulator[key], value];
|
|
30097
|
-
};
|
|
30098
|
-
}
|
|
30099
|
-
case "comma":
|
|
30100
|
-
case "separator": {
|
|
30101
|
-
return (key, value, accumulator) => {
|
|
30102
|
-
const isArray = typeof value === "string" && value.includes(options.arrayFormatSeparator);
|
|
30103
|
-
const newValue = isArray ? value.split(options.arrayFormatSeparator).map((item) => decode3(item, options)) : value === null ? value : decode3(value, options);
|
|
30104
|
-
accumulator[key] = newValue;
|
|
30105
|
-
};
|
|
30106
|
-
}
|
|
30107
|
-
case "bracket-separator": {
|
|
30108
|
-
return (key, value, accumulator) => {
|
|
30109
|
-
const isArray = /(\[])$/.test(key);
|
|
30110
|
-
key = key.replace(/\[]$/, "");
|
|
30111
|
-
if (!isArray) {
|
|
30112
|
-
accumulator[key] = value ? decode3(value, options) : value;
|
|
30113
|
-
return;
|
|
30114
|
-
}
|
|
30115
|
-
const arrayValue = value === null ? [] : decode3(value, options).split(options.arrayFormatSeparator);
|
|
30116
|
-
if (accumulator[key] === void 0) {
|
|
30117
|
-
accumulator[key] = arrayValue;
|
|
30118
|
-
return;
|
|
30119
|
-
}
|
|
30120
|
-
accumulator[key] = [...accumulator[key], ...arrayValue];
|
|
30121
|
-
};
|
|
30122
|
-
}
|
|
30123
|
-
default: {
|
|
30124
|
-
return (key, value, accumulator) => {
|
|
30125
|
-
if (accumulator[key] === void 0) {
|
|
30126
|
-
accumulator[key] = value;
|
|
30127
|
-
return;
|
|
30128
|
-
}
|
|
30129
|
-
accumulator[key] = [...[accumulator[key]].flat(), value];
|
|
30130
|
-
};
|
|
30131
|
-
}
|
|
30132
|
-
}
|
|
30133
|
-
}
|
|
30134
|
-
__name(parserForArrayFormat, "parserForArrayFormat");
|
|
30135
|
-
__name2(parserForArrayFormat, "parserForArrayFormat");
|
|
30136
|
-
function validateArrayFormatSeparator(value) {
|
|
30137
|
-
if (typeof value !== "string" || value.length !== 1) {
|
|
30138
|
-
throw new TypeError("arrayFormatSeparator must be single character string");
|
|
30139
|
-
}
|
|
30140
|
-
}
|
|
30141
|
-
__name(validateArrayFormatSeparator, "validateArrayFormatSeparator");
|
|
30142
|
-
__name2(validateArrayFormatSeparator, "validateArrayFormatSeparator");
|
|
30143
|
-
function encode3(value, options) {
|
|
30144
|
-
if (options.encode) {
|
|
30145
|
-
return options.strict ? strictUriEncode(value) : encodeURIComponent(value);
|
|
30146
|
-
}
|
|
30147
|
-
return value;
|
|
30148
|
-
}
|
|
30149
|
-
__name(encode3, "encode");
|
|
30150
|
-
__name2(encode3, "encode");
|
|
30151
|
-
function decode3(value, options) {
|
|
30152
|
-
if (options.decode) {
|
|
30153
|
-
return (0, import_decode_uri_component.default)(value);
|
|
30154
|
-
}
|
|
30155
|
-
return value;
|
|
30156
|
-
}
|
|
30157
|
-
__name(decode3, "decode");
|
|
30158
|
-
__name2(decode3, "decode");
|
|
30159
|
-
function keysSorter(input) {
|
|
30160
|
-
if (Array.isArray(input)) {
|
|
30161
|
-
return input.sort();
|
|
30162
|
-
}
|
|
30163
|
-
if (typeof input === "object") {
|
|
30164
|
-
return keysSorter(Object.keys(input)).sort((a, b) => Number(a) - Number(b)).map((key) => input[key]);
|
|
30165
|
-
}
|
|
30166
|
-
return input;
|
|
30167
|
-
}
|
|
30168
|
-
__name(keysSorter, "keysSorter");
|
|
30169
|
-
__name2(keysSorter, "keysSorter");
|
|
30170
|
-
function removeHash(input) {
|
|
30171
|
-
const hashStart = input.indexOf("#");
|
|
30172
|
-
if (hashStart !== -1) {
|
|
30173
|
-
input = input.slice(0, hashStart);
|
|
30174
|
-
}
|
|
30175
|
-
return input;
|
|
30176
|
-
}
|
|
30177
|
-
__name(removeHash, "removeHash");
|
|
30178
|
-
__name2(removeHash, "removeHash");
|
|
30179
|
-
function getHash(url2) {
|
|
30180
|
-
let hash2 = "";
|
|
30181
|
-
const hashStart = url2.indexOf("#");
|
|
30182
|
-
if (hashStart !== -1) {
|
|
30183
|
-
hash2 = url2.slice(hashStart);
|
|
30184
|
-
}
|
|
30185
|
-
return hash2;
|
|
30186
|
-
}
|
|
30187
|
-
__name(getHash, "getHash");
|
|
30188
|
-
__name2(getHash, "getHash");
|
|
30189
|
-
function parseValue(value, options, type) {
|
|
30190
|
-
if (type === "string" && typeof value === "string") {
|
|
30191
|
-
return value;
|
|
30192
|
-
}
|
|
30193
|
-
if (typeof type === "function" && typeof value === "string") {
|
|
30194
|
-
return type(value);
|
|
30195
|
-
}
|
|
30196
|
-
if (type === "boolean" && value === null) {
|
|
30197
|
-
return true;
|
|
30198
|
-
}
|
|
30199
|
-
if (type === "boolean" && value !== null && (value.toLowerCase() === "true" || value.toLowerCase() === "false")) {
|
|
30200
|
-
return value.toLowerCase() === "true";
|
|
30201
|
-
}
|
|
30202
|
-
if (type === "boolean" && value !== null && (value.toLowerCase() === "1" || value.toLowerCase() === "0")) {
|
|
30203
|
-
return value.toLowerCase() === "1";
|
|
30204
|
-
}
|
|
30205
|
-
if (type === "string[]" && options.arrayFormat !== "none" && typeof value === "string") {
|
|
30206
|
-
return [value];
|
|
30207
|
-
}
|
|
30208
|
-
if (type === "number[]" && options.arrayFormat !== "none" && !Number.isNaN(Number(value)) && (typeof value === "string" && value.trim() !== "")) {
|
|
30209
|
-
return [Number(value)];
|
|
30210
|
-
}
|
|
30211
|
-
if (type === "number" && !Number.isNaN(Number(value)) && (typeof value === "string" && value.trim() !== "")) {
|
|
30212
|
-
return Number(value);
|
|
30213
|
-
}
|
|
30214
|
-
if (options.parseBooleans && value !== null && (value.toLowerCase() === "true" || value.toLowerCase() === "false")) {
|
|
30215
|
-
return value.toLowerCase() === "true";
|
|
30216
|
-
}
|
|
30217
|
-
if (options.parseNumbers && !Number.isNaN(Number(value)) && (typeof value === "string" && value.trim() !== "")) {
|
|
30218
|
-
return Number(value);
|
|
30219
|
-
}
|
|
30220
|
-
return value;
|
|
30221
|
-
}
|
|
30222
|
-
__name(parseValue, "parseValue");
|
|
30223
|
-
__name2(parseValue, "parseValue");
|
|
30224
|
-
function extract(input) {
|
|
30225
|
-
input = removeHash(input);
|
|
30226
|
-
const queryStart = input.indexOf("?");
|
|
30227
|
-
if (queryStart === -1) {
|
|
30228
|
-
return "";
|
|
30229
|
-
}
|
|
30230
|
-
return input.slice(queryStart + 1);
|
|
30231
|
-
}
|
|
30232
|
-
__name(extract, "extract");
|
|
30233
|
-
__name2(extract, "extract");
|
|
30234
|
-
function parse3(query, options) {
|
|
30235
|
-
options = {
|
|
30236
|
-
decode: true,
|
|
30237
|
-
sort: true,
|
|
30238
|
-
arrayFormat: "none",
|
|
30239
|
-
arrayFormatSeparator: ",",
|
|
30240
|
-
parseNumbers: false,
|
|
30241
|
-
parseBooleans: false,
|
|
30242
|
-
types: /* @__PURE__ */ Object.create(null),
|
|
30243
|
-
...options
|
|
30244
|
-
};
|
|
30245
|
-
validateArrayFormatSeparator(options.arrayFormatSeparator);
|
|
30246
|
-
const formatter = parserForArrayFormat(options);
|
|
30247
|
-
const returnValue = /* @__PURE__ */ Object.create(null);
|
|
30248
|
-
if (typeof query !== "string") {
|
|
30249
|
-
return returnValue;
|
|
30250
|
-
}
|
|
30251
|
-
query = query.trim().replace(/^[?#&]/, "");
|
|
30252
|
-
if (!query) {
|
|
30253
|
-
return returnValue;
|
|
30254
|
-
}
|
|
30255
|
-
for (const parameter of query.split("&")) {
|
|
30256
|
-
if (parameter === "") {
|
|
30257
|
-
continue;
|
|
30258
|
-
}
|
|
30259
|
-
const parameter_ = options.decode ? parameter.replaceAll("+", " ") : parameter;
|
|
30260
|
-
let [key, value] = (0, import_split_on_first.default)(parameter_, "=");
|
|
30261
|
-
if (key === void 0) {
|
|
30262
|
-
key = parameter_;
|
|
30263
|
-
}
|
|
30264
|
-
value = value === void 0 ? null : ["comma", "separator", "bracket-separator"].includes(options.arrayFormat) ? value : decode3(value, options);
|
|
30265
|
-
formatter(decode3(key, options), value, returnValue);
|
|
30266
|
-
}
|
|
30267
|
-
for (const [key, value] of Object.entries(returnValue)) {
|
|
30268
|
-
if (typeof value === "object" && value !== null && options.types[key] !== "string") {
|
|
30269
|
-
for (const [key2, value2] of Object.entries(value)) {
|
|
30270
|
-
const typeOption = options.types[key];
|
|
30271
|
-
const type = typeof typeOption === "function" ? typeOption : typeOption ? typeOption.replace("[]", "") : void 0;
|
|
30272
|
-
value[key2] = parseValue(value2, options, type);
|
|
30273
|
-
}
|
|
30274
|
-
} else if (typeof value === "object" && value !== null && options.types[key] === "string") {
|
|
30275
|
-
returnValue[key] = Object.values(value).join(options.arrayFormatSeparator);
|
|
30276
|
-
} else {
|
|
30277
|
-
returnValue[key] = parseValue(value, options, options.types[key]);
|
|
30278
|
-
}
|
|
30279
|
-
}
|
|
30280
|
-
if (options.sort === false) {
|
|
30281
|
-
return returnValue;
|
|
30282
|
-
}
|
|
30283
|
-
return (options.sort === true ? Object.keys(returnValue).sort() : Object.keys(returnValue).sort(options.sort)).reduce((result, key) => {
|
|
30284
|
-
const value = returnValue[key];
|
|
30285
|
-
result[key] = Boolean(value) && typeof value === "object" && !Array.isArray(value) ? keysSorter(value) : value;
|
|
30286
|
-
return result;
|
|
30287
|
-
}, /* @__PURE__ */ Object.create(null));
|
|
30288
|
-
}
|
|
30289
|
-
__name(parse3, "parse");
|
|
30290
|
-
__name2(parse3, "parse");
|
|
30291
|
-
function stringify(object2, options) {
|
|
30292
|
-
if (!object2) {
|
|
30293
|
-
return "";
|
|
30294
|
-
}
|
|
30295
|
-
options = {
|
|
30296
|
-
encode: true,
|
|
30297
|
-
strict: true,
|
|
30298
|
-
arrayFormat: "none",
|
|
30299
|
-
arrayFormatSeparator: ",",
|
|
30300
|
-
...options
|
|
30301
|
-
};
|
|
30302
|
-
validateArrayFormatSeparator(options.arrayFormatSeparator);
|
|
30303
|
-
const shouldFilter = /* @__PURE__ */ __name2((key) => options.skipNull && isNullOrUndefined(object2[key]) || options.skipEmptyString && object2[key] === "", "shouldFilter");
|
|
30304
|
-
const formatter = encoderForArrayFormat(options);
|
|
30305
|
-
const objectCopy = {};
|
|
30306
|
-
for (const [key, value] of Object.entries(object2)) {
|
|
30307
|
-
if (!shouldFilter(key)) {
|
|
30308
|
-
objectCopy[key] = value;
|
|
30309
|
-
}
|
|
30310
|
-
}
|
|
30311
|
-
const keys = Object.keys(objectCopy);
|
|
30312
|
-
if (options.sort !== false) {
|
|
30313
|
-
keys.sort(options.sort);
|
|
30314
|
-
}
|
|
30315
|
-
return keys.map((key) => {
|
|
30316
|
-
let value = object2[key];
|
|
30317
|
-
if (options.replacer) {
|
|
30318
|
-
value = options.replacer(key, value);
|
|
30319
|
-
if (value === void 0) {
|
|
30320
|
-
return "";
|
|
30321
|
-
}
|
|
30322
|
-
}
|
|
30323
|
-
if (value === void 0) {
|
|
30324
|
-
return "";
|
|
30325
|
-
}
|
|
30326
|
-
if (value === null) {
|
|
30327
|
-
return encode3(key, options);
|
|
30328
|
-
}
|
|
30329
|
-
if (Array.isArray(value)) {
|
|
30330
|
-
if (value.length === 0 && options.arrayFormat === "bracket-separator") {
|
|
30331
|
-
return encode3(key, options) + "[]";
|
|
30332
|
-
}
|
|
30333
|
-
let processedArray = value;
|
|
30334
|
-
if (options.replacer) {
|
|
30335
|
-
processedArray = value.map(
|
|
30336
|
-
(item, index) => options.replacer(`${key}[${index}]`, item)
|
|
30337
|
-
).filter((item) => item !== void 0);
|
|
30338
|
-
}
|
|
30339
|
-
return processedArray.reduce(formatter(key), []).join("&");
|
|
30340
|
-
}
|
|
30341
|
-
return encode3(key, options) + "=" + encode3(value, options);
|
|
30342
|
-
}).filter((x) => x.length > 0).join("&");
|
|
30343
|
-
}
|
|
30344
|
-
__name(stringify, "stringify");
|
|
30345
|
-
__name2(stringify, "stringify");
|
|
30346
|
-
function parseUrl(url2, options) {
|
|
30347
|
-
options = {
|
|
30348
|
-
decode: true,
|
|
30349
|
-
...options
|
|
30350
|
-
};
|
|
30351
|
-
let [url_, hash2] = (0, import_split_on_first.default)(url2, "#");
|
|
30352
|
-
if (url_ === void 0) {
|
|
30353
|
-
url_ = url2;
|
|
30354
|
-
}
|
|
29992
|
+
var parseUrl = /* @__PURE__ */ __name2((input) => {
|
|
29993
|
+
const hashIndex = input.indexOf("#");
|
|
29994
|
+
const fragmentIdentifier = hashIndex === -1 ? void 0 : input.slice(hashIndex + 1);
|
|
29995
|
+
const withoutFragment = hashIndex === -1 ? input : input.slice(0, hashIndex);
|
|
29996
|
+
const queryIndex = withoutFragment.indexOf("?");
|
|
29997
|
+
const url2 = queryIndex === -1 ? withoutFragment : withoutFragment.slice(0, queryIndex);
|
|
29998
|
+
const search = queryIndex === -1 ? "" : withoutFragment.slice(queryIndex + 1);
|
|
29999
|
+
const query = {};
|
|
30000
|
+
for (const [key, value] of new URLSearchParams(search))
|
|
30001
|
+
query[key] = value;
|
|
30355
30002
|
return {
|
|
30356
|
-
url: url_?.split("?")?.[0] ?? "",
|
|
30357
|
-
query: parse3(extract(url2), options),
|
|
30358
|
-
...options && options.parseFragmentIdentifier && hash2 ? { fragmentIdentifier: decode3(hash2, options) } : {}
|
|
30359
|
-
};
|
|
30360
|
-
}
|
|
30361
|
-
__name(parseUrl, "parseUrl");
|
|
30362
|
-
__name2(parseUrl, "parseUrl");
|
|
30363
|
-
function stringifyUrl(object2, options) {
|
|
30364
|
-
options = {
|
|
30365
|
-
encode: true,
|
|
30366
|
-
strict: true,
|
|
30367
|
-
[encodeFragmentIdentifier]: true,
|
|
30368
|
-
...options
|
|
30369
|
-
};
|
|
30370
|
-
const url2 = removeHash(object2.url).split("?")[0] || "";
|
|
30371
|
-
const queryFromUrl = extract(object2.url);
|
|
30372
|
-
const query = {
|
|
30373
|
-
...parse3(queryFromUrl, { sort: false, ...options }),
|
|
30374
|
-
...object2.query
|
|
30375
|
-
};
|
|
30376
|
-
let queryString = stringify(query, options);
|
|
30377
|
-
queryString && (queryString = `?${queryString}`);
|
|
30378
|
-
let hash2 = getHash(object2.url);
|
|
30379
|
-
if (typeof object2.fragmentIdentifier === "string") {
|
|
30380
|
-
const urlObjectForFragmentEncode = new URL(url2);
|
|
30381
|
-
urlObjectForFragmentEncode.hash = object2.fragmentIdentifier;
|
|
30382
|
-
hash2 = options[encodeFragmentIdentifier] ? urlObjectForFragmentEncode.hash : `#${object2.fragmentIdentifier}`;
|
|
30383
|
-
}
|
|
30384
|
-
return `${url2}${queryString}${hash2}`;
|
|
30385
|
-
}
|
|
30386
|
-
__name(stringifyUrl, "stringifyUrl");
|
|
30387
|
-
__name2(stringifyUrl, "stringifyUrl");
|
|
30388
|
-
function pick2(input, filter, options) {
|
|
30389
|
-
options = {
|
|
30390
|
-
parseFragmentIdentifier: true,
|
|
30391
|
-
[encodeFragmentIdentifier]: false,
|
|
30392
|
-
...options
|
|
30393
|
-
};
|
|
30394
|
-
const { url: url2, query, fragmentIdentifier } = parseUrl(input, options);
|
|
30395
|
-
return stringifyUrl({
|
|
30396
30003
|
url: url2,
|
|
30397
|
-
query
|
|
30398
|
-
fragmentIdentifier
|
|
30399
|
-
}
|
|
30400
|
-
}
|
|
30401
|
-
|
|
30402
|
-
|
|
30403
|
-
|
|
30404
|
-
|
|
30405
|
-
|
|
30406
|
-
|
|
30407
|
-
|
|
30408
|
-
|
|
30409
|
-
|
|
30004
|
+
query,
|
|
30005
|
+
...fragmentIdentifier !== void 0 ? { fragmentIdentifier } : {}
|
|
30006
|
+
};
|
|
30007
|
+
}, "parseUrl");
|
|
30008
|
+
var stringifyUrl = /* @__PURE__ */ __name2((parsed) => {
|
|
30009
|
+
const params = new URLSearchParams();
|
|
30010
|
+
for (const [key, value] of Object.entries(parsed.query)) {
|
|
30011
|
+
if (value === void 0 || value === null)
|
|
30012
|
+
continue;
|
|
30013
|
+
params.append(key, String(value));
|
|
30014
|
+
}
|
|
30015
|
+
const search = params.toString().replace(/\+/g, "%20");
|
|
30016
|
+
const fragment = parsed.fragmentIdentifier ? `#${parsed.fragmentIdentifier}` : "";
|
|
30017
|
+
return `${parsed.url}${search ? `?${search}` : ""}${fragment}`;
|
|
30018
|
+
}, "stringifyUrl");
|
|
30410
30019
|
var fixSrcSetString2 = /* @__PURE__ */ __name2((srcSetString, _mimetype, _webp = false) => {
|
|
30411
30020
|
const urls = getUrlsFromSrcSet(srcSetString);
|
|
30412
30021
|
return urls.map(([url2, width]) => `${fixUrl2(url2)} ${width}`).join(", ");
|
|
@@ -30414,19 +30023,19 @@ var fixSrcSetString2 = /* @__PURE__ */ __name2((srcSetString, _mimetype, _webp =
|
|
|
30414
30023
|
var fixUrl2 = /* @__PURE__ */ __name2((url2, _mimetype, _webp = false) => {
|
|
30415
30024
|
if (url2.split(" ").length > 1)
|
|
30416
30025
|
return fixSrcSetString2(url2);
|
|
30417
|
-
const parsedUrl =
|
|
30026
|
+
const parsedUrl = parseUrl(url2);
|
|
30418
30027
|
parsedUrl.query.auto = "format";
|
|
30419
|
-
return
|
|
30028
|
+
return stringifyUrl(parsedUrl);
|
|
30420
30029
|
}, "fixUrl");
|
|
30421
30030
|
var resizeUrl2 = /* @__PURE__ */ __name2((url2, size) => {
|
|
30422
|
-
const parsedUrl =
|
|
30031
|
+
const parsedUrl = parseUrl(url2);
|
|
30423
30032
|
parsedUrl.query.w = size.toString();
|
|
30424
|
-
return
|
|
30033
|
+
return stringifyUrl(parsedUrl);
|
|
30425
30034
|
}, "resizeUrl");
|
|
30426
30035
|
var changeQuality2 = /* @__PURE__ */ __name2((url2, quality) => {
|
|
30427
|
-
const parsedUrl =
|
|
30036
|
+
const parsedUrl = parseUrl(url2);
|
|
30428
30037
|
parsedUrl.query.q = quality.toString();
|
|
30429
|
-
return
|
|
30038
|
+
return stringifyUrl(parsedUrl);
|
|
30430
30039
|
}, "changeQuality");
|
|
30431
30040
|
var resizeAndChangeQuality2 = /* @__PURE__ */ __name2((url2, size, quality, { fix = false } = {}) => {
|
|
30432
30041
|
const updatedUrl = changeQuality2(resizeUrl2(url2, size), quality);
|
|
@@ -30470,9 +30079,9 @@ var fixUrl3 = /* @__PURE__ */ __name2((url2, _mimetype, _webp = false) => {
|
|
|
30470
30079
|
}, "fixUrl");
|
|
30471
30080
|
var VALID_DISCORD_SIZES = [20, 32, 40, 60, 64, 80, 100, 128, 256, 512, 1024, 2048, 4096];
|
|
30472
30081
|
var resizeUrl3 = /* @__PURE__ */ __name2((url2, size) => {
|
|
30473
|
-
const parsedUrl =
|
|
30082
|
+
const parsedUrl = parseUrl(url2);
|
|
30474
30083
|
parsedUrl.query.size = quantizeValue(size, VALID_DISCORD_SIZES).toString();
|
|
30475
|
-
return
|
|
30084
|
+
return stringifyUrl(parsedUrl);
|
|
30476
30085
|
}, "resizeUrl");
|
|
30477
30086
|
var changeQuality3 = /* @__PURE__ */ __name2((url2, _quality) => {
|
|
30478
30087
|
return url2;
|
|
@@ -30583,6 +30192,7 @@ var ImageWithLoadingStateValdator = external_exports.object({
|
|
|
30583
30192
|
image: external_exports.string(),
|
|
30584
30193
|
loading: external_exports.union([ImageResizingValidator, ImageUploadingValidator]).optional()
|
|
30585
30194
|
});
|
|
30195
|
+
var import_types3 = __toESM(require_dist());
|
|
30586
30196
|
var unwrapBoostCredential = /* @__PURE__ */ __name2((vc) => {
|
|
30587
30197
|
if (vc?.type?.includes("CertifiedBoostCredential") && vc?.boostCredential) {
|
|
30588
30198
|
return vc.boostCredential;
|
|
@@ -31037,6 +30647,10 @@ var CredentialFormatValidator = external_exports.enum([
|
|
|
31037
30647
|
"vc+sd-jwt",
|
|
31038
30648
|
"mso_mdoc"
|
|
31039
30649
|
]);
|
|
30650
|
+
var StoredCredentialEnvelopeValidator = external_exports.object({
|
|
30651
|
+
format: CredentialFormatValidator,
|
|
30652
|
+
data: external_exports.string()
|
|
30653
|
+
}).passthrough();
|
|
31040
30654
|
var StatusCheckEntryValidator = external_exports.object({
|
|
31041
30655
|
entryType: external_exports.string(),
|
|
31042
30656
|
statusPurpose: external_exports.string(),
|
|
@@ -31342,7 +30956,8 @@ var BoostRecipientValidator = external_exports.object({
|
|
|
31342
30956
|
to: LCNVisibleProfileValidator,
|
|
31343
30957
|
from: external_exports.string(),
|
|
31344
30958
|
received: external_exports.string().optional(),
|
|
31345
|
-
uri: external_exports.string().optional()
|
|
30959
|
+
uri: external_exports.string().optional(),
|
|
30960
|
+
status: external_exports.enum(["active", "revoked", "suspended"]).optional()
|
|
31346
30961
|
});
|
|
31347
30962
|
var PaginatedBoostRecipientsValidator = PaginationResponseValidator.extend({
|
|
31348
30963
|
records: BoostRecipientValidator.array()
|
|
@@ -31352,7 +30967,8 @@ var BoostRecipientWithChildrenValidator = external_exports.object({
|
|
|
31352
30967
|
from: external_exports.string(),
|
|
31353
30968
|
received: external_exports.string().optional(),
|
|
31354
30969
|
boostUris: external_exports.array(external_exports.string()),
|
|
31355
|
-
credentialUris: external_exports.array(external_exports.string()).optional()
|
|
30970
|
+
credentialUris: external_exports.array(external_exports.string()).optional(),
|
|
30971
|
+
status: external_exports.enum(["active", "revoked", "suspended"]).optional()
|
|
31356
30972
|
});
|
|
31357
30973
|
var PaginatedBoostRecipientsWithChildrenValidator = PaginationResponseValidator.extend({
|
|
31358
30974
|
records: BoostRecipientWithChildrenValidator.array()
|
|
@@ -32423,7 +32039,8 @@ var CredentialActivityValidator = external_exports.object({
|
|
|
32423
32039
|
inboxCredentialId: external_exports.string().optional(),
|
|
32424
32040
|
integrationId: external_exports.string().optional(),
|
|
32425
32041
|
source: CredentialActivitySourceTypeValidator,
|
|
32426
|
-
metadata: external_exports.record(external_exports.string(), external_exports.unknown()).optional()
|
|
32042
|
+
metadata: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
|
|
32043
|
+
status: external_exports.enum(["active", "revoked", "suspended"]).optional()
|
|
32427
32044
|
});
|
|
32428
32045
|
var CredentialActivityWithDetailsValidator = CredentialActivityValidator.extend({
|
|
32429
32046
|
boost: external_exports.object({
|