@trishchuk/coolors-mcp 1.0.0 → 1.0.1

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 (66) hide show
  1. package/.claude/settings.local.json +2 -6
  2. package/.github/ISSUE_TEMPLATE/bug_report.md +20 -8
  3. package/.github/ISSUE_TEMPLATE/feature_request.md +22 -8
  4. package/.github/pull_request_template.md +33 -8
  5. package/.github/workflows/ci.yml +97 -97
  6. package/.github/workflows/deploy-docs.yml +9 -9
  7. package/.github/workflows/release.yml +15 -15
  8. package/README.md +26 -1
  9. package/TOOLS_UK.md +233 -0
  10. package/docs/.vitepress/cache/deps/@braintree_sanitize-url.js +30 -12
  11. package/docs/.vitepress/cache/deps/_metadata.json +1 -1
  12. package/docs/.vitepress/cache/deps/chunk-BUSYA2B4.js +9 -6
  13. package/docs/.vitepress/cache/deps/chunk-JD3CXNQ6.js +2543 -1612
  14. package/docs/.vitepress/cache/deps/chunk-SYPOPCWC.js +3508 -2529
  15. package/docs/.vitepress/cache/deps/cytoscape-cose-bilkent.js +1902 -1003
  16. package/docs/.vitepress/cache/deps/cytoscape.js +13303 -7347
  17. package/docs/.vitepress/cache/deps/dayjs.js +494 -272
  18. package/docs/.vitepress/cache/deps/debug.js +82 -38
  19. package/docs/.vitepress/cache/deps/prismjs.js +444 -272
  20. package/docs/.vitepress/cache/deps/prismjs_components_prism-bash.js +80 -73
  21. package/docs/.vitepress/cache/deps/prismjs_components_prism-javascript.js +93 -62
  22. package/docs/.vitepress/cache/deps/prismjs_components_prism-json.js +13 -13
  23. package/docs/.vitepress/cache/deps/prismjs_components_prism-python.js +34 -27
  24. package/docs/.vitepress/cache/deps/prismjs_components_prism-typescript.js +20 -17
  25. package/docs/.vitepress/cache/deps/prismjs_components_prism-yaml.js +75 -41
  26. package/docs/.vitepress/cache/deps/vitepress___@vue_devtools-api.js +2005 -1438
  27. package/docs/.vitepress/cache/deps/vitepress___@vueuse_core.js +2 -2
  28. package/docs/.vitepress/cache/deps/vitepress___@vueuse_integrations_useFocusTrap.js +566 -229
  29. package/docs/.vitepress/cache/deps/vitepress___mark__js_src_vanilla__js.js +382 -270
  30. package/docs/.vitepress/cache/deps/vitepress___minisearch.js +334 -125
  31. package/docs/.vitepress/cache/deps/vue.js +2 -2
  32. package/docs/.vitepress/components/ClientGrid.vue +9 -3
  33. package/docs/.vitepress/components/CodeBlock.vue +51 -44
  34. package/docs/.vitepress/components/ConfigModal.vue +151 -67
  35. package/docs/.vitepress/components/DiagramModal.vue +186 -154
  36. package/docs/.vitepress/components/TroubleshootingModal.vue +101 -96
  37. package/docs/.vitepress/config.js +171 -141
  38. package/docs/.vitepress/theme/FundingLayout.vue +65 -54
  39. package/docs/.vitepress/theme/Layout.vue +21 -21
  40. package/docs/.vitepress/theme/components/AdBanner.vue +73 -52
  41. package/docs/.vitepress/theme/components/AdPlaceholder.vue +3 -3
  42. package/docs/.vitepress/theme/components/FundingEffects.vue +77 -53
  43. package/docs/.vitepress/theme/components/FundingHero.vue +78 -63
  44. package/docs/.vitepress/theme/components/SupportSection.vue +106 -89
  45. package/docs/.vitepress/theme/custom-app.css +19 -12
  46. package/docs/.vitepress/theme/custom.css +33 -25
  47. package/docs/.vitepress/theme/index.js +19 -16
  48. package/docs/concepts/accessibility.md +59 -47
  49. package/docs/concepts/color-spaces.md +28 -6
  50. package/docs/concepts/distance-metrics.md +45 -30
  51. package/docs/concepts/hct.md +30 -27
  52. package/docs/concepts/image-analysis.md +52 -21
  53. package/docs/concepts/material-design.md +43 -17
  54. package/docs/concepts/theme-matching.md +64 -40
  55. package/docs/examples/basic-colors.md +92 -108
  56. package/docs/examples/creating-themes.md +104 -108
  57. package/docs/examples/css-refactoring.md +33 -29
  58. package/docs/examples/image-extraction.md +145 -138
  59. package/docs/getting-started.md +45 -34
  60. package/docs/index.md +5 -1
  61. package/docs/installation.md +15 -1
  62. package/docs/tools/accessibility.md +74 -68
  63. package/docs/tools/image-extraction.md +62 -54
  64. package/docs/tools/theme-matching.md +45 -42
  65. package/note.md +1 -2
  66. package/package.json +2 -2
@@ -7,35 +7,52 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
7
  var __getOwnPropNames = Object.getOwnPropertyNames;
8
8
  var __getProtoOf = Object.getPrototypeOf;
9
9
  var __hasOwnProp = Object.prototype.hasOwnProperty;
10
- var __esm = (fn, res) => function __init() {
11
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
12
- };
13
- var __commonJS = (cb, mod) => function __require() {
14
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
15
- };
10
+ var __esm = (fn, res) =>
11
+ function __init() {
12
+ return (fn && (res = (0, fn[__getOwnPropNames(fn)[0]])((fn = 0))), res);
13
+ };
14
+ var __commonJS = (cb, mod) =>
15
+ function __require() {
16
+ return (
17
+ mod ||
18
+ (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod),
19
+ mod.exports
20
+ );
21
+ };
16
22
  var __copyProps = (to, from, except, desc) => {
17
- if (from && typeof from === "object" || typeof from === "function") {
23
+ if ((from && typeof from === "object") || typeof from === "function") {
18
24
  for (let key of __getOwnPropNames(from))
19
25
  if (!__hasOwnProp.call(to, key) && key !== except)
20
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
26
+ __defProp(to, key, {
27
+ get: () => from[key],
28
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable,
29
+ });
21
30
  }
22
31
  return to;
23
32
  };
24
- var __toESM = (mod, isNodeMode, target2) => (target2 = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
25
- // If the importer is in node compatibility mode or this is not an ESM
26
- // file that has been converted to a CommonJS file using a Babel-
27
- // compatible transform (i.e. "__esModule" has not been set), then set
28
- // "default" to the CommonJS "module.exports" for node compatibility.
29
- isNodeMode || !mod || !mod.__esModule ? __defProp(target2, "default", { value: mod, enumerable: true }) : target2,
30
- mod
31
- ));
33
+ var __toESM = (mod, isNodeMode, target2) => (
34
+ (target2 = mod != null ? __create(__getProtoOf(mod)) : {}),
35
+ __copyProps(
36
+ // If the importer is in node compatibility mode or this is not an ESM
37
+ // file that has been converted to a CommonJS file using a Babel-
38
+ // compatible transform (i.e. "__esModule" has not been set), then set
39
+ // "default" to the CommonJS "module.exports" for node compatibility.
40
+ isNodeMode || !mod || !mod.__esModule
41
+ ? __defProp(target2, "default", { value: mod, enumerable: true })
42
+ : target2,
43
+ mod,
44
+ )
45
+ );
32
46
  var init_esm_shims = __esm({
33
47
  "../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"() {
34
48
  "use strict";
35
- }
49
+ },
36
50
  });
37
51
  var require_rfdc = __commonJS({
38
- "../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(exports, module) {
52
+ "../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(
53
+ exports,
54
+ module,
55
+ ) {
39
56
  "use strict";
40
57
  init_esm_shims();
41
58
  module.exports = rfdc2;
@@ -43,15 +60,25 @@ var require_rfdc = __commonJS({
43
60
  if (cur instanceof Buffer) {
44
61
  return Buffer.from(cur);
45
62
  }
46
- return new cur.constructor(cur.buffer.slice(), cur.byteOffset, cur.length);
63
+ return new cur.constructor(
64
+ cur.buffer.slice(),
65
+ cur.byteOffset,
66
+ cur.length,
67
+ );
47
68
  }
48
69
  function rfdc2(opts) {
49
70
  opts = opts || {};
50
71
  if (opts.circles) return rfdcCircles(opts);
51
72
  const constructorHandlers = /* @__PURE__ */ new Map();
52
73
  constructorHandlers.set(Date, (o) => new Date(o));
53
- constructorHandlers.set(Map, (o, fn) => new Map(cloneArray(Array.from(o), fn)));
54
- constructorHandlers.set(Set, (o, fn) => new Set(cloneArray(Array.from(o), fn)));
74
+ constructorHandlers.set(
75
+ Map,
76
+ (o, fn) => new Map(cloneArray(Array.from(o), fn)),
77
+ );
78
+ constructorHandlers.set(
79
+ Set,
80
+ (o, fn) => new Set(cloneArray(Array.from(o), fn)),
81
+ );
55
82
  if (opts.constructorHandlers) {
56
83
  for (const handler2 of opts.constructorHandlers) {
57
84
  constructorHandlers.set(handler2[0], handler2[1]);
@@ -67,7 +94,10 @@ var require_rfdc = __commonJS({
67
94
  const cur = a[k];
68
95
  if (typeof cur !== "object" || cur === null) {
69
96
  a2[k] = cur;
70
- } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
97
+ } else if (
98
+ cur.constructor !== Object &&
99
+ (handler = constructorHandlers.get(cur.constructor))
100
+ ) {
71
101
  a2[k] = handler(cur, fn);
72
102
  } else if (ArrayBuffer.isView(cur)) {
73
103
  a2[k] = copyBuffer(cur);
@@ -80,7 +110,10 @@ var require_rfdc = __commonJS({
80
110
  function clone(o) {
81
111
  if (typeof o !== "object" || o === null) return o;
82
112
  if (Array.isArray(o)) return cloneArray(o, clone);
83
- if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
113
+ if (
114
+ o.constructor !== Object &&
115
+ (handler = constructorHandlers.get(o.constructor))
116
+ ) {
84
117
  return handler(o, clone);
85
118
  }
86
119
  const o2 = {};
@@ -89,7 +122,10 @@ var require_rfdc = __commonJS({
89
122
  const cur = o[k];
90
123
  if (typeof cur !== "object" || cur === null) {
91
124
  o2[k] = cur;
92
- } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
125
+ } else if (
126
+ cur.constructor !== Object &&
127
+ (handler = constructorHandlers.get(cur.constructor))
128
+ ) {
93
129
  o2[k] = handler(cur, clone);
94
130
  } else if (ArrayBuffer.isView(cur)) {
95
131
  o2[k] = copyBuffer(cur);
@@ -102,7 +138,10 @@ var require_rfdc = __commonJS({
102
138
  function cloneProto(o) {
103
139
  if (typeof o !== "object" || o === null) return o;
104
140
  if (Array.isArray(o)) return cloneArray(o, cloneProto);
105
- if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
141
+ if (
142
+ o.constructor !== Object &&
143
+ (handler = constructorHandlers.get(o.constructor))
144
+ ) {
106
145
  return handler(o, cloneProto);
107
146
  }
108
147
  const o2 = {};
@@ -110,7 +149,10 @@ var require_rfdc = __commonJS({
110
149
  const cur = o[k];
111
150
  if (typeof cur !== "object" || cur === null) {
112
151
  o2[k] = cur;
113
- } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
152
+ } else if (
153
+ cur.constructor !== Object &&
154
+ (handler = constructorHandlers.get(cur.constructor))
155
+ ) {
114
156
  o2[k] = handler(cur, cloneProto);
115
157
  } else if (ArrayBuffer.isView(cur)) {
116
158
  o2[k] = copyBuffer(cur);
@@ -126,8 +168,14 @@ var require_rfdc = __commonJS({
126
168
  const refsNew = [];
127
169
  const constructorHandlers = /* @__PURE__ */ new Map();
128
170
  constructorHandlers.set(Date, (o) => new Date(o));
129
- constructorHandlers.set(Map, (o, fn) => new Map(cloneArray(Array.from(o), fn)));
130
- constructorHandlers.set(Set, (o, fn) => new Set(cloneArray(Array.from(o), fn)));
171
+ constructorHandlers.set(
172
+ Map,
173
+ (o, fn) => new Map(cloneArray(Array.from(o), fn)),
174
+ );
175
+ constructorHandlers.set(
176
+ Set,
177
+ (o, fn) => new Set(cloneArray(Array.from(o), fn)),
178
+ );
131
179
  if (opts.constructorHandlers) {
132
180
  for (const handler2 of opts.constructorHandlers) {
133
181
  constructorHandlers.set(handler2[0], handler2[1]);
@@ -143,7 +191,10 @@ var require_rfdc = __commonJS({
143
191
  const cur = a[k];
144
192
  if (typeof cur !== "object" || cur === null) {
145
193
  a2[k] = cur;
146
- } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
194
+ } else if (
195
+ cur.constructor !== Object &&
196
+ (handler = constructorHandlers.get(cur.constructor))
197
+ ) {
147
198
  a2[k] = handler(cur, fn);
148
199
  } else if (ArrayBuffer.isView(cur)) {
149
200
  a2[k] = copyBuffer(cur);
@@ -161,7 +212,10 @@ var require_rfdc = __commonJS({
161
212
  function clone(o) {
162
213
  if (typeof o !== "object" || o === null) return o;
163
214
  if (Array.isArray(o)) return cloneArray(o, clone);
164
- if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
215
+ if (
216
+ o.constructor !== Object &&
217
+ (handler = constructorHandlers.get(o.constructor))
218
+ ) {
165
219
  return handler(o, clone);
166
220
  }
167
221
  const o2 = {};
@@ -172,7 +226,10 @@ var require_rfdc = __commonJS({
172
226
  const cur = o[k];
173
227
  if (typeof cur !== "object" || cur === null) {
174
228
  o2[k] = cur;
175
- } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
229
+ } else if (
230
+ cur.constructor !== Object &&
231
+ (handler = constructorHandlers.get(cur.constructor))
232
+ ) {
176
233
  o2[k] = handler(cur, clone);
177
234
  } else if (ArrayBuffer.isView(cur)) {
178
235
  o2[k] = copyBuffer(cur);
@@ -192,7 +249,10 @@ var require_rfdc = __commonJS({
192
249
  function cloneProto(o) {
193
250
  if (typeof o !== "object" || o === null) return o;
194
251
  if (Array.isArray(o)) return cloneArray(o, cloneProto);
195
- if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
252
+ if (
253
+ o.constructor !== Object &&
254
+ (handler = constructorHandlers.get(o.constructor))
255
+ ) {
196
256
  return handler(o, cloneProto);
197
257
  }
198
258
  const o2 = {};
@@ -202,7 +262,10 @@ var require_rfdc = __commonJS({
202
262
  const cur = o[k];
203
263
  if (typeof cur !== "object" || cur === null) {
204
264
  o2[k] = cur;
205
- } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
265
+ } else if (
266
+ cur.constructor !== Object &&
267
+ (handler = constructorHandlers.get(cur.constructor))
268
+ ) {
206
269
  o2[k] = handler(cur, cloneProto);
207
270
  } else if (ArrayBuffer.isView(cur)) {
208
271
  o2[k] = copyBuffer(cur);
@@ -220,17 +283,29 @@ var require_rfdc = __commonJS({
220
283
  return o2;
221
284
  }
222
285
  }
223
- }
286
+ },
224
287
  });
225
288
  init_esm_shims();
226
289
  init_esm_shims();
227
290
  init_esm_shims();
228
291
  var isBrowser = typeof navigator !== "undefined";
229
- var target = typeof window !== "undefined" ? window : typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : {};
230
- var isInChromePanel = typeof target.chrome !== "undefined" && !!target.chrome.devtools;
292
+ var target =
293
+ typeof window !== "undefined"
294
+ ? window
295
+ : typeof globalThis !== "undefined"
296
+ ? globalThis
297
+ : typeof global !== "undefined"
298
+ ? global
299
+ : {};
300
+ var isInChromePanel =
301
+ typeof target.chrome !== "undefined" && !!target.chrome.devtools;
231
302
  var isInIframe = isBrowser && target.self !== target.top;
232
303
  var _a;
233
- var isInElectron = typeof navigator !== "undefined" && ((_a = navigator.userAgent) == null ? void 0 : _a.toLowerCase().includes("electron"));
304
+ var isInElectron =
305
+ typeof navigator !== "undefined" &&
306
+ ((_a = navigator.userAgent) == null
307
+ ? void 0
308
+ : _a.toLowerCase().includes("electron"));
234
309
  var isNuxtApp = typeof window !== "undefined" && !!window.__NUXT__;
235
310
  init_esm_shims();
236
311
  var import_rfdc = __toESM(require_rfdc(), 1);
@@ -262,7 +337,7 @@ var deepClone = (0, import_rfdc.default)({ circles: true });
262
337
 
263
338
  // node_modules/perfect-debounce/dist/index.mjs
264
339
  var DEBOUNCE_DEFAULTS = {
265
- trailing: true
340
+ trailing: true,
266
341
  };
267
342
  function debounce(fn, wait = 25, options = {}) {
268
343
  options = { ...DEBOUNCE_DEFAULTS, ...options };
@@ -286,7 +361,7 @@ function debounce(fn, wait = 25, options = {}) {
286
361
  });
287
362
  return currentPromise;
288
363
  };
289
- return function(...args) {
364
+ return function (...args) {
290
365
  if (currentPromise) {
291
366
  if (options.trailing) {
292
367
  trailingArgs = args;
@@ -332,13 +407,15 @@ function flatHooks(configHooks, hooks2 = {}, parentName) {
332
407
  }
333
408
  var defaultTask = { run: (function_) => function_() };
334
409
  var _createTask = () => defaultTask;
335
- var createTask = typeof console.createTask !== "undefined" ? console.createTask : _createTask;
410
+ var createTask =
411
+ typeof console.createTask !== "undefined" ? console.createTask : _createTask;
336
412
  function serialTaskCaller(hooks2, args) {
337
413
  const name = args.shift();
338
414
  const task = createTask(name);
339
415
  return hooks2.reduce(
340
- (promise, hookFunction) => promise.then(() => task.run(() => hookFunction(...args))),
341
- Promise.resolve()
416
+ (promise, hookFunction) =>
417
+ promise.then(() => task.run(() => hookFunction(...args))),
418
+ Promise.resolve(),
342
419
  );
343
420
  }
344
421
  function parallelTaskCaller(hooks2, args) {
@@ -364,8 +441,7 @@ var Hookable = class {
364
441
  }
365
442
  hook(name, function_, options = {}) {
366
443
  if (!name || typeof function_ !== "function") {
367
- return () => {
368
- };
444
+ return () => {};
369
445
  }
370
446
  const originalName = name;
371
447
  let dep;
@@ -376,7 +452,9 @@ var Hookable = class {
376
452
  if (dep && !options.allowDeprecated) {
377
453
  let message = dep.message;
378
454
  if (!message) {
379
- message = `${originalName} hook has been deprecated` + (dep.to ? `, please use ${dep.to}` : "");
455
+ message =
456
+ `${originalName} hook has been deprecated` +
457
+ (dep.to ? `, please use ${dep.to}` : "");
380
458
  }
381
459
  if (!this._deprecatedMessages) {
382
460
  this._deprecatedMessages = /* @__PURE__ */ new Set();
@@ -390,10 +468,9 @@ var Hookable = class {
390
468
  try {
391
469
  Object.defineProperty(function_, "name", {
392
470
  get: () => "_" + name.replace(/\W+/g, "_") + "_hook_cb",
393
- configurable: true
471
+ configurable: true,
394
472
  });
395
- } catch {
396
- }
473
+ } catch {}
397
474
  }
398
475
  this._hooks[name] = this._hooks[name] || [];
399
476
  this._hooks[name].push(function_);
@@ -429,7 +506,8 @@ var Hookable = class {
429
506
  }
430
507
  }
431
508
  deprecateHook(name, deprecated) {
432
- this._deprecatedHooks[name] = typeof deprecated === "string" ? { to: deprecated } : deprecated;
509
+ this._deprecatedHooks[name] =
510
+ typeof deprecated === "string" ? { to: deprecated } : deprecated;
433
511
  const _hooks = this._hooks[name] || [];
434
512
  delete this._hooks[name];
435
513
  for (const hook2 of _hooks) {
@@ -444,8 +522,8 @@ var Hookable = class {
444
522
  }
445
523
  addHooks(configHooks) {
446
524
  const hooks2 = flatHooks(configHooks);
447
- const removeFns = Object.keys(hooks2).map(
448
- (key) => this.hook(key, hooks2[key])
525
+ const removeFns = Object.keys(hooks2).map((key) =>
526
+ this.hook(key, hooks2[key]),
449
527
  );
450
528
  return () => {
451
529
  for (const unreg of removeFns.splice(0, removeFns.length)) {
@@ -473,13 +551,16 @@ var Hookable = class {
473
551
  return this.callHookWith(parallelTaskCaller, name, ...arguments_);
474
552
  }
475
553
  callHookWith(caller, name, ...arguments_) {
476
- const event = this._before || this._after ? { name, args: arguments_, context: {} } : void 0;
554
+ const event =
555
+ this._before || this._after
556
+ ? { name, args: arguments_, context: {} }
557
+ : void 0;
477
558
  if (this._before) {
478
559
  callEachWith(this._before, event);
479
560
  }
480
561
  const result = caller(
481
562
  name in this._hooks ? [...this._hooks[name]] : [],
482
- arguments_
563
+ arguments_,
483
564
  );
484
565
  if (result instanceof Promise) {
485
566
  return result.finally(() => {
@@ -533,157 +614,177 @@ var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
533
614
  var __getOwnPropNames2 = Object.getOwnPropertyNames;
534
615
  var __getProtoOf2 = Object.getPrototypeOf;
535
616
  var __hasOwnProp2 = Object.prototype.hasOwnProperty;
536
- var __esm2 = (fn, res) => function __init() {
537
- return fn && (res = (0, fn[__getOwnPropNames2(fn)[0]])(fn = 0)), res;
538
- };
539
- var __commonJS2 = (cb, mod) => function __require() {
540
- return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
541
- };
617
+ var __esm2 = (fn, res) =>
618
+ function __init() {
619
+ return (fn && (res = (0, fn[__getOwnPropNames2(fn)[0]])((fn = 0))), res);
620
+ };
621
+ var __commonJS2 = (cb, mod) =>
622
+ function __require() {
623
+ return (
624
+ mod ||
625
+ (0, cb[__getOwnPropNames2(cb)[0]])(
626
+ (mod = { exports: {} }).exports,
627
+ mod,
628
+ ),
629
+ mod.exports
630
+ );
631
+ };
542
632
  var __copyProps2 = (to, from, except, desc) => {
543
- if (from && typeof from === "object" || typeof from === "function") {
633
+ if ((from && typeof from === "object") || typeof from === "function") {
544
634
  for (let key of __getOwnPropNames2(from))
545
635
  if (!__hasOwnProp2.call(to, key) && key !== except)
546
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
636
+ __defProp2(to, key, {
637
+ get: () => from[key],
638
+ enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable,
639
+ });
547
640
  }
548
641
  return to;
549
642
  };
550
- var __toESM2 = (mod, isNodeMode, target22) => (target22 = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
551
- // If the importer is in node compatibility mode or this is not an ESM
552
- // file that has been converted to a CommonJS file using a Babel-
553
- // compatible transform (i.e. "__esModule" has not been set), then set
554
- // "default" to the CommonJS "module.exports" for node compatibility.
555
- isNodeMode || !mod || !mod.__esModule ? __defProp2(target22, "default", { value: mod, enumerable: true }) : target22,
556
- mod
557
- ));
643
+ var __toESM2 = (mod, isNodeMode, target22) => (
644
+ (target22 = mod != null ? __create2(__getProtoOf2(mod)) : {}),
645
+ __copyProps2(
646
+ // If the importer is in node compatibility mode or this is not an ESM
647
+ // file that has been converted to a CommonJS file using a Babel-
648
+ // compatible transform (i.e. "__esModule" has not been set), then set
649
+ // "default" to the CommonJS "module.exports" for node compatibility.
650
+ isNodeMode || !mod || !mod.__esModule
651
+ ? __defProp2(target22, "default", { value: mod, enumerable: true })
652
+ : target22,
653
+ mod,
654
+ )
655
+ );
558
656
  var init_esm_shims2 = __esm2({
559
657
  "../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"() {
560
658
  "use strict";
561
- }
659
+ },
562
660
  });
563
661
  var require_speakingurl = __commonJS2({
564
- "../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(exports, module) {
662
+ "../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(
663
+ exports,
664
+ module,
665
+ ) {
565
666
  "use strict";
566
667
  init_esm_shims2();
567
- (function(root) {
668
+ (function (root) {
568
669
  "use strict";
569
670
  var charMap = {
570
671
  // latin
571
- "À": "A",
572
- "Á": "A",
573
- "Â": "A",
574
- "Ã": "A",
575
- "Ä": "Ae",
576
- "Å": "A",
577
- "Æ": "AE",
578
- "Ç": "C",
579
- "È": "E",
580
- "É": "E",
581
- "Ê": "E",
582
- "Ë": "E",
583
- "Ì": "I",
584
- "Í": "I",
585
- "Î": "I",
586
- "Ï": "I",
587
- "Ð": "D",
588
- "Ñ": "N",
589
- "Ò": "O",
590
- "Ó": "O",
591
- "Ô": "O",
592
- "Õ": "O",
593
- "Ö": "Oe",
594
- "Ő": "O",
595
- "Ø": "O",
596
- "Ù": "U",
597
- "Ú": "U",
598
- "Û": "U",
599
- "Ü": "Ue",
600
- "Ű": "U",
601
- "Ý": "Y",
602
- "Þ": "TH",
603
- "ß": "ss",
604
- "à": "a",
605
- "á": "a",
606
- "â": "a",
607
- "ã": "a",
608
- "ä": "ae",
609
- "å": "a",
610
- "æ": "ae",
611
- "ç": "c",
612
- "è": "e",
613
- "é": "e",
614
- "ê": "e",
615
- "ë": "e",
616
- "ì": "i",
617
- "í": "i",
618
- "î": "i",
619
- "ï": "i",
620
- "ð": "d",
621
- "ñ": "n",
622
- "ò": "o",
623
- "ó": "o",
624
- "ô": "o",
625
- "õ": "o",
626
- "ö": "oe",
627
- "ő": "o",
628
- "ø": "o",
629
- "ù": "u",
630
- "ú": "u",
631
- "û": "u",
632
- "ü": "ue",
633
- "ű": "u",
634
- "ý": "y",
635
- "þ": "th",
636
- "ÿ": "y",
637
- "ẞ": "SS",
672
+ À: "A",
673
+ Á: "A",
674
+ Â: "A",
675
+ Ã: "A",
676
+ Ä: "Ae",
677
+ Å: "A",
678
+ Æ: "AE",
679
+ Ç: "C",
680
+ È: "E",
681
+ É: "E",
682
+ Ê: "E",
683
+ Ë: "E",
684
+ Ì: "I",
685
+ Í: "I",
686
+ Î: "I",
687
+ Ï: "I",
688
+ Ð: "D",
689
+ Ñ: "N",
690
+ Ò: "O",
691
+ Ó: "O",
692
+ Ô: "O",
693
+ Õ: "O",
694
+ Ö: "Oe",
695
+ Ő: "O",
696
+ Ø: "O",
697
+ Ù: "U",
698
+ Ú: "U",
699
+ Û: "U",
700
+ Ü: "Ue",
701
+ Ű: "U",
702
+ Ý: "Y",
703
+ Þ: "TH",
704
+ ß: "ss",
705
+ à: "a",
706
+ á: "a",
707
+ â: "a",
708
+ ã: "a",
709
+ ä: "ae",
710
+ å: "a",
711
+ æ: "ae",
712
+ ç: "c",
713
+ è: "e",
714
+ é: "e",
715
+ ê: "e",
716
+ ë: "e",
717
+ ì: "i",
718
+ í: "i",
719
+ î: "i",
720
+ ï: "i",
721
+ ð: "d",
722
+ ñ: "n",
723
+ ò: "o",
724
+ ó: "o",
725
+ ô: "o",
726
+ õ: "o",
727
+ ö: "oe",
728
+ ő: "o",
729
+ ø: "o",
730
+ ù: "u",
731
+ ú: "u",
732
+ û: "u",
733
+ ü: "ue",
734
+ ű: "u",
735
+ ý: "y",
736
+ þ: "th",
737
+ ÿ: "y",
738
+ ẞ: "SS",
638
739
  // language specific
639
740
  // Arabic
640
- "ا": "a",
641
- "أ": "a",
642
- "إ": "i",
643
- "آ": "aa",
644
- "ؤ": "u",
645
- "ئ": "e",
646
- "ء": "a",
647
- "ب": "b",
648
- "ت": "t",
649
- "ث": "th",
650
- "ج": "j",
651
- "ح": "h",
652
- "خ": "kh",
653
- "د": "d",
654
- "ذ": "th",
655
- "ر": "r",
656
- "ز": "z",
657
- "س": "s",
658
- "ش": "sh",
659
- "ص": "s",
660
- "ض": "dh",
661
- "ط": "t",
662
- "ظ": "z",
663
- "ع": "a",
664
- "غ": "gh",
665
- "ف": "f",
666
- "ق": "q",
667
- "ك": "k",
668
- "ل": "l",
669
- "م": "m",
670
- "ن": "n",
671
- "ه": "h",
672
- "و": "w",
673
- "ي": "y",
674
- "ى": "a",
675
- "ة": "h",
676
- "ﻻ": "la",
677
- "ﻷ": "laa",
678
- "ﻹ": "lai",
679
- "ﻵ": "laa",
741
+ ا: "a",
742
+ أ: "a",
743
+ إ: "i",
744
+ آ: "aa",
745
+ ؤ: "u",
746
+ ئ: "e",
747
+ ء: "a",
748
+ ب: "b",
749
+ ت: "t",
750
+ ث: "th",
751
+ ج: "j",
752
+ ح: "h",
753
+ خ: "kh",
754
+ د: "d",
755
+ ذ: "th",
756
+ ر: "r",
757
+ ز: "z",
758
+ س: "s",
759
+ ش: "sh",
760
+ ص: "s",
761
+ ض: "dh",
762
+ ط: "t",
763
+ ظ: "z",
764
+ ع: "a",
765
+ غ: "gh",
766
+ ف: "f",
767
+ ق: "q",
768
+ ك: "k",
769
+ ل: "l",
770
+ م: "m",
771
+ ن: "n",
772
+ ه: "h",
773
+ و: "w",
774
+ ي: "y",
775
+ ى: "a",
776
+ ة: "h",
777
+ ﻻ: "la",
778
+ ﻷ: "laa",
779
+ ﻹ: "lai",
780
+ ﻵ: "laa",
680
781
  // Persian additional characters than Arabic
681
- "گ": "g",
682
- "چ": "ch",
683
- "پ": "p",
684
- "ژ": "zh",
685
- "ک": "k",
686
- "ی": "y",
782
+ گ: "g",
783
+ چ: "ch",
784
+ پ: "p",
785
+ ژ: "zh",
786
+ ک: "k",
787
+ ی: "y",
687
788
  // Arabic diactrics
688
789
  "َ": "a",
689
790
  "ً": "an",
@@ -715,39 +816,39 @@ var require_speakingurl = __commonJS2({
715
816
  "۸": "8",
716
817
  "۹": "9",
717
818
  // Burmese consonants
718
- "က": "k",
719
- "ခ": "kh",
720
- "ဂ": "g",
721
- "ဃ": "ga",
722
- "င": "ng",
723
- "စ": "s",
724
- "ဆ": "sa",
725
- "ဇ": "z",
726
- "စျ": "za",
727
- "ည": "ny",
728
- "ဋ": "t",
729
- "ဌ": "ta",
730
- "ဍ": "d",
731
- "ဎ": "da",
732
- "ဏ": "na",
733
- "တ": "t",
734
- "ထ": "ta",
735
- "ဒ": "d",
736
- "ဓ": "da",
737
- "န": "n",
738
- "ပ": "p",
739
- "ဖ": "pa",
740
- "ဗ": "b",
741
- "ဘ": "ba",
742
- "မ": "m",
743
- "ယ": "y",
744
- "ရ": "ya",
745
- "လ": "l",
746
- "ဝ": "w",
747
- "သ": "th",
748
- "ဟ": "h",
749
- "ဠ": "la",
750
- "အ": "a",
819
+ က: "k",
820
+ ခ: "kh",
821
+ ဂ: "g",
822
+ ဃ: "ga",
823
+ င: "ng",
824
+ စ: "s",
825
+ ဆ: "sa",
826
+ ဇ: "z",
827
+ စျ: "za",
828
+ ည: "ny",
829
+ ဋ: "t",
830
+ ဌ: "ta",
831
+ ဍ: "d",
832
+ ဎ: "da",
833
+ ဏ: "na",
834
+ တ: "t",
835
+ ထ: "ta",
836
+ ဒ: "d",
837
+ ဓ: "da",
838
+ န: "n",
839
+ ပ: "p",
840
+ ဖ: "pa",
841
+ ဗ: "b",
842
+ ဘ: "ba",
843
+ မ: "m",
844
+ ယ: "y",
845
+ ရ: "ya",
846
+ လ: "l",
847
+ ဝ: "w",
848
+ သ: "th",
849
+ ဟ: "h",
850
+ ဠ: "la",
851
+ အ: "a",
751
852
  // consonant character combos
752
853
  "ြ": "y",
753
854
  "ျ": "ya",
@@ -756,15 +857,15 @@ var require_speakingurl = __commonJS2({
756
857
  "ျွ": "ywa",
757
858
  "ှ": "h",
758
859
  // independent vowels
759
- "ဧ": "e",
860
+ ဧ: "e",
760
861
  "၏": "-e",
761
- "ဣ": "i",
762
- "ဤ": "-i",
763
- "ဉ": "u",
764
- "ဦ": "-u",
765
- "ဩ": "aw",
766
- "သြော": "aw",
767
- "ဪ": "aw",
862
+ ဣ: "i",
863
+ ဤ: "-i",
864
+ ဉ: "u",
865
+ ဦ: "-u",
866
+ ဩ: "aw",
867
+ သြော: "aw",
868
+ ဪ: "aw",
768
869
  // numbers
769
870
  "၀": "0",
770
871
  "၁": "1",
@@ -781,63 +882,63 @@ var require_speakingurl = __commonJS2({
781
882
  "့": "",
782
883
  "း": "",
783
884
  // Czech
784
- "č": "c",
785
- "ď": "d",
786
- "ě": "e",
787
- "ň": "n",
788
- "ř": "r",
789
- "š": "s",
790
- "ť": "t",
791
- "ů": "u",
792
- "ž": "z",
793
- "Č": "C",
794
- "Ď": "D",
795
- "Ě": "E",
796
- "Ň": "N",
797
- "Ř": "R",
798
- "Š": "S",
799
- "Ť": "T",
800
- "Ů": "U",
801
- "Ž": "Z",
885
+ č: "c",
886
+ ď: "d",
887
+ ě: "e",
888
+ ň: "n",
889
+ ř: "r",
890
+ š: "s",
891
+ ť: "t",
892
+ ů: "u",
893
+ ž: "z",
894
+ Č: "C",
895
+ Ď: "D",
896
+ Ě: "E",
897
+ Ň: "N",
898
+ Ř: "R",
899
+ Š: "S",
900
+ Ť: "T",
901
+ Ů: "U",
902
+ Ž: "Z",
802
903
  // Dhivehi
803
- "ހ": "h",
804
- "ށ": "sh",
805
- "ނ": "n",
806
- "ރ": "r",
807
- "ބ": "b",
808
- "ޅ": "lh",
809
- "ކ": "k",
810
- "އ": "a",
811
- "ވ": "v",
812
- "މ": "m",
813
- "ފ": "f",
814
- "ދ": "dh",
815
- "ތ": "th",
816
- "ލ": "l",
817
- "ގ": "g",
818
- "ޏ": "gn",
819
- "ސ": "s",
820
- "ޑ": "d",
821
- "ޒ": "z",
822
- "ޓ": "t",
823
- "ޔ": "y",
824
- "ޕ": "p",
825
- "ޖ": "j",
826
- "ޗ": "ch",
827
- "ޘ": "tt",
828
- "ޙ": "hh",
829
- "ޚ": "kh",
830
- "ޛ": "th",
831
- "ޜ": "z",
832
- "ޝ": "sh",
833
- "ޞ": "s",
834
- "ޟ": "d",
835
- "ޠ": "t",
836
- "ޡ": "z",
837
- "ޢ": "a",
838
- "ޣ": "gh",
839
- "ޤ": "q",
840
- "ޥ": "w",
904
+ ހ: "h",
905
+ ށ: "sh",
906
+ ނ: "n",
907
+ ރ: "r",
908
+ ބ: "b",
909
+ ޅ: "lh",
910
+ ކ: "k",
911
+ އ: "a",
912
+ ވ: "v",
913
+ މ: "m",
914
+ ފ: "f",
915
+ ދ: "dh",
916
+ ތ: "th",
917
+ ލ: "l",
918
+ ގ: "g",
919
+ ޏ: "gn",
920
+ ސ: "s",
921
+ ޑ: "d",
922
+ ޒ: "z",
923
+ ޓ: "t",
924
+ ޔ: "y",
925
+ ޕ: "p",
926
+ ޖ: "j",
927
+ ޗ: "ch",
928
+ ޘ: "tt",
929
+ ޙ: "hh",
930
+ ޚ: "kh",
931
+ ޛ: "th",
932
+ ޜ: "z",
933
+ ޝ: "sh",
934
+ ޞ: "s",
935
+ ޟ: "d",
936
+ ޠ: "t",
937
+ ޡ: "z",
938
+ ޢ: "a",
939
+ ޣ: "gh",
940
+ ޤ: "q",
941
+ ޥ: "w",
841
942
  "ަ": "a",
842
943
  "ާ": "aa",
843
944
  "ި": "i",
@@ -851,382 +952,382 @@ var require_speakingurl = __commonJS2({
851
952
  "ް": "",
852
953
  // Georgian https://en.wikipedia.org/wiki/Romanization_of_Georgian
853
954
  // National system (2002)
854
- "ა": "a",
855
- "ბ": "b",
856
- "გ": "g",
857
- "დ": "d",
858
- "ე": "e",
859
- "ვ": "v",
860
- "ზ": "z",
861
- "თ": "t",
862
- "ი": "i",
863
- "კ": "k",
864
- "ლ": "l",
865
- "მ": "m",
866
- "ნ": "n",
867
- "ო": "o",
868
- "პ": "p",
869
- "ჟ": "zh",
870
- "რ": "r",
871
- "ს": "s",
872
- "ტ": "t",
873
- "უ": "u",
874
- "ფ": "p",
875
- "ქ": "k",
876
- "ღ": "gh",
877
- "ყ": "q",
878
- "შ": "sh",
879
- "ჩ": "ch",
880
- "ც": "ts",
881
- "ძ": "dz",
882
- "წ": "ts",
883
- "ჭ": "ch",
884
- "ხ": "kh",
885
- "ჯ": "j",
886
- "ჰ": "h",
955
+ ა: "a",
956
+ ბ: "b",
957
+ გ: "g",
958
+ დ: "d",
959
+ ე: "e",
960
+ ვ: "v",
961
+ ზ: "z",
962
+ თ: "t",
963
+ ი: "i",
964
+ კ: "k",
965
+ ლ: "l",
966
+ მ: "m",
967
+ ნ: "n",
968
+ ო: "o",
969
+ პ: "p",
970
+ ჟ: "zh",
971
+ რ: "r",
972
+ ს: "s",
973
+ ტ: "t",
974
+ უ: "u",
975
+ ფ: "p",
976
+ ქ: "k",
977
+ ღ: "gh",
978
+ ყ: "q",
979
+ შ: "sh",
980
+ ჩ: "ch",
981
+ ც: "ts",
982
+ ძ: "dz",
983
+ წ: "ts",
984
+ ჭ: "ch",
985
+ ხ: "kh",
986
+ ჯ: "j",
987
+ ჰ: "h",
887
988
  // Greek
888
- "α": "a",
889
- "β": "v",
890
- "γ": "g",
891
- "δ": "d",
892
- "ε": "e",
893
- "ζ": "z",
894
- "η": "i",
895
- "θ": "th",
896
- "ι": "i",
897
- "κ": "k",
898
- "λ": "l",
899
- "μ": "m",
900
- "ν": "n",
901
- "ξ": "ks",
902
- "ο": "o",
903
- "π": "p",
904
- "ρ": "r",
905
- "σ": "s",
906
- "τ": "t",
907
- "υ": "y",
908
- "φ": "f",
909
- "χ": "x",
910
- "ψ": "ps",
911
- "ω": "o",
912
- "ά": "a",
913
- "έ": "e",
914
- "ί": "i",
915
- "ό": "o",
916
- "ύ": "y",
917
- "ή": "i",
918
- "ώ": "o",
919
- "ς": "s",
920
- "ϊ": "i",
921
- "ΰ": "y",
922
- "ϋ": "y",
923
- "ΐ": "i",
924
- "Α": "A",
925
- "Β": "B",
926
- "Γ": "G",
927
- "Δ": "D",
928
- "Ε": "E",
929
- "Ζ": "Z",
930
- "Η": "I",
931
- "Θ": "TH",
932
- "Ι": "I",
933
- "Κ": "K",
934
- "Λ": "L",
935
- "Μ": "M",
936
- "Ν": "N",
937
- "Ξ": "KS",
938
- "Ο": "O",
939
- "Π": "P",
940
- "Ρ": "R",
941
- "Σ": "S",
942
- "Τ": "T",
943
- "Υ": "Y",
944
- "Φ": "F",
945
- "Χ": "X",
946
- "Ψ": "PS",
947
- "Ω": "O",
948
- "Ά": "A",
949
- "Έ": "E",
950
- "Ί": "I",
951
- "Ό": "O",
952
- "Ύ": "Y",
953
- "Ή": "I",
954
- "Ώ": "O",
955
- "Ϊ": "I",
956
- "Ϋ": "Y",
989
+ α: "a",
990
+ β: "v",
991
+ γ: "g",
992
+ δ: "d",
993
+ ε: "e",
994
+ ζ: "z",
995
+ η: "i",
996
+ θ: "th",
997
+ ι: "i",
998
+ κ: "k",
999
+ λ: "l",
1000
+ μ: "m",
1001
+ ν: "n",
1002
+ ξ: "ks",
1003
+ ο: "o",
1004
+ π: "p",
1005
+ ρ: "r",
1006
+ σ: "s",
1007
+ τ: "t",
1008
+ υ: "y",
1009
+ φ: "f",
1010
+ χ: "x",
1011
+ ψ: "ps",
1012
+ ω: "o",
1013
+ ά: "a",
1014
+ έ: "e",
1015
+ ί: "i",
1016
+ ό: "o",
1017
+ ύ: "y",
1018
+ ή: "i",
1019
+ ώ: "o",
1020
+ ς: "s",
1021
+ ϊ: "i",
1022
+ ΰ: "y",
1023
+ ϋ: "y",
1024
+ ΐ: "i",
1025
+ Α: "A",
1026
+ Β: "B",
1027
+ Γ: "G",
1028
+ Δ: "D",
1029
+ Ε: "E",
1030
+ Ζ: "Z",
1031
+ Η: "I",
1032
+ Θ: "TH",
1033
+ Ι: "I",
1034
+ Κ: "K",
1035
+ Λ: "L",
1036
+ Μ: "M",
1037
+ Ν: "N",
1038
+ Ξ: "KS",
1039
+ Ο: "O",
1040
+ Π: "P",
1041
+ Ρ: "R",
1042
+ Σ: "S",
1043
+ Τ: "T",
1044
+ Υ: "Y",
1045
+ Φ: "F",
1046
+ Χ: "X",
1047
+ Ψ: "PS",
1048
+ Ω: "O",
1049
+ Ά: "A",
1050
+ Έ: "E",
1051
+ Ί: "I",
1052
+ Ό: "O",
1053
+ Ύ: "Y",
1054
+ Ή: "I",
1055
+ Ώ: "O",
1056
+ Ϊ: "I",
1057
+ Ϋ: "Y",
957
1058
  // Latvian
958
- "ā": "a",
1059
+ ā: "a",
959
1060
  // 'č': 'c', // duplicate
960
- "ē": "e",
961
- "ģ": "g",
962
- "ī": "i",
963
- "ķ": "k",
964
- "ļ": "l",
965
- "ņ": "n",
1061
+ ē: "e",
1062
+ ģ: "g",
1063
+ ī: "i",
1064
+ ķ: "k",
1065
+ ļ: "l",
1066
+ ņ: "n",
966
1067
  // 'š': 's', // duplicate
967
- "ū": "u",
1068
+ ū: "u",
968
1069
  // 'ž': 'z', // duplicate
969
- "Ā": "A",
1070
+ Ā: "A",
970
1071
  // 'Č': 'C', // duplicate
971
- "Ē": "E",
972
- "Ģ": "G",
973
- "Ī": "I",
974
- "Ķ": "k",
975
- "Ļ": "L",
976
- "Ņ": "N",
1072
+ Ē: "E",
1073
+ Ģ: "G",
1074
+ Ī: "I",
1075
+ Ķ: "k",
1076
+ Ļ: "L",
1077
+ Ņ: "N",
977
1078
  // 'Š': 'S', // duplicate
978
- "Ū": "U",
1079
+ Ū: "U",
979
1080
  // 'Ž': 'Z', // duplicate
980
1081
  // Macedonian
981
- "Ќ": "Kj",
982
- "ќ": "kj",
983
- "Љ": "Lj",
984
- "љ": "lj",
985
- "Њ": "Nj",
986
- "њ": "nj",
987
- "Тс": "Ts",
988
- "тс": "ts",
1082
+ Ќ: "Kj",
1083
+ ќ: "kj",
1084
+ Љ: "Lj",
1085
+ љ: "lj",
1086
+ Њ: "Nj",
1087
+ њ: "nj",
1088
+ Тс: "Ts",
1089
+ тс: "ts",
989
1090
  // Polish
990
- "ą": "a",
991
- "ć": "c",
992
- "ę": "e",
993
- "ł": "l",
994
- "ń": "n",
1091
+ ą: "a",
1092
+ ć: "c",
1093
+ ę: "e",
1094
+ ł: "l",
1095
+ ń: "n",
995
1096
  // 'ó': 'o', // duplicate
996
- "ś": "s",
997
- "ź": "z",
998
- "ż": "z",
999
- "Ą": "A",
1000
- "Ć": "C",
1001
- "Ę": "E",
1002
- "Ł": "L",
1003
- "Ń": "N",
1004
- "Ś": "S",
1005
- "Ź": "Z",
1006
- "Ż": "Z",
1097
+ ś: "s",
1098
+ ź: "z",
1099
+ ż: "z",
1100
+ Ą: "A",
1101
+ Ć: "C",
1102
+ Ę: "E",
1103
+ Ł: "L",
1104
+ Ń: "N",
1105
+ Ś: "S",
1106
+ Ź: "Z",
1107
+ Ż: "Z",
1007
1108
  // Ukranian
1008
- "Є": "Ye",
1009
- "І": "I",
1010
- "Ї": "Yi",
1011
- "Ґ": "G",
1012
- "є": "ye",
1013
- "і": "i",
1014
- "ї": "yi",
1015
- "ґ": "g",
1109
+ Є: "Ye",
1110
+ І: "I",
1111
+ Ї: "Yi",
1112
+ Ґ: "G",
1113
+ є: "ye",
1114
+ і: "i",
1115
+ ї: "yi",
1116
+ ґ: "g",
1016
1117
  // Romanian
1017
- "ă": "a",
1018
- "Ă": "A",
1019
- "ș": "s",
1020
- "Ș": "S",
1118
+ ă: "a",
1119
+ Ă: "A",
1120
+ ș: "s",
1121
+ Ș: "S",
1021
1122
  // 'ş': 's', // duplicate
1022
1123
  // 'Ş': 'S', // duplicate
1023
- "ț": "t",
1024
- "Ț": "T",
1025
- "ţ": "t",
1026
- "Ţ": "T",
1124
+ ț: "t",
1125
+ Ț: "T",
1126
+ ţ: "t",
1127
+ Ţ: "T",
1027
1128
  // Russian https://en.wikipedia.org/wiki/Romanization_of_Russian
1028
1129
  // ICAO
1029
- "а": "a",
1030
- "б": "b",
1031
- "в": "v",
1032
- "г": "g",
1033
- "д": "d",
1034
- "е": "e",
1035
- "ё": "yo",
1036
- "ж": "zh",
1037
- "з": "z",
1038
- "и": "i",
1039
- "й": "i",
1040
- "к": "k",
1041
- "л": "l",
1042
- "м": "m",
1043
- "н": "n",
1044
- "о": "o",
1045
- "п": "p",
1046
- "р": "r",
1047
- "с": "s",
1048
- "т": "t",
1049
- "у": "u",
1050
- "ф": "f",
1051
- "х": "kh",
1052
- "ц": "c",
1053
- "ч": "ch",
1054
- "ш": "sh",
1055
- "щ": "sh",
1056
- "ъ": "",
1057
- "ы": "y",
1058
- "ь": "",
1059
- "э": "e",
1060
- "ю": "yu",
1061
- "я": "ya",
1062
- "А": "A",
1063
- "Б": "B",
1064
- "В": "V",
1065
- "Г": "G",
1066
- "Д": "D",
1067
- "Е": "E",
1068
- "Ё": "Yo",
1069
- "Ж": "Zh",
1070
- "З": "Z",
1071
- "И": "I",
1072
- "Й": "I",
1073
- "К": "K",
1074
- "Л": "L",
1075
- "М": "M",
1076
- "Н": "N",
1077
- "О": "O",
1078
- "П": "P",
1079
- "Р": "R",
1080
- "С": "S",
1081
- "Т": "T",
1082
- "У": "U",
1083
- "Ф": "F",
1084
- "Х": "Kh",
1085
- "Ц": "C",
1086
- "Ч": "Ch",
1087
- "Ш": "Sh",
1088
- "Щ": "Sh",
1089
- "Ъ": "",
1090
- "Ы": "Y",
1091
- "Ь": "",
1092
- "Э": "E",
1093
- "Ю": "Yu",
1094
- "Я": "Ya",
1130
+ а: "a",
1131
+ б: "b",
1132
+ в: "v",
1133
+ г: "g",
1134
+ д: "d",
1135
+ е: "e",
1136
+ ё: "yo",
1137
+ ж: "zh",
1138
+ з: "z",
1139
+ и: "i",
1140
+ й: "i",
1141
+ к: "k",
1142
+ л: "l",
1143
+ м: "m",
1144
+ н: "n",
1145
+ о: "o",
1146
+ п: "p",
1147
+ р: "r",
1148
+ с: "s",
1149
+ т: "t",
1150
+ у: "u",
1151
+ ф: "f",
1152
+ х: "kh",
1153
+ ц: "c",
1154
+ ч: "ch",
1155
+ ш: "sh",
1156
+ щ: "sh",
1157
+ ъ: "",
1158
+ ы: "y",
1159
+ ь: "",
1160
+ э: "e",
1161
+ ю: "yu",
1162
+ я: "ya",
1163
+ А: "A",
1164
+ Б: "B",
1165
+ В: "V",
1166
+ Г: "G",
1167
+ Д: "D",
1168
+ Е: "E",
1169
+ Ё: "Yo",
1170
+ Ж: "Zh",
1171
+ З: "Z",
1172
+ И: "I",
1173
+ Й: "I",
1174
+ К: "K",
1175
+ Л: "L",
1176
+ М: "M",
1177
+ Н: "N",
1178
+ О: "O",
1179
+ П: "P",
1180
+ Р: "R",
1181
+ С: "S",
1182
+ Т: "T",
1183
+ У: "U",
1184
+ Ф: "F",
1185
+ Х: "Kh",
1186
+ Ц: "C",
1187
+ Ч: "Ch",
1188
+ Ш: "Sh",
1189
+ Щ: "Sh",
1190
+ Ъ: "",
1191
+ Ы: "Y",
1192
+ Ь: "",
1193
+ Э: "E",
1194
+ Ю: "Yu",
1195
+ Я: "Ya",
1095
1196
  // Serbian
1096
- "ђ": "dj",
1097
- "ј": "j",
1197
+ ђ: "dj",
1198
+ ј: "j",
1098
1199
  // 'љ': 'lj', // duplicate
1099
1200
  // 'њ': 'nj', // duplicate
1100
- "ћ": "c",
1101
- "џ": "dz",
1102
- "Ђ": "Dj",
1103
- "Ј": "j",
1201
+ ћ: "c",
1202
+ џ: "dz",
1203
+ Ђ: "Dj",
1204
+ Ј: "j",
1104
1205
  // 'Љ': 'Lj', // duplicate
1105
1206
  // 'Њ': 'Nj', // duplicate
1106
- "Ћ": "C",
1107
- "Џ": "Dz",
1207
+ Ћ: "C",
1208
+ Џ: "Dz",
1108
1209
  // Slovak
1109
- "ľ": "l",
1110
- "ĺ": "l",
1111
- "ŕ": "r",
1112
- "Ľ": "L",
1113
- "Ĺ": "L",
1114
- "Ŕ": "R",
1210
+ ľ: "l",
1211
+ ĺ: "l",
1212
+ ŕ: "r",
1213
+ Ľ: "L",
1214
+ Ĺ: "L",
1215
+ Ŕ: "R",
1115
1216
  // Turkish
1116
- "ş": "s",
1117
- "Ş": "S",
1118
- "ı": "i",
1119
- "İ": "I",
1217
+ ş: "s",
1218
+ Ş: "S",
1219
+ ı: "i",
1220
+ İ: "I",
1120
1221
  // 'ç': 'c', // duplicate
1121
1222
  // 'Ç': 'C', // duplicate
1122
1223
  // 'ü': 'u', // duplicate, see langCharMap
1123
1224
  // 'Ü': 'U', // duplicate, see langCharMap
1124
1225
  // 'ö': 'o', // duplicate, see langCharMap
1125
1226
  // 'Ö': 'O', // duplicate, see langCharMap
1126
- "ğ": "g",
1127
- "Ğ": "G",
1227
+ ğ: "g",
1228
+ Ğ: "G",
1128
1229
  // Vietnamese
1129
- "ả": "a",
1130
- "Ả": "A",
1131
- "ẳ": "a",
1132
- "Ẳ": "A",
1133
- "ẩ": "a",
1134
- "Ẩ": "A",
1135
- "đ": "d",
1136
- "Đ": "D",
1137
- "ẹ": "e",
1138
- "Ẹ": "E",
1139
- "ẽ": "e",
1140
- "Ẽ": "E",
1141
- "ẻ": "e",
1142
- "Ẻ": "E",
1143
- "ế": "e",
1144
- "Ế": "E",
1145
- "ề": "e",
1146
- "Ề": "E",
1147
- "ệ": "e",
1148
- "Ệ": "E",
1149
- "ễ": "e",
1150
- "Ễ": "E",
1151
- "ể": "e",
1152
- "Ể": "E",
1153
- "ỏ": "o",
1154
- "ọ": "o",
1155
- "Ọ": "o",
1156
- "ố": "o",
1157
- "Ố": "O",
1158
- "ồ": "o",
1159
- "Ồ": "O",
1160
- "ổ": "o",
1161
- "Ổ": "O",
1162
- "ộ": "o",
1163
- "Ộ": "O",
1164
- "ỗ": "o",
1165
- "Ỗ": "O",
1166
- "ơ": "o",
1167
- "Ơ": "O",
1168
- "ớ": "o",
1169
- "Ớ": "O",
1170
- "ờ": "o",
1171
- "Ờ": "O",
1172
- "ợ": "o",
1173
- "Ợ": "O",
1174
- "ỡ": "o",
1175
- "Ỡ": "O",
1176
- "Ở": "o",
1177
- "ở": "o",
1178
- "ị": "i",
1179
- "Ị": "I",
1180
- "ĩ": "i",
1181
- "Ĩ": "I",
1182
- "ỉ": "i",
1183
- "Ỉ": "i",
1184
- "ủ": "u",
1185
- "Ủ": "U",
1186
- "ụ": "u",
1187
- "Ụ": "U",
1188
- "ũ": "u",
1189
- "Ũ": "U",
1190
- "ư": "u",
1191
- "Ư": "U",
1192
- "ứ": "u",
1193
- "Ứ": "U",
1194
- "ừ": "u",
1195
- "Ừ": "U",
1196
- "ự": "u",
1197
- "Ự": "U",
1198
- "ữ": "u",
1199
- "Ữ": "U",
1200
- "ử": "u",
1201
- "Ử": "ư",
1202
- "ỷ": "y",
1203
- "Ỷ": "y",
1204
- "ỳ": "y",
1205
- "Ỳ": "Y",
1206
- "ỵ": "y",
1207
- "Ỵ": "Y",
1208
- "ỹ": "y",
1209
- "Ỹ": "Y",
1210
- "ạ": "a",
1211
- "Ạ": "A",
1212
- "ấ": "a",
1213
- "Ấ": "A",
1214
- "ầ": "a",
1215
- "Ầ": "A",
1216
- "ậ": "a",
1217
- "Ậ": "A",
1218
- "ẫ": "a",
1219
- "Ẫ": "A",
1230
+ ả: "a",
1231
+ Ả: "A",
1232
+ ẳ: "a",
1233
+ Ẳ: "A",
1234
+ ẩ: "a",
1235
+ Ẩ: "A",
1236
+ đ: "d",
1237
+ Đ: "D",
1238
+ ẹ: "e",
1239
+ Ẹ: "E",
1240
+ ẽ: "e",
1241
+ Ẽ: "E",
1242
+ ẻ: "e",
1243
+ Ẻ: "E",
1244
+ ế: "e",
1245
+ Ế: "E",
1246
+ ề: "e",
1247
+ Ề: "E",
1248
+ ệ: "e",
1249
+ Ệ: "E",
1250
+ ễ: "e",
1251
+ Ễ: "E",
1252
+ ể: "e",
1253
+ Ể: "E",
1254
+ ỏ: "o",
1255
+ ọ: "o",
1256
+ Ọ: "o",
1257
+ ố: "o",
1258
+ Ố: "O",
1259
+ ồ: "o",
1260
+ Ồ: "O",
1261
+ ổ: "o",
1262
+ Ổ: "O",
1263
+ ộ: "o",
1264
+ Ộ: "O",
1265
+ ỗ: "o",
1266
+ Ỗ: "O",
1267
+ ơ: "o",
1268
+ Ơ: "O",
1269
+ ớ: "o",
1270
+ Ớ: "O",
1271
+ ờ: "o",
1272
+ Ờ: "O",
1273
+ ợ: "o",
1274
+ Ợ: "O",
1275
+ ỡ: "o",
1276
+ Ỡ: "O",
1277
+ Ở: "o",
1278
+ ở: "o",
1279
+ ị: "i",
1280
+ Ị: "I",
1281
+ ĩ: "i",
1282
+ Ĩ: "I",
1283
+ ỉ: "i",
1284
+ Ỉ: "i",
1285
+ ủ: "u",
1286
+ Ủ: "U",
1287
+ ụ: "u",
1288
+ Ụ: "U",
1289
+ ũ: "u",
1290
+ Ũ: "U",
1291
+ ư: "u",
1292
+ Ư: "U",
1293
+ ứ: "u",
1294
+ Ứ: "U",
1295
+ ừ: "u",
1296
+ Ừ: "U",
1297
+ ự: "u",
1298
+ Ự: "U",
1299
+ ữ: "u",
1300
+ Ữ: "U",
1301
+ ử: "u",
1302
+ Ử: "ư",
1303
+ ỷ: "y",
1304
+ Ỷ: "y",
1305
+ ỳ: "y",
1306
+ Ỳ: "Y",
1307
+ ỵ: "y",
1308
+ Ỵ: "Y",
1309
+ ỹ: "y",
1310
+ Ỹ: "Y",
1311
+ ạ: "a",
1312
+ Ạ: "A",
1313
+ ấ: "a",
1314
+ Ấ: "A",
1315
+ ầ: "a",
1316
+ Ầ: "A",
1317
+ ậ: "a",
1318
+ Ậ: "A",
1319
+ ẫ: "a",
1320
+ Ẫ: "A",
1220
1321
  // 'ă': 'a', // duplicate
1221
1322
  // 'Ă': 'A', // duplicate
1222
- "ắ": "a",
1223
- "Ắ": "A",
1224
- "ằ": "a",
1225
- "Ằ": "A",
1226
- "ặ": "a",
1227
- "Ặ": "A",
1228
- "ẵ": "a",
1229
- "Ẵ": "A",
1323
+ ắ: "a",
1324
+ Ắ: "A",
1325
+ ằ: "a",
1326
+ Ằ: "A",
1327
+ ặ: "a",
1328
+ Ặ: "A",
1329
+ ẵ: "a",
1330
+ Ẵ: "A",
1230
1331
  "⓪": "0",
1231
1332
  "①": "1",
1232
1333
  "②": "2",
@@ -1327,23 +1428,23 @@ var require_speakingurl = __commonJS2({
1327
1428
  "‘": "'",
1328
1429
  "’": "'",
1329
1430
  "∂": "d",
1330
- "ƒ": "f",
1431
+ ƒ: "f",
1331
1432
  "™": "(TM)",
1332
1433
  "©": "(C)",
1333
- "œ": "oe",
1334
- "Œ": "OE",
1434
+ œ: "oe",
1435
+ Œ: "OE",
1335
1436
  "®": "(R)",
1336
1437
  "†": "+",
1337
1438
  "℠": "(SM)",
1338
1439
  "…": "...",
1339
1440
  "˚": "o",
1340
- "º": "o",
1341
- "ª": "a",
1441
+ º: "o",
1442
+ ª: "a",
1342
1443
  "•": "*",
1343
1444
  "၊": ",",
1344
1445
  "။": ".",
1345
1446
  // currency
1346
- "$": "USD",
1447
+ $: "USD",
1347
1448
  "€": "EUR",
1348
1449
  "₢": "BRN",
1349
1450
  "₣": "FRF",
@@ -1364,8 +1465,8 @@ var require_speakingurl = __commonJS2({
1364
1465
  "₵": "GHS",
1365
1466
  "¢": "cent",
1366
1467
  "¥": "CNY",
1367
- "元": "CNY",
1368
- "円": "YEN",
1468
+ 元: "CNY",
1469
+ 円: "YEN",
1369
1470
  "﷼": "IRR",
1370
1471
  "₠": "EWE",
1371
1472
  "฿": "THB",
@@ -1375,20 +1476,20 @@ var require_speakingurl = __commonJS2({
1375
1476
  "₺": "TRY",
1376
1477
  "؋": "AFN",
1377
1478
  "₼": "AZN",
1378
- "лв": "BGN",
1479
+ лв: "BGN",
1379
1480
  "៛": "KHR",
1380
1481
  "₡": "CRC",
1381
1482
  "₸": "KZT",
1382
- "ден": "MKD",
1383
- "zł": "PLN",
1483
+ ден: "MKD",
1484
+ zł: "PLN",
1384
1485
  "₽": "RUB",
1385
- "₾": "GEL"
1486
+ "₾": "GEL",
1386
1487
  };
1387
1488
  var lookAheadCharArray = [
1388
1489
  // burmese
1389
1490
  "်",
1390
1491
  // Dhivehi
1391
- "ް"
1492
+ "ް",
1392
1493
  ];
1393
1494
  var diatricMap = {
1394
1495
  // Burmese
@@ -1409,222 +1510,222 @@ var require_speakingurl = __commonJS2({
1409
1510
  "ေါ်": "aw",
1410
1511
  "်": "်",
1411
1512
  // this is special case but the character will be converted to latin in the code
1412
- "က်": "et",
1513
+ က်: "et",
1413
1514
  "ိုက်": "aik",
1414
1515
  "ောက်": "auk",
1415
- "င်": "in",
1516
+ င်: "in",
1416
1517
  "ိုင်": "aing",
1417
1518
  "ောင်": "aung",
1418
- "စ်": "it",
1419
- "ည်": "i",
1420
- "တ်": "at",
1519
+ စ်: "it",
1520
+ ည်: "i",
1521
+ တ်: "at",
1421
1522
  "ိတ်": "eik",
1422
1523
  "ုတ်": "ok",
1423
1524
  "ွတ်": "ut",
1424
1525
  "ေတ်": "it",
1425
- "ဒ်": "d",
1526
+ ဒ်: "d",
1426
1527
  "ိုဒ်": "ok",
1427
1528
  "ုဒ်": "ait",
1428
- "န်": "an",
1529
+ န်: "an",
1429
1530
  "ာန်": "an",
1430
1531
  "ိန်": "ein",
1431
1532
  "ုန်": "on",
1432
1533
  "ွန်": "un",
1433
- "ပ်": "at",
1534
+ ပ်: "at",
1434
1535
  "ိပ်": "eik",
1435
1536
  "ုပ်": "ok",
1436
1537
  "ွပ်": "ut",
1437
- "န်ုပ်": "nub",
1438
- "မ်": "an",
1538
+ န်ုပ်: "nub",
1539
+ မ်: "an",
1439
1540
  "ိမ်": "ein",
1440
1541
  "ုမ်": "on",
1441
1542
  "ွမ်": "un",
1442
- "ယ်": "e",
1543
+ ယ်: "e",
1443
1544
  "ိုလ်": "ol",
1444
- "ဉ်": "in",
1545
+ ဉ်: "in",
1445
1546
  "ံ": "an",
1446
1547
  "ိံ": "ein",
1447
1548
  "ုံ": "on",
1448
1549
  // Dhivehi
1449
1550
  "ައް": "ah",
1450
- "ަށް": "ah"
1551
+ "ަށް": "ah",
1451
1552
  };
1452
1553
  var langCharMap = {
1453
- "en": {},
1554
+ en: {},
1454
1555
  // default language
1455
- "az": {
1556
+ az: {
1456
1557
  // Azerbaijani
1457
- "ç": "c",
1458
- "ə": "e",
1459
- "ğ": "g",
1460
- "ı": "i",
1461
- "ö": "o",
1462
- "ş": "s",
1463
- "ü": "u",
1464
- "Ç": "C",
1465
- "Ə": "E",
1466
- "Ğ": "G",
1467
- "İ": "I",
1468
- "Ö": "O",
1469
- "Ş": "S",
1470
- "Ü": "U"
1558
+ ç: "c",
1559
+ ə: "e",
1560
+ ğ: "g",
1561
+ ı: "i",
1562
+ ö: "o",
1563
+ ş: "s",
1564
+ ü: "u",
1565
+ Ç: "C",
1566
+ Ə: "E",
1567
+ Ğ: "G",
1568
+ İ: "I",
1569
+ Ö: "O",
1570
+ Ş: "S",
1571
+ Ü: "U",
1471
1572
  },
1472
- "cs": {
1573
+ cs: {
1473
1574
  // Czech
1474
- "č": "c",
1475
- "ď": "d",
1476
- "ě": "e",
1477
- "ň": "n",
1478
- "ř": "r",
1479
- "š": "s",
1480
- "ť": "t",
1481
- "ů": "u",
1482
- "ž": "z",
1483
- "Č": "C",
1484
- "Ď": "D",
1485
- "Ě": "E",
1486
- "Ň": "N",
1487
- "Ř": "R",
1488
- "Š": "S",
1489
- "Ť": "T",
1490
- "Ů": "U",
1491
- "Ž": "Z"
1575
+ č: "c",
1576
+ ď: "d",
1577
+ ě: "e",
1578
+ ň: "n",
1579
+ ř: "r",
1580
+ š: "s",
1581
+ ť: "t",
1582
+ ů: "u",
1583
+ ž: "z",
1584
+ Č: "C",
1585
+ Ď: "D",
1586
+ Ě: "E",
1587
+ Ň: "N",
1588
+ Ř: "R",
1589
+ Š: "S",
1590
+ Ť: "T",
1591
+ Ů: "U",
1592
+ Ž: "Z",
1492
1593
  },
1493
- "fi": {
1594
+ fi: {
1494
1595
  // Finnish
1495
1596
  // 'å': 'a', duplicate see charMap/latin
1496
1597
  // 'Å': 'A', duplicate see charMap/latin
1497
- "ä": "a",
1598
+ ä: "a",
1498
1599
  // ok
1499
- "Ä": "A",
1600
+ Ä: "A",
1500
1601
  // ok
1501
- "ö": "o",
1602
+ ö: "o",
1502
1603
  // ok
1503
- "Ö": "O"
1604
+ Ö: "O",
1504
1605
  // ok
1505
1606
  },
1506
- "hu": {
1607
+ hu: {
1507
1608
  // Hungarian
1508
- "ä": "a",
1609
+ ä: "a",
1509
1610
  // ok
1510
- "Ä": "A",
1611
+ Ä: "A",
1511
1612
  // ok
1512
1613
  // 'á': 'a', duplicate see charMap/latin
1513
1614
  // 'Á': 'A', duplicate see charMap/latin
1514
- "ö": "o",
1615
+ ö: "o",
1515
1616
  // ok
1516
- "Ö": "O",
1617
+ Ö: "O",
1517
1618
  // ok
1518
1619
  // 'ő': 'o', duplicate see charMap/latin
1519
1620
  // 'Ő': 'O', duplicate see charMap/latin
1520
- "ü": "u",
1521
- "Ü": "U",
1522
- "ű": "u",
1523
- "Ű": "U"
1621
+ ü: "u",
1622
+ Ü: "U",
1623
+ ű: "u",
1624
+ Ű: "U",
1524
1625
  },
1525
- "lt": {
1626
+ lt: {
1526
1627
  // Lithuanian
1527
- "ą": "a",
1528
- "č": "c",
1529
- "ę": "e",
1530
- "ė": "e",
1531
- "į": "i",
1532
- "š": "s",
1533
- "ų": "u",
1534
- "ū": "u",
1535
- "ž": "z",
1536
- "Ą": "A",
1537
- "Č": "C",
1538
- "Ę": "E",
1539
- "Ė": "E",
1540
- "Į": "I",
1541
- "Š": "S",
1542
- "Ų": "U",
1543
- "Ū": "U"
1628
+ ą: "a",
1629
+ č: "c",
1630
+ ę: "e",
1631
+ ė: "e",
1632
+ į: "i",
1633
+ š: "s",
1634
+ ų: "u",
1635
+ ū: "u",
1636
+ ž: "z",
1637
+ Ą: "A",
1638
+ Č: "C",
1639
+ Ę: "E",
1640
+ Ė: "E",
1641
+ Į: "I",
1642
+ Š: "S",
1643
+ Ų: "U",
1644
+ Ū: "U",
1544
1645
  },
1545
- "lv": {
1646
+ lv: {
1546
1647
  // Latvian
1547
- "ā": "a",
1548
- "č": "c",
1549
- "ē": "e",
1550
- "ģ": "g",
1551
- "ī": "i",
1552
- "ķ": "k",
1553
- "ļ": "l",
1554
- "ņ": "n",
1555
- "š": "s",
1556
- "ū": "u",
1557
- "ž": "z",
1558
- "Ā": "A",
1559
- "Č": "C",
1560
- "Ē": "E",
1561
- "Ģ": "G",
1562
- "Ī": "i",
1563
- "Ķ": "k",
1564
- "Ļ": "L",
1565
- "Ņ": "N",
1566
- "Š": "S",
1567
- "Ū": "u",
1568
- "Ž": "Z"
1648
+ ā: "a",
1649
+ č: "c",
1650
+ ē: "e",
1651
+ ģ: "g",
1652
+ ī: "i",
1653
+ ķ: "k",
1654
+ ļ: "l",
1655
+ ņ: "n",
1656
+ š: "s",
1657
+ ū: "u",
1658
+ ž: "z",
1659
+ Ā: "A",
1660
+ Č: "C",
1661
+ Ē: "E",
1662
+ Ģ: "G",
1663
+ Ī: "i",
1664
+ Ķ: "k",
1665
+ Ļ: "L",
1666
+ Ņ: "N",
1667
+ Š: "S",
1668
+ Ū: "u",
1669
+ Ž: "Z",
1569
1670
  },
1570
- "pl": {
1671
+ pl: {
1571
1672
  // Polish
1572
- "ą": "a",
1573
- "ć": "c",
1574
- "ę": "e",
1575
- "ł": "l",
1576
- "ń": "n",
1577
- "ó": "o",
1578
- "ś": "s",
1579
- "ź": "z",
1580
- "ż": "z",
1581
- "Ą": "A",
1582
- "Ć": "C",
1583
- "Ę": "e",
1584
- "Ł": "L",
1585
- "Ń": "N",
1586
- "Ó": "O",
1587
- "Ś": "S",
1588
- "Ź": "Z",
1589
- "Ż": "Z"
1673
+ ą: "a",
1674
+ ć: "c",
1675
+ ę: "e",
1676
+ ł: "l",
1677
+ ń: "n",
1678
+ ó: "o",
1679
+ ś: "s",
1680
+ ź: "z",
1681
+ ż: "z",
1682
+ Ą: "A",
1683
+ Ć: "C",
1684
+ Ę: "e",
1685
+ Ł: "L",
1686
+ Ń: "N",
1687
+ Ó: "O",
1688
+ Ś: "S",
1689
+ Ź: "Z",
1690
+ Ż: "Z",
1590
1691
  },
1591
- "sv": {
1692
+ sv: {
1592
1693
  // Swedish
1593
1694
  // 'å': 'a', duplicate see charMap/latin
1594
1695
  // 'Å': 'A', duplicate see charMap/latin
1595
- "ä": "a",
1696
+ ä: "a",
1596
1697
  // ok
1597
- "Ä": "A",
1698
+ Ä: "A",
1598
1699
  // ok
1599
- "ö": "o",
1700
+ ö: "o",
1600
1701
  // ok
1601
- "Ö": "O"
1702
+ Ö: "O",
1602
1703
  // ok
1603
1704
  },
1604
- "sk": {
1705
+ sk: {
1605
1706
  // Slovak
1606
- "ä": "a",
1607
- "Ä": "A"
1707
+ ä: "a",
1708
+ Ä: "A",
1608
1709
  },
1609
- "sr": {
1710
+ sr: {
1610
1711
  // Serbian
1611
- "љ": "lj",
1612
- "њ": "nj",
1613
- "Љ": "Lj",
1614
- "Њ": "Nj",
1615
- "đ": "dj",
1616
- "Đ": "Dj"
1712
+ љ: "lj",
1713
+ њ: "nj",
1714
+ Љ: "Lj",
1715
+ Њ: "Nj",
1716
+ đ: "dj",
1717
+ Đ: "Dj",
1617
1718
  },
1618
- "tr": {
1719
+ tr: {
1619
1720
  // Turkish
1620
- "Ü": "U",
1621
- "Ö": "O",
1622
- "ü": "u",
1623
- "ö": "o"
1624
- }
1721
+ Ü: "U",
1722
+ Ö: "O",
1723
+ ü: "u",
1724
+ ö: "o",
1725
+ },
1625
1726
  };
1626
1727
  var symbolMap = {
1627
- "ar": {
1728
+ ar: {
1628
1729
  "∆": "delta",
1629
1730
  "∞": "la-nihaya",
1630
1731
  "♥": "hob",
@@ -1633,10 +1734,10 @@ var require_speakingurl = __commonJS2({
1633
1734
  "<": "aqal-men",
1634
1735
  ">": "akbar-men",
1635
1736
  "∑": "majmou",
1636
- "¤": "omla"
1737
+ "¤": "omla",
1637
1738
  },
1638
- "az": {},
1639
- "ca": {
1739
+ az: {},
1740
+ ca: {
1640
1741
  "∆": "delta",
1641
1742
  "∞": "infinit",
1642
1743
  "♥": "amor",
@@ -1645,9 +1746,9 @@ var require_speakingurl = __commonJS2({
1645
1746
  "<": "menys que",
1646
1747
  ">": "mes que",
1647
1748
  "∑": "suma dels",
1648
- "¤": "moneda"
1749
+ "¤": "moneda",
1649
1750
  },
1650
- "cs": {
1751
+ cs: {
1651
1752
  "∆": "delta",
1652
1753
  "∞": "nekonecno",
1653
1754
  "♥": "laska",
@@ -1656,9 +1757,9 @@ var require_speakingurl = __commonJS2({
1656
1757
  "<": "mensi nez",
1657
1758
  ">": "vetsi nez",
1658
1759
  "∑": "soucet",
1659
- "¤": "mena"
1760
+ "¤": "mena",
1660
1761
  },
1661
- "de": {
1762
+ de: {
1662
1763
  "∆": "delta",
1663
1764
  "∞": "unendlich",
1664
1765
  "♥": "Liebe",
@@ -1667,9 +1768,9 @@ var require_speakingurl = __commonJS2({
1667
1768
  "<": "kleiner als",
1668
1769
  ">": "groesser als",
1669
1770
  "∑": "Summe von",
1670
- "¤": "Waehrung"
1771
+ "¤": "Waehrung",
1671
1772
  },
1672
- "dv": {
1773
+ dv: {
1673
1774
  "∆": "delta",
1674
1775
  "∞": "kolunulaa",
1675
1776
  "♥": "loabi",
@@ -1678,9 +1779,9 @@ var require_speakingurl = __commonJS2({
1678
1779
  "<": "ah vure kuda",
1679
1780
  ">": "ah vure bodu",
1680
1781
  "∑": "jumula",
1681
- "¤": "faisaa"
1782
+ "¤": "faisaa",
1682
1783
  },
1683
- "en": {
1784
+ en: {
1684
1785
  "∆": "delta",
1685
1786
  "∞": "infinity",
1686
1787
  "♥": "love",
@@ -1689,9 +1790,9 @@ var require_speakingurl = __commonJS2({
1689
1790
  "<": "less than",
1690
1791
  ">": "greater than",
1691
1792
  "∑": "sum",
1692
- "¤": "currency"
1793
+ "¤": "currency",
1693
1794
  },
1694
- "es": {
1795
+ es: {
1695
1796
  "∆": "delta",
1696
1797
  "∞": "infinito",
1697
1798
  "♥": "amor",
@@ -1700,9 +1801,9 @@ var require_speakingurl = __commonJS2({
1700
1801
  "<": "menos que",
1701
1802
  ">": "mas que",
1702
1803
  "∑": "suma de los",
1703
- "¤": "moneda"
1804
+ "¤": "moneda",
1704
1805
  },
1705
- "fa": {
1806
+ fa: {
1706
1807
  "∆": "delta",
1707
1808
  "∞": "bi-nahayat",
1708
1809
  "♥": "eshgh",
@@ -1711,9 +1812,9 @@ var require_speakingurl = __commonJS2({
1711
1812
  "<": "kamtar-az",
1712
1813
  ">": "bishtar-az",
1713
1814
  "∑": "majmooe",
1714
- "¤": "vahed"
1815
+ "¤": "vahed",
1715
1816
  },
1716
- "fi": {
1817
+ fi: {
1717
1818
  "∆": "delta",
1718
1819
  "∞": "aarettomyys",
1719
1820
  "♥": "rakkaus",
@@ -1722,9 +1823,9 @@ var require_speakingurl = __commonJS2({
1722
1823
  "<": "pienempi kuin",
1723
1824
  ">": "suurempi kuin",
1724
1825
  "∑": "summa",
1725
- "¤": "valuutta"
1826
+ "¤": "valuutta",
1726
1827
  },
1727
- "fr": {
1828
+ fr: {
1728
1829
  "∆": "delta",
1729
1830
  "∞": "infiniment",
1730
1831
  "♥": "Amour",
@@ -1733,9 +1834,9 @@ var require_speakingurl = __commonJS2({
1733
1834
  "<": "moins que",
1734
1835
  ">": "superieure a",
1735
1836
  "∑": "somme des",
1736
- "¤": "monnaie"
1837
+ "¤": "monnaie",
1737
1838
  },
1738
- "ge": {
1839
+ ge: {
1739
1840
  "∆": "delta",
1740
1841
  "∞": "usasruloba",
1741
1842
  "♥": "siqvaruli",
@@ -1744,10 +1845,10 @@ var require_speakingurl = __commonJS2({
1744
1845
  "<": "naklebi",
1745
1846
  ">": "meti",
1746
1847
  "∑": "jami",
1747
- "¤": "valuta"
1848
+ "¤": "valuta",
1748
1849
  },
1749
- "gr": {},
1750
- "hu": {
1850
+ gr: {},
1851
+ hu: {
1751
1852
  "∆": "delta",
1752
1853
  "∞": "vegtelen",
1753
1854
  "♥": "szerelem",
@@ -1756,9 +1857,9 @@ var require_speakingurl = __commonJS2({
1756
1857
  "<": "kisebb mint",
1757
1858
  ">": "nagyobb mint",
1758
1859
  "∑": "szumma",
1759
- "¤": "penznem"
1860
+ "¤": "penznem",
1760
1861
  },
1761
- "it": {
1862
+ it: {
1762
1863
  "∆": "delta",
1763
1864
  "∞": "infinito",
1764
1865
  "♥": "amore",
@@ -1767,9 +1868,9 @@ var require_speakingurl = __commonJS2({
1767
1868
  "<": "minore di",
1768
1869
  ">": "maggiore di",
1769
1870
  "∑": "somma",
1770
- "¤": "moneta"
1871
+ "¤": "moneta",
1771
1872
  },
1772
- "lt": {
1873
+ lt: {
1773
1874
  "∆": "delta",
1774
1875
  "∞": "begalybe",
1775
1876
  "♥": "meile",
@@ -1778,9 +1879,9 @@ var require_speakingurl = __commonJS2({
1778
1879
  "<": "maziau nei",
1779
1880
  ">": "daugiau nei",
1780
1881
  "∑": "suma",
1781
- "¤": "valiuta"
1882
+ "¤": "valiuta",
1782
1883
  },
1783
- "lv": {
1884
+ lv: {
1784
1885
  "∆": "delta",
1785
1886
  "∞": "bezgaliba",
1786
1887
  "♥": "milestiba",
@@ -1789,9 +1890,9 @@ var require_speakingurl = __commonJS2({
1789
1890
  "<": "mazak neka",
1790
1891
  ">": "lielaks neka",
1791
1892
  "∑": "summa",
1792
- "¤": "valuta"
1893
+ "¤": "valuta",
1793
1894
  },
1794
- "my": {
1895
+ my: {
1795
1896
  "∆": "kwahkhyaet",
1796
1897
  "∞": "asaonasme",
1797
1898
  "♥": "akhyait",
@@ -1800,10 +1901,10 @@ var require_speakingurl = __commonJS2({
1800
1901
  "<": "ngethaw",
1801
1902
  ">": "kyithaw",
1802
1903
  "∑": "paungld",
1803
- "¤": "ngwekye"
1904
+ "¤": "ngwekye",
1804
1905
  },
1805
- "mk": {},
1806
- "nl": {
1906
+ mk: {},
1907
+ nl: {
1807
1908
  "∆": "delta",
1808
1909
  "∞": "oneindig",
1809
1910
  "♥": "liefde",
@@ -1812,9 +1913,9 @@ var require_speakingurl = __commonJS2({
1812
1913
  "<": "kleiner dan",
1813
1914
  ">": "groter dan",
1814
1915
  "∑": "som",
1815
- "¤": "valuta"
1916
+ "¤": "valuta",
1816
1917
  },
1817
- "pl": {
1918
+ pl: {
1818
1919
  "∆": "delta",
1819
1920
  "∞": "nieskonczonosc",
1820
1921
  "♥": "milosc",
@@ -1823,9 +1924,9 @@ var require_speakingurl = __commonJS2({
1823
1924
  "<": "mniejsze niz",
1824
1925
  ">": "wieksze niz",
1825
1926
  "∑": "suma",
1826
- "¤": "waluta"
1927
+ "¤": "waluta",
1827
1928
  },
1828
- "pt": {
1929
+ pt: {
1829
1930
  "∆": "delta",
1830
1931
  "∞": "infinito",
1831
1932
  "♥": "amor",
@@ -1834,9 +1935,9 @@ var require_speakingurl = __commonJS2({
1834
1935
  "<": "menor que",
1835
1936
  ">": "maior que",
1836
1937
  "∑": "soma",
1837
- "¤": "moeda"
1938
+ "¤": "moeda",
1838
1939
  },
1839
- "ro": {
1940
+ ro: {
1840
1941
  "∆": "delta",
1841
1942
  "∞": "infinit",
1842
1943
  "♥": "dragoste",
@@ -1845,9 +1946,9 @@ var require_speakingurl = __commonJS2({
1845
1946
  "<": "mai mic ca",
1846
1947
  ">": "mai mare ca",
1847
1948
  "∑": "suma",
1848
- "¤": "valuta"
1949
+ "¤": "valuta",
1849
1950
  },
1850
- "ru": {
1951
+ ru: {
1851
1952
  "∆": "delta",
1852
1953
  "∞": "beskonechno",
1853
1954
  "♥": "lubov",
@@ -1856,9 +1957,9 @@ var require_speakingurl = __commonJS2({
1856
1957
  "<": "menshe",
1857
1958
  ">": "bolshe",
1858
1959
  "∑": "summa",
1859
- "¤": "valjuta"
1960
+ "¤": "valjuta",
1860
1961
  },
1861
- "sk": {
1962
+ sk: {
1862
1963
  "∆": "delta",
1863
1964
  "∞": "nekonecno",
1864
1965
  "♥": "laska",
@@ -1867,10 +1968,10 @@ var require_speakingurl = __commonJS2({
1867
1968
  "<": "menej ako",
1868
1969
  ">": "viac ako",
1869
1970
  "∑": "sucet",
1870
- "¤": "mena"
1971
+ "¤": "mena",
1871
1972
  },
1872
- "sr": {},
1873
- "tr": {
1973
+ sr: {},
1974
+ tr: {
1874
1975
  "∆": "delta",
1875
1976
  "∞": "sonsuzluk",
1876
1977
  "♥": "ask",
@@ -1879,9 +1980,9 @@ var require_speakingurl = __commonJS2({
1879
1980
  "<": "kucuktur",
1880
1981
  ">": "buyuktur",
1881
1982
  "∑": "toplam",
1882
- "¤": "para birimi"
1983
+ "¤": "para birimi",
1883
1984
  },
1884
- "uk": {
1985
+ uk: {
1885
1986
  "∆": "delta",
1886
1987
  "∞": "bezkinechnist",
1887
1988
  "♥": "lubov",
@@ -1890,9 +1991,9 @@ var require_speakingurl = __commonJS2({
1890
1991
  "<": "menshe",
1891
1992
  ">": "bilshe",
1892
1993
  "∑": "suma",
1893
- "¤": "valjuta"
1994
+ "¤": "valjuta",
1894
1995
  },
1895
- "vn": {
1996
+ vn: {
1896
1997
  "∆": "delta",
1897
1998
  "∞": "vo cuc",
1898
1999
  "♥": "yeu",
@@ -1901,11 +2002,15 @@ var require_speakingurl = __commonJS2({
1901
2002
  "<": "nho hon",
1902
2003
  ">": "lon hon",
1903
2004
  "∑": "tong",
1904
- "¤": "tien te"
1905
- }
2005
+ "¤": "tien te",
2006
+ },
1906
2007
  };
1907
- var uricChars = [";", "?", ":", "@", "&", "=", "+", "$", ",", "/"].join("");
1908
- var uricNoSlashChars = [";", "?", ":", "@", "&", "=", "+", "$", ","].join("");
2008
+ var uricChars = [";", "?", ":", "@", "&", "=", "+", "$", ",", "/"].join(
2009
+ "",
2010
+ );
2011
+ var uricNoSlashChars = [";", "?", ":", "@", "&", "=", "+", "$", ","].join(
2012
+ "",
2013
+ );
1909
2014
  var markChars = [".", "!", "~", "*", "'", "(", ")"].join("");
1910
2015
  var getSlug = function getSlug2(input, opts) {
1911
2016
  var separator = "-";
@@ -1938,12 +2043,16 @@ var require_speakingurl = __commonJS2({
1938
2043
  langChar = langCharMap.en;
1939
2044
  if (typeof opts === "object") {
1940
2045
  maintainCase = opts.maintainCase || false;
1941
- customReplacements = opts.custom && typeof opts.custom === "object" ? opts.custom : customReplacements;
1942
- truncate = +opts.truncate > 1 && opts.truncate || false;
2046
+ customReplacements =
2047
+ opts.custom && typeof opts.custom === "object"
2048
+ ? opts.custom
2049
+ : customReplacements;
2050
+ truncate = (+opts.truncate > 1 && opts.truncate) || false;
1943
2051
  uricFlag = opts.uric || false;
1944
2052
  uricNoSlashFlag = opts.uricNoSlash || false;
1945
2053
  markFlag = opts.mark || false;
1946
- convertSymbols = opts.symbols === false || opts.lang === false ? false : true;
2054
+ convertSymbols =
2055
+ opts.symbols === false || opts.lang === false ? false : true;
1947
2056
  separator = opts.separator || separator;
1948
2057
  if (uricFlag) {
1949
2058
  allowedChars += uricChars;
@@ -1954,22 +2063,40 @@ var require_speakingurl = __commonJS2({
1954
2063
  if (markFlag) {
1955
2064
  allowedChars += markChars;
1956
2065
  }
1957
- symbol = opts.lang && symbolMap[opts.lang] && convertSymbols ? symbolMap[opts.lang] : convertSymbols ? symbolMap.en : {};
1958
- langChar = opts.lang && langCharMap[opts.lang] ? langCharMap[opts.lang] : opts.lang === false || opts.lang === true ? {} : langCharMap.en;
1959
- if (opts.titleCase && typeof opts.titleCase.length === "number" && Array.prototype.toString.call(opts.titleCase)) {
1960
- opts.titleCase.forEach(function(v) {
2066
+ symbol =
2067
+ opts.lang && symbolMap[opts.lang] && convertSymbols
2068
+ ? symbolMap[opts.lang]
2069
+ : convertSymbols
2070
+ ? symbolMap.en
2071
+ : {};
2072
+ langChar =
2073
+ opts.lang && langCharMap[opts.lang]
2074
+ ? langCharMap[opts.lang]
2075
+ : opts.lang === false || opts.lang === true
2076
+ ? {}
2077
+ : langCharMap.en;
2078
+ if (
2079
+ opts.titleCase &&
2080
+ typeof opts.titleCase.length === "number" &&
2081
+ Array.prototype.toString.call(opts.titleCase)
2082
+ ) {
2083
+ opts.titleCase.forEach(function (v) {
1961
2084
  customReplacements[v + ""] = v + "";
1962
2085
  });
1963
2086
  titleCase = true;
1964
2087
  } else {
1965
2088
  titleCase = !!opts.titleCase;
1966
2089
  }
1967
- if (opts.custom && typeof opts.custom.length === "number" && Array.prototype.toString.call(opts.custom)) {
1968
- opts.custom.forEach(function(v) {
2090
+ if (
2091
+ opts.custom &&
2092
+ typeof opts.custom.length === "number" &&
2093
+ Array.prototype.toString.call(opts.custom)
2094
+ ) {
2095
+ opts.custom.forEach(function (v) {
1969
2096
  customReplacements[v + ""] = v + "";
1970
2097
  });
1971
2098
  }
1972
- Object.keys(customReplacements).forEach(function(v) {
2099
+ Object.keys(customReplacements).forEach(function (v) {
1973
2100
  var r;
1974
2101
  if (v.length > 1) {
1975
2102
  r = new RegExp("\\b" + escapeChars(v) + "\\b", "gi");
@@ -1992,7 +2119,10 @@ var require_speakingurl = __commonJS2({
1992
2119
  if (isReplacedCustomChar(ch, customReplacements)) {
1993
2120
  lastCharWasSymbol = false;
1994
2121
  } else if (langChar[ch]) {
1995
- ch = lastCharWasSymbol && langChar[ch].match(/[A-Za-z0-9]/) ? " " + langChar[ch] : langChar[ch];
2122
+ ch =
2123
+ lastCharWasSymbol && langChar[ch].match(/[A-Za-z0-9]/)
2124
+ ? " " + langChar[ch]
2125
+ : langChar[ch];
1996
2126
  lastCharWasSymbol = false;
1997
2127
  } else if (ch in charMap) {
1998
2128
  if (i + 1 < l && lookAheadCharArray.indexOf(input[i + 1]) >= 0) {
@@ -2002,7 +2132,10 @@ var require_speakingurl = __commonJS2({
2002
2132
  ch = diatricMap[diatricString] + charMap[ch];
2003
2133
  diatricString = "";
2004
2134
  } else {
2005
- ch = lastCharWasSymbol && charMap[ch].match(/[A-Za-z0-9]/) ? " " + charMap[ch] : charMap[ch];
2135
+ ch =
2136
+ lastCharWasSymbol && charMap[ch].match(/[A-Za-z0-9]/)
2137
+ ? " " + charMap[ch]
2138
+ : charMap[ch];
2006
2139
  }
2007
2140
  lastCharWasSymbol = false;
2008
2141
  lastCharWasDiatric = false;
@@ -2015,30 +2148,52 @@ var require_speakingurl = __commonJS2({
2015
2148
  lastCharWasDiatric = true;
2016
2149
  } else if (
2017
2150
  // process symbol chars
2018
- symbol[ch] && !(uricFlag && uricChars.indexOf(ch) !== -1) && !(uricNoSlashFlag && uricNoSlashChars.indexOf(ch) !== -1)
2151
+ symbol[ch] &&
2152
+ !(uricFlag && uricChars.indexOf(ch) !== -1) &&
2153
+ !(uricNoSlashFlag && uricNoSlashChars.indexOf(ch) !== -1)
2019
2154
  ) {
2020
- ch = lastCharWasSymbol || result.substr(-1).match(/[A-Za-z0-9]/) ? separator + symbol[ch] : symbol[ch];
2021
- ch += input[i + 1] !== void 0 && input[i + 1].match(/[A-Za-z0-9]/) ? separator : "";
2155
+ ch =
2156
+ lastCharWasSymbol || result.substr(-1).match(/[A-Za-z0-9]/)
2157
+ ? separator + symbol[ch]
2158
+ : symbol[ch];
2159
+ ch +=
2160
+ input[i + 1] !== void 0 && input[i + 1].match(/[A-Za-z0-9]/)
2161
+ ? separator
2162
+ : "";
2022
2163
  lastCharWasSymbol = true;
2023
2164
  } else {
2024
2165
  if (lastCharWasDiatric === true) {
2025
2166
  ch = diatricMap[diatricString] + ch;
2026
2167
  diatricString = "";
2027
2168
  lastCharWasDiatric = false;
2028
- } else if (lastCharWasSymbol && (/[A-Za-z0-9]/.test(ch) || result.substr(-1).match(/A-Za-z0-9]/))) {
2169
+ } else if (
2170
+ lastCharWasSymbol &&
2171
+ (/[A-Za-z0-9]/.test(ch) || result.substr(-1).match(/A-Za-z0-9]/))
2172
+ ) {
2029
2173
  ch = " " + ch;
2030
2174
  }
2031
2175
  lastCharWasSymbol = false;
2032
2176
  }
2033
- result += ch.replace(new RegExp("[^\\w\\s" + allowedChars + "_-]", "g"), separator);
2177
+ result += ch.replace(
2178
+ new RegExp("[^\\w\\s" + allowedChars + "_-]", "g"),
2179
+ separator,
2180
+ );
2034
2181
  }
2035
2182
  if (titleCase) {
2036
- result = result.replace(/(\w)(\S*)/g, function(_, i2, r) {
2183
+ result = result.replace(/(\w)(\S*)/g, function (_, i2, r) {
2037
2184
  var j = i2.toUpperCase() + (r !== null ? r : "");
2038
- return Object.keys(customReplacements).indexOf(j.toLowerCase()) < 0 ? j : j.toLowerCase();
2185
+ return Object.keys(customReplacements).indexOf(j.toLowerCase()) < 0
2186
+ ? j
2187
+ : j.toLowerCase();
2039
2188
  });
2040
2189
  }
2041
- result = result.replace(/\s+/g, separator).replace(new RegExp("\\" + separator + "+", "g"), separator).replace(new RegExp("(^\\" + separator + "+|\\" + separator + "+$)", "g"), "");
2190
+ result = result
2191
+ .replace(/\s+/g, separator)
2192
+ .replace(new RegExp("\\" + separator + "+", "g"), separator)
2193
+ .replace(
2194
+ new RegExp("(^\\" + separator + "+|\\" + separator + "+$)", "g"),
2195
+ "",
2196
+ );
2042
2197
  if (truncate && result.length > truncate) {
2043
2198
  lucky = result.charAt(truncate) === separator;
2044
2199
  result = result.slice(0, truncate);
@@ -2059,7 +2214,7 @@ var require_speakingurl = __commonJS2({
2059
2214
  var escapeChars = function escapeChars2(input) {
2060
2215
  return input.replace(/[-\\^$*+?.()|[\]{}\/]/g, "\\$&");
2061
2216
  };
2062
- var isReplacedCustomChar = function(ch, customReplacements) {
2217
+ var isReplacedCustomChar = function (ch, customReplacements) {
2063
2218
  for (var c in customReplacements) {
2064
2219
  if (customReplacements[c] === ch) {
2065
2220
  return true;
@@ -2070,7 +2225,7 @@ var require_speakingurl = __commonJS2({
2070
2225
  module.exports = getSlug;
2071
2226
  module.exports.createSlug = createSlug;
2072
2227
  } else if (typeof define !== "undefined" && define.amd) {
2073
- define([], function() {
2228
+ define([], function () {
2074
2229
  return getSlug;
2075
2230
  });
2076
2231
  } else {
@@ -2081,18 +2236,20 @@ var require_speakingurl = __commonJS2({
2081
2236
  root.getSlug = getSlug;
2082
2237
  root.createSlug = createSlug;
2083
2238
  }
2084
- } catch (e) {
2085
- }
2239
+ } catch (e) {}
2086
2240
  }
2087
2241
  })(exports);
2088
- }
2242
+ },
2089
2243
  });
2090
2244
  var require_speakingurl2 = __commonJS2({
2091
- "../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(exports, module) {
2245
+ "../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(
2246
+ exports,
2247
+ module,
2248
+ ) {
2092
2249
  "use strict";
2093
2250
  init_esm_shims2();
2094
2251
  module.exports = require_speakingurl();
2095
- }
2252
+ },
2096
2253
  });
2097
2254
  init_esm_shims2();
2098
2255
  init_esm_shims2();
@@ -2104,16 +2261,22 @@ init_esm_shims2();
2104
2261
  init_esm_shims2();
2105
2262
  function getComponentTypeName(options) {
2106
2263
  var _a25;
2107
- const name = options.name || options._componentTag || options.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ || options.__name;
2108
- if (name === "index" && ((_a25 = options.__file) == null ? void 0 : _a25.endsWith("index.vue"))) {
2264
+ const name =
2265
+ options.name ||
2266
+ options._componentTag ||
2267
+ options.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ ||
2268
+ options.__name;
2269
+ if (
2270
+ name === "index" &&
2271
+ ((_a25 = options.__file) == null ? void 0 : _a25.endsWith("index.vue"))
2272
+ ) {
2109
2273
  return "";
2110
2274
  }
2111
2275
  return name;
2112
2276
  }
2113
2277
  function getComponentFileName(options) {
2114
2278
  const file = options.__file;
2115
- if (file)
2116
- return classify(basename(file, ".vue"));
2279
+ if (file) return classify(basename(file, ".vue"));
2117
2280
  }
2118
2281
  function saveComponentGussedName(instance, name) {
2119
2282
  instance.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ = name;
@@ -2130,34 +2293,62 @@ function isFragment(instance) {
2130
2293
  const subTreeType = (_a25 = instance.subTree) == null ? void 0 : _a25.type;
2131
2294
  const appRecord = getAppRecord(instance);
2132
2295
  if (appRecord) {
2133
- return ((_b25 = appRecord == null ? void 0 : appRecord.types) == null ? void 0 : _b25.Fragment) === subTreeType;
2296
+ return (
2297
+ ((_b25 = appRecord == null ? void 0 : appRecord.types) == null
2298
+ ? void 0
2299
+ : _b25.Fragment) === subTreeType
2300
+ );
2134
2301
  }
2135
2302
  return false;
2136
2303
  }
2137
2304
  function getInstanceName(instance) {
2138
2305
  var _a25, _b25, _c;
2139
- const name = getComponentTypeName((instance == null ? void 0 : instance.type) || {});
2140
- if (name)
2141
- return name;
2142
- if ((instance == null ? void 0 : instance.root) === instance)
2143
- return "Root";
2144
- for (const key in (_b25 = (_a25 = instance.parent) == null ? void 0 : _a25.type) == null ? void 0 : _b25.components) {
2145
- if (instance.parent.type.components[key] === (instance == null ? void 0 : instance.type))
2306
+ const name = getComponentTypeName(
2307
+ (instance == null ? void 0 : instance.type) || {},
2308
+ );
2309
+ if (name) return name;
2310
+ if ((instance == null ? void 0 : instance.root) === instance) return "Root";
2311
+ for (const key in (_b25 =
2312
+ (_a25 = instance.parent) == null ? void 0 : _a25.type) == null
2313
+ ? void 0
2314
+ : _b25.components) {
2315
+ if (
2316
+ instance.parent.type.components[key] ===
2317
+ (instance == null ? void 0 : instance.type)
2318
+ )
2146
2319
  return saveComponentGussedName(instance, key);
2147
2320
  }
2148
- for (const key in (_c = instance.appContext) == null ? void 0 : _c.components) {
2149
- if (instance.appContext.components[key] === (instance == null ? void 0 : instance.type))
2321
+ for (const key in (_c = instance.appContext) == null
2322
+ ? void 0
2323
+ : _c.components) {
2324
+ if (
2325
+ instance.appContext.components[key] ===
2326
+ (instance == null ? void 0 : instance.type)
2327
+ )
2150
2328
  return saveComponentGussedName(instance, key);
2151
2329
  }
2152
- const fileName = getComponentFileName((instance == null ? void 0 : instance.type) || {});
2153
- if (fileName)
2154
- return fileName;
2330
+ const fileName = getComponentFileName(
2331
+ (instance == null ? void 0 : instance.type) || {},
2332
+ );
2333
+ if (fileName) return fileName;
2155
2334
  return "Anonymous Component";
2156
2335
  }
2157
2336
  function getUniqueComponentId(instance) {
2158
2337
  var _a25, _b25, _c;
2159
- const appId = (_c = (_b25 = (_a25 = instance == null ? void 0 : instance.appContext) == null ? void 0 : _a25.app) == null ? void 0 : _b25.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__) != null ? _c : 0;
2160
- const instanceId = instance === (instance == null ? void 0 : instance.root) ? "root" : instance.uid;
2338
+ const appId =
2339
+ (_c =
2340
+ (_b25 =
2341
+ (_a25 = instance == null ? void 0 : instance.appContext) == null
2342
+ ? void 0
2343
+ : _a25.app) == null
2344
+ ? void 0
2345
+ : _b25.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__) != null
2346
+ ? _c
2347
+ : 0;
2348
+ const instanceId =
2349
+ instance === (instance == null ? void 0 : instance.root)
2350
+ ? "root"
2351
+ : instance.uid;
2161
2352
  return `${appId}:${instanceId}`;
2162
2353
  }
2163
2354
  function getComponentInstance(appRecord, instanceId) {
@@ -2176,21 +2367,19 @@ function createRect() {
2176
2367
  },
2177
2368
  get height() {
2178
2369
  return rect.bottom - rect.top;
2179
- }
2370
+ },
2180
2371
  };
2181
2372
  return rect;
2182
2373
  }
2183
2374
  var range;
2184
2375
  function getTextRect(node) {
2185
- if (!range)
2186
- range = document.createRange();
2376
+ if (!range) range = document.createRange();
2187
2377
  range.selectNode(node);
2188
2378
  return range.getBoundingClientRect();
2189
2379
  }
2190
2380
  function getFragmentRect(vnode) {
2191
2381
  const rect = createRect();
2192
- if (!vnode.children)
2193
- return rect;
2382
+ if (!vnode.children) return rect;
2194
2383
  for (let i = 0, l = vnode.children.length; i < l; i++) {
2195
2384
  const childVnode = vnode.children[i];
2196
2385
  let childRect;
@@ -2200,23 +2389,17 @@ function getFragmentRect(vnode) {
2200
2389
  const el = childVnode.el;
2201
2390
  if (el.nodeType === 1 || el.getBoundingClientRect)
2202
2391
  childRect = el.getBoundingClientRect();
2203
- else if (el.nodeType === 3 && el.data.trim())
2204
- childRect = getTextRect(el);
2392
+ else if (el.nodeType === 3 && el.data.trim()) childRect = getTextRect(el);
2205
2393
  }
2206
- if (childRect)
2207
- mergeRects(rect, childRect);
2394
+ if (childRect) mergeRects(rect, childRect);
2208
2395
  }
2209
2396
  return rect;
2210
2397
  }
2211
2398
  function mergeRects(a, b) {
2212
- if (!a.top || b.top < a.top)
2213
- a.top = b.top;
2214
- if (!a.bottom || b.bottom > a.bottom)
2215
- a.bottom = b.bottom;
2216
- if (!a.left || b.left < a.left)
2217
- a.left = b.left;
2218
- if (!a.right || b.right > a.right)
2219
- a.right = b.right;
2399
+ if (!a.top || b.top < a.top) a.top = b.top;
2400
+ if (!a.bottom || b.bottom > a.bottom) a.bottom = b.bottom;
2401
+ if (!a.left || b.left < a.left) a.left = b.left;
2402
+ if (!a.right || b.right > a.right) a.right = b.right;
2220
2403
  return a;
2221
2404
  }
2222
2405
  var DEFAULT_RECT = {
@@ -2225,33 +2408,28 @@ var DEFAULT_RECT = {
2225
2408
  right: 0,
2226
2409
  bottom: 0,
2227
2410
  width: 0,
2228
- height: 0
2411
+ height: 0,
2229
2412
  };
2230
2413
  function getComponentBoundingRect(instance) {
2231
2414
  const el = instance.subTree.el;
2232
2415
  if (typeof window === "undefined") {
2233
2416
  return DEFAULT_RECT;
2234
2417
  }
2235
- if (isFragment(instance))
2236
- return getFragmentRect(instance.subTree);
2418
+ if (isFragment(instance)) return getFragmentRect(instance.subTree);
2237
2419
  else if ((el == null ? void 0 : el.nodeType) === 1)
2238
2420
  return el == null ? void 0 : el.getBoundingClientRect();
2239
2421
  else if (instance.subTree.component)
2240
2422
  return getComponentBoundingRect(instance.subTree.component);
2241
- else
2242
- return DEFAULT_RECT;
2423
+ else return DEFAULT_RECT;
2243
2424
  }
2244
2425
  init_esm_shims2();
2245
2426
  function getRootElementsFromComponentInstance(instance) {
2246
- if (isFragment(instance))
2247
- return getFragmentRootElements(instance.subTree);
2248
- if (!instance.subTree)
2249
- return [];
2427
+ if (isFragment(instance)) return getFragmentRootElements(instance.subTree);
2428
+ if (!instance.subTree) return [];
2250
2429
  return [instance.subTree.el];
2251
2430
  }
2252
2431
  function getFragmentRootElements(vnode) {
2253
- if (!vnode.children)
2254
- return [];
2432
+ if (!vnode.children) return [];
2255
2433
  const list = [];
2256
2434
  vnode.children.forEach((childVnode) => {
2257
2435
  if (childVnode.component)
@@ -2273,7 +2451,7 @@ var containerStyles = {
2273
2451
  border: "1px solid #42b88350",
2274
2452
  borderRadius: "5px",
2275
2453
  transition: "all 0.1s ease-in",
2276
- pointerEvents: "none"
2454
+ pointerEvents: "none",
2277
2455
  };
2278
2456
  var cardStyles = {
2279
2457
  fontFamily: "Arial, Helvetica, sans-serif",
@@ -2287,14 +2465,15 @@ var cardStyles = {
2287
2465
  fontWeight: 600,
2288
2466
  lineHeight: "24px",
2289
2467
  backgroundColor: "#42b883",
2290
- boxShadow: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"
2468
+ boxShadow:
2469
+ "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)",
2291
2470
  };
2292
2471
  var indicatorStyles = {
2293
2472
  display: "inline-block",
2294
2473
  fontWeight: 400,
2295
2474
  fontStyle: "normal",
2296
2475
  fontSize: "12px",
2297
- opacity: 0.7
2476
+ opacity: 0.7,
2298
2477
  };
2299
2478
  function getContainerElement() {
2300
2479
  return document.getElementById(CONTAINER_ELEMENT_ID);
@@ -2313,23 +2492,24 @@ function getStyles(bounds) {
2313
2492
  left: `${Math.round(bounds.left * 100) / 100}px`,
2314
2493
  top: `${Math.round(bounds.top * 100) / 100}px`,
2315
2494
  width: `${Math.round(bounds.width * 100) / 100}px`,
2316
- height: `${Math.round(bounds.height * 100) / 100}px`
2495
+ height: `${Math.round(bounds.height * 100) / 100}px`,
2317
2496
  };
2318
2497
  }
2319
2498
  function create(options) {
2320
2499
  var _a25;
2321
2500
  const containerEl = document.createElement("div");
2322
- containerEl.id = (_a25 = options.elementId) != null ? _a25 : CONTAINER_ELEMENT_ID;
2501
+ containerEl.id =
2502
+ (_a25 = options.elementId) != null ? _a25 : CONTAINER_ELEMENT_ID;
2323
2503
  Object.assign(containerEl.style, {
2324
2504
  ...containerStyles,
2325
2505
  ...getStyles(options.bounds),
2326
- ...options.style
2506
+ ...options.style,
2327
2507
  });
2328
2508
  const cardEl = document.createElement("span");
2329
2509
  cardEl.id = CARD_ELEMENT_ID;
2330
2510
  Object.assign(cardEl.style, {
2331
2511
  ...cardStyles,
2332
- top: options.bounds.top < 35 ? 0 : "-35px"
2512
+ top: options.bounds.top < 35 ? 0 : "-35px",
2333
2513
  });
2334
2514
  const nameEl = document.createElement("span");
2335
2515
  nameEl.id = COMPONENT_NAME_ELEMENT_ID;
@@ -2352,10 +2532,10 @@ function update(options) {
2352
2532
  if (containerEl) {
2353
2533
  Object.assign(containerEl.style, {
2354
2534
  ...containerStyles,
2355
- ...getStyles(options.bounds)
2535
+ ...getStyles(options.bounds),
2356
2536
  });
2357
2537
  Object.assign(cardEl.style, {
2358
- top: options.bounds.top < 35 ? 0 : "-35px"
2538
+ top: options.bounds.top < 35 ? 0 : "-35px",
2359
2539
  });
2360
2540
  nameEl.innerHTML = `&lt;${options.name}&gt;&nbsp;&nbsp;`;
2361
2541
  indicatorEl.innerHTML = `${Math.round(options.bounds.width * 100) / 100} x ${Math.round(options.bounds.height * 100) / 100}`;
@@ -2363,16 +2543,14 @@ function update(options) {
2363
2543
  }
2364
2544
  function highlight(instance) {
2365
2545
  const bounds = getComponentBoundingRect(instance);
2366
- if (!bounds.width && !bounds.height)
2367
- return;
2546
+ if (!bounds.width && !bounds.height) return;
2368
2547
  const name = getInstanceName(instance);
2369
2548
  const container = getContainerElement();
2370
2549
  container ? update({ bounds, name }) : create({ bounds, name });
2371
2550
  }
2372
2551
  function unhighlight() {
2373
2552
  const el = getContainerElement();
2374
- if (el)
2375
- el.style.display = "none";
2553
+ if (el) el.style.display = "none";
2376
2554
  }
2377
2555
  var inspectInstance = null;
2378
2556
  function inspectFn(e) {
@@ -2403,7 +2581,11 @@ var inspectComponentHighLighterSelectFn = null;
2403
2581
  function cancelInspectComponentHighLighter() {
2404
2582
  unhighlight();
2405
2583
  window.removeEventListener("mouseover", inspectFn);
2406
- window.removeEventListener("click", inspectComponentHighLighterSelectFn, true);
2584
+ window.removeEventListener(
2585
+ "click",
2586
+ inspectComponentHighLighterSelectFn,
2587
+ true,
2588
+ );
2407
2589
  inspectComponentHighLighterSelectFn = null;
2408
2590
  }
2409
2591
  function inspectComponentHighLighter() {
@@ -2417,8 +2599,7 @@ function inspectComponentHighLighter() {
2417
2599
  inspectComponentHighLighterSelectFn = null;
2418
2600
  window.removeEventListener("mouseover", inspectFn);
2419
2601
  const el = getContainerElement();
2420
- if (el)
2421
- el.style.display = "none";
2602
+ if (el) el.style.display = "none";
2422
2603
  resolve(JSON.stringify({ id }));
2423
2604
  });
2424
2605
  }
@@ -2432,19 +2613,19 @@ function scrollToComponent(options) {
2432
2613
  const [el] = getRootElementsFromComponentInstance(instance);
2433
2614
  if (typeof el.scrollIntoView === "function") {
2434
2615
  el.scrollIntoView({
2435
- behavior: "smooth"
2616
+ behavior: "smooth",
2436
2617
  });
2437
2618
  } else {
2438
2619
  const bounds = getComponentBoundingRect(instance);
2439
2620
  const scrollTarget = document.createElement("div");
2440
2621
  const styles = {
2441
2622
  ...getStyles(bounds),
2442
- position: "absolute"
2623
+ position: "absolute",
2443
2624
  };
2444
2625
  Object.assign(scrollTarget.style, styles);
2445
2626
  document.body.appendChild(scrollTarget);
2446
2627
  scrollTarget.scrollIntoView({
2447
- behavior: "smooth"
2628
+ behavior: "smooth",
2448
2629
  });
2449
2630
  setTimeout(() => {
2450
2631
  document.body.removeChild(scrollTarget);
@@ -2455,10 +2636,11 @@ function scrollToComponent(options) {
2455
2636
  if (bounds.width || bounds.height) {
2456
2637
  const name = getInstanceName(instance);
2457
2638
  const el2 = getContainerElement();
2458
- el2 ? update({ ...options, name, bounds }) : create({ ...options, name, bounds });
2639
+ el2
2640
+ ? update({ ...options, name, bounds })
2641
+ : create({ ...options, name, bounds });
2459
2642
  setTimeout(() => {
2460
- if (el2)
2461
- el2.style.display = "none";
2643
+ if (el2) el2.style.display = "none";
2462
2644
  }, 1500);
2463
2645
  }
2464
2646
  }, 1200);
@@ -2467,7 +2649,9 @@ function scrollToComponent(options) {
2467
2649
  init_esm_shims2();
2468
2650
  var _a2;
2469
2651
  var _b;
2470
- (_b = (_a2 = target).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__) != null ? _b : _a2.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__ = true;
2652
+ (_b = (_a2 = target).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__) != null
2653
+ ? _b
2654
+ : (_a2.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__ = true);
2471
2655
  function waitForInspectorInit(cb) {
2472
2656
  let total = 0;
2473
2657
  const timer = setInterval(() => {
@@ -2476,9 +2660,7 @@ function waitForInspectorInit(cb) {
2476
2660
  total += 30;
2477
2661
  cb();
2478
2662
  }
2479
- if (total >= /* 5s */
2480
- 5e3)
2481
- clearInterval(timer);
2663
+ if (total /* 5s */ >= 5e3) clearInterval(timer);
2482
2664
  }, 30);
2483
2665
  }
2484
2666
  function setupInspector() {
@@ -2507,31 +2689,41 @@ function getComponentInspector() {
2507
2689
  init_esm_shims2();
2508
2690
  init_esm_shims2();
2509
2691
  function isReadonly(value) {
2510
- return !!(value && value[
2511
- "__v_isReadonly"
2512
- /* IS_READONLY */
2513
- ]);
2692
+ return !!(
2693
+ value &&
2694
+ value[
2695
+ "__v_isReadonly"
2696
+ /* IS_READONLY */
2697
+ ]
2698
+ );
2514
2699
  }
2515
2700
  function isReactive(value) {
2516
2701
  if (isReadonly(value)) {
2517
- return isReactive(value[
2518
- "__v_raw"
2519
- /* RAW */
2520
- ]);
2702
+ return isReactive(
2703
+ value[
2704
+ "__v_raw"
2705
+ /* RAW */
2706
+ ],
2707
+ );
2521
2708
  }
2522
- return !!(value && value[
2523
- "__v_isReactive"
2524
- /* IS_REACTIVE */
2525
- ]);
2709
+ return !!(
2710
+ value &&
2711
+ value[
2712
+ "__v_isReactive"
2713
+ /* IS_REACTIVE */
2714
+ ]
2715
+ );
2526
2716
  }
2527
2717
  function isRef(r) {
2528
2718
  return !!(r && r.__v_isRef === true);
2529
2719
  }
2530
2720
  function toRaw(observed) {
2531
- const raw = observed && observed[
2532
- "__v_raw"
2533
- /* RAW */
2534
- ];
2721
+ const raw =
2722
+ observed &&
2723
+ observed[
2724
+ "__v_raw"
2725
+ /* RAW */
2726
+ ];
2535
2727
  return raw ? toRaw(raw) : observed;
2536
2728
  }
2537
2729
  var Fragment = Symbol.for("v-fgt");
@@ -2544,75 +2736,62 @@ var StateEditor = class {
2544
2736
  const markRef = false;
2545
2737
  while (sections.length > 1) {
2546
2738
  const section = sections.shift();
2547
- if (object instanceof Map)
2548
- object = object.get(section);
2739
+ if (object instanceof Map) object = object.get(section);
2549
2740
  else if (object instanceof Set)
2550
2741
  object = Array.from(object.values())[section];
2551
2742
  else object = object[section];
2552
- if (this.refEditor.isRef(object))
2553
- object = this.refEditor.get(object);
2743
+ if (this.refEditor.isRef(object)) object = this.refEditor.get(object);
2554
2744
  }
2555
2745
  const field = sections[0];
2556
2746
  const item = this.refEditor.get(object)[field];
2557
2747
  if (cb) {
2558
2748
  cb(object, field, value);
2559
2749
  } else {
2560
- if (this.refEditor.isRef(item))
2561
- this.refEditor.set(item, value);
2562
- else if (markRef)
2563
- object[field] = value;
2564
- else
2565
- object[field] = value;
2750
+ if (this.refEditor.isRef(item)) this.refEditor.set(item, value);
2751
+ else if (markRef) object[field] = value;
2752
+ else object[field] = value;
2566
2753
  }
2567
2754
  }
2568
2755
  get(object, path) {
2569
2756
  const sections = Array.isArray(path) ? path : path.split(".");
2570
2757
  for (let i = 0; i < sections.length; i++) {
2571
- if (object instanceof Map)
2572
- object = object.get(sections[i]);
2573
- else
2574
- object = object[sections[i]];
2575
- if (this.refEditor.isRef(object))
2576
- object = this.refEditor.get(object);
2577
- if (!object)
2578
- return void 0;
2758
+ if (object instanceof Map) object = object.get(sections[i]);
2759
+ else object = object[sections[i]];
2760
+ if (this.refEditor.isRef(object)) object = this.refEditor.get(object);
2761
+ if (!object) return void 0;
2579
2762
  }
2580
2763
  return object;
2581
2764
  }
2582
2765
  has(object, path, parent = false) {
2583
- if (typeof object === "undefined")
2584
- return false;
2766
+ if (typeof object === "undefined") return false;
2585
2767
  const sections = Array.isArray(path) ? path.slice() : path.split(".");
2586
2768
  const size = !parent ? 1 : 2;
2587
2769
  while (object && sections.length > size) {
2588
2770
  const section = sections.shift();
2589
2771
  object = object[section];
2590
- if (this.refEditor.isRef(object))
2591
- object = this.refEditor.get(object);
2772
+ if (this.refEditor.isRef(object)) object = this.refEditor.get(object);
2592
2773
  }
2593
- return object != null && Object.prototype.hasOwnProperty.call(object, sections[0]);
2774
+ return (
2775
+ object != null &&
2776
+ Object.prototype.hasOwnProperty.call(object, sections[0])
2777
+ );
2594
2778
  }
2595
2779
  createDefaultSetCallback(state) {
2596
2780
  return (object, field, value) => {
2597
2781
  if (state.remove || state.newKey) {
2598
- if (Array.isArray(object))
2599
- object.splice(field, 1);
2600
- else if (toRaw(object) instanceof Map)
2601
- object.delete(field);
2782
+ if (Array.isArray(object)) object.splice(field, 1);
2783
+ else if (toRaw(object) instanceof Map) object.delete(field);
2602
2784
  else if (toRaw(object) instanceof Set)
2603
2785
  object.delete(Array.from(object.values())[field]);
2604
2786
  else Reflect.deleteProperty(object, field);
2605
2787
  }
2606
2788
  if (!state.remove) {
2607
2789
  const target22 = object[state.newKey || field];
2608
- if (this.refEditor.isRef(target22))
2609
- this.refEditor.set(target22, value);
2790
+ if (this.refEditor.isRef(target22)) this.refEditor.set(target22, value);
2610
2791
  else if (toRaw(object) instanceof Map)
2611
2792
  object.set(state.newKey || field, value);
2612
- else if (toRaw(object) instanceof Set)
2613
- object.add(value);
2614
- else
2615
- object[state.newKey || field] = value;
2793
+ else if (toRaw(object) instanceof Set) object.add(value);
2794
+ else object[state.newKey || field] = value;
2616
2795
  }
2617
2796
  };
2618
2797
  }
@@ -2656,89 +2835,121 @@ var stateEditor = new StateEditor();
2656
2835
  init_esm_shims2();
2657
2836
  init_esm_shims2();
2658
2837
  init_esm_shims2();
2659
- var TIMELINE_LAYERS_STATE_STORAGE_ID = "__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";
2838
+ var TIMELINE_LAYERS_STATE_STORAGE_ID =
2839
+ "__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";
2660
2840
  function getTimelineLayersStateFromStorage() {
2661
- if (!isBrowser || typeof localStorage === "undefined" || localStorage === null) {
2841
+ if (
2842
+ !isBrowser ||
2843
+ typeof localStorage === "undefined" ||
2844
+ localStorage === null
2845
+ ) {
2662
2846
  return {
2663
2847
  recordingState: false,
2664
2848
  mouseEventEnabled: false,
2665
2849
  keyboardEventEnabled: false,
2666
2850
  componentEventEnabled: false,
2667
2851
  performanceEventEnabled: false,
2668
- selected: ""
2852
+ selected: "",
2669
2853
  };
2670
2854
  }
2671
2855
  const state = localStorage.getItem(TIMELINE_LAYERS_STATE_STORAGE_ID);
2672
- return state ? JSON.parse(state) : {
2673
- recordingState: false,
2674
- mouseEventEnabled: false,
2675
- keyboardEventEnabled: false,
2676
- componentEventEnabled: false,
2677
- performanceEventEnabled: false,
2678
- selected: ""
2679
- };
2856
+ return state
2857
+ ? JSON.parse(state)
2858
+ : {
2859
+ recordingState: false,
2860
+ mouseEventEnabled: false,
2861
+ keyboardEventEnabled: false,
2862
+ componentEventEnabled: false,
2863
+ performanceEventEnabled: false,
2864
+ selected: "",
2865
+ };
2680
2866
  }
2681
2867
  init_esm_shims2();
2682
2868
  init_esm_shims2();
2683
2869
  init_esm_shims2();
2684
2870
  var _a22;
2685
2871
  var _b2;
2686
- (_b2 = (_a22 = target).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS) != null ? _b2 : _a22.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS = [];
2687
- var devtoolsTimelineLayers = new Proxy(target.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS, {
2688
- get(target22, prop, receiver) {
2689
- return Reflect.get(target22, prop, receiver);
2690
- }
2691
- });
2872
+ (_b2 = (_a22 = target).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS) != null
2873
+ ? _b2
2874
+ : (_a22.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS = []);
2875
+ var devtoolsTimelineLayers = new Proxy(
2876
+ target.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,
2877
+ {
2878
+ get(target22, prop, receiver) {
2879
+ return Reflect.get(target22, prop, receiver);
2880
+ },
2881
+ },
2882
+ );
2692
2883
  function addTimelineLayer(options, descriptor) {
2693
2884
  devtoolsState.timelineLayersState[descriptor.id] = false;
2694
2885
  devtoolsTimelineLayers.push({
2695
2886
  ...options,
2696
2887
  descriptorId: descriptor.id,
2697
- appRecord: getAppRecord(descriptor.app)
2888
+ appRecord: getAppRecord(descriptor.app),
2698
2889
  });
2699
2890
  }
2700
2891
  var _a3;
2701
2892
  var _b3;
2702
- (_b3 = (_a3 = target).__VUE_DEVTOOLS_KIT_INSPECTOR__) != null ? _b3 : _a3.__VUE_DEVTOOLS_KIT_INSPECTOR__ = [];
2893
+ (_b3 = (_a3 = target).__VUE_DEVTOOLS_KIT_INSPECTOR__) != null
2894
+ ? _b3
2895
+ : (_a3.__VUE_DEVTOOLS_KIT_INSPECTOR__ = []);
2703
2896
  var devtoolsInspector = new Proxy(target.__VUE_DEVTOOLS_KIT_INSPECTOR__, {
2704
2897
  get(target22, prop, receiver) {
2705
2898
  return Reflect.get(target22, prop, receiver);
2706
- }
2899
+ },
2707
2900
  });
2708
2901
  var callInspectorUpdatedHook = debounce(() => {
2709
- devtoolsContext.hooks.callHook("sendInspectorToClient", getActiveInspectors());
2902
+ devtoolsContext.hooks.callHook(
2903
+ "sendInspectorToClient",
2904
+ getActiveInspectors(),
2905
+ );
2710
2906
  });
2711
2907
  function addInspector(inspector, descriptor) {
2712
2908
  var _a25, _b25;
2713
2909
  devtoolsInspector.push({
2714
2910
  options: inspector,
2715
2911
  descriptor,
2716
- treeFilterPlaceholder: (_a25 = inspector.treeFilterPlaceholder) != null ? _a25 : "Search tree...",
2717
- stateFilterPlaceholder: (_b25 = inspector.stateFilterPlaceholder) != null ? _b25 : "Search state...",
2912
+ treeFilterPlaceholder:
2913
+ (_a25 = inspector.treeFilterPlaceholder) != null
2914
+ ? _a25
2915
+ : "Search tree...",
2916
+ stateFilterPlaceholder:
2917
+ (_b25 = inspector.stateFilterPlaceholder) != null
2918
+ ? _b25
2919
+ : "Search state...",
2718
2920
  treeFilter: "",
2719
2921
  selectedNodeId: "",
2720
- appRecord: getAppRecord(descriptor.app)
2922
+ appRecord: getAppRecord(descriptor.app),
2721
2923
  });
2722
2924
  callInspectorUpdatedHook();
2723
2925
  }
2724
2926
  function getActiveInspectors() {
2725
- return devtoolsInspector.filter((inspector) => inspector.descriptor.app === activeAppRecord.value.app).filter((inspector) => inspector.descriptor.id !== "components").map((inspector) => {
2726
- var _a25;
2727
- const descriptor = inspector.descriptor;
2728
- const options = inspector.options;
2729
- return {
2730
- id: options.id,
2731
- label: options.label,
2732
- logo: descriptor.logo,
2733
- icon: `custom-ic-baseline-${(_a25 = options == null ? void 0 : options.icon) == null ? void 0 : _a25.replace(/_/g, "-")}`,
2734
- packageName: descriptor.packageName,
2735
- homepage: descriptor.homepage,
2736
- pluginId: descriptor.id
2737
- };
2738
- });
2927
+ return devtoolsInspector
2928
+ .filter(
2929
+ (inspector) => inspector.descriptor.app === activeAppRecord.value.app,
2930
+ )
2931
+ .filter((inspector) => inspector.descriptor.id !== "components")
2932
+ .map((inspector) => {
2933
+ var _a25;
2934
+ const descriptor = inspector.descriptor;
2935
+ const options = inspector.options;
2936
+ return {
2937
+ id: options.id,
2938
+ label: options.label,
2939
+ logo: descriptor.logo,
2940
+ icon: `custom-ic-baseline-${(_a25 = options == null ? void 0 : options.icon) == null ? void 0 : _a25.replace(/_/g, "-")}`,
2941
+ packageName: descriptor.packageName,
2942
+ homepage: descriptor.homepage,
2943
+ pluginId: descriptor.id,
2944
+ };
2945
+ });
2739
2946
  }
2740
2947
  function getInspector(id, app) {
2741
- return devtoolsInspector.find((inspector) => inspector.options.id === id && (app ? inspector.descriptor.app === app : true));
2948
+ return devtoolsInspector.find(
2949
+ (inspector) =>
2950
+ inspector.options.id === id &&
2951
+ (app ? inspector.descriptor.app === app : true),
2952
+ );
2742
2953
  }
2743
2954
  var DevToolsV6PluginAPIHookKeys = ((DevToolsV6PluginAPIHookKeys2) => {
2744
2955
  DevToolsV6PluginAPIHookKeys2["VISIT_COMPONENT_TREE"] = "visitComponentTree";
@@ -2747,7 +2958,8 @@ var DevToolsV6PluginAPIHookKeys = ((DevToolsV6PluginAPIHookKeys2) => {
2747
2958
  DevToolsV6PluginAPIHookKeys2["GET_INSPECTOR_TREE"] = "getInspectorTree";
2748
2959
  DevToolsV6PluginAPIHookKeys2["GET_INSPECTOR_STATE"] = "getInspectorState";
2749
2960
  DevToolsV6PluginAPIHookKeys2["EDIT_INSPECTOR_STATE"] = "editInspectorState";
2750
- DevToolsV6PluginAPIHookKeys2["INSPECT_TIMELINE_EVENT"] = "inspectTimelineEvent";
2961
+ DevToolsV6PluginAPIHookKeys2["INSPECT_TIMELINE_EVENT"] =
2962
+ "inspectTimelineEvent";
2751
2963
  DevToolsV6PluginAPIHookKeys2["TIMELINE_CLEARED"] = "timelineCleared";
2752
2964
  DevToolsV6PluginAPIHookKeys2["SET_PLUGIN_SETTINGS"] = "setPluginSettings";
2753
2965
  return DevToolsV6PluginAPIHookKeys2;
@@ -2756,7 +2968,8 @@ var DevToolsContextHookKeys = ((DevToolsContextHookKeys2) => {
2756
2968
  DevToolsContextHookKeys2["ADD_INSPECTOR"] = "addInspector";
2757
2969
  DevToolsContextHookKeys2["SEND_INSPECTOR_TREE"] = "sendInspectorTree";
2758
2970
  DevToolsContextHookKeys2["SEND_INSPECTOR_STATE"] = "sendInspectorState";
2759
- DevToolsContextHookKeys2["CUSTOM_INSPECTOR_SELECT_NODE"] = "customInspectorSelectNode";
2971
+ DevToolsContextHookKeys2["CUSTOM_INSPECTOR_SELECT_NODE"] =
2972
+ "customInspectorSelectNode";
2760
2973
  DevToolsContextHookKeys2["TIMELINE_LAYER_ADDED"] = "timelineLayerAdded";
2761
2974
  DevToolsContextHookKeys2["TIMELINE_EVENT_ADDED"] = "timelineEventAdded";
2762
2975
  DevToolsContextHookKeys2["GET_COMPONENT_INSTANCES"] = "getComponentInstances";
@@ -2767,13 +2980,19 @@ var DevToolsContextHookKeys = ((DevToolsContextHookKeys2) => {
2767
2980
  return DevToolsContextHookKeys2;
2768
2981
  })(DevToolsContextHookKeys || {});
2769
2982
  var DevToolsMessagingHookKeys = ((DevToolsMessagingHookKeys2) => {
2770
- DevToolsMessagingHookKeys2["SEND_INSPECTOR_TREE_TO_CLIENT"] = "sendInspectorTreeToClient";
2771
- DevToolsMessagingHookKeys2["SEND_INSPECTOR_STATE_TO_CLIENT"] = "sendInspectorStateToClient";
2772
- DevToolsMessagingHookKeys2["SEND_TIMELINE_EVENT_TO_CLIENT"] = "sendTimelineEventToClient";
2773
- DevToolsMessagingHookKeys2["SEND_INSPECTOR_TO_CLIENT"] = "sendInspectorToClient";
2774
- DevToolsMessagingHookKeys2["SEND_ACTIVE_APP_UNMOUNTED_TO_CLIENT"] = "sendActiveAppUpdatedToClient";
2983
+ DevToolsMessagingHookKeys2["SEND_INSPECTOR_TREE_TO_CLIENT"] =
2984
+ "sendInspectorTreeToClient";
2985
+ DevToolsMessagingHookKeys2["SEND_INSPECTOR_STATE_TO_CLIENT"] =
2986
+ "sendInspectorStateToClient";
2987
+ DevToolsMessagingHookKeys2["SEND_TIMELINE_EVENT_TO_CLIENT"] =
2988
+ "sendTimelineEventToClient";
2989
+ DevToolsMessagingHookKeys2["SEND_INSPECTOR_TO_CLIENT"] =
2990
+ "sendInspectorToClient";
2991
+ DevToolsMessagingHookKeys2["SEND_ACTIVE_APP_UNMOUNTED_TO_CLIENT"] =
2992
+ "sendActiveAppUpdatedToClient";
2775
2993
  DevToolsMessagingHookKeys2["DEVTOOLS_STATE_UPDATED"] = "devtoolsStateUpdated";
2776
- DevToolsMessagingHookKeys2["DEVTOOLS_CONNECTED_UPDATED"] = "devtoolsConnectedUpdated";
2994
+ DevToolsMessagingHookKeys2["DEVTOOLS_CONNECTED_UPDATED"] =
2995
+ "devtoolsConnectedUpdated";
2777
2996
  DevToolsMessagingHookKeys2["ROUTER_INFO_UPDATED"] = "routerInfoUpdated";
2778
2997
  return DevToolsMessagingHookKeys2;
2779
2998
  })(DevToolsMessagingHookKeys || {});
@@ -2782,106 +3001,146 @@ function createDevToolsCtxHooks() {
2782
3001
  hooks2.hook("addInspector", ({ inspector, plugin }) => {
2783
3002
  addInspector(inspector, plugin.descriptor);
2784
3003
  });
2785
- const debounceSendInspectorTree = debounce(async ({ inspectorId, plugin }) => {
2786
- var _a25;
2787
- if (!inspectorId || !((_a25 = plugin == null ? void 0 : plugin.descriptor) == null ? void 0 : _a25.app) || devtoolsState.highPerfModeEnabled)
2788
- return;
2789
- const inspector = getInspector(inspectorId, plugin.descriptor.app);
2790
- const _payload = {
2791
- app: plugin.descriptor.app,
2792
- inspectorId,
2793
- filter: (inspector == null ? void 0 : inspector.treeFilter) || "",
2794
- rootNodes: []
2795
- };
2796
- await new Promise((resolve) => {
2797
- hooks2.callHookWith(
2798
- async (callbacks) => {
2799
- await Promise.all(callbacks.map((cb) => cb(_payload)));
2800
- resolve();
2801
- },
2802
- "getInspectorTree"
2803
- /* GET_INSPECTOR_TREE */
2804
- );
2805
- });
2806
- hooks2.callHookWith(
2807
- async (callbacks) => {
2808
- await Promise.all(callbacks.map((cb) => cb({
2809
- inspectorId,
2810
- rootNodes: _payload.rootNodes
2811
- })));
2812
- },
2813
- "sendInspectorTreeToClient"
2814
- /* SEND_INSPECTOR_TREE_TO_CLIENT */
2815
- );
2816
- }, 120);
2817
- hooks2.hook("sendInspectorTree", debounceSendInspectorTree);
2818
- const debounceSendInspectorState = debounce(async ({ inspectorId, plugin }) => {
2819
- var _a25;
2820
- if (!inspectorId || !((_a25 = plugin == null ? void 0 : plugin.descriptor) == null ? void 0 : _a25.app) || devtoolsState.highPerfModeEnabled)
2821
- return;
2822
- const inspector = getInspector(inspectorId, plugin.descriptor.app);
2823
- const _payload = {
2824
- app: plugin.descriptor.app,
2825
- inspectorId,
2826
- nodeId: (inspector == null ? void 0 : inspector.selectedNodeId) || "",
2827
- state: null
2828
- };
2829
- const ctx = {
2830
- currentTab: `custom-inspector:${inspectorId}`
2831
- };
2832
- if (_payload.nodeId) {
3004
+ const debounceSendInspectorTree = debounce(
3005
+ async ({ inspectorId, plugin }) => {
3006
+ var _a25;
3007
+ if (
3008
+ !inspectorId ||
3009
+ !((_a25 = plugin == null ? void 0 : plugin.descriptor) == null
3010
+ ? void 0
3011
+ : _a25.app) ||
3012
+ devtoolsState.highPerfModeEnabled
3013
+ )
3014
+ return;
3015
+ const inspector = getInspector(inspectorId, plugin.descriptor.app);
3016
+ const _payload = {
3017
+ app: plugin.descriptor.app,
3018
+ inspectorId,
3019
+ filter: (inspector == null ? void 0 : inspector.treeFilter) || "",
3020
+ rootNodes: [],
3021
+ };
2833
3022
  await new Promise((resolve) => {
2834
3023
  hooks2.callHookWith(
2835
3024
  async (callbacks) => {
2836
- await Promise.all(callbacks.map((cb) => cb(_payload, ctx)));
3025
+ await Promise.all(callbacks.map((cb) => cb(_payload)));
2837
3026
  resolve();
2838
3027
  },
2839
- "getInspectorState"
2840
- /* GET_INSPECTOR_STATE */
3028
+ "getInspectorTree",
3029
+ /* GET_INSPECTOR_TREE */
2841
3030
  );
2842
3031
  });
2843
- }
2844
- hooks2.callHookWith(
2845
- async (callbacks) => {
2846
- await Promise.all(callbacks.map((cb) => cb({
2847
- inspectorId,
2848
- nodeId: _payload.nodeId,
2849
- state: _payload.state
2850
- })));
2851
- },
2852
- "sendInspectorStateToClient"
2853
- /* SEND_INSPECTOR_STATE_TO_CLIENT */
2854
- );
2855
- }, 120);
3032
+ hooks2.callHookWith(
3033
+ async (callbacks) => {
3034
+ await Promise.all(
3035
+ callbacks.map((cb) =>
3036
+ cb({
3037
+ inspectorId,
3038
+ rootNodes: _payload.rootNodes,
3039
+ }),
3040
+ ),
3041
+ );
3042
+ },
3043
+ "sendInspectorTreeToClient",
3044
+ /* SEND_INSPECTOR_TREE_TO_CLIENT */
3045
+ );
3046
+ },
3047
+ 120,
3048
+ );
3049
+ hooks2.hook("sendInspectorTree", debounceSendInspectorTree);
3050
+ const debounceSendInspectorState = debounce(
3051
+ async ({ inspectorId, plugin }) => {
3052
+ var _a25;
3053
+ if (
3054
+ !inspectorId ||
3055
+ !((_a25 = plugin == null ? void 0 : plugin.descriptor) == null
3056
+ ? void 0
3057
+ : _a25.app) ||
3058
+ devtoolsState.highPerfModeEnabled
3059
+ )
3060
+ return;
3061
+ const inspector = getInspector(inspectorId, plugin.descriptor.app);
3062
+ const _payload = {
3063
+ app: plugin.descriptor.app,
3064
+ inspectorId,
3065
+ nodeId: (inspector == null ? void 0 : inspector.selectedNodeId) || "",
3066
+ state: null,
3067
+ };
3068
+ const ctx = {
3069
+ currentTab: `custom-inspector:${inspectorId}`,
3070
+ };
3071
+ if (_payload.nodeId) {
3072
+ await new Promise((resolve) => {
3073
+ hooks2.callHookWith(
3074
+ async (callbacks) => {
3075
+ await Promise.all(callbacks.map((cb) => cb(_payload, ctx)));
3076
+ resolve();
3077
+ },
3078
+ "getInspectorState",
3079
+ /* GET_INSPECTOR_STATE */
3080
+ );
3081
+ });
3082
+ }
3083
+ hooks2.callHookWith(
3084
+ async (callbacks) => {
3085
+ await Promise.all(
3086
+ callbacks.map((cb) =>
3087
+ cb({
3088
+ inspectorId,
3089
+ nodeId: _payload.nodeId,
3090
+ state: _payload.state,
3091
+ }),
3092
+ ),
3093
+ );
3094
+ },
3095
+ "sendInspectorStateToClient",
3096
+ /* SEND_INSPECTOR_STATE_TO_CLIENT */
3097
+ );
3098
+ },
3099
+ 120,
3100
+ );
2856
3101
  hooks2.hook("sendInspectorState", debounceSendInspectorState);
2857
- hooks2.hook("customInspectorSelectNode", ({ inspectorId, nodeId, plugin }) => {
2858
- const inspector = getInspector(inspectorId, plugin.descriptor.app);
2859
- if (!inspector)
2860
- return;
2861
- inspector.selectedNodeId = nodeId;
2862
- });
3102
+ hooks2.hook(
3103
+ "customInspectorSelectNode",
3104
+ ({ inspectorId, nodeId, plugin }) => {
3105
+ const inspector = getInspector(inspectorId, plugin.descriptor.app);
3106
+ if (!inspector) return;
3107
+ inspector.selectedNodeId = nodeId;
3108
+ },
3109
+ );
2863
3110
  hooks2.hook("timelineLayerAdded", ({ options, plugin }) => {
2864
3111
  addTimelineLayer(options, plugin.descriptor);
2865
3112
  });
2866
3113
  hooks2.hook("timelineEventAdded", ({ options, plugin }) => {
2867
3114
  var _a25;
2868
- const internalLayerIds = ["performance", "component-event", "keyboard", "mouse"];
2869
- if (devtoolsState.highPerfModeEnabled || !((_a25 = devtoolsState.timelineLayersState) == null ? void 0 : _a25[plugin.descriptor.id]) && !internalLayerIds.includes(options.layerId))
3115
+ const internalLayerIds = [
3116
+ "performance",
3117
+ "component-event",
3118
+ "keyboard",
3119
+ "mouse",
3120
+ ];
3121
+ if (
3122
+ devtoolsState.highPerfModeEnabled ||
3123
+ (!((_a25 = devtoolsState.timelineLayersState) == null
3124
+ ? void 0
3125
+ : _a25[plugin.descriptor.id]) &&
3126
+ !internalLayerIds.includes(options.layerId))
3127
+ )
2870
3128
  return;
2871
3129
  hooks2.callHookWith(
2872
3130
  async (callbacks) => {
2873
3131
  await Promise.all(callbacks.map((cb) => cb(options)));
2874
3132
  },
2875
- "sendTimelineEventToClient"
3133
+ "sendTimelineEventToClient",
2876
3134
  /* SEND_TIMELINE_EVENT_TO_CLIENT */
2877
3135
  );
2878
3136
  });
2879
3137
  hooks2.hook("getComponentInstances", async ({ app }) => {
2880
3138
  const appRecord = app.__VUE_DEVTOOLS_NEXT_APP_RECORD__;
2881
- if (!appRecord)
2882
- return null;
3139
+ if (!appRecord) return null;
2883
3140
  const appId = appRecord.id.toString();
2884
- const instances = [...appRecord.instanceMap].filter(([key]) => key.split(":")[0] === appId).map(([, instance]) => instance);
3141
+ const instances = [...appRecord.instanceMap]
3142
+ .filter(([key]) => key.split(":")[0] === appId)
3143
+ .map(([, instance]) => instance);
2885
3144
  return instances;
2886
3145
  });
2887
3146
  hooks2.hook("getComponentBounds", async ({ instance }) => {
@@ -2905,19 +3164,29 @@ function createDevToolsCtxHooks() {
2905
3164
  }
2906
3165
  var _a4;
2907
3166
  var _b4;
2908
- (_b4 = (_a4 = target).__VUE_DEVTOOLS_KIT_APP_RECORDS__) != null ? _b4 : _a4.__VUE_DEVTOOLS_KIT_APP_RECORDS__ = [];
3167
+ (_b4 = (_a4 = target).__VUE_DEVTOOLS_KIT_APP_RECORDS__) != null
3168
+ ? _b4
3169
+ : (_a4.__VUE_DEVTOOLS_KIT_APP_RECORDS__ = []);
2909
3170
  var _a5;
2910
3171
  var _b5;
2911
- (_b5 = (_a5 = target).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__) != null ? _b5 : _a5.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ = {};
3172
+ (_b5 = (_a5 = target).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__) != null
3173
+ ? _b5
3174
+ : (_a5.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ = {});
2912
3175
  var _a6;
2913
3176
  var _b6;
2914
- (_b6 = (_a6 = target).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__) != null ? _b6 : _a6.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ = "";
3177
+ (_b6 = (_a6 = target).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__) != null
3178
+ ? _b6
3179
+ : (_a6.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ = "");
2915
3180
  var _a7;
2916
3181
  var _b7;
2917
- (_b7 = (_a7 = target).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__) != null ? _b7 : _a7.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ = [];
3182
+ (_b7 = (_a7 = target).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__) != null
3183
+ ? _b7
3184
+ : (_a7.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ = []);
2918
3185
  var _a8;
2919
3186
  var _b8;
2920
- (_b8 = (_a8 = target).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__) != null ? _b8 : _a8.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ = [];
3187
+ (_b8 = (_a8 = target).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__) != null
3188
+ ? _b8
3189
+ : (_a8.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ = []);
2921
3190
  var STATE_KEY = "__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";
2922
3191
  function initStateFactory() {
2923
3192
  return {
@@ -2931,33 +3200,36 @@ function initStateFactory() {
2931
3200
  highPerfModeEnabled: true,
2932
3201
  devtoolsClientDetected: {},
2933
3202
  perfUniqueGroupId: 0,
2934
- timelineLayersState: getTimelineLayersStateFromStorage()
3203
+ timelineLayersState: getTimelineLayersStateFromStorage(),
2935
3204
  };
2936
3205
  }
2937
3206
  var _a9;
2938
3207
  var _b9;
2939
- (_b9 = (_a9 = target)[STATE_KEY]) != null ? _b9 : _a9[STATE_KEY] = initStateFactory();
3208
+ (_b9 = (_a9 = target)[STATE_KEY]) != null
3209
+ ? _b9
3210
+ : (_a9[STATE_KEY] = initStateFactory());
2940
3211
  var callStateUpdatedHook = debounce((state) => {
2941
3212
  devtoolsContext.hooks.callHook("devtoolsStateUpdated", { state });
2942
3213
  });
2943
3214
  var callConnectedUpdatedHook = debounce((state, oldState) => {
2944
- devtoolsContext.hooks.callHook("devtoolsConnectedUpdated", { state, oldState });
3215
+ devtoolsContext.hooks.callHook("devtoolsConnectedUpdated", {
3216
+ state,
3217
+ oldState,
3218
+ });
2945
3219
  });
2946
3220
  var devtoolsAppRecords = new Proxy(target.__VUE_DEVTOOLS_KIT_APP_RECORDS__, {
2947
3221
  get(_target, prop, receiver) {
2948
- if (prop === "value")
2949
- return target.__VUE_DEVTOOLS_KIT_APP_RECORDS__;
3222
+ if (prop === "value") return target.__VUE_DEVTOOLS_KIT_APP_RECORDS__;
2950
3223
  return target.__VUE_DEVTOOLS_KIT_APP_RECORDS__[prop];
2951
- }
3224
+ },
2952
3225
  });
2953
3226
  var activeAppRecord = new Proxy(target.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__, {
2954
3227
  get(_target, prop, receiver) {
2955
- if (prop === "value")
2956
- return target.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__;
3228
+ if (prop === "value") return target.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__;
2957
3229
  else if (prop === "id")
2958
3230
  return target.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__;
2959
3231
  return target.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[prop];
2960
- }
3232
+ },
2961
3233
  });
2962
3234
  function updateAllStates() {
2963
3235
  callStateUpdatedHook({
@@ -2965,7 +3237,7 @@ function updateAllStates() {
2965
3237
  appRecords: devtoolsAppRecords.value,
2966
3238
  activeAppRecordId: activeAppRecord.id,
2967
3239
  tabs: target.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,
2968
- commands: target.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__
3240
+ commands: target.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__,
2969
3241
  });
2970
3242
  }
2971
3243
  function setActiveAppRecord(app) {
@@ -2998,7 +3270,7 @@ var devtoolsState = new Proxy(target[STATE_KEY], {
2998
3270
  target22[property] = value;
2999
3271
  target[STATE_KEY][property] = value;
3000
3272
  return true;
3001
- }
3273
+ },
3002
3274
  });
3003
3275
  function onDevToolsConnected(fn) {
3004
3276
  return new Promise((resolve) => {
@@ -3015,62 +3287,76 @@ function onDevToolsConnected(fn) {
3015
3287
  });
3016
3288
  }
3017
3289
  var resolveIcon = (icon) => {
3018
- if (!icon)
3019
- return;
3290
+ if (!icon) return;
3020
3291
  if (icon.startsWith("baseline-")) {
3021
3292
  return `custom-ic-${icon}`;
3022
3293
  }
3023
- if (icon.startsWith("i-") || isUrlString(icon))
3024
- return icon;
3294
+ if (icon.startsWith("i-") || isUrlString(icon)) return icon;
3025
3295
  return `custom-ic-baseline-${icon}`;
3026
3296
  };
3027
3297
  function addCustomTab(tab) {
3028
3298
  const tabs = target.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__;
3029
- if (tabs.some((t) => t.name === tab.name))
3030
- return;
3299
+ if (tabs.some((t) => t.name === tab.name)) return;
3031
3300
  tabs.push({
3032
3301
  ...tab,
3033
- icon: resolveIcon(tab.icon)
3302
+ icon: resolveIcon(tab.icon),
3034
3303
  });
3035
3304
  updateAllStates();
3036
3305
  }
3037
3306
  function addCustomCommand(action) {
3038
3307
  const commands = target.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__;
3039
- if (commands.some((t) => t.id === action.id))
3040
- return;
3308
+ if (commands.some((t) => t.id === action.id)) return;
3041
3309
  commands.push({
3042
3310
  ...action,
3043
3311
  icon: resolveIcon(action.icon),
3044
- children: action.children ? action.children.map((child) => ({
3045
- ...child,
3046
- icon: resolveIcon(child.icon)
3047
- })) : void 0
3312
+ children: action.children
3313
+ ? action.children.map((child) => ({
3314
+ ...child,
3315
+ icon: resolveIcon(child.icon),
3316
+ }))
3317
+ : void 0,
3048
3318
  });
3049
3319
  updateAllStates();
3050
3320
  }
3051
3321
  function removeCustomCommand(actionId) {
3052
3322
  const commands = target.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__;
3053
3323
  const index = commands.findIndex((t) => t.id === actionId);
3054
- if (index === -1)
3055
- return;
3324
+ if (index === -1) return;
3056
3325
  commands.splice(index, 1);
3057
3326
  updateAllStates();
3058
3327
  }
3059
3328
  function openInEditor(options = {}) {
3060
3329
  var _a25, _b25, _c;
3061
- const { file, host, baseUrl = window.location.origin, line = 0, column = 0 } = options;
3330
+ const {
3331
+ file,
3332
+ host,
3333
+ baseUrl = window.location.origin,
3334
+ line = 0,
3335
+ column = 0,
3336
+ } = options;
3062
3337
  if (file) {
3063
3338
  if (host === "chrome-extension") {
3064
3339
  const fileName = file.replace(/\\/g, "\\\\");
3065
- const _baseUrl = (_b25 = (_a25 = window.VUE_DEVTOOLS_CONFIG) == null ? void 0 : _a25.openInEditorHost) != null ? _b25 : "/";
3066
- fetch(`${_baseUrl}__open-in-editor?file=${encodeURI(file)}`).then((response) => {
3067
- if (!response.ok) {
3068
- const msg = `Opening component ${fileName} failed`;
3069
- console.log(`%c${msg}`, "color:red");
3070
- }
3071
- });
3340
+ const _baseUrl =
3341
+ (_b25 =
3342
+ (_a25 = window.VUE_DEVTOOLS_CONFIG) == null
3343
+ ? void 0
3344
+ : _a25.openInEditorHost) != null
3345
+ ? _b25
3346
+ : "/";
3347
+ fetch(`${_baseUrl}__open-in-editor?file=${encodeURI(file)}`).then(
3348
+ (response) => {
3349
+ if (!response.ok) {
3350
+ const msg = `Opening component ${fileName} failed`;
3351
+ console.log(`%c${msg}`, "color:red");
3352
+ }
3353
+ },
3354
+ );
3072
3355
  } else if (devtoolsState.vitePluginDetected) {
3073
- const _baseUrl = (_c = target.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__) != null ? _c : baseUrl;
3356
+ const _baseUrl =
3357
+ (_c = target.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__) != null
3358
+ ? _c
3359
+ : baseUrl;
3074
3360
  target.__VUE_INSPECTOR__.openInEditor(_baseUrl, file, line, column);
3075
3361
  }
3076
3362
  }
@@ -3082,12 +3368,17 @@ init_esm_shims2();
3082
3368
  init_esm_shims2();
3083
3369
  var _a10;
3084
3370
  var _b10;
3085
- (_b10 = (_a10 = target).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__) != null ? _b10 : _a10.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__ = [];
3086
- var devtoolsPluginBuffer = new Proxy(target.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__, {
3087
- get(target22, prop, receiver) {
3088
- return Reflect.get(target22, prop, receiver);
3089
- }
3090
- });
3371
+ (_b10 = (_a10 = target).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__) != null
3372
+ ? _b10
3373
+ : (_a10.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__ = []);
3374
+ var devtoolsPluginBuffer = new Proxy(
3375
+ target.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,
3376
+ {
3377
+ get(target22, prop, receiver) {
3378
+ return Reflect.get(target22, prop, receiver);
3379
+ },
3380
+ },
3381
+ );
3091
3382
  function _getSettings(settings) {
3092
3383
  const _settings = {};
3093
3384
  Object.keys(settings).forEach((key) => {
@@ -3100,10 +3391,19 @@ function getPluginLocalKey(pluginId) {
3100
3391
  }
3101
3392
  function getPluginSettingsOptions(pluginId) {
3102
3393
  var _a25, _b25, _c;
3103
- const item = (_b25 = (_a25 = devtoolsPluginBuffer.find((item2) => {
3104
- var _a26;
3105
- return item2[0].id === pluginId && !!((_a26 = item2[0]) == null ? void 0 : _a26.settings);
3106
- })) == null ? void 0 : _a25[0]) != null ? _b25 : null;
3394
+ const item =
3395
+ (_b25 =
3396
+ (_a25 = devtoolsPluginBuffer.find((item2) => {
3397
+ var _a26;
3398
+ return (
3399
+ item2[0].id === pluginId &&
3400
+ !!((_a26 = item2[0]) == null ? void 0 : _a26.settings)
3401
+ );
3402
+ })) == null
3403
+ ? void 0
3404
+ : _a25[0]) != null
3405
+ ? _b25
3406
+ : null;
3107
3407
  return (_c = item == null ? void 0 : item.settings) != null ? _c : null;
3108
3408
  }
3109
3409
  function getPluginSettings(pluginId, fallbackValue) {
@@ -3116,8 +3416,18 @@ function getPluginSettings(pluginId, fallbackValue) {
3116
3416
  }
3117
3417
  }
3118
3418
  if (pluginId) {
3119
- const item = (_b25 = (_a25 = devtoolsPluginBuffer.find((item2) => item2[0].id === pluginId)) == null ? void 0 : _a25[0]) != null ? _b25 : null;
3120
- return _getSettings((_c = item == null ? void 0 : item.settings) != null ? _c : {});
3419
+ const item =
3420
+ (_b25 =
3421
+ (_a25 = devtoolsPluginBuffer.find(
3422
+ (item2) => item2[0].id === pluginId,
3423
+ )) == null
3424
+ ? void 0
3425
+ : _a25[0]) != null
3426
+ ? _b25
3427
+ : null;
3428
+ return _getSettings(
3429
+ (_c = item == null ? void 0 : item.settings) != null ? _c : {},
3430
+ );
3121
3431
  }
3122
3432
  return _getSettings(fallbackValue);
3123
3433
  }
@@ -3134,20 +3444,22 @@ function setPluginSettings(pluginId, key, value) {
3134
3444
  const parsedLocalSettings = JSON.parse(localSettings || "{}");
3135
3445
  const updated = {
3136
3446
  ...parsedLocalSettings,
3137
- [key]: value
3447
+ [key]: value,
3138
3448
  };
3139
3449
  localStorage.setItem(localKey, JSON.stringify(updated));
3140
3450
  devtoolsContext.hooks.callHookWith(
3141
3451
  (callbacks) => {
3142
- callbacks.forEach((cb) => cb({
3143
- pluginId,
3144
- key,
3145
- oldValue: parsedLocalSettings[key],
3146
- newValue: value,
3147
- settings: updated
3148
- }));
3452
+ callbacks.forEach((cb) =>
3453
+ cb({
3454
+ pluginId,
3455
+ key,
3456
+ oldValue: parsedLocalSettings[key],
3457
+ newValue: value,
3458
+ settings: updated,
3459
+ }),
3460
+ );
3149
3461
  },
3150
- "setPluginSettings"
3462
+ "setPluginSettings",
3151
3463
  /* SET_PLUGIN_SETTINGS */
3152
3464
  );
3153
3465
  }
@@ -3164,7 +3476,10 @@ init_esm_shims2();
3164
3476
  init_esm_shims2();
3165
3477
  var _a11;
3166
3478
  var _b11;
3167
- var devtoolsHooks = (_b11 = (_a11 = target).__VUE_DEVTOOLS_HOOK) != null ? _b11 : _a11.__VUE_DEVTOOLS_HOOK = createHooks();
3479
+ var devtoolsHooks =
3480
+ (_b11 = (_a11 = target).__VUE_DEVTOOLS_HOOK) != null
3481
+ ? _b11
3482
+ : (_a11.__VUE_DEVTOOLS_HOOK = createHooks());
3168
3483
  var on = {
3169
3484
  vueAppInit(fn) {
3170
3485
  devtoolsHooks.hook("app:init", fn);
@@ -3195,13 +3510,17 @@ var on = {
3195
3510
  },
3196
3511
  perfEnd(fn) {
3197
3512
  return devtoolsHooks.hook("perf:end", fn);
3198
- }
3513
+ },
3199
3514
  };
3200
3515
  var hook = {
3201
3516
  on,
3202
3517
  setupDevToolsPlugin(pluginDescriptor, setupFn) {
3203
- return devtoolsHooks.callHook("devtools-plugin:setup", pluginDescriptor, setupFn);
3204
- }
3518
+ return devtoolsHooks.callHook(
3519
+ "devtools-plugin:setup",
3520
+ pluginDescriptor,
3521
+ setupFn,
3522
+ );
3523
+ },
3205
3524
  };
3206
3525
  var DevToolsV6PluginAPI = class {
3207
3526
  constructor({ plugin, ctx }) {
@@ -3240,7 +3559,7 @@ var DevToolsV6PluginAPI = class {
3240
3559
  // settings
3241
3560
  setPluginSettings: (handler) => {
3242
3561
  this.hooks.hook("setPluginSettings", handler);
3243
- }
3562
+ },
3244
3563
  };
3245
3564
  }
3246
3565
  // component inspector
@@ -3249,28 +3568,36 @@ var DevToolsV6PluginAPI = class {
3249
3568
  if (devtoolsState.highPerfModeEnabled) {
3250
3569
  return;
3251
3570
  }
3252
- const inspector = getActiveInspectors().find((i) => i.packageName === this.plugin.descriptor.packageName);
3571
+ const inspector = getActiveInspectors().find(
3572
+ (i) => i.packageName === this.plugin.descriptor.packageName,
3573
+ );
3253
3574
  if (inspector == null ? void 0 : inspector.id) {
3254
3575
  if (instance) {
3255
3576
  const args = [
3256
3577
  instance.appContext.app,
3257
3578
  instance.uid,
3258
3579
  (_a25 = instance.parent) == null ? void 0 : _a25.uid,
3259
- instance
3580
+ instance,
3260
3581
  ];
3261
3582
  devtoolsHooks.callHook("component:updated", ...args);
3262
3583
  } else {
3263
3584
  devtoolsHooks.callHook(
3264
- "component:updated"
3585
+ "component:updated",
3265
3586
  /* COMPONENT_UPDATED */
3266
3587
  );
3267
3588
  }
3268
- this.hooks.callHook("sendInspectorState", { inspectorId: inspector.id, plugin: this.plugin });
3589
+ this.hooks.callHook("sendInspectorState", {
3590
+ inspectorId: inspector.id,
3591
+ plugin: this.plugin,
3592
+ });
3269
3593
  }
3270
3594
  }
3271
3595
  // custom inspector
3272
3596
  addInspector(options) {
3273
- this.hooks.callHook("addInspector", { inspector: options, plugin: this.plugin });
3597
+ this.hooks.callHook("addInspector", {
3598
+ inspector: options,
3599
+ plugin: this.plugin,
3600
+ });
3274
3601
  if (this.plugin.descriptor.settings) {
3275
3602
  initPluginSettings(options.id, this.plugin.descriptor.settings);
3276
3603
  }
@@ -3279,16 +3606,26 @@ var DevToolsV6PluginAPI = class {
3279
3606
  if (devtoolsState.highPerfModeEnabled) {
3280
3607
  return;
3281
3608
  }
3282
- this.hooks.callHook("sendInspectorTree", { inspectorId, plugin: this.plugin });
3609
+ this.hooks.callHook("sendInspectorTree", {
3610
+ inspectorId,
3611
+ plugin: this.plugin,
3612
+ });
3283
3613
  }
3284
3614
  sendInspectorState(inspectorId) {
3285
3615
  if (devtoolsState.highPerfModeEnabled) {
3286
3616
  return;
3287
3617
  }
3288
- this.hooks.callHook("sendInspectorState", { inspectorId, plugin: this.plugin });
3618
+ this.hooks.callHook("sendInspectorState", {
3619
+ inspectorId,
3620
+ plugin: this.plugin,
3621
+ });
3289
3622
  }
3290
3623
  selectInspectorNode(inspectorId, nodeId) {
3291
- this.hooks.callHook("customInspectorSelectNode", { inspectorId, nodeId, plugin: this.plugin });
3624
+ this.hooks.callHook("customInspectorSelectNode", {
3625
+ inspectorId,
3626
+ nodeId,
3627
+ plugin: this.plugin,
3628
+ });
3292
3629
  }
3293
3630
  visitComponentTree(payload) {
3294
3631
  return this.hooks.callHook("visitComponentTree", payload);
@@ -3311,7 +3648,10 @@ var DevToolsV6PluginAPI = class {
3311
3648
  }
3312
3649
  // settings
3313
3650
  getSettings(pluginId) {
3314
- return getPluginSettings(pluginId != null ? pluginId : this.plugin.descriptor.id, this.plugin.descriptor.settings);
3651
+ return getPluginSettings(
3652
+ pluginId != null ? pluginId : this.plugin.descriptor.id,
3653
+ this.plugin.descriptor.settings,
3654
+ );
3315
3655
  }
3316
3656
  // utilities
3317
3657
  getComponentInstances(app) {
@@ -3329,7 +3669,7 @@ var DevToolsV6PluginAPI = class {
3329
3669
  }
3330
3670
  unhighlightElement() {
3331
3671
  return this.hooks.callHook(
3332
- "componentUnhighlight"
3672
+ "componentUnhighlight",
3333
3673
  /* COMPONENT_UNHIGHLIGHT */
3334
3674
  );
3335
3675
  }
@@ -3349,7 +3689,7 @@ var tokenMap = {
3349
3689
  [UNDEFINED]: "undefined",
3350
3690
  [NAN]: "NaN",
3351
3691
  [INFINITY]: "Infinity",
3352
- [NEGATIVE_INFINITY]: "-Infinity"
3692
+ [NEGATIVE_INFINITY]: "-Infinity",
3353
3693
  };
3354
3694
  var reversedTokenMap = Object.entries(tokenMap).reduce((acc, [key, value]) => {
3355
3695
  acc[value] = key;
@@ -3362,20 +3702,22 @@ init_esm_shims2();
3362
3702
  init_esm_shims2();
3363
3703
  var _a12;
3364
3704
  var _b12;
3365
- (_b12 = (_a12 = target).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__) != null ? _b12 : _a12.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__ = /* @__PURE__ */ new Set();
3705
+ (_b12 = (_a12 = target).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__) != null
3706
+ ? _b12
3707
+ : (_a12.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__ =
3708
+ /* @__PURE__ */ new Set());
3366
3709
  function setupDevToolsPlugin(pluginDescriptor, setupFn) {
3367
3710
  return hook.setupDevToolsPlugin(pluginDescriptor, setupFn);
3368
3711
  }
3369
3712
  function callDevToolsPluginSetupFn(plugin, app) {
3370
3713
  const [pluginDescriptor, setupFn] = plugin;
3371
- if (pluginDescriptor.app !== app)
3372
- return;
3714
+ if (pluginDescriptor.app !== app) return;
3373
3715
  const api = new DevToolsPluginAPI({
3374
3716
  plugin: {
3375
3717
  setupFn,
3376
- descriptor: pluginDescriptor
3718
+ descriptor: pluginDescriptor,
3377
3719
  },
3378
- ctx: devtoolsContext
3720
+ ctx: devtoolsContext,
3379
3721
  });
3380
3722
  if (pluginDescriptor.packageName === "vuex") {
3381
3723
  api.on.editInspectorState((payload) => {
@@ -3388,7 +3730,10 @@ function registerDevToolsPlugin(app, options) {
3388
3730
  if (target.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(app)) {
3389
3731
  return;
3390
3732
  }
3391
- if (devtoolsState.highPerfModeEnabled && !(options == null ? void 0 : options.inspectingComponent)) {
3733
+ if (
3734
+ devtoolsState.highPerfModeEnabled &&
3735
+ !(options == null ? void 0 : options.inspectingComponent)
3736
+ ) {
3392
3737
  return;
3393
3738
  }
3394
3739
  target.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(app);
@@ -3402,28 +3747,32 @@ var ROUTER_KEY = "__VUE_DEVTOOLS_ROUTER__";
3402
3747
  var ROUTER_INFO_KEY = "__VUE_DEVTOOLS_ROUTER_INFO__";
3403
3748
  var _a13;
3404
3749
  var _b13;
3405
- (_b13 = (_a13 = target)[ROUTER_INFO_KEY]) != null ? _b13 : _a13[ROUTER_INFO_KEY] = {
3406
- currentRoute: null,
3407
- routes: []
3408
- };
3750
+ (_b13 = (_a13 = target)[ROUTER_INFO_KEY]) != null
3751
+ ? _b13
3752
+ : (_a13[ROUTER_INFO_KEY] = {
3753
+ currentRoute: null,
3754
+ routes: [],
3755
+ });
3409
3756
  var _a14;
3410
3757
  var _b14;
3411
- (_b14 = (_a14 = target)[ROUTER_KEY]) != null ? _b14 : _a14[ROUTER_KEY] = {};
3758
+ (_b14 = (_a14 = target)[ROUTER_KEY]) != null ? _b14 : (_a14[ROUTER_KEY] = {});
3412
3759
  var devtoolsRouterInfo = new Proxy(target[ROUTER_INFO_KEY], {
3413
3760
  get(target22, property) {
3414
3761
  return target[ROUTER_INFO_KEY][property];
3415
- }
3762
+ },
3416
3763
  });
3417
3764
  var devtoolsRouter = new Proxy(target[ROUTER_KEY], {
3418
3765
  get(target22, property) {
3419
3766
  if (property === "value") {
3420
3767
  return target[ROUTER_KEY];
3421
3768
  }
3422
- }
3769
+ },
3423
3770
  });
3424
3771
  function getRoutes(router) {
3425
3772
  const routesMap = /* @__PURE__ */ new Map();
3426
- return ((router == null ? void 0 : router.getRoutes()) || []).filter((i) => !routesMap.has(i.path) && routesMap.set(i.path, 1));
3773
+ return ((router == null ? void 0 : router.getRoutes()) || []).filter(
3774
+ (i) => !routesMap.has(i.path) && routesMap.set(i.path, 1),
3775
+ );
3427
3776
  }
3428
3777
  function filterRoutes(routes) {
3429
3778
  return routes.map((item) => {
@@ -3434,7 +3783,7 @@ function filterRoutes(routes) {
3434
3783
  path,
3435
3784
  name,
3436
3785
  children,
3437
- meta
3786
+ meta,
3438
3787
  };
3439
3788
  });
3440
3789
  }
@@ -3449,7 +3798,7 @@ function filterCurrentRoute(route) {
3449
3798
  name,
3450
3799
  params,
3451
3800
  query,
3452
- matched: filterRoutes(matched)
3801
+ matched: filterRoutes(matched),
3453
3802
  };
3454
3803
  }
3455
3804
  return route;
@@ -3457,29 +3806,39 @@ function filterCurrentRoute(route) {
3457
3806
  function normalizeRouterInfo(appRecord, activeAppRecord2) {
3458
3807
  function init() {
3459
3808
  var _a25;
3460
- const router = (_a25 = appRecord.app) == null ? void 0 : _a25.config.globalProperties.$router;
3461
- const currentRoute = filterCurrentRoute(router == null ? void 0 : router.currentRoute.value);
3809
+ const router =
3810
+ (_a25 = appRecord.app) == null
3811
+ ? void 0
3812
+ : _a25.config.globalProperties.$router;
3813
+ const currentRoute = filterCurrentRoute(
3814
+ router == null ? void 0 : router.currentRoute.value,
3815
+ );
3462
3816
  const routes = filterRoutes(getRoutes(router));
3463
3817
  const c = console.warn;
3464
- console.warn = () => {
3465
- };
3818
+ console.warn = () => {};
3466
3819
  target[ROUTER_INFO_KEY] = {
3467
3820
  currentRoute: currentRoute ? deepClone(currentRoute) : {},
3468
- routes: deepClone(routes)
3821
+ routes: deepClone(routes),
3469
3822
  };
3470
3823
  target[ROUTER_KEY] = router;
3471
3824
  console.warn = c;
3472
3825
  }
3473
3826
  init();
3474
- hook.on.componentUpdated(debounce(() => {
3475
- var _a25;
3476
- if (((_a25 = activeAppRecord2.value) == null ? void 0 : _a25.app) !== appRecord.app)
3477
- return;
3478
- init();
3479
- if (devtoolsState.highPerfModeEnabled)
3480
- return;
3481
- devtoolsContext.hooks.callHook("routerInfoUpdated", { state: target[ROUTER_INFO_KEY] });
3482
- }, 200));
3827
+ hook.on.componentUpdated(
3828
+ debounce(() => {
3829
+ var _a25;
3830
+ if (
3831
+ ((_a25 = activeAppRecord2.value) == null ? void 0 : _a25.app) !==
3832
+ appRecord.app
3833
+ )
3834
+ return;
3835
+ init();
3836
+ if (devtoolsState.highPerfModeEnabled) return;
3837
+ devtoolsContext.hooks.callHook("routerInfoUpdated", {
3838
+ state: target[ROUTER_INFO_KEY],
3839
+ });
3840
+ }, 200),
3841
+ );
3483
3842
  }
3484
3843
  function createDevToolsApi(hooks2) {
3485
3844
  return {
@@ -3488,7 +3847,7 @@ function createDevToolsApi(hooks2) {
3488
3847
  const _payload = {
3489
3848
  ...payload,
3490
3849
  app: activeAppRecord.value.app,
3491
- rootNodes: []
3850
+ rootNodes: [],
3492
3851
  };
3493
3852
  await new Promise((resolve) => {
3494
3853
  hooks2.callHookWith(
@@ -3496,7 +3855,7 @@ function createDevToolsApi(hooks2) {
3496
3855
  await Promise.all(callbacks.map((cb) => cb(_payload)));
3497
3856
  resolve();
3498
3857
  },
3499
- "getInspectorTree"
3858
+ "getInspectorTree",
3500
3859
  /* GET_INSPECTOR_TREE */
3501
3860
  );
3502
3861
  });
@@ -3507,10 +3866,10 @@ function createDevToolsApi(hooks2) {
3507
3866
  const _payload = {
3508
3867
  ...payload,
3509
3868
  app: activeAppRecord.value.app,
3510
- state: null
3869
+ state: null,
3511
3870
  };
3512
3871
  const ctx = {
3513
- currentTab: `custom-inspector:${payload.inspectorId}`
3872
+ currentTab: `custom-inspector:${payload.inspectorId}`,
3514
3873
  };
3515
3874
  await new Promise((resolve) => {
3516
3875
  hooks2.callHookWith(
@@ -3518,7 +3877,7 @@ function createDevToolsApi(hooks2) {
3518
3877
  await Promise.all(callbacks.map((cb) => cb(_payload, ctx)));
3519
3878
  resolve();
3520
3879
  },
3521
- "getInspectorState"
3880
+ "getInspectorState",
3522
3881
  /* GET_INSPECTOR_STATE */
3523
3882
  );
3524
3883
  });
@@ -3531,24 +3890,32 @@ function createDevToolsApi(hooks2) {
3531
3890
  ...payload,
3532
3891
  app: activeAppRecord.value.app,
3533
3892
  set: (obj, path = payload.path, value = payload.state.value, cb) => {
3534
- stateEditor2.set(obj, path, value, cb || stateEditor2.createDefaultSetCallback(payload.state));
3535
- }
3893
+ stateEditor2.set(
3894
+ obj,
3895
+ path,
3896
+ value,
3897
+ cb || stateEditor2.createDefaultSetCallback(payload.state),
3898
+ );
3899
+ },
3536
3900
  };
3537
3901
  hooks2.callHookWith(
3538
3902
  (callbacks) => {
3539
3903
  callbacks.forEach((cb) => cb(_payload));
3540
3904
  },
3541
- "editInspectorState"
3905
+ "editInspectorState",
3542
3906
  /* EDIT_INSPECTOR_STATE */
3543
3907
  );
3544
3908
  },
3545
3909
  // send inspector state
3546
3910
  sendInspectorState(inspectorId) {
3547
3911
  const inspector = getInspector(inspectorId);
3548
- hooks2.callHook("sendInspectorState", { inspectorId, plugin: {
3549
- descriptor: inspector.descriptor,
3550
- setupFn: () => ({})
3551
- } });
3912
+ hooks2.callHook("sendInspectorState", {
3913
+ inspectorId,
3914
+ plugin: {
3915
+ descriptor: inspector.descriptor,
3916
+ setupFn: () => ({}),
3917
+ },
3918
+ });
3552
3919
  },
3553
3920
  // inspect component inspector
3554
3921
  inspectComponentInspector() {
@@ -3562,7 +3929,11 @@ function createDevToolsApi(hooks2) {
3562
3929
  getComponentRenderCode(id) {
3563
3930
  const instance = getComponentInstance(activeAppRecord.value, id);
3564
3931
  if (instance)
3565
- return !(typeof (instance == null ? void 0 : instance.type) === "function") ? instance.render.toString() : instance.type.toString();
3932
+ return !(
3933
+ typeof (instance == null ? void 0 : instance.type) === "function"
3934
+ )
3935
+ ? instance.render.toString()
3936
+ : instance.type.toString();
3566
3937
  },
3567
3938
  // scroll to component
3568
3939
  scrollToComponent(id) {
@@ -3574,7 +3945,9 @@ function createDevToolsApi(hooks2) {
3574
3945
  getVueInspector: getComponentInspector,
3575
3946
  // toggle app
3576
3947
  toggleApp(id, options) {
3577
- const appRecord = devtoolsAppRecords.value.find((record) => record.id === id);
3948
+ const appRecord = devtoolsAppRecords.value.find(
3949
+ (record) => record.id === id,
3950
+ );
3578
3951
  if (appRecord) {
3579
3952
  setActiveAppRecordId(id);
3580
3953
  setActiveAppRecord(appRecord);
@@ -3599,41 +3972,48 @@ function createDevToolsApi(hooks2) {
3599
3972
  getPluginSettings(pluginId) {
3600
3973
  return {
3601
3974
  options: getPluginSettingsOptions(pluginId),
3602
- values: getPluginSettings(pluginId)
3975
+ values: getPluginSettings(pluginId),
3603
3976
  };
3604
- }
3977
+ },
3605
3978
  };
3606
3979
  }
3607
3980
  init_esm_shims2();
3608
3981
  var _a15;
3609
3982
  var _b15;
3610
- (_b15 = (_a15 = target).__VUE_DEVTOOLS_ENV__) != null ? _b15 : _a15.__VUE_DEVTOOLS_ENV__ = {
3611
- vitePluginDetected: false
3612
- };
3983
+ (_b15 = (_a15 = target).__VUE_DEVTOOLS_ENV__) != null
3984
+ ? _b15
3985
+ : (_a15.__VUE_DEVTOOLS_ENV__ = {
3986
+ vitePluginDetected: false,
3987
+ });
3613
3988
  var hooks = createDevToolsCtxHooks();
3614
3989
  var _a16;
3615
3990
  var _b16;
3616
- (_b16 = (_a16 = target).__VUE_DEVTOOLS_KIT_CONTEXT__) != null ? _b16 : _a16.__VUE_DEVTOOLS_KIT_CONTEXT__ = {
3617
- hooks,
3618
- get state() {
3619
- return {
3620
- ...devtoolsState,
3621
- activeAppRecordId: activeAppRecord.id,
3622
- activeAppRecord: activeAppRecord.value,
3623
- appRecords: devtoolsAppRecords.value
3624
- };
3625
- },
3626
- api: createDevToolsApi(hooks)
3627
- };
3991
+ (_b16 = (_a16 = target).__VUE_DEVTOOLS_KIT_CONTEXT__) != null
3992
+ ? _b16
3993
+ : (_a16.__VUE_DEVTOOLS_KIT_CONTEXT__ = {
3994
+ hooks,
3995
+ get state() {
3996
+ return {
3997
+ ...devtoolsState,
3998
+ activeAppRecordId: activeAppRecord.id,
3999
+ activeAppRecord: activeAppRecord.value,
4000
+ appRecords: devtoolsAppRecords.value,
4001
+ };
4002
+ },
4003
+ api: createDevToolsApi(hooks),
4004
+ });
3628
4005
  var devtoolsContext = target.__VUE_DEVTOOLS_KIT_CONTEXT__;
3629
4006
  init_esm_shims2();
3630
4007
  var import_speakingurl = __toESM2(require_speakingurl2(), 1);
3631
4008
  var _a17;
3632
4009
  var _b17;
3633
- var appRecordInfo = (_b17 = (_a17 = target).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__) != null ? _b17 : _a17.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__ = {
3634
- id: 0,
3635
- appIds: /* @__PURE__ */ new Set()
3636
- };
4010
+ var appRecordInfo =
4011
+ (_b17 = (_a17 = target).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__) != null
4012
+ ? _b17
4013
+ : (_a17.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__ = {
4014
+ id: 0,
4015
+ appIds: /* @__PURE__ */ new Set(),
4016
+ });
3637
4017
  init_esm_shims2();
3638
4018
  function onDevToolsClientConnected(fn) {
3639
4019
  return new Promise((resolve) => {
@@ -3652,7 +4032,8 @@ function onDevToolsClientConnected(fn) {
3652
4032
  }
3653
4033
  init_esm_shims2();
3654
4034
  function toggleHighPerfMode(state) {
3655
- devtoolsState.highPerfModeEnabled = state != null ? state : !devtoolsState.highPerfModeEnabled;
4035
+ devtoolsState.highPerfModeEnabled =
4036
+ state != null ? state : !devtoolsState.highPerfModeEnabled;
3656
4037
  if (!state && activeAppRecord.value) {
3657
4038
  registerDevToolsPlugin(activeAppRecord.value.app);
3658
4039
  }
@@ -3663,14 +4044,19 @@ init_esm_shims2();
3663
4044
  function updateDevToolsClientDetected(params) {
3664
4045
  devtoolsState.devtoolsClientDetected = {
3665
4046
  ...devtoolsState.devtoolsClientDetected,
3666
- ...params
4047
+ ...params,
3667
4048
  };
3668
- const devtoolsClientVisible = Object.values(devtoolsState.devtoolsClientDetected).some(Boolean);
4049
+ const devtoolsClientVisible = Object.values(
4050
+ devtoolsState.devtoolsClientDetected,
4051
+ ).some(Boolean);
3669
4052
  toggleHighPerfMode(!devtoolsClientVisible);
3670
4053
  }
3671
4054
  var _a18;
3672
4055
  var _b18;
3673
- (_b18 = (_a18 = target).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__) != null ? _b18 : _a18.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__ = updateDevToolsClientDetected;
4056
+ (_b18 = (_a18 = target).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__) != null
4057
+ ? _b18
4058
+ : (_a18.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__ =
4059
+ updateDevToolsClientDetected);
3674
4060
  init_esm_shims2();
3675
4061
  init_esm_shims2();
3676
4062
  init_esm_shims2();
@@ -3804,15 +4190,13 @@ var getType = (payload) => Object.prototype.toString.call(payload).slice(8, -1);
3804
4190
  var isUndefined = (payload) => typeof payload === "undefined";
3805
4191
  var isNull = (payload) => payload === null;
3806
4192
  var isPlainObject2 = (payload) => {
3807
- if (typeof payload !== "object" || payload === null)
3808
- return false;
3809
- if (payload === Object.prototype)
3810
- return false;
3811
- if (Object.getPrototypeOf(payload) === null)
3812
- return true;
4193
+ if (typeof payload !== "object" || payload === null) return false;
4194
+ if (payload === Object.prototype) return false;
4195
+ if (Object.getPrototypeOf(payload) === null) return true;
3813
4196
  return Object.getPrototypeOf(payload) === Object.prototype;
3814
4197
  };
3815
- var isEmptyObject = (payload) => isPlainObject2(payload) && Object.keys(payload).length === 0;
4198
+ var isEmptyObject = (payload) =>
4199
+ isPlainObject2(payload) && Object.keys(payload).length === 0;
3816
4200
  var isArray = (payload) => Array.isArray(payload);
3817
4201
  var isString = (payload) => typeof payload === "string";
3818
4202
  var isNumber = (payload) => typeof payload === "number" && !isNaN(payload);
@@ -3824,10 +4208,17 @@ var isSymbol = (payload) => getType(payload) === "Symbol";
3824
4208
  var isDate = (payload) => payload instanceof Date && !isNaN(payload.valueOf());
3825
4209
  var isError = (payload) => payload instanceof Error;
3826
4210
  var isNaNValue = (payload) => typeof payload === "number" && isNaN(payload);
3827
- var isPrimitive2 = (payload) => isBoolean(payload) || isNull(payload) || isUndefined(payload) || isNumber(payload) || isString(payload) || isSymbol(payload);
4211
+ var isPrimitive2 = (payload) =>
4212
+ isBoolean(payload) ||
4213
+ isNull(payload) ||
4214
+ isUndefined(payload) ||
4215
+ isNumber(payload) ||
4216
+ isString(payload) ||
4217
+ isSymbol(payload);
3828
4218
  var isBigint = (payload) => typeof payload === "bigint";
3829
4219
  var isInfinite = (payload) => payload === Infinity || payload === -Infinity;
3830
- var isTypedArray = (payload) => ArrayBuffer.isView(payload) && !(payload instanceof DataView);
4220
+ var isTypedArray = (payload) =>
4221
+ ArrayBuffer.isView(payload) && !(payload instanceof DataView);
3831
4222
  var isURL = (payload) => payload instanceof URL;
3832
4223
  init_esm_shims2();
3833
4224
  var escapeKey = (key) => key.replace(/\./g, "\\.");
@@ -3856,95 +4247,155 @@ var parsePath = (string) => {
3856
4247
  return result;
3857
4248
  };
3858
4249
  init_esm_shims2();
3859
- function simpleTransformation(isApplicable, annotation, transform, untransform) {
4250
+ function simpleTransformation(
4251
+ isApplicable,
4252
+ annotation,
4253
+ transform,
4254
+ untransform,
4255
+ ) {
3860
4256
  return {
3861
4257
  isApplicable,
3862
4258
  annotation,
3863
4259
  transform,
3864
- untransform
4260
+ untransform,
3865
4261
  };
3866
4262
  }
3867
4263
  var simpleRules = [
3868
- simpleTransformation(isUndefined, "undefined", () => null, () => void 0),
3869
- simpleTransformation(isBigint, "bigint", (v) => v.toString(), (v) => {
3870
- if (typeof BigInt !== "undefined") {
3871
- return BigInt(v);
3872
- }
3873
- console.error("Please add a BigInt polyfill.");
3874
- return v;
3875
- }),
3876
- simpleTransformation(isDate, "Date", (v) => v.toISOString(), (v) => new Date(v)),
3877
- simpleTransformation(isError, "Error", (v, superJson) => {
3878
- const baseError = {
3879
- name: v.name,
3880
- message: v.message
3881
- };
3882
- superJson.allowedErrorProps.forEach((prop) => {
3883
- baseError[prop] = v[prop];
3884
- });
3885
- return baseError;
3886
- }, (v, superJson) => {
3887
- const e = new Error(v.message);
3888
- e.name = v.name;
3889
- e.stack = v.stack;
3890
- superJson.allowedErrorProps.forEach((prop) => {
3891
- e[prop] = v[prop];
3892
- });
3893
- return e;
3894
- }),
3895
- simpleTransformation(isRegExp, "regexp", (v) => "" + v, (regex) => {
3896
- const body = regex.slice(1, regex.lastIndexOf("/"));
3897
- const flags = regex.slice(regex.lastIndexOf("/") + 1);
3898
- return new RegExp(body, flags);
3899
- }),
4264
+ simpleTransformation(
4265
+ isUndefined,
4266
+ "undefined",
4267
+ () => null,
4268
+ () => void 0,
4269
+ ),
4270
+ simpleTransformation(
4271
+ isBigint,
4272
+ "bigint",
4273
+ (v) => v.toString(),
4274
+ (v) => {
4275
+ if (typeof BigInt !== "undefined") {
4276
+ return BigInt(v);
4277
+ }
4278
+ console.error("Please add a BigInt polyfill.");
4279
+ return v;
4280
+ },
4281
+ ),
4282
+ simpleTransformation(
4283
+ isDate,
4284
+ "Date",
4285
+ (v) => v.toISOString(),
4286
+ (v) => new Date(v),
4287
+ ),
4288
+ simpleTransformation(
4289
+ isError,
4290
+ "Error",
4291
+ (v, superJson) => {
4292
+ const baseError = {
4293
+ name: v.name,
4294
+ message: v.message,
4295
+ };
4296
+ superJson.allowedErrorProps.forEach((prop) => {
4297
+ baseError[prop] = v[prop];
4298
+ });
4299
+ return baseError;
4300
+ },
4301
+ (v, superJson) => {
4302
+ const e = new Error(v.message);
4303
+ e.name = v.name;
4304
+ e.stack = v.stack;
4305
+ superJson.allowedErrorProps.forEach((prop) => {
4306
+ e[prop] = v[prop];
4307
+ });
4308
+ return e;
4309
+ },
4310
+ ),
4311
+ simpleTransformation(
4312
+ isRegExp,
4313
+ "regexp",
4314
+ (v) => "" + v,
4315
+ (regex) => {
4316
+ const body = regex.slice(1, regex.lastIndexOf("/"));
4317
+ const flags = regex.slice(regex.lastIndexOf("/") + 1);
4318
+ return new RegExp(body, flags);
4319
+ },
4320
+ ),
3900
4321
  simpleTransformation(
3901
4322
  isSet,
3902
4323
  "set",
3903
4324
  // (sets only exist in es6+)
3904
4325
  // eslint-disable-next-line es5/no-es6-methods
3905
4326
  (v) => [...v.values()],
3906
- (v) => new Set(v)
4327
+ (v) => new Set(v),
4328
+ ),
4329
+ simpleTransformation(
4330
+ isMap,
4331
+ "map",
4332
+ (v) => [...v.entries()],
4333
+ (v) => new Map(v),
4334
+ ),
4335
+ simpleTransformation(
4336
+ (v) => isNaNValue(v) || isInfinite(v),
4337
+ "number",
4338
+ (v) => {
4339
+ if (isNaNValue(v)) {
4340
+ return "NaN";
4341
+ }
4342
+ if (v > 0) {
4343
+ return "Infinity";
4344
+ } else {
4345
+ return "-Infinity";
4346
+ }
4347
+ },
4348
+ Number,
4349
+ ),
4350
+ simpleTransformation(
4351
+ (v) => v === 0 && 1 / v === -Infinity,
4352
+ "number",
4353
+ () => {
4354
+ return "-0";
4355
+ },
4356
+ Number,
4357
+ ),
4358
+ simpleTransformation(
4359
+ isURL,
4360
+ "URL",
4361
+ (v) => v.toString(),
4362
+ (v) => new URL(v),
3907
4363
  ),
3908
- simpleTransformation(isMap, "map", (v) => [...v.entries()], (v) => new Map(v)),
3909
- simpleTransformation((v) => isNaNValue(v) || isInfinite(v), "number", (v) => {
3910
- if (isNaNValue(v)) {
3911
- return "NaN";
3912
- }
3913
- if (v > 0) {
3914
- return "Infinity";
3915
- } else {
3916
- return "-Infinity";
3917
- }
3918
- }, Number),
3919
- simpleTransformation((v) => v === 0 && 1 / v === -Infinity, "number", () => {
3920
- return "-0";
3921
- }, Number),
3922
- simpleTransformation(isURL, "URL", (v) => v.toString(), (v) => new URL(v))
3923
4364
  ];
3924
- function compositeTransformation(isApplicable, annotation, transform, untransform) {
4365
+ function compositeTransformation(
4366
+ isApplicable,
4367
+ annotation,
4368
+ transform,
4369
+ untransform,
4370
+ ) {
3925
4371
  return {
3926
4372
  isApplicable,
3927
4373
  annotation,
3928
4374
  transform,
3929
- untransform
4375
+ untransform,
3930
4376
  };
3931
4377
  }
3932
- var symbolRule = compositeTransformation((s, superJson) => {
3933
- if (isSymbol(s)) {
3934
- const isRegistered = !!superJson.symbolRegistry.getIdentifier(s);
3935
- return isRegistered;
3936
- }
3937
- return false;
3938
- }, (s, superJson) => {
3939
- const identifier = superJson.symbolRegistry.getIdentifier(s);
3940
- return ["symbol", identifier];
3941
- }, (v) => v.description, (_, a, superJson) => {
3942
- const value = superJson.symbolRegistry.getValue(a[1]);
3943
- if (!value) {
3944
- throw new Error("Trying to deserialize unknown symbol");
3945
- }
3946
- return value;
3947
- });
4378
+ var symbolRule = compositeTransformation(
4379
+ (s, superJson) => {
4380
+ if (isSymbol(s)) {
4381
+ const isRegistered = !!superJson.symbolRegistry.getIdentifier(s);
4382
+ return isRegistered;
4383
+ }
4384
+ return false;
4385
+ },
4386
+ (s, superJson) => {
4387
+ const identifier = superJson.symbolRegistry.getIdentifier(s);
4388
+ return ["symbol", identifier];
4389
+ },
4390
+ (v) => v.description,
4391
+ (_, a, superJson) => {
4392
+ const value = superJson.symbolRegistry.getValue(a[1]);
4393
+ if (!value) {
4394
+ throw new Error("Trying to deserialize unknown symbol");
4395
+ }
4396
+ return value;
4397
+ },
4398
+ );
3948
4399
  var constructorToName = [
3949
4400
  Int8Array,
3950
4401
  Uint8Array,
@@ -3954,74 +4405,101 @@ var constructorToName = [
3954
4405
  Uint32Array,
3955
4406
  Float32Array,
3956
4407
  Float64Array,
3957
- Uint8ClampedArray
4408
+ Uint8ClampedArray,
3958
4409
  ].reduce((obj, ctor) => {
3959
4410
  obj[ctor.name] = ctor;
3960
4411
  return obj;
3961
4412
  }, {});
3962
- var typedArrayRule = compositeTransformation(isTypedArray, (v) => ["typed-array", v.constructor.name], (v) => [...v], (v, a) => {
3963
- const ctor = constructorToName[a[1]];
3964
- if (!ctor) {
3965
- throw new Error("Trying to deserialize unknown typed array");
3966
- }
3967
- return new ctor(v);
3968
- });
4413
+ var typedArrayRule = compositeTransformation(
4414
+ isTypedArray,
4415
+ (v) => ["typed-array", v.constructor.name],
4416
+ (v) => [...v],
4417
+ (v, a) => {
4418
+ const ctor = constructorToName[a[1]];
4419
+ if (!ctor) {
4420
+ throw new Error("Trying to deserialize unknown typed array");
4421
+ }
4422
+ return new ctor(v);
4423
+ },
4424
+ );
3969
4425
  function isInstanceOfRegisteredClass(potentialClass, superJson) {
3970
4426
  if (potentialClass == null ? void 0 : potentialClass.constructor) {
3971
- const isRegistered = !!superJson.classRegistry.getIdentifier(potentialClass.constructor);
4427
+ const isRegistered = !!superJson.classRegistry.getIdentifier(
4428
+ potentialClass.constructor,
4429
+ );
3972
4430
  return isRegistered;
3973
4431
  }
3974
4432
  return false;
3975
4433
  }
3976
- var classRule = compositeTransformation(isInstanceOfRegisteredClass, (clazz, superJson) => {
3977
- const identifier = superJson.classRegistry.getIdentifier(clazz.constructor);
3978
- return ["class", identifier];
3979
- }, (clazz, superJson) => {
3980
- const allowedProps = superJson.classRegistry.getAllowedProps(clazz.constructor);
3981
- if (!allowedProps) {
3982
- return { ...clazz };
3983
- }
3984
- const result = {};
3985
- allowedProps.forEach((prop) => {
3986
- result[prop] = clazz[prop];
3987
- });
3988
- return result;
3989
- }, (v, a, superJson) => {
3990
- const clazz = superJson.classRegistry.getValue(a[1]);
3991
- if (!clazz) {
3992
- throw new Error(`Trying to deserialize unknown class '${a[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);
3993
- }
3994
- return Object.assign(Object.create(clazz.prototype), v);
3995
- });
3996
- var customRule = compositeTransformation((value, superJson) => {
3997
- return !!superJson.customTransformerRegistry.findApplicable(value);
3998
- }, (value, superJson) => {
3999
- const transformer = superJson.customTransformerRegistry.findApplicable(value);
4000
- return ["custom", transformer.name];
4001
- }, (value, superJson) => {
4002
- const transformer = superJson.customTransformerRegistry.findApplicable(value);
4003
- return transformer.serialize(value);
4004
- }, (v, a, superJson) => {
4005
- const transformer = superJson.customTransformerRegistry.findByName(a[1]);
4006
- if (!transformer) {
4007
- throw new Error("Trying to deserialize unknown custom value");
4008
- }
4009
- return transformer.deserialize(v);
4010
- });
4434
+ var classRule = compositeTransformation(
4435
+ isInstanceOfRegisteredClass,
4436
+ (clazz, superJson) => {
4437
+ const identifier = superJson.classRegistry.getIdentifier(clazz.constructor);
4438
+ return ["class", identifier];
4439
+ },
4440
+ (clazz, superJson) => {
4441
+ const allowedProps = superJson.classRegistry.getAllowedProps(
4442
+ clazz.constructor,
4443
+ );
4444
+ if (!allowedProps) {
4445
+ return { ...clazz };
4446
+ }
4447
+ const result = {};
4448
+ allowedProps.forEach((prop) => {
4449
+ result[prop] = clazz[prop];
4450
+ });
4451
+ return result;
4452
+ },
4453
+ (v, a, superJson) => {
4454
+ const clazz = superJson.classRegistry.getValue(a[1]);
4455
+ if (!clazz) {
4456
+ throw new Error(
4457
+ `Trying to deserialize unknown class '${a[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`,
4458
+ );
4459
+ }
4460
+ return Object.assign(Object.create(clazz.prototype), v);
4461
+ },
4462
+ );
4463
+ var customRule = compositeTransformation(
4464
+ (value, superJson) => {
4465
+ return !!superJson.customTransformerRegistry.findApplicable(value);
4466
+ },
4467
+ (value, superJson) => {
4468
+ const transformer =
4469
+ superJson.customTransformerRegistry.findApplicable(value);
4470
+ return ["custom", transformer.name];
4471
+ },
4472
+ (value, superJson) => {
4473
+ const transformer =
4474
+ superJson.customTransformerRegistry.findApplicable(value);
4475
+ return transformer.serialize(value);
4476
+ },
4477
+ (v, a, superJson) => {
4478
+ const transformer = superJson.customTransformerRegistry.findByName(a[1]);
4479
+ if (!transformer) {
4480
+ throw new Error("Trying to deserialize unknown custom value");
4481
+ }
4482
+ return transformer.deserialize(v);
4483
+ },
4484
+ );
4011
4485
  var compositeRules = [classRule, symbolRule, customRule, typedArrayRule];
4012
4486
  var transformValue = (value, superJson) => {
4013
- const applicableCompositeRule = findArr(compositeRules, (rule) => rule.isApplicable(value, superJson));
4487
+ const applicableCompositeRule = findArr(compositeRules, (rule) =>
4488
+ rule.isApplicable(value, superJson),
4489
+ );
4014
4490
  if (applicableCompositeRule) {
4015
4491
  return {
4016
4492
  value: applicableCompositeRule.transform(value, superJson),
4017
- type: applicableCompositeRule.annotation(value, superJson)
4493
+ type: applicableCompositeRule.annotation(value, superJson),
4018
4494
  };
4019
4495
  }
4020
- const applicableSimpleRule = findArr(simpleRules, (rule) => rule.isApplicable(value, superJson));
4496
+ const applicableSimpleRule = findArr(simpleRules, (rule) =>
4497
+ rule.isApplicable(value, superJson),
4498
+ );
4021
4499
  if (applicableSimpleRule) {
4022
4500
  return {
4023
4501
  value: applicableSimpleRule.transform(value, superJson),
4024
- type: applicableSimpleRule.annotation
4502
+ type: applicableSimpleRule.annotation,
4025
4503
  };
4026
4504
  }
4027
4505
  return void 0;
@@ -4054,8 +4532,7 @@ var untransformValue = (json, type, superJson) => {
4054
4532
  };
4055
4533
  init_esm_shims2();
4056
4534
  var getNthKey = (value, n) => {
4057
- if (n > value.size)
4058
- throw new Error("index out of bounds");
4535
+ if (n > value.size) throw new Error("index out of bounds");
4059
4536
  const keys = value.keys();
4060
4537
  while (n > 0) {
4061
4538
  keys.next();
@@ -4172,7 +4649,9 @@ function traverse(tree, walker2, origin = []) {
4172
4649
  return;
4173
4650
  }
4174
4651
  if (!isArray(tree)) {
4175
- forEach(tree, (subtree, key) => traverse(subtree, walker2, [...origin, ...parsePath(key)]));
4652
+ forEach(tree, (subtree, key) =>
4653
+ traverse(subtree, walker2, [...origin, ...parsePath(key)]),
4654
+ );
4176
4655
  return;
4177
4656
  }
4178
4657
  const [nodeValue, children] = tree;
@@ -4209,7 +4688,12 @@ function applyReferentialEqualityAnnotations(plain, annotations) {
4209
4688
  }
4210
4689
  return plain;
4211
4690
  }
4212
- var isDeep = (object, superJson) => isPlainObject2(object) || isArray(object) || isMap(object) || isSet(object) || isInstanceOfRegisteredClass(object, superJson);
4691
+ var isDeep = (object, superJson) =>
4692
+ isPlainObject2(object) ||
4693
+ isArray(object) ||
4694
+ isMap(object) ||
4695
+ isSet(object) ||
4696
+ isInstanceOfRegisteredClass(object, superJson);
4213
4697
  function addIdentity(object, path, identities) {
4214
4698
  const existingSet = identities.get(object);
4215
4699
  if (existingSet) {
@@ -4226,13 +4710,16 @@ function generateReferentialEqualityAnnotations(identitites, dedupe) {
4226
4710
  return;
4227
4711
  }
4228
4712
  if (!dedupe) {
4229
- paths = paths.map((path) => path.map(String)).sort((a, b) => a.length - b.length);
4713
+ paths = paths
4714
+ .map((path) => path.map(String))
4715
+ .sort((a, b) => a.length - b.length);
4230
4716
  }
4231
4717
  const [representativePath, ...identicalPaths] = paths;
4232
4718
  if (representativePath.length === 0) {
4233
4719
  rootEqualityPaths = identicalPaths.map(stringifyPath);
4234
4720
  } else {
4235
- result[stringifyPath(representativePath)] = identicalPaths.map(stringifyPath);
4721
+ result[stringifyPath(representativePath)] =
4722
+ identicalPaths.map(stringifyPath);
4236
4723
  }
4237
4724
  });
4238
4725
  if (rootEqualityPaths) {
@@ -4245,26 +4732,38 @@ function generateReferentialEqualityAnnotations(identitites, dedupe) {
4245
4732
  return isEmptyObject(result) ? void 0 : result;
4246
4733
  }
4247
4734
  }
4248
- var walker = (object, identities, superJson, dedupe, path = [], objectsInThisPath = [], seenObjects = /* @__PURE__ */ new Map()) => {
4735
+ var walker = (
4736
+ object,
4737
+ identities,
4738
+ superJson,
4739
+ dedupe,
4740
+ path = [],
4741
+ objectsInThisPath = [],
4742
+ seenObjects = /* @__PURE__ */ new Map(),
4743
+ ) => {
4249
4744
  var _a25;
4250
4745
  const primitive = isPrimitive2(object);
4251
4746
  if (!primitive) {
4252
4747
  addIdentity(object, path, identities);
4253
4748
  const seen = seenObjects.get(object);
4254
4749
  if (seen) {
4255
- return dedupe ? {
4256
- transformedValue: null
4257
- } : seen;
4750
+ return dedupe
4751
+ ? {
4752
+ transformedValue: null,
4753
+ }
4754
+ : seen;
4258
4755
  }
4259
4756
  }
4260
4757
  if (!isDeep(object, superJson)) {
4261
4758
  const transformed2 = transformValue(object, superJson);
4262
- const result2 = transformed2 ? {
4263
- transformedValue: transformed2.value,
4264
- annotations: [transformed2.type]
4265
- } : {
4266
- transformedValue: object
4267
- };
4759
+ const result2 = transformed2
4760
+ ? {
4761
+ transformedValue: transformed2.value,
4762
+ annotations: [transformed2.type],
4763
+ }
4764
+ : {
4765
+ transformedValue: object,
4766
+ };
4268
4767
  if (!primitive) {
4269
4768
  seenObjects.set(object, result2);
4270
4769
  }
@@ -4272,18 +4771,37 @@ var walker = (object, identities, superJson, dedupe, path = [], objectsInThisPat
4272
4771
  }
4273
4772
  if (includes(objectsInThisPath, object)) {
4274
4773
  return {
4275
- transformedValue: null
4774
+ transformedValue: null,
4276
4775
  };
4277
4776
  }
4278
4777
  const transformationResult = transformValue(object, superJson);
4279
- const transformed = (_a25 = transformationResult == null ? void 0 : transformationResult.value) != null ? _a25 : object;
4778
+ const transformed =
4779
+ (_a25 =
4780
+ transformationResult == null ? void 0 : transformationResult.value) !=
4781
+ null
4782
+ ? _a25
4783
+ : object;
4280
4784
  const transformedValue = isArray(transformed) ? [] : {};
4281
4785
  const innerAnnotations = {};
4282
4786
  forEach(transformed, (value, index) => {
4283
- if (index === "__proto__" || index === "constructor" || index === "prototype") {
4284
- throw new Error(`Detected property ${index}. This is a prototype pollution risk, please remove it from your object.`);
4787
+ if (
4788
+ index === "__proto__" ||
4789
+ index === "constructor" ||
4790
+ index === "prototype"
4791
+ ) {
4792
+ throw new Error(
4793
+ `Detected property ${index}. This is a prototype pollution risk, please remove it from your object.`,
4794
+ );
4285
4795
  }
4286
- const recursiveResult = walker(value, identities, superJson, dedupe, [...path, index], [...objectsInThisPath, object], seenObjects);
4796
+ const recursiveResult = walker(
4797
+ value,
4798
+ identities,
4799
+ superJson,
4800
+ dedupe,
4801
+ [...path, index],
4802
+ [...objectsInThisPath, object],
4803
+ seenObjects,
4804
+ );
4287
4805
  transformedValue[index] = recursiveResult.transformedValue;
4288
4806
  if (isArray(recursiveResult.annotations)) {
4289
4807
  innerAnnotations[index] = recursiveResult.annotations;
@@ -4293,13 +4811,19 @@ var walker = (object, identities, superJson, dedupe, path = [], objectsInThisPat
4293
4811
  });
4294
4812
  }
4295
4813
  });
4296
- const result = isEmptyObject(innerAnnotations) ? {
4297
- transformedValue,
4298
- annotations: !!transformationResult ? [transformationResult.type] : void 0
4299
- } : {
4300
- transformedValue,
4301
- annotations: !!transformationResult ? [transformationResult.type, innerAnnotations] : innerAnnotations
4302
- };
4814
+ const result = isEmptyObject(innerAnnotations)
4815
+ ? {
4816
+ transformedValue,
4817
+ annotations: !!transformationResult
4818
+ ? [transformationResult.type]
4819
+ : void 0,
4820
+ }
4821
+ : {
4822
+ transformedValue,
4823
+ annotations: !!transformationResult
4824
+ ? [transformationResult.type, innerAnnotations]
4825
+ : innerAnnotations,
4826
+ };
4303
4827
  if (!primitive) {
4304
4828
  seenObjects.set(object, result);
4305
4829
  }
@@ -4314,31 +4838,40 @@ function isArray2(payload) {
4314
4838
  return getType2(payload) === "Array";
4315
4839
  }
4316
4840
  function isPlainObject3(payload) {
4317
- if (getType2(payload) !== "Object")
4318
- return false;
4841
+ if (getType2(payload) !== "Object") return false;
4319
4842
  const prototype = Object.getPrototypeOf(payload);
4320
- return !!prototype && prototype.constructor === Object && prototype === Object.prototype;
4843
+ return (
4844
+ !!prototype &&
4845
+ prototype.constructor === Object &&
4846
+ prototype === Object.prototype
4847
+ );
4321
4848
  }
4322
4849
  function isNull2(payload) {
4323
4850
  return getType2(payload) === "Null";
4324
4851
  }
4325
4852
  function isOneOf(a, b, c, d, e) {
4326
- return (value) => a(value) || b(value) || !!c && c(value) || !!d && d(value) || !!e && e(value);
4853
+ return (value) =>
4854
+ a(value) ||
4855
+ b(value) ||
4856
+ (!!c && c(value)) ||
4857
+ (!!d && d(value)) ||
4858
+ (!!e && e(value));
4327
4859
  }
4328
4860
  function isUndefined2(payload) {
4329
4861
  return getType2(payload) === "Undefined";
4330
4862
  }
4331
4863
  var isNullOrUndefined = isOneOf(isNull2, isUndefined2);
4332
4864
  function assignProp(carry, key, newVal, originalObject, includeNonenumerable) {
4333
- const propType = {}.propertyIsEnumerable.call(originalObject, key) ? "enumerable" : "nonenumerable";
4334
- if (propType === "enumerable")
4335
- carry[key] = newVal;
4865
+ const propType = {}.propertyIsEnumerable.call(originalObject, key)
4866
+ ? "enumerable"
4867
+ : "nonenumerable";
4868
+ if (propType === "enumerable") carry[key] = newVal;
4336
4869
  if (includeNonenumerable && propType === "nonenumerable") {
4337
4870
  Object.defineProperty(carry, key, {
4338
4871
  value: newVal,
4339
4872
  enumerable: false,
4340
4873
  writable: true,
4341
- configurable: true
4874
+ configurable: true,
4342
4875
  });
4343
4876
  }
4344
4877
  }
@@ -4379,19 +4912,22 @@ var SuperJSON = class {
4379
4912
  const identities = /* @__PURE__ */ new Map();
4380
4913
  const output = walker(object, identities, this, this.dedupe);
4381
4914
  const res = {
4382
- json: output.transformedValue
4915
+ json: output.transformedValue,
4383
4916
  };
4384
4917
  if (output.annotations) {
4385
4918
  res.meta = {
4386
4919
  ...res.meta,
4387
- values: output.annotations
4920
+ values: output.annotations,
4388
4921
  };
4389
4922
  }
4390
- const equalityAnnotations = generateReferentialEqualityAnnotations(identities, this.dedupe);
4923
+ const equalityAnnotations = generateReferentialEqualityAnnotations(
4924
+ identities,
4925
+ this.dedupe,
4926
+ );
4391
4927
  if (equalityAnnotations) {
4392
4928
  res.meta = {
4393
4929
  ...res.meta,
4394
- referentialEqualities: equalityAnnotations
4930
+ referentialEqualities: equalityAnnotations,
4395
4931
  };
4396
4932
  }
4397
4933
  return res;
@@ -4403,7 +4939,10 @@ var SuperJSON = class {
4403
4939
  result = applyValueAnnotations(result, meta.values, this);
4404
4940
  }
4405
4941
  if (meta == null ? void 0 : meta.referentialEqualities) {
4406
- result = applyReferentialEqualityAnnotations(result, meta.referentialEqualities);
4942
+ result = applyReferentialEqualityAnnotations(
4943
+ result,
4944
+ meta.referentialEqualities,
4945
+ );
4407
4946
  }
4408
4947
  return result;
4409
4948
  }
@@ -4422,7 +4961,7 @@ var SuperJSON = class {
4422
4961
  registerCustom(transformer, name) {
4423
4962
  this.customTransformerRegistry.register({
4424
4963
  name,
4425
- ...transformer
4964
+ ...transformer,
4426
4965
  });
4427
4966
  }
4428
4967
  allowErrorProps(...props) {
@@ -4430,14 +4969,30 @@ var SuperJSON = class {
4430
4969
  }
4431
4970
  };
4432
4971
  SuperJSON.defaultInstance = new SuperJSON();
4433
- SuperJSON.serialize = SuperJSON.defaultInstance.serialize.bind(SuperJSON.defaultInstance);
4434
- SuperJSON.deserialize = SuperJSON.defaultInstance.deserialize.bind(SuperJSON.defaultInstance);
4435
- SuperJSON.stringify = SuperJSON.defaultInstance.stringify.bind(SuperJSON.defaultInstance);
4436
- SuperJSON.parse = SuperJSON.defaultInstance.parse.bind(SuperJSON.defaultInstance);
4437
- SuperJSON.registerClass = SuperJSON.defaultInstance.registerClass.bind(SuperJSON.defaultInstance);
4438
- SuperJSON.registerSymbol = SuperJSON.defaultInstance.registerSymbol.bind(SuperJSON.defaultInstance);
4439
- SuperJSON.registerCustom = SuperJSON.defaultInstance.registerCustom.bind(SuperJSON.defaultInstance);
4440
- SuperJSON.allowErrorProps = SuperJSON.defaultInstance.allowErrorProps.bind(SuperJSON.defaultInstance);
4972
+ SuperJSON.serialize = SuperJSON.defaultInstance.serialize.bind(
4973
+ SuperJSON.defaultInstance,
4974
+ );
4975
+ SuperJSON.deserialize = SuperJSON.defaultInstance.deserialize.bind(
4976
+ SuperJSON.defaultInstance,
4977
+ );
4978
+ SuperJSON.stringify = SuperJSON.defaultInstance.stringify.bind(
4979
+ SuperJSON.defaultInstance,
4980
+ );
4981
+ SuperJSON.parse = SuperJSON.defaultInstance.parse.bind(
4982
+ SuperJSON.defaultInstance,
4983
+ );
4984
+ SuperJSON.registerClass = SuperJSON.defaultInstance.registerClass.bind(
4985
+ SuperJSON.defaultInstance,
4986
+ );
4987
+ SuperJSON.registerSymbol = SuperJSON.defaultInstance.registerSymbol.bind(
4988
+ SuperJSON.defaultInstance,
4989
+ );
4990
+ SuperJSON.registerCustom = SuperJSON.defaultInstance.registerCustom.bind(
4991
+ SuperJSON.defaultInstance,
4992
+ );
4993
+ SuperJSON.allowErrorProps = SuperJSON.defaultInstance.allowErrorProps.bind(
4994
+ SuperJSON.defaultInstance,
4995
+ );
4441
4996
  var serialize = SuperJSON.serialize;
4442
4997
  var deserialize = SuperJSON.deserialize;
4443
4998
  var stringify = SuperJSON.stringify;
@@ -4471,22 +5026,34 @@ init_esm_shims2();
4471
5026
  init_esm_shims2();
4472
5027
  var _a19;
4473
5028
  var _b19;
4474
- (_b19 = (_a19 = target).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__) != null ? _b19 : _a19.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__ = [];
5029
+ (_b19 = (_a19 = target).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__) != null
5030
+ ? _b19
5031
+ : (_a19.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__ = []);
4475
5032
  var _a20;
4476
5033
  var _b20;
4477
- (_b20 = (_a20 = target).__VUE_DEVTOOLS_KIT_RPC_CLIENT__) != null ? _b20 : _a20.__VUE_DEVTOOLS_KIT_RPC_CLIENT__ = null;
5034
+ (_b20 = (_a20 = target).__VUE_DEVTOOLS_KIT_RPC_CLIENT__) != null
5035
+ ? _b20
5036
+ : (_a20.__VUE_DEVTOOLS_KIT_RPC_CLIENT__ = null);
4478
5037
  var _a21;
4479
5038
  var _b21;
4480
- (_b21 = (_a21 = target).__VUE_DEVTOOLS_KIT_RPC_SERVER__) != null ? _b21 : _a21.__VUE_DEVTOOLS_KIT_RPC_SERVER__ = null;
5039
+ (_b21 = (_a21 = target).__VUE_DEVTOOLS_KIT_RPC_SERVER__) != null
5040
+ ? _b21
5041
+ : (_a21.__VUE_DEVTOOLS_KIT_RPC_SERVER__ = null);
4481
5042
  var _a222;
4482
5043
  var _b22;
4483
- (_b22 = (_a222 = target).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__) != null ? _b22 : _a222.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__ = null;
5044
+ (_b22 = (_a222 = target).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__) != null
5045
+ ? _b22
5046
+ : (_a222.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__ = null);
4484
5047
  var _a23;
4485
5048
  var _b23;
4486
- (_b23 = (_a23 = target).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__) != null ? _b23 : _a23.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__ = null;
5049
+ (_b23 = (_a23 = target).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__) != null
5050
+ ? _b23
5051
+ : (_a23.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__ = null);
4487
5052
  var _a24;
4488
5053
  var _b24;
4489
- (_b24 = (_a24 = target).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__) != null ? _b24 : _a24.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__ = null;
5054
+ (_b24 = (_a24 = target).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__) != null
5055
+ ? _b24
5056
+ : (_a24.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__ = null);
4490
5057
  init_esm_shims2();
4491
5058
  init_esm_shims2();
4492
5059
  init_esm_shims2();
@@ -4502,6 +5069,6 @@ export {
4502
5069
  onDevToolsConnected,
4503
5070
  removeCustomCommand,
4504
5071
  setupDevToolsPlugin,
4505
- setupDevToolsPlugin as setupDevtoolsPlugin
5072
+ setupDevToolsPlugin as setupDevtoolsPlugin,
4506
5073
  };
4507
5074
  //# sourceMappingURL=vitepress___@vue_devtools-api.js.map