storybook 9.0.0-alpha.1 → 9.0.0-alpha.11

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