@dialpad/dialtone 9.117.0 → 9.117.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 (36) hide show
  1. package/dist/tokens/doc.json +15601 -15601
  2. package/dist/vue2/component-documentation.json +1 -1
  3. package/dist/vue2/lib/editor/editor.cjs +1 -1
  4. package/dist/vue2/lib/editor/editor.cjs.map +1 -1
  5. package/dist/vue2/lib/editor/editor.js +48 -48
  6. package/dist/vue2/lib/editor/editor.js.map +1 -1
  7. package/dist/vue2/lib/rich-text-editor/rich-text-editor.cjs +3 -3
  8. package/dist/vue2/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
  9. package/dist/vue2/lib/rich-text-editor/rich-text-editor.js +183 -166
  10. package/dist/vue2/lib/rich-text-editor/rich-text-editor.js.map +1 -1
  11. package/dist/vue2/localization/index.cjs +5 -1
  12. package/dist/vue2/localization/index.cjs.map +1 -1
  13. package/dist/vue2/localization/index.js +4865 -21
  14. package/dist/vue2/localization/index.js.map +1 -1
  15. package/dist/vue2/node_modules/@tiptap/vue-2.cjs.map +1 -1
  16. package/dist/vue2/node_modules/@tiptap/vue-2.js.map +1 -1
  17. package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts +18 -0
  18. package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
  19. package/dist/vue2/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
  20. package/dist/vue3/component-documentation.json +1 -1
  21. package/dist/vue3/lib/editor/editor.cjs +1 -1
  22. package/dist/vue3/lib/editor/editor.cjs.map +1 -1
  23. package/dist/vue3/lib/editor/editor.js +2 -0
  24. package/dist/vue3/lib/editor/editor.js.map +1 -1
  25. package/dist/vue3/lib/rich-text-editor/rich-text-editor.cjs +3 -3
  26. package/dist/vue3/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
  27. package/dist/vue3/lib/rich-text-editor/rich-text-editor.js +181 -164
  28. package/dist/vue3/lib/rich-text-editor/rich-text-editor.js.map +1 -1
  29. package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts +18 -0
  30. package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
  31. package/dist/vue3/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
  32. package/package.json +4 -5
  33. package/dist/vue2/node_modules/@dialpad/i18n-vue2.cjs +0 -6
  34. package/dist/vue2/node_modules/@dialpad/i18n-vue2.cjs.map +0 -1
  35. package/dist/vue2/node_modules/@dialpad/i18n-vue2.js +0 -4906
  36. package/dist/vue2/node_modules/@dialpad/i18n-vue2.js.map +0 -1
@@ -1,38 +1,4882 @@
1
- import { RawBundleSource as s, LocaleManager as i } from "../node_modules/@dialpad/i18n-vue2.js";
2
- const c = (t, e, o) => {
3
- const n = t[e];
4
- return n ? typeof n == "function" ? n() : Promise.resolve(n) : new Promise((l, a) => {
1
+ var cr = Object.defineProperty;
2
+ var fr = (e, t, n) => t in e ? cr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var Ce = (e, t, n) => fr(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import Ie, { shallowRef as dr, computed as ve, getCurrentInstance as Sn, watchEffect as Tn, defineComponent as _r, h as ot } from "vue";
5
+ const hr = (e, t, n) => {
6
+ const r = e[t];
7
+ return r ? typeof r == "function" ? r() : Promise.resolve(r) : new Promise((u, o) => {
5
8
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
6
- a.bind(
9
+ o.bind(
7
10
  null,
8
11
  new Error(
9
- "Unknown variable dynamic import: " + e + (e.split("/").length !== o ? ". Note that variables only represent file names one level deep." : "")
12
+ "Unknown variable dynamic import: " + t + (t.split("/").length !== n ? ". Note that variables only represent file names one level deep." : "")
10
13
  )
11
14
  )
12
15
  );
13
16
  });
14
- }, u = {
17
+ };
18
+ class be {
19
+ /**
20
+ * Create a `FluentType` instance.
21
+ *
22
+ * @param value The JavaScript value to wrap.
23
+ */
24
+ constructor(t) {
25
+ this.value = t;
26
+ }
27
+ /**
28
+ * Unwrap the raw value stored by this `FluentType`.
29
+ */
30
+ valueOf() {
31
+ return this.value;
32
+ }
33
+ }
34
+ class C extends be {
35
+ /**
36
+ * Create an instance of `FluentNone` with an optional fallback value.
37
+ * @param value The fallback value of this `FluentNone`.
38
+ */
39
+ constructor(t = "???") {
40
+ super(t);
41
+ }
42
+ /**
43
+ * Format this `FluentNone` to the fallback string.
44
+ */
45
+ toString(t) {
46
+ return `{${this.value}}`;
47
+ }
48
+ }
49
+ class M extends be {
50
+ /**
51
+ * Create an instance of `FluentNumber` with options to the
52
+ * `Intl.NumberFormat` constructor.
53
+ *
54
+ * @param value The number value of this `FluentNumber`.
55
+ * @param opts Options which will be passed to `Intl.NumberFormat`.
56
+ */
57
+ constructor(t, n = {}) {
58
+ super(t), this.opts = n;
59
+ }
60
+ /**
61
+ * Format this `FluentNumber` to a string.
62
+ */
63
+ toString(t) {
64
+ try {
65
+ return t.memoizeIntlObject(Intl.NumberFormat, this.opts).format(this.value);
66
+ } catch (n) {
67
+ return t.reportError(n), this.value.toString(10);
68
+ }
69
+ }
70
+ }
71
+ class se extends be {
72
+ /**
73
+ * Create an instance of `FluentDateTime` with options to the
74
+ * `Intl.DateTimeFormat` constructor.
75
+ *
76
+ * @param value The number value of this `FluentDateTime`, in milliseconds.
77
+ * @param opts Options which will be passed to `Intl.DateTimeFormat`.
78
+ */
79
+ constructor(t, n = {}) {
80
+ super(t), this.opts = n;
81
+ }
82
+ /**
83
+ * Format this `FluentDateTime` to a string.
84
+ */
85
+ toString(t) {
86
+ try {
87
+ return t.memoizeIntlObject(Intl.DateTimeFormat, this.opts).format(this.value);
88
+ } catch (n) {
89
+ return t.reportError(n), new Date(this.value).toISOString();
90
+ }
91
+ }
92
+ }
93
+ const st = 100, pr = "⁨", Er = "⁩";
94
+ function gr(e, t, n) {
95
+ if (n === t || n instanceof M && t instanceof M && n.value === t.value)
96
+ return !0;
97
+ if (t instanceof M && typeof n == "string") {
98
+ let r = e.memoizeIntlObject(Intl.PluralRules, t.opts).select(t.value);
99
+ if (n === r)
100
+ return !0;
101
+ }
102
+ return !1;
103
+ }
104
+ function it(e, t, n) {
105
+ return t[n] ? X(e, t[n].value) : (e.reportError(new RangeError("No default")), new C());
106
+ }
107
+ function Le(e, t) {
108
+ const n = [], r = /* @__PURE__ */ Object.create(null);
109
+ for (const u of t)
110
+ u.type === "narg" ? r[u.name] = ae(e, u.value) : n.push(ae(e, u));
111
+ return { positional: n, named: r };
112
+ }
113
+ function ae(e, t) {
114
+ switch (t.type) {
115
+ case "str":
116
+ return t.value;
117
+ case "num":
118
+ return new M(t.value, {
119
+ minimumFractionDigits: t.precision
120
+ });
121
+ case "var":
122
+ return mr(e, t);
123
+ case "mesg":
124
+ return vr(e, t);
125
+ case "term":
126
+ return yr(e, t);
127
+ case "func":
128
+ return Ar(e, t);
129
+ case "select":
130
+ return br(e, t);
131
+ default:
132
+ return new C();
133
+ }
134
+ }
135
+ function mr(e, { name: t }) {
136
+ let n;
137
+ if (e.params)
138
+ if (Object.prototype.hasOwnProperty.call(e.params, t))
139
+ n = e.params[t];
140
+ else
141
+ return new C(`$${t}`);
142
+ else if (e.args && Object.prototype.hasOwnProperty.call(e.args, t))
143
+ n = e.args[t];
144
+ else
145
+ return e.reportError(new ReferenceError(`Unknown variable: $${t}`)), new C(`$${t}`);
146
+ if (n instanceof be)
147
+ return n;
148
+ switch (typeof n) {
149
+ case "string":
150
+ return n;
151
+ case "number":
152
+ return new M(n);
153
+ case "object":
154
+ if (n instanceof Date)
155
+ return new se(n.getTime());
156
+ default:
157
+ return e.reportError(new TypeError(`Variable type not supported: $${t}, ${typeof n}`)), new C(`$${t}`);
158
+ }
159
+ }
160
+ function vr(e, { name: t, attr: n }) {
161
+ const r = e.bundle._messages.get(t);
162
+ if (!r)
163
+ return e.reportError(new ReferenceError(`Unknown message: ${t}`)), new C(t);
164
+ if (n) {
165
+ const u = r.attributes[n];
166
+ return u ? X(e, u) : (e.reportError(new ReferenceError(`Unknown attribute: ${n}`)), new C(`${t}.${n}`));
167
+ }
168
+ return r.value ? X(e, r.value) : (e.reportError(new ReferenceError(`No value: ${t}`)), new C(t));
169
+ }
170
+ function yr(e, { name: t, attr: n, args: r }) {
171
+ const u = `-${t}`, o = e.bundle._terms.get(u);
172
+ if (!o)
173
+ return e.reportError(new ReferenceError(`Unknown term: ${u}`)), new C(u);
174
+ if (n) {
175
+ const i = o.attributes[n];
176
+ if (i) {
177
+ e.params = Le(e, r).named;
178
+ const f = X(e, i);
179
+ return e.params = null, f;
180
+ }
181
+ return e.reportError(new ReferenceError(`Unknown attribute: ${n}`)), new C(`${u}.${n}`);
182
+ }
183
+ e.params = Le(e, r).named;
184
+ const s = X(e, o.value);
185
+ return e.params = null, s;
186
+ }
187
+ function Ar(e, { name: t, args: n }) {
188
+ let r = e.bundle._functions[t];
189
+ if (!r)
190
+ return e.reportError(new ReferenceError(`Unknown function: ${t}()`)), new C(`${t}()`);
191
+ if (typeof r != "function")
192
+ return e.reportError(new TypeError(`Function ${t}() is not callable`)), new C(`${t}()`);
193
+ try {
194
+ let u = Le(e, n);
195
+ return r(u.positional, u.named);
196
+ } catch (u) {
197
+ return e.reportError(u), new C(`${t}()`);
198
+ }
199
+ }
200
+ function br(e, { selector: t, variants: n, star: r }) {
201
+ let u = ae(e, t);
202
+ if (u instanceof C)
203
+ return it(e, n, r);
204
+ for (const o of n) {
205
+ const s = ae(e, o.key);
206
+ if (gr(e, u, s))
207
+ return X(e, o.value);
208
+ }
209
+ return it(e, n, r);
210
+ }
211
+ function Cn(e, t) {
212
+ if (e.dirty.has(t))
213
+ return e.reportError(new RangeError("Cyclic reference")), new C();
214
+ e.dirty.add(t);
215
+ const n = [], r = e.bundle._useIsolating && t.length > 1;
216
+ for (const u of t) {
217
+ if (typeof u == "string") {
218
+ n.push(e.bundle._transform(u));
219
+ continue;
220
+ }
221
+ if (e.placeables++, e.placeables > st)
222
+ throw e.dirty.delete(t), new RangeError(`Too many placeables expanded: ${e.placeables}, max allowed is ${st}`);
223
+ r && n.push(pr), n.push(ae(e, u).toString(e)), r && n.push(Er);
224
+ }
225
+ return e.dirty.delete(t), n.join("");
226
+ }
227
+ function X(e, t) {
228
+ return typeof t == "string" ? e.bundle._transform(t) : Cn(e, t);
229
+ }
230
+ class wr {
231
+ constructor(t, n, r) {
232
+ this.dirty = /* @__PURE__ */ new WeakSet(), this.params = null, this.placeables = 0, this.bundle = t, this.errors = n, this.args = r;
233
+ }
234
+ reportError(t) {
235
+ if (!this.errors || !(t instanceof Error))
236
+ throw t;
237
+ this.errors.push(t);
238
+ }
239
+ memoizeIntlObject(t, n) {
240
+ let r = this.bundle._intls.get(t);
241
+ r || (r = {}, this.bundle._intls.set(t, r));
242
+ let u = JSON.stringify(n);
243
+ return r[u] || (r[u] = new t(this.bundle.locales, n)), r[u];
244
+ }
245
+ }
246
+ function ye(e, t) {
247
+ const n = /* @__PURE__ */ Object.create(null);
248
+ for (const [r, u] of Object.entries(e))
249
+ t.includes(r) && (n[r] = u.valueOf());
250
+ return n;
251
+ }
252
+ const at = [
253
+ "unitDisplay",
254
+ "currencyDisplay",
255
+ "useGrouping",
256
+ "minimumIntegerDigits",
257
+ "minimumFractionDigits",
258
+ "maximumFractionDigits",
259
+ "minimumSignificantDigits",
260
+ "maximumSignificantDigits"
261
+ ];
262
+ function Or(e, t) {
263
+ let n = e[0];
264
+ if (n instanceof C)
265
+ return new C(`NUMBER(${n.valueOf()})`);
266
+ if (n instanceof M)
267
+ return new M(n.valueOf(), {
268
+ ...n.opts,
269
+ ...ye(t, at)
270
+ });
271
+ if (n instanceof se)
272
+ return new M(n.valueOf(), {
273
+ ...ye(t, at)
274
+ });
275
+ throw new TypeError("Invalid argument to NUMBER");
276
+ }
277
+ const lt = [
278
+ "dateStyle",
279
+ "timeStyle",
280
+ "fractionalSecondDigits",
281
+ "dayPeriod",
282
+ "hour12",
283
+ "weekday",
284
+ "era",
285
+ "year",
286
+ "month",
287
+ "day",
288
+ "hour",
289
+ "minute",
290
+ "second",
291
+ "timeZoneName"
292
+ ];
293
+ function Sr(e, t) {
294
+ let n = e[0];
295
+ if (n instanceof C)
296
+ return new C(`DATETIME(${n.valueOf()})`);
297
+ if (n instanceof se)
298
+ return new se(n.valueOf(), {
299
+ ...n.opts,
300
+ ...ye(t, lt)
301
+ });
302
+ if (n instanceof M)
303
+ return new se(n.valueOf(), {
304
+ ...ye(t, lt)
305
+ });
306
+ throw new TypeError("Invalid argument to DATETIME");
307
+ }
308
+ const ct = /* @__PURE__ */ new Map();
309
+ function Tr(e) {
310
+ const t = Array.isArray(e) ? e.join(" ") : e;
311
+ let n = ct.get(t);
312
+ return n === void 0 && (n = /* @__PURE__ */ new Map(), ct.set(t, n)), n;
313
+ }
314
+ class je {
315
+ /**
316
+ * Create an instance of `FluentBundle`.
317
+ *
318
+ * The `locales` argument is used to instantiate `Intl` formatters used by
319
+ * translations. The `options` object can be used to configure the bundle.
320
+ *
321
+ * Examples:
322
+ *
323
+ * let bundle = new FluentBundle(["en-US", "en"]);
324
+ *
325
+ * let bundle = new FluentBundle(locales, {useIsolating: false});
326
+ *
327
+ * let bundle = new FluentBundle(locales, {
328
+ * useIsolating: true,
329
+ * functions: {
330
+ * NODE_ENV: () => process.env.NODE_ENV
331
+ * }
332
+ * });
333
+ *
334
+ * Available options:
335
+ *
336
+ * - `functions` - an object of additional functions available to
337
+ * translations as builtins.
338
+ *
339
+ * - `useIsolating` - boolean specifying whether to use Unicode isolation
340
+ * marks (FSI, PDI) for bidi interpolations. Default: `true`.
341
+ *
342
+ * - `transform` - a function used to transform string parts of patterns.
343
+ */
344
+ constructor(t, { functions: n, useIsolating: r = !0, transform: u = (o) => o } = {}) {
345
+ this._terms = /* @__PURE__ */ new Map(), this._messages = /* @__PURE__ */ new Map(), this.locales = Array.isArray(t) ? t : [t], this._functions = {
346
+ NUMBER: Or,
347
+ DATETIME: Sr,
348
+ ...n
349
+ }, this._useIsolating = r, this._transform = u, this._intls = Tr(t);
350
+ }
351
+ /**
352
+ * Check if a message is present in the bundle.
353
+ *
354
+ * @param id - The identifier of the message to check.
355
+ */
356
+ hasMessage(t) {
357
+ return this._messages.has(t);
358
+ }
359
+ /**
360
+ * Return a raw unformatted message object from the bundle.
361
+ *
362
+ * Raw messages are `{value, attributes}` shapes containing translation units
363
+ * called `Patterns`. `Patterns` are implementation-specific; they should be
364
+ * treated as black boxes and formatted with `FluentBundle.formatPattern`.
365
+ *
366
+ * @param id - The identifier of the message to check.
367
+ */
368
+ getMessage(t) {
369
+ return this._messages.get(t);
370
+ }
371
+ /**
372
+ * Add a translation resource to the bundle.
373
+ *
374
+ * The translation resource must be an instance of `FluentResource`.
375
+ *
376
+ * let res = new FluentResource("foo = Foo");
377
+ * bundle.addResource(res);
378
+ * bundle.getMessage("foo");
379
+ * // → {value: .., attributes: {..}}
380
+ *
381
+ * Available options:
382
+ *
383
+ * - `allowOverrides` - boolean specifying whether it's allowed to override
384
+ * an existing message or term with a new value. Default: `false`.
385
+ *
386
+ * @param res - FluentResource object.
387
+ * @param options
388
+ */
389
+ addResource(t, { allowOverrides: n = !1 } = {}) {
390
+ const r = [];
391
+ for (let u = 0; u < t.body.length; u++) {
392
+ let o = t.body[u];
393
+ if (o.id.startsWith("-")) {
394
+ if (n === !1 && this._terms.has(o.id)) {
395
+ r.push(new Error(`Attempt to override an existing term: "${o.id}"`));
396
+ continue;
397
+ }
398
+ this._terms.set(o.id, o);
399
+ } else {
400
+ if (n === !1 && this._messages.has(o.id)) {
401
+ r.push(new Error(`Attempt to override an existing message: "${o.id}"`));
402
+ continue;
403
+ }
404
+ this._messages.set(o.id, o);
405
+ }
406
+ }
407
+ return r;
408
+ }
409
+ /**
410
+ * Format a `Pattern` to a string.
411
+ *
412
+ * Format a raw `Pattern` into a string. `args` will be used to resolve
413
+ * references to variables passed as arguments to the translation.
414
+ *
415
+ * In case of errors `formatPattern` will try to salvage as much of the
416
+ * translation as possible and will still return a string. For performance
417
+ * reasons, the encountered errors are not returned but instead are appended
418
+ * to the `errors` array passed as the third argument.
419
+ *
420
+ * let errors = [];
421
+ * bundle.addResource(
422
+ * new FluentResource("hello = Hello, {$name}!"));
423
+ *
424
+ * let hello = bundle.getMessage("hello");
425
+ * if (hello.value) {
426
+ * bundle.formatPattern(hello.value, {name: "Jane"}, errors);
427
+ * // Returns "Hello, Jane!" and `errors` is empty.
428
+ *
429
+ * bundle.formatPattern(hello.value, undefined, errors);
430
+ * // Returns "Hello, {$name}!" and `errors` is now:
431
+ * // [<ReferenceError: Unknown variable: name>]
432
+ * }
433
+ *
434
+ * If `errors` is omitted, the first encountered error will be thrown.
435
+ */
436
+ formatPattern(t, n = null, r = null) {
437
+ if (typeof t == "string")
438
+ return this._transform(t);
439
+ let u = new wr(this, r, n);
440
+ try {
441
+ return Cn(u, t).toString(u);
442
+ } catch (o) {
443
+ if (u.errors && o instanceof Error)
444
+ return u.errors.push(o), new C().toString(u);
445
+ throw o;
446
+ }
447
+ }
448
+ }
449
+ class Cr extends Array {
450
+ /**
451
+ * Create a `CachedIterable` instance from an iterable or, if another
452
+ * instance of `CachedIterable` is passed, return it without any
453
+ * modifications.
454
+ *
455
+ * @param {Iterable} iterable
456
+ * @returns {CachedIterable}
457
+ */
458
+ static from(t) {
459
+ return t instanceof this ? t : new this(t);
460
+ }
461
+ }
462
+ class Ir extends Cr {
463
+ /**
464
+ * Create an `CachedSyncIterable` instance.
465
+ *
466
+ * @param {Iterable} iterable
467
+ * @returns {CachedSyncIterable}
468
+ */
469
+ constructor(t) {
470
+ if (super(), Symbol.iterator in Object(t))
471
+ this.iterator = t[Symbol.iterator]();
472
+ else
473
+ throw new TypeError("Argument must implement the iteration protocol.");
474
+ }
475
+ [Symbol.iterator]() {
476
+ const t = this;
477
+ let n = 0;
478
+ return {
479
+ next() {
480
+ return t.length <= n && t.push(t.iterator.next()), t[n++];
481
+ }
482
+ };
483
+ }
484
+ /**
485
+ * This method allows user to consume the next element from the iterator
486
+ * into the cache.
487
+ *
488
+ * @param {number} count - number of elements to consume
489
+ */
490
+ touchNext(t = 1) {
491
+ let n = 0;
492
+ for (; n++ < t; ) {
493
+ const r = this[this.length - 1];
494
+ if (r && r.done)
495
+ break;
496
+ this.push(this.iterator.next());
497
+ }
498
+ return this[this.length - 1];
499
+ }
500
+ }
501
+ function Dr(e, t) {
502
+ return Array.isArray(t) ? t.map((n) => ft(e, n)) : ft(e, t);
503
+ }
504
+ function ft(e, t) {
505
+ for (const n of e)
506
+ if (n.hasMessage(t))
507
+ return n;
508
+ return null;
509
+ }
510
+ function kr(e, t) {
511
+ const n = new je(e, {
512
+ functions: t._functions,
513
+ useIsolating: t._useIsolating,
514
+ transform: t._transform
515
+ });
516
+ return n._terms = new Map(t._terms), n._messages = new Map(t._messages), n;
517
+ }
518
+ function Rr(e, t) {
519
+ if (!e)
520
+ throw new Error(`[fluent-vue] ${t}`);
521
+ }
522
+ function J(e, ...t) {
523
+ console.warn(`[fluent-vue] ${e}`, ...t);
524
+ }
525
+ var In = class {
526
+ constructor(e, t) {
527
+ this.options = t, this.format = (n, r) => {
528
+ const u = this.getBundle(n), o = this.getMessage(u, n);
529
+ return this._format(u, o, r) ?? n;
530
+ }, this.formatAttrs = (n, r) => {
531
+ const u = this.getBundle(n), o = this.getMessage(u, n);
532
+ return this._formatAttrs(u, o, r) ?? {};
533
+ }, this.formatWithAttrs = (n, r) => {
534
+ const u = this.getBundle(n), o = this.getMessage(u, n), s = this._format(u, o, r);
535
+ return {
536
+ value: s ?? n,
537
+ attributes: this._formatAttrs(u, o, r) ?? {},
538
+ hasValue: s !== null
539
+ };
540
+ }, this.$t = this.format, this.$ta = this.formatAttrs, this.bundles = e;
541
+ }
542
+ getBundle(e) {
543
+ return Dr(this.bundles.value, e);
544
+ }
545
+ getMessage(e, t) {
546
+ const n = e == null ? void 0 : e.getMessage(t);
547
+ return n === void 0 ? (this.options.warnMissing(t), null) : n;
548
+ }
549
+ formatPattern(e, t, n, r) {
550
+ const u = [], o = r;
551
+ if (o != null && this.options.mapVariable != null)
552
+ for (const [i, f] of Object.entries(o)) {
553
+ const h = this.options.mapVariable(f);
554
+ h != null && (o[i] = h);
555
+ }
556
+ const s = e.formatPattern(n, o, u);
557
+ for (const i of u)
558
+ J(`Error when formatting message with key [${t}]`, i);
559
+ return s;
560
+ }
561
+ _format(e, t, n) {
562
+ return e === null || t === null || t.value === null ? null : this.formatPattern(e, t.id, t.value, n);
563
+ }
564
+ _formatAttrs(e, t, n) {
565
+ if (e === null || t === null)
566
+ return null;
567
+ const r = {};
568
+ for (const [u, o] of Object.entries(t.attributes))
569
+ r[u] = this.formatPattern(e, t.id, o, n);
570
+ return r;
571
+ }
572
+ };
573
+ function* xr(e, t) {
574
+ for (const n of e)
575
+ yield* t(n);
576
+ }
577
+ function Y(e, t, n = !1) {
578
+ if (t == null)
579
+ return e;
580
+ const r = t.$options;
581
+ if (r._fluent != null)
582
+ return r._fluent;
583
+ const u = Dn(e, r.fluent);
584
+ return !n && !(typeof window > "u") && (r._fluent = u), u;
585
+ }
586
+ function Dn(e, t) {
587
+ if (t == null)
588
+ return e;
589
+ const n = ve(
590
+ () => Ir.from(
591
+ xr(e.bundles.value, (r) => Object.entries(t).map(([u, o]) => {
592
+ const s = u.split(/[\s+,]/);
593
+ if (r.locales.filter((h) => s.includes(h)).length === 0)
594
+ return r;
595
+ const f = kr(s, r);
596
+ return f.addResource(o, { allowOverrides: !0 }), f;
597
+ }))
598
+ )
599
+ );
600
+ return new In(n, e.options);
601
+ }
602
+ var Pr = Symbol("root-context"), Nr = Object.create, kn = Object.defineProperty, Lr = Object.getOwnPropertyDescriptor, Ge = Object.getOwnPropertyNames, Vr = Object.getPrototypeOf, Fr = Object.prototype.hasOwnProperty, Br = (e, t) => function() {
603
+ return e && (t = (0, e[Ge(e)[0]])(e = 0)), t;
604
+ }, Ur = (e, t) => function() {
605
+ return t || (0, e[Ge(e)[0]])((t = { exports: {} }).exports, t), t.exports;
606
+ }, Mr = (e, t, n, r) => {
607
+ if (t && typeof t == "object" || typeof t == "function")
608
+ for (let u of Ge(t))
609
+ !Fr.call(e, u) && u !== n && kn(e, u, { get: () => t[u], enumerable: !(r = Lr(t, u)) || r.enumerable });
610
+ return e;
611
+ }, $r = (e, t, n) => (n = e != null ? Nr(Vr(e)) : {}, Mr(
612
+ // If the importer is in node compatibility mode or this is not an ESM
613
+ // file that has been converted to a CommonJS file using a Babel-
614
+ // compatible transform (i.e. "__esModule" has not been set), then set
615
+ // "default" to the CommonJS "module.exports" for node compatibility.
616
+ kn(n, "default", { value: e, enumerable: !0 }),
617
+ e
618
+ )), _e = Br({
619
+ "../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.48.1_@types+node@22.10.5__jiti@2.4.2_postcss@8.4.49_tsx_s7k37zks4wtn7x2grzma6lrsfa/node_modules/tsup/assets/esm_shims.js"() {
620
+ }
621
+ }), Kr = Ur({
622
+ "../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(e, t) {
623
+ _e(), t.exports = r;
624
+ function n(o) {
625
+ return o instanceof Buffer ? Buffer.from(o) : new o.constructor(o.buffer.slice(), o.byteOffset, o.length);
626
+ }
627
+ function r(o) {
628
+ if (o = o || {}, o.circles) return u(o);
629
+ const s = /* @__PURE__ */ new Map();
630
+ if (s.set(Date, (a) => new Date(a)), s.set(Map, (a, p) => new Map(f(Array.from(a), p))), s.set(Set, (a, p) => new Set(f(Array.from(a), p))), o.constructorHandlers)
631
+ for (const a of o.constructorHandlers)
632
+ s.set(a[0], a[1]);
633
+ let i = null;
634
+ return o.proto ? A : h;
635
+ function f(a, p) {
636
+ const c = Object.keys(a), _ = new Array(c.length);
637
+ for (let v = 0; v < c.length; v++) {
638
+ const E = c[v], g = a[E];
639
+ typeof g != "object" || g === null ? _[E] = g : g.constructor !== Object && (i = s.get(g.constructor)) ? _[E] = i(g, p) : ArrayBuffer.isView(g) ? _[E] = n(g) : _[E] = p(g);
640
+ }
641
+ return _;
642
+ }
643
+ function h(a) {
644
+ if (typeof a != "object" || a === null) return a;
645
+ if (Array.isArray(a)) return f(a, h);
646
+ if (a.constructor !== Object && (i = s.get(a.constructor)))
647
+ return i(a, h);
648
+ const p = {};
649
+ for (const c in a) {
650
+ if (Object.hasOwnProperty.call(a, c) === !1) continue;
651
+ const _ = a[c];
652
+ typeof _ != "object" || _ === null ? p[c] = _ : _.constructor !== Object && (i = s.get(_.constructor)) ? p[c] = i(_, h) : ArrayBuffer.isView(_) ? p[c] = n(_) : p[c] = h(_);
653
+ }
654
+ return p;
655
+ }
656
+ function A(a) {
657
+ if (typeof a != "object" || a === null) return a;
658
+ if (Array.isArray(a)) return f(a, A);
659
+ if (a.constructor !== Object && (i = s.get(a.constructor)))
660
+ return i(a, A);
661
+ const p = {};
662
+ for (const c in a) {
663
+ const _ = a[c];
664
+ typeof _ != "object" || _ === null ? p[c] = _ : _.constructor !== Object && (i = s.get(_.constructor)) ? p[c] = i(_, A) : ArrayBuffer.isView(_) ? p[c] = n(_) : p[c] = A(_);
665
+ }
666
+ return p;
667
+ }
668
+ }
669
+ function u(o) {
670
+ const s = [], i = [], f = /* @__PURE__ */ new Map();
671
+ if (f.set(Date, (c) => new Date(c)), f.set(Map, (c, _) => new Map(A(Array.from(c), _))), f.set(Set, (c, _) => new Set(A(Array.from(c), _))), o.constructorHandlers)
672
+ for (const c of o.constructorHandlers)
673
+ f.set(c[0], c[1]);
674
+ let h = null;
675
+ return o.proto ? p : a;
676
+ function A(c, _) {
677
+ const v = Object.keys(c), E = new Array(v.length);
678
+ for (let g = 0; g < v.length; g++) {
679
+ const O = v[g], b = c[O];
680
+ if (typeof b != "object" || b === null)
681
+ E[O] = b;
682
+ else if (b.constructor !== Object && (h = f.get(b.constructor)))
683
+ E[O] = h(b, _);
684
+ else if (ArrayBuffer.isView(b))
685
+ E[O] = n(b);
686
+ else {
687
+ const I = s.indexOf(b);
688
+ I !== -1 ? E[O] = i[I] : E[O] = _(b);
689
+ }
690
+ }
691
+ return E;
692
+ }
693
+ function a(c) {
694
+ if (typeof c != "object" || c === null) return c;
695
+ if (Array.isArray(c)) return A(c, a);
696
+ if (c.constructor !== Object && (h = f.get(c.constructor)))
697
+ return h(c, a);
698
+ const _ = {};
699
+ s.push(c), i.push(_);
700
+ for (const v in c) {
701
+ if (Object.hasOwnProperty.call(c, v) === !1) continue;
702
+ const E = c[v];
703
+ if (typeof E != "object" || E === null)
704
+ _[v] = E;
705
+ else if (E.constructor !== Object && (h = f.get(E.constructor)))
706
+ _[v] = h(E, a);
707
+ else if (ArrayBuffer.isView(E))
708
+ _[v] = n(E);
709
+ else {
710
+ const g = s.indexOf(E);
711
+ g !== -1 ? _[v] = i[g] : _[v] = a(E);
712
+ }
713
+ }
714
+ return s.pop(), i.pop(), _;
715
+ }
716
+ function p(c) {
717
+ if (typeof c != "object" || c === null) return c;
718
+ if (Array.isArray(c)) return A(c, p);
719
+ if (c.constructor !== Object && (h = f.get(c.constructor)))
720
+ return h(c, p);
721
+ const _ = {};
722
+ s.push(c), i.push(_);
723
+ for (const v in c) {
724
+ const E = c[v];
725
+ if (typeof E != "object" || E === null)
726
+ _[v] = E;
727
+ else if (E.constructor !== Object && (h = f.get(E.constructor)))
728
+ _[v] = h(E, p);
729
+ else if (ArrayBuffer.isView(E))
730
+ _[v] = n(E);
731
+ else {
732
+ const g = s.indexOf(E);
733
+ g !== -1 ? _[v] = i[g] : _[v] = p(E);
734
+ }
735
+ }
736
+ return s.pop(), i.pop(), _;
737
+ }
738
+ }
739
+ }
740
+ });
741
+ _e();
742
+ _e();
743
+ _e();
744
+ var zr = typeof navigator < "u", m = typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : typeof global < "u" ? global : {}, dt;
745
+ typeof navigator < "u" && ((dt = navigator.userAgent) == null || dt.toLowerCase().includes("electron"));
746
+ _e();
747
+ var Hr = $r(Kr()), jr = /(?:^|[-_/])(\w)/g;
748
+ function Gr(e, t) {
749
+ return t ? t.toUpperCase() : "";
750
+ }
751
+ function Wr(e) {
752
+ return e && `${e}`.replace(jr, Gr);
753
+ }
754
+ function qr(e, t) {
755
+ let n = e.replace(/^[a-z]:/i, "").replace(/\\/g, "/");
756
+ n.endsWith(`index${t}`) && (n = n.replace(`/index${t}`, t));
757
+ const r = n.lastIndexOf("/"), u = n.substring(r + 1);
758
+ {
759
+ const o = u.lastIndexOf(t);
760
+ return u.substring(0, o);
761
+ }
762
+ }
763
+ var _t = (0, Hr.default)({ circles: !0 });
764
+ const Yr = {
765
+ trailing: !0
766
+ };
767
+ function Q(e, t = 25, n = {}) {
768
+ if (n = { ...Yr, ...n }, !Number.isFinite(t))
769
+ throw new TypeError("Expected `wait` to be a finite number");
770
+ let r, u, o = [], s, i;
771
+ const f = (h, A) => (s = Zr(e, h, A), s.finally(() => {
772
+ if (s = null, n.trailing && i && !u) {
773
+ const a = f(h, i);
774
+ return i = null, a;
775
+ }
776
+ }), s);
777
+ return function(...h) {
778
+ return s ? (n.trailing && (i = h), s) : new Promise((A) => {
779
+ const a = !u && n.leading;
780
+ clearTimeout(u), u = setTimeout(() => {
781
+ u = null;
782
+ const p = n.leading ? r : f(this, h);
783
+ for (const c of o)
784
+ c(p);
785
+ o = [];
786
+ }, t), a ? (r = f(this, h), A(r)) : o.push(A);
787
+ });
788
+ };
789
+ }
790
+ async function Zr(e, t, n) {
791
+ return await e.apply(t, n);
792
+ }
793
+ function Ve(e, t = {}, n) {
794
+ for (const r in e) {
795
+ const u = e[r], o = n ? `${n}:${r}` : r;
796
+ typeof u == "object" && u !== null ? Ve(u, t, o) : typeof u == "function" && (t[o] = u);
797
+ }
798
+ return t;
799
+ }
800
+ const Xr = { run: (e) => e() }, Jr = () => Xr, Rn = typeof console.createTask < "u" ? console.createTask : Jr;
801
+ function Qr(e, t) {
802
+ const n = t.shift(), r = Rn(n);
803
+ return e.reduce(
804
+ (u, o) => u.then(() => r.run(() => o(...t))),
805
+ Promise.resolve()
806
+ );
807
+ }
808
+ function eu(e, t) {
809
+ const n = t.shift(), r = Rn(n);
810
+ return Promise.all(e.map((u) => r.run(() => u(...t))));
811
+ }
812
+ function De(e, t) {
813
+ for (const n of [...e])
814
+ n(t);
815
+ }
816
+ class tu {
817
+ constructor() {
818
+ this._hooks = {}, this._before = void 0, this._after = void 0, this._deprecatedMessages = void 0, this._deprecatedHooks = {}, this.hook = this.hook.bind(this), this.callHook = this.callHook.bind(this), this.callHookWith = this.callHookWith.bind(this);
819
+ }
820
+ hook(t, n, r = {}) {
821
+ if (!t || typeof n != "function")
822
+ return () => {
823
+ };
824
+ const u = t;
825
+ let o;
826
+ for (; this._deprecatedHooks[t]; )
827
+ o = this._deprecatedHooks[t], t = o.to;
828
+ if (o && !r.allowDeprecated) {
829
+ let s = o.message;
830
+ s || (s = `${u} hook has been deprecated` + (o.to ? `, please use ${o.to}` : "")), this._deprecatedMessages || (this._deprecatedMessages = /* @__PURE__ */ new Set()), this._deprecatedMessages.has(s) || (console.warn(s), this._deprecatedMessages.add(s));
831
+ }
832
+ if (!n.name)
833
+ try {
834
+ Object.defineProperty(n, "name", {
835
+ get: () => "_" + t.replace(/\W+/g, "_") + "_hook_cb",
836
+ configurable: !0
837
+ });
838
+ } catch {
839
+ }
840
+ return this._hooks[t] = this._hooks[t] || [], this._hooks[t].push(n), () => {
841
+ n && (this.removeHook(t, n), n = void 0);
842
+ };
843
+ }
844
+ hookOnce(t, n) {
845
+ let r, u = (...o) => (typeof r == "function" && r(), r = void 0, u = void 0, n(...o));
846
+ return r = this.hook(t, u), r;
847
+ }
848
+ removeHook(t, n) {
849
+ if (this._hooks[t]) {
850
+ const r = this._hooks[t].indexOf(n);
851
+ r !== -1 && this._hooks[t].splice(r, 1), this._hooks[t].length === 0 && delete this._hooks[t];
852
+ }
853
+ }
854
+ deprecateHook(t, n) {
855
+ this._deprecatedHooks[t] = typeof n == "string" ? { to: n } : n;
856
+ const r = this._hooks[t] || [];
857
+ delete this._hooks[t];
858
+ for (const u of r)
859
+ this.hook(t, u);
860
+ }
861
+ deprecateHooks(t) {
862
+ Object.assign(this._deprecatedHooks, t);
863
+ for (const n in t)
864
+ this.deprecateHook(n, t[n]);
865
+ }
866
+ addHooks(t) {
867
+ const n = Ve(t), r = Object.keys(n).map(
868
+ (u) => this.hook(u, n[u])
869
+ );
870
+ return () => {
871
+ for (const u of r.splice(0, r.length))
872
+ u();
873
+ };
874
+ }
875
+ removeHooks(t) {
876
+ const n = Ve(t);
877
+ for (const r in n)
878
+ this.removeHook(r, n[r]);
879
+ }
880
+ removeAllHooks() {
881
+ for (const t in this._hooks)
882
+ delete this._hooks[t];
883
+ }
884
+ callHook(t, ...n) {
885
+ return n.unshift(t), this.callHookWith(Qr, t, ...n);
886
+ }
887
+ callHookParallel(t, ...n) {
888
+ return n.unshift(t), this.callHookWith(eu, t, ...n);
889
+ }
890
+ callHookWith(t, n, ...r) {
891
+ const u = this._before || this._after ? { name: n, args: r, context: {} } : void 0;
892
+ this._before && De(this._before, u);
893
+ const o = t(
894
+ n in this._hooks ? [...this._hooks[n]] : [],
895
+ r
896
+ );
897
+ return o instanceof Promise ? o.finally(() => {
898
+ this._after && u && De(this._after, u);
899
+ }) : (this._after && u && De(this._after, u), o);
900
+ }
901
+ beforeEach(t) {
902
+ return this._before = this._before || [], this._before.push(t), () => {
903
+ if (this._before !== void 0) {
904
+ const n = this._before.indexOf(t);
905
+ n !== -1 && this._before.splice(n, 1);
906
+ }
907
+ };
908
+ }
909
+ afterEach(t) {
910
+ return this._after = this._after || [], this._after.push(t), () => {
911
+ if (this._after !== void 0) {
912
+ const n = this._after.indexOf(t);
913
+ n !== -1 && this._after.splice(n, 1);
914
+ }
915
+ };
916
+ }
917
+ }
918
+ function xn() {
919
+ return new tu();
920
+ }
921
+ var nu = Object.create, Pn = Object.defineProperty, ru = Object.getOwnPropertyDescriptor, We = Object.getOwnPropertyNames, uu = Object.getPrototypeOf, ou = Object.prototype.hasOwnProperty, su = (e, t) => function() {
922
+ return e && (t = (0, e[We(e)[0]])(e = 0)), t;
923
+ }, Nn = (e, t) => function() {
924
+ return t || (0, e[We(e)[0]])((t = { exports: {} }).exports, t), t.exports;
925
+ }, iu = (e, t, n, r) => {
926
+ if (t && typeof t == "object" || typeof t == "function")
927
+ for (let u of We(t))
928
+ !ou.call(e, u) && u !== n && Pn(e, u, { get: () => t[u], enumerable: !(r = ru(t, u)) || r.enumerable });
929
+ return e;
930
+ }, au = (e, t, n) => (n = e != null ? nu(uu(e)) : {}, iu(
931
+ // If the importer is in node compatibility mode or this is not an ESM
932
+ // file that has been converted to a CommonJS file using a Babel-
933
+ // compatible transform (i.e. "__esModule" has not been set), then set
934
+ // "default" to the CommonJS "module.exports" for node compatibility.
935
+ Pn(n, "default", { value: e, enumerable: !0 }),
936
+ e
937
+ )), l = su({
938
+ "../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.48.1_@types+node@22.10.5__jiti@2.4.2_postcss@8.4.49_tsx_s7k37zks4wtn7x2grzma6lrsfa/node_modules/tsup/assets/esm_shims.js"() {
939
+ }
940
+ }), lu = Nn({
941
+ "../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(e, t) {
942
+ l(), function(n) {
943
+ var r = {
944
+ // latin
945
+ À: "A",
946
+ Á: "A",
947
+ Â: "A",
948
+ Ã: "A",
949
+ Ä: "Ae",
950
+ Å: "A",
951
+ Æ: "AE",
952
+ Ç: "C",
953
+ È: "E",
954
+ É: "E",
955
+ Ê: "E",
956
+ Ë: "E",
957
+ Ì: "I",
958
+ Í: "I",
959
+ Î: "I",
960
+ Ï: "I",
961
+ Ð: "D",
962
+ Ñ: "N",
963
+ Ò: "O",
964
+ Ó: "O",
965
+ Ô: "O",
966
+ Õ: "O",
967
+ Ö: "Oe",
968
+ Ő: "O",
969
+ Ø: "O",
970
+ Ù: "U",
971
+ Ú: "U",
972
+ Û: "U",
973
+ Ü: "Ue",
974
+ Ű: "U",
975
+ Ý: "Y",
976
+ Þ: "TH",
977
+ ß: "ss",
978
+ à: "a",
979
+ á: "a",
980
+ â: "a",
981
+ ã: "a",
982
+ ä: "ae",
983
+ å: "a",
984
+ æ: "ae",
985
+ ç: "c",
986
+ è: "e",
987
+ é: "e",
988
+ ê: "e",
989
+ ë: "e",
990
+ ì: "i",
991
+ í: "i",
992
+ î: "i",
993
+ ï: "i",
994
+ ð: "d",
995
+ ñ: "n",
996
+ ò: "o",
997
+ ó: "o",
998
+ ô: "o",
999
+ õ: "o",
1000
+ ö: "oe",
1001
+ ő: "o",
1002
+ ø: "o",
1003
+ ù: "u",
1004
+ ú: "u",
1005
+ û: "u",
1006
+ ü: "ue",
1007
+ ű: "u",
1008
+ ý: "y",
1009
+ þ: "th",
1010
+ ÿ: "y",
1011
+ "ẞ": "SS",
1012
+ // language specific
1013
+ // Arabic
1014
+ ا: "a",
1015
+ أ: "a",
1016
+ إ: "i",
1017
+ آ: "aa",
1018
+ ؤ: "u",
1019
+ ئ: "e",
1020
+ ء: "a",
1021
+ ب: "b",
1022
+ ت: "t",
1023
+ ث: "th",
1024
+ ج: "j",
1025
+ ح: "h",
1026
+ خ: "kh",
1027
+ د: "d",
1028
+ ذ: "th",
1029
+ ر: "r",
1030
+ ز: "z",
1031
+ س: "s",
1032
+ ش: "sh",
1033
+ ص: "s",
1034
+ ض: "dh",
1035
+ ط: "t",
1036
+ ظ: "z",
1037
+ ع: "a",
1038
+ غ: "gh",
1039
+ ف: "f",
1040
+ ق: "q",
1041
+ ك: "k",
1042
+ ل: "l",
1043
+ م: "m",
1044
+ ن: "n",
1045
+ ه: "h",
1046
+ و: "w",
1047
+ ي: "y",
1048
+ ى: "a",
1049
+ ة: "h",
1050
+ ﻻ: "la",
1051
+ ﻷ: "laa",
1052
+ ﻹ: "lai",
1053
+ ﻵ: "laa",
1054
+ // Persian additional characters than Arabic
1055
+ گ: "g",
1056
+ چ: "ch",
1057
+ پ: "p",
1058
+ ژ: "zh",
1059
+ ک: "k",
1060
+ ی: "y",
1061
+ // Arabic diactrics
1062
+ "َ": "a",
1063
+ "ً": "an",
1064
+ "ِ": "e",
1065
+ "ٍ": "en",
1066
+ "ُ": "u",
1067
+ "ٌ": "on",
1068
+ "ْ": "",
1069
+ // Arabic numbers
1070
+ "٠": "0",
1071
+ "١": "1",
1072
+ "٢": "2",
1073
+ "٣": "3",
1074
+ "٤": "4",
1075
+ "٥": "5",
1076
+ "٦": "6",
1077
+ "٧": "7",
1078
+ "٨": "8",
1079
+ "٩": "9",
1080
+ // Persian numbers
1081
+ "۰": "0",
1082
+ "۱": "1",
1083
+ "۲": "2",
1084
+ "۳": "3",
1085
+ "۴": "4",
1086
+ "۵": "5",
1087
+ "۶": "6",
1088
+ "۷": "7",
1089
+ "۸": "8",
1090
+ "۹": "9",
1091
+ // Burmese consonants
1092
+ က: "k",
1093
+ ခ: "kh",
1094
+ ဂ: "g",
1095
+ ဃ: "ga",
1096
+ င: "ng",
1097
+ စ: "s",
1098
+ ဆ: "sa",
1099
+ ဇ: "z",
1100
+ "စျ": "za",
1101
+ ည: "ny",
1102
+ ဋ: "t",
1103
+ ဌ: "ta",
1104
+ ဍ: "d",
1105
+ ဎ: "da",
1106
+ ဏ: "na",
1107
+ တ: "t",
1108
+ ထ: "ta",
1109
+ ဒ: "d",
1110
+ ဓ: "da",
1111
+ န: "n",
1112
+ ပ: "p",
1113
+ ဖ: "pa",
1114
+ ဗ: "b",
1115
+ ဘ: "ba",
1116
+ မ: "m",
1117
+ ယ: "y",
1118
+ ရ: "ya",
1119
+ လ: "l",
1120
+ ဝ: "w",
1121
+ သ: "th",
1122
+ ဟ: "h",
1123
+ ဠ: "la",
1124
+ အ: "a",
1125
+ // consonant character combos
1126
+ "ြ": "y",
1127
+ "ျ": "ya",
1128
+ "ွ": "w",
1129
+ "ြွ": "yw",
1130
+ "ျွ": "ywa",
1131
+ "ှ": "h",
1132
+ // independent vowels
1133
+ ဧ: "e",
1134
+ "၏": "-e",
1135
+ ဣ: "i",
1136
+ ဤ: "-i",
1137
+ ဉ: "u",
1138
+ ဦ: "-u",
1139
+ ဩ: "aw",
1140
+ "သြော": "aw",
1141
+ ဪ: "aw",
1142
+ // numbers
1143
+ "၀": "0",
1144
+ "၁": "1",
1145
+ "၂": "2",
1146
+ "၃": "3",
1147
+ "၄": "4",
1148
+ "၅": "5",
1149
+ "၆": "6",
1150
+ "၇": "7",
1151
+ "၈": "8",
1152
+ "၉": "9",
1153
+ // virama and tone marks which are silent in transliteration
1154
+ "္": "",
1155
+ "့": "",
1156
+ "း": "",
1157
+ // Czech
1158
+ č: "c",
1159
+ ď: "d",
1160
+ ě: "e",
1161
+ ň: "n",
1162
+ ř: "r",
1163
+ š: "s",
1164
+ ť: "t",
1165
+ ů: "u",
1166
+ ž: "z",
1167
+ Č: "C",
1168
+ Ď: "D",
1169
+ Ě: "E",
1170
+ Ň: "N",
1171
+ Ř: "R",
1172
+ Š: "S",
1173
+ Ť: "T",
1174
+ Ů: "U",
1175
+ Ž: "Z",
1176
+ // Dhivehi
1177
+ ހ: "h",
1178
+ ށ: "sh",
1179
+ ނ: "n",
1180
+ ރ: "r",
1181
+ ބ: "b",
1182
+ ޅ: "lh",
1183
+ ކ: "k",
1184
+ އ: "a",
1185
+ ވ: "v",
1186
+ މ: "m",
1187
+ ފ: "f",
1188
+ ދ: "dh",
1189
+ ތ: "th",
1190
+ ލ: "l",
1191
+ ގ: "g",
1192
+ ޏ: "gn",
1193
+ ސ: "s",
1194
+ ޑ: "d",
1195
+ ޒ: "z",
1196
+ ޓ: "t",
1197
+ ޔ: "y",
1198
+ ޕ: "p",
1199
+ ޖ: "j",
1200
+ ޗ: "ch",
1201
+ ޘ: "tt",
1202
+ ޙ: "hh",
1203
+ ޚ: "kh",
1204
+ ޛ: "th",
1205
+ ޜ: "z",
1206
+ ޝ: "sh",
1207
+ ޞ: "s",
1208
+ ޟ: "d",
1209
+ ޠ: "t",
1210
+ ޡ: "z",
1211
+ ޢ: "a",
1212
+ ޣ: "gh",
1213
+ ޤ: "q",
1214
+ ޥ: "w",
1215
+ "ަ": "a",
1216
+ "ާ": "aa",
1217
+ "ި": "i",
1218
+ "ީ": "ee",
1219
+ "ު": "u",
1220
+ "ޫ": "oo",
1221
+ "ެ": "e",
1222
+ "ޭ": "ey",
1223
+ "ޮ": "o",
1224
+ "ޯ": "oa",
1225
+ "ް": "",
1226
+ // Georgian https://en.wikipedia.org/wiki/Romanization_of_Georgian
1227
+ // National system (2002)
1228
+ ა: "a",
1229
+ ბ: "b",
1230
+ გ: "g",
1231
+ დ: "d",
1232
+ ე: "e",
1233
+ ვ: "v",
1234
+ ზ: "z",
1235
+ თ: "t",
1236
+ ი: "i",
1237
+ კ: "k",
1238
+ ლ: "l",
1239
+ მ: "m",
1240
+ ნ: "n",
1241
+ ო: "o",
1242
+ პ: "p",
1243
+ ჟ: "zh",
1244
+ რ: "r",
1245
+ ს: "s",
1246
+ ტ: "t",
1247
+ უ: "u",
1248
+ ფ: "p",
1249
+ ქ: "k",
1250
+ ღ: "gh",
1251
+ ყ: "q",
1252
+ შ: "sh",
1253
+ ჩ: "ch",
1254
+ ც: "ts",
1255
+ ძ: "dz",
1256
+ წ: "ts",
1257
+ ჭ: "ch",
1258
+ ხ: "kh",
1259
+ ჯ: "j",
1260
+ ჰ: "h",
1261
+ // Greek
1262
+ α: "a",
1263
+ β: "v",
1264
+ γ: "g",
1265
+ δ: "d",
1266
+ ε: "e",
1267
+ ζ: "z",
1268
+ η: "i",
1269
+ θ: "th",
1270
+ ι: "i",
1271
+ κ: "k",
1272
+ λ: "l",
1273
+ μ: "m",
1274
+ ν: "n",
1275
+ ξ: "ks",
1276
+ ο: "o",
1277
+ π: "p",
1278
+ ρ: "r",
1279
+ σ: "s",
1280
+ τ: "t",
1281
+ υ: "y",
1282
+ φ: "f",
1283
+ χ: "x",
1284
+ ψ: "ps",
1285
+ ω: "o",
1286
+ ά: "a",
1287
+ έ: "e",
1288
+ ί: "i",
1289
+ ό: "o",
1290
+ ύ: "y",
1291
+ ή: "i",
1292
+ ώ: "o",
1293
+ ς: "s",
1294
+ ϊ: "i",
1295
+ ΰ: "y",
1296
+ ϋ: "y",
1297
+ ΐ: "i",
1298
+ Α: "A",
1299
+ Β: "B",
1300
+ Γ: "G",
1301
+ Δ: "D",
1302
+ Ε: "E",
1303
+ Ζ: "Z",
1304
+ Η: "I",
1305
+ Θ: "TH",
1306
+ Ι: "I",
1307
+ Κ: "K",
1308
+ Λ: "L",
1309
+ Μ: "M",
1310
+ Ν: "N",
1311
+ Ξ: "KS",
1312
+ Ο: "O",
1313
+ Π: "P",
1314
+ Ρ: "R",
1315
+ Σ: "S",
1316
+ Τ: "T",
1317
+ Υ: "Y",
1318
+ Φ: "F",
1319
+ Χ: "X",
1320
+ Ψ: "PS",
1321
+ Ω: "O",
1322
+ Ά: "A",
1323
+ Έ: "E",
1324
+ Ί: "I",
1325
+ Ό: "O",
1326
+ Ύ: "Y",
1327
+ Ή: "I",
1328
+ Ώ: "O",
1329
+ Ϊ: "I",
1330
+ Ϋ: "Y",
1331
+ // Latvian
1332
+ ā: "a",
1333
+ // 'č': 'c', // duplicate
1334
+ ē: "e",
1335
+ ģ: "g",
1336
+ ī: "i",
1337
+ ķ: "k",
1338
+ ļ: "l",
1339
+ ņ: "n",
1340
+ // 'š': 's', // duplicate
1341
+ ū: "u",
1342
+ // 'ž': 'z', // duplicate
1343
+ Ā: "A",
1344
+ // 'Č': 'C', // duplicate
1345
+ Ē: "E",
1346
+ Ģ: "G",
1347
+ Ī: "I",
1348
+ Ķ: "k",
1349
+ Ļ: "L",
1350
+ Ņ: "N",
1351
+ // 'Š': 'S', // duplicate
1352
+ Ū: "U",
1353
+ // 'Ž': 'Z', // duplicate
1354
+ // Macedonian
1355
+ Ќ: "Kj",
1356
+ ќ: "kj",
1357
+ Љ: "Lj",
1358
+ љ: "lj",
1359
+ Њ: "Nj",
1360
+ њ: "nj",
1361
+ Тс: "Ts",
1362
+ тс: "ts",
1363
+ // Polish
1364
+ ą: "a",
1365
+ ć: "c",
1366
+ ę: "e",
1367
+ ł: "l",
1368
+ ń: "n",
1369
+ // 'ó': 'o', // duplicate
1370
+ ś: "s",
1371
+ ź: "z",
1372
+ ż: "z",
1373
+ Ą: "A",
1374
+ Ć: "C",
1375
+ Ę: "E",
1376
+ Ł: "L",
1377
+ Ń: "N",
1378
+ Ś: "S",
1379
+ Ź: "Z",
1380
+ Ż: "Z",
1381
+ // Ukranian
1382
+ Є: "Ye",
1383
+ І: "I",
1384
+ Ї: "Yi",
1385
+ Ґ: "G",
1386
+ є: "ye",
1387
+ і: "i",
1388
+ ї: "yi",
1389
+ ґ: "g",
1390
+ // Romanian
1391
+ ă: "a",
1392
+ Ă: "A",
1393
+ ș: "s",
1394
+ Ș: "S",
1395
+ // 'ş': 's', // duplicate
1396
+ // 'Ş': 'S', // duplicate
1397
+ ț: "t",
1398
+ Ț: "T",
1399
+ ţ: "t",
1400
+ Ţ: "T",
1401
+ // Russian https://en.wikipedia.org/wiki/Romanization_of_Russian
1402
+ // ICAO
1403
+ а: "a",
1404
+ б: "b",
1405
+ в: "v",
1406
+ г: "g",
1407
+ д: "d",
1408
+ е: "e",
1409
+ ё: "yo",
1410
+ ж: "zh",
1411
+ з: "z",
1412
+ и: "i",
1413
+ й: "i",
1414
+ к: "k",
1415
+ л: "l",
1416
+ м: "m",
1417
+ н: "n",
1418
+ о: "o",
1419
+ п: "p",
1420
+ р: "r",
1421
+ с: "s",
1422
+ т: "t",
1423
+ у: "u",
1424
+ ф: "f",
1425
+ х: "kh",
1426
+ ц: "c",
1427
+ ч: "ch",
1428
+ ш: "sh",
1429
+ щ: "sh",
1430
+ ъ: "",
1431
+ ы: "y",
1432
+ ь: "",
1433
+ э: "e",
1434
+ ю: "yu",
1435
+ я: "ya",
1436
+ А: "A",
1437
+ Б: "B",
1438
+ В: "V",
1439
+ Г: "G",
1440
+ Д: "D",
1441
+ Е: "E",
1442
+ Ё: "Yo",
1443
+ Ж: "Zh",
1444
+ З: "Z",
1445
+ И: "I",
1446
+ Й: "I",
1447
+ К: "K",
1448
+ Л: "L",
1449
+ М: "M",
1450
+ Н: "N",
1451
+ О: "O",
1452
+ П: "P",
1453
+ Р: "R",
1454
+ С: "S",
1455
+ Т: "T",
1456
+ У: "U",
1457
+ Ф: "F",
1458
+ Х: "Kh",
1459
+ Ц: "C",
1460
+ Ч: "Ch",
1461
+ Ш: "Sh",
1462
+ Щ: "Sh",
1463
+ Ъ: "",
1464
+ Ы: "Y",
1465
+ Ь: "",
1466
+ Э: "E",
1467
+ Ю: "Yu",
1468
+ Я: "Ya",
1469
+ // Serbian
1470
+ ђ: "dj",
1471
+ ј: "j",
1472
+ // 'љ': 'lj', // duplicate
1473
+ // 'њ': 'nj', // duplicate
1474
+ ћ: "c",
1475
+ џ: "dz",
1476
+ Ђ: "Dj",
1477
+ Ј: "j",
1478
+ // 'Љ': 'Lj', // duplicate
1479
+ // 'Њ': 'Nj', // duplicate
1480
+ Ћ: "C",
1481
+ Џ: "Dz",
1482
+ // Slovak
1483
+ ľ: "l",
1484
+ ĺ: "l",
1485
+ ŕ: "r",
1486
+ Ľ: "L",
1487
+ Ĺ: "L",
1488
+ Ŕ: "R",
1489
+ // Turkish
1490
+ ş: "s",
1491
+ Ş: "S",
1492
+ ı: "i",
1493
+ İ: "I",
1494
+ // 'ç': 'c', // duplicate
1495
+ // 'Ç': 'C', // duplicate
1496
+ // 'ü': 'u', // duplicate, see langCharMap
1497
+ // 'Ü': 'U', // duplicate, see langCharMap
1498
+ // 'ö': 'o', // duplicate, see langCharMap
1499
+ // 'Ö': 'O', // duplicate, see langCharMap
1500
+ ğ: "g",
1501
+ Ğ: "G",
1502
+ // Vietnamese
1503
+ ả: "a",
1504
+ Ả: "A",
1505
+ ẳ: "a",
1506
+ Ẳ: "A",
1507
+ ẩ: "a",
1508
+ Ẩ: "A",
1509
+ đ: "d",
1510
+ Đ: "D",
1511
+ ẹ: "e",
1512
+ Ẹ: "E",
1513
+ ẽ: "e",
1514
+ Ẽ: "E",
1515
+ ẻ: "e",
1516
+ Ẻ: "E",
1517
+ ế: "e",
1518
+ Ế: "E",
1519
+ ề: "e",
1520
+ Ề: "E",
1521
+ ệ: "e",
1522
+ Ệ: "E",
1523
+ ễ: "e",
1524
+ Ễ: "E",
1525
+ ể: "e",
1526
+ Ể: "E",
1527
+ ỏ: "o",
1528
+ ọ: "o",
1529
+ Ọ: "o",
1530
+ ố: "o",
1531
+ Ố: "O",
1532
+ ồ: "o",
1533
+ Ồ: "O",
1534
+ ổ: "o",
1535
+ Ổ: "O",
1536
+ ộ: "o",
1537
+ Ộ: "O",
1538
+ ỗ: "o",
1539
+ Ỗ: "O",
1540
+ ơ: "o",
1541
+ Ơ: "O",
1542
+ ớ: "o",
1543
+ Ớ: "O",
1544
+ ờ: "o",
1545
+ Ờ: "O",
1546
+ ợ: "o",
1547
+ Ợ: "O",
1548
+ ỡ: "o",
1549
+ Ỡ: "O",
1550
+ Ở: "o",
1551
+ ở: "o",
1552
+ ị: "i",
1553
+ Ị: "I",
1554
+ ĩ: "i",
1555
+ Ĩ: "I",
1556
+ ỉ: "i",
1557
+ Ỉ: "i",
1558
+ ủ: "u",
1559
+ Ủ: "U",
1560
+ ụ: "u",
1561
+ Ụ: "U",
1562
+ ũ: "u",
1563
+ Ũ: "U",
1564
+ ư: "u",
1565
+ Ư: "U",
1566
+ ứ: "u",
1567
+ Ứ: "U",
1568
+ ừ: "u",
1569
+ Ừ: "U",
1570
+ ự: "u",
1571
+ Ự: "U",
1572
+ ữ: "u",
1573
+ Ữ: "U",
1574
+ ử: "u",
1575
+ Ử: "ư",
1576
+ ỷ: "y",
1577
+ Ỷ: "y",
1578
+ ỳ: "y",
1579
+ Ỳ: "Y",
1580
+ ỵ: "y",
1581
+ Ỵ: "Y",
1582
+ ỹ: "y",
1583
+ Ỹ: "Y",
1584
+ ạ: "a",
1585
+ Ạ: "A",
1586
+ ấ: "a",
1587
+ Ấ: "A",
1588
+ ầ: "a",
1589
+ Ầ: "A",
1590
+ ậ: "a",
1591
+ Ậ: "A",
1592
+ ẫ: "a",
1593
+ Ẫ: "A",
1594
+ // 'ă': 'a', // duplicate
1595
+ // 'Ă': 'A', // duplicate
1596
+ ắ: "a",
1597
+ Ắ: "A",
1598
+ ằ: "a",
1599
+ Ằ: "A",
1600
+ ặ: "a",
1601
+ Ặ: "A",
1602
+ ẵ: "a",
1603
+ Ẵ: "A",
1604
+ "⓪": "0",
1605
+ "①": "1",
1606
+ "②": "2",
1607
+ "③": "3",
1608
+ "④": "4",
1609
+ "⑤": "5",
1610
+ "⑥": "6",
1611
+ "⑦": "7",
1612
+ "⑧": "8",
1613
+ "⑨": "9",
1614
+ "⑩": "10",
1615
+ "⑪": "11",
1616
+ "⑫": "12",
1617
+ "⑬": "13",
1618
+ "⑭": "14",
1619
+ "⑮": "15",
1620
+ "⑯": "16",
1621
+ "⑰": "17",
1622
+ "⑱": "18",
1623
+ "⑲": "18",
1624
+ "⑳": "18",
1625
+ "⓵": "1",
1626
+ "⓶": "2",
1627
+ "⓷": "3",
1628
+ "⓸": "4",
1629
+ "⓹": "5",
1630
+ "⓺": "6",
1631
+ "⓻": "7",
1632
+ "⓼": "8",
1633
+ "⓽": "9",
1634
+ "⓾": "10",
1635
+ "⓿": "0",
1636
+ "⓫": "11",
1637
+ "⓬": "12",
1638
+ "⓭": "13",
1639
+ "⓮": "14",
1640
+ "⓯": "15",
1641
+ "⓰": "16",
1642
+ "⓱": "17",
1643
+ "⓲": "18",
1644
+ "⓳": "19",
1645
+ "⓴": "20",
1646
+ "Ⓐ": "A",
1647
+ "Ⓑ": "B",
1648
+ "Ⓒ": "C",
1649
+ "Ⓓ": "D",
1650
+ "Ⓔ": "E",
1651
+ "Ⓕ": "F",
1652
+ "Ⓖ": "G",
1653
+ "Ⓗ": "H",
1654
+ "Ⓘ": "I",
1655
+ "Ⓙ": "J",
1656
+ "Ⓚ": "K",
1657
+ "Ⓛ": "L",
1658
+ "Ⓜ": "M",
1659
+ "Ⓝ": "N",
1660
+ "Ⓞ": "O",
1661
+ "Ⓟ": "P",
1662
+ "Ⓠ": "Q",
1663
+ "Ⓡ": "R",
1664
+ "Ⓢ": "S",
1665
+ "Ⓣ": "T",
1666
+ "Ⓤ": "U",
1667
+ "Ⓥ": "V",
1668
+ "Ⓦ": "W",
1669
+ "Ⓧ": "X",
1670
+ "Ⓨ": "Y",
1671
+ "Ⓩ": "Z",
1672
+ "ⓐ": "a",
1673
+ "ⓑ": "b",
1674
+ "ⓒ": "c",
1675
+ "ⓓ": "d",
1676
+ "ⓔ": "e",
1677
+ "ⓕ": "f",
1678
+ "ⓖ": "g",
1679
+ "ⓗ": "h",
1680
+ "ⓘ": "i",
1681
+ "ⓙ": "j",
1682
+ "ⓚ": "k",
1683
+ "ⓛ": "l",
1684
+ "ⓜ": "m",
1685
+ "ⓝ": "n",
1686
+ "ⓞ": "o",
1687
+ "ⓟ": "p",
1688
+ "ⓠ": "q",
1689
+ "ⓡ": "r",
1690
+ "ⓢ": "s",
1691
+ "ⓣ": "t",
1692
+ "ⓤ": "u",
1693
+ "ⓦ": "v",
1694
+ "ⓥ": "w",
1695
+ "ⓧ": "x",
1696
+ "ⓨ": "y",
1697
+ "ⓩ": "z",
1698
+ // symbols
1699
+ "“": '"',
1700
+ "”": '"',
1701
+ "‘": "'",
1702
+ "’": "'",
1703
+ "∂": "d",
1704
+ ƒ: "f",
1705
+ "™": "(TM)",
1706
+ "©": "(C)",
1707
+ œ: "oe",
1708
+ Œ: "OE",
1709
+ "®": "(R)",
1710
+ "†": "+",
1711
+ "℠": "(SM)",
1712
+ "…": "...",
1713
+ "˚": "o",
1714
+ º: "o",
1715
+ ª: "a",
1716
+ "•": "*",
1717
+ "၊": ",",
1718
+ "။": ".",
1719
+ // currency
1720
+ $: "USD",
1721
+ "€": "EUR",
1722
+ "₢": "BRN",
1723
+ "₣": "FRF",
1724
+ "£": "GBP",
1725
+ "₤": "ITL",
1726
+ "₦": "NGN",
1727
+ "₧": "ESP",
1728
+ "₩": "KRW",
1729
+ "₪": "ILS",
1730
+ "₫": "VND",
1731
+ "₭": "LAK",
1732
+ "₮": "MNT",
1733
+ "₯": "GRD",
1734
+ "₱": "ARS",
1735
+ "₲": "PYG",
1736
+ "₳": "ARA",
1737
+ "₴": "UAH",
1738
+ "₵": "GHS",
1739
+ "¢": "cent",
1740
+ "¥": "CNY",
1741
+ 元: "CNY",
1742
+ 円: "YEN",
1743
+ "﷼": "IRR",
1744
+ "₠": "EWE",
1745
+ "฿": "THB",
1746
+ "₨": "INR",
1747
+ "₹": "INR",
1748
+ "₰": "PF",
1749
+ "₺": "TRY",
1750
+ "؋": "AFN",
1751
+ "₼": "AZN",
1752
+ лв: "BGN",
1753
+ "៛": "KHR",
1754
+ "₡": "CRC",
1755
+ "₸": "KZT",
1756
+ ден: "MKD",
1757
+ zł: "PLN",
1758
+ "₽": "RUB",
1759
+ "₾": "GEL"
1760
+ }, u = [
1761
+ // burmese
1762
+ "်",
1763
+ // Dhivehi
1764
+ "ް"
1765
+ ], o = {
1766
+ // Burmese
1767
+ // dependent vowels
1768
+ "ာ": "a",
1769
+ "ါ": "a",
1770
+ "ေ": "e",
1771
+ "ဲ": "e",
1772
+ "ိ": "i",
1773
+ "ီ": "i",
1774
+ "ို": "o",
1775
+ "ု": "u",
1776
+ "ူ": "u",
1777
+ "ေါင်": "aung",
1778
+ "ော": "aw",
1779
+ "ော်": "aw",
1780
+ "ေါ": "aw",
1781
+ "ေါ်": "aw",
1782
+ "်": "်",
1783
+ // this is special case but the character will be converted to latin in the code
1784
+ "က်": "et",
1785
+ "ိုက်": "aik",
1786
+ "ောက်": "auk",
1787
+ "င်": "in",
1788
+ "ိုင်": "aing",
1789
+ "ောင်": "aung",
1790
+ "စ်": "it",
1791
+ "ည်": "i",
1792
+ "တ်": "at",
1793
+ "ိတ်": "eik",
1794
+ "ုတ်": "ok",
1795
+ "ွတ်": "ut",
1796
+ "ေတ်": "it",
1797
+ "ဒ်": "d",
1798
+ "ိုဒ်": "ok",
1799
+ "ုဒ်": "ait",
1800
+ "န်": "an",
1801
+ "ာန်": "an",
1802
+ "ိန်": "ein",
1803
+ "ုန်": "on",
1804
+ "ွန်": "un",
1805
+ "ပ်": "at",
1806
+ "ိပ်": "eik",
1807
+ "ုပ်": "ok",
1808
+ "ွပ်": "ut",
1809
+ "န်ုပ်": "nub",
1810
+ "မ်": "an",
1811
+ "ိမ်": "ein",
1812
+ "ုမ်": "on",
1813
+ "ွမ်": "un",
1814
+ "ယ်": "e",
1815
+ "ိုလ်": "ol",
1816
+ "ဉ်": "in",
1817
+ "ံ": "an",
1818
+ "ိံ": "ein",
1819
+ "ုံ": "on",
1820
+ // Dhivehi
1821
+ "ައް": "ah",
1822
+ "ަށް": "ah"
1823
+ }, s = {
1824
+ en: {},
1825
+ // default language
1826
+ az: {
1827
+ // Azerbaijani
1828
+ ç: "c",
1829
+ ə: "e",
1830
+ ğ: "g",
1831
+ ı: "i",
1832
+ ö: "o",
1833
+ ş: "s",
1834
+ ü: "u",
1835
+ Ç: "C",
1836
+ Ə: "E",
1837
+ Ğ: "G",
1838
+ İ: "I",
1839
+ Ö: "O",
1840
+ Ş: "S",
1841
+ Ü: "U"
1842
+ },
1843
+ cs: {
1844
+ // Czech
1845
+ č: "c",
1846
+ ď: "d",
1847
+ ě: "e",
1848
+ ň: "n",
1849
+ ř: "r",
1850
+ š: "s",
1851
+ ť: "t",
1852
+ ů: "u",
1853
+ ž: "z",
1854
+ Č: "C",
1855
+ Ď: "D",
1856
+ Ě: "E",
1857
+ Ň: "N",
1858
+ Ř: "R",
1859
+ Š: "S",
1860
+ Ť: "T",
1861
+ Ů: "U",
1862
+ Ž: "Z"
1863
+ },
1864
+ fi: {
1865
+ // Finnish
1866
+ // 'å': 'a', duplicate see charMap/latin
1867
+ // 'Å': 'A', duplicate see charMap/latin
1868
+ ä: "a",
1869
+ // ok
1870
+ Ä: "A",
1871
+ // ok
1872
+ ö: "o",
1873
+ // ok
1874
+ Ö: "O"
1875
+ // ok
1876
+ },
1877
+ hu: {
1878
+ // Hungarian
1879
+ ä: "a",
1880
+ // ok
1881
+ Ä: "A",
1882
+ // ok
1883
+ // 'á': 'a', duplicate see charMap/latin
1884
+ // 'Á': 'A', duplicate see charMap/latin
1885
+ ö: "o",
1886
+ // ok
1887
+ Ö: "O",
1888
+ // ok
1889
+ // 'ő': 'o', duplicate see charMap/latin
1890
+ // 'Ő': 'O', duplicate see charMap/latin
1891
+ ü: "u",
1892
+ Ü: "U",
1893
+ ű: "u",
1894
+ Ű: "U"
1895
+ },
1896
+ lt: {
1897
+ // Lithuanian
1898
+ ą: "a",
1899
+ č: "c",
1900
+ ę: "e",
1901
+ ė: "e",
1902
+ į: "i",
1903
+ š: "s",
1904
+ ų: "u",
1905
+ ū: "u",
1906
+ ž: "z",
1907
+ Ą: "A",
1908
+ Č: "C",
1909
+ Ę: "E",
1910
+ Ė: "E",
1911
+ Į: "I",
1912
+ Š: "S",
1913
+ Ų: "U",
1914
+ Ū: "U"
1915
+ },
1916
+ lv: {
1917
+ // Latvian
1918
+ ā: "a",
1919
+ č: "c",
1920
+ ē: "e",
1921
+ ģ: "g",
1922
+ ī: "i",
1923
+ ķ: "k",
1924
+ ļ: "l",
1925
+ ņ: "n",
1926
+ š: "s",
1927
+ ū: "u",
1928
+ ž: "z",
1929
+ Ā: "A",
1930
+ Č: "C",
1931
+ Ē: "E",
1932
+ Ģ: "G",
1933
+ Ī: "i",
1934
+ Ķ: "k",
1935
+ Ļ: "L",
1936
+ Ņ: "N",
1937
+ Š: "S",
1938
+ Ū: "u",
1939
+ Ž: "Z"
1940
+ },
1941
+ pl: {
1942
+ // Polish
1943
+ ą: "a",
1944
+ ć: "c",
1945
+ ę: "e",
1946
+ ł: "l",
1947
+ ń: "n",
1948
+ ó: "o",
1949
+ ś: "s",
1950
+ ź: "z",
1951
+ ż: "z",
1952
+ Ą: "A",
1953
+ Ć: "C",
1954
+ Ę: "e",
1955
+ Ł: "L",
1956
+ Ń: "N",
1957
+ Ó: "O",
1958
+ Ś: "S",
1959
+ Ź: "Z",
1960
+ Ż: "Z"
1961
+ },
1962
+ sv: {
1963
+ // Swedish
1964
+ // 'å': 'a', duplicate see charMap/latin
1965
+ // 'Å': 'A', duplicate see charMap/latin
1966
+ ä: "a",
1967
+ // ok
1968
+ Ä: "A",
1969
+ // ok
1970
+ ö: "o",
1971
+ // ok
1972
+ Ö: "O"
1973
+ // ok
1974
+ },
1975
+ sk: {
1976
+ // Slovak
1977
+ ä: "a",
1978
+ Ä: "A"
1979
+ },
1980
+ sr: {
1981
+ // Serbian
1982
+ љ: "lj",
1983
+ њ: "nj",
1984
+ Љ: "Lj",
1985
+ Њ: "Nj",
1986
+ đ: "dj",
1987
+ Đ: "Dj"
1988
+ },
1989
+ tr: {
1990
+ // Turkish
1991
+ Ü: "U",
1992
+ Ö: "O",
1993
+ ü: "u",
1994
+ ö: "o"
1995
+ }
1996
+ }, i = {
1997
+ ar: {
1998
+ "∆": "delta",
1999
+ "∞": "la-nihaya",
2000
+ "♥": "hob",
2001
+ "&": "wa",
2002
+ "|": "aw",
2003
+ "<": "aqal-men",
2004
+ ">": "akbar-men",
2005
+ "∑": "majmou",
2006
+ "¤": "omla"
2007
+ },
2008
+ az: {},
2009
+ ca: {
2010
+ "∆": "delta",
2011
+ "∞": "infinit",
2012
+ "♥": "amor",
2013
+ "&": "i",
2014
+ "|": "o",
2015
+ "<": "menys que",
2016
+ ">": "mes que",
2017
+ "∑": "suma dels",
2018
+ "¤": "moneda"
2019
+ },
2020
+ cs: {
2021
+ "∆": "delta",
2022
+ "∞": "nekonecno",
2023
+ "♥": "laska",
2024
+ "&": "a",
2025
+ "|": "nebo",
2026
+ "<": "mensi nez",
2027
+ ">": "vetsi nez",
2028
+ "∑": "soucet",
2029
+ "¤": "mena"
2030
+ },
2031
+ de: {
2032
+ "∆": "delta",
2033
+ "∞": "unendlich",
2034
+ "♥": "Liebe",
2035
+ "&": "und",
2036
+ "|": "oder",
2037
+ "<": "kleiner als",
2038
+ ">": "groesser als",
2039
+ "∑": "Summe von",
2040
+ "¤": "Waehrung"
2041
+ },
2042
+ dv: {
2043
+ "∆": "delta",
2044
+ "∞": "kolunulaa",
2045
+ "♥": "loabi",
2046
+ "&": "aai",
2047
+ "|": "noonee",
2048
+ "<": "ah vure kuda",
2049
+ ">": "ah vure bodu",
2050
+ "∑": "jumula",
2051
+ "¤": "faisaa"
2052
+ },
2053
+ en: {
2054
+ "∆": "delta",
2055
+ "∞": "infinity",
2056
+ "♥": "love",
2057
+ "&": "and",
2058
+ "|": "or",
2059
+ "<": "less than",
2060
+ ">": "greater than",
2061
+ "∑": "sum",
2062
+ "¤": "currency"
2063
+ },
2064
+ es: {
2065
+ "∆": "delta",
2066
+ "∞": "infinito",
2067
+ "♥": "amor",
2068
+ "&": "y",
2069
+ "|": "u",
2070
+ "<": "menos que",
2071
+ ">": "mas que",
2072
+ "∑": "suma de los",
2073
+ "¤": "moneda"
2074
+ },
2075
+ fa: {
2076
+ "∆": "delta",
2077
+ "∞": "bi-nahayat",
2078
+ "♥": "eshgh",
2079
+ "&": "va",
2080
+ "|": "ya",
2081
+ "<": "kamtar-az",
2082
+ ">": "bishtar-az",
2083
+ "∑": "majmooe",
2084
+ "¤": "vahed"
2085
+ },
2086
+ fi: {
2087
+ "∆": "delta",
2088
+ "∞": "aarettomyys",
2089
+ "♥": "rakkaus",
2090
+ "&": "ja",
2091
+ "|": "tai",
2092
+ "<": "pienempi kuin",
2093
+ ">": "suurempi kuin",
2094
+ "∑": "summa",
2095
+ "¤": "valuutta"
2096
+ },
2097
+ fr: {
2098
+ "∆": "delta",
2099
+ "∞": "infiniment",
2100
+ "♥": "Amour",
2101
+ "&": "et",
2102
+ "|": "ou",
2103
+ "<": "moins que",
2104
+ ">": "superieure a",
2105
+ "∑": "somme des",
2106
+ "¤": "monnaie"
2107
+ },
2108
+ ge: {
2109
+ "∆": "delta",
2110
+ "∞": "usasruloba",
2111
+ "♥": "siqvaruli",
2112
+ "&": "da",
2113
+ "|": "an",
2114
+ "<": "naklebi",
2115
+ ">": "meti",
2116
+ "∑": "jami",
2117
+ "¤": "valuta"
2118
+ },
2119
+ gr: {},
2120
+ hu: {
2121
+ "∆": "delta",
2122
+ "∞": "vegtelen",
2123
+ "♥": "szerelem",
2124
+ "&": "es",
2125
+ "|": "vagy",
2126
+ "<": "kisebb mint",
2127
+ ">": "nagyobb mint",
2128
+ "∑": "szumma",
2129
+ "¤": "penznem"
2130
+ },
2131
+ it: {
2132
+ "∆": "delta",
2133
+ "∞": "infinito",
2134
+ "♥": "amore",
2135
+ "&": "e",
2136
+ "|": "o",
2137
+ "<": "minore di",
2138
+ ">": "maggiore di",
2139
+ "∑": "somma",
2140
+ "¤": "moneta"
2141
+ },
2142
+ lt: {
2143
+ "∆": "delta",
2144
+ "∞": "begalybe",
2145
+ "♥": "meile",
2146
+ "&": "ir",
2147
+ "|": "ar",
2148
+ "<": "maziau nei",
2149
+ ">": "daugiau nei",
2150
+ "∑": "suma",
2151
+ "¤": "valiuta"
2152
+ },
2153
+ lv: {
2154
+ "∆": "delta",
2155
+ "∞": "bezgaliba",
2156
+ "♥": "milestiba",
2157
+ "&": "un",
2158
+ "|": "vai",
2159
+ "<": "mazak neka",
2160
+ ">": "lielaks neka",
2161
+ "∑": "summa",
2162
+ "¤": "valuta"
2163
+ },
2164
+ my: {
2165
+ "∆": "kwahkhyaet",
2166
+ "∞": "asaonasme",
2167
+ "♥": "akhyait",
2168
+ "&": "nhin",
2169
+ "|": "tho",
2170
+ "<": "ngethaw",
2171
+ ">": "kyithaw",
2172
+ "∑": "paungld",
2173
+ "¤": "ngwekye"
2174
+ },
2175
+ mk: {},
2176
+ nl: {
2177
+ "∆": "delta",
2178
+ "∞": "oneindig",
2179
+ "♥": "liefde",
2180
+ "&": "en",
2181
+ "|": "of",
2182
+ "<": "kleiner dan",
2183
+ ">": "groter dan",
2184
+ "∑": "som",
2185
+ "¤": "valuta"
2186
+ },
2187
+ pl: {
2188
+ "∆": "delta",
2189
+ "∞": "nieskonczonosc",
2190
+ "♥": "milosc",
2191
+ "&": "i",
2192
+ "|": "lub",
2193
+ "<": "mniejsze niz",
2194
+ ">": "wieksze niz",
2195
+ "∑": "suma",
2196
+ "¤": "waluta"
2197
+ },
2198
+ pt: {
2199
+ "∆": "delta",
2200
+ "∞": "infinito",
2201
+ "♥": "amor",
2202
+ "&": "e",
2203
+ "|": "ou",
2204
+ "<": "menor que",
2205
+ ">": "maior que",
2206
+ "∑": "soma",
2207
+ "¤": "moeda"
2208
+ },
2209
+ ro: {
2210
+ "∆": "delta",
2211
+ "∞": "infinit",
2212
+ "♥": "dragoste",
2213
+ "&": "si",
2214
+ "|": "sau",
2215
+ "<": "mai mic ca",
2216
+ ">": "mai mare ca",
2217
+ "∑": "suma",
2218
+ "¤": "valuta"
2219
+ },
2220
+ ru: {
2221
+ "∆": "delta",
2222
+ "∞": "beskonechno",
2223
+ "♥": "lubov",
2224
+ "&": "i",
2225
+ "|": "ili",
2226
+ "<": "menshe",
2227
+ ">": "bolshe",
2228
+ "∑": "summa",
2229
+ "¤": "valjuta"
2230
+ },
2231
+ sk: {
2232
+ "∆": "delta",
2233
+ "∞": "nekonecno",
2234
+ "♥": "laska",
2235
+ "&": "a",
2236
+ "|": "alebo",
2237
+ "<": "menej ako",
2238
+ ">": "viac ako",
2239
+ "∑": "sucet",
2240
+ "¤": "mena"
2241
+ },
2242
+ sr: {},
2243
+ tr: {
2244
+ "∆": "delta",
2245
+ "∞": "sonsuzluk",
2246
+ "♥": "ask",
2247
+ "&": "ve",
2248
+ "|": "veya",
2249
+ "<": "kucuktur",
2250
+ ">": "buyuktur",
2251
+ "∑": "toplam",
2252
+ "¤": "para birimi"
2253
+ },
2254
+ uk: {
2255
+ "∆": "delta",
2256
+ "∞": "bezkinechnist",
2257
+ "♥": "lubov",
2258
+ "&": "i",
2259
+ "|": "abo",
2260
+ "<": "menshe",
2261
+ ">": "bilshe",
2262
+ "∑": "suma",
2263
+ "¤": "valjuta"
2264
+ },
2265
+ vn: {
2266
+ "∆": "delta",
2267
+ "∞": "vo cuc",
2268
+ "♥": "yeu",
2269
+ "&": "va",
2270
+ "|": "hoac",
2271
+ "<": "nho hon",
2272
+ ">": "lon hon",
2273
+ "∑": "tong",
2274
+ "¤": "tien te"
2275
+ }
2276
+ }, f = [";", "?", ":", "@", "&", "=", "+", "$", ",", "/"].join(""), h = [";", "?", ":", "@", "&", "=", "+", "$", ","].join(""), A = [".", "!", "~", "*", "'", "(", ")"].join(""), a = function(E, g) {
2277
+ var O = "-", b = "", I = "", z = !0, P = {}, G, H, d, y, S, V, N, k, rt, U, w, he, F, W, $ = "";
2278
+ if (typeof E != "string")
2279
+ return "";
2280
+ if (typeof g == "string" && (O = g), N = i.en, k = s.en, typeof g == "object") {
2281
+ G = g.maintainCase || !1, P = g.custom && typeof g.custom == "object" ? g.custom : P, d = +g.truncate > 1 && g.truncate || !1, y = g.uric || !1, S = g.uricNoSlash || !1, V = g.mark || !1, z = !(g.symbols === !1 || g.lang === !1), O = g.separator || O, y && ($ += f), S && ($ += h), V && ($ += A), N = g.lang && i[g.lang] && z ? i[g.lang] : z ? i.en : {}, k = g.lang && s[g.lang] ? s[g.lang] : g.lang === !1 || g.lang === !0 ? {} : s.en, g.titleCase && typeof g.titleCase.length == "number" && Array.prototype.toString.call(g.titleCase) ? (g.titleCase.forEach(function(L) {
2282
+ P[L + ""] = L + "";
2283
+ }), H = !0) : H = !!g.titleCase, g.custom && typeof g.custom.length == "number" && Array.prototype.toString.call(g.custom) && g.custom.forEach(function(L) {
2284
+ P[L + ""] = L + "";
2285
+ }), Object.keys(P).forEach(function(L) {
2286
+ var ue;
2287
+ L.length > 1 ? ue = new RegExp("\\b" + c(L) + "\\b", "gi") : ue = new RegExp(c(L), "gi"), E = E.replace(ue, P[L]);
2288
+ });
2289
+ for (w in P)
2290
+ $ += w;
2291
+ }
2292
+ for ($ += O, $ = c($), E = E.replace(/(^\s+|\s+$)/g, ""), F = !1, W = !1, U = 0, he = E.length; U < he; U++)
2293
+ w = E[U], _(w, P) ? F = !1 : k[w] ? (w = F && k[w].match(/[A-Za-z0-9]/) ? " " + k[w] : k[w], F = !1) : w in r ? (U + 1 < he && u.indexOf(E[U + 1]) >= 0 ? (I += w, w = "") : W === !0 ? (w = o[I] + r[w], I = "") : w = F && r[w].match(/[A-Za-z0-9]/) ? " " + r[w] : r[w], F = !1, W = !1) : w in o ? (I += w, w = "", U === he - 1 && (w = o[I]), W = !0) : /* process symbol chars */ N[w] && !(y && f.indexOf(w) !== -1) && !(S && h.indexOf(w) !== -1) ? (w = F || b.substr(-1).match(/[A-Za-z0-9]/) ? O + N[w] : N[w], w += E[U + 1] !== void 0 && E[U + 1].match(/[A-Za-z0-9]/) ? O : "", F = !0) : (W === !0 ? (w = o[I] + w, I = "", W = !1) : F && (/[A-Za-z0-9]/.test(w) || b.substr(-1).match(/A-Za-z0-9]/)) && (w = " " + w), F = !1), b += w.replace(new RegExp("[^\\w\\s" + $ + "_-]", "g"), O);
2294
+ return H && (b = b.replace(/(\w)(\S*)/g, function(L, ue, ut) {
2295
+ var Te = ue.toUpperCase() + (ut !== null ? ut : "");
2296
+ return Object.keys(P).indexOf(Te.toLowerCase()) < 0 ? Te : Te.toLowerCase();
2297
+ })), b = b.replace(/\s+/g, O).replace(new RegExp("\\" + O + "+", "g"), O).replace(new RegExp("(^\\" + O + "+|\\" + O + "+$)", "g"), ""), d && b.length > d && (rt = b.charAt(d) === O, b = b.slice(0, d), rt || (b = b.slice(0, b.lastIndexOf(O)))), !G && !H && (b = b.toLowerCase()), b;
2298
+ }, p = function(E) {
2299
+ return function(O) {
2300
+ return a(O, E);
2301
+ };
2302
+ }, c = function(E) {
2303
+ return E.replace(/[-\\^$*+?.()|[\]{}\/]/g, "\\$&");
2304
+ }, _ = function(v, E) {
2305
+ for (var g in E)
2306
+ if (E[g] === v)
2307
+ return !0;
2308
+ };
2309
+ if (typeof t < "u" && t.exports)
2310
+ t.exports = a, t.exports.createSlug = p;
2311
+ else if (typeof define < "u" && define.amd)
2312
+ define([], function() {
2313
+ return a;
2314
+ });
2315
+ else
2316
+ try {
2317
+ if (n.getSlug || n.createSlug)
2318
+ throw "speakingurl: globals exists /(getSlug|createSlug)/";
2319
+ n.getSlug = a, n.createSlug = p;
2320
+ } catch {
2321
+ }
2322
+ }(e);
2323
+ }
2324
+ }), cu = Nn({
2325
+ "../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e, t) {
2326
+ l(), t.exports = lu();
2327
+ }
2328
+ });
2329
+ l();
2330
+ l();
2331
+ l();
2332
+ l();
2333
+ l();
2334
+ l();
2335
+ l();
2336
+ l();
2337
+ function fu(e) {
2338
+ var t;
2339
+ const n = e.name || e._componentTag || e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ || e.__name;
2340
+ return n === "index" && ((t = e.__file) != null && t.endsWith("index.vue")) ? "" : n;
2341
+ }
2342
+ function du(e) {
2343
+ const t = e.__file;
2344
+ if (t)
2345
+ return Wr(qr(t, ".vue"));
2346
+ }
2347
+ function ht(e, t) {
2348
+ return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ = t, t;
2349
+ }
2350
+ function qe(e) {
2351
+ if (e.__VUE_DEVTOOLS_NEXT_APP_RECORD__)
2352
+ return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;
2353
+ if (e.root)
2354
+ return e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__;
2355
+ }
2356
+ function Ln(e) {
2357
+ var t, n;
2358
+ const r = (t = e.subTree) == null ? void 0 : t.type, u = qe(e);
2359
+ return u ? ((n = u == null ? void 0 : u.types) == null ? void 0 : n.Fragment) === r : !1;
2360
+ }
2361
+ function we(e) {
2362
+ var t, n, r;
2363
+ const u = fu((e == null ? void 0 : e.type) || {});
2364
+ if (u)
2365
+ return u;
2366
+ if ((e == null ? void 0 : e.root) === e)
2367
+ return "Root";
2368
+ for (const s in (n = (t = e.parent) == null ? void 0 : t.type) == null ? void 0 : n.components)
2369
+ if (e.parent.type.components[s] === (e == null ? void 0 : e.type))
2370
+ return ht(e, s);
2371
+ for (const s in (r = e.appContext) == null ? void 0 : r.components)
2372
+ if (e.appContext.components[s] === (e == null ? void 0 : e.type))
2373
+ return ht(e, s);
2374
+ const o = du((e == null ? void 0 : e.type) || {});
2375
+ return o || "Anonymous Component";
2376
+ }
2377
+ function _u(e) {
2378
+ var t, n, r;
2379
+ const u = (r = (n = (t = e == null ? void 0 : e.appContext) == null ? void 0 : t.app) == null ? void 0 : n.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__) != null ? r : 0, o = e === (e == null ? void 0 : e.root) ? "root" : e.uid;
2380
+ return `${u}:${o}`;
2381
+ }
2382
+ function Fe(e, t) {
2383
+ return t = t || `${e.id}:root`, e.instanceMap.get(t) || e.instanceMap.get(":root");
2384
+ }
2385
+ function hu() {
2386
+ const e = {
2387
+ top: 0,
2388
+ bottom: 0,
2389
+ left: 0,
2390
+ right: 0,
2391
+ get width() {
2392
+ return e.right - e.left;
2393
+ },
2394
+ get height() {
2395
+ return e.bottom - e.top;
2396
+ }
2397
+ };
2398
+ return e;
2399
+ }
2400
+ var pe;
2401
+ function pu(e) {
2402
+ return pe || (pe = document.createRange()), pe.selectNode(e), pe.getBoundingClientRect();
2403
+ }
2404
+ function Eu(e) {
2405
+ const t = hu();
2406
+ if (!e.children)
2407
+ return t;
2408
+ for (let n = 0, r = e.children.length; n < r; n++) {
2409
+ const u = e.children[n];
2410
+ let o;
2411
+ if (u.component)
2412
+ o = j(u.component);
2413
+ else if (u.el) {
2414
+ const s = u.el;
2415
+ s.nodeType === 1 || s.getBoundingClientRect ? o = s.getBoundingClientRect() : s.nodeType === 3 && s.data.trim() && (o = pu(s));
2416
+ }
2417
+ o && gu(t, o);
2418
+ }
2419
+ return t;
2420
+ }
2421
+ function gu(e, t) {
2422
+ return (!e.top || t.top < e.top) && (e.top = t.top), (!e.bottom || t.bottom > e.bottom) && (e.bottom = t.bottom), (!e.left || t.left < e.left) && (e.left = t.left), (!e.right || t.right > e.right) && (e.right = t.right), e;
2423
+ }
2424
+ var pt = {
2425
+ top: 0,
2426
+ left: 0,
2427
+ right: 0,
2428
+ bottom: 0,
2429
+ width: 0,
2430
+ height: 0
2431
+ };
2432
+ function j(e) {
2433
+ const t = e.subTree.el;
2434
+ return typeof window > "u" ? pt : Ln(e) ? Eu(e.subTree) : (t == null ? void 0 : t.nodeType) === 1 ? t == null ? void 0 : t.getBoundingClientRect() : e.subTree.component ? j(e.subTree.component) : pt;
2435
+ }
2436
+ l();
2437
+ function Ye(e) {
2438
+ return Ln(e) ? mu(e.subTree) : e.subTree ? [e.subTree.el] : [];
2439
+ }
2440
+ function mu(e) {
2441
+ if (!e.children)
2442
+ return [];
2443
+ const t = [];
2444
+ return e.children.forEach((n) => {
2445
+ n.component ? t.push(...Ye(n.component)) : n != null && n.el && t.push(n.el);
2446
+ }), t;
2447
+ }
2448
+ var Vn = "__vue-devtools-component-inspector__", Fn = "__vue-devtools-component-inspector__card__", Bn = "__vue-devtools-component-inspector__name__", Un = "__vue-devtools-component-inspector__indicator__", Mn = {
2449
+ display: "block",
2450
+ zIndex: 2147483640,
2451
+ position: "fixed",
2452
+ backgroundColor: "#42b88325",
2453
+ border: "1px solid #42b88350",
2454
+ borderRadius: "5px",
2455
+ transition: "all 0.1s ease-in",
2456
+ pointerEvents: "none"
2457
+ }, vu = {
2458
+ fontFamily: "Arial, Helvetica, sans-serif",
2459
+ padding: "5px 8px",
2460
+ borderRadius: "4px",
2461
+ textAlign: "left",
2462
+ position: "absolute",
2463
+ left: 0,
2464
+ color: "#e9e9e9",
2465
+ fontSize: "14px",
2466
+ fontWeight: 600,
2467
+ lineHeight: "24px",
2468
+ backgroundColor: "#42b883",
2469
+ boxShadow: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"
2470
+ }, yu = {
2471
+ display: "inline-block",
2472
+ fontWeight: 400,
2473
+ fontStyle: "normal",
2474
+ fontSize: "12px",
2475
+ opacity: 0.7
2476
+ };
2477
+ function ne() {
2478
+ return document.getElementById(Vn);
2479
+ }
2480
+ function Au() {
2481
+ return document.getElementById(Fn);
2482
+ }
2483
+ function bu() {
2484
+ return document.getElementById(Un);
2485
+ }
2486
+ function wu() {
2487
+ return document.getElementById(Bn);
2488
+ }
2489
+ function Ze(e) {
2490
+ return {
2491
+ left: `${Math.round(e.left * 100) / 100}px`,
2492
+ top: `${Math.round(e.top * 100) / 100}px`,
2493
+ width: `${Math.round(e.width * 100) / 100}px`,
2494
+ height: `${Math.round(e.height * 100) / 100}px`
2495
+ };
2496
+ }
2497
+ function Xe(e) {
2498
+ var t;
2499
+ const n = document.createElement("div");
2500
+ n.id = (t = e.elementId) != null ? t : Vn, Object.assign(n.style, {
2501
+ ...Mn,
2502
+ ...Ze(e.bounds),
2503
+ ...e.style
2504
+ });
2505
+ const r = document.createElement("span");
2506
+ r.id = Fn, Object.assign(r.style, {
2507
+ ...vu,
2508
+ top: e.bounds.top < 35 ? 0 : "-35px"
2509
+ });
2510
+ const u = document.createElement("span");
2511
+ u.id = Bn, u.innerHTML = `&lt;${e.name}&gt;&nbsp;&nbsp;`;
2512
+ const o = document.createElement("i");
2513
+ return o.id = Un, o.innerHTML = `${Math.round(e.bounds.width * 100) / 100} x ${Math.round(e.bounds.height * 100) / 100}`, Object.assign(o.style, yu), r.appendChild(u), r.appendChild(o), n.appendChild(r), document.body.appendChild(n), n;
2514
+ }
2515
+ function Je(e) {
2516
+ const t = ne(), n = Au(), r = wu(), u = bu();
2517
+ t && (Object.assign(t.style, {
2518
+ ...Mn,
2519
+ ...Ze(e.bounds)
2520
+ }), Object.assign(n.style, {
2521
+ top: e.bounds.top < 35 ? 0 : "-35px"
2522
+ }), r.innerHTML = `&lt;${e.name}&gt;&nbsp;&nbsp;`, u.innerHTML = `${Math.round(e.bounds.width * 100) / 100} x ${Math.round(e.bounds.height * 100) / 100}`);
2523
+ }
2524
+ function Ou(e) {
2525
+ const t = j(e);
2526
+ if (!t.width && !t.height)
2527
+ return;
2528
+ const n = we(e);
2529
+ ne() ? Je({ bounds: t, name: n }) : Xe({ bounds: t, name: n });
2530
+ }
2531
+ function $n() {
2532
+ const e = ne();
2533
+ e && (e.style.display = "none");
2534
+ }
2535
+ var Be = null;
2536
+ function Ue(e) {
2537
+ const t = e.target;
2538
+ if (t) {
2539
+ const n = t.__vueParentComponent;
2540
+ if (n && (Be = n, n.vnode.el)) {
2541
+ const u = j(n), o = we(n);
2542
+ ne() ? Je({ bounds: u, name: o }) : Xe({ bounds: u, name: o });
2543
+ }
2544
+ }
2545
+ }
2546
+ function Su(e, t) {
2547
+ if (e.preventDefault(), e.stopPropagation(), Be) {
2548
+ const n = _u(Be);
2549
+ t(n);
2550
+ }
2551
+ }
2552
+ var Ae = null;
2553
+ function Tu() {
2554
+ $n(), window.removeEventListener("mouseover", Ue), window.removeEventListener("click", Ae, !0), Ae = null;
2555
+ }
2556
+ function Cu() {
2557
+ return window.addEventListener("mouseover", Ue), new Promise((e) => {
2558
+ function t(n) {
2559
+ n.preventDefault(), n.stopPropagation(), Su(n, (r) => {
2560
+ window.removeEventListener("click", t, !0), Ae = null, window.removeEventListener("mouseover", Ue);
2561
+ const u = ne();
2562
+ u && (u.style.display = "none"), e(JSON.stringify({ id: r }));
2563
+ });
2564
+ }
2565
+ Ae = t, window.addEventListener("click", t, !0);
2566
+ });
2567
+ }
2568
+ function Iu(e) {
2569
+ const t = Fe(R.value, e.id);
2570
+ if (t) {
2571
+ const [n] = Ye(t);
2572
+ if (typeof n.scrollIntoView == "function")
2573
+ n.scrollIntoView({
2574
+ behavior: "smooth"
2575
+ });
2576
+ else {
2577
+ const r = j(t), u = document.createElement("div"), o = {
2578
+ ...Ze(r),
2579
+ position: "absolute"
2580
+ };
2581
+ Object.assign(u.style, o), document.body.appendChild(u), u.scrollIntoView({
2582
+ behavior: "smooth"
2583
+ }), setTimeout(() => {
2584
+ document.body.removeChild(u);
2585
+ }, 2e3);
2586
+ }
2587
+ setTimeout(() => {
2588
+ const r = j(t);
2589
+ if (r.width || r.height) {
2590
+ const u = we(t), o = ne();
2591
+ o ? Je({ name: u, bounds: r }) : Xe({ ...e, name: u, bounds: r }), setTimeout(() => {
2592
+ o && (o.style.display = "none");
2593
+ }, 1500);
2594
+ }
2595
+ }, 1200);
2596
+ }
2597
+ }
2598
+ l();
2599
+ var Et, gt;
2600
+ (gt = (Et = m).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__) != null || (Et.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__ = !0);
2601
+ function Du(e) {
2602
+ let t = 0;
2603
+ const n = setInterval(() => {
2604
+ m.__VUE_INSPECTOR__ && (clearInterval(n), t += 30, e()), t >= /* 5s */
2605
+ 5e3 && clearInterval(n);
2606
+ }, 30);
2607
+ }
2608
+ function ku() {
2609
+ const e = m.__VUE_INSPECTOR__, t = e.openInEditor;
2610
+ e.openInEditor = async (...n) => {
2611
+ e.disable(), t(...n);
2612
+ };
2613
+ }
2614
+ function Ru() {
2615
+ return new Promise((e) => {
2616
+ function t() {
2617
+ ku(), e(m.__VUE_INSPECTOR__);
2618
+ }
2619
+ m.__VUE_INSPECTOR__ ? t() : Du(() => {
2620
+ t();
2621
+ });
2622
+ });
2623
+ }
2624
+ l();
2625
+ l();
2626
+ function xu(e) {
2627
+ return !!(e && e.__v_isReadonly);
2628
+ }
2629
+ function Kn(e) {
2630
+ return xu(e) ? Kn(e.__v_raw) : !!(e && e.__v_isReactive);
2631
+ }
2632
+ function ke(e) {
2633
+ return !!(e && e.__v_isRef === !0);
2634
+ }
2635
+ function oe(e) {
2636
+ const t = e && e.__v_raw;
2637
+ return t ? oe(t) : e;
2638
+ }
2639
+ var Pu = class {
2640
+ constructor() {
2641
+ this.refEditor = new Nu();
2642
+ }
2643
+ set(e, t, n, r) {
2644
+ const u = Array.isArray(t) ? t : t.split(".");
2645
+ for (; u.length > 1; ) {
2646
+ const i = u.shift();
2647
+ e instanceof Map && (e = e.get(i)), e instanceof Set ? e = Array.from(e.values())[i] : e = e[i], this.refEditor.isRef(e) && (e = this.refEditor.get(e));
2648
+ }
2649
+ const o = u[0], s = this.refEditor.get(e)[o];
2650
+ r ? r(e, o, n) : this.refEditor.isRef(s) ? this.refEditor.set(s, n) : e[o] = n;
2651
+ }
2652
+ get(e, t) {
2653
+ const n = Array.isArray(t) ? t : t.split(".");
2654
+ for (let r = 0; r < n.length; r++)
2655
+ if (e instanceof Map ? e = e.get(n[r]) : e = e[n[r]], this.refEditor.isRef(e) && (e = this.refEditor.get(e)), !e)
2656
+ return;
2657
+ return e;
2658
+ }
2659
+ has(e, t, n = !1) {
2660
+ if (typeof e > "u")
2661
+ return !1;
2662
+ const r = Array.isArray(t) ? t.slice() : t.split("."), u = n ? 2 : 1;
2663
+ for (; e && r.length > u; ) {
2664
+ const o = r.shift();
2665
+ e = e[o], this.refEditor.isRef(e) && (e = this.refEditor.get(e));
2666
+ }
2667
+ return e != null && Object.prototype.hasOwnProperty.call(e, r[0]);
2668
+ }
2669
+ createDefaultSetCallback(e) {
2670
+ return (t, n, r) => {
2671
+ if ((e.remove || e.newKey) && (Array.isArray(t) ? t.splice(n, 1) : oe(t) instanceof Map ? t.delete(n) : oe(t) instanceof Set ? t.delete(Array.from(t.values())[n]) : Reflect.deleteProperty(t, n)), !e.remove) {
2672
+ const u = t[e.newKey || n];
2673
+ this.refEditor.isRef(u) ? this.refEditor.set(u, r) : oe(t) instanceof Map ? t.set(e.newKey || n, r) : oe(t) instanceof Set ? t.add(r) : t[e.newKey || n] = r;
2674
+ }
2675
+ };
2676
+ }
2677
+ }, Nu = class {
2678
+ set(e, t) {
2679
+ if (ke(e))
2680
+ e.value = t;
2681
+ else {
2682
+ if (e instanceof Set && Array.isArray(t)) {
2683
+ e.clear(), t.forEach((u) => e.add(u));
2684
+ return;
2685
+ }
2686
+ const n = Object.keys(t);
2687
+ if (e instanceof Map) {
2688
+ const u = new Set(e.keys());
2689
+ n.forEach((o) => {
2690
+ e.set(o, Reflect.get(t, o)), u.delete(o);
2691
+ }), u.forEach((o) => e.delete(o));
2692
+ return;
2693
+ }
2694
+ const r = new Set(Object.keys(e));
2695
+ n.forEach((u) => {
2696
+ Reflect.set(e, u, Reflect.get(t, u)), r.delete(u);
2697
+ }), r.forEach((u) => Reflect.deleteProperty(e, u));
2698
+ }
2699
+ }
2700
+ get(e) {
2701
+ return ke(e) ? e.value : e;
2702
+ }
2703
+ isRef(e) {
2704
+ return ke(e) || Kn(e);
2705
+ }
2706
+ };
2707
+ l();
2708
+ l();
2709
+ l();
2710
+ var Lu = "__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";
2711
+ function Vu() {
2712
+ if (!zr || typeof localStorage > "u" || localStorage === null)
2713
+ return {
2714
+ recordingState: !1,
2715
+ mouseEventEnabled: !1,
2716
+ keyboardEventEnabled: !1,
2717
+ componentEventEnabled: !1,
2718
+ performanceEventEnabled: !1,
2719
+ selected: ""
2720
+ };
2721
+ const e = localStorage.getItem(Lu);
2722
+ return e ? JSON.parse(e) : {
2723
+ recordingState: !1,
2724
+ mouseEventEnabled: !1,
2725
+ keyboardEventEnabled: !1,
2726
+ componentEventEnabled: !1,
2727
+ performanceEventEnabled: !1,
2728
+ selected: ""
2729
+ };
2730
+ }
2731
+ l();
2732
+ l();
2733
+ l();
2734
+ var mt, vt;
2735
+ (vt = (mt = m).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS) != null || (mt.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS = []);
2736
+ var Fu = new Proxy(m.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS, {
2737
+ get(e, t, n) {
2738
+ return Reflect.get(e, t, n);
2739
+ }
2740
+ });
2741
+ function Bu(e, t) {
2742
+ D.timelineLayersState[t.id] = !1, Fu.push({
2743
+ ...e,
2744
+ descriptorId: t.id,
2745
+ appRecord: qe(t.app)
2746
+ });
2747
+ }
2748
+ var yt, At;
2749
+ (At = (yt = m).__VUE_DEVTOOLS_KIT_INSPECTOR__) != null || (yt.__VUE_DEVTOOLS_KIT_INSPECTOR__ = []);
2750
+ var Qe = new Proxy(m.__VUE_DEVTOOLS_KIT_INSPECTOR__, {
2751
+ get(e, t, n) {
2752
+ return Reflect.get(e, t, n);
2753
+ }
2754
+ }), zn = Q(() => {
2755
+ re.hooks.callHook("sendInspectorToClient", Hn());
2756
+ });
2757
+ function Uu(e, t) {
2758
+ var n, r;
2759
+ Qe.push({
2760
+ options: e,
2761
+ descriptor: t,
2762
+ treeFilterPlaceholder: (n = e.treeFilterPlaceholder) != null ? n : "Search tree...",
2763
+ stateFilterPlaceholder: (r = e.stateFilterPlaceholder) != null ? r : "Search state...",
2764
+ treeFilter: "",
2765
+ selectedNodeId: "",
2766
+ appRecord: qe(t.app)
2767
+ }), zn();
2768
+ }
2769
+ function Hn() {
2770
+ return Qe.filter((e) => e.descriptor.app === R.value.app).filter((e) => e.descriptor.id !== "components").map((e) => {
2771
+ var t;
2772
+ const n = e.descriptor, r = e.options;
2773
+ return {
2774
+ id: r.id,
2775
+ label: r.label,
2776
+ logo: n.logo,
2777
+ icon: `custom-ic-baseline-${(t = r == null ? void 0 : r.icon) == null ? void 0 : t.replace(/_/g, "-")}`,
2778
+ packageName: n.packageName,
2779
+ homepage: n.homepage,
2780
+ pluginId: n.id
2781
+ };
2782
+ });
2783
+ }
2784
+ function ge(e, t) {
2785
+ return Qe.find((n) => n.options.id === e && (t ? n.descriptor.app === t : !0));
2786
+ }
2787
+ function Mu() {
2788
+ const e = xn();
2789
+ e.hook("addInspector", ({ inspector: r, plugin: u }) => {
2790
+ Uu(r, u.descriptor);
2791
+ });
2792
+ const t = Q(async ({ inspectorId: r, plugin: u }) => {
2793
+ var o;
2794
+ if (!r || !((o = u == null ? void 0 : u.descriptor) != null && o.app) || D.highPerfModeEnabled)
2795
+ return;
2796
+ const s = ge(r, u.descriptor.app), i = {
2797
+ app: u.descriptor.app,
2798
+ inspectorId: r,
2799
+ filter: (s == null ? void 0 : s.treeFilter) || "",
2800
+ rootNodes: []
2801
+ };
2802
+ await new Promise((f) => {
2803
+ e.callHookWith(
2804
+ async (h) => {
2805
+ await Promise.all(h.map((A) => A(i))), f();
2806
+ },
2807
+ "getInspectorTree"
2808
+ /* GET_INSPECTOR_TREE */
2809
+ );
2810
+ }), e.callHookWith(
2811
+ async (f) => {
2812
+ await Promise.all(f.map((h) => h({
2813
+ inspectorId: r,
2814
+ rootNodes: i.rootNodes
2815
+ })));
2816
+ },
2817
+ "sendInspectorTreeToClient"
2818
+ /* SEND_INSPECTOR_TREE_TO_CLIENT */
2819
+ );
2820
+ }, 120);
2821
+ e.hook("sendInspectorTree", t);
2822
+ const n = Q(async ({ inspectorId: r, plugin: u }) => {
2823
+ var o;
2824
+ if (!r || !((o = u == null ? void 0 : u.descriptor) != null && o.app) || D.highPerfModeEnabled)
2825
+ return;
2826
+ const s = ge(r, u.descriptor.app), i = {
2827
+ app: u.descriptor.app,
2828
+ inspectorId: r,
2829
+ nodeId: (s == null ? void 0 : s.selectedNodeId) || "",
2830
+ state: null
2831
+ }, f = {
2832
+ currentTab: `custom-inspector:${r}`
2833
+ };
2834
+ i.nodeId && await new Promise((h) => {
2835
+ e.callHookWith(
2836
+ async (A) => {
2837
+ await Promise.all(A.map((a) => a(i, f))), h();
2838
+ },
2839
+ "getInspectorState"
2840
+ /* GET_INSPECTOR_STATE */
2841
+ );
2842
+ }), e.callHookWith(
2843
+ async (h) => {
2844
+ await Promise.all(h.map((A) => A({
2845
+ inspectorId: r,
2846
+ nodeId: i.nodeId,
2847
+ state: i.state
2848
+ })));
2849
+ },
2850
+ "sendInspectorStateToClient"
2851
+ /* SEND_INSPECTOR_STATE_TO_CLIENT */
2852
+ );
2853
+ }, 120);
2854
+ return e.hook("sendInspectorState", n), e.hook("customInspectorSelectNode", ({ inspectorId: r, nodeId: u, plugin: o }) => {
2855
+ const s = ge(r, o.descriptor.app);
2856
+ s && (s.selectedNodeId = u);
2857
+ }), e.hook("timelineLayerAdded", ({ options: r, plugin: u }) => {
2858
+ Bu(r, u.descriptor);
2859
+ }), e.hook("timelineEventAdded", ({ options: r, plugin: u }) => {
2860
+ var o;
2861
+ const s = ["performance", "component-event", "keyboard", "mouse"];
2862
+ D.highPerfModeEnabled || !((o = D.timelineLayersState) != null && o[u.descriptor.id]) && !s.includes(r.layerId) || e.callHookWith(
2863
+ async (i) => {
2864
+ await Promise.all(i.map((f) => f(r)));
2865
+ },
2866
+ "sendTimelineEventToClient"
2867
+ /* SEND_TIMELINE_EVENT_TO_CLIENT */
2868
+ );
2869
+ }), e.hook("getComponentInstances", async ({ app: r }) => {
2870
+ const u = r.__VUE_DEVTOOLS_NEXT_APP_RECORD__;
2871
+ if (!u)
2872
+ return null;
2873
+ const o = u.id.toString();
2874
+ return [...u.instanceMap].filter(([i]) => i.split(":")[0] === o).map(([, i]) => i);
2875
+ }), e.hook("getComponentBounds", async ({ instance: r }) => j(r)), e.hook("getComponentName", ({ instance: r }) => we(r)), e.hook("componentHighlight", ({ uid: r }) => {
2876
+ const u = R.value.instanceMap.get(r);
2877
+ u && Ou(u);
2878
+ }), e.hook("componentUnhighlight", () => {
2879
+ $n();
2880
+ }), e;
2881
+ }
2882
+ var bt, wt;
2883
+ (wt = (bt = m).__VUE_DEVTOOLS_KIT_APP_RECORDS__) != null || (bt.__VUE_DEVTOOLS_KIT_APP_RECORDS__ = []);
2884
+ var Ot, St;
2885
+ (St = (Ot = m).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__) != null || (Ot.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ = {});
2886
+ var Tt, Ct;
2887
+ (Ct = (Tt = m).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__) != null || (Tt.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ = "");
2888
+ var It, Dt;
2889
+ (Dt = (It = m).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__) != null || (It.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ = []);
2890
+ var kt, Rt;
2891
+ (Rt = (kt = m).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__) != null || (kt.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ = []);
2892
+ var Z = "__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";
2893
+ function $u() {
2894
+ return {
2895
+ connected: !1,
2896
+ clientConnected: !1,
2897
+ vitePluginDetected: !0,
2898
+ appRecords: [],
2899
+ activeAppRecordId: "",
2900
+ tabs: [],
2901
+ commands: [],
2902
+ highPerfModeEnabled: !0,
2903
+ devtoolsClientDetected: {},
2904
+ perfUniqueGroupId: 0,
2905
+ timelineLayersState: Vu()
2906
+ };
2907
+ }
2908
+ var xt, Pt;
2909
+ (Pt = (xt = m)[Z]) != null || (xt[Z] = $u());
2910
+ var Ku = Q((e) => {
2911
+ re.hooks.callHook("devtoolsStateUpdated", { state: e });
2912
+ });
2913
+ Q((e, t) => {
2914
+ re.hooks.callHook("devtoolsConnectedUpdated", { state: e, oldState: t });
2915
+ });
2916
+ var Oe = new Proxy(m.__VUE_DEVTOOLS_KIT_APP_RECORDS__, {
2917
+ get(e, t, n) {
2918
+ return t === "value" ? m.__VUE_DEVTOOLS_KIT_APP_RECORDS__ : m.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t];
2919
+ }
2920
+ }), R = new Proxy(m.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__, {
2921
+ get(e, t, n) {
2922
+ return t === "value" ? m.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ : t === "id" ? m.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ : m.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t];
2923
+ }
2924
+ });
2925
+ function jn() {
2926
+ Ku({
2927
+ ...m[Z],
2928
+ appRecords: Oe.value,
2929
+ activeAppRecordId: R.id,
2930
+ tabs: m.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,
2931
+ commands: m.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__
2932
+ });
2933
+ }
2934
+ function zu(e) {
2935
+ m.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ = e, jn();
2936
+ }
2937
+ function Hu(e) {
2938
+ m.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ = e, jn();
2939
+ }
2940
+ var D = new Proxy(m[Z], {
2941
+ get(e, t) {
2942
+ return t === "appRecords" ? Oe : t === "activeAppRecordId" ? R.id : t === "tabs" ? m.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ : t === "commands" ? m.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ : m[Z][t];
2943
+ },
2944
+ deleteProperty(e, t) {
2945
+ return delete e[t], !0;
2946
+ },
2947
+ set(e, t, n) {
2948
+ return e[t] = n, m[Z][t] = n, !0;
2949
+ }
2950
+ });
2951
+ function ju(e = {}) {
2952
+ var t, n, r;
2953
+ const { file: u, host: o, baseUrl: s = window.location.origin, line: i = 0, column: f = 0 } = e;
2954
+ if (u) {
2955
+ if (o === "chrome-extension") {
2956
+ const h = u.replace(/\\/g, "\\\\"), A = (n = (t = window.VUE_DEVTOOLS_CONFIG) == null ? void 0 : t.openInEditorHost) != null ? n : "/";
2957
+ fetch(`${A}__open-in-editor?file=${encodeURI(u)}`).then((a) => {
2958
+ if (!a.ok) {
2959
+ const p = `Opening component ${h} failed`;
2960
+ console.log(`%c${p}`, "color:red");
2961
+ }
2962
+ });
2963
+ } else if (D.vitePluginDetected) {
2964
+ const h = (r = m.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__) != null ? r : s;
2965
+ m.__VUE_INSPECTOR__.openInEditor(h, u, i, f);
2966
+ }
2967
+ }
2968
+ }
2969
+ l();
2970
+ l();
2971
+ l();
2972
+ l();
2973
+ l();
2974
+ var Nt, Lt;
2975
+ (Lt = (Nt = m).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__) != null || (Nt.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__ = []);
2976
+ var et = new Proxy(m.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__, {
2977
+ get(e, t, n) {
2978
+ return Reflect.get(e, t, n);
2979
+ }
2980
+ });
2981
+ function Me(e) {
2982
+ const t = {};
2983
+ return Object.keys(e).forEach((n) => {
2984
+ t[n] = e[n].defaultValue;
2985
+ }), t;
2986
+ }
2987
+ function tt(e) {
2988
+ return `__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`;
2989
+ }
2990
+ function Gu(e) {
2991
+ var t, n, r;
2992
+ const u = (n = (t = et.find((o) => {
2993
+ var s;
2994
+ return o[0].id === e && !!((s = o[0]) != null && s.settings);
2995
+ })) == null ? void 0 : t[0]) != null ? n : null;
2996
+ return (r = u == null ? void 0 : u.settings) != null ? r : null;
2997
+ }
2998
+ function Gn(e, t) {
2999
+ var n, r, u;
3000
+ const o = tt(e);
3001
+ if (o) {
3002
+ const s = localStorage.getItem(o);
3003
+ if (s)
3004
+ return JSON.parse(s);
3005
+ }
3006
+ if (e) {
3007
+ const s = (r = (n = et.find((i) => i[0].id === e)) == null ? void 0 : n[0]) != null ? r : null;
3008
+ return Me((u = s == null ? void 0 : s.settings) != null ? u : {});
3009
+ }
3010
+ return Me(t);
3011
+ }
3012
+ function Wu(e, t) {
3013
+ const n = tt(e);
3014
+ localStorage.getItem(n) || localStorage.setItem(n, JSON.stringify(Me(t)));
3015
+ }
3016
+ function qu(e, t, n) {
3017
+ const r = tt(e), u = localStorage.getItem(r), o = JSON.parse(u || "{}"), s = {
3018
+ ...o,
3019
+ [t]: n
3020
+ };
3021
+ localStorage.setItem(r, JSON.stringify(s)), re.hooks.callHookWith(
3022
+ (i) => {
3023
+ i.forEach((f) => f({
3024
+ pluginId: e,
3025
+ key: t,
3026
+ oldValue: o[t],
3027
+ newValue: n,
3028
+ settings: s
3029
+ }));
3030
+ },
3031
+ "setPluginSettings"
3032
+ /* SET_PLUGIN_SETTINGS */
3033
+ );
3034
+ }
3035
+ l();
3036
+ l();
3037
+ l();
3038
+ l();
3039
+ l();
3040
+ l();
3041
+ l();
3042
+ l();
3043
+ l();
3044
+ l();
3045
+ l();
3046
+ var Vt, Ft, x = (Ft = (Vt = m).__VUE_DEVTOOLS_HOOK) != null ? Ft : Vt.__VUE_DEVTOOLS_HOOK = xn(), Yu = {
3047
+ vueAppInit(e) {
3048
+ x.hook("app:init", e);
3049
+ },
3050
+ vueAppUnmount(e) {
3051
+ x.hook("app:unmount", e);
3052
+ },
3053
+ vueAppConnected(e) {
3054
+ x.hook("app:connected", e);
3055
+ },
3056
+ componentAdded(e) {
3057
+ return x.hook("component:added", e);
3058
+ },
3059
+ componentEmit(e) {
3060
+ return x.hook("component:emit", e);
3061
+ },
3062
+ componentUpdated(e) {
3063
+ return x.hook("component:updated", e);
3064
+ },
3065
+ componentRemoved(e) {
3066
+ return x.hook("component:removed", e);
3067
+ },
3068
+ setupDevtoolsPlugin(e) {
3069
+ x.hook("devtools-plugin:setup", e);
3070
+ },
3071
+ perfStart(e) {
3072
+ return x.hook("perf:start", e);
3073
+ },
3074
+ perfEnd(e) {
3075
+ return x.hook("perf:end", e);
3076
+ }
3077
+ }, Wn = {
3078
+ on: Yu,
3079
+ setupDevToolsPlugin(e, t) {
3080
+ return x.callHook("devtools-plugin:setup", e, t);
3081
+ }
3082
+ }, Zu = class {
3083
+ constructor({ plugin: e, ctx: t }) {
3084
+ this.hooks = t.hooks, this.plugin = e;
3085
+ }
3086
+ get on() {
3087
+ return {
3088
+ // component inspector
3089
+ visitComponentTree: (e) => {
3090
+ this.hooks.hook("visitComponentTree", e);
3091
+ },
3092
+ inspectComponent: (e) => {
3093
+ this.hooks.hook("inspectComponent", e);
3094
+ },
3095
+ editComponentState: (e) => {
3096
+ this.hooks.hook("editComponentState", e);
3097
+ },
3098
+ // custom inspector
3099
+ getInspectorTree: (e) => {
3100
+ this.hooks.hook("getInspectorTree", e);
3101
+ },
3102
+ getInspectorState: (e) => {
3103
+ this.hooks.hook("getInspectorState", e);
3104
+ },
3105
+ editInspectorState: (e) => {
3106
+ this.hooks.hook("editInspectorState", e);
3107
+ },
3108
+ // timeline
3109
+ inspectTimelineEvent: (e) => {
3110
+ this.hooks.hook("inspectTimelineEvent", e);
3111
+ },
3112
+ timelineCleared: (e) => {
3113
+ this.hooks.hook("timelineCleared", e);
3114
+ },
3115
+ // settings
3116
+ setPluginSettings: (e) => {
3117
+ this.hooks.hook("setPluginSettings", e);
3118
+ }
3119
+ };
3120
+ }
3121
+ // component inspector
3122
+ notifyComponentUpdate(e) {
3123
+ var t;
3124
+ if (D.highPerfModeEnabled)
3125
+ return;
3126
+ const n = Hn().find((r) => r.packageName === this.plugin.descriptor.packageName);
3127
+ if (n != null && n.id) {
3128
+ if (e) {
3129
+ const r = [
3130
+ e.appContext.app,
3131
+ e.uid,
3132
+ (t = e.parent) == null ? void 0 : t.uid,
3133
+ e
3134
+ ];
3135
+ x.callHook("component:updated", ...r);
3136
+ } else
3137
+ x.callHook(
3138
+ "component:updated"
3139
+ /* COMPONENT_UPDATED */
3140
+ );
3141
+ this.hooks.callHook("sendInspectorState", { inspectorId: n.id, plugin: this.plugin });
3142
+ }
3143
+ }
3144
+ // custom inspector
3145
+ addInspector(e) {
3146
+ this.hooks.callHook("addInspector", { inspector: e, plugin: this.plugin }), this.plugin.descriptor.settings && Wu(e.id, this.plugin.descriptor.settings);
3147
+ }
3148
+ sendInspectorTree(e) {
3149
+ D.highPerfModeEnabled || this.hooks.callHook("sendInspectorTree", { inspectorId: e, plugin: this.plugin });
3150
+ }
3151
+ sendInspectorState(e) {
3152
+ D.highPerfModeEnabled || this.hooks.callHook("sendInspectorState", { inspectorId: e, plugin: this.plugin });
3153
+ }
3154
+ selectInspectorNode(e, t) {
3155
+ this.hooks.callHook("customInspectorSelectNode", { inspectorId: e, nodeId: t, plugin: this.plugin });
3156
+ }
3157
+ visitComponentTree(e) {
3158
+ return this.hooks.callHook("visitComponentTree", e);
3159
+ }
3160
+ // timeline
3161
+ now() {
3162
+ return D.highPerfModeEnabled ? 0 : Date.now();
3163
+ }
3164
+ addTimelineLayer(e) {
3165
+ this.hooks.callHook("timelineLayerAdded", { options: e, plugin: this.plugin });
3166
+ }
3167
+ addTimelineEvent(e) {
3168
+ D.highPerfModeEnabled || this.hooks.callHook("timelineEventAdded", { options: e, plugin: this.plugin });
3169
+ }
3170
+ // settings
3171
+ getSettings(e) {
3172
+ return Gn(e ?? this.plugin.descriptor.id, this.plugin.descriptor.settings);
3173
+ }
3174
+ // utilities
3175
+ getComponentInstances(e) {
3176
+ return this.hooks.callHook("getComponentInstances", { app: e });
3177
+ }
3178
+ getComponentBounds(e) {
3179
+ return this.hooks.callHook("getComponentBounds", { instance: e });
3180
+ }
3181
+ getComponentName(e) {
3182
+ return this.hooks.callHook("getComponentName", { instance: e });
3183
+ }
3184
+ highlightElement(e) {
3185
+ const t = e.__VUE_DEVTOOLS_NEXT_UID__;
3186
+ return this.hooks.callHook("componentHighlight", { uid: t });
3187
+ }
3188
+ unhighlightElement() {
3189
+ return this.hooks.callHook(
3190
+ "componentUnhighlight"
3191
+ /* COMPONENT_UNHIGHLIGHT */
3192
+ );
3193
+ }
3194
+ }, Xu = Zu;
3195
+ l();
3196
+ l();
3197
+ l();
3198
+ l();
3199
+ var Ju = "__vue_devtool_undefined__", Qu = "__vue_devtool_infinity__", eo = "__vue_devtool_negative_infinity__", to = "__vue_devtool_nan__";
3200
+ l();
3201
+ l();
3202
+ var no = {
3203
+ [Ju]: "undefined",
3204
+ [to]: "NaN",
3205
+ [Qu]: "Infinity",
3206
+ [eo]: "-Infinity"
3207
+ };
3208
+ Object.entries(no).reduce((e, [t, n]) => (e[n] = t, e), {});
3209
+ l();
3210
+ l();
3211
+ l();
3212
+ l();
3213
+ l();
3214
+ var Bt, Ut;
3215
+ (Ut = (Bt = m).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__) != null || (Bt.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__ = /* @__PURE__ */ new Set());
3216
+ function ro(e, t) {
3217
+ return Wn.setupDevToolsPlugin(e, t);
3218
+ }
3219
+ function uo(e, t) {
3220
+ const [n, r] = e;
3221
+ if (n.app !== t)
3222
+ return;
3223
+ const u = new Xu({
3224
+ plugin: {
3225
+ setupFn: r,
3226
+ descriptor: n
3227
+ },
3228
+ ctx: re
3229
+ });
3230
+ n.packageName === "vuex" && u.on.editInspectorState((o) => {
3231
+ u.sendInspectorState(o.inspectorId);
3232
+ }), r(u);
3233
+ }
3234
+ function qn(e, t) {
3235
+ m.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e) || D.highPerfModeEnabled && !(t != null && t.inspectingComponent) || (m.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e), et.forEach((n) => {
3236
+ uo(n, e);
3237
+ }));
3238
+ }
3239
+ l();
3240
+ l();
3241
+ var le = "__VUE_DEVTOOLS_ROUTER__", ee = "__VUE_DEVTOOLS_ROUTER_INFO__", Mt, $t;
3242
+ ($t = (Mt = m)[ee]) != null || (Mt[ee] = {
3243
+ currentRoute: null,
3244
+ routes: []
3245
+ });
3246
+ var Kt, zt;
3247
+ (zt = (Kt = m)[le]) != null || (Kt[le] = {});
3248
+ new Proxy(m[ee], {
3249
+ get(e, t) {
3250
+ return m[ee][t];
3251
+ }
3252
+ });
3253
+ new Proxy(m[le], {
3254
+ get(e, t) {
3255
+ if (t === "value")
3256
+ return m[le];
3257
+ }
3258
+ });
3259
+ function oo(e) {
3260
+ const t = /* @__PURE__ */ new Map();
3261
+ return ((e == null ? void 0 : e.getRoutes()) || []).filter((n) => !t.has(n.path) && t.set(n.path, 1));
3262
+ }
3263
+ function nt(e) {
3264
+ return e.map((t) => {
3265
+ let { path: n, name: r, children: u, meta: o } = t;
3266
+ return u != null && u.length && (u = nt(u)), {
3267
+ path: n,
3268
+ name: r,
3269
+ children: u,
3270
+ meta: o
3271
+ };
3272
+ });
3273
+ }
3274
+ function so(e) {
3275
+ if (e) {
3276
+ const { fullPath: t, hash: n, href: r, path: u, name: o, matched: s, params: i, query: f } = e;
3277
+ return {
3278
+ fullPath: t,
3279
+ hash: n,
3280
+ href: r,
3281
+ path: u,
3282
+ name: o,
3283
+ params: i,
3284
+ query: f,
3285
+ matched: nt(s)
3286
+ };
3287
+ }
3288
+ return e;
3289
+ }
3290
+ function io(e, t) {
3291
+ function n() {
3292
+ var r;
3293
+ const u = (r = e.app) == null ? void 0 : r.config.globalProperties.$router, o = so(u == null ? void 0 : u.currentRoute.value), s = nt(oo(u)), i = console.warn;
3294
+ console.warn = () => {
3295
+ }, m[ee] = {
3296
+ currentRoute: o ? _t(o) : {},
3297
+ routes: _t(s)
3298
+ }, m[le] = u, console.warn = i;
3299
+ }
3300
+ n(), Wn.on.componentUpdated(Q(() => {
3301
+ var r;
3302
+ ((r = t.value) == null ? void 0 : r.app) === e.app && (n(), !D.highPerfModeEnabled && re.hooks.callHook("routerInfoUpdated", { state: m[ee] }));
3303
+ }, 200));
3304
+ }
3305
+ function ao(e) {
3306
+ return {
3307
+ // get inspector tree
3308
+ async getInspectorTree(t) {
3309
+ const n = {
3310
+ ...t,
3311
+ app: R.value.app,
3312
+ rootNodes: []
3313
+ };
3314
+ return await new Promise((r) => {
3315
+ e.callHookWith(
3316
+ async (u) => {
3317
+ await Promise.all(u.map((o) => o(n))), r();
3318
+ },
3319
+ "getInspectorTree"
3320
+ /* GET_INSPECTOR_TREE */
3321
+ );
3322
+ }), n.rootNodes;
3323
+ },
3324
+ // get inspector state
3325
+ async getInspectorState(t) {
3326
+ const n = {
3327
+ ...t,
3328
+ app: R.value.app,
3329
+ state: null
3330
+ }, r = {
3331
+ currentTab: `custom-inspector:${t.inspectorId}`
3332
+ };
3333
+ return await new Promise((u) => {
3334
+ e.callHookWith(
3335
+ async (o) => {
3336
+ await Promise.all(o.map((s) => s(n, r))), u();
3337
+ },
3338
+ "getInspectorState"
3339
+ /* GET_INSPECTOR_STATE */
3340
+ );
3341
+ }), n.state;
3342
+ },
3343
+ // edit inspector state
3344
+ editInspectorState(t) {
3345
+ const n = new Pu(), r = {
3346
+ ...t,
3347
+ app: R.value.app,
3348
+ set: (u, o = t.path, s = t.state.value, i) => {
3349
+ n.set(u, o, s, i || n.createDefaultSetCallback(t.state));
3350
+ }
3351
+ };
3352
+ e.callHookWith(
3353
+ (u) => {
3354
+ u.forEach((o) => o(r));
3355
+ },
3356
+ "editInspectorState"
3357
+ /* EDIT_INSPECTOR_STATE */
3358
+ );
3359
+ },
3360
+ // send inspector state
3361
+ sendInspectorState(t) {
3362
+ const n = ge(t);
3363
+ e.callHook("sendInspectorState", { inspectorId: t, plugin: {
3364
+ descriptor: n.descriptor,
3365
+ setupFn: () => ({})
3366
+ } });
3367
+ },
3368
+ // inspect component inspector
3369
+ inspectComponentInspector() {
3370
+ return Cu();
3371
+ },
3372
+ // cancel inspect component inspector
3373
+ cancelInspectComponentInspector() {
3374
+ return Tu();
3375
+ },
3376
+ // get component render code
3377
+ getComponentRenderCode(t) {
3378
+ const n = Fe(R.value, t);
3379
+ if (n)
3380
+ return (n == null ? void 0 : n.type) instanceof Function ? n.type.toString() : n.render.toString();
3381
+ },
3382
+ // scroll to component
3383
+ scrollToComponent(t) {
3384
+ return Iu({ id: t });
3385
+ },
3386
+ // open in editor
3387
+ openInEditor: ju,
3388
+ // get vue inspector
3389
+ getVueInspector: Ru,
3390
+ // toggle app
3391
+ toggleApp(t, n) {
3392
+ const r = Oe.value.find((u) => u.id === t);
3393
+ r && (Hu(t), zu(r), io(r, R), zn(), qn(r.app, n));
3394
+ },
3395
+ // inspect dom
3396
+ inspectDOM(t) {
3397
+ const n = Fe(R.value, t);
3398
+ if (n) {
3399
+ const [r] = Ye(n);
3400
+ r && (m.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__ = r);
3401
+ }
3402
+ },
3403
+ updatePluginSettings(t, n, r) {
3404
+ qu(t, n, r);
3405
+ },
3406
+ getPluginSettings(t) {
3407
+ return {
3408
+ options: Gu(t),
3409
+ values: Gn(t)
3410
+ };
3411
+ }
3412
+ };
3413
+ }
3414
+ l();
3415
+ var Ht, jt;
3416
+ (jt = (Ht = m).__VUE_DEVTOOLS_ENV__) != null || (Ht.__VUE_DEVTOOLS_ENV__ = {
3417
+ vitePluginDetected: !1
3418
+ });
3419
+ var Gt = Mu(), Wt, qt;
3420
+ (qt = (Wt = m).__VUE_DEVTOOLS_KIT_CONTEXT__) != null || (Wt.__VUE_DEVTOOLS_KIT_CONTEXT__ = {
3421
+ hooks: Gt,
3422
+ get state() {
3423
+ return {
3424
+ ...D,
3425
+ activeAppRecordId: R.id,
3426
+ activeAppRecord: R.value,
3427
+ appRecords: Oe.value
3428
+ };
3429
+ },
3430
+ api: ao(Gt)
3431
+ });
3432
+ var re = m.__VUE_DEVTOOLS_KIT_CONTEXT__;
3433
+ l();
3434
+ au(cu());
3435
+ var Yt, Zt;
3436
+ (Zt = (Yt = m).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__) != null || (Yt.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__ = {
3437
+ id: 0,
3438
+ appIds: /* @__PURE__ */ new Set()
3439
+ });
3440
+ l();
3441
+ function lo(e) {
3442
+ D.highPerfModeEnabled = e ?? !D.highPerfModeEnabled, !e && R.value && qn(R.value.app);
3443
+ }
3444
+ l();
3445
+ l();
3446
+ l();
3447
+ function co(e) {
3448
+ D.devtoolsClientDetected = {
3449
+ ...D.devtoolsClientDetected,
3450
+ ...e
3451
+ };
3452
+ const t = Object.values(D.devtoolsClientDetected).some(Boolean);
3453
+ lo(!t);
3454
+ }
3455
+ var Xt, Jt;
3456
+ (Jt = (Xt = m).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__) != null || (Xt.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__ = co);
3457
+ l();
3458
+ l();
3459
+ l();
3460
+ l();
3461
+ l();
3462
+ l();
3463
+ l();
3464
+ var fo = class {
3465
+ constructor() {
3466
+ this.keyToValue = /* @__PURE__ */ new Map(), this.valueToKey = /* @__PURE__ */ new Map();
3467
+ }
3468
+ set(e, t) {
3469
+ this.keyToValue.set(e, t), this.valueToKey.set(t, e);
3470
+ }
3471
+ getByKey(e) {
3472
+ return this.keyToValue.get(e);
3473
+ }
3474
+ getByValue(e) {
3475
+ return this.valueToKey.get(e);
3476
+ }
3477
+ clear() {
3478
+ this.keyToValue.clear(), this.valueToKey.clear();
3479
+ }
3480
+ }, Yn = class {
3481
+ constructor(e) {
3482
+ this.generateIdentifier = e, this.kv = new fo();
3483
+ }
3484
+ register(e, t) {
3485
+ this.kv.getByValue(e) || (t || (t = this.generateIdentifier(e)), this.kv.set(t, e));
3486
+ }
3487
+ clear() {
3488
+ this.kv.clear();
3489
+ }
3490
+ getIdentifier(e) {
3491
+ return this.kv.getByValue(e);
3492
+ }
3493
+ getValue(e) {
3494
+ return this.kv.getByKey(e);
3495
+ }
3496
+ }, _o = class extends Yn {
3497
+ constructor() {
3498
+ super((e) => e.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
3499
+ }
3500
+ register(e, t) {
3501
+ typeof t == "object" ? (t.allowProps && this.classToAllowedProps.set(e, t.allowProps), super.register(e, t.identifier)) : super.register(e, t);
3502
+ }
3503
+ getAllowedProps(e) {
3504
+ return this.classToAllowedProps.get(e);
3505
+ }
3506
+ };
3507
+ l();
3508
+ l();
3509
+ function ho(e) {
3510
+ if ("values" in Object)
3511
+ return Object.values(e);
3512
+ const t = [];
3513
+ for (const n in e)
3514
+ e.hasOwnProperty(n) && t.push(e[n]);
3515
+ return t;
3516
+ }
3517
+ function po(e, t) {
3518
+ const n = ho(e);
3519
+ if ("find" in n)
3520
+ return n.find(t);
3521
+ const r = n;
3522
+ for (let u = 0; u < r.length; u++) {
3523
+ const o = r[u];
3524
+ if (t(o))
3525
+ return o;
3526
+ }
3527
+ }
3528
+ function te(e, t) {
3529
+ Object.entries(e).forEach(([n, r]) => t(r, n));
3530
+ }
3531
+ function me(e, t) {
3532
+ return e.indexOf(t) !== -1;
3533
+ }
3534
+ function Qt(e, t) {
3535
+ for (let n = 0; n < e.length; n++) {
3536
+ const r = e[n];
3537
+ if (t(r))
3538
+ return r;
3539
+ }
3540
+ }
3541
+ var Eo = class {
3542
+ constructor() {
3543
+ this.transfomers = {};
3544
+ }
3545
+ register(e) {
3546
+ this.transfomers[e.name] = e;
3547
+ }
3548
+ findApplicable(e) {
3549
+ return po(this.transfomers, (t) => t.isApplicable(e));
3550
+ }
3551
+ findByName(e) {
3552
+ return this.transfomers[e];
3553
+ }
3554
+ };
3555
+ l();
3556
+ l();
3557
+ var go = (e) => Object.prototype.toString.call(e).slice(8, -1), Zn = (e) => typeof e > "u", mo = (e) => e === null, ce = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, $e = (e) => ce(e) && Object.keys(e).length === 0, K = (e) => Array.isArray(e), vo = (e) => typeof e == "string", yo = (e) => typeof e == "number" && !isNaN(e), Ao = (e) => typeof e == "boolean", bo = (e) => e instanceof RegExp, fe = (e) => e instanceof Map, de = (e) => e instanceof Set, Xn = (e) => go(e) === "Symbol", wo = (e) => e instanceof Date && !isNaN(e.valueOf()), Oo = (e) => e instanceof Error, en = (e) => typeof e == "number" && isNaN(e), So = (e) => Ao(e) || mo(e) || Zn(e) || yo(e) || vo(e) || Xn(e), To = (e) => typeof e == "bigint", Co = (e) => e === 1 / 0 || e === -1 / 0, Io = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), Do = (e) => e instanceof URL;
3558
+ l();
3559
+ var Jn = (e) => e.replace(/\./g, "\\."), Re = (e) => e.map(String).map(Jn).join("."), ie = (e) => {
3560
+ const t = [];
3561
+ let n = "";
3562
+ for (let u = 0; u < e.length; u++) {
3563
+ let o = e.charAt(u);
3564
+ if (o === "\\" && e.charAt(u + 1) === ".") {
3565
+ n += ".", u++;
3566
+ continue;
3567
+ }
3568
+ if (o === ".") {
3569
+ t.push(n), n = "";
3570
+ continue;
3571
+ }
3572
+ n += o;
3573
+ }
3574
+ const r = n;
3575
+ return t.push(r), t;
3576
+ };
3577
+ l();
3578
+ function B(e, t, n, r) {
3579
+ return {
3580
+ isApplicable: e,
3581
+ annotation: t,
3582
+ transform: n,
3583
+ untransform: r
3584
+ };
3585
+ }
3586
+ var Qn = [
3587
+ B(Zn, "undefined", () => null, () => {
3588
+ }),
3589
+ B(To, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : (console.error("Please add a BigInt polyfill."), e)),
3590
+ B(wo, "Date", (e) => e.toISOString(), (e) => new Date(e)),
3591
+ B(Oo, "Error", (e, t) => {
3592
+ const n = {
3593
+ name: e.name,
3594
+ message: e.message
3595
+ };
3596
+ return t.allowedErrorProps.forEach((r) => {
3597
+ n[r] = e[r];
3598
+ }), n;
3599
+ }, (e, t) => {
3600
+ const n = new Error(e.message);
3601
+ return n.name = e.name, n.stack = e.stack, t.allowedErrorProps.forEach((r) => {
3602
+ n[r] = e[r];
3603
+ }), n;
3604
+ }),
3605
+ B(bo, "regexp", (e) => "" + e, (e) => {
3606
+ const t = e.slice(1, e.lastIndexOf("/")), n = e.slice(e.lastIndexOf("/") + 1);
3607
+ return new RegExp(t, n);
3608
+ }),
3609
+ B(
3610
+ de,
3611
+ "set",
3612
+ // (sets only exist in es6+)
3613
+ // eslint-disable-next-line es5/no-es6-methods
3614
+ (e) => [...e.values()],
3615
+ (e) => new Set(e)
3616
+ ),
3617
+ B(fe, "map", (e) => [...e.entries()], (e) => new Map(e)),
3618
+ B((e) => en(e) || Co(e), "number", (e) => en(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
3619
+ B((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
3620
+ B(Do, "URL", (e) => e.toString(), (e) => new URL(e))
3621
+ ];
3622
+ function Se(e, t, n, r) {
3623
+ return {
3624
+ isApplicable: e,
3625
+ annotation: t,
3626
+ transform: n,
3627
+ untransform: r
3628
+ };
3629
+ }
3630
+ var er = Se((e, t) => Xn(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, n) => {
3631
+ const r = n.symbolRegistry.getValue(t[1]);
3632
+ if (!r)
3633
+ throw new Error("Trying to deserialize unknown symbol");
3634
+ return r;
3635
+ }), ko = [
3636
+ Int8Array,
3637
+ Uint8Array,
3638
+ Int16Array,
3639
+ Uint16Array,
3640
+ Int32Array,
3641
+ Uint32Array,
3642
+ Float32Array,
3643
+ Float64Array,
3644
+ Uint8ClampedArray
3645
+ ].reduce((e, t) => (e[t.name] = t, e), {}), tr = Se(Io, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
3646
+ const n = ko[t[1]];
3647
+ if (!n)
3648
+ throw new Error("Trying to deserialize unknown typed array");
3649
+ return new n(e);
3650
+ });
3651
+ function nr(e, t) {
3652
+ return e != null && e.constructor ? !!t.classRegistry.getIdentifier(e.constructor) : !1;
3653
+ }
3654
+ var rr = Se(nr, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => {
3655
+ const n = t.classRegistry.getAllowedProps(e.constructor);
3656
+ if (!n)
3657
+ return { ...e };
3658
+ const r = {};
3659
+ return n.forEach((u) => {
3660
+ r[u] = e[u];
3661
+ }), r;
3662
+ }, (e, t, n) => {
3663
+ const r = n.classRegistry.getValue(t[1]);
3664
+ if (!r)
3665
+ throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);
3666
+ return Object.assign(Object.create(r.prototype), e);
3667
+ }), ur = Se((e, t) => !!t.customTransformerRegistry.findApplicable(e), (e, t) => ["custom", t.customTransformerRegistry.findApplicable(e).name], (e, t) => t.customTransformerRegistry.findApplicable(e).serialize(e), (e, t, n) => {
3668
+ const r = n.customTransformerRegistry.findByName(t[1]);
3669
+ if (!r)
3670
+ throw new Error("Trying to deserialize unknown custom value");
3671
+ return r.deserialize(e);
3672
+ }), Ro = [rr, er, ur, tr], tn = (e, t) => {
3673
+ const n = Qt(Ro, (u) => u.isApplicable(e, t));
3674
+ if (n)
3675
+ return {
3676
+ value: n.transform(e, t),
3677
+ type: n.annotation(e, t)
3678
+ };
3679
+ const r = Qt(Qn, (u) => u.isApplicable(e, t));
3680
+ if (r)
3681
+ return {
3682
+ value: r.transform(e, t),
3683
+ type: r.annotation
3684
+ };
3685
+ }, or = {};
3686
+ Qn.forEach((e) => {
3687
+ or[e.annotation] = e;
3688
+ });
3689
+ var xo = (e, t, n) => {
3690
+ if (K(t))
3691
+ switch (t[0]) {
3692
+ case "symbol":
3693
+ return er.untransform(e, t, n);
3694
+ case "class":
3695
+ return rr.untransform(e, t, n);
3696
+ case "custom":
3697
+ return ur.untransform(e, t, n);
3698
+ case "typed-array":
3699
+ return tr.untransform(e, t, n);
3700
+ default:
3701
+ throw new Error("Unknown transformation: " + t);
3702
+ }
3703
+ else {
3704
+ const r = or[t];
3705
+ if (!r)
3706
+ throw new Error("Unknown transformation: " + t);
3707
+ return r.untransform(e, n);
3708
+ }
3709
+ };
3710
+ l();
3711
+ var q = (e, t) => {
3712
+ if (t > e.size)
3713
+ throw new Error("index out of bounds");
3714
+ const n = e.keys();
3715
+ for (; t > 0; )
3716
+ n.next(), t--;
3717
+ return n.next().value;
3718
+ };
3719
+ function sr(e) {
3720
+ if (me(e, "__proto__"))
3721
+ throw new Error("__proto__ is not allowed as a property");
3722
+ if (me(e, "prototype"))
3723
+ throw new Error("prototype is not allowed as a property");
3724
+ if (me(e, "constructor"))
3725
+ throw new Error("constructor is not allowed as a property");
3726
+ }
3727
+ var Po = (e, t) => {
3728
+ sr(t);
3729
+ for (let n = 0; n < t.length; n++) {
3730
+ const r = t[n];
3731
+ if (de(e))
3732
+ e = q(e, +r);
3733
+ else if (fe(e)) {
3734
+ const u = +r, o = +t[++n] == 0 ? "key" : "value", s = q(e, u);
3735
+ switch (o) {
3736
+ case "key":
3737
+ e = s;
3738
+ break;
3739
+ case "value":
3740
+ e = e.get(s);
3741
+ break;
3742
+ }
3743
+ } else
3744
+ e = e[r];
3745
+ }
3746
+ return e;
3747
+ }, Ke = (e, t, n) => {
3748
+ if (sr(t), t.length === 0)
3749
+ return n(e);
3750
+ let r = e;
3751
+ for (let o = 0; o < t.length - 1; o++) {
3752
+ const s = t[o];
3753
+ if (K(r)) {
3754
+ const i = +s;
3755
+ r = r[i];
3756
+ } else if (ce(r))
3757
+ r = r[s];
3758
+ else if (de(r)) {
3759
+ const i = +s;
3760
+ r = q(r, i);
3761
+ } else if (fe(r)) {
3762
+ if (o === t.length - 2)
3763
+ break;
3764
+ const f = +s, h = +t[++o] == 0 ? "key" : "value", A = q(r, f);
3765
+ switch (h) {
3766
+ case "key":
3767
+ r = A;
3768
+ break;
3769
+ case "value":
3770
+ r = r.get(A);
3771
+ break;
3772
+ }
3773
+ }
3774
+ }
3775
+ const u = t[t.length - 1];
3776
+ if (K(r) ? r[+u] = n(r[+u]) : ce(r) && (r[u] = n(r[u])), de(r)) {
3777
+ const o = q(r, +u), s = n(o);
3778
+ o !== s && (r.delete(o), r.add(s));
3779
+ }
3780
+ if (fe(r)) {
3781
+ const o = +t[t.length - 2], s = q(r, o);
3782
+ switch (+u == 0 ? "key" : "value") {
3783
+ case "key": {
3784
+ const f = n(s);
3785
+ r.set(f, r.get(s)), f !== s && r.delete(s);
3786
+ break;
3787
+ }
3788
+ case "value": {
3789
+ r.set(s, n(r.get(s)));
3790
+ break;
3791
+ }
3792
+ }
3793
+ }
3794
+ return e;
3795
+ };
3796
+ function ze(e, t, n = []) {
3797
+ if (!e)
3798
+ return;
3799
+ if (!K(e)) {
3800
+ te(e, (o, s) => ze(o, t, [...n, ...ie(s)]));
3801
+ return;
3802
+ }
3803
+ const [r, u] = e;
3804
+ u && te(u, (o, s) => {
3805
+ ze(o, t, [...n, ...ie(s)]);
3806
+ }), t(r, n);
3807
+ }
3808
+ function No(e, t, n) {
3809
+ return ze(t, (r, u) => {
3810
+ e = Ke(e, u, (o) => xo(o, r, n));
3811
+ }), e;
3812
+ }
3813
+ function Lo(e, t) {
3814
+ function n(r, u) {
3815
+ const o = Po(e, ie(u));
3816
+ r.map(ie).forEach((s) => {
3817
+ e = Ke(e, s, () => o);
3818
+ });
3819
+ }
3820
+ if (K(t)) {
3821
+ const [r, u] = t;
3822
+ r.forEach((o) => {
3823
+ e = Ke(e, ie(o), () => e);
3824
+ }), u && te(u, n);
3825
+ } else
3826
+ te(t, n);
3827
+ return e;
3828
+ }
3829
+ var Vo = (e, t) => ce(e) || K(e) || fe(e) || de(e) || nr(e, t);
3830
+ function Fo(e, t, n) {
3831
+ const r = n.get(e);
3832
+ r ? r.push(t) : n.set(e, [t]);
3833
+ }
3834
+ function Bo(e, t) {
3835
+ const n = {};
3836
+ let r;
3837
+ return e.forEach((u) => {
3838
+ if (u.length <= 1)
3839
+ return;
3840
+ t || (u = u.map((i) => i.map(String)).sort((i, f) => i.length - f.length));
3841
+ const [o, ...s] = u;
3842
+ o.length === 0 ? r = s.map(Re) : n[Re(o)] = s.map(Re);
3843
+ }), r ? $e(n) ? [r] : [r, n] : $e(n) ? void 0 : n;
3844
+ }
3845
+ var ir = (e, t, n, r, u = [], o = [], s = /* @__PURE__ */ new Map()) => {
3846
+ var i;
3847
+ const f = So(e);
3848
+ if (!f) {
3849
+ Fo(e, u, t);
3850
+ const _ = s.get(e);
3851
+ if (_)
3852
+ return r ? {
3853
+ transformedValue: null
3854
+ } : _;
3855
+ }
3856
+ if (!Vo(e, n)) {
3857
+ const _ = tn(e, n), v = _ ? {
3858
+ transformedValue: _.value,
3859
+ annotations: [_.type]
3860
+ } : {
3861
+ transformedValue: e
3862
+ };
3863
+ return f || s.set(e, v), v;
3864
+ }
3865
+ if (me(o, e))
3866
+ return {
3867
+ transformedValue: null
3868
+ };
3869
+ const h = tn(e, n), A = (i = h == null ? void 0 : h.value) != null ? i : e, a = K(A) ? [] : {}, p = {};
3870
+ te(A, (_, v) => {
3871
+ if (v === "__proto__" || v === "constructor" || v === "prototype")
3872
+ throw new Error(`Detected property ${v}. This is a prototype pollution risk, please remove it from your object.`);
3873
+ const E = ir(_, t, n, r, [...u, v], [...o, e], s);
3874
+ a[v] = E.transformedValue, K(E.annotations) ? p[v] = E.annotations : ce(E.annotations) && te(E.annotations, (g, O) => {
3875
+ p[Jn(v) + "." + O] = g;
3876
+ });
3877
+ });
3878
+ const c = $e(p) ? {
3879
+ transformedValue: a,
3880
+ annotations: h ? [h.type] : void 0
3881
+ } : {
3882
+ transformedValue: a,
3883
+ annotations: h ? [h.type, p] : p
3884
+ };
3885
+ return f || s.set(e, c), c;
3886
+ };
3887
+ l();
3888
+ l();
3889
+ function ar(e) {
3890
+ return Object.prototype.toString.call(e).slice(8, -1);
3891
+ }
3892
+ function nn(e) {
3893
+ return ar(e) === "Array";
3894
+ }
3895
+ function Uo(e) {
3896
+ if (ar(e) !== "Object")
3897
+ return !1;
3898
+ const t = Object.getPrototypeOf(e);
3899
+ return !!t && t.constructor === Object && t === Object.prototype;
3900
+ }
3901
+ function Mo(e, t, n, r, u) {
3902
+ const o = {}.propertyIsEnumerable.call(r, t) ? "enumerable" : "nonenumerable";
3903
+ o === "enumerable" && (e[t] = n), u && o === "nonenumerable" && Object.defineProperty(e, t, {
3904
+ value: n,
3905
+ enumerable: !1,
3906
+ writable: !0,
3907
+ configurable: !0
3908
+ });
3909
+ }
3910
+ function He(e, t = {}) {
3911
+ if (nn(e))
3912
+ return e.map((u) => He(u, t));
3913
+ if (!Uo(e))
3914
+ return e;
3915
+ const n = Object.getOwnPropertyNames(e), r = Object.getOwnPropertySymbols(e);
3916
+ return [...n, ...r].reduce((u, o) => {
3917
+ if (nn(t.props) && !t.props.includes(o))
3918
+ return u;
3919
+ const s = e[o], i = He(s, t);
3920
+ return Mo(u, o, i, e, t.nonenumerable), u;
3921
+ }, {});
3922
+ }
3923
+ var T = class {
3924
+ /**
3925
+ * @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
3926
+ */
3927
+ constructor({ dedupe: e = !1 } = {}) {
3928
+ this.classRegistry = new _o(), this.symbolRegistry = new Yn((t) => {
3929
+ var n;
3930
+ return (n = t.description) != null ? n : "";
3931
+ }), this.customTransformerRegistry = new Eo(), this.allowedErrorProps = [], this.dedupe = e;
3932
+ }
3933
+ serialize(e) {
3934
+ const t = /* @__PURE__ */ new Map(), n = ir(e, t, this, this.dedupe), r = {
3935
+ json: n.transformedValue
3936
+ };
3937
+ n.annotations && (r.meta = {
3938
+ ...r.meta,
3939
+ values: n.annotations
3940
+ });
3941
+ const u = Bo(t, this.dedupe);
3942
+ return u && (r.meta = {
3943
+ ...r.meta,
3944
+ referentialEqualities: u
3945
+ }), r;
3946
+ }
3947
+ deserialize(e) {
3948
+ const { json: t, meta: n } = e;
3949
+ let r = He(t);
3950
+ return n != null && n.values && (r = No(r, n.values, this)), n != null && n.referentialEqualities && (r = Lo(r, n.referentialEqualities)), r;
3951
+ }
3952
+ stringify(e) {
3953
+ return JSON.stringify(this.serialize(e));
3954
+ }
3955
+ parse(e) {
3956
+ return this.deserialize(JSON.parse(e));
3957
+ }
3958
+ registerClass(e, t) {
3959
+ this.classRegistry.register(e, t);
3960
+ }
3961
+ registerSymbol(e, t) {
3962
+ this.symbolRegistry.register(e, t);
3963
+ }
3964
+ registerCustom(e, t) {
3965
+ this.customTransformerRegistry.register({
3966
+ name: t,
3967
+ ...e
3968
+ });
3969
+ }
3970
+ allowErrorProps(...e) {
3971
+ this.allowedErrorProps.push(...e);
3972
+ }
3973
+ };
3974
+ T.defaultInstance = new T();
3975
+ T.serialize = T.defaultInstance.serialize.bind(T.defaultInstance);
3976
+ T.deserialize = T.defaultInstance.deserialize.bind(T.defaultInstance);
3977
+ T.stringify = T.defaultInstance.stringify.bind(T.defaultInstance);
3978
+ T.parse = T.defaultInstance.parse.bind(T.defaultInstance);
3979
+ T.registerClass = T.defaultInstance.registerClass.bind(T.defaultInstance);
3980
+ T.registerSymbol = T.defaultInstance.registerSymbol.bind(T.defaultInstance);
3981
+ T.registerCustom = T.defaultInstance.registerCustom.bind(T.defaultInstance);
3982
+ T.allowErrorProps = T.defaultInstance.allowErrorProps.bind(T.defaultInstance);
3983
+ l();
3984
+ l();
3985
+ l();
3986
+ l();
3987
+ l();
3988
+ l();
3989
+ l();
3990
+ l();
3991
+ l();
3992
+ l();
3993
+ l();
3994
+ l();
3995
+ l();
3996
+ l();
3997
+ l();
3998
+ l();
3999
+ l();
4000
+ l();
4001
+ l();
4002
+ l();
4003
+ l();
4004
+ l();
4005
+ l();
4006
+ var rn, un;
4007
+ (un = (rn = m).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__) != null || (rn.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__ = []);
4008
+ var on, sn;
4009
+ (sn = (on = m).__VUE_DEVTOOLS_KIT_RPC_CLIENT__) != null || (on.__VUE_DEVTOOLS_KIT_RPC_CLIENT__ = null);
4010
+ var an, ln;
4011
+ (ln = (an = m).__VUE_DEVTOOLS_KIT_RPC_SERVER__) != null || (an.__VUE_DEVTOOLS_KIT_RPC_SERVER__ = null);
4012
+ var cn, fn;
4013
+ (fn = (cn = m).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__) != null || (cn.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__ = null);
4014
+ var dn, _n;
4015
+ (_n = (dn = m).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__) != null || (dn.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__ = null);
4016
+ var hn, pn;
4017
+ (pn = (hn = m).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__) != null || (hn.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__ = null);
4018
+ l();
4019
+ l();
4020
+ l();
4021
+ l();
4022
+ l();
4023
+ l();
4024
+ l();
4025
+ var $o = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", Ko = "âḃćḋèḟĝḫíĵǩĺṁńŏṗɋŕśṭůṿẘẋẏẓḀḂḈḊḔḞḠḢḬĴḴĻḾŊÕṔɊŔṠṮŨṼẄẌŸƵ";
4026
+ function zo(e, t) {
4027
+ let n = "";
4028
+ t.prefix && (n += t.prefix);
4029
+ for (let r = 0; r < e.length; r++) {
4030
+ const u = e[r], o = t.accents ? Ko[$o.indexOf(u)] ?? u : u;
4031
+ n += o;
4032
+ }
4033
+ return t.suffix && (n += t.suffix), n;
4034
+ }
4035
+ function Ho(e, t, n) {
4036
+ let r;
4037
+ const u = /* @__PURE__ */ new Map(), o = t.warnMissing;
4038
+ t.warnMissing = (f) => {
4039
+ const h = Sn();
4040
+ o(f), h && (u.set(h, u.get(h) ?? /* @__PURE__ */ new Set()), u.get(h).add(f));
4041
+ };
4042
+ const s = /* @__PURE__ */ new WeakSet();
4043
+ Tn(() => {
4044
+ const f = n.bundles;
4045
+ for (const h of f) {
4046
+ if (s.has(h))
4047
+ continue;
4048
+ const A = h._transform;
4049
+ h._transform = (a) => (A != null && (a = A(a)), r != null && (a = r(a)), a), s.add(h);
4050
+ }
4051
+ }, { flush: "sync" });
4052
+ const i = ve(() => [...n.bundles].map((f) => {
4053
+ const h = new je(f.locales, {
4054
+ functions: f._functions,
4055
+ useIsolating: f._useIsolating
4056
+ });
4057
+ return h._terms = f._terms, h._messages = f._messages, h;
4058
+ }));
4059
+ ro({
4060
+ id: "fluent-vue",
4061
+ label: "fluent-vue",
4062
+ packageName: "fluent-vue",
4063
+ homepage: "https://fluent-vue.demivan.me",
4064
+ logo: "https://fluent-vue.demivan.me/assets/logo.svg",
4065
+ componentStateTypes: ["fluent-vue"],
4066
+ app: e,
4067
+ settings: {
4068
+ components: {
4069
+ label: "Components"
4070
+ },
4071
+ // Use option as a header
4072
+ showLocalized: {
4073
+ defaultValue: !0,
4074
+ label: "Mark localized",
4075
+ description: "Mark localized components in component tree",
4076
+ type: "boolean"
4077
+ },
4078
+ markMissing: {
4079
+ defaultValue: !0,
4080
+ label: "Mark missing",
4081
+ description: "Mark missing translations in component tree",
4082
+ type: "boolean"
4083
+ },
4084
+ showI18n: {
4085
+ defaultValue: !0,
4086
+ label: "Mark i18n",
4087
+ description: "Mark i18n components in component tree",
4088
+ type: "boolean"
4089
+ },
4090
+ pseudo: {
4091
+ label: "Pseudolocalization"
4092
+ },
4093
+ // Use option as a header
4094
+ pseudoEnable: {
4095
+ defaultValue: !1,
4096
+ label: "Enable",
4097
+ description: "Enable pseudolocalization",
4098
+ type: "boolean"
4099
+ },
4100
+ pseudoAccents: {
4101
+ defaultValue: !0,
4102
+ label: "Accents",
4103
+ description: "Enable pseudolocalization accents",
4104
+ type: "boolean"
4105
+ },
4106
+ pseudoPrefix: {
4107
+ label: "Prefix",
4108
+ type: "text",
4109
+ description: "Prefix to wrap translation",
4110
+ defaultValue: "["
4111
+ },
4112
+ pseudoSuffix: {
4113
+ label: "Suffix",
4114
+ type: "text",
4115
+ description: "Suffix to wrap translation",
4116
+ defaultValue: "]"
4117
+ }
4118
+ }
4119
+ }, (f) => {
4120
+ f.on.visitComponentTree(({ treeNode: a, componentInstance: p }) => {
4121
+ var c;
4122
+ const _ = f.getSettings();
4123
+ _.showI18n && a.name === t.componentName && a.tags.push({
4124
+ label: "fluent-vue",
4125
+ textColor: 0,
4126
+ backgroundColor: 4307075
4127
+ }), _.showLocalized && ((c = p == null ? void 0 : p.proxy) == null ? void 0 : c.$options.fluent) != null && a.tags.push({
4128
+ label: "localized",
4129
+ textColor: 0,
4130
+ backgroundColor: 4307075
4131
+ });
4132
+ const v = u.get(p);
4133
+ _.markMissing && v != null && v.size > 0 && a.tags.push({
4134
+ label: "missing translations",
4135
+ textColor: 16777215,
4136
+ backgroundColor: 11534368
4137
+ });
4138
+ }), f.on.inspectComponent(({ componentInstance: a, instanceData: p }) => {
4139
+ var c;
4140
+ const _ = u.get(a);
4141
+ if (_)
4142
+ for (const g of _.values())
4143
+ p.state.push({
4144
+ type: "Missing translations",
4145
+ key: g,
4146
+ editable: !1,
4147
+ value: {
4148
+ _custom: {
4149
+ type: "custom",
4150
+ display: '<span style="color:#B00020">Missing</span>'
4151
+ }
4152
+ }
4153
+ });
4154
+ const v = (c = a == null ? void 0 : a.proxy) == null ? void 0 : c.$options.fluent;
4155
+ if (!v)
4156
+ return;
4157
+ const E = i.value;
4158
+ for (const [g, O] of Object.entries(v)) {
4159
+ const b = E.find((I) => I.locales.includes(g));
4160
+ if (b != null)
4161
+ for (const I of O.body) {
4162
+ const z = b.hasMessage(I.id);
4163
+ p.state.push({
4164
+ type: `Component translations (${g})`,
4165
+ key: I.id,
4166
+ editable: !1,
4167
+ value: {
4168
+ _custom: {
4169
+ type: "custom",
4170
+ display: (I.value ? b.formatPattern(I.value, {}, []) : "") + (z ? '&nbsp;<span style="color:#ffa726">Global</span>' : "")
4171
+ }
4172
+ }
4173
+ });
4174
+ }
4175
+ }
4176
+ }), f.on.getInspectorTree((a) => {
4177
+ a.inspectorId === "fluent-vue-inspector" && (a.rootNodes = [
4178
+ {
4179
+ id: "global",
4180
+ label: "Global translations"
4181
+ },
4182
+ {
4183
+ id: "missing",
4184
+ label: "Missing translations"
4185
+ }
4186
+ ]);
4187
+ });
4188
+ const h = /* @__PURE__ */ new Set();
4189
+ f.on.getInspectorState(async (a) => {
4190
+ if (a.inspectorId === "fluent-vue-inspector") {
4191
+ if (a.nodeId === "global") {
4192
+ a.state = {};
4193
+ for (const p of i.value)
4194
+ a.state[p.locales.join(",")] = [...p._messages.entries()].map(([c, _]) => ({
4195
+ key: _.id,
4196
+ value: _.value ? p.formatPattern(_.value, {}, []) : ""
4197
+ }));
4198
+ }
4199
+ if (a.nodeId === "missing") {
4200
+ a.state = {};
4201
+ for (const p of i.value) {
4202
+ const c = p.locales.join(",");
4203
+ for (const [_, v] of u.entries())
4204
+ for (const E of v)
4205
+ a.state[c] = a.state[c] ?? [], a.state[c].push({
4206
+ key: E,
4207
+ editable: !0,
4208
+ value: {
4209
+ _custom: {
4210
+ type: "component",
4211
+ value: h.has(_),
4212
+ display: await f.getComponentName(_)
4213
+ }
4214
+ }
4215
+ });
4216
+ }
4217
+ }
4218
+ }
4219
+ }), f.on.editInspectorState((a) => {
4220
+ if (a.inspectorId === "fluent-vue-inspector" && a.nodeId === "missing") {
4221
+ const p = a.path[0], [c] = u.entries().find(([_, v]) => v.has(p)) ?? [];
4222
+ c != null && (a.state.value ? (h.add(c), f.highlightElement(c)) : (h.delete(c), f.unhighlightElement()));
4223
+ }
4224
+ });
4225
+ function A(a) {
4226
+ a.pseudoEnable ? r = (p) => zo(p, {
4227
+ prefix: a.pseudoPrefix ?? void 0,
4228
+ suffix: a.pseudoSuffix ?? void 0,
4229
+ accents: a.pseudoAccents ?? !1
4230
+ }) : r = void 0, n.bundles = [...n.bundles];
4231
+ }
4232
+ f.on.setPluginSettings((a) => {
4233
+ A(a.settings);
4234
+ }), A(f.getSettings()), f.addInspector({
4235
+ id: "fluent-vue-inspector",
4236
+ label: "fluent-vue"
4237
+ });
4238
+ });
4239
+ }
4240
+ function jo(e) {
4241
+ Rr(typeof DOMParser < "u", "DOMParser is not available. Please provide a custom parseMarkup function.");
4242
+ const n = new DOMParser().parseFromString(e, "text/html");
4243
+ return Array.from(n.body.childNodes);
4244
+ }
4245
+ function Go(e) {
4246
+ J(`Could not find translation for key [${e}]`);
4247
+ }
4248
+ function Wo(e) {
4249
+ return e.warnMissing === !0 || e.warnMissing == null ? Go : e.warnMissing === !1 ? () => {
4250
+ } : e.warnMissing;
4251
+ }
4252
+ function qo(e) {
4253
+ var t, n, r, u, o, s;
4254
+ return {
4255
+ warnMissing: Wo(e),
4256
+ parseMarkup: e.parseMarkup ?? jo,
4257
+ mapVariable: e.mapVariable,
4258
+ globalFormatName: ((n = (t = e.globals) == null ? void 0 : t.functions) == null ? void 0 : n.format) ?? "$t",
4259
+ globalFormatAttrsName: ((u = (r = e.globals) == null ? void 0 : r.functions) == null ? void 0 : u.formatAttrs) ?? "$ta",
4260
+ directiveName: ((o = e.globals) == null ? void 0 : o.directive) ?? "t",
4261
+ componentName: ((s = e.globals) == null ? void 0 : s.component) ?? "i18n",
4262
+ componentTag: e.componentTag ?? "span"
4263
+ };
4264
+ }
4265
+ var Yo = /-(\w)/g;
4266
+ function Zo(e) {
4267
+ return e.replace(Yo, (t, n) => n.toUpperCase());
4268
+ }
4269
+ function lr(e) {
4270
+ const t = e == null ? void 0 : e.$parent, n = t == null ? void 0 : t.$options;
4271
+ return n != null && n.fluent == null ? lr(t) : t;
4272
+ }
4273
+ var Xo = /<|&#?\w+;/;
4274
+ function Jo(e, t) {
4275
+ return _r({
4276
+ name: e.componentName,
4277
+ props: {
4278
+ path: { type: String, required: !0 },
4279
+ tag: { type: [String, Boolean], default: e.componentTag },
4280
+ args: { type: Object, default: () => ({}) },
4281
+ html: { type: Boolean, default: !1 },
4282
+ noTag: { type: Boolean, default: !1 }
4283
+ },
4284
+ setup(n, { slots: r, attrs: u }) {
4285
+ const o = Sn(), s = lr(o == null ? void 0 : o.proxy), i = Y(t, s), f = ve(() => {
4286
+ const p = Object.assign(
4287
+ {},
4288
+ n.args,
4289
+ ...Object.keys(r).map((v) => ({
4290
+ [v]: `￿￾${v}￿`
4291
+ }))
4292
+ ), c = i.formatWithAttrs(n.path, p), _ = Object.fromEntries(
4293
+ Object.entries(c.attributes).map(([v, E]) => [Zo(v), E])
4294
+ );
4295
+ return {
4296
+ value: c.value,
4297
+ attributes: _
4298
+ };
4299
+ }), h = (p) => p == null ? void 0 : p.split("￿").map(
4300
+ (c) => c.startsWith("￾") ? r[c.replace("￾", "")](f.value.attributes) : c
4301
+ ), A = (p) => {
4302
+ if (p.nodeType === 3)
4303
+ return h(p.nodeValue);
4304
+ if (p.nodeType === 1) {
4305
+ const c = p;
4306
+ return ot(
4307
+ c.nodeName.toLowerCase(),
4308
+ {
4309
+ ...Object.fromEntries(
4310
+ Array.from(c.attributes).map((_) => [_.name, _.value])
4311
+ )
4312
+ },
4313
+ Array.from(c.childNodes).map((_) => A(_))
4314
+ );
4315
+ }
4316
+ return J(`Unsupported node type: ${p.nodeType}. If you need support for it, please, create an issue in fluent-vue repository.`), [];
4317
+ }, a = ve(() => !n.html || !Xo.test(f.value.value) ? h(f.value.value) : i.options.parseMarkup(f.value.value).map(A));
4318
+ return () => n.tag === !1 || n.noTag ? a.value : ot(n.tag, { ...u }, a.value);
4319
+ }
4320
+ });
4321
+ }
4322
+ var xe = {
4323
+ global: ["title", "aria-label", "aria-valuetext", "aria-moz-hint"],
4324
+ a: ["download"],
4325
+ area: ["download", "alt"],
4326
+ // value is special-cased in isAttrNameLocalizable
4327
+ input: ["alt", "placeholder"],
4328
+ menuitem: ["label"],
4329
+ menu: ["label"],
4330
+ optgroup: ["label"],
4331
+ option: ["label"],
4332
+ track: ["label"],
4333
+ img: ["alt"],
4334
+ textarea: ["placeholder"],
4335
+ th: ["abbr"]
4336
+ };
4337
+ function Qo(e, t, n = []) {
4338
+ if (n.includes(e))
4339
+ return !0;
4340
+ const r = e.toLowerCase(), u = t.localName;
4341
+ if (xe.global.includes(r))
4342
+ return !0;
4343
+ if (xe[u] == null)
4344
+ return !1;
4345
+ if (xe[u].includes(r))
4346
+ return !0;
4347
+ if (t.namespaceURI === "http://www.w3.org/1999/xhtml" && u === "input" && r === "value") {
4348
+ const o = t.type.toLowerCase();
4349
+ if (o === "submit" || o === "button" || o === "reset")
4350
+ return !0;
4351
+ }
4352
+ return !1;
4353
+ }
4354
+ function En(e, t, n) {
4355
+ const r = n.arg;
4356
+ if (r === void 0) {
4357
+ J("v-t directive is missing arg with translation key");
4358
+ return;
4359
+ }
4360
+ const u = t.formatWithAttrs(r, n.value);
4361
+ u.hasValue && (e.textContent = u.value);
4362
+ const o = Object.keys(n.modifiers);
4363
+ for (const [s, i] of Object.entries(u.attributes))
4364
+ Qo(s, e, o) ? e.setAttribute(s, i) : J(`Attribute '${s}' on element <${e.tagName.toLowerCase()}> is not localizable. Remove it from the translation. Translation key: ${r}`);
4365
+ }
4366
+ function es(e) {
4367
+ return {
4368
+ mounted(t, n) {
4369
+ Tn(() => {
4370
+ const r = Y(e, n.instance);
4371
+ En(t, r, n);
4372
+ });
4373
+ },
4374
+ updated(t, n) {
4375
+ const r = Y(e, n.instance);
4376
+ En(t, r, n);
4377
+ },
4378
+ getSSRProps(t) {
4379
+ const n = Y(e, t.instance);
4380
+ if (t.arg === void 0)
4381
+ return J("v-t directive is missing arg with translation key"), {};
4382
+ const r = n.formatWithAttrs(t.arg, t.value), u = r.attributes;
4383
+ return r.hasValue && (u.textContent = r.value), u;
4384
+ }
4385
+ };
4386
+ }
4387
+ function ts(e) {
4388
+ const t = dr(e.bundles), n = qo(e), r = new In(t, n);
4389
+ return {
4390
+ get bundles() {
4391
+ return t.value;
4392
+ },
4393
+ set bundles(u) {
4394
+ t.value = u;
4395
+ },
4396
+ mergedWith: (u) => Dn(r, u),
4397
+ format: r.format.bind(r),
4398
+ formatAttrs: r.formatAttrs.bind(r),
4399
+ formatWithAttrs: r.formatWithAttrs.bind(r),
4400
+ $t: r.format.bind(r),
4401
+ $ta: r.formatAttrs.bind(r),
4402
+ install(u) {
4403
+ {
4404
+ const o = u;
4405
+ process.env.NODE_ENV !== "production" && Ho(o, n, this), o.provide(Pr, r), o.config.globalProperties[n.globalFormatName] = function(s, i) {
4406
+ return Y(r, this).format(s, i);
4407
+ }, o.config.globalProperties[n.globalFormatAttrsName] = function(s, i) {
4408
+ return Y(r, this).formatAttrs(s, i);
4409
+ }, o.directive(n.directiveName, es(r));
4410
+ }
4411
+ u.component(n.componentName, Jo(n, r));
4412
+ }
4413
+ };
4414
+ }
4415
+ const ns = {
4416
+ useCache: !0
4417
+ }, rs = `No bundles! you must await .ready before installing
4418
+ LocaleManager as a plugin. Either instantiate with warmUp = true (default) or
4419
+ call and await .change() manually.`.replace(`
4420
+ `, " ");
4421
+ class us {
4422
+ constructor({
4423
+ bundleSource: t,
4424
+ preferredLocale: n,
4425
+ allowedLocales: r,
4426
+ namespaces: u,
4427
+ // locale to use for any translations that do not exist for user's
4428
+ // preferred locale. Defaults to en-US like in the current app.
4429
+ fallbackLocale: o,
4430
+ // will automatically "warm up" the bundles specified by the initial locale
4431
+ // and namespace options.
4432
+ warmUp: s = !0
4433
+ }) {
4434
+ this.localStorageKey = "user-locale", this.allowedLocales = [], this.currentNamespaces = /* @__PURE__ */ new Set(), this._resolveReady = null, this.fluent = null, this._cachedBundles = null, this._cachedHash = null, this.preferredLocale = null, this.bundleSource = t, this.fallbackLocale = o, this.setOptions({ allowedLocales: r, preferredLocale: n, namespaces: u }), this.ready = new Promise((i) => {
4435
+ this._resolveReady = i;
4436
+ }), s && this.warmUp();
4437
+ }
4438
+ async warmUp() {
4439
+ if (this._resolveReady === null)
4440
+ throw new Error("you should not have called this!");
4441
+ if (this.currentNamespaces.size === 0)
4442
+ throw new Error("provide at least one namespace when using auto-init!");
4443
+ try {
4444
+ await this.getCurrentBundles(), this._resolveReady(null);
4445
+ } catch (t) {
4446
+ t instanceof Error ? this._resolveReady(t) : this._resolveReady(new Error(`${t}`));
4447
+ } finally {
4448
+ this._resolveReady = null;
4449
+ }
4450
+ }
4451
+ get fluentFormat() {
4452
+ var t;
4453
+ if ((t = this.fluent) != null && t.format)
4454
+ return this.fluent.format;
4455
+ throw new Error("fluent not ready");
4456
+ }
4457
+ get fluentFormatAttrs() {
4458
+ var t;
4459
+ if ((t = this.fluent) != null && t.formatAttrs)
4460
+ return this.fluent.formatAttrs;
4461
+ throw new Error("fluent not ready");
4462
+ }
4463
+ // possibly use return type to relate failed attempts to change the locale?
4464
+ // TODO - really hate this name. lol.
4465
+ async change(t) {
4466
+ const n = { ...ns, ...t };
4467
+ n.useCache || (this._cachedHash = null, this._cachedBundles = null), this.setOptions({
4468
+ allowedLocales: n.allowedLocales,
4469
+ preferredLocale: n.preferredLocale,
4470
+ namespaces: n.namespaces
4471
+ });
4472
+ const r = await this.getCurrentBundles();
4473
+ this.fluent !== null && (this.fluent.bundles = r), this._resolveReady && this._resolveReady(null);
4474
+ }
4475
+ initFluent() {
4476
+ return ts({ bundles: this.currentBundles });
4477
+ }
4478
+ determineLocale({
4479
+ preferredLocale: t,
4480
+ allowedLocales: n
4481
+ }) {
4482
+ if (t)
4483
+ return t;
4484
+ if (n && n.length > 0)
4485
+ return n[0];
4486
+ const r = this.getStoredLocale();
4487
+ if (r)
4488
+ return r;
4489
+ const u = this.getBrowserLocale();
4490
+ return u || this.fallbackLocale;
4491
+ }
4492
+ // TODO - use a local storage wrapper instead of window.localStorage
4493
+ getStoredLocale() {
4494
+ return localStorage.getItem(this.localStorageKey);
4495
+ }
4496
+ saveLocale(t) {
4497
+ localStorage.setItem(this.localStorageKey, t);
4498
+ }
4499
+ getBrowserLocale() {
4500
+ const t = navigator.languages;
4501
+ return t.length > 0 ? t[0] : null;
4502
+ }
4503
+ get fluentPlugin() {
4504
+ return this.fluent === null && (this.fluent = this.initFluent()), this.fluent;
4505
+ }
4506
+ get currentBundles() {
4507
+ if (this._cachedBundles === null)
4508
+ throw new Error(rs);
4509
+ return this._cachedBundles;
4510
+ }
4511
+ // how about for now just attempt to load the primary and the fallback. I feel
4512
+ // like doing more than that is probably not necessary in the forseeable
4513
+ // future, but we could be a lot more discerning here based on what locales
4514
+ // we support and so on.
4515
+ get activeLocales() {
4516
+ return !this.preferredLocale || this.preferredLocale === this.fallbackLocale ? [this.fallbackLocale] : [this.preferredLocale, this.fallbackLocale];
4517
+ }
4518
+ setOptions({
4519
+ preferredLocale: t,
4520
+ allowedLocales: n,
4521
+ namespaces: r
4522
+ }) {
4523
+ n && this.setAllowedLocales(n), this.setPreferredLocale(
4524
+ this.determineLocale({ allowedLocales: n, preferredLocale: t })
4525
+ ), r && this.addNamespaces(r);
4526
+ }
4527
+ setPreferredLocale(t) {
4528
+ this.preferredLocale = t;
4529
+ const n = this.allowedLocales.indexOf(t);
4530
+ n !== -1 && this.allowedLocales.splice(n, 1), this.allowedLocales.unshift(t), this.setCurrentLocaleProp(this.preferredLocale), this.saveLocale(t);
4531
+ }
4532
+ setAllowedLocales(t) {
4533
+ this.allowedLocales = [...t], this.allowedLocales.includes(this.fallbackLocale) || this.allowedLocales.push(this.fallbackLocale);
4534
+ }
4535
+ addNamespaces(t) {
4536
+ for (const n of t)
4537
+ this.currentNamespaces.add(n);
4538
+ }
4539
+ async getCurrentBundles() {
4540
+ if (this.currentNamespaces.size === 0)
4541
+ throw new Error("no namespaces set!");
4542
+ const t = this.activeLocales, n = [...this.currentNamespaces], r = this.hashState(t, n);
4543
+ return this.getCachedBundles(r) ?? this.loadBundles(t, n);
4544
+ }
4545
+ async loadBundles(t, n) {
4546
+ const r = await this.bundleSource.getBundles(t, n);
4547
+ return this._cachedHash = this.hashState(t, n), this._cachedBundles = r, r;
4548
+ }
4549
+ getCachedBundles(t) {
4550
+ return this._cachedBundles === null || this._cachedHash !== t ? null : this._cachedBundles;
4551
+ }
4552
+ hashState(t, n) {
4553
+ return `${t}|${[...n].sort()}`;
4554
+ }
4555
+ }
4556
+ const Pe = /^(-?[a-zA-Z][\w-]*) *= */gm, gn = /\.([a-zA-Z][\w-]*) *= */y, os = /\*?\[/y, Ne = /(-?[0-9]+(?:\.([0-9]+))?)/y, ss = /([a-zA-Z][\w-]*)/y, mn = /([$-])?([a-zA-Z][\w-]*)(?:\.([a-zA-Z][\w-]*))?/y, is = /^[A-Z][A-Z0-9_-]*$/, Ee = /([^{}\n\r]+)/y, as = /([^\\"\n\r]*)/y, vn = /\\([\\"])/y, yn = /\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{6})/y, ls = /^\n+/, An = / +$/, cs = / *\r?\n/g, fs = /( *)$/, ds = /{\s*/y, bn = /\s*}/y, _s = /\[\s*/y, hs = /\s*] */y, ps = /\s*\(\s*/y, Es = /\s*->\s*/y, gs = /\s*:\s*/y, ms = /\s*,?\s*/y, vs = /\s+/y;
4557
+ class ys {
4558
+ constructor(t) {
4559
+ this.body = [], Pe.lastIndex = 0;
4560
+ let n = 0;
4561
+ for (; ; ) {
4562
+ let d = Pe.exec(t);
4563
+ if (d === null)
4564
+ break;
4565
+ n = Pe.lastIndex;
4566
+ try {
4567
+ this.body.push(f(d[1]));
4568
+ } catch (y) {
4569
+ if (y instanceof SyntaxError)
4570
+ continue;
4571
+ throw y;
4572
+ }
4573
+ }
4574
+ function r(d) {
4575
+ return d.lastIndex = n, d.test(t);
4576
+ }
4577
+ function u(d, y) {
4578
+ if (t[n] === d)
4579
+ return n++, !0;
4580
+ if (y)
4581
+ throw new y(`Expected ${d}`);
4582
+ return !1;
4583
+ }
4584
+ function o(d, y) {
4585
+ if (r(d))
4586
+ return n = d.lastIndex, !0;
4587
+ if (y)
4588
+ throw new y(`Expected ${d.toString()}`);
4589
+ return !1;
4590
+ }
4591
+ function s(d) {
4592
+ d.lastIndex = n;
4593
+ let y = d.exec(t);
4594
+ if (y === null)
4595
+ throw new SyntaxError(`Expected ${d.toString()}`);
4596
+ return n = d.lastIndex, y;
4597
+ }
4598
+ function i(d) {
4599
+ return s(d)[1];
4600
+ }
4601
+ function f(d) {
4602
+ let y = A(), S = h();
4603
+ if (y === null && Object.keys(S).length === 0)
4604
+ throw new SyntaxError("Expected message value or attributes");
4605
+ return { id: d, value: y, attributes: S };
4606
+ }
4607
+ function h() {
4608
+ let d = /* @__PURE__ */ Object.create(null);
4609
+ for (; r(gn); ) {
4610
+ let y = i(gn), S = A();
4611
+ if (S === null)
4612
+ throw new SyntaxError("Expected attribute value");
4613
+ d[y] = S;
4614
+ }
4615
+ return d;
4616
+ }
4617
+ function A() {
4618
+ let d;
4619
+ if (r(Ee) && (d = i(Ee)), t[n] === "{" || t[n] === "}")
4620
+ return a(d ? [d] : [], 1 / 0);
4621
+ let y = P();
4622
+ return y ? d ? a([d, y], y.length) : (y.value = G(y.value, ls), a([y], y.length)) : d ? G(d, An) : null;
4623
+ }
4624
+ function a(d = [], y) {
4625
+ for (; ; ) {
4626
+ if (r(Ee)) {
4627
+ d.push(i(Ee));
4628
+ continue;
4629
+ }
4630
+ if (t[n] === "{") {
4631
+ d.push(p());
4632
+ continue;
4633
+ }
4634
+ if (t[n] === "}")
4635
+ throw new SyntaxError("Unbalanced closing brace");
4636
+ let k = P();
4637
+ if (k) {
4638
+ d.push(k), y = Math.min(y, k.length);
4639
+ continue;
4640
+ }
4641
+ break;
4642
+ }
4643
+ let S = d.length - 1, V = d[S];
4644
+ typeof V == "string" && (d[S] = G(V, An));
4645
+ let N = [];
4646
+ for (let k of d)
4647
+ k instanceof wn && (k = k.value.slice(0, k.value.length - y)), k && N.push(k);
4648
+ return N;
4649
+ }
4650
+ function p() {
4651
+ o(ds, SyntaxError);
4652
+ let d = c();
4653
+ if (o(bn))
4654
+ return d;
4655
+ if (o(Es)) {
4656
+ let y = E();
4657
+ return o(bn, SyntaxError), {
4658
+ type: "select",
4659
+ selector: d,
4660
+ ...y
4661
+ };
4662
+ }
4663
+ throw new SyntaxError("Unclosed placeable");
4664
+ }
4665
+ function c() {
4666
+ if (t[n] === "{")
4667
+ return p();
4668
+ if (r(mn)) {
4669
+ let [, d, y, S = null] = s(mn);
4670
+ if (d === "$")
4671
+ return { type: "var", name: y };
4672
+ if (o(ps)) {
4673
+ let V = _();
4674
+ if (d === "-")
4675
+ return { type: "term", name: y, attr: S, args: V };
4676
+ if (is.test(y))
4677
+ return { type: "func", name: y, args: V };
4678
+ throw new SyntaxError("Function names must be all upper-case");
4679
+ }
4680
+ return d === "-" ? {
4681
+ type: "term",
4682
+ name: y,
4683
+ attr: S,
4684
+ args: []
4685
+ } : { type: "mesg", name: y, attr: S };
4686
+ }
4687
+ return O();
4688
+ }
4689
+ function _() {
4690
+ let d = [];
4691
+ for (; ; ) {
4692
+ switch (t[n]) {
4693
+ case ")":
4694
+ return n++, d;
4695
+ case void 0:
4696
+ throw new SyntaxError("Unclosed argument list");
4697
+ }
4698
+ d.push(v()), o(ms);
4699
+ }
4700
+ }
4701
+ function v() {
4702
+ let d = c();
4703
+ return d.type !== "mesg" ? d : o(gs) ? {
4704
+ type: "narg",
4705
+ name: d.name,
4706
+ value: O()
4707
+ } : d;
4708
+ }
4709
+ function E() {
4710
+ let d = [], y = 0, S;
4711
+ for (; r(os); ) {
4712
+ u("*") && (S = y);
4713
+ let V = g(), N = A();
4714
+ if (N === null)
4715
+ throw new SyntaxError("Expected variant value");
4716
+ d[y++] = { key: V, value: N };
4717
+ }
4718
+ if (y === 0)
4719
+ return null;
4720
+ if (S === void 0)
4721
+ throw new SyntaxError("Expected default variant");
4722
+ return { variants: d, star: S };
4723
+ }
4724
+ function g() {
4725
+ o(_s, SyntaxError);
4726
+ let d;
4727
+ return r(Ne) ? d = b() : d = {
4728
+ type: "str",
4729
+ value: i(ss)
4730
+ }, o(hs, SyntaxError), d;
4731
+ }
4732
+ function O() {
4733
+ if (r(Ne))
4734
+ return b();
4735
+ if (t[n] === '"')
4736
+ return I();
4737
+ throw new SyntaxError("Invalid expression");
4738
+ }
4739
+ function b() {
4740
+ let [, d, y = ""] = s(Ne), S = y.length;
4741
+ return {
4742
+ type: "num",
4743
+ value: parseFloat(d),
4744
+ precision: S
4745
+ };
4746
+ }
4747
+ function I() {
4748
+ u('"', SyntaxError);
4749
+ let d = "";
4750
+ for (; ; ) {
4751
+ if (d += i(as), t[n] === "\\") {
4752
+ d += z();
4753
+ continue;
4754
+ }
4755
+ if (u('"'))
4756
+ return { type: "str", value: d };
4757
+ throw new SyntaxError("Unclosed string literal");
4758
+ }
4759
+ }
4760
+ function z() {
4761
+ if (r(vn))
4762
+ return i(vn);
4763
+ if (r(yn)) {
4764
+ let [, d, y] = s(yn), S = parseInt(d || y, 16);
4765
+ return S <= 55295 || 57344 <= S ? String.fromCodePoint(S) : "�";
4766
+ }
4767
+ throw new SyntaxError("Unknown escape sequence");
4768
+ }
4769
+ function P() {
4770
+ let d = n;
4771
+ switch (o(vs), t[n]) {
4772
+ case ".":
4773
+ case "[":
4774
+ case "*":
4775
+ case "}":
4776
+ case void 0:
4777
+ return !1;
4778
+ case "{":
4779
+ return H(t.slice(d, n));
4780
+ }
4781
+ return t[n - 1] === " " ? H(t.slice(d, n)) : !1;
4782
+ }
4783
+ function G(d, y) {
4784
+ return d.replace(y, "");
4785
+ }
4786
+ function H(d) {
4787
+ let y = d.replace(cs, `
4788
+ `), S = fs.exec(d)[1].length;
4789
+ return new wn(y, S);
4790
+ }
4791
+ }
4792
+ }
4793
+ class wn {
4794
+ constructor(t, n) {
4795
+ this.value = t, this.length = n;
4796
+ }
4797
+ }
4798
+ class On {
4799
+ constructor(t) {
4800
+ Ce(this, "bundles", /* @__PURE__ */ new Map());
4801
+ Ce(this, "keys", /* @__PURE__ */ new Set());
4802
+ for (const [n, r, u] of t.resources) {
4803
+ const o = this.getKey(n, r);
4804
+ if (this.keys.has(o))
4805
+ throw new Error(`${o} was provided more than once!`);
4806
+ this.keys.add(o), this.getBundle(n).addResource(new ys(u));
4807
+ }
4808
+ }
4809
+ // TODO - we should make a bundle source that handles this a little more
4810
+ // elegantly, but for now this should be fine.
4811
+ static async dynamicResources(t) {
4812
+ const n = [];
4813
+ for (const [r, u, o] of t)
4814
+ if (typeof o == "string")
4815
+ n.push([r, u, o]);
4816
+ else {
4817
+ const s = await o;
4818
+ if (typeof s.default != "string")
4819
+ throw new Error(".ftl text needs to be the default export!");
4820
+ n.push([r, u, s.default]);
4821
+ }
4822
+ return n;
4823
+ }
4824
+ getBundle(t) {
4825
+ if (this.bundles.has(t))
4826
+ return this.bundles.get(t);
4827
+ const n = new je(t);
4828
+ return this.bundles.set(t, n), n;
4829
+ }
4830
+ getKey(t, n) {
4831
+ return `${n}/${t}`;
4832
+ }
4833
+ async getBundles(t, n) {
4834
+ const r = [];
4835
+ for (const u of t) {
4836
+ for (const o of n) {
4837
+ const s = this.getKey(u, o);
4838
+ if (!this.keys.has(s))
4839
+ throw new Error(`resource ${s} was not provided at init!`);
4840
+ }
4841
+ r.push(this.getBundle(u));
4842
+ }
4843
+ return r;
4844
+ }
4845
+ }
4846
+ var As = Object.defineProperty, bs = (e, t, n) => t in e ? As(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ws = (e, t, n) => (bs(e, t + "", n), n);
4847
+ class Os extends us {
4848
+ constructor() {
4849
+ super(...arguments), ws(this, "currentLocaleProp", Ie.observable({ value: null }));
4850
+ }
4851
+ setCurrentLocaleProp(t) {
4852
+ this.currentLocaleProp = Ie.observable({ value: t });
4853
+ }
4854
+ install() {
4855
+ this.fluent === null && (this.fluent = this.initFluent()), Ie.prototype.$localeManager = this;
4856
+ }
4857
+ }
4858
+ const Ss = {
15
4859
  ENGLISH: "en-US",
16
4860
  DIALPADISTAN: "dp-DP",
17
4861
  SPANISH: "es-LA"
18
- }, p = {
19
- async install(t) {
20
- const e = Object.values(u), o = "dialtone", n = new s({
21
- resources: await s.dynamicResources(
22
- e.map((r) => [r, o, c(/* @__PURE__ */ Object.assign({ "./dp-DP.ftl": () => import("./dp-DP.js"), "./en-US.ftl": () => import("./en-US.js"), "./es-LA.ftl": () => import("./es-LA.js") }), `./${r}.ftl`, 2)])
4862
+ }, Is = {
4863
+ async install(e) {
4864
+ const t = Object.values(Ss), n = "dialtone", r = new On({
4865
+ resources: await On.dynamicResources(
4866
+ t.map((s) => [s, n, hr(/* @__PURE__ */ Object.assign({ "./dp-DP.ftl": () => import("./dp-DP.js"), "./en-US.ftl": () => import("./en-US.js"), "./es-LA.ftl": () => import("./es-LA.js") }), `./${s}.ftl`, 2)])
23
4867
  )
24
- }), l = e[0], a = new i({
25
- bundleSource: n,
26
- preferredLocale: l,
27
- allowedLocales: e,
28
- fallbackLocale: l,
29
- namespaces: [o]
4868
+ }), u = t[0], o = new Os({
4869
+ bundleSource: r,
4870
+ preferredLocale: u,
4871
+ allowedLocales: t,
4872
+ fallbackLocale: u,
4873
+ namespaces: [n]
30
4874
  });
31
- await a.ready, t.use(a);
4875
+ await o.ready, e.use(o);
32
4876
  }
33
4877
  };
34
4878
  export {
35
- p as DialtoneLocalizationPlugin,
36
- u as allowedLocales
4879
+ Is as DialtoneLocalizationPlugin,
4880
+ Ss as allowedLocales
37
4881
  };
38
4882
  //# sourceMappingURL=index.js.map