ns-auth-sdk 1.14.0 → 1.14.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.
Files changed (153) hide show
  1. package/dist/{cjs-CSUAVztq.cjs → browser-index.cjs} +5476 -296
  2. package/dist/browser-index.cjs.map +1 -0
  3. package/dist/browser-index.d.cts +1998 -0
  4. package/dist/browser-index.d.cts.map +1 -0
  5. package/dist/browser-index.d.mts +1998 -0
  6. package/dist/browser-index.d.mts.map +1 -0
  7. package/dist/{cjs-sm5h7qxv.mjs → browser-index.mjs} +5169 -69
  8. package/dist/browser-index.mjs.map +1 -0
  9. package/dist/{group-coordination-BlFpBVpn.mjs → group-coordination-BV6PKlKp.mjs} +1 -1
  10. package/dist/{group-coordination-BlFpBVpn.mjs.map → group-coordination-BV6PKlKp.mjs.map} +1 -1
  11. package/dist/{group-coordination-ImuoJEoy.mjs → group-coordination-BytkmY9j.mjs} +1 -1
  12. package/dist/{group-coordination-LGIyipaX.cjs → group-coordination-DL39hJ3R.cjs} +1 -1
  13. package/dist/{group-coordination-LGIyipaX.cjs.map → group-coordination-DL39hJ3R.cjs.map} +1 -1
  14. package/dist/{group-coordination-Cf18OjZt.cjs → group-coordination-DLban6a7.cjs} +1 -1
  15. package/dist/index.cjs +8899 -41
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.cts.map +1 -1
  18. package/dist/index.mjs +9072 -213
  19. package/dist/index.mjs.map +1 -1
  20. package/dist/{prf-handler-D3EqUNWe.cjs → prf-handler-BNd7gmXJ.cjs} +1 -1
  21. package/dist/{prf-handler-D3EqUNWe.cjs.map → prf-handler-BNd7gmXJ.cjs.map} +1 -1
  22. package/dist/prf-handler-CRMgzJG2.cjs +3 -0
  23. package/dist/{prf-handler-Dly_WZGn.mjs → prf-handler-DG99ZkS2.mjs} +1 -1
  24. package/dist/{prf-handler-Db8CsoIP.mjs → prf-handler-Dj2WTO9i.mjs} +1 -1
  25. package/dist/{prf-handler-Db8CsoIP.mjs.map → prf-handler-Dj2WTO9i.mjs.map} +1 -1
  26. package/dist/zkm.service-Bv88tVS5.mjs +3 -0
  27. package/dist/zkm.service-D2BZ_aqA.cjs +3 -0
  28. package/dist/{zkm.service-DfSPbuOl.cjs → zkm.service-DX06sSfB.cjs} +1 -1
  29. package/dist/{zkm.service-DfSPbuOl.cjs.map → zkm.service-DX06sSfB.cjs.map} +1 -1
  30. package/dist/{zkm.service-B24N_0FB.mjs → zkm.service-j0HlN7Oq.mjs} +1 -1
  31. package/dist/{zkm.service-B24N_0FB.mjs.map → zkm.service-j0HlN7Oq.mjs.map} +1 -1
  32. package/package.json +19 -6
  33. package/dist/_esm-C7FRLTj2.cjs +0 -9030
  34. package/dist/_esm-C7FRLTj2.cjs.map +0 -1
  35. package/dist/_esm-D_oMW5T5.mjs +0 -9028
  36. package/dist/_esm-D_oMW5T5.mjs.map +0 -1
  37. package/dist/base64-js-B8y7dH5k.mjs +0 -93
  38. package/dist/base64-js-B8y7dH5k.mjs.map +0 -1
  39. package/dist/base64-js-Tm-kCeud.cjs +0 -98
  40. package/dist/base64-js-Tm-kCeud.cjs.map +0 -1
  41. package/dist/ccip-157tdxqP.cjs +0 -7947
  42. package/dist/ccip-157tdxqP.cjs.map +0 -1
  43. package/dist/ccip-BEMMdVyd.cjs +0 -4
  44. package/dist/ccip-BSmCdJ3K.mjs +0 -3
  45. package/dist/ccip-okqXkslP.mjs +0 -6567
  46. package/dist/ccip-okqXkslP.mjs.map +0 -1
  47. package/dist/chains-CTeD2UcS.mjs +0 -33
  48. package/dist/chains-CTeD2UcS.mjs.map +0 -1
  49. package/dist/chains-Du-lv_5i.cjs +0 -33
  50. package/dist/chains-Du-lv_5i.cjs.map +0 -1
  51. package/dist/chunk-Bnu9O96Y.cjs +0 -60
  52. package/dist/chunk-CVYhg9ik.mjs +0 -45
  53. package/dist/cjs-CSUAVztq.cjs.map +0 -1
  54. package/dist/cjs-sm5h7qxv.mjs.map +0 -1
  55. package/dist/defineChain-7QG67hYU.cjs +0 -30
  56. package/dist/defineChain-7QG67hYU.cjs.map +0 -1
  57. package/dist/defineChain-DBem8ZQY.mjs +0 -24
  58. package/dist/defineChain-DBem8ZQY.mjs.map +0 -1
  59. package/dist/dist-BPmSxkxc.cjs +0 -10676
  60. package/dist/dist-BPmSxkxc.cjs.map +0 -1
  61. package/dist/dist-BSjH4t6s.cjs +0 -12932
  62. package/dist/dist-BSjH4t6s.cjs.map +0 -1
  63. package/dist/dist-C-KjTK4Q.cjs +0 -447
  64. package/dist/dist-C-KjTK4Q.cjs.map +0 -1
  65. package/dist/dist-C2h97xM-.mjs +0 -355
  66. package/dist/dist-C2h97xM-.mjs.map +0 -1
  67. package/dist/dist-CT7grDWb.mjs +0 -12920
  68. package/dist/dist-CT7grDWb.mjs.map +0 -1
  69. package/dist/dist-D7fRmK6G.mjs +0 -10632
  70. package/dist/dist-D7fRmK6G.mjs.map +0 -1
  71. package/dist/dist-DlmcyFmM.mjs +0 -16951
  72. package/dist/dist-DlmcyFmM.mjs.map +0 -1
  73. package/dist/dist-O0uZr5OF.cjs +0 -17122
  74. package/dist/dist-O0uZr5OF.cjs.map +0 -1
  75. package/dist/echo-BB-JgAYZ.cjs +0 -339
  76. package/dist/echo-BB-JgAYZ.cjs.map +0 -1
  77. package/dist/echo-Bwy4_Cvh.mjs +0 -316
  78. package/dist/echo-Bwy4_Cvh.mjs.map +0 -1
  79. package/dist/echo-D6X2IuNW.cjs +0 -9
  80. package/dist/echo-DvfG_heb.mjs +0 -8
  81. package/dist/esm-BcHKCX5i.mjs +0 -569
  82. package/dist/esm-BcHKCX5i.mjs.map +0 -1
  83. package/dist/esm-Bh_YwFIz.cjs +0 -599
  84. package/dist/esm-Bh_YwFIz.cjs.map +0 -1
  85. package/dist/esm-C0XO9TQm.cjs +0 -30449
  86. package/dist/esm-C0XO9TQm.cjs.map +0 -1
  87. package/dist/esm-vMUVj9k4.mjs +0 -30440
  88. package/dist/esm-vMUVj9k4.mjs.map +0 -1
  89. package/dist/keyset-CKMQXvsb.mjs +0 -172
  90. package/dist/keyset-CKMQXvsb.mjs.map +0 -1
  91. package/dist/keyset-Cxdgu110.cjs +0 -237
  92. package/dist/keyset-Cxdgu110.cjs.map +0 -1
  93. package/dist/keyset-DLxpGhdu.cjs +0 -6
  94. package/dist/keyset-IKjlhvqF.mjs +0 -4
  95. package/dist/node-3EUJ4ga9.cjs +0 -9
  96. package/dist/node-C2UpE11T.cjs +0 -444
  97. package/dist/node-C2UpE11T.cjs.map +0 -1
  98. package/dist/node-CHdpTQdN.mjs +0 -8679
  99. package/dist/node-CHdpTQdN.mjs.map +0 -1
  100. package/dist/node-DQt1CVGl.mjs +0 -6
  101. package/dist/node-Dy8ww1LG.cjs +0 -8680
  102. package/dist/node-Dy8ww1LG.cjs.map +0 -1
  103. package/dist/node-IX55IH6z.mjs +0 -397
  104. package/dist/node-IX55IH6z.mjs.map +0 -1
  105. package/dist/nostr-BTOpBN_5.cjs +0 -11
  106. package/dist/nostr-D4E52XRU.mjs +0 -224
  107. package/dist/nostr-D4E52XRU.mjs.map +0 -1
  108. package/dist/nostr-Hv2tsnuI.cjs +0 -272
  109. package/dist/nostr-Hv2tsnuI.cjs.map +0 -1
  110. package/dist/nostr-ZwJe_DlZ.mjs +0 -4
  111. package/dist/pako.esm-DTVnlCJh.cjs +0 -3856
  112. package/dist/pako.esm-DTVnlCJh.cjs.map +0 -1
  113. package/dist/pako.esm-ORhkEHM2.mjs +0 -3838
  114. package/dist/pako.esm-ORhkEHM2.mjs.map +0 -1
  115. package/dist/peer-B9g3OQ5D.cjs +0 -18
  116. package/dist/peer-CptDj7zu.mjs +0 -745
  117. package/dist/peer-CptDj7zu.mjs.map +0 -1
  118. package/dist/peer-CtqL0yiE.mjs +0 -9
  119. package/dist/peer-XrPL0O6z.cjs +0 -822
  120. package/dist/peer-XrPL0O6z.cjs.map +0 -1
  121. package/dist/ping-BXKREIdI.mjs +0 -7
  122. package/dist/ping-BtVhKocl.cjs +0 -379
  123. package/dist/ping-BtVhKocl.cjs.map +0 -1
  124. package/dist/ping-D5fpMhGC.cjs +0 -11
  125. package/dist/ping-DOD50kW_.mjs +0 -332
  126. package/dist/ping-DOD50kW_.mjs.map +0 -1
  127. package/dist/policy-8HcjulLD.cjs +0 -293
  128. package/dist/policy-8HcjulLD.cjs.map +0 -1
  129. package/dist/policy-BA6MEOBY.mjs +0 -5
  130. package/dist/policy-BFNdXvmM.cjs +0 -11
  131. package/dist/policy-D_nFHHjo.mjs +0 -228
  132. package/dist/policy-D_nFHHjo.mjs.map +0 -1
  133. package/dist/prf-handler-BNiyCQMt.cjs +0 -3
  134. package/dist/src-CVfTUJQl.mjs +0 -822
  135. package/dist/src-CVfTUJQl.mjs.map +0 -1
  136. package/dist/src-D5S86Xpf.cjs +0 -827
  137. package/dist/src-D5S86Xpf.cjs.map +0 -1
  138. package/dist/types-B-TLIS13.cjs +0 -212
  139. package/dist/types-B-TLIS13.cjs.map +0 -1
  140. package/dist/types-CTm_FHYD.mjs +0 -111
  141. package/dist/types-CTm_FHYD.mjs.map +0 -1
  142. package/dist/validation-1xwWVXqE.mjs +0 -3
  143. package/dist/validation-DnpurN79.cjs +0 -405
  144. package/dist/validation-DnpurN79.cjs.map +0 -1
  145. package/dist/validation-IsAUvsvy.mjs +0 -334
  146. package/dist/validation-IsAUvsvy.mjs.map +0 -1
  147. package/dist/validation-yCvZCqIs.cjs +0 -6
  148. package/dist/wrapper-C5NpyacC.cjs +0 -3552
  149. package/dist/wrapper-C5NpyacC.cjs.map +0 -1
  150. package/dist/wrapper-CHq_CV4J.mjs +0 -3552
  151. package/dist/wrapper-CHq_CV4J.mjs.map +0 -1
  152. package/dist/zkm.service-BrXyI4BS.mjs +0 -3
  153. package/dist/zkm.service-BvQ01wSH.cjs +0 -3
@@ -1,822 +0,0 @@
1
- import { r as __require, t as __commonJSMin } from "./chunk-CVYhg9ik.mjs";
2
-
3
- //#region node_modules/ms/index.js
4
- var require_ms = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5
- /**
6
- * Helpers.
7
- */
8
- var s = 1e3;
9
- var m = s * 60;
10
- var h = m * 60;
11
- var d = h * 24;
12
- var w = d * 7;
13
- var y = d * 365.25;
14
- /**
15
- * Parse or format the given `val`.
16
- *
17
- * Options:
18
- *
19
- * - `long` verbose formatting [false]
20
- *
21
- * @param {String|Number} val
22
- * @param {Object} [options]
23
- * @throws {Error} throw an error if val is not a non-empty string or a number
24
- * @return {String|Number}
25
- * @api public
26
- */
27
- module.exports = function(val, options) {
28
- options = options || {};
29
- var type = typeof val;
30
- if (type === "string" && val.length > 0) return parse(val);
31
- else if (type === "number" && isFinite(val)) return options.long ? fmtLong(val) : fmtShort(val);
32
- throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(val));
33
- };
34
- /**
35
- * Parse the given `str` and return milliseconds.
36
- *
37
- * @param {String} str
38
- * @return {Number}
39
- * @api private
40
- */
41
- function parse(str) {
42
- str = String(str);
43
- if (str.length > 100) return;
44
- var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(str);
45
- if (!match) return;
46
- var n = parseFloat(match[1]);
47
- switch ((match[2] || "ms").toLowerCase()) {
48
- case "years":
49
- case "year":
50
- case "yrs":
51
- case "yr":
52
- case "y": return n * y;
53
- case "weeks":
54
- case "week":
55
- case "w": return n * w;
56
- case "days":
57
- case "day":
58
- case "d": return n * d;
59
- case "hours":
60
- case "hour":
61
- case "hrs":
62
- case "hr":
63
- case "h": return n * h;
64
- case "minutes":
65
- case "minute":
66
- case "mins":
67
- case "min":
68
- case "m": return n * m;
69
- case "seconds":
70
- case "second":
71
- case "secs":
72
- case "sec":
73
- case "s": return n * s;
74
- case "milliseconds":
75
- case "millisecond":
76
- case "msecs":
77
- case "msec":
78
- case "ms": return n;
79
- default: return;
80
- }
81
- }
82
- /**
83
- * Short format for `ms`.
84
- *
85
- * @param {Number} ms
86
- * @return {String}
87
- * @api private
88
- */
89
- function fmtShort(ms) {
90
- var msAbs = Math.abs(ms);
91
- if (msAbs >= d) return Math.round(ms / d) + "d";
92
- if (msAbs >= h) return Math.round(ms / h) + "h";
93
- if (msAbs >= m) return Math.round(ms / m) + "m";
94
- if (msAbs >= s) return Math.round(ms / s) + "s";
95
- return ms + "ms";
96
- }
97
- /**
98
- * Long format for `ms`.
99
- *
100
- * @param {Number} ms
101
- * @return {String}
102
- * @api private
103
- */
104
- function fmtLong(ms) {
105
- var msAbs = Math.abs(ms);
106
- if (msAbs >= d) return plural(ms, msAbs, d, "day");
107
- if (msAbs >= h) return plural(ms, msAbs, h, "hour");
108
- if (msAbs >= m) return plural(ms, msAbs, m, "minute");
109
- if (msAbs >= s) return plural(ms, msAbs, s, "second");
110
- return ms + " ms";
111
- }
112
- /**
113
- * Pluralization helper.
114
- */
115
- function plural(ms, msAbs, n, name) {
116
- var isPlural = msAbs >= n * 1.5;
117
- return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
118
- }
119
- }));
120
-
121
- //#endregion
122
- //#region node_modules/debug/src/common.js
123
- var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
124
- /**
125
- * This is the common logic for both the Node.js and web browser
126
- * implementations of `debug()`.
127
- */
128
- function setup(env) {
129
- createDebug.debug = createDebug;
130
- createDebug.default = createDebug;
131
- createDebug.coerce = coerce;
132
- createDebug.disable = disable;
133
- createDebug.enable = enable;
134
- createDebug.enabled = enabled;
135
- createDebug.humanize = require_ms();
136
- createDebug.destroy = destroy;
137
- Object.keys(env).forEach((key) => {
138
- createDebug[key] = env[key];
139
- });
140
- /**
141
- * The currently active debug mode names, and names to skip.
142
- */
143
- createDebug.names = [];
144
- createDebug.skips = [];
145
- /**
146
- * Map of special "%n" handling functions, for the debug "format" argument.
147
- *
148
- * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
149
- */
150
- createDebug.formatters = {};
151
- /**
152
- * Selects a color for a debug namespace
153
- * @param {String} namespace The namespace string for the debug instance to be colored
154
- * @return {Number|String} An ANSI color code for the given namespace
155
- * @api private
156
- */
157
- function selectColor(namespace) {
158
- let hash = 0;
159
- for (let i = 0; i < namespace.length; i++) {
160
- hash = (hash << 5) - hash + namespace.charCodeAt(i);
161
- hash |= 0;
162
- }
163
- return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
164
- }
165
- createDebug.selectColor = selectColor;
166
- /**
167
- * Create a debugger with the given `namespace`.
168
- *
169
- * @param {String} namespace
170
- * @return {Function}
171
- * @api public
172
- */
173
- function createDebug(namespace) {
174
- let prevTime;
175
- let enableOverride = null;
176
- let namespacesCache;
177
- let enabledCache;
178
- function debug(...args) {
179
- if (!debug.enabled) return;
180
- const self = debug;
181
- const curr = Number(/* @__PURE__ */ new Date());
182
- self.diff = curr - (prevTime || curr);
183
- self.prev = prevTime;
184
- self.curr = curr;
185
- prevTime = curr;
186
- args[0] = createDebug.coerce(args[0]);
187
- if (typeof args[0] !== "string") args.unshift("%O");
188
- let index = 0;
189
- args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
190
- if (match === "%%") return "%";
191
- index++;
192
- const formatter = createDebug.formatters[format];
193
- if (typeof formatter === "function") {
194
- const val = args[index];
195
- match = formatter.call(self, val);
196
- args.splice(index, 1);
197
- index--;
198
- }
199
- return match;
200
- });
201
- createDebug.formatArgs.call(self, args);
202
- (self.log || createDebug.log).apply(self, args);
203
- }
204
- debug.namespace = namespace;
205
- debug.useColors = createDebug.useColors();
206
- debug.color = createDebug.selectColor(namespace);
207
- debug.extend = extend;
208
- debug.destroy = createDebug.destroy;
209
- Object.defineProperty(debug, "enabled", {
210
- enumerable: true,
211
- configurable: false,
212
- get: () => {
213
- if (enableOverride !== null) return enableOverride;
214
- if (namespacesCache !== createDebug.namespaces) {
215
- namespacesCache = createDebug.namespaces;
216
- enabledCache = createDebug.enabled(namespace);
217
- }
218
- return enabledCache;
219
- },
220
- set: (v) => {
221
- enableOverride = v;
222
- }
223
- });
224
- if (typeof createDebug.init === "function") createDebug.init(debug);
225
- return debug;
226
- }
227
- function extend(namespace, delimiter) {
228
- const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
229
- newDebug.log = this.log;
230
- return newDebug;
231
- }
232
- /**
233
- * Enables a debug mode by namespaces. This can include modes
234
- * separated by a colon and wildcards.
235
- *
236
- * @param {String} namespaces
237
- * @api public
238
- */
239
- function enable(namespaces) {
240
- createDebug.save(namespaces);
241
- createDebug.namespaces = namespaces;
242
- createDebug.names = [];
243
- createDebug.skips = [];
244
- const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
245
- for (const ns of split) if (ns[0] === "-") createDebug.skips.push(ns.slice(1));
246
- else createDebug.names.push(ns);
247
- }
248
- /**
249
- * Checks if the given string matches a namespace template, honoring
250
- * asterisks as wildcards.
251
- *
252
- * @param {String} search
253
- * @param {String} template
254
- * @return {Boolean}
255
- */
256
- function matchesTemplate(search, template) {
257
- let searchIndex = 0;
258
- let templateIndex = 0;
259
- let starIndex = -1;
260
- let matchIndex = 0;
261
- while (searchIndex < search.length) if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) if (template[templateIndex] === "*") {
262
- starIndex = templateIndex;
263
- matchIndex = searchIndex;
264
- templateIndex++;
265
- } else {
266
- searchIndex++;
267
- templateIndex++;
268
- }
269
- else if (starIndex !== -1) {
270
- templateIndex = starIndex + 1;
271
- matchIndex++;
272
- searchIndex = matchIndex;
273
- } else return false;
274
- while (templateIndex < template.length && template[templateIndex] === "*") templateIndex++;
275
- return templateIndex === template.length;
276
- }
277
- /**
278
- * Disable debug output.
279
- *
280
- * @return {String} namespaces
281
- * @api public
282
- */
283
- function disable() {
284
- const namespaces = [...createDebug.names, ...createDebug.skips.map((namespace) => "-" + namespace)].join(",");
285
- createDebug.enable("");
286
- return namespaces;
287
- }
288
- /**
289
- * Returns true if the given mode name is enabled, false otherwise.
290
- *
291
- * @param {String} name
292
- * @return {Boolean}
293
- * @api public
294
- */
295
- function enabled(name) {
296
- for (const skip of createDebug.skips) if (matchesTemplate(name, skip)) return false;
297
- for (const ns of createDebug.names) if (matchesTemplate(name, ns)) return true;
298
- return false;
299
- }
300
- /**
301
- * Coerce `val`.
302
- *
303
- * @param {Mixed} val
304
- * @return {Mixed}
305
- * @api private
306
- */
307
- function coerce(val) {
308
- if (val instanceof Error) return val.stack || val.message;
309
- return val;
310
- }
311
- /**
312
- * XXX DO NOT USE. This is a temporary stub function.
313
- * XXX It WILL be removed in the next major release.
314
- */
315
- function destroy() {
316
- console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
317
- }
318
- createDebug.enable(createDebug.load());
319
- return createDebug;
320
- }
321
- module.exports = setup;
322
- }));
323
-
324
- //#endregion
325
- //#region node_modules/debug/src/browser.js
326
- var require_browser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
327
- /**
328
- * This is the web browser implementation of `debug()`.
329
- */
330
- exports.formatArgs = formatArgs;
331
- exports.save = save;
332
- exports.load = load;
333
- exports.useColors = useColors;
334
- exports.storage = localstorage();
335
- exports.destroy = (() => {
336
- let warned = false;
337
- return () => {
338
- if (!warned) {
339
- warned = true;
340
- console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
341
- }
342
- };
343
- })();
344
- /**
345
- * Colors.
346
- */
347
- exports.colors = [
348
- "#0000CC",
349
- "#0000FF",
350
- "#0033CC",
351
- "#0033FF",
352
- "#0066CC",
353
- "#0066FF",
354
- "#0099CC",
355
- "#0099FF",
356
- "#00CC00",
357
- "#00CC33",
358
- "#00CC66",
359
- "#00CC99",
360
- "#00CCCC",
361
- "#00CCFF",
362
- "#3300CC",
363
- "#3300FF",
364
- "#3333CC",
365
- "#3333FF",
366
- "#3366CC",
367
- "#3366FF",
368
- "#3399CC",
369
- "#3399FF",
370
- "#33CC00",
371
- "#33CC33",
372
- "#33CC66",
373
- "#33CC99",
374
- "#33CCCC",
375
- "#33CCFF",
376
- "#6600CC",
377
- "#6600FF",
378
- "#6633CC",
379
- "#6633FF",
380
- "#66CC00",
381
- "#66CC33",
382
- "#9900CC",
383
- "#9900FF",
384
- "#9933CC",
385
- "#9933FF",
386
- "#99CC00",
387
- "#99CC33",
388
- "#CC0000",
389
- "#CC0033",
390
- "#CC0066",
391
- "#CC0099",
392
- "#CC00CC",
393
- "#CC00FF",
394
- "#CC3300",
395
- "#CC3333",
396
- "#CC3366",
397
- "#CC3399",
398
- "#CC33CC",
399
- "#CC33FF",
400
- "#CC6600",
401
- "#CC6633",
402
- "#CC9900",
403
- "#CC9933",
404
- "#CCCC00",
405
- "#CCCC33",
406
- "#FF0000",
407
- "#FF0033",
408
- "#FF0066",
409
- "#FF0099",
410
- "#FF00CC",
411
- "#FF00FF",
412
- "#FF3300",
413
- "#FF3333",
414
- "#FF3366",
415
- "#FF3399",
416
- "#FF33CC",
417
- "#FF33FF",
418
- "#FF6600",
419
- "#FF6633",
420
- "#FF9900",
421
- "#FF9933",
422
- "#FFCC00",
423
- "#FFCC33"
424
- ];
425
- /**
426
- * Currently only WebKit-based Web Inspectors, Firefox >= v31,
427
- * and the Firebug extension (any Firefox version) are known
428
- * to support "%c" CSS customizations.
429
- *
430
- * TODO: add a `localStorage` variable to explicitly enable/disable colors
431
- */
432
- function useColors() {
433
- if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) return true;
434
- if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) return false;
435
- let m;
436
- return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
437
- }
438
- /**
439
- * Colorize log arguments if enabled.
440
- *
441
- * @api public
442
- */
443
- function formatArgs(args) {
444
- args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff);
445
- if (!this.useColors) return;
446
- const c = "color: " + this.color;
447
- args.splice(1, 0, c, "color: inherit");
448
- let index = 0;
449
- let lastC = 0;
450
- args[0].replace(/%[a-zA-Z%]/g, (match) => {
451
- if (match === "%%") return;
452
- index++;
453
- if (match === "%c") lastC = index;
454
- });
455
- args.splice(lastC, 0, c);
456
- }
457
- /**
458
- * Invokes `console.debug()` when available.
459
- * No-op when `console.debug` is not a "function".
460
- * If `console.debug` is not available, falls back
461
- * to `console.log`.
462
- *
463
- * @api public
464
- */
465
- exports.log = console.debug || console.log || (() => {});
466
- /**
467
- * Save `namespaces`.
468
- *
469
- * @param {String} namespaces
470
- * @api private
471
- */
472
- function save(namespaces) {
473
- try {
474
- if (namespaces) exports.storage.setItem("debug", namespaces);
475
- else exports.storage.removeItem("debug");
476
- } catch (error) {}
477
- }
478
- /**
479
- * Load `namespaces`.
480
- *
481
- * @return {String} returns the previously persisted debug modes
482
- * @api private
483
- */
484
- function load() {
485
- let r;
486
- try {
487
- r = exports.storage.getItem("debug") || exports.storage.getItem("DEBUG");
488
- } catch (error) {}
489
- if (!r && typeof process !== "undefined" && "env" in process) r = process.env.DEBUG;
490
- return r;
491
- }
492
- /**
493
- * Localstorage attempts to return the localstorage.
494
- *
495
- * This is necessary because safari throws
496
- * when a user disables cookies/localstorage
497
- * and you attempt to access it.
498
- *
499
- * @return {LocalStorage}
500
- * @api private
501
- */
502
- function localstorage() {
503
- try {
504
- return localStorage;
505
- } catch (error) {}
506
- }
507
- module.exports = require_common()(exports);
508
- const { formatters } = module.exports;
509
- /**
510
- * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
511
- */
512
- formatters.j = function(v) {
513
- try {
514
- return JSON.stringify(v);
515
- } catch (error) {
516
- return "[UnexpectedJSONParseError]: " + error.message;
517
- }
518
- };
519
- }));
520
-
521
- //#endregion
522
- //#region node_modules/has-flag/index.js
523
- var require_has_flag = /* @__PURE__ */ __commonJSMin(((exports, module) => {
524
- module.exports = (flag, argv = process.argv) => {
525
- const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
526
- const position = argv.indexOf(prefix + flag);
527
- const terminatorPosition = argv.indexOf("--");
528
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
529
- };
530
- }));
531
-
532
- //#endregion
533
- //#region node_modules/supports-color/index.js
534
- var require_supports_color = /* @__PURE__ */ __commonJSMin(((exports, module) => {
535
- const os = __require("os");
536
- const tty$1 = __require("tty");
537
- const hasFlag = require_has_flag();
538
- const { env } = process;
539
- let forceColor;
540
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) forceColor = 0;
541
- else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) forceColor = 1;
542
- if ("FORCE_COLOR" in env) if (env.FORCE_COLOR === "true") forceColor = 1;
543
- else if (env.FORCE_COLOR === "false") forceColor = 0;
544
- else forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
545
- function translateLevel(level) {
546
- if (level === 0) return false;
547
- return {
548
- level,
549
- hasBasic: true,
550
- has256: level >= 2,
551
- has16m: level >= 3
552
- };
553
- }
554
- function supportsColor(haveStream, streamIsTTY) {
555
- if (forceColor === 0) return 0;
556
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
557
- if (hasFlag("color=256")) return 2;
558
- if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
559
- const min = forceColor || 0;
560
- if (env.TERM === "dumb") return min;
561
- if (process.platform === "win32") {
562
- const osRelease = os.release().split(".");
563
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
564
- return 1;
565
- }
566
- if ("CI" in env) {
567
- if ([
568
- "TRAVIS",
569
- "CIRCLECI",
570
- "APPVEYOR",
571
- "GITLAB_CI",
572
- "GITHUB_ACTIONS",
573
- "BUILDKITE"
574
- ].some((sign) => sign in env) || env.CI_NAME === "codeship") return 1;
575
- return min;
576
- }
577
- if ("TEAMCITY_VERSION" in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
578
- if (env.COLORTERM === "truecolor") return 3;
579
- if ("TERM_PROGRAM" in env) {
580
- const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
581
- switch (env.TERM_PROGRAM) {
582
- case "iTerm.app": return version >= 3 ? 3 : 2;
583
- case "Apple_Terminal": return 2;
584
- }
585
- }
586
- if (/-256(color)?$/i.test(env.TERM)) return 2;
587
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
588
- if ("COLORTERM" in env) return 1;
589
- return min;
590
- }
591
- function getSupportLevel(stream) {
592
- return translateLevel(supportsColor(stream, stream && stream.isTTY));
593
- }
594
- module.exports = {
595
- supportsColor: getSupportLevel,
596
- stdout: translateLevel(supportsColor(true, tty$1.isatty(1))),
597
- stderr: translateLevel(supportsColor(true, tty$1.isatty(2)))
598
- };
599
- }));
600
-
601
- //#endregion
602
- //#region node_modules/debug/src/node.js
603
- var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
604
- /**
605
- * Module dependencies.
606
- */
607
- const tty = __require("tty");
608
- const util = __require("util");
609
- /**
610
- * This is the Node.js implementation of `debug()`.
611
- */
612
- exports.init = init;
613
- exports.log = log;
614
- exports.formatArgs = formatArgs;
615
- exports.save = save;
616
- exports.load = load;
617
- exports.useColors = useColors;
618
- exports.destroy = util.deprecate(() => {}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
619
- /**
620
- * Colors.
621
- */
622
- exports.colors = [
623
- 6,
624
- 2,
625
- 3,
626
- 4,
627
- 5,
628
- 1
629
- ];
630
- try {
631
- const supportsColor = require_supports_color();
632
- if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) exports.colors = [
633
- 20,
634
- 21,
635
- 26,
636
- 27,
637
- 32,
638
- 33,
639
- 38,
640
- 39,
641
- 40,
642
- 41,
643
- 42,
644
- 43,
645
- 44,
646
- 45,
647
- 56,
648
- 57,
649
- 62,
650
- 63,
651
- 68,
652
- 69,
653
- 74,
654
- 75,
655
- 76,
656
- 77,
657
- 78,
658
- 79,
659
- 80,
660
- 81,
661
- 92,
662
- 93,
663
- 98,
664
- 99,
665
- 112,
666
- 113,
667
- 128,
668
- 129,
669
- 134,
670
- 135,
671
- 148,
672
- 149,
673
- 160,
674
- 161,
675
- 162,
676
- 163,
677
- 164,
678
- 165,
679
- 166,
680
- 167,
681
- 168,
682
- 169,
683
- 170,
684
- 171,
685
- 172,
686
- 173,
687
- 178,
688
- 179,
689
- 184,
690
- 185,
691
- 196,
692
- 197,
693
- 198,
694
- 199,
695
- 200,
696
- 201,
697
- 202,
698
- 203,
699
- 204,
700
- 205,
701
- 206,
702
- 207,
703
- 208,
704
- 209,
705
- 214,
706
- 215,
707
- 220,
708
- 221
709
- ];
710
- } catch (error) {}
711
- /**
712
- * Build up the default `inspectOpts` object from the environment variables.
713
- *
714
- * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
715
- */
716
- exports.inspectOpts = Object.keys(process.env).filter((key) => {
717
- return /^debug_/i.test(key);
718
- }).reduce((obj, key) => {
719
- const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
720
- return k.toUpperCase();
721
- });
722
- let val = process.env[key];
723
- if (/^(yes|on|true|enabled)$/i.test(val)) val = true;
724
- else if (/^(no|off|false|disabled)$/i.test(val)) val = false;
725
- else if (val === "null") val = null;
726
- else val = Number(val);
727
- obj[prop] = val;
728
- return obj;
729
- }, {});
730
- /**
731
- * Is stdout a TTY? Colored output is enabled when `true`.
732
- */
733
- function useColors() {
734
- return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
735
- }
736
- /**
737
- * Adds ANSI color escape codes if enabled.
738
- *
739
- * @api public
740
- */
741
- function formatArgs(args) {
742
- const { namespace: name, useColors } = this;
743
- if (useColors) {
744
- const c = this.color;
745
- const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
746
- const prefix = ` ${colorCode};1m${name} \u001B[0m`;
747
- args[0] = prefix + args[0].split("\n").join("\n" + prefix);
748
- args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m");
749
- } else args[0] = getDate() + name + " " + args[0];
750
- }
751
- function getDate() {
752
- if (exports.inspectOpts.hideDate) return "";
753
- return (/* @__PURE__ */ new Date()).toISOString() + " ";
754
- }
755
- /**
756
- * Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr.
757
- */
758
- function log(...args) {
759
- return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + "\n");
760
- }
761
- /**
762
- * Save `namespaces`.
763
- *
764
- * @param {String} namespaces
765
- * @api private
766
- */
767
- function save(namespaces) {
768
- if (namespaces) process.env.DEBUG = namespaces;
769
- else delete process.env.DEBUG;
770
- }
771
- /**
772
- * Load `namespaces`.
773
- *
774
- * @return {String} returns the previously persisted debug modes
775
- * @api private
776
- */
777
- function load() {
778
- return process.env.DEBUG;
779
- }
780
- /**
781
- * Init logic for `debug` instances.
782
- *
783
- * Create a new `inspectOpts` object in case `useColors` is set
784
- * differently for a particular `debug` instance.
785
- */
786
- function init(debug) {
787
- debug.inspectOpts = {};
788
- const keys = Object.keys(exports.inspectOpts);
789
- for (let i = 0; i < keys.length; i++) debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
790
- }
791
- module.exports = require_common()(exports);
792
- const { formatters } = module.exports;
793
- /**
794
- * Map %o to `util.inspect()`, all on a single line.
795
- */
796
- formatters.o = function(v) {
797
- this.inspectOpts.colors = this.useColors;
798
- return util.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
799
- };
800
- /**
801
- * Map %O to `util.inspect()`, allowing multiple lines if needed.
802
- */
803
- formatters.O = function(v) {
804
- this.inspectOpts.colors = this.useColors;
805
- return util.inspect(v, this.inspectOpts);
806
- };
807
- }));
808
-
809
- //#endregion
810
- //#region node_modules/debug/src/index.js
811
- var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
812
- /**
813
- * Detect Electron renderer / nwjs process, which is node, but we should
814
- * treat as a browser.
815
- */
816
- if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) module.exports = require_browser();
817
- else module.exports = require_node();
818
- }));
819
-
820
- //#endregion
821
- export { require_src as t };
822
- //# sourceMappingURL=src-CVfTUJQl.mjs.map