storybook 9.0.0-alpha.1 → 9.0.0-alpha.10
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/README.md +31 -29
- package/assets/browser/favicon.svg +1 -0
- package/assets/browser/nunito-sans-bold-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-bold.woff2 +0 -0
- package/assets/browser/nunito-sans-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-regular.woff2 +0 -0
- package/assets/docs/addon-controls-args-annotated.png +0 -0
- package/assets/docs/addon-controls-args-background-color.png +0 -0
- package/assets/docs/addon-controls-args-background-string.png +0 -0
- package/assets/docs/addon-controls-args-docs.png +0 -0
- package/assets/docs/addon-controls-args-logging.png +0 -0
- package/assets/docs/addon-controls-args-no-annotation.png +0 -0
- package/assets/docs/addon-controls-args-reflow-slider.png +0 -0
- package/assets/docs/addon-controls-args-reflow.png +0 -0
- package/assets/docs/addon-controls-args-template.png +0 -0
- package/assets/docs/addon-controls-expanded.png +0 -0
- package/assets/docs/addon-controls-hero.gif +0 -0
- package/assets/docs/addon-controls-install.png +0 -0
- package/assets/docs/hero.gif +0 -0
- package/assets/docs/message-reference.png +0 -0
- package/assets/docs/viewport.png +0 -0
- package/assets/server/addon.tsconfig.json +6 -0
- package/assets/server/base-preview-body.html +119 -0
- package/assets/server/base-preview-head.html +451 -0
- package/assets/server/template.ejs +87 -0
- package/bin/index.cjs +1 -1
- package/dist/actions/decorator.d.ts +6 -0
- package/dist/actions/decorator.js +139 -0
- package/dist/actions/index.cjs +127 -0
- package/dist/actions/index.d.ts +105 -0
- package/dist/actions/index.js +112 -0
- package/dist/actions/manager.js +1196 -0
- package/dist/actions/preview.cjs +165 -0
- package/dist/actions/preview.d.ts +55 -0
- package/dist/actions/preview.js +156 -0
- package/dist/babel/index.cjs +54034 -0
- package/dist/babel/index.d.ts +7488 -0
- package/dist/babel/index.js +54044 -0
- package/dist/bin/index.cjs +119 -0
- package/dist/bin/index.js +113 -0
- package/dist/builder-manager/index.cjs +2140 -0
- package/dist/builder-manager/index.d.ts +19 -0
- package/dist/builder-manager/index.js +2162 -0
- package/dist/channels/index.cjs +1913 -0
- package/dist/channels/index.d.ts +108 -0
- package/dist/channels/index.js +1881 -0
- package/dist/cli/bin/index.cjs +2687 -0
- package/dist/cli/bin/index.d.ts +2 -0
- package/dist/cli/bin/index.js +2707 -0
- package/dist/cli/index.cjs +17327 -0
- package/dist/cli/index.d.ts +209 -0
- package/dist/cli/index.js +17349 -0
- package/dist/client-logger/index.cjs +80 -0
- package/dist/client-logger/index.d.ts +29 -0
- package/dist/client-logger/index.js +64 -0
- package/dist/common/index.cjs +20569 -0
- package/dist/common/index.d.ts +949 -0
- package/dist/common/index.js +20654 -0
- package/dist/components/index.cjs +27924 -0
- package/dist/components/index.d.ts +1423 -0
- package/dist/components/index.js +24673 -0
- package/dist/controls/decorator.d.ts +5 -0
- package/dist/controls/decorator.js +8 -0
- package/dist/controls/index.cjs +26 -0
- package/dist/controls/index.d.ts +39 -0
- package/dist/controls/index.js +6 -0
- package/dist/controls/manager.js +5545 -0
- package/dist/controls/preview.cjs +26 -0
- package/dist/controls/preview.d.ts +55 -0
- package/dist/controls/preview.js +9 -0
- package/dist/core-events/index.cjs +167 -0
- package/dist/core-events/index.d.ts +426 -0
- package/dist/core-events/index.js +149 -0
- package/dist/core-server/index.cjs +38183 -0
- package/dist/core-server/index.d.ts +720 -0
- package/dist/core-server/index.js +38272 -0
- package/dist/core-server/presets/common-manager.js +20 -0
- package/dist/core-server/presets/common-override-preset.cjs +4824 -0
- package/dist/core-server/presets/common-override-preset.js +4829 -0
- package/dist/core-server/presets/common-preset.cjs +10231 -0
- package/dist/core-server/presets/common-preset.js +10309 -0
- package/dist/csf/index.cjs +179 -0
- package/dist/csf/index.d.ts +750 -0
- package/dist/csf/index.js +172 -0
- package/dist/csf-tools/index.cjs +1422 -0
- package/dist/csf-tools/index.d.ts +250 -0
- package/dist/csf-tools/index.js +1439 -0
- package/dist/docs-tools/index.cjs +2891 -0
- package/dist/docs-tools/index.d.ts +162 -0
- package/dist/docs-tools/index.js +2876 -0
- package/dist/index.cjs +17 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -7
- package/dist/instrumenter/index.cjs +3485 -0
- package/dist/instrumenter/index.d.ts +104 -0
- package/dist/instrumenter/index.js +4965 -0
- package/dist/manager/globals-module-info.cjs +817 -0
- package/dist/manager/globals-module-info.d.ts +36 -0
- package/dist/manager/globals-module-info.js +804 -0
- package/dist/manager/globals-runtime.js +77536 -0
- package/dist/manager/globals.cjs +47 -0
- package/dist/manager/globals.d.ts +24 -0
- package/dist/manager/globals.js +34 -0
- package/dist/manager/runtime.js +12323 -0
- package/dist/manager-api/index.cjs +11074 -0
- package/dist/manager-api/index.d.ts +1512 -0
- package/dist/manager-api/index.js +4835 -0
- package/dist/manager-errors.d.ts +89 -0
- package/dist/manager-errors.js +99 -0
- package/dist/node-logger/index.cjs +1642 -0
- package/dist/node-logger/index.d.ts +117 -0
- package/dist/node-logger/index.js +1652 -0
- package/dist/preview/globals.cjs +38 -0
- package/dist/preview/globals.d.ts +15 -0
- package/dist/preview/globals.js +25 -0
- package/dist/preview/runtime.js +43629 -0
- package/dist/preview-api/index.cjs +5224 -0
- package/dist/preview-api/index.d.ts +1093 -0
- package/dist/preview-api/index.js +5292 -0
- package/dist/preview-errors.cjs +503 -0
- package/dist/preview-errors.d.ts +212 -0
- package/dist/preview-errors.js +449 -0
- package/dist/router/index.cjs +3296 -0
- package/dist/router/index.d.ts +385 -0
- package/dist/router/index.js +1843 -0
- package/dist/server-errors.cjs +727 -0
- package/dist/server-errors.d.ts +296 -0
- package/dist/server-errors.js +728 -0
- package/dist/telemetry/index.cjs +2756 -0
- package/dist/telemetry/index.d.ts +133 -0
- package/dist/telemetry/index.js +2797 -0
- package/dist/test/index.cjs +35685 -0
- package/dist/test/index.d.ts +186 -0
- package/dist/test/index.js +33751 -0
- package/dist/test/preview.cjs +15869 -0
- package/dist/test/preview.d.ts +54 -0
- package/dist/test/preview.js +14440 -0
- package/dist/test/spy.cjs +257 -0
- package/dist/test/spy.d.ts +66 -0
- package/dist/test/spy.js +239 -0
- package/dist/theming/create.cjs +232 -0
- package/dist/theming/create.d.ts +50 -0
- package/dist/theming/create.js +216 -0
- package/dist/theming/index.cjs +2665 -0
- package/dist/theming/index.d.ts +11939 -0
- package/dist/theming/index.js +2485 -0
- package/dist/types/index.cjs +27 -0
- package/dist/types/index.d.ts +2795 -0
- package/dist/types/index.js +7 -0
- package/dist/viewport/index.cjs +310 -0
- package/dist/viewport/index.d.ts +320 -0
- package/dist/viewport/index.js +290 -0
- package/dist/viewport/manager.js +400 -0
- package/dist/viewport/preview.cjs +35 -0
- package/dist/viewport/preview.d.ts +69 -0
- package/dist/viewport/preview.js +19 -0
- package/package.json +518 -209
- package/.eslintrc.cjs +0 -31
- package/__mocks__/@aw-web-design/x-default-browser.js +0 -2
- package/core/babel/index.cjs +0 -1
- package/core/babel/index.d.ts +0 -2
- package/core/babel/index.js +0 -1
- package/core/builder-manager/index.cjs +0 -1
- package/core/builder-manager/index.d.ts +0 -2
- package/core/builder-manager/index.js +0 -1
- package/core/channels/index.cjs +0 -1
- package/core/channels/index.d.ts +0 -2
- package/core/channels/index.js +0 -1
- package/core/cli/bin/index.cjs +0 -1
- package/core/cli/bin/index.d.ts +0 -2
- package/core/cli/bin/index.js +0 -1
- package/core/cli/index.cjs +0 -1
- package/core/cli/index.d.ts +0 -2
- package/core/cli/index.js +0 -1
- package/core/client-logger/index.cjs +0 -1
- package/core/client-logger/index.d.ts +0 -2
- package/core/client-logger/index.js +0 -1
- package/core/common/index.cjs +0 -1
- package/core/common/index.d.ts +0 -2
- package/core/common/index.js +0 -1
- package/core/components/index.cjs +0 -1
- package/core/components/index.d.ts +0 -2
- package/core/components/index.js +0 -1
- package/core/core-events/index.cjs +0 -1
- package/core/core-events/index.d.ts +0 -2
- package/core/core-events/index.js +0 -1
- package/core/core-server/index.cjs +0 -1
- package/core/core-server/index.d.ts +0 -2
- package/core/core-server/index.js +0 -1
- package/core/core-server/presets/common-manager.js +0 -1
- package/core/core-server/presets/common-override-preset.cjs +0 -1
- package/core/core-server/presets/common-override-preset.js +0 -1
- package/core/core-server/presets/common-preset.cjs +0 -1
- package/core/core-server/presets/common-preset.js +0 -1
- package/core/csf/index.cjs +0 -1
- package/core/csf/index.d.ts +0 -2
- package/core/csf/index.js +0 -1
- package/core/csf-tools/index.cjs +0 -1
- package/core/csf-tools/index.d.ts +0 -2
- package/core/csf-tools/index.js +0 -1
- package/core/docs-tools/index.cjs +0 -1
- package/core/docs-tools/index.d.ts +0 -2
- package/core/docs-tools/index.js +0 -1
- package/core/index.cjs +0 -1
- package/core/index.d.ts +0 -2
- package/core/index.js +0 -1
- package/core/manager/globals-module-info.cjs +0 -1
- package/core/manager/globals-module-info.d.ts +0 -2
- package/core/manager/globals-module-info.js +0 -1
- package/core/manager/globals-runtime.js +0 -1
- package/core/manager/globals.cjs +0 -1
- package/core/manager/globals.d.ts +0 -2
- package/core/manager/globals.js +0 -1
- package/core/manager-api/index.cjs +0 -1
- package/core/manager-api/index.d.ts +0 -2
- package/core/manager-api/index.js +0 -1
- package/core/manager-errors.d.ts +0 -2
- package/core/manager-errors.js +0 -1
- package/core/node-logger/index.cjs +0 -1
- package/core/node-logger/index.d.ts +0 -2
- package/core/node-logger/index.js +0 -1
- package/core/preview/globals.cjs +0 -1
- package/core/preview/globals.d.ts +0 -2
- package/core/preview/globals.js +0 -1
- package/core/preview/runtime.js +0 -1
- package/core/preview-api/index.cjs +0 -1
- package/core/preview-api/index.d.ts +0 -2
- package/core/preview-api/index.js +0 -1
- package/core/preview-errors.cjs +0 -1
- package/core/preview-errors.d.ts +0 -2
- package/core/preview-errors.js +0 -1
- package/core/router/index.cjs +0 -1
- package/core/router/index.d.ts +0 -2
- package/core/router/index.js +0 -1
- package/core/server-errors.cjs +0 -1
- package/core/server-errors.d.ts +0 -2
- package/core/server-errors.js +0 -1
- package/core/telemetry/index.cjs +0 -1
- package/core/telemetry/index.d.ts +0 -2
- package/core/telemetry/index.js +0 -1
- package/core/theming/create.cjs +0 -1
- package/core/theming/create.d.ts +0 -2
- package/core/theming/create.js +0 -1
- package/core/theming/index.cjs +0 -1
- package/core/theming/index.d.ts +0 -2
- package/core/theming/index.js +0 -1
- package/core/types/index.cjs +0 -1
- package/core/types/index.d.ts +0 -2
- package/core/types/index.js +0 -1
- package/core.cjs +0 -0
- package/core.d.ts +0 -0
- package/core.js +0 -1
- package/dist/chunk-OWLSIX54.js +0 -8
- package/dist/core-path.cjs +0 -1
- package/dist/core-path.d.ts +0 -3
- package/dist/core-path.js +0 -9
- package/dist/proxy.cjs +0 -1
- package/dist/proxy.d.ts +0 -2
- package/dist/proxy.js +0 -9
|
@@ -0,0 +1,3485 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var Pt = Object.defineProperty;
|
|
3
|
+
var gr = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var hr = Object.getOwnPropertyNames;
|
|
5
|
+
var yr = Object.prototype.hasOwnProperty;
|
|
6
|
+
var c = (t, e) => Pt(t, "name", { value: e, configurable: !0 });
|
|
7
|
+
var dr = (t, e) => {
|
|
8
|
+
for (var n in e)
|
|
9
|
+
Pt(t, n, { get: e[n], enumerable: !0 });
|
|
10
|
+
}, br = (t, e, n, r) => {
|
|
11
|
+
if (e && typeof e == "object" || typeof e == "function")
|
|
12
|
+
for (let o of hr(e))
|
|
13
|
+
!yr.call(t, o) && o !== n && Pt(t, o, { get: () => e[o], enumerable: !(r = gr(e, o)) || r.enumerable });
|
|
14
|
+
return t;
|
|
15
|
+
};
|
|
16
|
+
var Sr = (t) => br(Pt({}, "__esModule", { value: !0 }), t);
|
|
17
|
+
|
|
18
|
+
// src/instrumenter/index.ts
|
|
19
|
+
var ii = {};
|
|
20
|
+
dr(ii, {
|
|
21
|
+
CallStates: () => cr,
|
|
22
|
+
EVENTS: () => ot,
|
|
23
|
+
instrument: () => mr
|
|
24
|
+
});
|
|
25
|
+
module.exports = Sr(ii);
|
|
26
|
+
|
|
27
|
+
// src/instrumenter/instrumenter.ts
|
|
28
|
+
var fr = require("storybook/internal/client-logger"), yt = require("storybook/internal/core-events"), W = require("@storybook/global");
|
|
29
|
+
|
|
30
|
+
// ../node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js
|
|
31
|
+
var Er = {
|
|
32
|
+
reset: [0, 0],
|
|
33
|
+
bold: [1, 22, "\x1B[22m\x1B[1m"],
|
|
34
|
+
dim: [2, 22, "\x1B[22m\x1B[2m"],
|
|
35
|
+
italic: [3, 23],
|
|
36
|
+
underline: [4, 24],
|
|
37
|
+
inverse: [7, 27],
|
|
38
|
+
hidden: [8, 28],
|
|
39
|
+
strikethrough: [9, 29],
|
|
40
|
+
black: [30, 39],
|
|
41
|
+
red: [31, 39],
|
|
42
|
+
green: [32, 39],
|
|
43
|
+
yellow: [33, 39],
|
|
44
|
+
blue: [34, 39],
|
|
45
|
+
magenta: [35, 39],
|
|
46
|
+
cyan: [36, 39],
|
|
47
|
+
white: [37, 39],
|
|
48
|
+
gray: [90, 39],
|
|
49
|
+
bgBlack: [40, 49],
|
|
50
|
+
bgRed: [41, 49],
|
|
51
|
+
bgGreen: [42, 49],
|
|
52
|
+
bgYellow: [43, 49],
|
|
53
|
+
bgBlue: [44, 49],
|
|
54
|
+
bgMagenta: [45, 49],
|
|
55
|
+
bgCyan: [46, 49],
|
|
56
|
+
bgWhite: [47, 49],
|
|
57
|
+
blackBright: [90, 39],
|
|
58
|
+
redBright: [91, 39],
|
|
59
|
+
greenBright: [92, 39],
|
|
60
|
+
yellowBright: [93, 39],
|
|
61
|
+
blueBright: [94, 39],
|
|
62
|
+
magentaBright: [95, 39],
|
|
63
|
+
cyanBright: [96, 39],
|
|
64
|
+
whiteBright: [97, 39],
|
|
65
|
+
bgBlackBright: [100, 49],
|
|
66
|
+
bgRedBright: [101, 49],
|
|
67
|
+
bgGreenBright: [102, 49],
|
|
68
|
+
bgYellowBright: [103, 49],
|
|
69
|
+
bgBlueBright: [104, 49],
|
|
70
|
+
bgMagentaBright: [105, 49],
|
|
71
|
+
bgCyanBright: [106, 49],
|
|
72
|
+
bgWhiteBright: [107, 49]
|
|
73
|
+
}, _r = Object.entries(Er);
|
|
74
|
+
function vt(t) {
|
|
75
|
+
return String(t);
|
|
76
|
+
}
|
|
77
|
+
c(vt, "a");
|
|
78
|
+
vt.open = "";
|
|
79
|
+
vt.close = "";
|
|
80
|
+
function xe(t = !1) {
|
|
81
|
+
let e = typeof process < "u" ? process : void 0, n = e?.env || {}, r = e?.argv || [];
|
|
82
|
+
return !("NO_COLOR" in n || r.includes("--no-color")) && ("FORCE_COLOR" in n || r.includes("--color") || e?.platform === "win32" || t && n.
|
|
83
|
+
TERM !== "dumb" || "CI" in n) || typeof window < "u" && !!window.chrome;
|
|
84
|
+
}
|
|
85
|
+
c(xe, "C");
|
|
86
|
+
function Fe(t = !1) {
|
|
87
|
+
let e = xe(t), n = /* @__PURE__ */ c((i, a, l, m) => {
|
|
88
|
+
let p = "", f = 0;
|
|
89
|
+
do
|
|
90
|
+
p += i.substring(f, m) + l, f = m + a.length, m = i.indexOf(a, f);
|
|
91
|
+
while (~m);
|
|
92
|
+
return p + i.substring(f);
|
|
93
|
+
}, "i"), r = /* @__PURE__ */ c((i, a, l = i) => {
|
|
94
|
+
let m = /* @__PURE__ */ c((p) => {
|
|
95
|
+
let f = String(p), S = f.indexOf(a, i.length);
|
|
96
|
+
return ~S ? i + n(f, a, l, S) + a : i + f + a;
|
|
97
|
+
}, "o");
|
|
98
|
+
return m.open = i, m.close = a, m;
|
|
99
|
+
}, "g"), o = {
|
|
100
|
+
isColorSupported: e
|
|
101
|
+
}, s = /* @__PURE__ */ c((i) => `\x1B[${i}m`, "d");
|
|
102
|
+
for (let [i, a] of _r)
|
|
103
|
+
o[i] = e ? r(
|
|
104
|
+
s(a[0]),
|
|
105
|
+
s(a[1]),
|
|
106
|
+
a[2]
|
|
107
|
+
) : vt;
|
|
108
|
+
return o;
|
|
109
|
+
}
|
|
110
|
+
c(Fe, "p");
|
|
111
|
+
|
|
112
|
+
// ../node_modules/tinyrainbow/dist/node.js
|
|
113
|
+
var De = require("tty");
|
|
114
|
+
var Cr = process.env.FORCE_TTY !== void 0 || (0, De.isatty)(1);
|
|
115
|
+
var et = Fe(Cr);
|
|
116
|
+
|
|
117
|
+
// ../node_modules/@vitest/pretty-format/dist/index.js
|
|
118
|
+
function Ze(t, e) {
|
|
119
|
+
return e.forEach(function(n) {
|
|
120
|
+
n && typeof n != "string" && !Array.isArray(n) && Object.keys(n).forEach(function(r) {
|
|
121
|
+
if (r !== "default" && !(r in t)) {
|
|
122
|
+
var o = Object.getOwnPropertyDescriptor(n, r);
|
|
123
|
+
Object.defineProperty(t, r, o.get ? o : {
|
|
124
|
+
enumerable: !0,
|
|
125
|
+
get: /* @__PURE__ */ c(function() {
|
|
126
|
+
return n[r];
|
|
127
|
+
}, "get")
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
}), Object.freeze(t);
|
|
132
|
+
}
|
|
133
|
+
c(Ze, "_mergeNamespaces");
|
|
134
|
+
function Tr(t, e) {
|
|
135
|
+
let n = Object.keys(t), r = e === null ? n : n.sort(e);
|
|
136
|
+
if (Object.getOwnPropertySymbols)
|
|
137
|
+
for (let o of Object.getOwnPropertySymbols(t))
|
|
138
|
+
Object.getOwnPropertyDescriptor(t, o).enumerable && r.push(o);
|
|
139
|
+
return r;
|
|
140
|
+
}
|
|
141
|
+
c(Tr, "getKeysOfEnumerableProperties");
|
|
142
|
+
function Ot(t, e, n, r, o, s, i = ": ") {
|
|
143
|
+
let a = "", l = 0, m = t.next();
|
|
144
|
+
if (!m.done) {
|
|
145
|
+
a += e.spacingOuter;
|
|
146
|
+
let p = n + e.indent;
|
|
147
|
+
for (; !m.done; ) {
|
|
148
|
+
if (a += p, l++ === e.maxWidth) {
|
|
149
|
+
a += "\u2026";
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
let f = s(
|
|
153
|
+
m.value[0],
|
|
154
|
+
e,
|
|
155
|
+
p,
|
|
156
|
+
r,
|
|
157
|
+
o
|
|
158
|
+
), S = s(
|
|
159
|
+
m.value[1],
|
|
160
|
+
e,
|
|
161
|
+
p,
|
|
162
|
+
r,
|
|
163
|
+
o
|
|
164
|
+
);
|
|
165
|
+
a += f + i + S, m = t.next(), m.done ? e.min || (a += ",") : a += `,${e.spacingInner}`;
|
|
166
|
+
}
|
|
167
|
+
a += e.spacingOuter + n;
|
|
168
|
+
}
|
|
169
|
+
return a;
|
|
170
|
+
}
|
|
171
|
+
c(Ot, "printIteratorEntries");
|
|
172
|
+
function ne(t, e, n, r, o, s) {
|
|
173
|
+
let i = "", a = 0, l = t.next();
|
|
174
|
+
if (!l.done) {
|
|
175
|
+
i += e.spacingOuter;
|
|
176
|
+
let m = n + e.indent;
|
|
177
|
+
for (; !l.done; ) {
|
|
178
|
+
if (i += m, a++ === e.maxWidth) {
|
|
179
|
+
i += "\u2026";
|
|
180
|
+
break;
|
|
181
|
+
}
|
|
182
|
+
i += s(l.value, e, m, r, o), l = t.next(), l.done ? e.min || (i += ",") : i += `,${e.spacingInner}`;
|
|
183
|
+
}
|
|
184
|
+
i += e.spacingOuter + n;
|
|
185
|
+
}
|
|
186
|
+
return i;
|
|
187
|
+
}
|
|
188
|
+
c(ne, "printIteratorValues");
|
|
189
|
+
function Ft(t, e, n, r, o, s) {
|
|
190
|
+
let i = "";
|
|
191
|
+
t = t instanceof ArrayBuffer ? new DataView(t) : t;
|
|
192
|
+
let a = /* @__PURE__ */ c((m) => m instanceof DataView, "isDataView"), l = a(t) ? t.byteLength : t.length;
|
|
193
|
+
if (l > 0) {
|
|
194
|
+
i += e.spacingOuter;
|
|
195
|
+
let m = n + e.indent;
|
|
196
|
+
for (let p = 0; p < l; p++) {
|
|
197
|
+
if (i += m, p === e.maxWidth) {
|
|
198
|
+
i += "\u2026";
|
|
199
|
+
break;
|
|
200
|
+
}
|
|
201
|
+
(a(t) || p in t) && (i += s(
|
|
202
|
+
a(t) ? t.getInt8(p) : t[p],
|
|
203
|
+
e,
|
|
204
|
+
m,
|
|
205
|
+
r,
|
|
206
|
+
o
|
|
207
|
+
)), p < l - 1 ? i += `,${e.spacingInner}` : e.min || (i += ",");
|
|
208
|
+
}
|
|
209
|
+
i += e.spacingOuter + n;
|
|
210
|
+
}
|
|
211
|
+
return i;
|
|
212
|
+
}
|
|
213
|
+
c(Ft, "printListItems");
|
|
214
|
+
function re(t, e, n, r, o, s) {
|
|
215
|
+
let i = "", a = Tr(t, e.compareKeys);
|
|
216
|
+
if (a.length > 0) {
|
|
217
|
+
i += e.spacingOuter;
|
|
218
|
+
let l = n + e.indent;
|
|
219
|
+
for (let m = 0; m < a.length; m++) {
|
|
220
|
+
let p = a[m], f = s(p, e, l, r, o), S = s(t[p], e, l, r, o);
|
|
221
|
+
i += `${l + f}: ${S}`, m < a.length - 1 ? i += `,${e.spacingInner}` : e.min || (i += ",");
|
|
222
|
+
}
|
|
223
|
+
i += e.spacingOuter + n;
|
|
224
|
+
}
|
|
225
|
+
return i;
|
|
226
|
+
}
|
|
227
|
+
c(re, "printObjectProperties");
|
|
228
|
+
var Or = typeof Symbol == "function" && Symbol.for ? Symbol.for("jest.asymmetricMatcher") : 1267621, It = " ", $r = /* @__PURE__ */ c((t, e, n, r, o, s) => {
|
|
229
|
+
let i = t.toString();
|
|
230
|
+
if (i === "ArrayContaining" || i === "ArrayNotContaining")
|
|
231
|
+
return ++r > e.maxDepth ? `[${i}]` : `${i + It}[${Ft(
|
|
232
|
+
t.sample,
|
|
233
|
+
e,
|
|
234
|
+
n,
|
|
235
|
+
r,
|
|
236
|
+
o,
|
|
237
|
+
s
|
|
238
|
+
)}]`;
|
|
239
|
+
if (i === "ObjectContaining" || i === "ObjectNotContaining")
|
|
240
|
+
return ++r > e.maxDepth ? `[${i}]` : `${i + It}{${re(
|
|
241
|
+
t.sample,
|
|
242
|
+
e,
|
|
243
|
+
n,
|
|
244
|
+
r,
|
|
245
|
+
o,
|
|
246
|
+
s
|
|
247
|
+
)}}`;
|
|
248
|
+
if (i === "StringMatching" || i === "StringNotMatching" || i === "StringContaining" || i === "StringNotContaining")
|
|
249
|
+
return i + It + s(t.sample, e, n, r, o);
|
|
250
|
+
if (typeof t.toAsymmetricMatcher != "function")
|
|
251
|
+
throw new TypeError(
|
|
252
|
+
`Asymmetric matcher ${t.constructor.name} does not implement toAsymmetricMatcher()`
|
|
253
|
+
);
|
|
254
|
+
return t.toAsymmetricMatcher();
|
|
255
|
+
}, "serialize$5"), wr = /* @__PURE__ */ c((t) => t && t.$$typeof === Or, "test$5"), Ar = { serialize: $r, test: wr }, Rr = " ", Qe = /* @__PURE__ */ new Set(
|
|
256
|
+
["DOMStringMap", "NamedNodeMap"]), Nr = /^(?:HTML\w*Collection|NodeList)$/;
|
|
257
|
+
function Pr(t) {
|
|
258
|
+
return Qe.has(t) || Nr.test(t);
|
|
259
|
+
}
|
|
260
|
+
c(Pr, "testName");
|
|
261
|
+
var Ir = /* @__PURE__ */ c((t) => t && t.constructor && !!t.constructor.name && Pr(t.constructor.name), "test$4");
|
|
262
|
+
function Mr(t) {
|
|
263
|
+
return t.constructor.name === "NamedNodeMap";
|
|
264
|
+
}
|
|
265
|
+
c(Mr, "isNamedNodeMap");
|
|
266
|
+
var Lr = /* @__PURE__ */ c((t, e, n, r, o, s) => {
|
|
267
|
+
let i = t.constructor.name;
|
|
268
|
+
return ++r > e.maxDepth ? `[${i}]` : (e.min ? "" : i + Rr) + (Qe.has(i) ? `{${re(
|
|
269
|
+
Mr(t) ? [...t].reduce(
|
|
270
|
+
(a, l) => (a[l.name] = l.value, a),
|
|
271
|
+
{}
|
|
272
|
+
) : { ...t },
|
|
273
|
+
e,
|
|
274
|
+
n,
|
|
275
|
+
r,
|
|
276
|
+
o,
|
|
277
|
+
s
|
|
278
|
+
)}}` : `[${Ft(
|
|
279
|
+
[...t],
|
|
280
|
+
e,
|
|
281
|
+
n,
|
|
282
|
+
r,
|
|
283
|
+
o,
|
|
284
|
+
s
|
|
285
|
+
)}]`);
|
|
286
|
+
}, "serialize$4"), xr = { serialize: Lr, test: Ir };
|
|
287
|
+
function ve(t) {
|
|
288
|
+
return t.replaceAll("<", "<").replaceAll(">", ">");
|
|
289
|
+
}
|
|
290
|
+
c(ve, "escapeHTML");
|
|
291
|
+
function oe(t, e, n, r, o, s, i) {
|
|
292
|
+
let a = r + n.indent, l = n.colors;
|
|
293
|
+
return t.map((m) => {
|
|
294
|
+
let p = e[m], f = i(p, n, a, o, s);
|
|
295
|
+
return typeof p != "string" && (f.includes(`
|
|
296
|
+
`) && (f = n.spacingOuter + a + f + n.spacingOuter + r), f = `{${f}}`), `${n.spacingInner + r + l.prop.open + m + l.prop.close}=${l.value.open}${f}${l.
|
|
297
|
+
value.close}`;
|
|
298
|
+
}).join("");
|
|
299
|
+
}
|
|
300
|
+
c(oe, "printProps");
|
|
301
|
+
function se(t, e, n, r, o, s) {
|
|
302
|
+
return t.map(
|
|
303
|
+
(i) => e.spacingOuter + n + (typeof i == "string" ? tn(i, e) : s(i, e, n, r, o))
|
|
304
|
+
).join("");
|
|
305
|
+
}
|
|
306
|
+
c(se, "printChildren");
|
|
307
|
+
function tn(t, e) {
|
|
308
|
+
let n = e.colors.content;
|
|
309
|
+
return n.open + ve(t) + n.close;
|
|
310
|
+
}
|
|
311
|
+
c(tn, "printText");
|
|
312
|
+
function Fr(t, e) {
|
|
313
|
+
let n = e.colors.comment;
|
|
314
|
+
return `${n.open}<!--${ve(t)}-->${n.close}`;
|
|
315
|
+
}
|
|
316
|
+
c(Fr, "printComment");
|
|
317
|
+
function ie(t, e, n, r, o) {
|
|
318
|
+
let s = r.colors.tag;
|
|
319
|
+
return `${s.open}<${t}${e && s.close + e + r.spacingOuter + o + s.open}${n ? `>${s.close}${n}${r.spacingOuter}${o}${s.open}</${t}` : `${e &&
|
|
320
|
+
!r.min ? "" : " "}/`}>${s.close}`;
|
|
321
|
+
}
|
|
322
|
+
c(ie, "printElement");
|
|
323
|
+
function ce(t, e) {
|
|
324
|
+
let n = e.colors.tag;
|
|
325
|
+
return `${n.open}<${t}${n.close} \u2026${n.open} />${n.close}`;
|
|
326
|
+
}
|
|
327
|
+
c(ce, "printElementAsLeaf");
|
|
328
|
+
var Dr = 1, en = 3, nn = 8, rn = 11, jr = /^(?:(?:HTML|SVG)\w*)?Element$/;
|
|
329
|
+
function Br(t) {
|
|
330
|
+
try {
|
|
331
|
+
return typeof t.hasAttribute == "function" && t.hasAttribute("is");
|
|
332
|
+
} catch {
|
|
333
|
+
return !1;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
c(Br, "testHasAttribute");
|
|
337
|
+
function kr(t) {
|
|
338
|
+
let e = t.constructor.name, { nodeType: n, tagName: r } = t, o = typeof r == "string" && r.includes("-") || Br(t);
|
|
339
|
+
return n === Dr && (jr.test(e) || o) || n === en && e === "Text" || n === nn && e === "Comment" || n === rn && e === "DocumentFragment";
|
|
340
|
+
}
|
|
341
|
+
c(kr, "testNode");
|
|
342
|
+
var zr = /* @__PURE__ */ c((t) => {
|
|
343
|
+
var e;
|
|
344
|
+
return ((e = t?.constructor) == null ? void 0 : e.name) && kr(t);
|
|
345
|
+
}, "test$3");
|
|
346
|
+
function Yr(t) {
|
|
347
|
+
return t.nodeType === en;
|
|
348
|
+
}
|
|
349
|
+
c(Yr, "nodeIsText");
|
|
350
|
+
function Ur(t) {
|
|
351
|
+
return t.nodeType === nn;
|
|
352
|
+
}
|
|
353
|
+
c(Ur, "nodeIsComment");
|
|
354
|
+
function te(t) {
|
|
355
|
+
return t.nodeType === rn;
|
|
356
|
+
}
|
|
357
|
+
c(te, "nodeIsFragment");
|
|
358
|
+
var Wr = /* @__PURE__ */ c((t, e, n, r, o, s) => {
|
|
359
|
+
if (Yr(t))
|
|
360
|
+
return tn(t.data, e);
|
|
361
|
+
if (Ur(t))
|
|
362
|
+
return Fr(t.data, e);
|
|
363
|
+
let i = te(t) ? "DocumentFragment" : t.tagName.toLowerCase();
|
|
364
|
+
return ++r > e.maxDepth ? ce(i, e) : ie(
|
|
365
|
+
i,
|
|
366
|
+
oe(
|
|
367
|
+
te(t) ? [] : Array.from(t.attributes, (a) => a.name).sort(),
|
|
368
|
+
te(t) ? {} : [...t.attributes].reduce(
|
|
369
|
+
(a, l) => (a[l.name] = l.value, a),
|
|
370
|
+
{}
|
|
371
|
+
),
|
|
372
|
+
e,
|
|
373
|
+
n + e.indent,
|
|
374
|
+
r,
|
|
375
|
+
o,
|
|
376
|
+
s
|
|
377
|
+
),
|
|
378
|
+
se(
|
|
379
|
+
Array.prototype.slice.call(t.childNodes || t.children),
|
|
380
|
+
e,
|
|
381
|
+
n + e.indent,
|
|
382
|
+
r,
|
|
383
|
+
o,
|
|
384
|
+
s
|
|
385
|
+
),
|
|
386
|
+
e,
|
|
387
|
+
n
|
|
388
|
+
);
|
|
389
|
+
}, "serialize$3"), Vr = { serialize: Wr, test: zr }, qr = "@@__IMMUTABLE_ITERABLE__@@", Kr = "@@__IMMUTABLE_LIST__@@", Gr = "@@__IMMUTABLE_K\
|
|
390
|
+
EYED__@@", Hr = "@@__IMMUTABLE_MAP__@@", je = "@@__IMMUTABLE_ORDERED__@@", Jr = "@@__IMMUTABLE_RECORD__@@", Xr = "@@__IMMUTABLE_SEQ__@@", Zr = "\
|
|
391
|
+
@@__IMMUTABLE_SET__@@", Qr = "@@__IMMUTABLE_STACK__@@", bt = /* @__PURE__ */ c((t) => `Immutable.${t}`, "getImmutableName"), jt = /* @__PURE__ */ c(
|
|
392
|
+
(t) => `[${t}]`, "printAsLeaf"), Tt = " ", Be = "\u2026";
|
|
393
|
+
function vr(t, e, n, r, o, s, i) {
|
|
394
|
+
return ++r > e.maxDepth ? jt(bt(i)) : `${bt(i) + Tt}{${Ot(
|
|
395
|
+
t.entries(),
|
|
396
|
+
e,
|
|
397
|
+
n,
|
|
398
|
+
r,
|
|
399
|
+
o,
|
|
400
|
+
s
|
|
401
|
+
)}}`;
|
|
402
|
+
}
|
|
403
|
+
c(vr, "printImmutableEntries");
|
|
404
|
+
function to(t) {
|
|
405
|
+
let e = 0;
|
|
406
|
+
return {
|
|
407
|
+
next() {
|
|
408
|
+
if (e < t._keys.length) {
|
|
409
|
+
let n = t._keys[e++];
|
|
410
|
+
return { done: !1, value: [n, t.get(n)] };
|
|
411
|
+
}
|
|
412
|
+
return { done: !0, value: void 0 };
|
|
413
|
+
}
|
|
414
|
+
};
|
|
415
|
+
}
|
|
416
|
+
c(to, "getRecordEntries");
|
|
417
|
+
function eo(t, e, n, r, o, s) {
|
|
418
|
+
let i = bt(t._name || "Record");
|
|
419
|
+
return ++r > e.maxDepth ? jt(i) : `${i + Tt}{${Ot(
|
|
420
|
+
to(t),
|
|
421
|
+
e,
|
|
422
|
+
n,
|
|
423
|
+
r,
|
|
424
|
+
o,
|
|
425
|
+
s
|
|
426
|
+
)}}`;
|
|
427
|
+
}
|
|
428
|
+
c(eo, "printImmutableRecord");
|
|
429
|
+
function no(t, e, n, r, o, s) {
|
|
430
|
+
let i = bt("Seq");
|
|
431
|
+
return ++r > e.maxDepth ? jt(i) : t[Gr] ? `${i + Tt}{${// from Immutable collection of entries or from ECMAScript object
|
|
432
|
+
t._iter || t._object ? Ot(
|
|
433
|
+
t.entries(),
|
|
434
|
+
e,
|
|
435
|
+
n,
|
|
436
|
+
r,
|
|
437
|
+
o,
|
|
438
|
+
s
|
|
439
|
+
) : Be}}` : `${i + Tt}[${t._iter || t._array || t._collection || t._iterable ? ne(
|
|
440
|
+
t.values(),
|
|
441
|
+
e,
|
|
442
|
+
n,
|
|
443
|
+
r,
|
|
444
|
+
o,
|
|
445
|
+
s
|
|
446
|
+
) : Be}]`;
|
|
447
|
+
}
|
|
448
|
+
c(no, "printImmutableSeq");
|
|
449
|
+
function ee(t, e, n, r, o, s, i) {
|
|
450
|
+
return ++r > e.maxDepth ? jt(bt(i)) : `${bt(i) + Tt}[${ne(
|
|
451
|
+
t.values(),
|
|
452
|
+
e,
|
|
453
|
+
n,
|
|
454
|
+
r,
|
|
455
|
+
o,
|
|
456
|
+
s
|
|
457
|
+
)}]`;
|
|
458
|
+
}
|
|
459
|
+
c(ee, "printImmutableValues");
|
|
460
|
+
var ro = /* @__PURE__ */ c((t, e, n, r, o, s) => t[Hr] ? vr(
|
|
461
|
+
t,
|
|
462
|
+
e,
|
|
463
|
+
n,
|
|
464
|
+
r,
|
|
465
|
+
o,
|
|
466
|
+
s,
|
|
467
|
+
t[je] ? "OrderedMap" : "Map"
|
|
468
|
+
) : t[Kr] ? ee(
|
|
469
|
+
t,
|
|
470
|
+
e,
|
|
471
|
+
n,
|
|
472
|
+
r,
|
|
473
|
+
o,
|
|
474
|
+
s,
|
|
475
|
+
"List"
|
|
476
|
+
) : t[Zr] ? ee(
|
|
477
|
+
t,
|
|
478
|
+
e,
|
|
479
|
+
n,
|
|
480
|
+
r,
|
|
481
|
+
o,
|
|
482
|
+
s,
|
|
483
|
+
t[je] ? "OrderedSet" : "Set"
|
|
484
|
+
) : t[Qr] ? ee(
|
|
485
|
+
t,
|
|
486
|
+
e,
|
|
487
|
+
n,
|
|
488
|
+
r,
|
|
489
|
+
o,
|
|
490
|
+
s,
|
|
491
|
+
"Stack"
|
|
492
|
+
) : t[Xr] ? no(t, e, n, r, o, s) : eo(t, e, n, r, o, s), "serialize$2"), oo = /* @__PURE__ */ c((t) => t && (t[qr] === !0 || t[Jr] === !0), "\
|
|
493
|
+
test$2"), so = { serialize: ro, test: oo };
|
|
494
|
+
function on(t) {
|
|
495
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
496
|
+
}
|
|
497
|
+
c(on, "getDefaultExportFromCjs");
|
|
498
|
+
var Mt = { exports: {} }, N = {};
|
|
499
|
+
var ke;
|
|
500
|
+
function io() {
|
|
501
|
+
if (ke) return N;
|
|
502
|
+
ke = 1;
|
|
503
|
+
var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.\
|
|
504
|
+
strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.consumer"), i = Symbol.for("react.context"), a = Symbol.for("react.fo\
|
|
505
|
+
rward_ref"), l = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), f = Symbol.for("react.la\
|
|
506
|
+
zy"), S = Symbol.for("react.offscreen"), y = Symbol.for("react.client.reference");
|
|
507
|
+
function g(u) {
|
|
508
|
+
if (typeof u == "object" && u !== null) {
|
|
509
|
+
var h = u.$$typeof;
|
|
510
|
+
switch (h) {
|
|
511
|
+
case t:
|
|
512
|
+
switch (u = u.type, u) {
|
|
513
|
+
case n:
|
|
514
|
+
case o:
|
|
515
|
+
case r:
|
|
516
|
+
case l:
|
|
517
|
+
case m:
|
|
518
|
+
return u;
|
|
519
|
+
default:
|
|
520
|
+
switch (u = u && u.$$typeof, u) {
|
|
521
|
+
case i:
|
|
522
|
+
case a:
|
|
523
|
+
case f:
|
|
524
|
+
case p:
|
|
525
|
+
return u;
|
|
526
|
+
case s:
|
|
527
|
+
return u;
|
|
528
|
+
default:
|
|
529
|
+
return h;
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
case e:
|
|
533
|
+
return h;
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
return c(g, "typeOf"), N.ContextConsumer = s, N.ContextProvider = i, N.Element = t, N.ForwardRef = a, N.Fragment = n, N.Lazy = f, N.Memo =
|
|
538
|
+
p, N.Portal = e, N.Profiler = o, N.StrictMode = r, N.Suspense = l, N.SuspenseList = m, N.isContextConsumer = function(u) {
|
|
539
|
+
return g(u) === s;
|
|
540
|
+
}, N.isContextProvider = function(u) {
|
|
541
|
+
return g(u) === i;
|
|
542
|
+
}, N.isElement = function(u) {
|
|
543
|
+
return typeof u == "object" && u !== null && u.$$typeof === t;
|
|
544
|
+
}, N.isForwardRef = function(u) {
|
|
545
|
+
return g(u) === a;
|
|
546
|
+
}, N.isFragment = function(u) {
|
|
547
|
+
return g(u) === n;
|
|
548
|
+
}, N.isLazy = function(u) {
|
|
549
|
+
return g(u) === f;
|
|
550
|
+
}, N.isMemo = function(u) {
|
|
551
|
+
return g(u) === p;
|
|
552
|
+
}, N.isPortal = function(u) {
|
|
553
|
+
return g(u) === e;
|
|
554
|
+
}, N.isProfiler = function(u) {
|
|
555
|
+
return g(u) === o;
|
|
556
|
+
}, N.isStrictMode = function(u) {
|
|
557
|
+
return g(u) === r;
|
|
558
|
+
}, N.isSuspense = function(u) {
|
|
559
|
+
return g(u) === l;
|
|
560
|
+
}, N.isSuspenseList = function(u) {
|
|
561
|
+
return g(u) === m;
|
|
562
|
+
}, N.isValidElementType = function(u) {
|
|
563
|
+
return typeof u == "string" || typeof u == "function" || u === n || u === o || u === r || u === l || u === m || u === S || typeof u == "\
|
|
564
|
+
object" && u !== null && (u.$$typeof === f || u.$$typeof === p || u.$$typeof === i || u.$$typeof === s || u.$$typeof === a || u.$$typeof ===
|
|
565
|
+
y || u.getModuleId !== void 0);
|
|
566
|
+
}, N.typeOf = g, N;
|
|
567
|
+
}
|
|
568
|
+
c(io, "requireReactIs_production");
|
|
569
|
+
var P = {};
|
|
570
|
+
var ze;
|
|
571
|
+
function co() {
|
|
572
|
+
return ze || (ze = 1, process.env.NODE_ENV !== "production" && function() {
|
|
573
|
+
function t(u) {
|
|
574
|
+
if (typeof u == "object" && u !== null) {
|
|
575
|
+
var h = u.$$typeof;
|
|
576
|
+
switch (h) {
|
|
577
|
+
case e:
|
|
578
|
+
switch (u = u.type, u) {
|
|
579
|
+
case r:
|
|
580
|
+
case s:
|
|
581
|
+
case o:
|
|
582
|
+
case m:
|
|
583
|
+
case p:
|
|
584
|
+
return u;
|
|
585
|
+
default:
|
|
586
|
+
switch (u = u && u.$$typeof, u) {
|
|
587
|
+
case a:
|
|
588
|
+
case l:
|
|
589
|
+
case S:
|
|
590
|
+
case f:
|
|
591
|
+
return u;
|
|
592
|
+
case i:
|
|
593
|
+
return u;
|
|
594
|
+
default:
|
|
595
|
+
return h;
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
case n:
|
|
599
|
+
return h;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
c(t, "typeOf");
|
|
604
|
+
var e = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("reac\
|
|
605
|
+
t.strict_mode"), s = Symbol.for("react.profiler"), i = Symbol.for("react.consumer"), a = Symbol.for("react.context"), l = Symbol.for("react.\
|
|
606
|
+
forward_ref"), m = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), S = Symbol.for("react.\
|
|
607
|
+
lazy"), y = Symbol.for("react.offscreen"), g = Symbol.for("react.client.reference");
|
|
608
|
+
P.ContextConsumer = i, P.ContextProvider = a, P.Element = e, P.ForwardRef = l, P.Fragment = r, P.Lazy = S, P.Memo = f, P.Portal = n, P.Profiler =
|
|
609
|
+
s, P.StrictMode = o, P.Suspense = m, P.SuspenseList = p, P.isContextConsumer = function(u) {
|
|
610
|
+
return t(u) === i;
|
|
611
|
+
}, P.isContextProvider = function(u) {
|
|
612
|
+
return t(u) === a;
|
|
613
|
+
}, P.isElement = function(u) {
|
|
614
|
+
return typeof u == "object" && u !== null && u.$$typeof === e;
|
|
615
|
+
}, P.isForwardRef = function(u) {
|
|
616
|
+
return t(u) === l;
|
|
617
|
+
}, P.isFragment = function(u) {
|
|
618
|
+
return t(u) === r;
|
|
619
|
+
}, P.isLazy = function(u) {
|
|
620
|
+
return t(u) === S;
|
|
621
|
+
}, P.isMemo = function(u) {
|
|
622
|
+
return t(u) === f;
|
|
623
|
+
}, P.isPortal = function(u) {
|
|
624
|
+
return t(u) === n;
|
|
625
|
+
}, P.isProfiler = function(u) {
|
|
626
|
+
return t(u) === s;
|
|
627
|
+
}, P.isStrictMode = function(u) {
|
|
628
|
+
return t(u) === o;
|
|
629
|
+
}, P.isSuspense = function(u) {
|
|
630
|
+
return t(u) === m;
|
|
631
|
+
}, P.isSuspenseList = function(u) {
|
|
632
|
+
return t(u) === p;
|
|
633
|
+
}, P.isValidElementType = function(u) {
|
|
634
|
+
return typeof u == "string" || typeof u == "function" || u === r || u === s || u === o || u === m || u === p || u === y || typeof u ==
|
|
635
|
+
"object" && u !== null && (u.$$typeof === S || u.$$typeof === f || u.$$typeof === a || u.$$typeof === i || u.$$typeof === l || u.$$typeof ===
|
|
636
|
+
g || u.getModuleId !== void 0);
|
|
637
|
+
}, P.typeOf = t;
|
|
638
|
+
}()), P;
|
|
639
|
+
}
|
|
640
|
+
c(co, "requireReactIs_development$1");
|
|
641
|
+
var Ye;
|
|
642
|
+
function uo() {
|
|
643
|
+
return Ye || (Ye = 1, process.env.NODE_ENV === "production" ? Mt.exports = io() : Mt.exports = co()), Mt.exports;
|
|
644
|
+
}
|
|
645
|
+
c(uo, "requireReactIs$1");
|
|
646
|
+
var sn = /* @__PURE__ */ uo(), lo = /* @__PURE__ */ on(sn), ao = /* @__PURE__ */ Ze({
|
|
647
|
+
__proto__: null,
|
|
648
|
+
default: lo
|
|
649
|
+
}, [sn]), Lt = { exports: {} }, w = {};
|
|
650
|
+
var Ue;
|
|
651
|
+
function fo() {
|
|
652
|
+
if (Ue) return w;
|
|
653
|
+
Ue = 1;
|
|
654
|
+
var t = Symbol.for("react.element"), e = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"),
|
|
655
|
+
o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), i = Symbol.for("react.context"), a = Symbol.for("react.server_context"),
|
|
656
|
+
l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"),
|
|
657
|
+
S = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), g;
|
|
658
|
+
g = Symbol.for("react.module.reference");
|
|
659
|
+
function u(h) {
|
|
660
|
+
if (typeof h == "object" && h !== null) {
|
|
661
|
+
var b = h.$$typeof;
|
|
662
|
+
switch (b) {
|
|
663
|
+
case t:
|
|
664
|
+
switch (h = h.type, h) {
|
|
665
|
+
case n:
|
|
666
|
+
case o:
|
|
667
|
+
case r:
|
|
668
|
+
case m:
|
|
669
|
+
case p:
|
|
670
|
+
return h;
|
|
671
|
+
default:
|
|
672
|
+
switch (h = h && h.$$typeof, h) {
|
|
673
|
+
case a:
|
|
674
|
+
case i:
|
|
675
|
+
case l:
|
|
676
|
+
case S:
|
|
677
|
+
case f:
|
|
678
|
+
case s:
|
|
679
|
+
return h;
|
|
680
|
+
default:
|
|
681
|
+
return b;
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
case e:
|
|
685
|
+
return b;
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
return c(u, "v"), w.ContextConsumer = i, w.ContextProvider = s, w.Element = t, w.ForwardRef = l, w.Fragment = n, w.Lazy = S, w.Memo = f, w.
|
|
690
|
+
Portal = e, w.Profiler = o, w.StrictMode = r, w.Suspense = m, w.SuspenseList = p, w.isAsyncMode = function() {
|
|
691
|
+
return !1;
|
|
692
|
+
}, w.isConcurrentMode = function() {
|
|
693
|
+
return !1;
|
|
694
|
+
}, w.isContextConsumer = function(h) {
|
|
695
|
+
return u(h) === i;
|
|
696
|
+
}, w.isContextProvider = function(h) {
|
|
697
|
+
return u(h) === s;
|
|
698
|
+
}, w.isElement = function(h) {
|
|
699
|
+
return typeof h == "object" && h !== null && h.$$typeof === t;
|
|
700
|
+
}, w.isForwardRef = function(h) {
|
|
701
|
+
return u(h) === l;
|
|
702
|
+
}, w.isFragment = function(h) {
|
|
703
|
+
return u(h) === n;
|
|
704
|
+
}, w.isLazy = function(h) {
|
|
705
|
+
return u(h) === S;
|
|
706
|
+
}, w.isMemo = function(h) {
|
|
707
|
+
return u(h) === f;
|
|
708
|
+
}, w.isPortal = function(h) {
|
|
709
|
+
return u(h) === e;
|
|
710
|
+
}, w.isProfiler = function(h) {
|
|
711
|
+
return u(h) === o;
|
|
712
|
+
}, w.isStrictMode = function(h) {
|
|
713
|
+
return u(h) === r;
|
|
714
|
+
}, w.isSuspense = function(h) {
|
|
715
|
+
return u(h) === m;
|
|
716
|
+
}, w.isSuspenseList = function(h) {
|
|
717
|
+
return u(h) === p;
|
|
718
|
+
}, w.isValidElementType = function(h) {
|
|
719
|
+
return typeof h == "string" || typeof h == "function" || h === n || h === o || h === r || h === m || h === p || h === y || typeof h == "\
|
|
720
|
+
object" && h !== null && (h.$$typeof === S || h.$$typeof === f || h.$$typeof === s || h.$$typeof === i || h.$$typeof === l || h.$$typeof ===
|
|
721
|
+
g || h.getModuleId !== void 0);
|
|
722
|
+
}, w.typeOf = u, w;
|
|
723
|
+
}
|
|
724
|
+
c(fo, "requireReactIs_production_min");
|
|
725
|
+
var A = {};
|
|
726
|
+
var We;
|
|
727
|
+
function mo() {
|
|
728
|
+
return We || (We = 1, process.env.NODE_ENV !== "production" && function() {
|
|
729
|
+
var t = Symbol.for("react.element"), e = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"),
|
|
730
|
+
o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), i = Symbol.for("react.context"), a = Symbol.for("react.server_contex\
|
|
731
|
+
t"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), f = Symbol.for("react.mem\
|
|
732
|
+
o"), S = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), g = !1, u = !1, h = !1, b = !1, _ = !1, O;
|
|
733
|
+
O = Symbol.for("react.module.reference");
|
|
734
|
+
function d(T) {
|
|
735
|
+
return !!(typeof T == "string" || typeof T == "function" || T === n || T === o || _ || T === r || T === m || T === p || b || T === y ||
|
|
736
|
+
g || u || h || typeof T == "object" && T !== null && (T.$$typeof === S || T.$$typeof === f || T.$$typeof === s || T.$$typeof === i || T.
|
|
737
|
+
$$typeof === l || // This needs to include all possible module reference object
|
|
738
|
+
// types supported by any Flight configuration anywhere since
|
|
739
|
+
// we don't know which Flight build this will end up being used
|
|
740
|
+
// with.
|
|
741
|
+
T.$$typeof === O || T.getModuleId !== void 0));
|
|
742
|
+
}
|
|
743
|
+
c(d, "isValidElementType");
|
|
744
|
+
function E(T) {
|
|
745
|
+
if (typeof T == "object" && T !== null) {
|
|
746
|
+
var Qt = T.$$typeof;
|
|
747
|
+
switch (Qt) {
|
|
748
|
+
case t:
|
|
749
|
+
var Nt = T.type;
|
|
750
|
+
switch (Nt) {
|
|
751
|
+
case n:
|
|
752
|
+
case o:
|
|
753
|
+
case r:
|
|
754
|
+
case m:
|
|
755
|
+
case p:
|
|
756
|
+
return Nt;
|
|
757
|
+
default:
|
|
758
|
+
var Le = Nt && Nt.$$typeof;
|
|
759
|
+
switch (Le) {
|
|
760
|
+
case a:
|
|
761
|
+
case i:
|
|
762
|
+
case l:
|
|
763
|
+
case S:
|
|
764
|
+
case f:
|
|
765
|
+
case s:
|
|
766
|
+
return Le;
|
|
767
|
+
default:
|
|
768
|
+
return Qt;
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
case e:
|
|
772
|
+
return Qt;
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
c(E, "typeOf");
|
|
777
|
+
var $ = i, C = s, R = t, J = l, tt = n, L = S, z = f, X = e, V = o, M = r, F = m, D = p, Z = !1, B = !1;
|
|
778
|
+
function K(T) {
|
|
779
|
+
return Z || (Z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
780
|
+
}
|
|
781
|
+
c(K, "isAsyncMode");
|
|
782
|
+
function st(T) {
|
|
783
|
+
return B || (B = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
784
|
+
}
|
|
785
|
+
c(st, "isConcurrentMode");
|
|
786
|
+
function G(T) {
|
|
787
|
+
return E(T) === i;
|
|
788
|
+
}
|
|
789
|
+
c(G, "isContextConsumer");
|
|
790
|
+
function H(T) {
|
|
791
|
+
return E(T) === s;
|
|
792
|
+
}
|
|
793
|
+
c(H, "isContextProvider");
|
|
794
|
+
function ct(T) {
|
|
795
|
+
return typeof T == "object" && T !== null && T.$$typeof === t;
|
|
796
|
+
}
|
|
797
|
+
c(ct, "isElement");
|
|
798
|
+
function Q(T) {
|
|
799
|
+
return E(T) === l;
|
|
800
|
+
}
|
|
801
|
+
c(Q, "isForwardRef");
|
|
802
|
+
function q(T) {
|
|
803
|
+
return E(T) === n;
|
|
804
|
+
}
|
|
805
|
+
c(q, "isFragment");
|
|
806
|
+
function it(T) {
|
|
807
|
+
return E(T) === S;
|
|
808
|
+
}
|
|
809
|
+
c(it, "isLazy");
|
|
810
|
+
function dt(T) {
|
|
811
|
+
return E(T) === f;
|
|
812
|
+
}
|
|
813
|
+
c(dt, "isMemo");
|
|
814
|
+
function at(T) {
|
|
815
|
+
return E(T) === e;
|
|
816
|
+
}
|
|
817
|
+
c(at, "isPortal");
|
|
818
|
+
function Ct(T) {
|
|
819
|
+
return E(T) === o;
|
|
820
|
+
}
|
|
821
|
+
c(Ct, "isProfiler");
|
|
822
|
+
function At(T) {
|
|
823
|
+
return E(T) === r;
|
|
824
|
+
}
|
|
825
|
+
c(At, "isStrictMode");
|
|
826
|
+
function Rt(T) {
|
|
827
|
+
return E(T) === m;
|
|
828
|
+
}
|
|
829
|
+
c(Rt, "isSuspense");
|
|
830
|
+
function pr(T) {
|
|
831
|
+
return E(T) === p;
|
|
832
|
+
}
|
|
833
|
+
c(pr, "isSuspenseList"), A.ContextConsumer = $, A.ContextProvider = C, A.Element = R, A.ForwardRef = J, A.Fragment = tt, A.Lazy = L, A.Memo =
|
|
834
|
+
z, A.Portal = X, A.Profiler = V, A.StrictMode = M, A.Suspense = F, A.SuspenseList = D, A.isAsyncMode = K, A.isConcurrentMode = st, A.isContextConsumer =
|
|
835
|
+
G, A.isContextProvider = H, A.isElement = ct, A.isForwardRef = Q, A.isFragment = q, A.isLazy = it, A.isMemo = dt, A.isPortal = at, A.isProfiler =
|
|
836
|
+
Ct, A.isStrictMode = At, A.isSuspense = Rt, A.isSuspenseList = pr, A.isValidElementType = d, A.typeOf = E;
|
|
837
|
+
}()), A;
|
|
838
|
+
}
|
|
839
|
+
c(mo, "requireReactIs_development");
|
|
840
|
+
var Ve;
|
|
841
|
+
function po() {
|
|
842
|
+
return Ve || (Ve = 1, process.env.NODE_ENV === "production" ? Lt.exports = fo() : Lt.exports = mo()), Lt.exports;
|
|
843
|
+
}
|
|
844
|
+
c(po, "requireReactIs");
|
|
845
|
+
var cn = po(), go = /* @__PURE__ */ on(cn), ho = /* @__PURE__ */ Ze({
|
|
846
|
+
__proto__: null,
|
|
847
|
+
default: go
|
|
848
|
+
}, [cn]), yo = [
|
|
849
|
+
"isAsyncMode",
|
|
850
|
+
"isConcurrentMode",
|
|
851
|
+
"isContextConsumer",
|
|
852
|
+
"isContextProvider",
|
|
853
|
+
"isElement",
|
|
854
|
+
"isForwardRef",
|
|
855
|
+
"isFragment",
|
|
856
|
+
"isLazy",
|
|
857
|
+
"isMemo",
|
|
858
|
+
"isPortal",
|
|
859
|
+
"isProfiler",
|
|
860
|
+
"isStrictMode",
|
|
861
|
+
"isSuspense",
|
|
862
|
+
"isSuspenseList",
|
|
863
|
+
"isValidElementType"
|
|
864
|
+
], mt = Object.fromEntries(
|
|
865
|
+
yo.map((t) => [t, (e) => ho[t](e) || ao[t](e)])
|
|
866
|
+
);
|
|
867
|
+
function un(t, e = []) {
|
|
868
|
+
if (Array.isArray(t))
|
|
869
|
+
for (let n of t)
|
|
870
|
+
un(n, e);
|
|
871
|
+
else t != null && t !== !1 && t !== "" && e.push(t);
|
|
872
|
+
return e;
|
|
873
|
+
}
|
|
874
|
+
c(un, "getChildren");
|
|
875
|
+
function qe(t) {
|
|
876
|
+
let e = t.type;
|
|
877
|
+
if (typeof e == "string")
|
|
878
|
+
return e;
|
|
879
|
+
if (typeof e == "function")
|
|
880
|
+
return e.displayName || e.name || "Unknown";
|
|
881
|
+
if (mt.isFragment(t))
|
|
882
|
+
return "React.Fragment";
|
|
883
|
+
if (mt.isSuspense(t))
|
|
884
|
+
return "React.Suspense";
|
|
885
|
+
if (typeof e == "object" && e !== null) {
|
|
886
|
+
if (mt.isContextProvider(t))
|
|
887
|
+
return "Context.Provider";
|
|
888
|
+
if (mt.isContextConsumer(t))
|
|
889
|
+
return "Context.Consumer";
|
|
890
|
+
if (mt.isForwardRef(t)) {
|
|
891
|
+
if (e.displayName)
|
|
892
|
+
return e.displayName;
|
|
893
|
+
let n = e.render.displayName || e.render.name || "";
|
|
894
|
+
return n === "" ? "ForwardRef" : `ForwardRef(${n})`;
|
|
895
|
+
}
|
|
896
|
+
if (mt.isMemo(t)) {
|
|
897
|
+
let n = e.displayName || e.type.displayName || e.type.name || "";
|
|
898
|
+
return n === "" ? "Memo" : `Memo(${n})`;
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
return "UNDEFINED";
|
|
902
|
+
}
|
|
903
|
+
c(qe, "getType");
|
|
904
|
+
function bo(t) {
|
|
905
|
+
let { props: e } = t;
|
|
906
|
+
return Object.keys(e).filter((n) => n !== "children" && e[n] !== void 0).sort();
|
|
907
|
+
}
|
|
908
|
+
c(bo, "getPropKeys$1");
|
|
909
|
+
var So = /* @__PURE__ */ c((t, e, n, r, o, s) => ++r > e.maxDepth ? ce(qe(t), e) : ie(
|
|
910
|
+
qe(t),
|
|
911
|
+
oe(
|
|
912
|
+
bo(t),
|
|
913
|
+
t.props,
|
|
914
|
+
e,
|
|
915
|
+
n + e.indent,
|
|
916
|
+
r,
|
|
917
|
+
o,
|
|
918
|
+
s
|
|
919
|
+
),
|
|
920
|
+
se(
|
|
921
|
+
un(t.props.children),
|
|
922
|
+
e,
|
|
923
|
+
n + e.indent,
|
|
924
|
+
r,
|
|
925
|
+
o,
|
|
926
|
+
s
|
|
927
|
+
),
|
|
928
|
+
e,
|
|
929
|
+
n
|
|
930
|
+
), "serialize$1"), Eo = /* @__PURE__ */ c((t) => t != null && mt.isElement(t), "test$1"), _o = { serialize: So, test: Eo }, Co = typeof Symbol ==
|
|
931
|
+
"function" && Symbol.for ? Symbol.for("react.test.json") : 245830487;
|
|
932
|
+
function To(t) {
|
|
933
|
+
let { props: e } = t;
|
|
934
|
+
return e ? Object.keys(e).filter((n) => e[n] !== void 0).sort() : [];
|
|
935
|
+
}
|
|
936
|
+
c(To, "getPropKeys");
|
|
937
|
+
var Oo = /* @__PURE__ */ c((t, e, n, r, o, s) => ++r > e.maxDepth ? ce(t.type, e) : ie(
|
|
938
|
+
t.type,
|
|
939
|
+
t.props ? oe(
|
|
940
|
+
To(t),
|
|
941
|
+
t.props,
|
|
942
|
+
e,
|
|
943
|
+
n + e.indent,
|
|
944
|
+
r,
|
|
945
|
+
o,
|
|
946
|
+
s
|
|
947
|
+
) : "",
|
|
948
|
+
t.children ? se(
|
|
949
|
+
t.children,
|
|
950
|
+
e,
|
|
951
|
+
n + e.indent,
|
|
952
|
+
r,
|
|
953
|
+
o,
|
|
954
|
+
s
|
|
955
|
+
) : "",
|
|
956
|
+
e,
|
|
957
|
+
n
|
|
958
|
+
), "serialize"), $o = /* @__PURE__ */ c((t) => t && t.$$typeof === Co, "test"), wo = { serialize: Oo, test: $o }, ln = Object.prototype.toString,
|
|
959
|
+
Ao = Date.prototype.toISOString, Ro = Error.prototype.toString, Ke = RegExp.prototype.toString;
|
|
960
|
+
function xt(t) {
|
|
961
|
+
return typeof t.constructor == "function" && t.constructor.name || "Object";
|
|
962
|
+
}
|
|
963
|
+
c(xt, "getConstructorName");
|
|
964
|
+
function No(t) {
|
|
965
|
+
return typeof window < "u" && t === window;
|
|
966
|
+
}
|
|
967
|
+
c(No, "isWindow");
|
|
968
|
+
var Po = /^Symbol\((.*)\)(.*)$/, Io = /\n/g, Dt = class extends Error {
|
|
969
|
+
static {
|
|
970
|
+
c(this, "PrettyFormatPluginError");
|
|
971
|
+
}
|
|
972
|
+
constructor(e, n) {
|
|
973
|
+
super(e), this.stack = n, this.name = this.constructor.name;
|
|
974
|
+
}
|
|
975
|
+
};
|
|
976
|
+
function Mo(t) {
|
|
977
|
+
return t === "[object Array]" || t === "[object ArrayBuffer]" || t === "[object DataView]" || t === "[object Float32Array]" || t === "[obj\
|
|
978
|
+
ect Float64Array]" || t === "[object Int8Array]" || t === "[object Int16Array]" || t === "[object Int32Array]" || t === "[object Uint8Array]" ||
|
|
979
|
+
t === "[object Uint8ClampedArray]" || t === "[object Uint16Array]" || t === "[object Uint32Array]";
|
|
980
|
+
}
|
|
981
|
+
c(Mo, "isToStringedArrayType");
|
|
982
|
+
function Lo(t) {
|
|
983
|
+
return Object.is(t, -0) ? "-0" : String(t);
|
|
984
|
+
}
|
|
985
|
+
c(Lo, "printNumber");
|
|
986
|
+
function xo(t) {
|
|
987
|
+
return `${t}n`;
|
|
988
|
+
}
|
|
989
|
+
c(xo, "printBigInt");
|
|
990
|
+
function Ge(t, e) {
|
|
991
|
+
return e ? `[Function ${t.name || "anonymous"}]` : "[Function]";
|
|
992
|
+
}
|
|
993
|
+
c(Ge, "printFunction");
|
|
994
|
+
function He(t) {
|
|
995
|
+
return String(t).replace(Po, "Symbol($1)");
|
|
996
|
+
}
|
|
997
|
+
c(He, "printSymbol");
|
|
998
|
+
function Je(t) {
|
|
999
|
+
return `[${Ro.call(t)}]`;
|
|
1000
|
+
}
|
|
1001
|
+
c(Je, "printError");
|
|
1002
|
+
function an(t, e, n, r) {
|
|
1003
|
+
if (t === !0 || t === !1)
|
|
1004
|
+
return `${t}`;
|
|
1005
|
+
if (t === void 0)
|
|
1006
|
+
return "undefined";
|
|
1007
|
+
if (t === null)
|
|
1008
|
+
return "null";
|
|
1009
|
+
let o = typeof t;
|
|
1010
|
+
if (o === "number")
|
|
1011
|
+
return Lo(t);
|
|
1012
|
+
if (o === "bigint")
|
|
1013
|
+
return xo(t);
|
|
1014
|
+
if (o === "string")
|
|
1015
|
+
return r ? `"${t.replaceAll(/"|\\/g, "\\$&")}"` : `"${t}"`;
|
|
1016
|
+
if (o === "function")
|
|
1017
|
+
return Ge(t, e);
|
|
1018
|
+
if (o === "symbol")
|
|
1019
|
+
return He(t);
|
|
1020
|
+
let s = ln.call(t);
|
|
1021
|
+
return s === "[object WeakMap]" ? "WeakMap {}" : s === "[object WeakSet]" ? "WeakSet {}" : s === "[object Function]" || s === "[object Gen\
|
|
1022
|
+
eratorFunction]" ? Ge(t, e) : s === "[object Symbol]" ? He(t) : s === "[object Date]" ? Number.isNaN(+t) ? "Date { NaN }" : Ao.call(t) : s ===
|
|
1023
|
+
"[object Error]" ? Je(t) : s === "[object RegExp]" ? n ? Ke.call(t).replaceAll(/[$()*+.?[\\\]^{|}]/g, "\\$&") : Ke.call(t) : t instanceof Error ?
|
|
1024
|
+
Je(t) : null;
|
|
1025
|
+
}
|
|
1026
|
+
c(an, "printBasicValue");
|
|
1027
|
+
function fn(t, e, n, r, o, s) {
|
|
1028
|
+
if (o.includes(t))
|
|
1029
|
+
return "[Circular]";
|
|
1030
|
+
o = [...o], o.push(t);
|
|
1031
|
+
let i = ++r > e.maxDepth, a = e.min;
|
|
1032
|
+
if (e.callToJSON && !i && t.toJSON && typeof t.toJSON == "function" && !s)
|
|
1033
|
+
return ft(t.toJSON(), e, n, r, o, !0);
|
|
1034
|
+
let l = ln.call(t);
|
|
1035
|
+
return l === "[object Arguments]" ? i ? "[Arguments]" : `${a ? "" : "Arguments "}[${Ft(
|
|
1036
|
+
t,
|
|
1037
|
+
e,
|
|
1038
|
+
n,
|
|
1039
|
+
r,
|
|
1040
|
+
o,
|
|
1041
|
+
ft
|
|
1042
|
+
)}]` : Mo(l) ? i ? `[${t.constructor.name}]` : `${a || !e.printBasicPrototype && t.constructor.name === "Array" ? "" : `${t.constructor.name}\
|
|
1043
|
+
`}[${Ft(t, e, n, r, o, ft)}]` : l === "[object Map]" ? i ? "[Map]" : `Map {${Ot(
|
|
1044
|
+
t.entries(),
|
|
1045
|
+
e,
|
|
1046
|
+
n,
|
|
1047
|
+
r,
|
|
1048
|
+
o,
|
|
1049
|
+
ft,
|
|
1050
|
+
" => "
|
|
1051
|
+
)}}` : l === "[object Set]" ? i ? "[Set]" : `Set {${ne(
|
|
1052
|
+
t.values(),
|
|
1053
|
+
e,
|
|
1054
|
+
n,
|
|
1055
|
+
r,
|
|
1056
|
+
o,
|
|
1057
|
+
ft
|
|
1058
|
+
)}}` : i || No(t) ? `[${xt(t)}]` : `${a || !e.printBasicPrototype && xt(t) === "Object" ? "" : `${xt(t)} `}{${re(
|
|
1059
|
+
t,
|
|
1060
|
+
e,
|
|
1061
|
+
n,
|
|
1062
|
+
r,
|
|
1063
|
+
o,
|
|
1064
|
+
ft
|
|
1065
|
+
)}}`;
|
|
1066
|
+
}
|
|
1067
|
+
c(fn, "printComplexValue");
|
|
1068
|
+
var Fo = {
|
|
1069
|
+
test: /* @__PURE__ */ c((t) => t && t instanceof Error, "test"),
|
|
1070
|
+
serialize(t, e, n, r, o, s) {
|
|
1071
|
+
if (o.includes(t))
|
|
1072
|
+
return "[Circular]";
|
|
1073
|
+
o = [...o, t];
|
|
1074
|
+
let i = ++r > e.maxDepth, { message: a, cause: l, ...m } = t, p = {
|
|
1075
|
+
message: a,
|
|
1076
|
+
...typeof l < "u" ? { cause: l } : {},
|
|
1077
|
+
...t instanceof AggregateError ? { errors: t.errors } : {},
|
|
1078
|
+
...m
|
|
1079
|
+
}, f = t.name !== "Error" ? t.name : xt(t);
|
|
1080
|
+
return i ? `[${f}]` : `${f} {${Ot(
|
|
1081
|
+
Object.entries(p).values(),
|
|
1082
|
+
e,
|
|
1083
|
+
n,
|
|
1084
|
+
r,
|
|
1085
|
+
o,
|
|
1086
|
+
s
|
|
1087
|
+
)}}`;
|
|
1088
|
+
}
|
|
1089
|
+
};
|
|
1090
|
+
function Do(t) {
|
|
1091
|
+
return t.serialize != null;
|
|
1092
|
+
}
|
|
1093
|
+
c(Do, "isNewPlugin");
|
|
1094
|
+
function mn(t, e, n, r, o, s) {
|
|
1095
|
+
let i;
|
|
1096
|
+
try {
|
|
1097
|
+
i = Do(t) ? t.serialize(e, n, r, o, s, ft) : t.print(
|
|
1098
|
+
e,
|
|
1099
|
+
(a) => ft(a, n, r, o, s),
|
|
1100
|
+
(a) => {
|
|
1101
|
+
let l = r + n.indent;
|
|
1102
|
+
return l + a.replaceAll(Io, `
|
|
1103
|
+
${l}`);
|
|
1104
|
+
},
|
|
1105
|
+
{
|
|
1106
|
+
edgeSpacing: n.spacingOuter,
|
|
1107
|
+
min: n.min,
|
|
1108
|
+
spacing: n.spacingInner
|
|
1109
|
+
},
|
|
1110
|
+
n.colors
|
|
1111
|
+
);
|
|
1112
|
+
} catch (a) {
|
|
1113
|
+
throw new Dt(a.message, a.stack);
|
|
1114
|
+
}
|
|
1115
|
+
if (typeof i != "string")
|
|
1116
|
+
throw new TypeError(
|
|
1117
|
+
`pretty-format: Plugin must return type "string" but instead returned "${typeof i}".`
|
|
1118
|
+
);
|
|
1119
|
+
return i;
|
|
1120
|
+
}
|
|
1121
|
+
c(mn, "printPlugin");
|
|
1122
|
+
function pn(t, e) {
|
|
1123
|
+
for (let n of t)
|
|
1124
|
+
try {
|
|
1125
|
+
if (n.test(e))
|
|
1126
|
+
return n;
|
|
1127
|
+
} catch (r) {
|
|
1128
|
+
throw new Dt(r.message, r.stack);
|
|
1129
|
+
}
|
|
1130
|
+
return null;
|
|
1131
|
+
}
|
|
1132
|
+
c(pn, "findPlugin");
|
|
1133
|
+
function ft(t, e, n, r, o, s) {
|
|
1134
|
+
let i = pn(e.plugins, t);
|
|
1135
|
+
if (i !== null)
|
|
1136
|
+
return mn(i, t, e, n, r, o);
|
|
1137
|
+
let a = an(
|
|
1138
|
+
t,
|
|
1139
|
+
e.printFunctionName,
|
|
1140
|
+
e.escapeRegex,
|
|
1141
|
+
e.escapeString
|
|
1142
|
+
);
|
|
1143
|
+
return a !== null ? a : fn(
|
|
1144
|
+
t,
|
|
1145
|
+
e,
|
|
1146
|
+
n,
|
|
1147
|
+
r,
|
|
1148
|
+
o,
|
|
1149
|
+
s
|
|
1150
|
+
);
|
|
1151
|
+
}
|
|
1152
|
+
c(ft, "printer");
|
|
1153
|
+
var ue = {
|
|
1154
|
+
comment: "gray",
|
|
1155
|
+
content: "reset",
|
|
1156
|
+
prop: "yellow",
|
|
1157
|
+
tag: "cyan",
|
|
1158
|
+
value: "green"
|
|
1159
|
+
}, gn = Object.keys(ue), nt = {
|
|
1160
|
+
callToJSON: !0,
|
|
1161
|
+
compareKeys: void 0,
|
|
1162
|
+
escapeRegex: !1,
|
|
1163
|
+
escapeString: !0,
|
|
1164
|
+
highlight: !1,
|
|
1165
|
+
indent: 2,
|
|
1166
|
+
maxDepth: Number.POSITIVE_INFINITY,
|
|
1167
|
+
maxWidth: Number.POSITIVE_INFINITY,
|
|
1168
|
+
min: !1,
|
|
1169
|
+
plugins: [],
|
|
1170
|
+
printBasicPrototype: !0,
|
|
1171
|
+
printFunctionName: !0,
|
|
1172
|
+
theme: ue
|
|
1173
|
+
};
|
|
1174
|
+
function jo(t) {
|
|
1175
|
+
for (let e of Object.keys(t))
|
|
1176
|
+
if (!Object.prototype.hasOwnProperty.call(nt, e))
|
|
1177
|
+
throw new Error(`pretty-format: Unknown option "${e}".`);
|
|
1178
|
+
if (t.min && t.indent !== void 0 && t.indent !== 0)
|
|
1179
|
+
throw new Error(
|
|
1180
|
+
'pretty-format: Options "min" and "indent" cannot be used together.'
|
|
1181
|
+
);
|
|
1182
|
+
}
|
|
1183
|
+
c(jo, "validateOptions");
|
|
1184
|
+
function Bo() {
|
|
1185
|
+
return gn.reduce((t, e) => {
|
|
1186
|
+
let n = ue[e], r = n && et[n];
|
|
1187
|
+
if (r && typeof r.close == "string" && typeof r.open == "string")
|
|
1188
|
+
t[e] = r;
|
|
1189
|
+
else
|
|
1190
|
+
throw new Error(
|
|
1191
|
+
`pretty-format: Option "theme" has a key "${e}" whose value "${n}" is undefined in ansi-styles.`
|
|
1192
|
+
);
|
|
1193
|
+
return t;
|
|
1194
|
+
}, /* @__PURE__ */ Object.create(null));
|
|
1195
|
+
}
|
|
1196
|
+
c(Bo, "getColorsHighlight");
|
|
1197
|
+
function ko() {
|
|
1198
|
+
return gn.reduce((t, e) => (t[e] = { close: "", open: "" }, t), /* @__PURE__ */ Object.create(null));
|
|
1199
|
+
}
|
|
1200
|
+
c(ko, "getColorsEmpty");
|
|
1201
|
+
function hn(t) {
|
|
1202
|
+
return t?.printFunctionName ?? nt.printFunctionName;
|
|
1203
|
+
}
|
|
1204
|
+
c(hn, "getPrintFunctionName");
|
|
1205
|
+
function yn(t) {
|
|
1206
|
+
return t?.escapeRegex ?? nt.escapeRegex;
|
|
1207
|
+
}
|
|
1208
|
+
c(yn, "getEscapeRegex");
|
|
1209
|
+
function dn(t) {
|
|
1210
|
+
return t?.escapeString ?? nt.escapeString;
|
|
1211
|
+
}
|
|
1212
|
+
c(dn, "getEscapeString");
|
|
1213
|
+
function Xe(t) {
|
|
1214
|
+
return {
|
|
1215
|
+
callToJSON: t?.callToJSON ?? nt.callToJSON,
|
|
1216
|
+
colors: t?.highlight ? Bo() : ko(),
|
|
1217
|
+
compareKeys: typeof t?.compareKeys == "function" || t?.compareKeys === null ? t.compareKeys : nt.compareKeys,
|
|
1218
|
+
escapeRegex: yn(t),
|
|
1219
|
+
escapeString: dn(t),
|
|
1220
|
+
indent: t?.min ? "" : zo(t?.indent ?? nt.indent),
|
|
1221
|
+
maxDepth: t?.maxDepth ?? nt.maxDepth,
|
|
1222
|
+
maxWidth: t?.maxWidth ?? nt.maxWidth,
|
|
1223
|
+
min: t?.min ?? nt.min,
|
|
1224
|
+
plugins: t?.plugins ?? nt.plugins,
|
|
1225
|
+
printBasicPrototype: t?.printBasicPrototype ?? !0,
|
|
1226
|
+
printFunctionName: hn(t),
|
|
1227
|
+
spacingInner: t?.min ? " " : `
|
|
1228
|
+
`,
|
|
1229
|
+
spacingOuter: t?.min ? "" : `
|
|
1230
|
+
`
|
|
1231
|
+
};
|
|
1232
|
+
}
|
|
1233
|
+
c(Xe, "getConfig");
|
|
1234
|
+
function zo(t) {
|
|
1235
|
+
return Array.from({ length: t + 1 }).join(" ");
|
|
1236
|
+
}
|
|
1237
|
+
c(zo, "createIndent");
|
|
1238
|
+
function v(t, e) {
|
|
1239
|
+
if (e && (jo(e), e.plugins)) {
|
|
1240
|
+
let r = pn(e.plugins, t);
|
|
1241
|
+
if (r !== null)
|
|
1242
|
+
return mn(r, t, Xe(e), "", 0, []);
|
|
1243
|
+
}
|
|
1244
|
+
let n = an(
|
|
1245
|
+
t,
|
|
1246
|
+
hn(e),
|
|
1247
|
+
yn(e),
|
|
1248
|
+
dn(e)
|
|
1249
|
+
);
|
|
1250
|
+
return n !== null ? n : fn(t, Xe(e), "", 0, []);
|
|
1251
|
+
}
|
|
1252
|
+
c(v, "format");
|
|
1253
|
+
var $t = {
|
|
1254
|
+
AsymmetricMatcher: Ar,
|
|
1255
|
+
DOMCollection: xr,
|
|
1256
|
+
DOMElement: Vr,
|
|
1257
|
+
Immutable: so,
|
|
1258
|
+
ReactElement: _o,
|
|
1259
|
+
ReactTestComponent: wo,
|
|
1260
|
+
Error: Fo
|
|
1261
|
+
};
|
|
1262
|
+
|
|
1263
|
+
// ../node_modules/loupe/lib/helpers.js
|
|
1264
|
+
var bn = {
|
|
1265
|
+
bold: ["1", "22"],
|
|
1266
|
+
dim: ["2", "22"],
|
|
1267
|
+
italic: ["3", "23"],
|
|
1268
|
+
underline: ["4", "24"],
|
|
1269
|
+
// 5 & 6 are blinking
|
|
1270
|
+
inverse: ["7", "27"],
|
|
1271
|
+
hidden: ["8", "28"],
|
|
1272
|
+
strike: ["9", "29"],
|
|
1273
|
+
// 10-20 are fonts
|
|
1274
|
+
// 21-29 are resets for 1-9
|
|
1275
|
+
black: ["30", "39"],
|
|
1276
|
+
red: ["31", "39"],
|
|
1277
|
+
green: ["32", "39"],
|
|
1278
|
+
yellow: ["33", "39"],
|
|
1279
|
+
blue: ["34", "39"],
|
|
1280
|
+
magenta: ["35", "39"],
|
|
1281
|
+
cyan: ["36", "39"],
|
|
1282
|
+
white: ["37", "39"],
|
|
1283
|
+
brightblack: ["30;1", "39"],
|
|
1284
|
+
brightred: ["31;1", "39"],
|
|
1285
|
+
brightgreen: ["32;1", "39"],
|
|
1286
|
+
brightyellow: ["33;1", "39"],
|
|
1287
|
+
brightblue: ["34;1", "39"],
|
|
1288
|
+
brightmagenta: ["35;1", "39"],
|
|
1289
|
+
brightcyan: ["36;1", "39"],
|
|
1290
|
+
brightwhite: ["37;1", "39"],
|
|
1291
|
+
grey: ["90", "39"]
|
|
1292
|
+
}, Yo = {
|
|
1293
|
+
special: "cyan",
|
|
1294
|
+
number: "yellow",
|
|
1295
|
+
bigint: "yellow",
|
|
1296
|
+
boolean: "yellow",
|
|
1297
|
+
undefined: "grey",
|
|
1298
|
+
null: "bold",
|
|
1299
|
+
string: "green",
|
|
1300
|
+
symbol: "green",
|
|
1301
|
+
date: "magenta",
|
|
1302
|
+
regexp: "red"
|
|
1303
|
+
}, ut = "\u2026";
|
|
1304
|
+
function Uo(t, e) {
|
|
1305
|
+
let n = bn[Yo[e]] || bn[e] || "";
|
|
1306
|
+
return n ? `\x1B[${n[0]}m${String(t)}\x1B[${n[1]}m` : String(t);
|
|
1307
|
+
}
|
|
1308
|
+
c(Uo, "colorise");
|
|
1309
|
+
function Sn({
|
|
1310
|
+
showHidden: t = !1,
|
|
1311
|
+
depth: e = 2,
|
|
1312
|
+
colors: n = !1,
|
|
1313
|
+
customInspect: r = !0,
|
|
1314
|
+
showProxy: o = !1,
|
|
1315
|
+
maxArrayLength: s = 1 / 0,
|
|
1316
|
+
breakLength: i = 1 / 0,
|
|
1317
|
+
seen: a = [],
|
|
1318
|
+
// eslint-disable-next-line no-shadow
|
|
1319
|
+
truncate: l = 1 / 0,
|
|
1320
|
+
stylize: m = String
|
|
1321
|
+
} = {}, p) {
|
|
1322
|
+
let f = {
|
|
1323
|
+
showHidden: !!t,
|
|
1324
|
+
depth: Number(e),
|
|
1325
|
+
colors: !!n,
|
|
1326
|
+
customInspect: !!r,
|
|
1327
|
+
showProxy: !!o,
|
|
1328
|
+
maxArrayLength: Number(s),
|
|
1329
|
+
breakLength: Number(i),
|
|
1330
|
+
truncate: Number(l),
|
|
1331
|
+
seen: a,
|
|
1332
|
+
inspect: p,
|
|
1333
|
+
stylize: m
|
|
1334
|
+
};
|
|
1335
|
+
return f.colors && (f.stylize = Uo), f;
|
|
1336
|
+
}
|
|
1337
|
+
c(Sn, "normaliseOptions");
|
|
1338
|
+
function Wo(t) {
|
|
1339
|
+
return t >= "\uD800" && t <= "\uDBFF";
|
|
1340
|
+
}
|
|
1341
|
+
c(Wo, "isHighSurrogate");
|
|
1342
|
+
function Y(t, e, n = ut) {
|
|
1343
|
+
t = String(t);
|
|
1344
|
+
let r = n.length, o = t.length;
|
|
1345
|
+
if (r > e && o > r)
|
|
1346
|
+
return n;
|
|
1347
|
+
if (o > e && o > r) {
|
|
1348
|
+
let s = e - r;
|
|
1349
|
+
return s > 0 && Wo(t[s - 1]) && (s = s - 1), `${t.slice(0, s)}${n}`;
|
|
1350
|
+
}
|
|
1351
|
+
return t;
|
|
1352
|
+
}
|
|
1353
|
+
c(Y, "truncate");
|
|
1354
|
+
function j(t, e, n, r = ", ") {
|
|
1355
|
+
n = n || e.inspect;
|
|
1356
|
+
let o = t.length;
|
|
1357
|
+
if (o === 0)
|
|
1358
|
+
return "";
|
|
1359
|
+
let s = e.truncate, i = "", a = "", l = "";
|
|
1360
|
+
for (let m = 0; m < o; m += 1) {
|
|
1361
|
+
let p = m + 1 === t.length, f = m + 2 === t.length;
|
|
1362
|
+
l = `${ut}(${t.length - m})`;
|
|
1363
|
+
let S = t[m];
|
|
1364
|
+
e.truncate = s - i.length - (p ? 0 : r.length);
|
|
1365
|
+
let y = a || n(S, e) + (p ? "" : r), g = i.length + y.length, u = g + l.length;
|
|
1366
|
+
if (p && g > s && i.length + l.length <= s || !p && !f && u > s || (a = p ? "" : n(t[m + 1], e) + (f ? "" : r), !p && f && u > s && g + a.
|
|
1367
|
+
length > s))
|
|
1368
|
+
break;
|
|
1369
|
+
if (i += y, !p && !f && g + a.length >= s) {
|
|
1370
|
+
l = `${ut}(${t.length - m - 1})`;
|
|
1371
|
+
break;
|
|
1372
|
+
}
|
|
1373
|
+
l = "";
|
|
1374
|
+
}
|
|
1375
|
+
return `${i}${l}`;
|
|
1376
|
+
}
|
|
1377
|
+
c(j, "inspectList");
|
|
1378
|
+
function Vo(t) {
|
|
1379
|
+
return t.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/) ? t : JSON.stringify(t).replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'");
|
|
1380
|
+
}
|
|
1381
|
+
c(Vo, "quoteComplexKey");
|
|
1382
|
+
function lt([t, e], n) {
|
|
1383
|
+
return n.truncate -= 2, typeof t == "string" ? t = Vo(t) : typeof t != "number" && (t = `[${n.inspect(t, n)}]`), n.truncate -= t.length, e =
|
|
1384
|
+
n.inspect(e, n), `${t}: ${e}`;
|
|
1385
|
+
}
|
|
1386
|
+
c(lt, "inspectProperty");
|
|
1387
|
+
|
|
1388
|
+
// ../node_modules/loupe/lib/array.js
|
|
1389
|
+
function le(t, e) {
|
|
1390
|
+
let n = Object.keys(t).slice(t.length);
|
|
1391
|
+
if (!t.length && !n.length)
|
|
1392
|
+
return "[]";
|
|
1393
|
+
e.truncate -= 4;
|
|
1394
|
+
let r = j(t, e);
|
|
1395
|
+
e.truncate -= r.length;
|
|
1396
|
+
let o = "";
|
|
1397
|
+
return n.length && (o = j(n.map((s) => [s, t[s]]), e, lt)), `[ ${r}${o ? `, ${o}` : ""} ]`;
|
|
1398
|
+
}
|
|
1399
|
+
c(le, "inspectArray");
|
|
1400
|
+
|
|
1401
|
+
// ../node_modules/loupe/lib/typedarray.js
|
|
1402
|
+
var qo = /* @__PURE__ */ c((t) => typeof Buffer == "function" && t instanceof Buffer ? "Buffer" : t[Symbol.toStringTag] ? t[Symbol.toStringTag] :
|
|
1403
|
+
t.constructor.name, "getArrayName");
|
|
1404
|
+
function rt(t, e) {
|
|
1405
|
+
let n = qo(t);
|
|
1406
|
+
e.truncate -= n.length + 4;
|
|
1407
|
+
let r = Object.keys(t).slice(t.length);
|
|
1408
|
+
if (!t.length && !r.length)
|
|
1409
|
+
return `${n}[]`;
|
|
1410
|
+
let o = "";
|
|
1411
|
+
for (let i = 0; i < t.length; i++) {
|
|
1412
|
+
let a = `${e.stylize(Y(t[i], e.truncate), "number")}${i === t.length - 1 ? "" : ", "}`;
|
|
1413
|
+
if (e.truncate -= a.length, t[i] !== t.length && e.truncate <= 3) {
|
|
1414
|
+
o += `${ut}(${t.length - t[i] + 1})`;
|
|
1415
|
+
break;
|
|
1416
|
+
}
|
|
1417
|
+
o += a;
|
|
1418
|
+
}
|
|
1419
|
+
let s = "";
|
|
1420
|
+
return r.length && (s = j(r.map((i) => [i, t[i]]), e, lt)), `${n}[ ${o}${s ? `, ${s}` : ""} ]`;
|
|
1421
|
+
}
|
|
1422
|
+
c(rt, "inspectTypedArray");
|
|
1423
|
+
|
|
1424
|
+
// ../node_modules/loupe/lib/date.js
|
|
1425
|
+
function ae(t, e) {
|
|
1426
|
+
let n = t.toJSON();
|
|
1427
|
+
if (n === null)
|
|
1428
|
+
return "Invalid Date";
|
|
1429
|
+
let r = n.split("T"), o = r[0];
|
|
1430
|
+
return e.stylize(`${o}T${Y(r[1], e.truncate - o.length - 1)}`, "date");
|
|
1431
|
+
}
|
|
1432
|
+
c(ae, "inspectDate");
|
|
1433
|
+
|
|
1434
|
+
// ../node_modules/loupe/lib/function.js
|
|
1435
|
+
function Bt(t, e) {
|
|
1436
|
+
let n = t[Symbol.toStringTag] || "Function", r = t.name;
|
|
1437
|
+
return r ? e.stylize(`[${n} ${Y(r, e.truncate - 11)}]`, "special") : e.stylize(`[${n}]`, "special");
|
|
1438
|
+
}
|
|
1439
|
+
c(Bt, "inspectFunction");
|
|
1440
|
+
|
|
1441
|
+
// ../node_modules/loupe/lib/map.js
|
|
1442
|
+
function Ko([t, e], n) {
|
|
1443
|
+
return n.truncate -= 4, t = n.inspect(t, n), n.truncate -= t.length, e = n.inspect(e, n), `${t} => ${e}`;
|
|
1444
|
+
}
|
|
1445
|
+
c(Ko, "inspectMapEntry");
|
|
1446
|
+
function Go(t) {
|
|
1447
|
+
let e = [];
|
|
1448
|
+
return t.forEach((n, r) => {
|
|
1449
|
+
e.push([r, n]);
|
|
1450
|
+
}), e;
|
|
1451
|
+
}
|
|
1452
|
+
c(Go, "mapToEntries");
|
|
1453
|
+
function fe(t, e) {
|
|
1454
|
+
return t.size === 0 ? "Map{}" : (e.truncate -= 7, `Map{ ${j(Go(t), e, Ko)} }`);
|
|
1455
|
+
}
|
|
1456
|
+
c(fe, "inspectMap");
|
|
1457
|
+
|
|
1458
|
+
// ../node_modules/loupe/lib/number.js
|
|
1459
|
+
var Ho = Number.isNaN || ((t) => t !== t);
|
|
1460
|
+
function kt(t, e) {
|
|
1461
|
+
return Ho(t) ? e.stylize("NaN", "number") : t === 1 / 0 ? e.stylize("Infinity", "number") : t === -1 / 0 ? e.stylize("-Infinity", "number") :
|
|
1462
|
+
t === 0 ? e.stylize(1 / t === 1 / 0 ? "+0" : "-0", "number") : e.stylize(Y(String(t), e.truncate), "number");
|
|
1463
|
+
}
|
|
1464
|
+
c(kt, "inspectNumber");
|
|
1465
|
+
|
|
1466
|
+
// ../node_modules/loupe/lib/bigint.js
|
|
1467
|
+
function zt(t, e) {
|
|
1468
|
+
let n = Y(t.toString(), e.truncate - 1);
|
|
1469
|
+
return n !== ut && (n += "n"), e.stylize(n, "bigint");
|
|
1470
|
+
}
|
|
1471
|
+
c(zt, "inspectBigInt");
|
|
1472
|
+
|
|
1473
|
+
// ../node_modules/loupe/lib/regexp.js
|
|
1474
|
+
function me(t, e) {
|
|
1475
|
+
let n = t.toString().split("/")[2], r = e.truncate - (2 + n.length), o = t.source;
|
|
1476
|
+
return e.stylize(`/${Y(o, r)}/${n}`, "regexp");
|
|
1477
|
+
}
|
|
1478
|
+
c(me, "inspectRegExp");
|
|
1479
|
+
|
|
1480
|
+
// ../node_modules/loupe/lib/set.js
|
|
1481
|
+
function Jo(t) {
|
|
1482
|
+
let e = [];
|
|
1483
|
+
return t.forEach((n) => {
|
|
1484
|
+
e.push(n);
|
|
1485
|
+
}), e;
|
|
1486
|
+
}
|
|
1487
|
+
c(Jo, "arrayFromSet");
|
|
1488
|
+
function pe(t, e) {
|
|
1489
|
+
return t.size === 0 ? "Set{}" : (e.truncate -= 7, `Set{ ${j(Jo(t), e)} }`);
|
|
1490
|
+
}
|
|
1491
|
+
c(pe, "inspectSet");
|
|
1492
|
+
|
|
1493
|
+
// ../node_modules/loupe/lib/string.js
|
|
1494
|
+
var En = new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\u\
|
|
1495
|
+
ffff]", "g"), Xo = {
|
|
1496
|
+
"\b": "\\b",
|
|
1497
|
+
" ": "\\t",
|
|
1498
|
+
"\n": "\\n",
|
|
1499
|
+
"\f": "\\f",
|
|
1500
|
+
"\r": "\\r",
|
|
1501
|
+
"'": "\\'",
|
|
1502
|
+
"\\": "\\\\"
|
|
1503
|
+
}, Zo = 16, Qo = 4;
|
|
1504
|
+
function vo(t) {
|
|
1505
|
+
return Xo[t] || `\\u${`0000${t.charCodeAt(0).toString(Zo)}`.slice(-Qo)}`;
|
|
1506
|
+
}
|
|
1507
|
+
c(vo, "escape");
|
|
1508
|
+
function Yt(t, e) {
|
|
1509
|
+
return En.test(t) && (t = t.replace(En, vo)), e.stylize(`'${Y(t, e.truncate - 2)}'`, "string");
|
|
1510
|
+
}
|
|
1511
|
+
c(Yt, "inspectString");
|
|
1512
|
+
|
|
1513
|
+
// ../node_modules/loupe/lib/symbol.js
|
|
1514
|
+
function Ut(t) {
|
|
1515
|
+
return "description" in Symbol.prototype ? t.description ? `Symbol(${t.description})` : "Symbol()" : t.toString();
|
|
1516
|
+
}
|
|
1517
|
+
c(Ut, "inspectSymbol");
|
|
1518
|
+
|
|
1519
|
+
// ../node_modules/loupe/lib/promise.js
|
|
1520
|
+
var _n = /* @__PURE__ */ c(() => "Promise{\u2026}", "getPromiseValue");
|
|
1521
|
+
try {
|
|
1522
|
+
let { getPromiseDetails: t, kPending: e, kRejected: n } = process.binding("util");
|
|
1523
|
+
Array.isArray(t(Promise.resolve())) && (_n = /* @__PURE__ */ c((r, o) => {
|
|
1524
|
+
let [s, i] = t(r);
|
|
1525
|
+
return s === e ? "Promise{<pending>}" : `Promise${s === n ? "!" : ""}{${o.inspect(i, o)}}`;
|
|
1526
|
+
}, "getPromiseValue"));
|
|
1527
|
+
} catch {
|
|
1528
|
+
}
|
|
1529
|
+
var Cn = _n;
|
|
1530
|
+
|
|
1531
|
+
// ../node_modules/loupe/lib/object.js
|
|
1532
|
+
function pt(t, e) {
|
|
1533
|
+
let n = Object.getOwnPropertyNames(t), r = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t) : [];
|
|
1534
|
+
if (n.length === 0 && r.length === 0)
|
|
1535
|
+
return "{}";
|
|
1536
|
+
if (e.truncate -= 4, e.seen = e.seen || [], e.seen.includes(t))
|
|
1537
|
+
return "[Circular]";
|
|
1538
|
+
e.seen.push(t);
|
|
1539
|
+
let o = j(n.map((a) => [a, t[a]]), e, lt), s = j(r.map((a) => [a, t[a]]), e, lt);
|
|
1540
|
+
e.seen.pop();
|
|
1541
|
+
let i = "";
|
|
1542
|
+
return o && s && (i = ", "), `{ ${o}${i}${s} }`;
|
|
1543
|
+
}
|
|
1544
|
+
c(pt, "inspectObject");
|
|
1545
|
+
|
|
1546
|
+
// ../node_modules/loupe/lib/class.js
|
|
1547
|
+
var ge = typeof Symbol < "u" && Symbol.toStringTag ? Symbol.toStringTag : !1;
|
|
1548
|
+
function he(t, e) {
|
|
1549
|
+
let n = "";
|
|
1550
|
+
return ge && ge in t && (n = t[ge]), n = n || t.constructor.name, (!n || n === "_class") && (n = "<Anonymous Class>"), e.truncate -= n.length,
|
|
1551
|
+
`${n}${pt(t, e)}`;
|
|
1552
|
+
}
|
|
1553
|
+
c(he, "inspectClass");
|
|
1554
|
+
|
|
1555
|
+
// ../node_modules/loupe/lib/arguments.js
|
|
1556
|
+
function ye(t, e) {
|
|
1557
|
+
return t.length === 0 ? "Arguments[]" : (e.truncate -= 13, `Arguments[ ${j(t, e)} ]`);
|
|
1558
|
+
}
|
|
1559
|
+
c(ye, "inspectArguments");
|
|
1560
|
+
|
|
1561
|
+
// ../node_modules/loupe/lib/error.js
|
|
1562
|
+
var ts = [
|
|
1563
|
+
"stack",
|
|
1564
|
+
"line",
|
|
1565
|
+
"column",
|
|
1566
|
+
"name",
|
|
1567
|
+
"message",
|
|
1568
|
+
"fileName",
|
|
1569
|
+
"lineNumber",
|
|
1570
|
+
"columnNumber",
|
|
1571
|
+
"number",
|
|
1572
|
+
"description",
|
|
1573
|
+
"cause"
|
|
1574
|
+
];
|
|
1575
|
+
function de(t, e) {
|
|
1576
|
+
let n = Object.getOwnPropertyNames(t).filter((i) => ts.indexOf(i) === -1), r = t.name;
|
|
1577
|
+
e.truncate -= r.length;
|
|
1578
|
+
let o = "";
|
|
1579
|
+
if (typeof t.message == "string" ? o = Y(t.message, e.truncate) : n.unshift("message"), o = o ? `: ${o}` : "", e.truncate -= o.length + 5,
|
|
1580
|
+
e.seen = e.seen || [], e.seen.includes(t))
|
|
1581
|
+
return "[Circular]";
|
|
1582
|
+
e.seen.push(t);
|
|
1583
|
+
let s = j(n.map((i) => [i, t[i]]), e, lt);
|
|
1584
|
+
return `${r}${o}${s ? ` { ${s} }` : ""}`;
|
|
1585
|
+
}
|
|
1586
|
+
c(de, "inspectObject");
|
|
1587
|
+
|
|
1588
|
+
// ../node_modules/loupe/lib/html.js
|
|
1589
|
+
function es([t, e], n) {
|
|
1590
|
+
return n.truncate -= 3, e ? `${n.stylize(String(t), "yellow")}=${n.stylize(`"${e}"`, "string")}` : `${n.stylize(String(t), "yellow")}`;
|
|
1591
|
+
}
|
|
1592
|
+
c(es, "inspectAttribute");
|
|
1593
|
+
function Wt(t, e) {
|
|
1594
|
+
return j(t, e, Vt, `
|
|
1595
|
+
`);
|
|
1596
|
+
}
|
|
1597
|
+
c(Wt, "inspectHTMLCollection");
|
|
1598
|
+
function Vt(t, e) {
|
|
1599
|
+
let n = t.getAttributeNames(), r = t.tagName.toLowerCase(), o = e.stylize(`<${r}`, "special"), s = e.stylize(">", "special"), i = e.stylize(
|
|
1600
|
+
`</${r}>`, "special");
|
|
1601
|
+
e.truncate -= r.length * 2 + 5;
|
|
1602
|
+
let a = "";
|
|
1603
|
+
n.length > 0 && (a += " ", a += j(n.map((p) => [p, t.getAttribute(p)]), e, es, " ")), e.truncate -= a.length;
|
|
1604
|
+
let l = e.truncate, m = Wt(t.children, e);
|
|
1605
|
+
return m && m.length > l && (m = `${ut}(${t.children.length})`), `${o}${a}${s}${m}${i}`;
|
|
1606
|
+
}
|
|
1607
|
+
c(Vt, "inspectHTML");
|
|
1608
|
+
|
|
1609
|
+
// ../node_modules/loupe/lib/index.js
|
|
1610
|
+
var ns = typeof Symbol == "function" && typeof Symbol.for == "function", be = ns ? Symbol.for("chai/inspect") : "@@chai/inspect", St = !1;
|
|
1611
|
+
try {
|
|
1612
|
+
let t = require("util");
|
|
1613
|
+
St = t.inspect ? t.inspect.custom : !1;
|
|
1614
|
+
} catch {
|
|
1615
|
+
St = !1;
|
|
1616
|
+
}
|
|
1617
|
+
var Tn = /* @__PURE__ */ new WeakMap(), On = {}, $n = {
|
|
1618
|
+
undefined: /* @__PURE__ */ c((t, e) => e.stylize("undefined", "undefined"), "undefined"),
|
|
1619
|
+
null: /* @__PURE__ */ c((t, e) => e.stylize("null", "null"), "null"),
|
|
1620
|
+
boolean: /* @__PURE__ */ c((t, e) => e.stylize(String(t), "boolean"), "boolean"),
|
|
1621
|
+
Boolean: /* @__PURE__ */ c((t, e) => e.stylize(String(t), "boolean"), "Boolean"),
|
|
1622
|
+
number: kt,
|
|
1623
|
+
Number: kt,
|
|
1624
|
+
bigint: zt,
|
|
1625
|
+
BigInt: zt,
|
|
1626
|
+
string: Yt,
|
|
1627
|
+
String: Yt,
|
|
1628
|
+
function: Bt,
|
|
1629
|
+
Function: Bt,
|
|
1630
|
+
symbol: Ut,
|
|
1631
|
+
// A Symbol polyfill will return `Symbol` not `symbol` from typedetect
|
|
1632
|
+
Symbol: Ut,
|
|
1633
|
+
Array: le,
|
|
1634
|
+
Date: ae,
|
|
1635
|
+
Map: fe,
|
|
1636
|
+
Set: pe,
|
|
1637
|
+
RegExp: me,
|
|
1638
|
+
Promise: Cn,
|
|
1639
|
+
// WeakSet, WeakMap are totally opaque to us
|
|
1640
|
+
WeakSet: /* @__PURE__ */ c((t, e) => e.stylize("WeakSet{\u2026}", "special"), "WeakSet"),
|
|
1641
|
+
WeakMap: /* @__PURE__ */ c((t, e) => e.stylize("WeakMap{\u2026}", "special"), "WeakMap"),
|
|
1642
|
+
Arguments: ye,
|
|
1643
|
+
Int8Array: rt,
|
|
1644
|
+
Uint8Array: rt,
|
|
1645
|
+
Uint8ClampedArray: rt,
|
|
1646
|
+
Int16Array: rt,
|
|
1647
|
+
Uint16Array: rt,
|
|
1648
|
+
Int32Array: rt,
|
|
1649
|
+
Uint32Array: rt,
|
|
1650
|
+
Float32Array: rt,
|
|
1651
|
+
Float64Array: rt,
|
|
1652
|
+
Generator: /* @__PURE__ */ c(() => "", "Generator"),
|
|
1653
|
+
DataView: /* @__PURE__ */ c(() => "", "DataView"),
|
|
1654
|
+
ArrayBuffer: /* @__PURE__ */ c(() => "", "ArrayBuffer"),
|
|
1655
|
+
Error: de,
|
|
1656
|
+
HTMLCollection: Wt,
|
|
1657
|
+
NodeList: Wt
|
|
1658
|
+
}, rs = /* @__PURE__ */ c((t, e, n) => be in t && typeof t[be] == "function" ? t[be](e) : St && St in t && typeof t[St] == "function" ? t[St](
|
|
1659
|
+
e.depth, e) : "inspect" in t && typeof t.inspect == "function" ? t.inspect(e.depth, e) : "constructor" in t && Tn.has(t.constructor) ? Tn.get(
|
|
1660
|
+
t.constructor)(t, e) : On[n] ? On[n](t, e) : "", "inspectCustom"), os = Object.prototype.toString;
|
|
1661
|
+
function qt(t, e = {}) {
|
|
1662
|
+
let n = Sn(e, qt), { customInspect: r } = n, o = t === null ? "null" : typeof t;
|
|
1663
|
+
if (o === "object" && (o = os.call(t).slice(8, -1)), o in $n)
|
|
1664
|
+
return $n[o](t, n);
|
|
1665
|
+
if (r && t) {
|
|
1666
|
+
let i = rs(t, n, o);
|
|
1667
|
+
if (i)
|
|
1668
|
+
return typeof i == "string" ? i : qt(i, n);
|
|
1669
|
+
}
|
|
1670
|
+
let s = t ? Object.getPrototypeOf(t) : !1;
|
|
1671
|
+
return s === Object.prototype || s === null ? pt(t, n) : t && typeof HTMLElement == "function" && t instanceof HTMLElement ? Vt(t, n) : "c\
|
|
1672
|
+
onstructor" in t ? t.constructor !== Object ? he(t, n) : pt(t, n) : t === Object(t) ? pt(t, n) : n.stylize(String(t), o);
|
|
1673
|
+
}
|
|
1674
|
+
c(qt, "inspect");
|
|
1675
|
+
|
|
1676
|
+
// ../node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js
|
|
1677
|
+
var {
|
|
1678
|
+
AsymmetricMatcher: is,
|
|
1679
|
+
DOMCollection: cs,
|
|
1680
|
+
DOMElement: us,
|
|
1681
|
+
Immutable: ls,
|
|
1682
|
+
ReactElement: as,
|
|
1683
|
+
ReactTestComponent: fs
|
|
1684
|
+
} = $t, wn = [
|
|
1685
|
+
fs,
|
|
1686
|
+
as,
|
|
1687
|
+
us,
|
|
1688
|
+
cs,
|
|
1689
|
+
ls,
|
|
1690
|
+
is
|
|
1691
|
+
];
|
|
1692
|
+
function gt(t, e = 10, { maxLength: n, ...r } = {}) {
|
|
1693
|
+
let o = n ?? 1e4, s;
|
|
1694
|
+
try {
|
|
1695
|
+
s = v(t, {
|
|
1696
|
+
maxDepth: e,
|
|
1697
|
+
escapeString: !1,
|
|
1698
|
+
// min: true,
|
|
1699
|
+
plugins: wn,
|
|
1700
|
+
...r
|
|
1701
|
+
});
|
|
1702
|
+
} catch {
|
|
1703
|
+
s = v(t, {
|
|
1704
|
+
callToJSON: !1,
|
|
1705
|
+
maxDepth: e,
|
|
1706
|
+
escapeString: !1,
|
|
1707
|
+
// min: true,
|
|
1708
|
+
plugins: wn,
|
|
1709
|
+
...r
|
|
1710
|
+
});
|
|
1711
|
+
}
|
|
1712
|
+
return s.length >= o && e > 1 ? gt(t, Math.floor(Math.min(e, Number.MAX_SAFE_INTEGER) / 2), { maxLength: n, ...r }) : s;
|
|
1713
|
+
}
|
|
1714
|
+
c(gt, "stringify");
|
|
1715
|
+
var ms = /%[sdjifoOc%]/g;
|
|
1716
|
+
function An(...t) {
|
|
1717
|
+
if (typeof t[0] != "string") {
|
|
1718
|
+
let s = [];
|
|
1719
|
+
for (let i = 0; i < t.length; i++)
|
|
1720
|
+
s.push(wt(t[i], { depth: 0, colors: !1 }));
|
|
1721
|
+
return s.join(" ");
|
|
1722
|
+
}
|
|
1723
|
+
let e = t.length, n = 1, r = t[0], o = String(r).replace(ms, (s) => {
|
|
1724
|
+
if (s === "%%")
|
|
1725
|
+
return "%";
|
|
1726
|
+
if (n >= e)
|
|
1727
|
+
return s;
|
|
1728
|
+
switch (s) {
|
|
1729
|
+
case "%s": {
|
|
1730
|
+
let i = t[n++];
|
|
1731
|
+
return typeof i == "bigint" ? `${i.toString()}n` : typeof i == "number" && i === 0 && 1 / i < 0 ? "-0" : typeof i == "object" && i !==
|
|
1732
|
+
null ? typeof i.toString == "function" && i.toString !== Object.prototype.toString ? i.toString() : wt(i, { depth: 0, colors: !1 }) :
|
|
1733
|
+
String(i);
|
|
1734
|
+
}
|
|
1735
|
+
case "%d": {
|
|
1736
|
+
let i = t[n++];
|
|
1737
|
+
return typeof i == "bigint" ? `${i.toString()}n` : Number(i).toString();
|
|
1738
|
+
}
|
|
1739
|
+
case "%i": {
|
|
1740
|
+
let i = t[n++];
|
|
1741
|
+
return typeof i == "bigint" ? `${i.toString()}n` : Number.parseInt(String(i)).toString();
|
|
1742
|
+
}
|
|
1743
|
+
case "%f":
|
|
1744
|
+
return Number.parseFloat(String(t[n++])).toString();
|
|
1745
|
+
case "%o":
|
|
1746
|
+
return wt(t[n++], { showHidden: !0, showProxy: !0 });
|
|
1747
|
+
case "%O":
|
|
1748
|
+
return wt(t[n++]);
|
|
1749
|
+
case "%c":
|
|
1750
|
+
return n++, "";
|
|
1751
|
+
case "%j":
|
|
1752
|
+
try {
|
|
1753
|
+
return JSON.stringify(t[n++]);
|
|
1754
|
+
} catch (i) {
|
|
1755
|
+
let a = i.message;
|
|
1756
|
+
if (
|
|
1757
|
+
// chromium
|
|
1758
|
+
a.includes("circular structure") || a.includes("cyclic structures") || a.includes("cyclic object")
|
|
1759
|
+
)
|
|
1760
|
+
return "[Circular]";
|
|
1761
|
+
throw i;
|
|
1762
|
+
}
|
|
1763
|
+
default:
|
|
1764
|
+
return s;
|
|
1765
|
+
}
|
|
1766
|
+
});
|
|
1767
|
+
for (let s = t[n]; n < e; s = t[++n])
|
|
1768
|
+
s === null || typeof s != "object" ? o += ` ${s}` : o += ` ${wt(s)}`;
|
|
1769
|
+
return o;
|
|
1770
|
+
}
|
|
1771
|
+
c(An, "format");
|
|
1772
|
+
function wt(t, e = {}) {
|
|
1773
|
+
return e.truncate === 0 && (e.truncate = Number.POSITIVE_INFINITY), qt(t, e);
|
|
1774
|
+
}
|
|
1775
|
+
c(wt, "inspect");
|
|
1776
|
+
function Rn(t) {
|
|
1777
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1778
|
+
}
|
|
1779
|
+
c(Rn, "getDefaultExportFromCjs");
|
|
1780
|
+
|
|
1781
|
+
// ../node_modules/@vitest/utils/dist/helpers.js
|
|
1782
|
+
function ps(t) {
|
|
1783
|
+
return t === Object.prototype || t === Function.prototype || t === RegExp.prototype;
|
|
1784
|
+
}
|
|
1785
|
+
c(ps, "isFinalObj");
|
|
1786
|
+
function Kt(t) {
|
|
1787
|
+
return Object.prototype.toString.apply(t).slice(8, -1);
|
|
1788
|
+
}
|
|
1789
|
+
c(Kt, "getType");
|
|
1790
|
+
function gs(t, e) {
|
|
1791
|
+
let n = typeof e == "function" ? e : (r) => e.add(r);
|
|
1792
|
+
Object.getOwnPropertyNames(t).forEach(n), Object.getOwnPropertySymbols(t).forEach(n);
|
|
1793
|
+
}
|
|
1794
|
+
c(gs, "collectOwnProperties");
|
|
1795
|
+
function Ee(t) {
|
|
1796
|
+
let e = /* @__PURE__ */ new Set();
|
|
1797
|
+
return ps(t) ? [] : (gs(t, e), Array.from(e));
|
|
1798
|
+
}
|
|
1799
|
+
c(Ee, "getOwnProperties");
|
|
1800
|
+
var Nn = { forceWritable: !1 };
|
|
1801
|
+
function _e(t, e = Nn) {
|
|
1802
|
+
return Se(t, /* @__PURE__ */ new WeakMap(), e);
|
|
1803
|
+
}
|
|
1804
|
+
c(_e, "deepClone");
|
|
1805
|
+
function Se(t, e, n = Nn) {
|
|
1806
|
+
let r, o;
|
|
1807
|
+
if (e.has(t))
|
|
1808
|
+
return e.get(t);
|
|
1809
|
+
if (Array.isArray(t)) {
|
|
1810
|
+
for (o = Array.from({ length: r = t.length }), e.set(t, o); r--; )
|
|
1811
|
+
o[r] = Se(t[r], e, n);
|
|
1812
|
+
return o;
|
|
1813
|
+
}
|
|
1814
|
+
if (Object.prototype.toString.call(t) === "[object Object]") {
|
|
1815
|
+
o = Object.create(Object.getPrototypeOf(t)), e.set(t, o);
|
|
1816
|
+
let s = Ee(t);
|
|
1817
|
+
for (let i of s) {
|
|
1818
|
+
let a = Object.getOwnPropertyDescriptor(t, i);
|
|
1819
|
+
if (!a)
|
|
1820
|
+
continue;
|
|
1821
|
+
let l = Se(t[i], e, n);
|
|
1822
|
+
n.forceWritable ? Object.defineProperty(o, i, {
|
|
1823
|
+
enumerable: a.enumerable,
|
|
1824
|
+
configurable: !0,
|
|
1825
|
+
writable: !0,
|
|
1826
|
+
value: l
|
|
1827
|
+
}) : "get" in a ? Object.defineProperty(o, i, {
|
|
1828
|
+
...a,
|
|
1829
|
+
get() {
|
|
1830
|
+
return l;
|
|
1831
|
+
}
|
|
1832
|
+
}) : Object.defineProperty(o, i, {
|
|
1833
|
+
...a,
|
|
1834
|
+
value: l
|
|
1835
|
+
});
|
|
1836
|
+
}
|
|
1837
|
+
return o;
|
|
1838
|
+
}
|
|
1839
|
+
return t;
|
|
1840
|
+
}
|
|
1841
|
+
c(Se, "clone");
|
|
1842
|
+
|
|
1843
|
+
// ../node_modules/@vitest/utils/dist/diff.js
|
|
1844
|
+
var U = -1, k = 1, x = 0, I = class {
|
|
1845
|
+
static {
|
|
1846
|
+
c(this, "Diff");
|
|
1847
|
+
}
|
|
1848
|
+
0;
|
|
1849
|
+
1;
|
|
1850
|
+
constructor(e, n) {
|
|
1851
|
+
this[0] = e, this[1] = n;
|
|
1852
|
+
}
|
|
1853
|
+
};
|
|
1854
|
+
function hs(t, e) {
|
|
1855
|
+
if (!t || !e || t.charAt(0) !== e.charAt(0))
|
|
1856
|
+
return 0;
|
|
1857
|
+
let n = 0, r = Math.min(t.length, e.length), o = r, s = 0;
|
|
1858
|
+
for (; n < o; )
|
|
1859
|
+
t.substring(s, o) === e.substring(s, o) ? (n = o, s = n) : r = o, o = Math.floor((r - n) / 2 + n);
|
|
1860
|
+
return o;
|
|
1861
|
+
}
|
|
1862
|
+
c(hs, "diff_commonPrefix");
|
|
1863
|
+
function qn(t, e) {
|
|
1864
|
+
if (!t || !e || t.charAt(t.length - 1) !== e.charAt(e.length - 1))
|
|
1865
|
+
return 0;
|
|
1866
|
+
let n = 0, r = Math.min(t.length, e.length), o = r, s = 0;
|
|
1867
|
+
for (; n < o; )
|
|
1868
|
+
t.substring(t.length - o, t.length - s) === e.substring(e.length - o, e.length - s) ? (n = o, s = n) : r = o, o = Math.floor((r - n) / 2 +
|
|
1869
|
+
n);
|
|
1870
|
+
return o;
|
|
1871
|
+
}
|
|
1872
|
+
c(qn, "diff_commonSuffix");
|
|
1873
|
+
function Pn(t, e) {
|
|
1874
|
+
let n = t.length, r = e.length;
|
|
1875
|
+
if (n === 0 || r === 0)
|
|
1876
|
+
return 0;
|
|
1877
|
+
n > r ? t = t.substring(n - r) : n < r && (e = e.substring(0, n));
|
|
1878
|
+
let o = Math.min(n, r);
|
|
1879
|
+
if (t === e)
|
|
1880
|
+
return o;
|
|
1881
|
+
let s = 0, i = 1;
|
|
1882
|
+
for (; ; ) {
|
|
1883
|
+
let a = t.substring(o - i), l = e.indexOf(a);
|
|
1884
|
+
if (l === -1)
|
|
1885
|
+
return s;
|
|
1886
|
+
i += l, (l === 0 || t.substring(o - i) === e.substring(0, i)) && (s = i, i++);
|
|
1887
|
+
}
|
|
1888
|
+
}
|
|
1889
|
+
c(Pn, "diff_commonOverlap_");
|
|
1890
|
+
function ys(t) {
|
|
1891
|
+
let e = !1, n = [], r = 0, o = null, s = 0, i = 0, a = 0, l = 0, m = 0;
|
|
1892
|
+
for (; s < t.length; )
|
|
1893
|
+
t[s][0] === x ? (n[r++] = s, i = l, a = m, l = 0, m = 0, o = t[s][1]) : (t[s][0] === k ? l += t[s][1].length : m += t[s][1].length, o &&
|
|
1894
|
+
o.length <= Math.max(i, a) && o.length <= Math.max(l, m) && (t.splice(
|
|
1895
|
+
n[r - 1],
|
|
1896
|
+
0,
|
|
1897
|
+
new I(U, o)
|
|
1898
|
+
), t[n[r - 1] + 1][0] = k, r--, r--, s = r > 0 ? n[r - 1] : -1, i = 0, a = 0, l = 0, m = 0, o = null, e = !0)), s++;
|
|
1899
|
+
for (e && Kn(t), Ss(t), s = 1; s < t.length; ) {
|
|
1900
|
+
if (t[s - 1][0] === U && t[s][0] === k) {
|
|
1901
|
+
let p = t[s - 1][1], f = t[s][1], S = Pn(p, f), y = Pn(f, p);
|
|
1902
|
+
S >= y ? (S >= p.length / 2 || S >= f.length / 2) && (t.splice(
|
|
1903
|
+
s,
|
|
1904
|
+
0,
|
|
1905
|
+
new I(x, f.substring(0, S))
|
|
1906
|
+
), t[s - 1][1] = p.substring(
|
|
1907
|
+
0,
|
|
1908
|
+
p.length - S
|
|
1909
|
+
), t[s + 1][1] = f.substring(S), s++) : (y >= p.length / 2 || y >= f.length / 2) && (t.splice(
|
|
1910
|
+
s,
|
|
1911
|
+
0,
|
|
1912
|
+
new I(x, p.substring(0, y))
|
|
1913
|
+
), t[s - 1][0] = k, t[s - 1][1] = f.substring(
|
|
1914
|
+
0,
|
|
1915
|
+
f.length - y
|
|
1916
|
+
), t[s + 1][0] = U, t[s + 1][1] = p.substring(y), s++), s++;
|
|
1917
|
+
}
|
|
1918
|
+
s++;
|
|
1919
|
+
}
|
|
1920
|
+
}
|
|
1921
|
+
c(ys, "diff_cleanupSemantic");
|
|
1922
|
+
var In = /[^a-z0-9]/i, Mn = /\s/, Ln = /[\r\n]/, ds = /\n\r?\n$/, bs = /^\r?\n\r?\n/;
|
|
1923
|
+
function Ss(t) {
|
|
1924
|
+
let e = 1;
|
|
1925
|
+
for (; e < t.length - 1; ) {
|
|
1926
|
+
if (t[e - 1][0] === x && t[e + 1][0] === x) {
|
|
1927
|
+
let n = t[e - 1][1], r = t[e][1], o = t[e + 1][1], s = qn(n, r);
|
|
1928
|
+
if (s) {
|
|
1929
|
+
let p = r.substring(r.length - s);
|
|
1930
|
+
n = n.substring(0, n.length - s), r = p + r.substring(0, r.length - s), o = p + o;
|
|
1931
|
+
}
|
|
1932
|
+
let i = n, a = r, l = o, m = Gt(n, r) + Gt(r, o);
|
|
1933
|
+
for (; r.charAt(0) === o.charAt(0); ) {
|
|
1934
|
+
n += r.charAt(0), r = r.substring(1) + o.charAt(0), o = o.substring(1);
|
|
1935
|
+
let p = Gt(n, r) + Gt(r, o);
|
|
1936
|
+
p >= m && (m = p, i = n, a = r, l = o);
|
|
1937
|
+
}
|
|
1938
|
+
t[e - 1][1] !== i && (i ? t[e - 1][1] = i : (t.splice(e - 1, 1), e--), t[e][1] = a, l ? t[e + 1][1] = l : (t.splice(e + 1, 1), e--));
|
|
1939
|
+
}
|
|
1940
|
+
e++;
|
|
1941
|
+
}
|
|
1942
|
+
}
|
|
1943
|
+
c(Ss, "diff_cleanupSemanticLossless");
|
|
1944
|
+
function Kn(t) {
|
|
1945
|
+
t.push(new I(x, ""));
|
|
1946
|
+
let e = 0, n = 0, r = 0, o = "", s = "", i;
|
|
1947
|
+
for (; e < t.length; )
|
|
1948
|
+
switch (t[e][0]) {
|
|
1949
|
+
case k:
|
|
1950
|
+
r++, s += t[e][1], e++;
|
|
1951
|
+
break;
|
|
1952
|
+
case U:
|
|
1953
|
+
n++, o += t[e][1], e++;
|
|
1954
|
+
break;
|
|
1955
|
+
case x:
|
|
1956
|
+
n + r > 1 ? (n !== 0 && r !== 0 && (i = hs(s, o), i !== 0 && (e - n - r > 0 && t[e - n - r - 1][0] === x ? t[e - n - r - 1][1] += s.
|
|
1957
|
+
substring(0, i) : (t.splice(
|
|
1958
|
+
0,
|
|
1959
|
+
0,
|
|
1960
|
+
new I(x, s.substring(0, i))
|
|
1961
|
+
), e++), s = s.substring(i), o = o.substring(i)), i = qn(s, o), i !== 0 && (t[e][1] = s.substring(s.length - i) + t[e][1], s = s.substring(
|
|
1962
|
+
0,
|
|
1963
|
+
s.length - i
|
|
1964
|
+
), o = o.substring(
|
|
1965
|
+
0,
|
|
1966
|
+
o.length - i
|
|
1967
|
+
))), e -= n + r, t.splice(e, n + r), o.length && (t.splice(e, 0, new I(U, o)), e++), s.length && (t.splice(e, 0, new I(k, s)), e++),
|
|
1968
|
+
e++) : e !== 0 && t[e - 1][0] === x ? (t[e - 1][1] += t[e][1], t.splice(e, 1)) : e++, r = 0, n = 0, o = "", s = "";
|
|
1969
|
+
break;
|
|
1970
|
+
}
|
|
1971
|
+
t[t.length - 1][1] === "" && t.pop();
|
|
1972
|
+
let a = !1;
|
|
1973
|
+
for (e = 1; e < t.length - 1; )
|
|
1974
|
+
t[e - 1][0] === x && t[e + 1][0] === x && (t[e][1].substring(
|
|
1975
|
+
t[e][1].length - t[e - 1][1].length
|
|
1976
|
+
) === t[e - 1][1] ? (t[e][1] = t[e - 1][1] + t[e][1].substring(
|
|
1977
|
+
0,
|
|
1978
|
+
t[e][1].length - t[e - 1][1].length
|
|
1979
|
+
), t[e + 1][1] = t[e - 1][1] + t[e + 1][1], t.splice(e - 1, 1), a = !0) : t[e][1].substring(0, t[e + 1][1].length) === t[e + 1][1] && (t[e -
|
|
1980
|
+
1][1] += t[e + 1][1], t[e][1] = t[e][1].substring(t[e + 1][1].length) + t[e + 1][1], t.splice(e + 1, 1), a = !0)), e++;
|
|
1981
|
+
a && Kn(t);
|
|
1982
|
+
}
|
|
1983
|
+
c(Kn, "diff_cleanupMerge");
|
|
1984
|
+
function Gt(t, e) {
|
|
1985
|
+
if (!t || !e)
|
|
1986
|
+
return 6;
|
|
1987
|
+
let n = t.charAt(t.length - 1), r = e.charAt(0), o = n.match(In), s = r.match(In), i = o && n.match(Mn), a = s && r.match(Mn), l = i && n.
|
|
1988
|
+
match(Ln), m = a && r.match(Ln), p = l && t.match(ds), f = m && e.match(bs);
|
|
1989
|
+
return p || f ? 5 : l || m ? 4 : o && !i && a ? 3 : i || a ? 2 : o || s ? 1 : 0;
|
|
1990
|
+
}
|
|
1991
|
+
c(Gt, "diff_cleanupSemanticScore_");
|
|
1992
|
+
var Gn = "Compared values have no visual difference.", Es = "Compared values serialize to the same structure.\nPrinting internal object struc\
|
|
1993
|
+
ture without calling `toJSON` instead.", Ht = {}, xn;
|
|
1994
|
+
function _s() {
|
|
1995
|
+
if (xn) return Ht;
|
|
1996
|
+
xn = 1, Object.defineProperty(Ht, "__esModule", {
|
|
1997
|
+
value: !0
|
|
1998
|
+
}), Ht.default = S;
|
|
1999
|
+
let t = "diff-sequences", e = 0, n = /* @__PURE__ */ c((y, g, u, h, b) => {
|
|
2000
|
+
let _ = 0;
|
|
2001
|
+
for (; y < g && u < h && b(y, u); )
|
|
2002
|
+
y += 1, u += 1, _ += 1;
|
|
2003
|
+
return _;
|
|
2004
|
+
}, "countCommonItemsF"), r = /* @__PURE__ */ c((y, g, u, h, b) => {
|
|
2005
|
+
let _ = 0;
|
|
2006
|
+
for (; y <= g && u <= h && b(g, h); )
|
|
2007
|
+
g -= 1, h -= 1, _ += 1;
|
|
2008
|
+
return _;
|
|
2009
|
+
}, "countCommonItemsR"), o = /* @__PURE__ */ c((y, g, u, h, b, _, O) => {
|
|
2010
|
+
let d = 0, E = -y, $ = _[d], C = $;
|
|
2011
|
+
_[d] += n(
|
|
2012
|
+
$ + 1,
|
|
2013
|
+
g,
|
|
2014
|
+
h + $ - E + 1,
|
|
2015
|
+
u,
|
|
2016
|
+
b
|
|
2017
|
+
);
|
|
2018
|
+
let R = y < O ? y : O;
|
|
2019
|
+
for (d += 1, E += 2; d <= R; d += 1, E += 2) {
|
|
2020
|
+
if (d !== y && C < _[d])
|
|
2021
|
+
$ = _[d];
|
|
2022
|
+
else if ($ = C + 1, g <= $)
|
|
2023
|
+
return d - 1;
|
|
2024
|
+
C = _[d], _[d] = $ + n($ + 1, g, h + $ - E + 1, u, b);
|
|
2025
|
+
}
|
|
2026
|
+
return O;
|
|
2027
|
+
}, "extendPathsF"), s = /* @__PURE__ */ c((y, g, u, h, b, _, O) => {
|
|
2028
|
+
let d = 0, E = y, $ = _[d], C = $;
|
|
2029
|
+
_[d] -= r(
|
|
2030
|
+
g,
|
|
2031
|
+
$ - 1,
|
|
2032
|
+
u,
|
|
2033
|
+
h + $ - E - 1,
|
|
2034
|
+
b
|
|
2035
|
+
);
|
|
2036
|
+
let R = y < O ? y : O;
|
|
2037
|
+
for (d += 1, E -= 2; d <= R; d += 1, E -= 2) {
|
|
2038
|
+
if (d !== y && _[d] < C)
|
|
2039
|
+
$ = _[d];
|
|
2040
|
+
else if ($ = C - 1, $ < g)
|
|
2041
|
+
return d - 1;
|
|
2042
|
+
C = _[d], _[d] = $ - r(
|
|
2043
|
+
g,
|
|
2044
|
+
$ - 1,
|
|
2045
|
+
u,
|
|
2046
|
+
h + $ - E - 1,
|
|
2047
|
+
b
|
|
2048
|
+
);
|
|
2049
|
+
}
|
|
2050
|
+
return O;
|
|
2051
|
+
}, "extendPathsR"), i = /* @__PURE__ */ c((y, g, u, h, b, _, O, d, E, $, C) => {
|
|
2052
|
+
let R = h - g, J = u - g, L = b - h - J, z = -L - (y - 1), X = -L + (y - 1), V = e, M = y < d ? y : d;
|
|
2053
|
+
for (let F = 0, D = -y; F <= M; F += 1, D += 2) {
|
|
2054
|
+
let Z = F === 0 || F !== y && V < O[F], B = Z ? O[F] : V, K = Z ? B : B + 1, st = R + K - D, G = n(
|
|
2055
|
+
K + 1,
|
|
2056
|
+
u,
|
|
2057
|
+
st + 1,
|
|
2058
|
+
b,
|
|
2059
|
+
_
|
|
2060
|
+
), H = K + G;
|
|
2061
|
+
if (V = O[F], O[F] = H, z <= D && D <= X) {
|
|
2062
|
+
let ct = (y - 1 - (D + L)) / 2;
|
|
2063
|
+
if (ct <= $ && E[ct] - 1 <= H) {
|
|
2064
|
+
let Q = R + B - (Z ? D + 1 : D - 1), q = r(
|
|
2065
|
+
g,
|
|
2066
|
+
B,
|
|
2067
|
+
h,
|
|
2068
|
+
Q,
|
|
2069
|
+
_
|
|
2070
|
+
), it = B - q, dt = Q - q, at = it + 1, Ct = dt + 1;
|
|
2071
|
+
C.nChangePreceding = y - 1, y - 1 === at + Ct - g - h ? (C.aEndPreceding = g, C.bEndPreceding = h) : (C.aEndPreceding = at, C.bEndPreceding =
|
|
2072
|
+
Ct), C.nCommonPreceding = q, q !== 0 && (C.aCommonPreceding = at, C.bCommonPreceding = Ct), C.nCommonFollowing = G, G !== 0 && (C.
|
|
2073
|
+
aCommonFollowing = K + 1, C.bCommonFollowing = st + 1);
|
|
2074
|
+
let At = H + 1, Rt = st + G + 1;
|
|
2075
|
+
return C.nChangeFollowing = y - 1, y - 1 === u + b - At - Rt ? (C.aStartFollowing = u, C.bStartFollowing = b) : (C.aStartFollowing =
|
|
2076
|
+
At, C.bStartFollowing = Rt), !0;
|
|
2077
|
+
}
|
|
2078
|
+
}
|
|
2079
|
+
}
|
|
2080
|
+
return !1;
|
|
2081
|
+
}, "extendOverlappablePathsF"), a = /* @__PURE__ */ c((y, g, u, h, b, _, O, d, E, $, C) => {
|
|
2082
|
+
let R = b - u, J = u - g, L = b - h - J, z = L - y, X = L + y, V = e, M = y < $ ? y : $;
|
|
2083
|
+
for (let F = 0, D = y; F <= M; F += 1, D -= 2) {
|
|
2084
|
+
let Z = F === 0 || F !== y && E[F] < V, B = Z ? E[F] : V, K = Z ? B : B - 1, st = R + K - D, G = r(
|
|
2085
|
+
g,
|
|
2086
|
+
K - 1,
|
|
2087
|
+
h,
|
|
2088
|
+
st - 1,
|
|
2089
|
+
_
|
|
2090
|
+
), H = K - G;
|
|
2091
|
+
if (V = E[F], E[F] = H, z <= D && D <= X) {
|
|
2092
|
+
let ct = (y + (D - L)) / 2;
|
|
2093
|
+
if (ct <= d && H - 1 <= O[ct]) {
|
|
2094
|
+
let Q = st - G;
|
|
2095
|
+
if (C.nChangePreceding = y, y === H + Q - g - h ? (C.aEndPreceding = g, C.bEndPreceding = h) : (C.aEndPreceding = H, C.bEndPreceding =
|
|
2096
|
+
Q), C.nCommonPreceding = G, G !== 0 && (C.aCommonPreceding = H, C.bCommonPreceding = Q), C.nChangeFollowing = y - 1, y === 1)
|
|
2097
|
+
C.nCommonFollowing = 0, C.aStartFollowing = u, C.bStartFollowing = b;
|
|
2098
|
+
else {
|
|
2099
|
+
let q = R + B - (Z ? D - 1 : D + 1), it = n(
|
|
2100
|
+
B,
|
|
2101
|
+
u,
|
|
2102
|
+
q,
|
|
2103
|
+
b,
|
|
2104
|
+
_
|
|
2105
|
+
);
|
|
2106
|
+
C.nCommonFollowing = it, it !== 0 && (C.aCommonFollowing = B, C.bCommonFollowing = q);
|
|
2107
|
+
let dt = B + it, at = q + it;
|
|
2108
|
+
y - 1 === u + b - dt - at ? (C.aStartFollowing = u, C.bStartFollowing = b) : (C.aStartFollowing = dt, C.bStartFollowing = at);
|
|
2109
|
+
}
|
|
2110
|
+
return !0;
|
|
2111
|
+
}
|
|
2112
|
+
}
|
|
2113
|
+
}
|
|
2114
|
+
return !1;
|
|
2115
|
+
}, "extendOverlappablePathsR"), l = /* @__PURE__ */ c((y, g, u, h, b, _, O, d, E) => {
|
|
2116
|
+
let $ = h - g, C = b - u, R = u - g, J = b - h, tt = J - R, L = R, z = R;
|
|
2117
|
+
if (O[0] = g - 1, d[0] = u, tt % 2 === 0) {
|
|
2118
|
+
let X = (y || tt) / 2, V = (R + J) / 2;
|
|
2119
|
+
for (let M = 1; M <= V; M += 1)
|
|
2120
|
+
if (L = o(M, u, b, $, _, O, L), M < X)
|
|
2121
|
+
z = s(M, g, h, C, _, d, z);
|
|
2122
|
+
else if (
|
|
2123
|
+
// If a reverse path overlaps a forward path in the same diagonal,
|
|
2124
|
+
// return a division of the index intervals at the middle change.
|
|
2125
|
+
a(
|
|
2126
|
+
M,
|
|
2127
|
+
g,
|
|
2128
|
+
u,
|
|
2129
|
+
h,
|
|
2130
|
+
b,
|
|
2131
|
+
_,
|
|
2132
|
+
O,
|
|
2133
|
+
L,
|
|
2134
|
+
d,
|
|
2135
|
+
z,
|
|
2136
|
+
E
|
|
2137
|
+
)
|
|
2138
|
+
)
|
|
2139
|
+
return;
|
|
2140
|
+
} else {
|
|
2141
|
+
let X = ((y || tt) + 1) / 2, V = (R + J + 1) / 2, M = 1;
|
|
2142
|
+
for (L = o(M, u, b, $, _, O, L), M += 1; M <= V; M += 1)
|
|
2143
|
+
if (z = s(
|
|
2144
|
+
M - 1,
|
|
2145
|
+
g,
|
|
2146
|
+
h,
|
|
2147
|
+
C,
|
|
2148
|
+
_,
|
|
2149
|
+
d,
|
|
2150
|
+
z
|
|
2151
|
+
), M < X)
|
|
2152
|
+
L = o(M, u, b, $, _, O, L);
|
|
2153
|
+
else if (
|
|
2154
|
+
// If a forward path overlaps a reverse path in the same diagonal,
|
|
2155
|
+
// return a division of the index intervals at the middle change.
|
|
2156
|
+
i(
|
|
2157
|
+
M,
|
|
2158
|
+
g,
|
|
2159
|
+
u,
|
|
2160
|
+
h,
|
|
2161
|
+
b,
|
|
2162
|
+
_,
|
|
2163
|
+
O,
|
|
2164
|
+
L,
|
|
2165
|
+
d,
|
|
2166
|
+
z,
|
|
2167
|
+
E
|
|
2168
|
+
)
|
|
2169
|
+
)
|
|
2170
|
+
return;
|
|
2171
|
+
}
|
|
2172
|
+
throw new Error(
|
|
2173
|
+
`${t}: no overlap aStart=${g} aEnd=${u} bStart=${h} bEnd=${b}`
|
|
2174
|
+
);
|
|
2175
|
+
}, "divide"), m = /* @__PURE__ */ c((y, g, u, h, b, _, O, d, E, $) => {
|
|
2176
|
+
if (b - h < u - g) {
|
|
2177
|
+
if (_ = !_, _ && O.length === 1) {
|
|
2178
|
+
let { foundSubsequence: H, isCommon: ct } = O[0];
|
|
2179
|
+
O[1] = {
|
|
2180
|
+
foundSubsequence: /* @__PURE__ */ c((Q, q, it) => {
|
|
2181
|
+
H(Q, it, q);
|
|
2182
|
+
}, "foundSubsequence"),
|
|
2183
|
+
isCommon: /* @__PURE__ */ c((Q, q) => ct(q, Q), "isCommon")
|
|
2184
|
+
};
|
|
2185
|
+
}
|
|
2186
|
+
let st = g, G = u;
|
|
2187
|
+
g = h, u = b, h = st, b = G;
|
|
2188
|
+
}
|
|
2189
|
+
let { foundSubsequence: C, isCommon: R } = O[_ ? 1 : 0];
|
|
2190
|
+
l(
|
|
2191
|
+
y,
|
|
2192
|
+
g,
|
|
2193
|
+
u,
|
|
2194
|
+
h,
|
|
2195
|
+
b,
|
|
2196
|
+
R,
|
|
2197
|
+
d,
|
|
2198
|
+
E,
|
|
2199
|
+
$
|
|
2200
|
+
);
|
|
2201
|
+
let {
|
|
2202
|
+
nChangePreceding: J,
|
|
2203
|
+
aEndPreceding: tt,
|
|
2204
|
+
bEndPreceding: L,
|
|
2205
|
+
nCommonPreceding: z,
|
|
2206
|
+
aCommonPreceding: X,
|
|
2207
|
+
bCommonPreceding: V,
|
|
2208
|
+
nCommonFollowing: M,
|
|
2209
|
+
aCommonFollowing: F,
|
|
2210
|
+
bCommonFollowing: D,
|
|
2211
|
+
nChangeFollowing: Z,
|
|
2212
|
+
aStartFollowing: B,
|
|
2213
|
+
bStartFollowing: K
|
|
2214
|
+
} = $;
|
|
2215
|
+
g < tt && h < L && m(
|
|
2216
|
+
J,
|
|
2217
|
+
g,
|
|
2218
|
+
tt,
|
|
2219
|
+
h,
|
|
2220
|
+
L,
|
|
2221
|
+
_,
|
|
2222
|
+
O,
|
|
2223
|
+
d,
|
|
2224
|
+
E,
|
|
2225
|
+
$
|
|
2226
|
+
), z !== 0 && C(z, X, V), M !== 0 && C(M, F, D), B < u && K < b && m(
|
|
2227
|
+
Z,
|
|
2228
|
+
B,
|
|
2229
|
+
u,
|
|
2230
|
+
K,
|
|
2231
|
+
b,
|
|
2232
|
+
_,
|
|
2233
|
+
O,
|
|
2234
|
+
d,
|
|
2235
|
+
E,
|
|
2236
|
+
$
|
|
2237
|
+
);
|
|
2238
|
+
}, "findSubsequences"), p = /* @__PURE__ */ c((y, g) => {
|
|
2239
|
+
if (typeof g != "number")
|
|
2240
|
+
throw new TypeError(`${t}: ${y} typeof ${typeof g} is not a number`);
|
|
2241
|
+
if (!Number.isSafeInteger(g))
|
|
2242
|
+
throw new RangeError(`${t}: ${y} value ${g} is not a safe integer`);
|
|
2243
|
+
if (g < 0)
|
|
2244
|
+
throw new RangeError(`${t}: ${y} value ${g} is a negative integer`);
|
|
2245
|
+
}, "validateLength"), f = /* @__PURE__ */ c((y, g) => {
|
|
2246
|
+
let u = typeof g;
|
|
2247
|
+
if (u !== "function")
|
|
2248
|
+
throw new TypeError(`${t}: ${y} typeof ${u} is not a function`);
|
|
2249
|
+
}, "validateCallback");
|
|
2250
|
+
function S(y, g, u, h) {
|
|
2251
|
+
p("aLength", y), p("bLength", g), f("isCommon", u), f("foundSubsequence", h);
|
|
2252
|
+
let b = n(0, y, 0, g, u);
|
|
2253
|
+
if (b !== 0 && h(b, 0, 0), y !== b || g !== b) {
|
|
2254
|
+
let _ = b, O = b, d = r(
|
|
2255
|
+
_,
|
|
2256
|
+
y - 1,
|
|
2257
|
+
O,
|
|
2258
|
+
g - 1,
|
|
2259
|
+
u
|
|
2260
|
+
), E = y - d, $ = g - d, C = b + d;
|
|
2261
|
+
y !== C && g !== C && m(
|
|
2262
|
+
0,
|
|
2263
|
+
_,
|
|
2264
|
+
E,
|
|
2265
|
+
O,
|
|
2266
|
+
$,
|
|
2267
|
+
!1,
|
|
2268
|
+
[
|
|
2269
|
+
{
|
|
2270
|
+
foundSubsequence: h,
|
|
2271
|
+
isCommon: u
|
|
2272
|
+
}
|
|
2273
|
+
],
|
|
2274
|
+
[e],
|
|
2275
|
+
[e],
|
|
2276
|
+
{
|
|
2277
|
+
aCommonFollowing: e,
|
|
2278
|
+
aCommonPreceding: e,
|
|
2279
|
+
aEndPreceding: e,
|
|
2280
|
+
aStartFollowing: e,
|
|
2281
|
+
bCommonFollowing: e,
|
|
2282
|
+
bCommonPreceding: e,
|
|
2283
|
+
bEndPreceding: e,
|
|
2284
|
+
bStartFollowing: e,
|
|
2285
|
+
nChangeFollowing: e,
|
|
2286
|
+
nChangePreceding: e,
|
|
2287
|
+
nCommonFollowing: e,
|
|
2288
|
+
nCommonPreceding: e
|
|
2289
|
+
}
|
|
2290
|
+
), d !== 0 && h(d, E, $);
|
|
2291
|
+
}
|
|
2292
|
+
}
|
|
2293
|
+
return c(S, "diffSequence"), Ht;
|
|
2294
|
+
}
|
|
2295
|
+
c(_s, "requireBuild");
|
|
2296
|
+
var Cs = _s(), Hn = /* @__PURE__ */ Rn(Cs);
|
|
2297
|
+
function Ts(t, e) {
|
|
2298
|
+
return t.replace(/\s+$/, (n) => e(n));
|
|
2299
|
+
}
|
|
2300
|
+
c(Ts, "formatTrailingSpaces");
|
|
2301
|
+
function Re(t, e, n, r, o, s) {
|
|
2302
|
+
return t.length !== 0 ? n(
|
|
2303
|
+
`${r} ${Ts(t, o)}`
|
|
2304
|
+
) : r !== " " ? n(r) : e && s.length !== 0 ? n(`${r} ${s}`) : "";
|
|
2305
|
+
}
|
|
2306
|
+
c(Re, "printDiffLine");
|
|
2307
|
+
function Jn(t, e, {
|
|
2308
|
+
aColor: n,
|
|
2309
|
+
aIndicator: r,
|
|
2310
|
+
changeLineTrailingSpaceColor: o,
|
|
2311
|
+
emptyFirstOrLastLinePlaceholder: s
|
|
2312
|
+
}) {
|
|
2313
|
+
return Re(
|
|
2314
|
+
t,
|
|
2315
|
+
e,
|
|
2316
|
+
n,
|
|
2317
|
+
r,
|
|
2318
|
+
o,
|
|
2319
|
+
s
|
|
2320
|
+
);
|
|
2321
|
+
}
|
|
2322
|
+
c(Jn, "printDeleteLine");
|
|
2323
|
+
function Xn(t, e, {
|
|
2324
|
+
bColor: n,
|
|
2325
|
+
bIndicator: r,
|
|
2326
|
+
changeLineTrailingSpaceColor: o,
|
|
2327
|
+
emptyFirstOrLastLinePlaceholder: s
|
|
2328
|
+
}) {
|
|
2329
|
+
return Re(
|
|
2330
|
+
t,
|
|
2331
|
+
e,
|
|
2332
|
+
n,
|
|
2333
|
+
r,
|
|
2334
|
+
o,
|
|
2335
|
+
s
|
|
2336
|
+
);
|
|
2337
|
+
}
|
|
2338
|
+
c(Xn, "printInsertLine");
|
|
2339
|
+
function Zn(t, e, {
|
|
2340
|
+
commonColor: n,
|
|
2341
|
+
commonIndicator: r,
|
|
2342
|
+
commonLineTrailingSpaceColor: o,
|
|
2343
|
+
emptyFirstOrLastLinePlaceholder: s
|
|
2344
|
+
}) {
|
|
2345
|
+
return Re(
|
|
2346
|
+
t,
|
|
2347
|
+
e,
|
|
2348
|
+
n,
|
|
2349
|
+
r,
|
|
2350
|
+
o,
|
|
2351
|
+
s
|
|
2352
|
+
);
|
|
2353
|
+
}
|
|
2354
|
+
c(Zn, "printCommonLine");
|
|
2355
|
+
function Fn(t, e, n, r, { patchColor: o }) {
|
|
2356
|
+
return o(
|
|
2357
|
+
`@@ -${t + 1},${e - t} +${n + 1},${r - n} @@`
|
|
2358
|
+
);
|
|
2359
|
+
}
|
|
2360
|
+
c(Fn, "createPatchMark");
|
|
2361
|
+
function Os(t, e) {
|
|
2362
|
+
let n = t.length, r = e.contextLines, o = r + r, s = n, i = !1, a = 0, l = 0;
|
|
2363
|
+
for (; l !== n; ) {
|
|
2364
|
+
let d = l;
|
|
2365
|
+
for (; l !== n && t[l][0] === x; )
|
|
2366
|
+
l += 1;
|
|
2367
|
+
if (d !== l)
|
|
2368
|
+
if (d === 0)
|
|
2369
|
+
l > r && (s -= l - r, i = !0);
|
|
2370
|
+
else if (l === n) {
|
|
2371
|
+
let E = l - d;
|
|
2372
|
+
E > r && (s -= E - r, i = !0);
|
|
2373
|
+
} else {
|
|
2374
|
+
let E = l - d;
|
|
2375
|
+
E > o && (s -= E - o, a += 1);
|
|
2376
|
+
}
|
|
2377
|
+
for (; l !== n && t[l][0] !== x; )
|
|
2378
|
+
l += 1;
|
|
2379
|
+
}
|
|
2380
|
+
let m = a !== 0 || i;
|
|
2381
|
+
a !== 0 ? s += a + 1 : i && (s += 1);
|
|
2382
|
+
let p = s - 1, f = [], S = 0;
|
|
2383
|
+
m && f.push("");
|
|
2384
|
+
let y = 0, g = 0, u = 0, h = 0, b = /* @__PURE__ */ c((d) => {
|
|
2385
|
+
let E = f.length;
|
|
2386
|
+
f.push(Zn(d, E === 0 || E === p, e)), u += 1, h += 1;
|
|
2387
|
+
}, "pushCommonLine"), _ = /* @__PURE__ */ c((d) => {
|
|
2388
|
+
let E = f.length;
|
|
2389
|
+
f.push(Jn(d, E === 0 || E === p, e)), u += 1;
|
|
2390
|
+
}, "pushDeleteLine"), O = /* @__PURE__ */ c((d) => {
|
|
2391
|
+
let E = f.length;
|
|
2392
|
+
f.push(Xn(d, E === 0 || E === p, e)), h += 1;
|
|
2393
|
+
}, "pushInsertLine");
|
|
2394
|
+
for (l = 0; l !== n; ) {
|
|
2395
|
+
let d = l;
|
|
2396
|
+
for (; l !== n && t[l][0] === x; )
|
|
2397
|
+
l += 1;
|
|
2398
|
+
if (d !== l)
|
|
2399
|
+
if (d === 0) {
|
|
2400
|
+
l > r && (d = l - r, y = d, g = d, u = y, h = g);
|
|
2401
|
+
for (let E = d; E !== l; E += 1)
|
|
2402
|
+
b(t[E][1]);
|
|
2403
|
+
} else if (l === n) {
|
|
2404
|
+
let E = l - d > r ? d + r : l;
|
|
2405
|
+
for (let $ = d; $ !== E; $ += 1)
|
|
2406
|
+
b(t[$][1]);
|
|
2407
|
+
} else {
|
|
2408
|
+
let E = l - d;
|
|
2409
|
+
if (E > o) {
|
|
2410
|
+
let $ = d + r;
|
|
2411
|
+
for (let R = d; R !== $; R += 1)
|
|
2412
|
+
b(t[R][1]);
|
|
2413
|
+
f[S] = Fn(
|
|
2414
|
+
y,
|
|
2415
|
+
u,
|
|
2416
|
+
g,
|
|
2417
|
+
h,
|
|
2418
|
+
e
|
|
2419
|
+
), S = f.length, f.push("");
|
|
2420
|
+
let C = E - o;
|
|
2421
|
+
y = u + C, g = h + C, u = y, h = g;
|
|
2422
|
+
for (let R = l - r; R !== l; R += 1)
|
|
2423
|
+
b(t[R][1]);
|
|
2424
|
+
} else
|
|
2425
|
+
for (let $ = d; $ !== l; $ += 1)
|
|
2426
|
+
b(t[$][1]);
|
|
2427
|
+
}
|
|
2428
|
+
for (; l !== n && t[l][0] === U; )
|
|
2429
|
+
_(t[l][1]), l += 1;
|
|
2430
|
+
for (; l !== n && t[l][0] === k; )
|
|
2431
|
+
O(t[l][1]), l += 1;
|
|
2432
|
+
}
|
|
2433
|
+
return m && (f[S] = Fn(y, u, g, h, e)), f.join(`
|
|
2434
|
+
`);
|
|
2435
|
+
}
|
|
2436
|
+
c(Os, "joinAlignedDiffsNoExpand");
|
|
2437
|
+
function $s(t, e) {
|
|
2438
|
+
return t.map((n, r, o) => {
|
|
2439
|
+
let s = n[1], i = r === 0 || r === o.length - 1;
|
|
2440
|
+
switch (n[0]) {
|
|
2441
|
+
case U:
|
|
2442
|
+
return Jn(s, i, e);
|
|
2443
|
+
case k:
|
|
2444
|
+
return Xn(s, i, e);
|
|
2445
|
+
default:
|
|
2446
|
+
return Zn(s, i, e);
|
|
2447
|
+
}
|
|
2448
|
+
}).join(`
|
|
2449
|
+
`);
|
|
2450
|
+
}
|
|
2451
|
+
c($s, "joinAlignedDiffsExpand");
|
|
2452
|
+
var Ce = /* @__PURE__ */ c((t) => t, "noColor"), Qn = 5, ws = 0;
|
|
2453
|
+
function As() {
|
|
2454
|
+
return {
|
|
2455
|
+
aAnnotation: "Expected",
|
|
2456
|
+
aColor: et.green,
|
|
2457
|
+
aIndicator: "-",
|
|
2458
|
+
bAnnotation: "Received",
|
|
2459
|
+
bColor: et.red,
|
|
2460
|
+
bIndicator: "+",
|
|
2461
|
+
changeColor: et.inverse,
|
|
2462
|
+
changeLineTrailingSpaceColor: Ce,
|
|
2463
|
+
commonColor: et.dim,
|
|
2464
|
+
commonIndicator: " ",
|
|
2465
|
+
commonLineTrailingSpaceColor: Ce,
|
|
2466
|
+
compareKeys: void 0,
|
|
2467
|
+
contextLines: Qn,
|
|
2468
|
+
emptyFirstOrLastLinePlaceholder: "",
|
|
2469
|
+
expand: !0,
|
|
2470
|
+
includeChangeCounts: !1,
|
|
2471
|
+
omitAnnotationLines: !1,
|
|
2472
|
+
patchColor: et.yellow,
|
|
2473
|
+
printBasicPrototype: !1,
|
|
2474
|
+
truncateThreshold: ws,
|
|
2475
|
+
truncateAnnotation: "... Diff result is truncated",
|
|
2476
|
+
truncateAnnotationColor: Ce
|
|
2477
|
+
};
|
|
2478
|
+
}
|
|
2479
|
+
c(As, "getDefaultOptions");
|
|
2480
|
+
function Rs(t) {
|
|
2481
|
+
return t && typeof t == "function" ? t : void 0;
|
|
2482
|
+
}
|
|
2483
|
+
c(Rs, "getCompareKeys");
|
|
2484
|
+
function Ns(t) {
|
|
2485
|
+
return typeof t == "number" && Number.isSafeInteger(t) && t >= 0 ? t : Qn;
|
|
2486
|
+
}
|
|
2487
|
+
c(Ns, "getContextLines");
|
|
2488
|
+
function ht(t = {}) {
|
|
2489
|
+
return {
|
|
2490
|
+
...As(),
|
|
2491
|
+
...t,
|
|
2492
|
+
compareKeys: Rs(t.compareKeys),
|
|
2493
|
+
contextLines: Ns(t.contextLines)
|
|
2494
|
+
};
|
|
2495
|
+
}
|
|
2496
|
+
c(ht, "normalizeDiffOptions");
|
|
2497
|
+
function Et(t) {
|
|
2498
|
+
return t.length === 1 && t[0].length === 0;
|
|
2499
|
+
}
|
|
2500
|
+
c(Et, "isEmptyString");
|
|
2501
|
+
function Ps(t) {
|
|
2502
|
+
let e = 0, n = 0;
|
|
2503
|
+
return t.forEach((r) => {
|
|
2504
|
+
switch (r[0]) {
|
|
2505
|
+
case U:
|
|
2506
|
+
e += 1;
|
|
2507
|
+
break;
|
|
2508
|
+
case k:
|
|
2509
|
+
n += 1;
|
|
2510
|
+
break;
|
|
2511
|
+
}
|
|
2512
|
+
}), { a: e, b: n };
|
|
2513
|
+
}
|
|
2514
|
+
c(Ps, "countChanges");
|
|
2515
|
+
function Is({
|
|
2516
|
+
aAnnotation: t,
|
|
2517
|
+
aColor: e,
|
|
2518
|
+
aIndicator: n,
|
|
2519
|
+
bAnnotation: r,
|
|
2520
|
+
bColor: o,
|
|
2521
|
+
bIndicator: s,
|
|
2522
|
+
includeChangeCounts: i,
|
|
2523
|
+
omitAnnotationLines: a
|
|
2524
|
+
}, l) {
|
|
2525
|
+
if (a)
|
|
2526
|
+
return "";
|
|
2527
|
+
let m = "", p = "";
|
|
2528
|
+
if (i) {
|
|
2529
|
+
let y = String(l.a), g = String(l.b), u = r.length - t.length, h = " ".repeat(Math.max(0, u)), b = " ".repeat(Math.max(0, -u)), _ = g.length -
|
|
2530
|
+
y.length, O = " ".repeat(Math.max(0, _)), d = " ".repeat(Math.max(0, -_));
|
|
2531
|
+
m = `${h} ${n} ${O}${y}`, p = `${b} ${s} ${d}${g}`;
|
|
2532
|
+
}
|
|
2533
|
+
let f = `${n} ${t}${m}`, S = `${s} ${r}${p}`;
|
|
2534
|
+
return `${e(f)}
|
|
2535
|
+
${o(S)}
|
|
2536
|
+
|
|
2537
|
+
`;
|
|
2538
|
+
}
|
|
2539
|
+
c(Is, "printAnnotation");
|
|
2540
|
+
function Ne(t, e, n) {
|
|
2541
|
+
return Is(n, Ps(t)) + (n.expand ? $s(t, n) : Os(t, n)) + (e ? n.truncateAnnotationColor(`
|
|
2542
|
+
${n.truncateAnnotation}`) : "");
|
|
2543
|
+
}
|
|
2544
|
+
c(Ne, "printDiffLines");
|
|
2545
|
+
function Xt(t, e, n) {
|
|
2546
|
+
let r = ht(n), [o, s] = vn(
|
|
2547
|
+
Et(t) ? [] : t,
|
|
2548
|
+
Et(e) ? [] : e,
|
|
2549
|
+
r
|
|
2550
|
+
);
|
|
2551
|
+
return Ne(o, s, r);
|
|
2552
|
+
}
|
|
2553
|
+
c(Xt, "diffLinesUnified");
|
|
2554
|
+
function Ms(t, e, n, r, o) {
|
|
2555
|
+
if (Et(t) && Et(n) && (t = [], n = []), Et(e) && Et(r) && (e = [], r = []), t.length !== n.length || e.length !== r.length)
|
|
2556
|
+
return Xt(t, e, o);
|
|
2557
|
+
let [s, i] = vn(
|
|
2558
|
+
n,
|
|
2559
|
+
r,
|
|
2560
|
+
o
|
|
2561
|
+
), a = 0, l = 0;
|
|
2562
|
+
return s.forEach((m) => {
|
|
2563
|
+
switch (m[0]) {
|
|
2564
|
+
case U:
|
|
2565
|
+
m[1] = t[a], a += 1;
|
|
2566
|
+
break;
|
|
2567
|
+
case k:
|
|
2568
|
+
m[1] = e[l], l += 1;
|
|
2569
|
+
break;
|
|
2570
|
+
default:
|
|
2571
|
+
m[1] = e[l], a += 1, l += 1;
|
|
2572
|
+
}
|
|
2573
|
+
}), Ne(s, i, ht(o));
|
|
2574
|
+
}
|
|
2575
|
+
c(Ms, "diffLinesUnified2");
|
|
2576
|
+
function vn(t, e, n) {
|
|
2577
|
+
let r = n?.truncateThreshold ?? !1, o = Math.max(
|
|
2578
|
+
Math.floor(n?.truncateThreshold ?? 0),
|
|
2579
|
+
0
|
|
2580
|
+
), s = r ? Math.min(t.length, o) : t.length, i = r ? Math.min(e.length, o) : e.length, a = s !== t.length || i !== e.length, l = /* @__PURE__ */ c(
|
|
2581
|
+
(y, g) => t[y] === e[g], "isCommon"), m = [], p = 0, f = 0;
|
|
2582
|
+
for (Hn(s, i, l, /* @__PURE__ */ c((y, g, u) => {
|
|
2583
|
+
for (; p !== g; p += 1)
|
|
2584
|
+
m.push(new I(U, t[p]));
|
|
2585
|
+
for (; f !== u; f += 1)
|
|
2586
|
+
m.push(new I(k, e[f]));
|
|
2587
|
+
for (; y !== 0; y -= 1, p += 1, f += 1)
|
|
2588
|
+
m.push(new I(x, e[f]));
|
|
2589
|
+
}, "foundSubsequence")); p !== s; p += 1)
|
|
2590
|
+
m.push(new I(U, t[p]));
|
|
2591
|
+
for (; f !== i; f += 1)
|
|
2592
|
+
m.push(new I(k, e[f]));
|
|
2593
|
+
return [m, a];
|
|
2594
|
+
}
|
|
2595
|
+
c(vn, "diffLinesRaw");
|
|
2596
|
+
function Dn(t) {
|
|
2597
|
+
if (t === void 0)
|
|
2598
|
+
return "undefined";
|
|
2599
|
+
if (t === null)
|
|
2600
|
+
return "null";
|
|
2601
|
+
if (Array.isArray(t))
|
|
2602
|
+
return "array";
|
|
2603
|
+
if (typeof t == "boolean")
|
|
2604
|
+
return "boolean";
|
|
2605
|
+
if (typeof t == "function")
|
|
2606
|
+
return "function";
|
|
2607
|
+
if (typeof t == "number")
|
|
2608
|
+
return "number";
|
|
2609
|
+
if (typeof t == "string")
|
|
2610
|
+
return "string";
|
|
2611
|
+
if (typeof t == "bigint")
|
|
2612
|
+
return "bigint";
|
|
2613
|
+
if (typeof t == "object") {
|
|
2614
|
+
if (t != null) {
|
|
2615
|
+
if (t.constructor === RegExp)
|
|
2616
|
+
return "regexp";
|
|
2617
|
+
if (t.constructor === Map)
|
|
2618
|
+
return "map";
|
|
2619
|
+
if (t.constructor === Set)
|
|
2620
|
+
return "set";
|
|
2621
|
+
if (t.constructor === Date)
|
|
2622
|
+
return "date";
|
|
2623
|
+
}
|
|
2624
|
+
return "object";
|
|
2625
|
+
} else if (typeof t == "symbol")
|
|
2626
|
+
return "symbol";
|
|
2627
|
+
throw new Error(`value of unknown type: ${t}`);
|
|
2628
|
+
}
|
|
2629
|
+
c(Dn, "getType");
|
|
2630
|
+
function jn(t) {
|
|
2631
|
+
return t.includes(`\r
|
|
2632
|
+
`) ? `\r
|
|
2633
|
+
` : `
|
|
2634
|
+
`;
|
|
2635
|
+
}
|
|
2636
|
+
c(jn, "getNewLineSymbol");
|
|
2637
|
+
function Ls(t, e, n) {
|
|
2638
|
+
let r = n?.truncateThreshold ?? !1, o = Math.max(
|
|
2639
|
+
Math.floor(n?.truncateThreshold ?? 0),
|
|
2640
|
+
0
|
|
2641
|
+
), s = t.length, i = e.length;
|
|
2642
|
+
if (r) {
|
|
2643
|
+
let y = t.includes(`
|
|
2644
|
+
`), g = e.includes(`
|
|
2645
|
+
`), u = jn(t), h = jn(e), b = y ? `${t.split(u, o).join(u)}
|
|
2646
|
+
` : t, _ = g ? `${e.split(h, o).join(h)}
|
|
2647
|
+
` : e;
|
|
2648
|
+
s = b.length, i = _.length;
|
|
2649
|
+
}
|
|
2650
|
+
let a = s !== t.length || i !== e.length, l = /* @__PURE__ */ c((y, g) => t[y] === e[g], "isCommon"), m = 0, p = 0, f = [];
|
|
2651
|
+
return Hn(s, i, l, /* @__PURE__ */ c((y, g, u) => {
|
|
2652
|
+
m !== g && f.push(new I(U, t.slice(m, g))), p !== u && f.push(new I(k, e.slice(p, u))), m = g + y, p = u + y, f.push(new I(x, e.slice(u,
|
|
2653
|
+
p)));
|
|
2654
|
+
}, "foundSubsequence")), m !== s && f.push(new I(U, t.slice(m))), p !== i && f.push(new I(k, e.slice(p))), [f, a];
|
|
2655
|
+
}
|
|
2656
|
+
c(Ls, "diffStrings");
|
|
2657
|
+
function xs(t, e, n) {
|
|
2658
|
+
return e.reduce(
|
|
2659
|
+
(r, o) => r + (o[0] === x ? o[1] : o[0] === t && o[1].length !== 0 ? n(o[1]) : ""),
|
|
2660
|
+
""
|
|
2661
|
+
);
|
|
2662
|
+
}
|
|
2663
|
+
c(xs, "concatenateRelevantDiffs");
|
|
2664
|
+
var Jt = class {
|
|
2665
|
+
static {
|
|
2666
|
+
c(this, "ChangeBuffer");
|
|
2667
|
+
}
|
|
2668
|
+
op;
|
|
2669
|
+
line;
|
|
2670
|
+
// incomplete line
|
|
2671
|
+
lines;
|
|
2672
|
+
// complete lines
|
|
2673
|
+
changeColor;
|
|
2674
|
+
constructor(e, n) {
|
|
2675
|
+
this.op = e, this.line = [], this.lines = [], this.changeColor = n;
|
|
2676
|
+
}
|
|
2677
|
+
pushSubstring(e) {
|
|
2678
|
+
this.pushDiff(new I(this.op, e));
|
|
2679
|
+
}
|
|
2680
|
+
pushLine() {
|
|
2681
|
+
this.lines.push(
|
|
2682
|
+
this.line.length !== 1 ? new I(
|
|
2683
|
+
this.op,
|
|
2684
|
+
xs(this.op, this.line, this.changeColor)
|
|
2685
|
+
) : this.line[0][0] === this.op ? this.line[0] : new I(this.op, this.line[0][1])
|
|
2686
|
+
// was common diff
|
|
2687
|
+
), this.line.length = 0;
|
|
2688
|
+
}
|
|
2689
|
+
isLineEmpty() {
|
|
2690
|
+
return this.line.length === 0;
|
|
2691
|
+
}
|
|
2692
|
+
// Minor input to buffer.
|
|
2693
|
+
pushDiff(e) {
|
|
2694
|
+
this.line.push(e);
|
|
2695
|
+
}
|
|
2696
|
+
// Main input to buffer.
|
|
2697
|
+
align(e) {
|
|
2698
|
+
let n = e[1];
|
|
2699
|
+
if (n.includes(`
|
|
2700
|
+
`)) {
|
|
2701
|
+
let r = n.split(`
|
|
2702
|
+
`), o = r.length - 1;
|
|
2703
|
+
r.forEach((s, i) => {
|
|
2704
|
+
i < o ? (this.pushSubstring(s), this.pushLine()) : s.length !== 0 && this.pushSubstring(s);
|
|
2705
|
+
});
|
|
2706
|
+
} else
|
|
2707
|
+
this.pushDiff(e);
|
|
2708
|
+
}
|
|
2709
|
+
// Output from buffer.
|
|
2710
|
+
moveLinesTo(e) {
|
|
2711
|
+
this.isLineEmpty() || this.pushLine(), e.push(...this.lines), this.lines.length = 0;
|
|
2712
|
+
}
|
|
2713
|
+
}, Oe = class {
|
|
2714
|
+
static {
|
|
2715
|
+
c(this, "CommonBuffer");
|
|
2716
|
+
}
|
|
2717
|
+
deleteBuffer;
|
|
2718
|
+
insertBuffer;
|
|
2719
|
+
lines;
|
|
2720
|
+
constructor(e, n) {
|
|
2721
|
+
this.deleteBuffer = e, this.insertBuffer = n, this.lines = [];
|
|
2722
|
+
}
|
|
2723
|
+
pushDiffCommonLine(e) {
|
|
2724
|
+
this.lines.push(e);
|
|
2725
|
+
}
|
|
2726
|
+
pushDiffChangeLines(e) {
|
|
2727
|
+
let n = e[1].length === 0;
|
|
2728
|
+
(!n || this.deleteBuffer.isLineEmpty()) && this.deleteBuffer.pushDiff(e), (!n || this.insertBuffer.isLineEmpty()) && this.insertBuffer.pushDiff(
|
|
2729
|
+
e);
|
|
2730
|
+
}
|
|
2731
|
+
flushChangeLines() {
|
|
2732
|
+
this.deleteBuffer.moveLinesTo(this.lines), this.insertBuffer.moveLinesTo(this.lines);
|
|
2733
|
+
}
|
|
2734
|
+
// Input to buffer.
|
|
2735
|
+
align(e) {
|
|
2736
|
+
let n = e[0], r = e[1];
|
|
2737
|
+
if (r.includes(`
|
|
2738
|
+
`)) {
|
|
2739
|
+
let o = r.split(`
|
|
2740
|
+
`), s = o.length - 1;
|
|
2741
|
+
o.forEach((i, a) => {
|
|
2742
|
+
if (a === 0) {
|
|
2743
|
+
let l = new I(n, i);
|
|
2744
|
+
this.deleteBuffer.isLineEmpty() && this.insertBuffer.isLineEmpty() ? (this.flushChangeLines(), this.pushDiffCommonLine(l)) : (this.
|
|
2745
|
+
pushDiffChangeLines(l), this.flushChangeLines());
|
|
2746
|
+
} else a < s ? this.pushDiffCommonLine(new I(n, i)) : i.length !== 0 && this.pushDiffChangeLines(new I(n, i));
|
|
2747
|
+
});
|
|
2748
|
+
} else
|
|
2749
|
+
this.pushDiffChangeLines(e);
|
|
2750
|
+
}
|
|
2751
|
+
// Output from buffer.
|
|
2752
|
+
getLines() {
|
|
2753
|
+
return this.flushChangeLines(), this.lines;
|
|
2754
|
+
}
|
|
2755
|
+
};
|
|
2756
|
+
function Fs(t, e) {
|
|
2757
|
+
let n = new Jt(U, e), r = new Jt(k, e), o = new Oe(n, r);
|
|
2758
|
+
return t.forEach((s) => {
|
|
2759
|
+
switch (s[0]) {
|
|
2760
|
+
case U:
|
|
2761
|
+
n.align(s);
|
|
2762
|
+
break;
|
|
2763
|
+
case k:
|
|
2764
|
+
r.align(s);
|
|
2765
|
+
break;
|
|
2766
|
+
default:
|
|
2767
|
+
o.align(s);
|
|
2768
|
+
}
|
|
2769
|
+
}), o.getLines();
|
|
2770
|
+
}
|
|
2771
|
+
c(Fs, "getAlignedDiffs");
|
|
2772
|
+
function Ds(t, e) {
|
|
2773
|
+
if (e) {
|
|
2774
|
+
let n = t.length - 1;
|
|
2775
|
+
return t.some(
|
|
2776
|
+
(r, o) => r[0] === x && (o !== n || r[1] !== `
|
|
2777
|
+
`)
|
|
2778
|
+
);
|
|
2779
|
+
}
|
|
2780
|
+
return t.some((n) => n[0] === x);
|
|
2781
|
+
}
|
|
2782
|
+
c(Ds, "hasCommonDiff");
|
|
2783
|
+
function js(t, e, n) {
|
|
2784
|
+
if (t !== e && t.length !== 0 && e.length !== 0) {
|
|
2785
|
+
let r = t.includes(`
|
|
2786
|
+
`) || e.includes(`
|
|
2787
|
+
`), [o, s] = tr(
|
|
2788
|
+
r ? `${t}
|
|
2789
|
+
` : t,
|
|
2790
|
+
r ? `${e}
|
|
2791
|
+
` : e,
|
|
2792
|
+
!0,
|
|
2793
|
+
// cleanupSemantic
|
|
2794
|
+
n
|
|
2795
|
+
);
|
|
2796
|
+
if (Ds(o, r)) {
|
|
2797
|
+
let i = ht(n), a = Fs(o, i.changeColor);
|
|
2798
|
+
return Ne(a, s, i);
|
|
2799
|
+
}
|
|
2800
|
+
}
|
|
2801
|
+
return Xt(t.split(`
|
|
2802
|
+
`), e.split(`
|
|
2803
|
+
`), n);
|
|
2804
|
+
}
|
|
2805
|
+
c(js, "diffStringsUnified");
|
|
2806
|
+
function tr(t, e, n, r) {
|
|
2807
|
+
let [o, s] = Ls(t, e, r);
|
|
2808
|
+
return n && ys(o), [o, s];
|
|
2809
|
+
}
|
|
2810
|
+
c(tr, "diffStringsRaw");
|
|
2811
|
+
function $e(t, e) {
|
|
2812
|
+
let { commonColor: n } = ht(e);
|
|
2813
|
+
return n(t);
|
|
2814
|
+
}
|
|
2815
|
+
c($e, "getCommonMessage");
|
|
2816
|
+
var {
|
|
2817
|
+
AsymmetricMatcher: Bs,
|
|
2818
|
+
DOMCollection: ks,
|
|
2819
|
+
DOMElement: zs,
|
|
2820
|
+
Immutable: Ys,
|
|
2821
|
+
ReactElement: Us,
|
|
2822
|
+
ReactTestComponent: Ws
|
|
2823
|
+
} = $t, er = [
|
|
2824
|
+
Ws,
|
|
2825
|
+
Us,
|
|
2826
|
+
zs,
|
|
2827
|
+
ks,
|
|
2828
|
+
Ys,
|
|
2829
|
+
Bs,
|
|
2830
|
+
$t.Error
|
|
2831
|
+
], we = {
|
|
2832
|
+
plugins: er
|
|
2833
|
+
}, nr = {
|
|
2834
|
+
callToJSON: !1,
|
|
2835
|
+
maxDepth: 8,
|
|
2836
|
+
plugins: er
|
|
2837
|
+
};
|
|
2838
|
+
function Vs(t, e, n) {
|
|
2839
|
+
if (Object.is(t, e))
|
|
2840
|
+
return "";
|
|
2841
|
+
let r = Dn(t), o = r, s = !1;
|
|
2842
|
+
if (r === "object" && typeof t.asymmetricMatch == "function") {
|
|
2843
|
+
if (t.$$typeof !== Symbol.for("jest.asymmetricMatcher") || typeof t.getExpectedType != "function")
|
|
2844
|
+
return;
|
|
2845
|
+
o = t.getExpectedType(), s = o === "string";
|
|
2846
|
+
}
|
|
2847
|
+
if (o !== Dn(e)) {
|
|
2848
|
+
let i = /* @__PURE__ */ c(function(O) {
|
|
2849
|
+
return O.length <= h ? O : `${O.slice(0, h)}...`;
|
|
2850
|
+
}, "truncate2"), { aAnnotation: a, aColor: l, aIndicator: m, bAnnotation: p, bColor: f, bIndicator: S } = ht(n), y = Ae(nr, n), g = v(t,
|
|
2851
|
+
y), u = v(e, y), h = 1e5;
|
|
2852
|
+
g = i(g), u = i(u);
|
|
2853
|
+
let b = `${l(`${m} ${a}:`)}
|
|
2854
|
+
${g}`, _ = `${f(`${S} ${p}:`)}
|
|
2855
|
+
${u}`;
|
|
2856
|
+
return `${b}
|
|
2857
|
+
|
|
2858
|
+
${_}`;
|
|
2859
|
+
}
|
|
2860
|
+
if (!s)
|
|
2861
|
+
switch (r) {
|
|
2862
|
+
case "string":
|
|
2863
|
+
return Xt(t.split(`
|
|
2864
|
+
`), e.split(`
|
|
2865
|
+
`), n);
|
|
2866
|
+
case "boolean":
|
|
2867
|
+
case "number":
|
|
2868
|
+
return qs(t, e, n);
|
|
2869
|
+
case "map":
|
|
2870
|
+
return Te(Bn(t), Bn(e), n);
|
|
2871
|
+
case "set":
|
|
2872
|
+
return Te(kn(t), kn(e), n);
|
|
2873
|
+
default:
|
|
2874
|
+
return Te(t, e, n);
|
|
2875
|
+
}
|
|
2876
|
+
}
|
|
2877
|
+
c(Vs, "diff");
|
|
2878
|
+
function qs(t, e, n) {
|
|
2879
|
+
let r = v(t, we), o = v(e, we);
|
|
2880
|
+
return r === o ? "" : Xt(r.split(`
|
|
2881
|
+
`), o.split(`
|
|
2882
|
+
`), n);
|
|
2883
|
+
}
|
|
2884
|
+
c(qs, "comparePrimitive");
|
|
2885
|
+
function Bn(t) {
|
|
2886
|
+
return new Map(Array.from(t.entries()).sort());
|
|
2887
|
+
}
|
|
2888
|
+
c(Bn, "sortMap");
|
|
2889
|
+
function kn(t) {
|
|
2890
|
+
return new Set(Array.from(t.values()).sort());
|
|
2891
|
+
}
|
|
2892
|
+
c(kn, "sortSet");
|
|
2893
|
+
function Te(t, e, n) {
|
|
2894
|
+
let r, o = !1;
|
|
2895
|
+
try {
|
|
2896
|
+
let i = Ae(we, n);
|
|
2897
|
+
r = zn(t, e, i, n);
|
|
2898
|
+
} catch {
|
|
2899
|
+
o = !0;
|
|
2900
|
+
}
|
|
2901
|
+
let s = $e(Gn, n);
|
|
2902
|
+
if (r === void 0 || r === s) {
|
|
2903
|
+
let i = Ae(nr, n);
|
|
2904
|
+
r = zn(t, e, i, n), r !== s && !o && (r = `${$e(
|
|
2905
|
+
Es,
|
|
2906
|
+
n
|
|
2907
|
+
)}
|
|
2908
|
+
|
|
2909
|
+
${r}`);
|
|
2910
|
+
}
|
|
2911
|
+
return r;
|
|
2912
|
+
}
|
|
2913
|
+
c(Te, "compareObjects");
|
|
2914
|
+
function Ae(t, e) {
|
|
2915
|
+
let { compareKeys: n, printBasicPrototype: r } = ht(e);
|
|
2916
|
+
return {
|
|
2917
|
+
...t,
|
|
2918
|
+
compareKeys: n,
|
|
2919
|
+
printBasicPrototype: r
|
|
2920
|
+
};
|
|
2921
|
+
}
|
|
2922
|
+
c(Ae, "getFormatOptions");
|
|
2923
|
+
function zn(t, e, n, r) {
|
|
2924
|
+
let o = { ...n, indent: 0 }, s = v(t, o), i = v(e, o);
|
|
2925
|
+
if (s === i)
|
|
2926
|
+
return $e(Gn, r);
|
|
2927
|
+
{
|
|
2928
|
+
let a = v(t, n), l = v(e, n);
|
|
2929
|
+
return Ms(
|
|
2930
|
+
a.split(`
|
|
2931
|
+
`),
|
|
2932
|
+
l.split(`
|
|
2933
|
+
`),
|
|
2934
|
+
s.split(`
|
|
2935
|
+
`),
|
|
2936
|
+
i.split(`
|
|
2937
|
+
`),
|
|
2938
|
+
r
|
|
2939
|
+
);
|
|
2940
|
+
}
|
|
2941
|
+
}
|
|
2942
|
+
c(zn, "getObjectsDifference");
|
|
2943
|
+
var Yn = 2e4;
|
|
2944
|
+
function Un(t) {
|
|
2945
|
+
return Kt(t) === "Object" && typeof t.asymmetricMatch == "function";
|
|
2946
|
+
}
|
|
2947
|
+
c(Un, "isAsymmetricMatcher");
|
|
2948
|
+
function Wn(t, e) {
|
|
2949
|
+
let n = Kt(t), r = Kt(e);
|
|
2950
|
+
return n === r && (n === "Object" || n === "Array");
|
|
2951
|
+
}
|
|
2952
|
+
c(Wn, "isReplaceable");
|
|
2953
|
+
function rr(t, e, n) {
|
|
2954
|
+
let { aAnnotation: r, bAnnotation: o } = ht(n);
|
|
2955
|
+
if (typeof e == "string" && typeof t == "string" && e.length > 0 && t.length > 0 && e.length <= Yn && t.length <= Yn && e !== t) {
|
|
2956
|
+
if (e.includes(`
|
|
2957
|
+
`) || t.includes(`
|
|
2958
|
+
`))
|
|
2959
|
+
return js(e, t, n);
|
|
2960
|
+
let [p] = tr(e, t, !0), f = p.some((u) => u[0] === x), S = Ks(r, o), y = S(r) + Js(
|
|
2961
|
+
Vn(p, U, f)
|
|
2962
|
+
), g = S(o) + Hs(
|
|
2963
|
+
Vn(p, k, f)
|
|
2964
|
+
);
|
|
2965
|
+
return `${y}
|
|
2966
|
+
${g}`;
|
|
2967
|
+
}
|
|
2968
|
+
let s = _e(e, { forceWritable: !0 }), i = _e(t, { forceWritable: !0 }), { replacedExpected: a, replacedActual: l } = or(i, s);
|
|
2969
|
+
return Vs(a, l, n);
|
|
2970
|
+
}
|
|
2971
|
+
c(rr, "printDiffOrStringify");
|
|
2972
|
+
function or(t, e, n = /* @__PURE__ */ new WeakSet(), r = /* @__PURE__ */ new WeakSet()) {
|
|
2973
|
+
return t instanceof Error && e instanceof Error && typeof t.cause < "u" && typeof e.cause > "u" ? (delete t.cause, {
|
|
2974
|
+
replacedActual: t,
|
|
2975
|
+
replacedExpected: e
|
|
2976
|
+
}) : Wn(t, e) ? n.has(t) || r.has(e) ? { replacedActual: t, replacedExpected: e } : (n.add(t), r.add(e), Ee(e).forEach((o) => {
|
|
2977
|
+
let s = e[o], i = t[o];
|
|
2978
|
+
if (Un(s))
|
|
2979
|
+
s.asymmetricMatch(i) && (t[o] = s);
|
|
2980
|
+
else if (Un(i))
|
|
2981
|
+
i.asymmetricMatch(s) && (e[o] = i);
|
|
2982
|
+
else if (Wn(i, s)) {
|
|
2983
|
+
let a = or(
|
|
2984
|
+
i,
|
|
2985
|
+
s,
|
|
2986
|
+
n,
|
|
2987
|
+
r
|
|
2988
|
+
);
|
|
2989
|
+
t[o] = a.replacedActual, e[o] = a.replacedExpected;
|
|
2990
|
+
}
|
|
2991
|
+
}), {
|
|
2992
|
+
replacedActual: t,
|
|
2993
|
+
replacedExpected: e
|
|
2994
|
+
}) : { replacedActual: t, replacedExpected: e };
|
|
2995
|
+
}
|
|
2996
|
+
c(or, "replaceAsymmetricMatcher");
|
|
2997
|
+
function Ks(...t) {
|
|
2998
|
+
let e = t.reduce(
|
|
2999
|
+
(n, r) => r.length > n ? r.length : n,
|
|
3000
|
+
0
|
|
3001
|
+
);
|
|
3002
|
+
return (n) => `${n}: ${" ".repeat(e - n.length)}`;
|
|
3003
|
+
}
|
|
3004
|
+
c(Ks, "getLabelPrinter");
|
|
3005
|
+
var Gs = "\xB7";
|
|
3006
|
+
function sr(t) {
|
|
3007
|
+
return t.replace(/\s+$/gm, (e) => Gs.repeat(e.length));
|
|
3008
|
+
}
|
|
3009
|
+
c(sr, "replaceTrailingSpaces");
|
|
3010
|
+
function Hs(t) {
|
|
3011
|
+
return et.red(sr(gt(t)));
|
|
3012
|
+
}
|
|
3013
|
+
c(Hs, "printReceived");
|
|
3014
|
+
function Js(t) {
|
|
3015
|
+
return et.green(sr(gt(t)));
|
|
3016
|
+
}
|
|
3017
|
+
c(Js, "printExpected");
|
|
3018
|
+
function Vn(t, e, n) {
|
|
3019
|
+
return t.reduce(
|
|
3020
|
+
(r, o) => r + (o[0] === x ? o[1] : o[0] === e ? n ? et.inverse(o[1]) : o[1] : ""),
|
|
3021
|
+
""
|
|
3022
|
+
);
|
|
3023
|
+
}
|
|
3024
|
+
c(Vn, "getCommonAndChangedSubstrings");
|
|
3025
|
+
|
|
3026
|
+
// ../node_modules/@vitest/utils/dist/error.js
|
|
3027
|
+
var Xs = "@@__IMMUTABLE_RECORD__@@", Zs = "@@__IMMUTABLE_ITERABLE__@@";
|
|
3028
|
+
function Qs(t) {
|
|
3029
|
+
return t && (t[Zs] || t[Xs]);
|
|
3030
|
+
}
|
|
3031
|
+
c(Qs, "isImmutable");
|
|
3032
|
+
var vs = Object.getPrototypeOf({});
|
|
3033
|
+
function ir(t) {
|
|
3034
|
+
return t instanceof Error ? `<unserializable>: ${t.message}` : typeof t == "string" ? `<unserializable>: ${t}` : "<unserializable>";
|
|
3035
|
+
}
|
|
3036
|
+
c(ir, "getUnserializableMessage");
|
|
3037
|
+
function _t(t, e = /* @__PURE__ */ new WeakMap()) {
|
|
3038
|
+
if (!t || typeof t == "string")
|
|
3039
|
+
return t;
|
|
3040
|
+
if (typeof t == "function")
|
|
3041
|
+
return `Function<${t.name || "anonymous"}>`;
|
|
3042
|
+
if (typeof t == "symbol")
|
|
3043
|
+
return t.toString();
|
|
3044
|
+
if (typeof t != "object")
|
|
3045
|
+
return t;
|
|
3046
|
+
if (Qs(t))
|
|
3047
|
+
return _t(t.toJSON(), e);
|
|
3048
|
+
if (t instanceof Promise || t.constructor && t.constructor.prototype === "AsyncFunction")
|
|
3049
|
+
return "Promise";
|
|
3050
|
+
if (typeof Element < "u" && t instanceof Element)
|
|
3051
|
+
return t.tagName;
|
|
3052
|
+
if (typeof t.asymmetricMatch == "function")
|
|
3053
|
+
return `${t.toString()} ${An(t.sample)}`;
|
|
3054
|
+
if (typeof t.toJSON == "function")
|
|
3055
|
+
return _t(t.toJSON(), e);
|
|
3056
|
+
if (e.has(t))
|
|
3057
|
+
return e.get(t);
|
|
3058
|
+
if (Array.isArray(t)) {
|
|
3059
|
+
let n = new Array(t.length);
|
|
3060
|
+
return e.set(t, n), t.forEach((r, o) => {
|
|
3061
|
+
try {
|
|
3062
|
+
n[o] = _t(r, e);
|
|
3063
|
+
} catch (s) {
|
|
3064
|
+
n[o] = ir(s);
|
|
3065
|
+
}
|
|
3066
|
+
}), n;
|
|
3067
|
+
} else {
|
|
3068
|
+
let n = /* @__PURE__ */ Object.create(null);
|
|
3069
|
+
e.set(t, n);
|
|
3070
|
+
let r = t;
|
|
3071
|
+
for (; r && r !== vs; )
|
|
3072
|
+
Object.getOwnPropertyNames(r).forEach((o) => {
|
|
3073
|
+
if (!(o in n))
|
|
3074
|
+
try {
|
|
3075
|
+
n[o] = _t(t[o], e);
|
|
3076
|
+
} catch (s) {
|
|
3077
|
+
delete n[o], n[o] = ir(s);
|
|
3078
|
+
}
|
|
3079
|
+
}), r = Object.getPrototypeOf(r);
|
|
3080
|
+
return n;
|
|
3081
|
+
}
|
|
3082
|
+
}
|
|
3083
|
+
c(_t, "serializeValue");
|
|
3084
|
+
function ti(t) {
|
|
3085
|
+
return t.replace(/__(vite_ssr_import|vi_import)_\d+__\./g, "");
|
|
3086
|
+
}
|
|
3087
|
+
c(ti, "normalizeErrorMessage");
|
|
3088
|
+
function Pe(t, e, n = /* @__PURE__ */ new WeakSet()) {
|
|
3089
|
+
if (!t || typeof t != "object")
|
|
3090
|
+
return { message: String(t) };
|
|
3091
|
+
let r = t;
|
|
3092
|
+
r.stack && (r.stackStr = String(r.stack)), r.name && (r.nameStr = String(r.name)), (r.showDiff || r.showDiff === void 0 && r.expected !== void 0 &&
|
|
3093
|
+
r.actual !== void 0) && (r.diff = rr(r.actual, r.expected, {
|
|
3094
|
+
...e,
|
|
3095
|
+
...r.diffOptions
|
|
3096
|
+
})), typeof r.expected != "string" && (r.expected = gt(r.expected, 10)), typeof r.actual != "string" && (r.actual = gt(r.actual, 10));
|
|
3097
|
+
try {
|
|
3098
|
+
typeof r.message == "string" && (r.message = ti(r.message));
|
|
3099
|
+
} catch {
|
|
3100
|
+
}
|
|
3101
|
+
try {
|
|
3102
|
+
!n.has(r) && typeof r.cause == "object" && (n.add(r), r.cause = Pe(r.cause, e, n));
|
|
3103
|
+
} catch {
|
|
3104
|
+
}
|
|
3105
|
+
try {
|
|
3106
|
+
return _t(r);
|
|
3107
|
+
} catch (o) {
|
|
3108
|
+
return _t(
|
|
3109
|
+
new Error(
|
|
3110
|
+
`Failed to fully serialize error: ${o?.message}
|
|
3111
|
+
Inner error message: ${r?.message}`
|
|
3112
|
+
)
|
|
3113
|
+
);
|
|
3114
|
+
}
|
|
3115
|
+
}
|
|
3116
|
+
c(Pe, "processError");
|
|
3117
|
+
|
|
3118
|
+
// src/instrumenter/instrumenter.ts
|
|
3119
|
+
var Zt = require("storybook/preview-api");
|
|
3120
|
+
|
|
3121
|
+
// src/instrumenter/types.ts
|
|
3122
|
+
var cr = /* @__PURE__ */ ((o) => (o.DONE = "done", o.ERROR = "error", o.ACTIVE = "active", o.WAITING = "waiting", o))(cr || {});
|
|
3123
|
+
|
|
3124
|
+
// src/instrumenter/instrumenter.ts
|
|
3125
|
+
var ot = {
|
|
3126
|
+
CALL: "storybook/instrumenter/call",
|
|
3127
|
+
SYNC: "storybook/instrumenter/sync",
|
|
3128
|
+
START: "storybook/instrumenter/start",
|
|
3129
|
+
BACK: "storybook/instrumenter/back",
|
|
3130
|
+
GOTO: "storybook/instrumenter/goto",
|
|
3131
|
+
NEXT: "storybook/instrumenter/next",
|
|
3132
|
+
END: "storybook/instrumenter/end"
|
|
3133
|
+
}, ur = {
|
|
3134
|
+
start: !1,
|
|
3135
|
+
back: !1,
|
|
3136
|
+
goto: !1,
|
|
3137
|
+
next: !1,
|
|
3138
|
+
end: !1
|
|
3139
|
+
}, ei = new Error(
|
|
3140
|
+
"This function ran after the play function completed. Did you forget to `await` it?"
|
|
3141
|
+
), lr = /* @__PURE__ */ c((t) => Object.prototype.toString.call(t) === "[object Object]", "isObject"), ni = /* @__PURE__ */ c((t) => Object.
|
|
3142
|
+
prototype.toString.call(t) === "[object Module]", "isModule"), ri = /* @__PURE__ */ c((t) => {
|
|
3143
|
+
if (!lr(t) && !ni(t))
|
|
3144
|
+
return !1;
|
|
3145
|
+
if (t.constructor === void 0)
|
|
3146
|
+
return !0;
|
|
3147
|
+
let e = t.constructor.prototype;
|
|
3148
|
+
return !!lr(e);
|
|
3149
|
+
}, "isInstrumentable"), oi = /* @__PURE__ */ c((t) => {
|
|
3150
|
+
try {
|
|
3151
|
+
return new t.constructor();
|
|
3152
|
+
} catch {
|
|
3153
|
+
return {};
|
|
3154
|
+
}
|
|
3155
|
+
}, "construct"), Ie = /* @__PURE__ */ c(() => ({
|
|
3156
|
+
renderPhase: void 0,
|
|
3157
|
+
isDebugging: !1,
|
|
3158
|
+
isPlaying: !1,
|
|
3159
|
+
isLocked: !1,
|
|
3160
|
+
cursor: 0,
|
|
3161
|
+
calls: [],
|
|
3162
|
+
shadowCalls: [],
|
|
3163
|
+
callRefsByResult: /* @__PURE__ */ new Map(),
|
|
3164
|
+
chainedCallIds: /* @__PURE__ */ new Set(),
|
|
3165
|
+
ancestors: [],
|
|
3166
|
+
playUntil: void 0,
|
|
3167
|
+
resolvers: {},
|
|
3168
|
+
syncTimeout: void 0
|
|
3169
|
+
}), "getInitialState"), ar = /* @__PURE__ */ c((t, e = !1) => {
|
|
3170
|
+
let n = (e ? t.shadowCalls : t.calls).filter((o) => o.retain);
|
|
3171
|
+
if (!n.length)
|
|
3172
|
+
return;
|
|
3173
|
+
let r = new Map(
|
|
3174
|
+
Array.from(t.callRefsByResult.entries()).filter(([, o]) => o.retain)
|
|
3175
|
+
);
|
|
3176
|
+
return { cursor: n.length, calls: n, callRefsByResult: r };
|
|
3177
|
+
}, "getRetainedState"), Me = class {
|
|
3178
|
+
constructor() {
|
|
3179
|
+
this.initialized = !1;
|
|
3180
|
+
this.state = W.global.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ || {};
|
|
3181
|
+
let e = /* @__PURE__ */ c(({
|
|
3182
|
+
storyId: l,
|
|
3183
|
+
isPlaying: m = !0,
|
|
3184
|
+
isDebugging: p = !1
|
|
3185
|
+
}) => {
|
|
3186
|
+
let f = this.getState(l);
|
|
3187
|
+
this.setState(l, {
|
|
3188
|
+
...Ie(),
|
|
3189
|
+
...ar(f, p),
|
|
3190
|
+
shadowCalls: p ? f.shadowCalls : [],
|
|
3191
|
+
chainedCallIds: p ? f.chainedCallIds : /* @__PURE__ */ new Set(),
|
|
3192
|
+
playUntil: p ? f.playUntil : void 0,
|
|
3193
|
+
isPlaying: m,
|
|
3194
|
+
isDebugging: p
|
|
3195
|
+
}), this.sync(l);
|
|
3196
|
+
}, "resetState"), n = /* @__PURE__ */ c((l) => ({ storyId: m, playUntil: p }) => {
|
|
3197
|
+
this.getState(m).isDebugging || this.setState(m, ({ calls: S }) => ({
|
|
3198
|
+
calls: [],
|
|
3199
|
+
shadowCalls: S.map((y) => ({ ...y, status: "waiting" })),
|
|
3200
|
+
isDebugging: !0
|
|
3201
|
+
}));
|
|
3202
|
+
let f = this.getLog(m);
|
|
3203
|
+
this.setState(m, ({ shadowCalls: S }) => {
|
|
3204
|
+
if (p || !f.length)
|
|
3205
|
+
return { playUntil: p };
|
|
3206
|
+
let y = S.findIndex((g) => g.id === f[0].callId);
|
|
3207
|
+
return {
|
|
3208
|
+
playUntil: S.slice(0, y).filter((g) => g.interceptable && !g.ancestors?.length).slice(-1)[0]?.id
|
|
3209
|
+
};
|
|
3210
|
+
}), l.emit(yt.FORCE_REMOUNT, { storyId: m, isDebugging: !0 });
|
|
3211
|
+
}, "start"), r = /* @__PURE__ */ c((l) => ({ storyId: m }) => {
|
|
3212
|
+
let p = this.getLog(m).filter((S) => !S.ancestors?.length), f = p.reduceRight((S, y, g) => S >= 0 || y.status === "waiting" ? S : g, -1);
|
|
3213
|
+
n(l)({ storyId: m, playUntil: p[f - 1]?.callId });
|
|
3214
|
+
}, "back"), o = /* @__PURE__ */ c((l) => ({ storyId: m, callId: p }) => {
|
|
3215
|
+
let { calls: f, shadowCalls: S, resolvers: y } = this.getState(m), g = f.find(({ id: h }) => h === p), u = S.find(({ id: h }) => h ===
|
|
3216
|
+
p);
|
|
3217
|
+
if (!g && u && Object.values(y).length > 0) {
|
|
3218
|
+
let h = this.getLog(m).find((b) => b.status === "waiting")?.callId;
|
|
3219
|
+
u.id !== h && this.setState(m, { playUntil: u.id }), Object.values(y).forEach((b) => b());
|
|
3220
|
+
} else
|
|
3221
|
+
n(l)({ storyId: m, playUntil: p });
|
|
3222
|
+
}, "goto"), s = /* @__PURE__ */ c((l) => ({ storyId: m }) => {
|
|
3223
|
+
let { resolvers: p } = this.getState(m);
|
|
3224
|
+
if (Object.values(p).length > 0)
|
|
3225
|
+
Object.values(p).forEach((f) => f());
|
|
3226
|
+
else {
|
|
3227
|
+
let f = this.getLog(m).find((S) => S.status === "waiting")?.callId;
|
|
3228
|
+
f ? n(l)({ storyId: m, playUntil: f }) : i({ storyId: m });
|
|
3229
|
+
}
|
|
3230
|
+
}, "next"), i = /* @__PURE__ */ c(({ storyId: l }) => {
|
|
3231
|
+
this.setState(l, { playUntil: void 0, isDebugging: !1 }), Object.values(this.getState(l).resolvers).forEach((m) => m());
|
|
3232
|
+
}, "end"), a = /* @__PURE__ */ c(({ storyId: l, newPhase: m }) => {
|
|
3233
|
+
let { isDebugging: p } = this.getState(l);
|
|
3234
|
+
this.setState(l, { renderPhase: m }), m === "preparing" && p && e({ storyId: l }), m === "playing" && e({ storyId: l, isDebugging: p }),
|
|
3235
|
+
m === "played" && this.setState(l, {
|
|
3236
|
+
isLocked: !1,
|
|
3237
|
+
isPlaying: !1,
|
|
3238
|
+
isDebugging: !1
|
|
3239
|
+
}), m === "errored" && this.setState(l, {
|
|
3240
|
+
isLocked: !1,
|
|
3241
|
+
isPlaying: !1
|
|
3242
|
+
});
|
|
3243
|
+
}, "renderPhaseChanged");
|
|
3244
|
+
(Zt.addons ? Zt.addons.ready() : Promise.resolve()).then(() => {
|
|
3245
|
+
this.channel = Zt.addons.getChannel(), this.channel.on(yt.FORCE_REMOUNT, e), this.channel.on(yt.STORY_RENDER_PHASE_CHANGED, a), this.channel.
|
|
3246
|
+
on(yt.SET_CURRENT_STORY, () => {
|
|
3247
|
+
this.initialized ? this.cleanup() : this.initialized = !0;
|
|
3248
|
+
}), this.channel.on(ot.START, n(this.channel)), this.channel.on(ot.BACK, r(this.channel)), this.channel.on(ot.GOTO, o(this.channel)), this.
|
|
3249
|
+
channel.on(ot.NEXT, s(this.channel)), this.channel.on(ot.END, i);
|
|
3250
|
+
});
|
|
3251
|
+
}
|
|
3252
|
+
static {
|
|
3253
|
+
c(this, "Instrumenter");
|
|
3254
|
+
}
|
|
3255
|
+
getState(e) {
|
|
3256
|
+
return this.state[e] || Ie();
|
|
3257
|
+
}
|
|
3258
|
+
setState(e, n) {
|
|
3259
|
+
let r = this.getState(e), o = typeof n == "function" ? n(r) : n;
|
|
3260
|
+
this.state = { ...this.state, [e]: { ...r, ...o } }, W.global.window?.parent && (W.global.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ =
|
|
3261
|
+
this.state);
|
|
3262
|
+
}
|
|
3263
|
+
cleanup() {
|
|
3264
|
+
this.state = Object.entries(this.state).reduce(
|
|
3265
|
+
(n, [r, o]) => {
|
|
3266
|
+
let s = ar(o);
|
|
3267
|
+
return s && (n[r] = Object.assign(Ie(), s)), n;
|
|
3268
|
+
},
|
|
3269
|
+
{}
|
|
3270
|
+
);
|
|
3271
|
+
let e = { controlStates: ur, logItems: [] };
|
|
3272
|
+
this.channel?.emit(ot.SYNC, e), W.global.window?.parent && (W.global.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ =
|
|
3273
|
+
this.state);
|
|
3274
|
+
}
|
|
3275
|
+
getLog(e) {
|
|
3276
|
+
let { calls: n, shadowCalls: r } = this.getState(e), o = [...r];
|
|
3277
|
+
n.forEach((i, a) => {
|
|
3278
|
+
o[a] = i;
|
|
3279
|
+
});
|
|
3280
|
+
let s = /* @__PURE__ */ new Set();
|
|
3281
|
+
return o.reduceRight((i, a) => (a.args.forEach((l) => {
|
|
3282
|
+
l?.__callId__ && s.add(l.__callId__);
|
|
3283
|
+
}), a.path.forEach((l) => {
|
|
3284
|
+
l.__callId__ && s.add(l.__callId__);
|
|
3285
|
+
}), (a.interceptable || a.exception) && !s.has(a.id) && (i.unshift({ callId: a.id, status: a.status, ancestors: a.ancestors }), s.add(a.
|
|
3286
|
+
id)), i), []);
|
|
3287
|
+
}
|
|
3288
|
+
// Traverses the object structure to recursively patch all function properties.
|
|
3289
|
+
// Returns the original object, or a new object with the same constructor,
|
|
3290
|
+
// depending on whether it should mutate.
|
|
3291
|
+
instrument(e, n, r = 0) {
|
|
3292
|
+
if (!ri(e))
|
|
3293
|
+
return e;
|
|
3294
|
+
let { mutate: o = !1, path: s = [] } = n, i = n.getKeys ? n.getKeys(e, r) : Object.keys(e);
|
|
3295
|
+
return r += 1, i.reduce(
|
|
3296
|
+
(a, l) => {
|
|
3297
|
+
let m = si(e, l);
|
|
3298
|
+
if (typeof m?.get == "function") {
|
|
3299
|
+
if (m.configurable) {
|
|
3300
|
+
let f = /* @__PURE__ */ c(() => m?.get?.bind(e)?.(), "getter");
|
|
3301
|
+
Object.defineProperty(a, l, {
|
|
3302
|
+
get: /* @__PURE__ */ c(() => this.instrument(f(), { ...n, path: s.concat(l) }, r), "get")
|
|
3303
|
+
});
|
|
3304
|
+
}
|
|
3305
|
+
return a;
|
|
3306
|
+
}
|
|
3307
|
+
let p = e[l];
|
|
3308
|
+
return typeof p != "function" ? (a[l] = this.instrument(p, { ...n, path: s.concat(l) }, r), a) : "__originalFn__" in p && typeof p.__originalFn__ ==
|
|
3309
|
+
"function" ? (a[l] = p, a) : (a[l] = (...f) => this.track(l, p, e, f, n), a[l].__originalFn__ = p, Object.defineProperty(a[l], "name",
|
|
3310
|
+
{ value: l, writable: !1 }), Object.keys(p).length > 0 && Object.assign(
|
|
3311
|
+
a[l],
|
|
3312
|
+
this.instrument({ ...p }, { ...n, path: s.concat(l) }, r)
|
|
3313
|
+
), a);
|
|
3314
|
+
},
|
|
3315
|
+
o ? e : oi(e)
|
|
3316
|
+
);
|
|
3317
|
+
}
|
|
3318
|
+
// Monkey patch an object method to record calls.
|
|
3319
|
+
// Returns a function that invokes the original function, records the invocation ("call") and
|
|
3320
|
+
// returns the original result.
|
|
3321
|
+
track(e, n, r, o, s) {
|
|
3322
|
+
let i = o?.[0]?.__storyId__ || W.global.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId, { cursor: a, ancestors: l } = this.getState(
|
|
3323
|
+
i);
|
|
3324
|
+
this.setState(i, { cursor: a + 1 });
|
|
3325
|
+
let m = `${l.slice(-1)[0] || i} [${a}] ${e}`, { path: p = [], intercept: f = !1, retain: S = !1 } = s, y = typeof f == "function" ? f(e,
|
|
3326
|
+
p) : f, g = { id: m, cursor: a, storyId: i, ancestors: l, path: p, method: e, args: o, interceptable: y, retain: S }, h = (y && !l.length ?
|
|
3327
|
+
this.intercept : this.invoke).call(this, n, r, g, s);
|
|
3328
|
+
return this.instrument(h, { ...s, mutate: !0, path: [{ __callId__: g.id }] });
|
|
3329
|
+
}
|
|
3330
|
+
intercept(e, n, r, o) {
|
|
3331
|
+
let { chainedCallIds: s, isDebugging: i, playUntil: a } = this.getState(r.storyId), l = s.has(r.id);
|
|
3332
|
+
return !i || l || a ? (a === r.id && this.setState(r.storyId, { playUntil: void 0 }), this.invoke(e, n, r, o)) : new Promise((m) => {
|
|
3333
|
+
this.setState(r.storyId, ({ resolvers: p }) => ({
|
|
3334
|
+
isLocked: !1,
|
|
3335
|
+
resolvers: { ...p, [r.id]: m }
|
|
3336
|
+
}));
|
|
3337
|
+
}).then(() => (this.setState(r.storyId, (m) => {
|
|
3338
|
+
let { [r.id]: p, ...f } = m.resolvers;
|
|
3339
|
+
return { isLocked: !0, resolvers: f };
|
|
3340
|
+
}), this.invoke(e, n, r, o)));
|
|
3341
|
+
}
|
|
3342
|
+
invoke(e, n, r, o) {
|
|
3343
|
+
let { callRefsByResult: s, renderPhase: i } = this.getState(r.storyId), a = 25, l = /* @__PURE__ */ c((f, S, y) => {
|
|
3344
|
+
if (y.includes(f))
|
|
3345
|
+
return "[Circular]";
|
|
3346
|
+
if (y = [...y, f], S > a)
|
|
3347
|
+
return "...";
|
|
3348
|
+
if (s.has(f))
|
|
3349
|
+
return s.get(f);
|
|
3350
|
+
if (f instanceof Array)
|
|
3351
|
+
return f.map((g) => l(g, ++S, y));
|
|
3352
|
+
if (f instanceof Date)
|
|
3353
|
+
return { __date__: { value: f.toISOString() } };
|
|
3354
|
+
if (f instanceof Error) {
|
|
3355
|
+
let { name: g, message: u, stack: h } = f;
|
|
3356
|
+
return { __error__: { name: g, message: u, stack: h } };
|
|
3357
|
+
}
|
|
3358
|
+
if (f instanceof RegExp) {
|
|
3359
|
+
let { flags: g, source: u } = f;
|
|
3360
|
+
return { __regexp__: { flags: g, source: u } };
|
|
3361
|
+
}
|
|
3362
|
+
if (f instanceof W.global.window?.HTMLElement) {
|
|
3363
|
+
let { prefix: g, localName: u, id: h, classList: b, innerText: _ } = f, O = Array.from(b);
|
|
3364
|
+
return { __element__: { prefix: g, localName: u, id: h, classNames: O, innerText: _ } };
|
|
3365
|
+
}
|
|
3366
|
+
return typeof f == "function" ? {
|
|
3367
|
+
__function__: { name: "getMockName" in f ? f.getMockName() : f.name }
|
|
3368
|
+
} : typeof f == "symbol" ? { __symbol__: { description: f.description } } : typeof f == "object" && f?.constructor?.name && f?.constructor?.
|
|
3369
|
+
name !== "Object" ? { __class__: { name: f.constructor.name } } : Object.prototype.toString.call(f) === "[object Object]" ? Object.fromEntries(
|
|
3370
|
+
Object.entries(f).map(([g, u]) => [g, l(u, ++S, y)])
|
|
3371
|
+
) : f;
|
|
3372
|
+
}, "serializeValues"), m = {
|
|
3373
|
+
...r,
|
|
3374
|
+
args: r.args.map((f) => l(f, 0, []))
|
|
3375
|
+
};
|
|
3376
|
+
r.path.forEach((f) => {
|
|
3377
|
+
f?.__callId__ && this.setState(r.storyId, ({ chainedCallIds: S }) => ({
|
|
3378
|
+
chainedCallIds: new Set(Array.from(S).concat(f.__callId__))
|
|
3379
|
+
}));
|
|
3380
|
+
});
|
|
3381
|
+
let p = /* @__PURE__ */ c((f) => {
|
|
3382
|
+
if (f instanceof Error) {
|
|
3383
|
+
let { name: S, message: y, stack: g, callId: u = r.id } = f, {
|
|
3384
|
+
showDiff: h = void 0,
|
|
3385
|
+
diff: b = void 0,
|
|
3386
|
+
actual: _ = void 0,
|
|
3387
|
+
expected: O = void 0
|
|
3388
|
+
} = f.name === "AssertionError" ? Pe(f) : f, d = { name: S, message: y, stack: g, callId: u, showDiff: h, diff: b, actual: _, expected: O };
|
|
3389
|
+
if (this.update({ ...m, status: "error", exception: d }), this.setState(r.storyId, (E) => ({
|
|
3390
|
+
callRefsByResult: new Map([
|
|
3391
|
+
...Array.from(E.callRefsByResult.entries()),
|
|
3392
|
+
[f, { __callId__: r.id, retain: r.retain }]
|
|
3393
|
+
])
|
|
3394
|
+
})), r.ancestors?.length)
|
|
3395
|
+
throw Object.prototype.hasOwnProperty.call(f, "callId") || Object.defineProperty(f, "callId", { value: r.id }), f;
|
|
3396
|
+
}
|
|
3397
|
+
throw f;
|
|
3398
|
+
}, "handleException");
|
|
3399
|
+
try {
|
|
3400
|
+
if (i === "played" && !r.retain)
|
|
3401
|
+
throw ei;
|
|
3402
|
+
let S = (o.getArgs ? o.getArgs(r, this.getState(r.storyId)) : r.args).map((g) => typeof g != "function" || Object.keys(g).length ? g :
|
|
3403
|
+
(...u) => {
|
|
3404
|
+
let { cursor: h, ancestors: b } = this.getState(r.storyId);
|
|
3405
|
+
this.setState(r.storyId, { cursor: 0, ancestors: [...b, r.id] });
|
|
3406
|
+
let _ = /* @__PURE__ */ c(() => this.setState(r.storyId, { cursor: h, ancestors: b }), "restore"), O = !1;
|
|
3407
|
+
try {
|
|
3408
|
+
let d = g(...u);
|
|
3409
|
+
return d instanceof Promise ? (O = !0, d.finally(_)) : d;
|
|
3410
|
+
} finally {
|
|
3411
|
+
O || _();
|
|
3412
|
+
}
|
|
3413
|
+
}), y = e.apply(n, S);
|
|
3414
|
+
return y && ["object", "function", "symbol"].includes(typeof y) && this.setState(r.storyId, (g) => ({
|
|
3415
|
+
callRefsByResult: new Map([
|
|
3416
|
+
...Array.from(g.callRefsByResult.entries()),
|
|
3417
|
+
[y, { __callId__: r.id, retain: r.retain }]
|
|
3418
|
+
])
|
|
3419
|
+
})), this.update({
|
|
3420
|
+
...m,
|
|
3421
|
+
status: y instanceof Promise ? "active" : "done"
|
|
3422
|
+
}), y instanceof Promise ? y.then((g) => (this.update({ ...m, status: "done" }), g), p) : y;
|
|
3423
|
+
} catch (f) {
|
|
3424
|
+
return p(f);
|
|
3425
|
+
}
|
|
3426
|
+
}
|
|
3427
|
+
// Sends the call info to the manager and synchronizes the log.
|
|
3428
|
+
update(e) {
|
|
3429
|
+
this.channel?.emit(ot.CALL, e), this.setState(e.storyId, ({ calls: n }) => {
|
|
3430
|
+
let r = n.concat(e).reduce((o, s) => Object.assign(o, { [s.id]: s }), {});
|
|
3431
|
+
return {
|
|
3432
|
+
// Calls are sorted to ensure parent calls always come before calls in their callback.
|
|
3433
|
+
calls: Object.values(r).sort(
|
|
3434
|
+
(o, s) => o.id.localeCompare(s.id, void 0, { numeric: !0 })
|
|
3435
|
+
)
|
|
3436
|
+
};
|
|
3437
|
+
}), this.sync(e.storyId);
|
|
3438
|
+
}
|
|
3439
|
+
// Builds a log of interceptable calls and control states and sends it to the manager.
|
|
3440
|
+
// Uses a 0ms debounce because this might get called many times in one tick.
|
|
3441
|
+
sync(e) {
|
|
3442
|
+
let n = /* @__PURE__ */ c(() => {
|
|
3443
|
+
let { isLocked: r, isPlaying: o } = this.getState(e), s = this.getLog(e), i = s.filter(({ ancestors: f }) => !f.length).find((f) => f.
|
|
3444
|
+
status === "waiting")?.callId, a = s.some((f) => f.status === "active");
|
|
3445
|
+
if (r || a || s.length === 0) {
|
|
3446
|
+
let f = { controlStates: ur, logItems: s };
|
|
3447
|
+
this.channel?.emit(ot.SYNC, f);
|
|
3448
|
+
return;
|
|
3449
|
+
}
|
|
3450
|
+
let l = s.some(
|
|
3451
|
+
(f) => f.status === "done" || f.status === "error"
|
|
3452
|
+
), p = { controlStates: {
|
|
3453
|
+
start: l,
|
|
3454
|
+
back: l,
|
|
3455
|
+
goto: !0,
|
|
3456
|
+
next: o,
|
|
3457
|
+
end: o
|
|
3458
|
+
}, logItems: s, pausedAt: i };
|
|
3459
|
+
this.channel?.emit(ot.SYNC, p);
|
|
3460
|
+
}, "synchronize");
|
|
3461
|
+
this.setState(e, ({ syncTimeout: r }) => (clearTimeout(r), { syncTimeout: setTimeout(n, 0) }));
|
|
3462
|
+
}
|
|
3463
|
+
};
|
|
3464
|
+
function mr(t, e = {}) {
|
|
3465
|
+
try {
|
|
3466
|
+
let n = !1, r = !1;
|
|
3467
|
+
return W.global.window?.location?.search?.includes("instrument=true") ? n = !0 : W.global.window?.location?.search?.includes("instrument\
|
|
3468
|
+
=false") && (r = !0), W.global.window?.parent === W.global.window && !n || r ? t : (W.global.window && !W.global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ &&
|
|
3469
|
+
(W.global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ = new Me()), (W.global.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).
|
|
3470
|
+
instrument(t, e));
|
|
3471
|
+
} catch (n) {
|
|
3472
|
+
return fr.once.warn(n), t;
|
|
3473
|
+
}
|
|
3474
|
+
}
|
|
3475
|
+
c(mr, "instrument");
|
|
3476
|
+
function si(t, e) {
|
|
3477
|
+
let n = t;
|
|
3478
|
+
for (; n != null; ) {
|
|
3479
|
+
let r = Object.getOwnPropertyDescriptor(n, e);
|
|
3480
|
+
if (r)
|
|
3481
|
+
return r;
|
|
3482
|
+
n = Object.getPrototypeOf(n);
|
|
3483
|
+
}
|
|
3484
|
+
}
|
|
3485
|
+
c(si, "getPropertyDescriptor");
|