xmlui 0.9.72 → 0.9.74
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/lib/{apiInterceptorWorker-B9Uw4ogq.mjs → apiInterceptorWorker-DXW_XKKI.mjs} +149 -149
- package/dist/lib/{index-DHZSwtDq.mjs → index-D1pmdW3I.mjs} +9561 -9430
- package/dist/lib/index.css +1 -1
- package/dist/lib/language-server-web-worker.mjs +1 -1
- package/dist/lib/language-server.mjs +1 -1
- package/dist/lib/{server-common-LUcdzTQs.mjs → server-common-CfdMYx46.mjs} +4453 -4423
- package/dist/lib/xmlui-parser.d.ts +3 -0
- package/dist/lib/xmlui.d.ts +7 -2
- package/dist/lib/xmlui.mjs +1 -1
- package/dist/metadata/{apiInterceptorWorker-DwXA1Dk9.mjs → apiInterceptorWorker-BFjqjbag.mjs} +134 -134
- package/dist/metadata/{collectedComponentMetadata-B6Gwz_zi.mjs → collectedComponentMetadata-BVLAibj_.mjs} +8374 -8244
- package/dist/metadata/style.css +1 -1
- package/dist/metadata/xmlui-metadata.mjs +1 -1
- package/dist/metadata/xmlui-metadata.umd.js +103 -103
- package/dist/scripts/package.json +1 -1
- package/dist/scripts/src/components/Markdown/MarkdownNative.js +9 -3
- package/dist/scripts/src/components/Markdown/utils.js +15 -5
- package/dist/scripts/src/components/NestedApp/AppWithCodeViewNative.js +14 -14
- package/dist/scripts/src/components/NestedApp/NestedApp.js +2 -2
- package/dist/scripts/src/components/NestedApp/NestedAppNative.js +46 -18
- package/dist/scripts/src/components-core/event-handlers.js +2 -1
- package/dist/scripts/src/components-core/interception/ApiInterceptor.js +6 -1
- package/dist/scripts/src/components-core/rendering/AppContent.js +4 -1
- package/dist/scripts/src/components-core/rendering/AppRoot.js +2 -2
- package/dist/scripts/src/components-core/rendering/AppWrapper.js +2 -2
- package/dist/scripts/src/components-core/utils/date-utils.js +47 -8
- package/dist/standalone/xmlui-standalone.es.d.ts +7 -2
- package/dist/standalone/xmlui-standalone.umd.js +250 -250
- package/package.json +1 -1
package/dist/metadata/{apiInterceptorWorker-DwXA1Dk9.mjs → apiInterceptorWorker-BFjqjbag.mjs}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Go = Object.defineProperty;
|
|
2
2
|
var Wa = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var F = (e, a, o) =>
|
|
5
|
+
var Ho = (e, a, o) => a in e ? Go(e, a, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[a] = o;
|
|
6
|
+
var F = (e, a, o) => Ho(e, typeof a != "symbol" ? a + "" : a, o), ka = (e, a, o) => a.has(e) || Wa("Cannot " + o);
|
|
7
7
|
var ge = (e, a, o) => (ka(e, a, "read from private field"), o ? o.call(e) : a.get(e)), _e = (e, a, o) => a.has(e) ? Wa("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(e) : a.set(e, o), fa = (e, a, o, t) => (ka(e, a, "write to private field"), t ? t.call(e, o) : a.set(e, o), o), ze = (e, a, o) => (ka(e, a, "access private method"), o);
|
|
8
|
-
import { delay as
|
|
9
|
-
import { isArray as
|
|
10
|
-
import { r as Xo, g as Ko, d as Yo, m as Qo, a as Zo, o as ba, T as et } from "./collectedComponentMetadata-
|
|
11
|
-
import
|
|
8
|
+
import { delay as Ga, HttpResponse as Be, http as Vo } from "msw";
|
|
9
|
+
import { isArray as lo, isObject as mo, mapValues as Jo } from "lodash-es";
|
|
10
|
+
import { r as Xo, g as Ko, d as Yo, m as Qo, a as Zo, o as ba, T as et } from "./collectedComponentMetadata-BVLAibj_.mjs";
|
|
11
|
+
import Ha from "dexie";
|
|
12
12
|
var at = /(%?)(%([sdijo]))/g;
|
|
13
13
|
function ot(e, a) {
|
|
14
14
|
switch (a) {
|
|
@@ -86,7 +86,7 @@ const B = {
|
|
|
86
86
|
warn: rt,
|
|
87
87
|
error: ut
|
|
88
88
|
};
|
|
89
|
-
class
|
|
89
|
+
class Va extends Error {
|
|
90
90
|
constructor(a) {
|
|
91
91
|
super(a), this.name = "InternalError";
|
|
92
92
|
}
|
|
@@ -264,7 +264,7 @@ function gt(e) {
|
|
|
264
264
|
a.pathname
|
|
265
265
|
);
|
|
266
266
|
}
|
|
267
|
-
async function
|
|
267
|
+
async function po(e, a = "warn") {
|
|
268
268
|
const o = new URL(e.url), t = ca(o) + o.search, i = e.method === "HEAD" || e.method === "GET" ? null : await e.clone().text(), n = `intercepted a request without a matching request handler:${`
|
|
269
269
|
|
|
270
270
|
• ${e.method} ${t}
|
|
@@ -276,7 +276,7 @@ Read more: https://mswjs.io/docs/getting-started/mocks`;
|
|
|
276
276
|
function r(m) {
|
|
277
277
|
switch (m) {
|
|
278
278
|
case "error":
|
|
279
|
-
throw B.error("Error: %s", n), new
|
|
279
|
+
throw B.error("Error: %s", n), new Va(
|
|
280
280
|
B.formatMessage(
|
|
281
281
|
'Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
|
|
282
282
|
)
|
|
@@ -288,7 +288,7 @@ Read more: https://mswjs.io/docs/getting-started/mocks`;
|
|
|
288
288
|
case "bypass":
|
|
289
289
|
break;
|
|
290
290
|
default:
|
|
291
|
-
throw new
|
|
291
|
+
throw new Va(
|
|
292
292
|
B.formatMessage(
|
|
293
293
|
'Failed to react to an unhandled request: unknown strategy "%s". Please provide one of the supported strategies ("bypass", "warn", "error") or a custom callback function as the value of the "onUnhandledRequest" option.',
|
|
294
294
|
m
|
|
@@ -305,7 +305,7 @@ Read more: https://mswjs.io/docs/getting-started/mocks`;
|
|
|
305
305
|
}
|
|
306
306
|
gt(e) || r(a);
|
|
307
307
|
}
|
|
308
|
-
function
|
|
308
|
+
function ho() {
|
|
309
309
|
if (typeof navigator < "u" && navigator.product === "ReactNative")
|
|
310
310
|
return !0;
|
|
311
311
|
if (typeof process < "u") {
|
|
@@ -314,26 +314,26 @@ function po() {
|
|
|
314
314
|
}
|
|
315
315
|
return !1;
|
|
316
316
|
}
|
|
317
|
-
var kt = Object.create,
|
|
317
|
+
var kt = Object.create, go = Object.defineProperty, ft = Object.getOwnPropertyDescriptor, ko = Object.getOwnPropertyNames, bt = Object.getPrototypeOf, yt = Object.prototype.hasOwnProperty, jt = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, {
|
|
318
318
|
get: (a, o) => (typeof require < "u" ? require : a)[o]
|
|
319
319
|
}) : e)(function(e) {
|
|
320
320
|
if (typeof require < "u") return require.apply(this, arguments);
|
|
321
321
|
throw Error('Dynamic require of "' + e + '" is not supported');
|
|
322
322
|
}), ee = (e, a) => function() {
|
|
323
|
-
return a || (0, e[
|
|
323
|
+
return a || (0, e[ko(e)[0]])((a = { exports: {} }).exports, a), a.exports;
|
|
324
324
|
}, vt = (e, a, o, t) => {
|
|
325
325
|
if (a && typeof a == "object" || typeof a == "function")
|
|
326
|
-
for (let i of
|
|
327
|
-
!yt.call(e, i) && i !== o &&
|
|
326
|
+
for (let i of ko(a))
|
|
327
|
+
!yt.call(e, i) && i !== o && go(e, i, { get: () => a[i], enumerable: !(t = ft(a, i)) || t.enumerable });
|
|
328
328
|
return e;
|
|
329
329
|
}, wt = (e, a, o) => (o = e != null ? kt(bt(e)) : {}, vt(
|
|
330
330
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
331
331
|
// file that has been converted to a CommonJS file using a Babel-
|
|
332
332
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
333
333
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
334
|
-
|
|
334
|
+
go(o, "default", { value: e, enumerable: !0 }),
|
|
335
335
|
e
|
|
336
|
-
)),
|
|
336
|
+
)), fo = ee({
|
|
337
337
|
"node_modules/punycode/punycode.js"(e, a) {
|
|
338
338
|
var o = 2147483647, t = 36, i = 1, s = 26, n = 38, r = 700, m = 72, h = 128, f = "-", l = /^xn--/, E = /[^\0-\x7F]/, b = /[\x2E\u3002\uFF0E\uFF61]/g, x = {
|
|
339
339
|
overflow: "Overflow: input needs wider integers to process",
|
|
@@ -10030,7 +10030,7 @@ var kt = Object.create, ho = Object.defineProperty, ft = Object.getOwnPropertyDe
|
|
|
10030
10030
|
}
|
|
10031
10031
|
}), Ct = ee({
|
|
10032
10032
|
"node_modules/psl/index.js"(e) {
|
|
10033
|
-
var a =
|
|
10033
|
+
var a = fo(), o = {};
|
|
10034
10034
|
o.rules = St().map(function(t) {
|
|
10035
10035
|
return {
|
|
10036
10036
|
rule: t,
|
|
@@ -10111,7 +10111,7 @@ var kt = Object.create, ho = Object.defineProperty, ft = Object.getOwnPropertyDe
|
|
|
10111
10111
|
return !!(i.domain && i.listed);
|
|
10112
10112
|
};
|
|
10113
10113
|
}
|
|
10114
|
-
}),
|
|
10114
|
+
}), bo = ee({
|
|
10115
10115
|
"node_modules/tough-cookie/lib/pubsuffix-psl.js"(e) {
|
|
10116
10116
|
var a = Ct(), o = [
|
|
10117
10117
|
"local",
|
|
@@ -10136,7 +10136,7 @@ var kt = Object.create, ho = Object.defineProperty, ft = Object.getOwnPropertyDe
|
|
|
10136
10136
|
}
|
|
10137
10137
|
e.getPublicSuffix = i;
|
|
10138
10138
|
}
|
|
10139
|
-
}),
|
|
10139
|
+
}), yo = ee({
|
|
10140
10140
|
"node_modules/tough-cookie/lib/store.js"(e) {
|
|
10141
10141
|
var a = class {
|
|
10142
10142
|
constructor() {
|
|
@@ -10171,7 +10171,7 @@ var kt = Object.create, ho = Object.defineProperty, ft = Object.getOwnPropertyDe
|
|
|
10171
10171
|
};
|
|
10172
10172
|
e.Store = a;
|
|
10173
10173
|
}
|
|
10174
|
-
}),
|
|
10174
|
+
}), jo = ee({
|
|
10175
10175
|
"node_modules/universalify/index.js"(e) {
|
|
10176
10176
|
e.fromCallback = function(a) {
|
|
10177
10177
|
return Object.defineProperty(function() {
|
|
@@ -10192,9 +10192,9 @@ var kt = Object.create, ho = Object.defineProperty, ft = Object.getOwnPropertyDe
|
|
|
10192
10192
|
}, "name", { value: a.name });
|
|
10193
10193
|
};
|
|
10194
10194
|
}
|
|
10195
|
-
}),
|
|
10195
|
+
}), vo = ee({
|
|
10196
10196
|
"node_modules/tough-cookie/lib/permuteDomain.js"(e) {
|
|
10197
|
-
var a =
|
|
10197
|
+
var a = bo();
|
|
10198
10198
|
function o(t, i) {
|
|
10199
10199
|
const s = a.getPublicSuffix(t, {
|
|
10200
10200
|
allowSpecialUseDomain: i
|
|
@@ -10213,14 +10213,14 @@ var kt = Object.create, ho = Object.defineProperty, ft = Object.getOwnPropertyDe
|
|
|
10213
10213
|
}
|
|
10214
10214
|
e.permuteDomain = o;
|
|
10215
10215
|
}
|
|
10216
|
-
}),
|
|
10216
|
+
}), wo = ee({
|
|
10217
10217
|
"node_modules/tough-cookie/lib/pathMatch.js"(e) {
|
|
10218
10218
|
function a(o, t) {
|
|
10219
10219
|
return t === o || o.indexOf(t) === 0 && (t.substr(-1) === "/" || o.substr(t.length, 1) === "/");
|
|
10220
10220
|
}
|
|
10221
10221
|
e.pathMatch = a;
|
|
10222
10222
|
}
|
|
10223
|
-
}),
|
|
10223
|
+
}), Eo = ee({
|
|
10224
10224
|
"node_modules/tough-cookie/lib/utilHelper.js"(e) {
|
|
10225
10225
|
function a() {
|
|
10226
10226
|
try {
|
|
@@ -10247,7 +10247,7 @@ var kt = Object.create, ho = Object.defineProperty, ft = Object.getOwnPropertyDe
|
|
|
10247
10247
|
}
|
|
10248
10248
|
}), At = ee({
|
|
10249
10249
|
"node_modules/tough-cookie/lib/memstore.js"(e) {
|
|
10250
|
-
var { fromCallback: a } =
|
|
10250
|
+
var { fromCallback: a } = jo(), o = yo().Store, t = vo().permuteDomain, i = wo().pathMatch, { getCustomInspectSymbol: s, getUtilInspect: n } = Eo(), r = class extends o {
|
|
10251
10251
|
constructor() {
|
|
10252
10252
|
super(), this.synchronous = !0, this.idx = /* @__PURE__ */ Object.create(null);
|
|
10253
10253
|
const l = s();
|
|
@@ -10411,7 +10411,7 @@ var kt = Object.create, ho = Object.defineProperty, ft = Object.getOwnPropertyDe
|
|
|
10411
10411
|
}
|
|
10412
10412
|
}), Dt = ee({
|
|
10413
10413
|
"node_modules/tough-cookie/lib/cookie.js"(e) {
|
|
10414
|
-
var a =
|
|
10414
|
+
var a = fo(), o = zt(), t = bo(), i = yo().Store, s = At().MemoryCookieStore, n = wo().pathMatch, r = Lt(), m = It(), { fromCallback: h } = jo(), { getCustomInspectSymbol: f } = Eo(), l = /^[\x21\x23-\x2B\x2D-\x3A\x3C-\x5B\x5D-\x7E]+$/, E = /[\x00-\x1F]/, b = [`
|
|
10415
10415
|
`, "\r", "\0"], x = /[\x20-\x3A\x3C-\x7E]+/, C = /[\x09\x20-\x2F\x3B-\x40\x5B-\x60\x7B-\x7E]/, M = {
|
|
10416
10416
|
jan: 0,
|
|
10417
10417
|
feb: 1,
|
|
@@ -11090,7 +11090,7 @@ var kt = Object.create, ho = Object.defineProperty, ft = Object.getOwnPropertyDe
|
|
|
11090
11090
|
return k;
|
|
11091
11091
|
};
|
|
11092
11092
|
}
|
|
11093
|
-
e.version = m, e.CookieJar = ce, e.Cookie = $, e.Store = i, e.MemoryCookieStore = s, e.parseDate = J, e.formatDate = fe, e.parse = N, e.fromJSON = Q, e.domainMatch = d, e.defaultPath = A, e.pathMatch = n, e.getPublicSuffix = t.getPublicSuffix, e.cookieCompare = ie, e.permuteDomain =
|
|
11093
|
+
e.version = m, e.CookieJar = ce, e.Cookie = $, e.Store = i, e.MemoryCookieStore = s, e.parseDate = J, e.formatDate = fe, e.parse = N, e.fromJSON = Q, e.domainMatch = d, e.defaultPath = A, e.pathMatch = n, e.getPublicSuffix = t.getPublicSuffix, e.cookieCompare = ie, e.permuteDomain = vo().permuteDomain, e.permutePath = te, e.canonicalDomain = ne, e.PrefixSecurityEnum = v, e.ParameterError = r.ParameterError;
|
|
11094
11094
|
}
|
|
11095
11095
|
}), qt = wt(Dt()), Ft = qt.default;
|
|
11096
11096
|
/*! Bundled license information:
|
|
@@ -11398,12 +11398,12 @@ class Mt extends Tt {
|
|
|
11398
11398
|
return o.filter((s) => !i.includes(s));
|
|
11399
11399
|
}
|
|
11400
11400
|
}
|
|
11401
|
-
const $t =
|
|
11401
|
+
const $t = ho() ? new Ot() : new Mt(), Ut = new Rt($t), Nt = Symbol("kSetCookie");
|
|
11402
11402
|
function Wt(e, a) {
|
|
11403
11403
|
const o = Reflect.get(a, Nt);
|
|
11404
11404
|
o && Ut.setCookie(o, e.url);
|
|
11405
11405
|
}
|
|
11406
|
-
async function
|
|
11406
|
+
async function xo(e, a, o, t, i, s) {
|
|
11407
11407
|
var h, f, l, E, b, x;
|
|
11408
11408
|
if (i.emit("request:start", { request: e, requestId: a }), (h = e.headers.get("accept")) != null && h.includes("msw/passthrough")) {
|
|
11409
11409
|
i.emit("request:end", { request: e, requestId: a }), (f = s == null ? void 0 : s.onPassthroughResponse) == null || f.call(s, e);
|
|
@@ -11422,7 +11422,7 @@ async function Eo(e, a, o, t, i, s) {
|
|
|
11422
11422
|
requestId: a
|
|
11423
11423
|
}), n.error;
|
|
11424
11424
|
if (!n.data) {
|
|
11425
|
-
await
|
|
11425
|
+
await po(e, t.onUnhandledRequest), i.emit("request:unhandled", { request: e, requestId: a }), i.emit("request:end", { request: e, requestId: a }), (l = s == null ? void 0 : s.onPassthroughResponse) == null || l.call(s, e);
|
|
11426
11426
|
return;
|
|
11427
11427
|
}
|
|
11428
11428
|
const { response: r } = n.data;
|
|
@@ -11448,14 +11448,14 @@ function Gt(e) {
|
|
|
11448
11448
|
function Ra(e) {
|
|
11449
11449
|
return (a) => a != null && typeof a == "object" && "__kind" in a && a.__kind === e;
|
|
11450
11450
|
}
|
|
11451
|
-
function
|
|
11451
|
+
function Ja(e) {
|
|
11452
11452
|
return e != null && typeof e == "object" && !Array.isArray(e);
|
|
11453
11453
|
}
|
|
11454
|
-
function
|
|
11454
|
+
function zo(e, a) {
|
|
11455
11455
|
return Object.entries(a).reduce(
|
|
11456
11456
|
(o, [t, i]) => {
|
|
11457
11457
|
const s = o[t];
|
|
11458
|
-
return Array.isArray(s) && Array.isArray(i) ? (o[t] = s.concat(i), o) :
|
|
11458
|
+
return Array.isArray(s) && Array.isArray(i) ? (o[t] = s.concat(i), o) : Ja(s) && Ja(i) ? (o[t] = zo(s, i), o) : (o[t] = i, o);
|
|
11459
11459
|
},
|
|
11460
11460
|
Object.assign({}, e)
|
|
11461
11461
|
);
|
|
@@ -11466,12 +11466,12 @@ var Ht = class extends Error {
|
|
|
11466
11466
|
`Possible EventEmitter memory leak detected. ${t} ${o.toString()} listeners added. Use emitter.setMaxListeners() to increase limit`
|
|
11467
11467
|
), this.emitter = a, this.type = o, this.count = t, this.name = "MaxListenersExceededWarning";
|
|
11468
11468
|
}
|
|
11469
|
-
},
|
|
11469
|
+
}, So = class {
|
|
11470
11470
|
static listenerCount(a, o) {
|
|
11471
11471
|
return a.listenerCount(o);
|
|
11472
11472
|
}
|
|
11473
11473
|
constructor() {
|
|
11474
|
-
this.events = /* @__PURE__ */ new Map(), this.maxListeners =
|
|
11474
|
+
this.events = /* @__PURE__ */ new Map(), this.maxListeners = So.defaultMaxListeners, this.hasWarnedAboutPotentialMemoryLeak = !1;
|
|
11475
11475
|
}
|
|
11476
11476
|
_emitInternalEvent(a, o, t) {
|
|
11477
11477
|
this.emit(
|
|
@@ -11593,7 +11593,7 @@ var Ht = class extends Error {
|
|
|
11593
11593
|
rawListeners(a) {
|
|
11594
11594
|
return this.listeners(a);
|
|
11595
11595
|
}
|
|
11596
|
-
}, sa =
|
|
11596
|
+
}, sa = So;
|
|
11597
11597
|
sa.defaultMaxListeners = 10;
|
|
11598
11598
|
function Vt(e, a) {
|
|
11599
11599
|
const o = e.emit;
|
|
@@ -11711,15 +11711,15 @@ function ii(e) {
|
|
|
11711
11711
|
function si(e) {
|
|
11712
11712
|
return `\x1B[32m${e}\x1B[0m`;
|
|
11713
11713
|
}
|
|
11714
|
-
var la =
|
|
11714
|
+
var la = ho(), Co = class {
|
|
11715
11715
|
constructor(a) {
|
|
11716
11716
|
F(this, "prefix");
|
|
11717
11717
|
this.name = a, this.prefix = `[${this.name}]`;
|
|
11718
|
-
const o =
|
|
11718
|
+
const o = Xa("DEBUG"), t = Xa("LOG_LEVEL");
|
|
11719
11719
|
o === "1" || o === "true" || typeof o < "u" && this.name.startsWith(o) ? (this.debug = Me(t, "debug") ? le : this.debug, this.info = Me(t, "info") ? le : this.info, this.success = Me(t, "success") ? le : this.success, this.warning = Me(t, "warning") ? le : this.warning, this.error = Me(t, "error") ? le : this.error) : (this.info = le, this.success = le, this.warning = le, this.error = le, this.only = le);
|
|
11720
11720
|
}
|
|
11721
11721
|
extend(a) {
|
|
11722
|
-
return new
|
|
11722
|
+
return new Co(`${this.name}:${a}`);
|
|
11723
11723
|
}
|
|
11724
11724
|
/**
|
|
11725
11725
|
* Print a debug message.
|
|
@@ -11847,8 +11847,8 @@ var la = po(), So = class {
|
|
|
11847
11847
|
prefix: Sa[h]
|
|
11848
11848
|
};
|
|
11849
11849
|
this.getWriter(o)(
|
|
11850
|
-
[f.timestamp(this.formatTimestamp(r.timestamp))].concat(i != null ? f.prefix(i) : []).concat(
|
|
11851
|
-
...n.map(
|
|
11850
|
+
[f.timestamp(this.formatTimestamp(r.timestamp))].concat(i != null ? f.prefix(i) : []).concat(Ka(t)).join(" "),
|
|
11851
|
+
...n.map(Ka)
|
|
11852
11852
|
);
|
|
11853
11853
|
}
|
|
11854
11854
|
formatTimestamp(a) {
|
|
@@ -11906,17 +11906,17 @@ function ci(e, ...a) {
|
|
|
11906
11906
|
}
|
|
11907
11907
|
console.error(e, ...a);
|
|
11908
11908
|
}
|
|
11909
|
-
function
|
|
11909
|
+
function Xa(e) {
|
|
11910
11910
|
var a;
|
|
11911
11911
|
return la ? Zt[e] : (a = globalThis[e]) == null ? void 0 : a.toString();
|
|
11912
11912
|
}
|
|
11913
11913
|
function Me(e, a) {
|
|
11914
11914
|
return e !== void 0 && e !== a;
|
|
11915
11915
|
}
|
|
11916
|
-
function
|
|
11916
|
+
function Ka(e) {
|
|
11917
11917
|
return typeof e > "u" ? "undefined" : e === null ? "null" : typeof e == "string" ? e : typeof e == "object" ? JSON.stringify(e) : e.toString();
|
|
11918
11918
|
}
|
|
11919
|
-
function
|
|
11919
|
+
function Ya(e) {
|
|
11920
11920
|
return (
|
|
11921
11921
|
// @ts-ignore https://github.com/Microsoft/TypeScript/issues/24587
|
|
11922
11922
|
globalThis[e] || void 0
|
|
@@ -11930,7 +11930,7 @@ function mi(e) {
|
|
|
11930
11930
|
}
|
|
11931
11931
|
var pi = class {
|
|
11932
11932
|
constructor(a) {
|
|
11933
|
-
this.symbol = a, this.readyState = "INACTIVE", this.emitter = new sa(), this.subscriptions = [], this.logger = new
|
|
11933
|
+
this.symbol = a, this.readyState = "INACTIVE", this.emitter = new sa(), this.subscriptions = [], this.logger = new Co(a.description), this.emitter.setMaxListeners(0), this.logger.info("constructing the interceptor...");
|
|
11934
11934
|
}
|
|
11935
11935
|
/**
|
|
11936
11936
|
* Determine if this interceptor can be applied
|
|
@@ -11999,7 +11999,7 @@ var pi = class {
|
|
|
11999
11999
|
a.info("no interceptors running, skipping dispose...");
|
|
12000
12000
|
return;
|
|
12001
12001
|
}
|
|
12002
|
-
if (this.clearInstance(), a.info("global symbol deleted:",
|
|
12002
|
+
if (this.clearInstance(), a.info("global symbol deleted:", Ya(this.symbol)), this.subscriptions.length > 0) {
|
|
12003
12003
|
a.info("disposing of %d subscriptions...", this.subscriptions.length);
|
|
12004
12004
|
for (const o of this.subscriptions)
|
|
12005
12005
|
o();
|
|
@@ -12009,7 +12009,7 @@ var pi = class {
|
|
|
12009
12009
|
}
|
|
12010
12010
|
getInstance() {
|
|
12011
12011
|
var a;
|
|
12012
|
-
const o =
|
|
12012
|
+
const o = Ya(this.symbol);
|
|
12013
12013
|
return this.logger.info("retrieved global instance:", (a = o == null ? void 0 : o.constructor) == null ? void 0 : a.name), o;
|
|
12014
12014
|
}
|
|
12015
12015
|
setInstance() {
|
|
@@ -12041,7 +12041,7 @@ function di() {
|
|
|
12041
12041
|
};
|
|
12042
12042
|
return e;
|
|
12043
12043
|
}
|
|
12044
|
-
var we, Re, oa,
|
|
12044
|
+
var we, Re, oa, uo, gi = (uo = class extends Promise {
|
|
12045
12045
|
constructor(o = null) {
|
|
12046
12046
|
const t = di();
|
|
12047
12047
|
super((i, s) => {
|
|
@@ -12073,7 +12073,7 @@ var we, Re, oa, ro, gi = (ro = class extends Promise {
|
|
|
12073
12073
|
resolve: { configurable: !0, value: this.resolve },
|
|
12074
12074
|
reject: { configurable: !0, value: this.reject }
|
|
12075
12075
|
});
|
|
12076
|
-
},
|
|
12076
|
+
}, uo);
|
|
12077
12077
|
function Z(e, a) {
|
|
12078
12078
|
return Object.defineProperties(a, {
|
|
12079
12079
|
target: {
|
|
@@ -12111,7 +12111,7 @@ var Fe = Symbol("kCancelable"), he = Symbol("kDefaultPrevented"), Ta = class ext
|
|
|
12111
12111
|
constructor(e, a = {}) {
|
|
12112
12112
|
super(e, a), this.code = a.code === void 0 ? 0 : a.code, this.reason = a.reason === void 0 ? "" : a.reason, this.wasClean = a.wasClean === void 0 ? !1 : a.wasClean;
|
|
12113
12113
|
}
|
|
12114
|
-
},
|
|
12114
|
+
}, Qa = class extends ma {
|
|
12115
12115
|
constructor(e, a = {}) {
|
|
12116
12116
|
super(e, a), this[Fe] = !!a.cancelable, this[he] = !1;
|
|
12117
12117
|
}
|
|
@@ -12190,7 +12190,7 @@ var Fe = Symbol("kCancelable"), he = Symbol("kDefaultPrevented"), Ta = class ext
|
|
|
12190
12190
|
close(e, a) {
|
|
12191
12191
|
this.transport.close(e, a);
|
|
12192
12192
|
}
|
|
12193
|
-
},
|
|
12193
|
+
}, Za = "InvalidAccessError: close code out of user configurable range", na = Symbol("kPassthroughPromise"), Ao = Symbol("kOnSend"), He = Symbol("kClose"), Ve = class extends EventTarget {
|
|
12194
12194
|
constructor(e, a) {
|
|
12195
12195
|
super(), this.CONNECTING = 0, this.OPEN = 1, this.CLOSING = 2, this.CLOSED = 3, this._onopen = null, this._onmessage = null, this._onerror = null, this._onclose = null, this.url = e.toString(), this.protocol = "", this.extensions = "", this.binaryType = "blob", this.readyState = this.CONNECTING, this.bufferedAmount = 0, this[na] = new gi(), queueMicrotask(async () => {
|
|
12196
12196
|
await this[na] || (this.protocol = typeof a == "string" ? a : Array.isArray(a) && a.length > 0 ? a[0] : "", this.readyState === this.CONNECTING && (this.readyState = this.OPEN, this.dispatchEvent(Z(this, new Event("open")))));
|
|
@@ -12231,13 +12231,13 @@ var Fe = Symbol("kCancelable"), he = Symbol("kDefaultPrevented"), Ta = class ext
|
|
|
12231
12231
|
throw this.close(), new DOMException("InvalidStateError");
|
|
12232
12232
|
this.readyState === this.CLOSING || this.readyState === this.CLOSED || (this.bufferedAmount += fi(e), queueMicrotask(() => {
|
|
12233
12233
|
var a;
|
|
12234
|
-
this.bufferedAmount = 0, (a = this[
|
|
12234
|
+
this.bufferedAmount = 0, (a = this[Ao]) == null || a.call(this, e);
|
|
12235
12235
|
}));
|
|
12236
12236
|
}
|
|
12237
12237
|
close(e = 1e3, a) {
|
|
12238
|
-
de(e,
|
|
12238
|
+
de(e, Za), de(
|
|
12239
12239
|
e === 1e3 || e >= 3e3 && e <= 4999,
|
|
12240
|
-
|
|
12240
|
+
Za
|
|
12241
12241
|
), this[He](e, a);
|
|
12242
12242
|
}
|
|
12243
12243
|
[He](e = 1e3, a, o = !0) {
|
|
@@ -12414,7 +12414,7 @@ var ve = Symbol("kEmitter"), Qe = Symbol("kBoundListener"), ya = Symbol("kSend")
|
|
|
12414
12414
|
this[ve].dispatchEvent(
|
|
12415
12415
|
Z(
|
|
12416
12416
|
this.realWebSocket,
|
|
12417
|
-
new
|
|
12417
|
+
new Qa("close", {
|
|
12418
12418
|
/**
|
|
12419
12419
|
* @note `server.close()` in the interceptor
|
|
12420
12420
|
* always results in clean closures.
|
|
@@ -12459,7 +12459,7 @@ var ve = Symbol("kEmitter"), Qe = Symbol("kBoundListener"), ya = Symbol("kSend")
|
|
|
12459
12459
|
this.mockCloseController.abort();
|
|
12460
12460
|
const a = Z(
|
|
12461
12461
|
this.realWebSocket,
|
|
12462
|
-
new
|
|
12462
|
+
new Qa("close", {
|
|
12463
12463
|
code: e.code,
|
|
12464
12464
|
reason: e.reason,
|
|
12465
12465
|
wasClean: e.wasClean,
|
|
@@ -12472,7 +12472,7 @@ var ve = Symbol("kEmitter"), Qe = Symbol("kBoundListener"), ya = Symbol("kSend")
|
|
|
12472
12472
|
constructor(e) {
|
|
12473
12473
|
super(), this.socket = e, this.socket.addEventListener("close", (a) => {
|
|
12474
12474
|
this.dispatchEvent(Z(this.socket, new ma("close", a)));
|
|
12475
|
-
}), this.socket[
|
|
12475
|
+
}), this.socket[Ao] = (a) => {
|
|
12476
12476
|
this.dispatchEvent(
|
|
12477
12477
|
Z(
|
|
12478
12478
|
this.socket,
|
|
@@ -12528,9 +12528,9 @@ var ve = Symbol("kEmitter"), Qe = Symbol("kBoundListener"), ya = Symbol("kSend")
|
|
|
12528
12528
|
close(e, a) {
|
|
12529
12529
|
this.socket[He](e, a);
|
|
12530
12530
|
}
|
|
12531
|
-
},
|
|
12531
|
+
}, Lo = class extends pi {
|
|
12532
12532
|
constructor() {
|
|
12533
|
-
super(
|
|
12533
|
+
super(Lo.symbol);
|
|
12534
12534
|
}
|
|
12535
12535
|
checkEnvironment() {
|
|
12536
12536
|
return Qt("WebSocket");
|
|
@@ -12575,9 +12575,9 @@ var ve = Symbol("kEmitter"), Qe = Symbol("kBoundListener"), ya = Symbol("kSend")
|
|
|
12575
12575
|
);
|
|
12576
12576
|
});
|
|
12577
12577
|
}
|
|
12578
|
-
},
|
|
12579
|
-
|
|
12580
|
-
const Aa = new
|
|
12578
|
+
}, Io = Lo;
|
|
12579
|
+
Io.symbol = Symbol("websocket");
|
|
12580
|
+
const Aa = new Io(), ji = Symbol("kDispatchEvent");
|
|
12581
12581
|
function vi(e) {
|
|
12582
12582
|
Aa.on("connection", async (a) => {
|
|
12583
12583
|
const o = e.getHandlers(), t = new MessageEvent("connection", {
|
|
@@ -12601,7 +12601,7 @@ function vi(e) {
|
|
|
12601
12601
|
connection: "upgrade"
|
|
12602
12602
|
}
|
|
12603
12603
|
});
|
|
12604
|
-
await
|
|
12604
|
+
await po(
|
|
12605
12605
|
s,
|
|
12606
12606
|
e.getUnhandledRequestStrategy()
|
|
12607
12607
|
).catch((n) => {
|
|
@@ -12622,9 +12622,9 @@ function Ce(e) {
|
|
|
12622
12622
|
function pa(e) {
|
|
12623
12623
|
return e instanceof Blob ? e.size : e instanceof ArrayBuffer ? e.byteLength : new Blob([e]).size;
|
|
12624
12624
|
}
|
|
12625
|
-
const
|
|
12625
|
+
const eo = 24;
|
|
12626
12626
|
function ja(e) {
|
|
12627
|
-
return e.length <=
|
|
12627
|
+
return e.length <= eo ? e : `${e.slice(0, eo)}…`;
|
|
12628
12628
|
}
|
|
12629
12629
|
async function ha(e) {
|
|
12630
12630
|
if (e instanceof Blob) {
|
|
@@ -12910,7 +12910,7 @@ Learn more about creating the Service Worker script: https://mswjs.io/docs/cli/i
|
|
|
12910
12910
|
}
|
|
12911
12911
|
return n.data;
|
|
12912
12912
|
};
|
|
12913
|
-
function
|
|
12913
|
+
function Do(e = {}) {
|
|
12914
12914
|
if (e.quiet)
|
|
12915
12915
|
return;
|
|
12916
12916
|
const a = e.message || "Mocking enabled.";
|
|
@@ -12933,7 +12933,7 @@ async function _i(e, a) {
|
|
|
12933
12933
|
);
|
|
12934
12934
|
return;
|
|
12935
12935
|
}
|
|
12936
|
-
e.isMockingEnabled = !0,
|
|
12936
|
+
e.isMockingEnabled = !0, Do({
|
|
12937
12937
|
quiet: a.quiet,
|
|
12938
12938
|
workerScope: (t = e.registration) == null ? void 0 : t.scope,
|
|
12939
12939
|
workerUrl: (i = e.worker) == null ? void 0 : i.scriptURL,
|
|
@@ -12963,7 +12963,7 @@ var Ui = (e, a) => async (o, t) => {
|
|
|
12963
12963
|
const i = new Bi(o.ports[0]), s = t.payload.id, n = $i(t.payload), r = n.clone(), m = n.clone();
|
|
12964
12964
|
za.cache.set(n, m), e.requests.set(s, m);
|
|
12965
12965
|
try {
|
|
12966
|
-
await
|
|
12966
|
+
await xo(
|
|
12967
12967
|
n,
|
|
12968
12968
|
s,
|
|
12969
12969
|
e.getRequestHandlers().filter(Ra("RequestHandler")),
|
|
@@ -13126,15 +13126,15 @@ function Qi(e) {
|
|
|
13126
13126
|
function Zi(e) {
|
|
13127
13127
|
return `\x1B[32m${e}\x1B[0m`;
|
|
13128
13128
|
}
|
|
13129
|
-
var da = Oa(),
|
|
13129
|
+
var da = Oa(), qo = class {
|
|
13130
13130
|
constructor(e) {
|
|
13131
13131
|
F(this, "prefix");
|
|
13132
13132
|
this.name = e, this.prefix = `[${this.name}]`;
|
|
13133
|
-
const a =
|
|
13133
|
+
const a = ao("DEBUG"), o = ao("LOG_LEVEL");
|
|
13134
13134
|
a === "1" || a === "true" || typeof a < "u" && this.name.startsWith(a) ? (this.debug = Ue(o, "debug") ? me : this.debug, this.info = Ue(o, "info") ? me : this.info, this.success = Ue(o, "success") ? me : this.success, this.warning = Ue(o, "warning") ? me : this.warning, this.error = Ue(o, "error") ? me : this.error) : (this.info = me, this.success = me, this.warning = me, this.error = me, this.only = me);
|
|
13135
13135
|
}
|
|
13136
13136
|
extend(e) {
|
|
13137
|
-
return new
|
|
13137
|
+
return new qo(`${this.name}:${e}`);
|
|
13138
13138
|
}
|
|
13139
13139
|
/**
|
|
13140
13140
|
* Print a debug message.
|
|
@@ -13262,8 +13262,8 @@ var da = Oa(), Do = class {
|
|
|
13262
13262
|
prefix: Ia[m]
|
|
13263
13263
|
};
|
|
13264
13264
|
this.getWriter(a)(
|
|
13265
|
-
[h.timestamp(this.formatTimestamp(n.timestamp))].concat(t != null ? h.prefix(t) : []).concat(
|
|
13266
|
-
...s.map(
|
|
13265
|
+
[h.timestamp(this.formatTimestamp(n.timestamp))].concat(t != null ? h.prefix(t) : []).concat(oo(o)).join(" "),
|
|
13266
|
+
...s.map(oo)
|
|
13267
13267
|
);
|
|
13268
13268
|
}
|
|
13269
13269
|
formatTimestamp(e) {
|
|
@@ -13321,14 +13321,14 @@ function ts(e, ...a) {
|
|
|
13321
13321
|
}
|
|
13322
13322
|
console.error(e, ...a);
|
|
13323
13323
|
}
|
|
13324
|
-
function
|
|
13324
|
+
function ao(e) {
|
|
13325
13325
|
var a;
|
|
13326
13326
|
return da ? Ii[e] : (a = globalThis[e]) == null ? void 0 : a.toString();
|
|
13327
13327
|
}
|
|
13328
13328
|
function Ue(e, a) {
|
|
13329
13329
|
return e !== void 0 && e !== a;
|
|
13330
13330
|
}
|
|
13331
|
-
function
|
|
13331
|
+
function oo(e) {
|
|
13332
13332
|
return typeof e > "u" ? "undefined" : e === null ? "null" : typeof e == "string" ? e : typeof e == "object" ? JSON.stringify(e) : e.toString();
|
|
13333
13333
|
}
|
|
13334
13334
|
var is = class extends Error {
|
|
@@ -13337,12 +13337,12 @@ var is = class extends Error {
|
|
|
13337
13337
|
`Possible EventEmitter memory leak detected. ${o} ${a.toString()} listeners added. Use emitter.setMaxListeners() to increase limit`
|
|
13338
13338
|
), this.emitter = e, this.type = a, this.count = o, this.name = "MaxListenersExceededWarning";
|
|
13339
13339
|
}
|
|
13340
|
-
},
|
|
13340
|
+
}, Fo = class {
|
|
13341
13341
|
static listenerCount(e, a) {
|
|
13342
13342
|
return e.listenerCount(a);
|
|
13343
13343
|
}
|
|
13344
13344
|
constructor() {
|
|
13345
|
-
this.events = /* @__PURE__ */ new Map(), this.maxListeners =
|
|
13345
|
+
this.events = /* @__PURE__ */ new Map(), this.maxListeners = Fo.defaultMaxListeners, this.hasWarnedAboutPotentialMemoryLeak = !1;
|
|
13346
13346
|
}
|
|
13347
13347
|
_emitInternalEvent(e, a, o) {
|
|
13348
13348
|
this.emit(
|
|
@@ -13464,10 +13464,10 @@ var is = class extends Error {
|
|
|
13464
13464
|
rawListeners(e) {
|
|
13465
13465
|
return this.listeners(e);
|
|
13466
13466
|
}
|
|
13467
|
-
},
|
|
13468
|
-
|
|
13467
|
+
}, Po = Fo;
|
|
13468
|
+
Po.defaultMaxListeners = 10;
|
|
13469
13469
|
var ss = "x-interceptors-internal-request-id";
|
|
13470
|
-
function
|
|
13470
|
+
function to(e) {
|
|
13471
13471
|
return (
|
|
13472
13472
|
// @ts-ignore https://github.com/Microsoft/TypeScript/issues/24587
|
|
13473
13473
|
globalThis[e] || void 0
|
|
@@ -13481,7 +13481,7 @@ function rs(e) {
|
|
|
13481
13481
|
}
|
|
13482
13482
|
var _a = class {
|
|
13483
13483
|
constructor(e) {
|
|
13484
|
-
this.symbol = e, this.readyState = "INACTIVE", this.emitter = new
|
|
13484
|
+
this.symbol = e, this.readyState = "INACTIVE", this.emitter = new Po(), this.subscriptions = [], this.logger = new qo(e.description), this.emitter.setMaxListeners(0), this.logger.info("constructing the interceptor...");
|
|
13485
13485
|
}
|
|
13486
13486
|
/**
|
|
13487
13487
|
* Determine if this interceptor can be applied
|
|
@@ -13550,7 +13550,7 @@ var _a = class {
|
|
|
13550
13550
|
e.info("no interceptors running, skipping dispose...");
|
|
13551
13551
|
return;
|
|
13552
13552
|
}
|
|
13553
|
-
if (this.clearInstance(), e.info("global symbol deleted:",
|
|
13553
|
+
if (this.clearInstance(), e.info("global symbol deleted:", to(this.symbol)), this.subscriptions.length > 0) {
|
|
13554
13554
|
e.info("disposing of %d subscriptions...", this.subscriptions.length);
|
|
13555
13555
|
for (const a of this.subscriptions)
|
|
13556
13556
|
a();
|
|
@@ -13560,7 +13560,7 @@ var _a = class {
|
|
|
13560
13560
|
}
|
|
13561
13561
|
getInstance() {
|
|
13562
13562
|
var e;
|
|
13563
|
-
const a =
|
|
13563
|
+
const a = to(this.symbol);
|
|
13564
13564
|
return this.logger.info("retrieved global instance:", (e = a == null ? void 0 : a.constructor) == null ? void 0 : e.name), a;
|
|
13565
13565
|
}
|
|
13566
13566
|
setInstance() {
|
|
@@ -13570,7 +13570,7 @@ var _a = class {
|
|
|
13570
13570
|
rs(this.symbol), this.logger.info("cleared global instance!", this.symbol.description);
|
|
13571
13571
|
}
|
|
13572
13572
|
};
|
|
13573
|
-
function
|
|
13573
|
+
function Ro() {
|
|
13574
13574
|
return Math.random().toString(16).slice(2);
|
|
13575
13575
|
}
|
|
13576
13576
|
var qa = class extends _a {
|
|
@@ -13700,7 +13700,7 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
|
|
|
13700
13700
|
}
|
|
13701
13701
|
);
|
|
13702
13702
|
};
|
|
13703
|
-
function
|
|
13703
|
+
function To(e = {}) {
|
|
13704
13704
|
e.quiet || console.log(
|
|
13705
13705
|
`%c${B.formatMessage("Mocking disabled.")}`,
|
|
13706
13706
|
"color:orangered;font-weight:bold;"
|
|
@@ -13714,7 +13714,7 @@ var ms = (e) => function() {
|
|
|
13714
13714
|
);
|
|
13715
13715
|
return;
|
|
13716
13716
|
}
|
|
13717
|
-
e.workerChannel.send("MOCK_DEACTIVATE"), e.isMockingEnabled = !1, window.clearInterval(e.keepAliveInterval), window.postMessage({ type: "msw/worker:stop" }),
|
|
13717
|
+
e.workerChannel.send("MOCK_DEACTIVATE"), e.isMockingEnabled = !1, window.clearInterval(e.keepAliveInterval), window.postMessage({ type: "msw/worker:stop" }), To({ quiet: (o = e.startOptions) == null ? void 0 : o.quiet });
|
|
13718
13718
|
}, ps = {
|
|
13719
13719
|
serviceWorker: {
|
|
13720
13720
|
url: "/mockServiceWorker.js",
|
|
@@ -13746,7 +13746,7 @@ function hs() {
|
|
|
13746
13746
|
};
|
|
13747
13747
|
return e;
|
|
13748
13748
|
}
|
|
13749
|
-
var Ee, Te, ta,
|
|
13749
|
+
var Ee, Te, ta, co, Ba = (co = class extends Promise {
|
|
13750
13750
|
constructor(a = null) {
|
|
13751
13751
|
const o = hs();
|
|
13752
13752
|
super((t, i) => {
|
|
@@ -13778,7 +13778,7 @@ var Ee, Te, ta, uo, Ba = (uo = class extends Promise {
|
|
|
13778
13778
|
resolve: { configurable: !0, value: this.resolve },
|
|
13779
13779
|
reject: { configurable: !0, value: this.reject }
|
|
13780
13780
|
});
|
|
13781
|
-
},
|
|
13781
|
+
}, co), ra = class extends Error {
|
|
13782
13782
|
constructor(e) {
|
|
13783
13783
|
super(e), this.name = "InterceptorError", Object.setPrototypeOf(this, ra.prototype);
|
|
13784
13784
|
}
|
|
@@ -13855,7 +13855,7 @@ function ks(e) {
|
|
|
13855
13855
|
function fs(e) {
|
|
13856
13856
|
return e == null || !(e instanceof Error) ? !1 : "code" in e && "errno" in e;
|
|
13857
13857
|
}
|
|
13858
|
-
async function
|
|
13858
|
+
async function Oo(e) {
|
|
13859
13859
|
const a = async (s) => (s instanceof Error ? e.onError(s) : ks(s) ? e.onRequestError(s) : await e.onResponse(s), !0), o = async (s) => {
|
|
13860
13860
|
if (s instanceof ra)
|
|
13861
13861
|
throw i.error;
|
|
@@ -13914,7 +13914,7 @@ async function To(e) {
|
|
|
13914
13914
|
}
|
|
13915
13915
|
return i.data ? a(i.data) : !1;
|
|
13916
13916
|
}
|
|
13917
|
-
function
|
|
13917
|
+
function _o(e) {
|
|
13918
13918
|
const a = Object.getOwnPropertyDescriptor(globalThis, e);
|
|
13919
13919
|
return typeof a > "u" || typeof a.get == "function" && typeof a.get() > "u" || typeof a.get > "u" && a.value == null ? !1 : typeof a.set > "u" && !a.configurable ? (console.error(
|
|
13920
13920
|
`[MSW] Failed to apply interceptor: the global \`${e}\` property is non-configurable. This is likely an issue with your environment. If you are using a framework, please open an issue about this in their repository.`
|
|
@@ -13957,16 +13957,16 @@ async function js(e, a) {
|
|
|
13957
13957
|
return Promise.reject(Se("redirect count exceeded"));
|
|
13958
13958
|
if (Object.defineProperty(e, wa, {
|
|
13959
13959
|
value: (Reflect.get(e, wa) || 0) + 1
|
|
13960
|
-
}), e.mode === "cors" && (t.username || t.password) && !
|
|
13960
|
+
}), e.mode === "cors" && (t.username || t.password) && !io(o, t))
|
|
13961
13961
|
return Promise.reject(
|
|
13962
13962
|
Se('cross origin not allowed for request mode "cors"')
|
|
13963
13963
|
);
|
|
13964
13964
|
const i = {};
|
|
13965
13965
|
return ([301, 302].includes(a.status) && e.method === "POST" || a.status === 303 && !["HEAD", "GET"].includes(e.method)) && (i.method = "GET", i.body = null, ys.forEach((s) => {
|
|
13966
13966
|
e.headers.delete(s);
|
|
13967
|
-
})),
|
|
13967
|
+
})), io(o, t) || (e.headers.delete("authorization"), e.headers.delete("proxy-authorization"), e.headers.delete("cookie"), e.headers.delete("host")), i.headers = e.headers, fetch(new Request(t, i));
|
|
13968
13968
|
}
|
|
13969
|
-
function
|
|
13969
|
+
function io(e, a) {
|
|
13970
13970
|
return e.origin === a.origin && e.origin === "null" || e.protocol === a.protocol && e.hostname === a.hostname && e.port === a.port;
|
|
13971
13971
|
}
|
|
13972
13972
|
var vs = class extends TransformStream {
|
|
@@ -14015,12 +14015,12 @@ function zs(e) {
|
|
|
14015
14015
|
);
|
|
14016
14016
|
return a ? (e.body.pipeTo(a.writable), a.readable) : null;
|
|
14017
14017
|
}
|
|
14018
|
-
var
|
|
14018
|
+
var Bo = class extends _a {
|
|
14019
14019
|
constructor() {
|
|
14020
|
-
super(
|
|
14020
|
+
super(Bo.symbol);
|
|
14021
14021
|
}
|
|
14022
14022
|
checkEnvironment() {
|
|
14023
|
-
return
|
|
14023
|
+
return _o("fetch");
|
|
14024
14024
|
}
|
|
14025
14025
|
async setup() {
|
|
14026
14026
|
const e = globalThis.fetch;
|
|
@@ -14028,11 +14028,11 @@ var _o = class extends _a {
|
|
|
14028
14028
|
!e[Pe],
|
|
14029
14029
|
'Failed to patch the "fetch" module: already patched.'
|
|
14030
14030
|
), globalThis.fetch = async (a, o) => {
|
|
14031
|
-
const t =
|
|
14031
|
+
const t = Ro(), i = typeof a == "string" && typeof location < "u" && !bs(a) ? new URL(a, location.origin) : a, s = new Request(i, o), n = new Ba(), r = new Ma(s);
|
|
14032
14032
|
return this.logger.info("[%s] %s", s.method, s.url), this.logger.info("awaiting for the mocked response..."), this.logger.info(
|
|
14033
14033
|
'emitting the "request" event for %s listener(s)...',
|
|
14034
14034
|
this.emitter.listenerCount("request")
|
|
14035
|
-
), await
|
|
14035
|
+
), await Oo({
|
|
14036
14036
|
request: s,
|
|
14037
14037
|
requestId: t,
|
|
14038
14038
|
emitter: this.emitter,
|
|
@@ -14103,13 +14103,13 @@ var _o = class extends _a {
|
|
|
14103
14103
|
);
|
|
14104
14104
|
});
|
|
14105
14105
|
}
|
|
14106
|
-
},
|
|
14107
|
-
|
|
14106
|
+
}, Mo = Bo;
|
|
14107
|
+
Mo.symbol = Symbol("fetch");
|
|
14108
14108
|
function Ss(e, a) {
|
|
14109
14109
|
const o = new Uint8Array(e.byteLength + a.byteLength);
|
|
14110
14110
|
return o.set(e, 0), o.set(a, e.byteLength), o;
|
|
14111
14111
|
}
|
|
14112
|
-
var
|
|
14112
|
+
var $o = class {
|
|
14113
14113
|
constructor(e, a) {
|
|
14114
14114
|
this.NONE = 0, this.CAPTURING_PHASE = 1, this.AT_TARGET = 2, this.BUBBLING_PHASE = 3, this.type = "", this.srcElement = null, this.currentTarget = null, this.eventPhase = 0, this.isTrusted = !0, this.composed = !1, this.cancelable = !0, this.defaultPrevented = !1, this.bubbles = !0, this.lengthComputable = !0, this.loaded = 0, this.total = 0, this.cancelBubble = !1, this.returnValue = !0, this.type = e, this.target = (a == null ? void 0 : a.target) || null, this.currentTarget = (a == null ? void 0 : a.currentTarget) || null, this.timeStamp = Date.now();
|
|
14115
14115
|
}
|
|
@@ -14126,7 +14126,7 @@ var Mo = class {
|
|
|
14126
14126
|
}
|
|
14127
14127
|
stopImmediatePropagation() {
|
|
14128
14128
|
}
|
|
14129
|
-
}, Cs = class extends
|
|
14129
|
+
}, Cs = class extends $o {
|
|
14130
14130
|
constructor(e, a) {
|
|
14131
14131
|
super(e), this.lengthComputable = (a == null ? void 0 : a.lengthComputable) || !1, this.composed = (a == null ? void 0 : a.composed) || !1, this.loaded = (a == null ? void 0 : a.loaded) || 0, this.total = (a == null ? void 0 : a.total) || 0;
|
|
14132
14132
|
}
|
|
@@ -14145,18 +14145,18 @@ function Ls(e, a, o) {
|
|
|
14145
14145
|
lengthComputable: !0,
|
|
14146
14146
|
loaded: (o == null ? void 0 : o.loaded) || 0,
|
|
14147
14147
|
total: (o == null ? void 0 : o.total) || 0
|
|
14148
|
-
}) : new
|
|
14148
|
+
}) : new $o(a, {
|
|
14149
14149
|
target: e,
|
|
14150
14150
|
currentTarget: e
|
|
14151
14151
|
});
|
|
14152
14152
|
}
|
|
14153
|
-
function
|
|
14153
|
+
function Uo(e, a) {
|
|
14154
14154
|
if (!(a in e))
|
|
14155
14155
|
return null;
|
|
14156
14156
|
if (Object.prototype.hasOwnProperty.call(e, a))
|
|
14157
14157
|
return e;
|
|
14158
14158
|
const t = Reflect.getPrototypeOf(e);
|
|
14159
|
-
return t ?
|
|
14159
|
+
return t ? Uo(t, a) : null;
|
|
14160
14160
|
}
|
|
14161
14161
|
function Ea(e, a) {
|
|
14162
14162
|
return new Proxy(e, Is(a));
|
|
@@ -14168,7 +14168,7 @@ function Is(e) {
|
|
|
14168
14168
|
return a.call(m, r, h);
|
|
14169
14169
|
}), s.set = function(n, r, m) {
|
|
14170
14170
|
const h = () => {
|
|
14171
|
-
const f =
|
|
14171
|
+
const f = Uo(n, r) || n, l = Reflect.getOwnPropertyDescriptor(
|
|
14172
14172
|
f,
|
|
14173
14173
|
r
|
|
14174
14174
|
);
|
|
@@ -14225,13 +14225,13 @@ function Ps(e) {
|
|
|
14225
14225
|
}
|
|
14226
14226
|
return a;
|
|
14227
14227
|
}
|
|
14228
|
-
async function
|
|
14228
|
+
async function so(e) {
|
|
14229
14229
|
const a = e.headers.get("content-length");
|
|
14230
14230
|
return a != null && a !== "" ? Number(a) : (await e.arrayBuffer()).byteLength;
|
|
14231
14231
|
}
|
|
14232
14232
|
var We = Symbol("kIsRequestHandled"), Rs = Oa(), xa = Symbol("kFetchRequest"), Ts = class {
|
|
14233
14233
|
constructor(e, a) {
|
|
14234
|
-
this.initialRequest = e, this.logger = a, this.method = "GET", this.url = null, this[We] = !1, this.events = /* @__PURE__ */ new Map(), this.uploadEvents = /* @__PURE__ */ new Map(), this.requestId =
|
|
14234
|
+
this.initialRequest = e, this.logger = a, this.method = "GET", this.url = null, this[We] = !1, this.events = /* @__PURE__ */ new Map(), this.uploadEvents = /* @__PURE__ */ new Map(), this.requestId = Ro(), this.requestHeaders = new Headers(), this.responseBuffer = new Uint8Array(), this.request = Ea(e, {
|
|
14235
14235
|
setProperty: ([o, t], i) => {
|
|
14236
14236
|
switch (o) {
|
|
14237
14237
|
case "ontimeout": {
|
|
@@ -14249,7 +14249,7 @@ var We = Symbol("kIsRequestHandled"), Rs = Oa(), xa = Symbol("kFetchRequest"), T
|
|
|
14249
14249
|
switch (o) {
|
|
14250
14250
|
case "open": {
|
|
14251
14251
|
const [n, r] = t;
|
|
14252
|
-
return typeof r > "u" ? (this.method = "GET", this.url =
|
|
14252
|
+
return typeof r > "u" ? (this.method = "GET", this.url = no(n)) : (this.method = n, this.url = no(r)), this.logger = this.logger.extend(`${this.method} ${this.url.href}`), this.logger.info("open", this.method, this.url.href), i();
|
|
14253
14253
|
}
|
|
14254
14254
|
case "addEventListener": {
|
|
14255
14255
|
const [n, r] = t;
|
|
@@ -14346,7 +14346,7 @@ var We = Symbol("kIsRequestHandled"), Rs = Oa(), xa = Symbol("kFetchRequest"), T
|
|
|
14346
14346
|
*/
|
|
14347
14347
|
async respondWith(e) {
|
|
14348
14348
|
if (this[We] = !0, this[xa]) {
|
|
14349
|
-
const t = await
|
|
14349
|
+
const t = await so(
|
|
14350
14350
|
this[xa]
|
|
14351
14351
|
);
|
|
14352
14352
|
this.trigger("loadstart", this.request.upload, {
|
|
@@ -14406,7 +14406,7 @@ var We = Symbol("kIsRequestHandled"), Rs = Oa(), xa = Symbol("kFetchRequest"), T
|
|
|
14406
14406
|
get: () => this.responseXML
|
|
14407
14407
|
}
|
|
14408
14408
|
});
|
|
14409
|
-
const a = await
|
|
14409
|
+
const a = await so(e.clone());
|
|
14410
14410
|
this.logger.info("calculated response body length", a), this.trigger("loadstart", this.request, {
|
|
14411
14411
|
loaded: 0,
|
|
14412
14412
|
total: a
|
|
@@ -14565,7 +14565,7 @@ var We = Symbol("kIsRequestHandled"), Rs = Oa(), xa = Symbol("kFetchRequest"), T
|
|
|
14565
14565
|
return De(o, "headers", t), this.logger.info("converted request to a Fetch API Request!", o), o;
|
|
14566
14566
|
}
|
|
14567
14567
|
};
|
|
14568
|
-
function
|
|
14568
|
+
function no(e) {
|
|
14569
14569
|
return typeof location > "u" ? new URL(e) : new URL(e.toString(), location.href);
|
|
14570
14570
|
}
|
|
14571
14571
|
function De(e, a, o) {
|
|
@@ -14605,7 +14605,7 @@ function Os({
|
|
|
14605
14605
|
this.logger.info("awaiting mocked response..."), this.logger.info(
|
|
14606
14606
|
'emitting the "request" event for %s listener(s)...',
|
|
14607
14607
|
e.listenerCount("request")
|
|
14608
|
-
), await
|
|
14608
|
+
), await Oo({
|
|
14609
14609
|
request: h,
|
|
14610
14610
|
requestId: f,
|
|
14611
14611
|
controller: l,
|
|
@@ -14641,12 +14641,12 @@ function Os({
|
|
|
14641
14641
|
}
|
|
14642
14642
|
});
|
|
14643
14643
|
}
|
|
14644
|
-
var
|
|
14644
|
+
var No = class extends _a {
|
|
14645
14645
|
constructor() {
|
|
14646
|
-
super(
|
|
14646
|
+
super(No.interceptorSymbol);
|
|
14647
14647
|
}
|
|
14648
14648
|
checkEnvironment() {
|
|
14649
|
-
return
|
|
14649
|
+
return _o("XMLHttpRequest");
|
|
14650
14650
|
}
|
|
14651
14651
|
setup() {
|
|
14652
14652
|
const e = this.logger.extend("setup");
|
|
@@ -14674,15 +14674,15 @@ var Uo = class extends _a {
|
|
|
14674
14674
|
);
|
|
14675
14675
|
});
|
|
14676
14676
|
}
|
|
14677
|
-
},
|
|
14678
|
-
|
|
14677
|
+
}, Wo = No;
|
|
14678
|
+
Wo.interceptorSymbol = Symbol("xhr");
|
|
14679
14679
|
function _s(e, a) {
|
|
14680
14680
|
const o = new qa({
|
|
14681
14681
|
name: "fallback",
|
|
14682
|
-
interceptors: [new
|
|
14682
|
+
interceptors: [new Mo(), new Wo()]
|
|
14683
14683
|
});
|
|
14684
14684
|
return o.on("request", async ({ request: t, requestId: i, controller: s }) => {
|
|
14685
|
-
const n = t.clone(), r = await
|
|
14685
|
+
const n = t.clone(), r = await xo(
|
|
14686
14686
|
t,
|
|
14687
14687
|
i,
|
|
14688
14688
|
e.getRequestHandlers().filter(Ra("RequestHandler")),
|
|
@@ -14720,7 +14720,7 @@ function Bs(e) {
|
|
|
14720
14720
|
e.fallbackInterceptor = _s(
|
|
14721
14721
|
e,
|
|
14722
14722
|
o
|
|
14723
|
-
),
|
|
14723
|
+
), Do({
|
|
14724
14724
|
message: "Mocking enabled (fallback mode).",
|
|
14725
14725
|
quiet: o.quiet
|
|
14726
14726
|
});
|
|
@@ -14729,7 +14729,7 @@ function Bs(e) {
|
|
|
14729
14729
|
function Ms(e) {
|
|
14730
14730
|
return function() {
|
|
14731
14731
|
var o, t;
|
|
14732
|
-
(o = e.fallbackInterceptor) == null || o.dispose(),
|
|
14732
|
+
(o = e.fallbackInterceptor) == null || o.dispose(), To({ quiet: (t = e.startOptions) == null ? void 0 : t.quiet });
|
|
14733
14733
|
};
|
|
14734
14734
|
}
|
|
14735
14735
|
function $s() {
|
|
@@ -14832,7 +14832,7 @@ var Us = class extends Yt {
|
|
|
14832
14832
|
async start(a = {}) {
|
|
14833
14833
|
return a.waitUntilReady === !0 && B.warn(
|
|
14834
14834
|
'The "waitUntilReady" option has been deprecated. Please remove it from this "worker.start()" call. Follow the recommended Browser integration (https://mswjs.io/docs/integrations/browser) to eliminate any race conditions between the Service Worker registration and any requests made by your application on initial render.'
|
|
14835
|
-
), this.context.startOptions =
|
|
14835
|
+
), this.context.startOptions = zo(
|
|
14836
14836
|
ps,
|
|
14837
14837
|
a
|
|
14838
14838
|
), vi({
|
|
@@ -14888,7 +14888,7 @@ const Ws = {
|
|
|
14888
14888
|
Conflict409: (e) => new Na(Ze(e))
|
|
14889
14889
|
}, Gs = {
|
|
14890
14890
|
getDate: (e) => e ? new Date(e) : /* @__PURE__ */ new Date()
|
|
14891
|
-
}, Fa = (e, a) =>
|
|
14891
|
+
}, Fa = (e, a) => lo(e) ? e.map((o) => Fa(o, a)) : mo(e) ? Jo(e, (o) => Fa(o, a)) : a(e);
|
|
14892
14892
|
class Hs {
|
|
14893
14893
|
constructor() {
|
|
14894
14894
|
this.cookies = {};
|
|
@@ -15103,11 +15103,11 @@ class Ks {
|
|
|
15103
15103
|
}
|
|
15104
15104
|
createDbInstance() {
|
|
15105
15105
|
var a;
|
|
15106
|
-
return new
|
|
15106
|
+
return new Ha(((a = this.config) == null ? void 0 : a.database) ?? "defaultIndexDb");
|
|
15107
15107
|
}
|
|
15108
15108
|
async dropDbOnVersionChange(a) {
|
|
15109
15109
|
const o = this.createDbInstance();
|
|
15110
|
-
return await
|
|
15110
|
+
return await Ha.exists(o.name) ? (await o.open(), o.verno !== a ? (await o.delete(), !0) : (o.close(), !1)) : !0;
|
|
15111
15111
|
}
|
|
15112
15112
|
// --- This method signifies that a section of operations is executed in a transaction
|
|
15113
15113
|
async transaction(a) {
|
|
@@ -15161,7 +15161,7 @@ async function Ys(e) {
|
|
|
15161
15161
|
skipTake: async (t, i) => await new U(await e.toArray()).skipTake(t, i)
|
|
15162
15162
|
};
|
|
15163
15163
|
}
|
|
15164
|
-
function
|
|
15164
|
+
function ro(e, a) {
|
|
15165
15165
|
if (!a) return e;
|
|
15166
15166
|
const o = { ...e };
|
|
15167
15167
|
return Object.keys(e).forEach((t) => {
|
|
@@ -15248,7 +15248,7 @@ class Qs {
|
|
|
15248
15248
|
function Zs(...e) {
|
|
15249
15249
|
const a = {};
|
|
15250
15250
|
for (const o of e) {
|
|
15251
|
-
if (!
|
|
15251
|
+
if (!mo(o))
|
|
15252
15252
|
throw new TypeError("All arguments must be of type object");
|
|
15253
15253
|
const t = new Headers(o);
|
|
15254
15254
|
for (const [i, s] of t.entries())
|
|
@@ -15343,7 +15343,7 @@ class on {
|
|
|
15343
15343
|
},
|
|
15344
15344
|
s
|
|
15345
15345
|
);
|
|
15346
|
-
await
|
|
15346
|
+
this.apiDef.artificialDelay === void 0 ? await Ga("real") : this.apiDef.artificialDelay !== 0 && await Ga(this.apiDef.artificialDelay);
|
|
15347
15347
|
const m = new Hs(), h = new Vs();
|
|
15348
15348
|
try {
|
|
15349
15349
|
const l = await this.backend.executeOperation(
|
|
@@ -15382,8 +15382,8 @@ class on {
|
|
|
15382
15382
|
convertRequestParams(a, o) {
|
|
15383
15383
|
return {
|
|
15384
15384
|
...a,
|
|
15385
|
-
pathParams:
|
|
15386
|
-
queryParams:
|
|
15385
|
+
pathParams: ro(a.pathParams, o.pathParamTypes),
|
|
15386
|
+
queryParams: ro(a.queryParams, o.queryParamTypes)
|
|
15387
15387
|
};
|
|
15388
15388
|
}
|
|
15389
15389
|
}
|
|
@@ -15392,7 +15392,7 @@ function tn(e) {
|
|
|
15392
15392
|
let o = [];
|
|
15393
15393
|
return Object.entries(a).forEach(([t, i]) => {
|
|
15394
15394
|
let s = [i.url];
|
|
15395
|
-
|
|
15395
|
+
lo(i.url) && (s = i.url), s.forEach((n) => {
|
|
15396
15396
|
o.push(
|
|
15397
15397
|
Vo[i.method](
|
|
15398
15398
|
`${e.getApiUrl()}${n}`,
|