bootstrap-vue-wrapper 2.0.2 → 2.0.3

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.
@@ -1,6 +1,7 @@
1
- import { defineComponent as ae, resolveComponent as la, openBlock as R, createElementBlock as M, createElementVNode as w, Fragment as Ee, renderList as Je, normalizeClass as se, createBlock as oa, withCtx as ia, createTextVNode as Lt, toDisplayString as B, renderSlot as _e, h as yn, getCurrentInstance as $t, inject as ua, onMounted as ca, onUnmounted as fa, shallowRef as An, ref as ce, computed as Ne, onBeforeMount as da, watch as Xt, createVNode as ma, Text as _a, createCommentVNode as J, mergeProps as ct, resolveDirective as Ea, withDirectives as pa, pushScopeId as ga, popScopeId as va } from "vue";
2
- import { Toast as jt, Modal as qt, Offcanvas as Jt } from "bootstrap";
3
- const Na = ae({
1
+ import { defineComponent as m, resolveComponent as w, openBlock as a, createElementBlock as i, createElementVNode as s, Fragment as b, renderList as y, normalizeClass as h, createBlock as H, withCtx as M, createTextVNode as S, toDisplayString as l, renderSlot as g, ref as C, createCommentVNode as u, mergeProps as k, resolveDirective as E, withDirectives as R, pushScopeId as A, popScopeId as L } from "vue";
2
+ import { useI18n as N } from "vue-i18n";
3
+ import { Toast as B, Modal as P, Offcanvas as V } from "bootstrap";
4
+ const O = m({
4
5
  name: "BsBreadcrumb",
5
6
  props: {
6
7
  /**
@@ -22,37 +23,37 @@ const Na = ae({
22
23
  return e.route !== void 0;
23
24
  }
24
25
  }
25
- }), fe = (e, t) => {
26
- const n = e.__vccOpts || e;
27
- for (const [a, l] of t)
28
- n[a] = l;
29
- return n;
30
- }, ha = { "aria-label": "breadcrumb" }, ba = { class: "breadcrumb" }, Ia = ["textContent"];
31
- function Ta(e, t, n, a, l, r) {
32
- const o = la("router-link");
33
- return R(), M("nav", ha, [
34
- w("ol", ba, [
35
- (R(!0), M(Ee, null, Je(e.items, (i, c) => (R(), M("li", {
36
- key: c,
37
- class: se(["breadcrumb-item", { active: !e.isRouteAvailable(i) }])
26
+ }), c = (e, t) => {
27
+ const r = e.__vccOpts || e;
28
+ for (const [d, v] of t)
29
+ r[d] = v;
30
+ return r;
31
+ }, _ = { "aria-label": "breadcrumb" }, D = { class: "breadcrumb" }, q = ["textContent"];
32
+ function T(e, t, r, d, v, f) {
33
+ const o = w("router-link");
34
+ return a(), i("nav", _, [
35
+ s("ol", D, [
36
+ (a(!0), i(b, null, y(e.items, (n, p) => (a(), i("li", {
37
+ key: p,
38
+ class: h(["breadcrumb-item", { active: !e.isRouteAvailable(n) }])
38
39
  }, [
39
- e.isRouteAvailable(i) ? (R(), oa(o, {
40
+ e.isRouteAvailable(n) ? (a(), H(o, {
40
41
  key: 0,
41
- to: i.route
42
+ to: n.route
42
43
  }, {
43
- default: ia(() => [
44
- Lt(B(i.title), 1)
44
+ default: M(() => [
45
+ S(l(n.title), 1)
45
46
  ]),
46
47
  _: 2
47
- }, 1032, ["to"])) : (R(), M("span", {
48
+ }, 1032, ["to"])) : (a(), i("span", {
48
49
  key: 1,
49
- textContent: B(i.title)
50
- }, null, 8, Ia))
50
+ textContent: l(n.title)
51
+ }, null, 8, q))
51
52
  ], 2))), 128))
52
53
  ])
53
54
  ]);
54
55
  }
55
- const Hl = /* @__PURE__ */ fe(Na, [["render", Ta]]), La = ae({
56
+ const rt = /* @__PURE__ */ c(O, [["render", T]]), F = m({
56
57
  name: "BsForm",
57
58
  emits: ["submit"],
58
59
  data() {
@@ -71,2938 +72,68 @@ const Hl = /* @__PURE__ */ fe(Na, [["render", Ta]]), La = ae({
71
72
  }
72
73
  }
73
74
  });
74
- function Oa(e, t, n, a, l, r) {
75
- return R(), M("form", {
76
- class: se(["needs-validation", {
75
+ function z(e, t, r, d, v, f) {
76
+ return a(), i("form", {
77
+ class: h(["needs-validation", {
77
78
  "was-validated": e.submitClicked
78
79
  }]),
79
80
  novalidate: "",
80
81
  onSubmit: t[0] || (t[0] = (...o) => e.onSubmit && e.onSubmit(...o))
81
82
  }, [
82
- _e(e.$slots, "default")
83
+ g(e.$slots, "default")
83
84
  ], 34);
84
85
  }
85
- const Wl = /* @__PURE__ */ fe(La, [["render", Oa]]);
86
- /*!
87
- * shared v9.9.0
88
- * (c) 2024 kazuya kawaguchi
89
- * Released under the MIT License.
90
- */
91
- const Le = typeof window < "u";
92
- let le, Ue;
93
- if (process.env.NODE_ENV !== "production") {
94
- const e = Le && window.performance;
95
- e && e.mark && e.measure && e.clearMarks && // @ts-ignore browser compat
96
- e.clearMeasures && (le = (t) => {
97
- e.mark(t);
98
- }, Ue = (t, n, a) => {
99
- e.measure(t, n, a), e.clearMarks(n), e.clearMarks(a);
100
- });
101
- }
102
- const Ca = /\{([0-9a-zA-Z]+)\}/g;
103
- function wt(e, ...t) {
104
- return t.length === 1 && H(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Ca, (n, a) => t.hasOwnProperty(a) ? t[a] : "");
105
- }
106
- const Oe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), ya = (e, t, n) => Aa({ l: e, k: t, s: n }), Aa = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), z = (e) => typeof e == "number" && isFinite(e), ka = (e) => Sn(e) === "[object Date]", Qe = (e) => Sn(e) === "[object RegExp]", vt = (e) => $(e) && Object.keys(e).length === 0, ee = Object.assign;
107
- let Qt;
108
- const Te = () => Qt || (Qt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
109
- function Zt(e) {
110
- return e.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;");
111
- }
112
- const Sa = Object.prototype.hasOwnProperty;
113
- function pt(e, t) {
114
- return Sa.call(e, t);
115
- }
116
- const Q = Array.isArray, Y = (e) => typeof e == "function", C = (e) => typeof e == "string", G = (e) => typeof e == "boolean", H = (e) => e !== null && typeof e == "object", Pa = (e) => H(e) && Y(e.then) && Y(e.catch), kn = Object.prototype.toString, Sn = (e) => kn.call(e), $ = (e) => {
117
- if (!H(e))
118
- return !1;
119
- const t = Object.getPrototypeOf(e);
120
- return t === null || t.constructor === Object;
121
- }, Da = (e) => e == null ? "" : Q(e) || $(e) && e.toString === kn ? JSON.stringify(e, null, 2) : String(e);
122
- function Ra(e, t = "") {
123
- return e.reduce((n, a, l) => l === 0 ? n + a : n + t + a, "");
124
- }
125
- const xt = 2;
126
- function Ma(e, t = 0, n = e.length) {
127
- const a = e.split(/\r?\n/);
128
- let l = 0;
129
- const r = [];
130
- for (let o = 0; o < a.length; o++)
131
- if (l += a[o].length + 1, l >= t) {
132
- for (let i = o - xt; i <= o + xt || n > l; i++) {
133
- if (i < 0 || i >= a.length)
134
- continue;
135
- const c = i + 1;
136
- r.push(`${c}${" ".repeat(3 - String(c).length)}| ${a[i]}`);
137
- const p = a[i].length;
138
- if (i === o) {
139
- const v = t - (l - p) + 1, I = Math.max(1, n > l ? p - v : n - t);
140
- r.push(" | " + " ".repeat(v) + "^".repeat(I));
141
- } else if (i > o) {
142
- if (n > l) {
143
- const v = Math.max(Math.min(n - l, p), 1);
144
- r.push(" | " + "^".repeat(v));
145
- }
146
- l += p + 1;
147
- }
148
- }
149
- break;
150
- }
151
- return r.join(`
152
- `);
153
- }
154
- function Ut(e) {
155
- let t = e;
156
- return () => ++t;
157
- }
158
- function Se(e, t) {
159
- typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
160
- }
161
- const zt = {};
162
- function Fa(e) {
163
- zt[e] || (zt[e] = !0, Se(e));
164
- }
165
- function $a() {
166
- const e = /* @__PURE__ */ new Map();
167
- return {
168
- events: e,
169
- on(n, a) {
170
- const l = e.get(n);
171
- l && l.push(a) || e.set(n, [a]);
172
- },
173
- off(n, a) {
174
- const l = e.get(n);
175
- l && l.splice(l.indexOf(a) >>> 0, 1);
176
- },
177
- emit(n, a) {
178
- (e.get(n) || []).slice().map((l) => l(a)), (e.get("*") || []).slice().map((l) => l(n, a));
179
- }
180
- };
181
- }
182
- const _t = (e) => !H(e) || Q(e);
183
- function Et(e, t) {
184
- if (_t(e) || _t(t))
185
- throw new Error("Invalid value");
186
- const n = [{ src: e, des: t }];
187
- for (; n.length; ) {
188
- const { src: a, des: l } = n.pop();
189
- Object.keys(a).forEach((r) => {
190
- _t(a[r]) || _t(l[r]) ? l[r] = a[r] : n.push({ src: a[r], des: l[r] });
191
- });
192
- }
193
- }
194
- /*!
195
- * message-compiler v9.9.0
196
- * (c) 2024 kazuya kawaguchi
197
- * Released under the MIT License.
198
- */
199
- function wa(e, t, n) {
200
- return { line: e, column: t, offset: n };
201
- }
202
- function Ot(e, t, n) {
203
- const a = { start: e, end: t };
204
- return n != null && (a.source = n), a;
205
- }
206
- const Ua = /\{([0-9a-zA-Z]+)\}/g;
207
- function Va(e, ...t) {
208
- return t.length === 1 && Ha(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Ua, (n, a) => t.hasOwnProperty(a) ? t[a] : "");
209
- }
210
- const Pn = Object.assign, en = (e) => typeof e == "string", Ha = (e) => e !== null && typeof e == "object";
211
- function Dn(e, t = "") {
212
- return e.reduce((n, a, l) => l === 0 ? n + a : n + t + a, "");
213
- }
214
- const P = {
215
- // tokenizer error codes
216
- EXPECTED_TOKEN: 1,
217
- INVALID_TOKEN_IN_PLACEHOLDER: 2,
218
- UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
219
- UNKNOWN_ESCAPE_SEQUENCE: 4,
220
- INVALID_UNICODE_ESCAPE_SEQUENCE: 5,
221
- UNBALANCED_CLOSING_BRACE: 6,
222
- UNTERMINATED_CLOSING_BRACE: 7,
223
- EMPTY_PLACEHOLDER: 8,
224
- NOT_ALLOW_NEST_PLACEHOLDER: 9,
225
- INVALID_LINKED_FORMAT: 10,
226
- // parser error codes
227
- MUST_HAVE_MESSAGES_IN_PLURAL: 11,
228
- UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
229
- UNEXPECTED_EMPTY_LINKED_KEY: 13,
230
- UNEXPECTED_LEXICAL_ANALYSIS: 14,
231
- // generator error codes
232
- UNHANDLED_CODEGEN_NODE_TYPE: 15,
233
- // minifier error codes
234
- UNHANDLED_MINIFIER_NODE_TYPE: 16,
235
- // Special value for higher-order compilers to pick up the last code
236
- // to avoid collision of error codes. This should always be kept as the last
237
- // item.
238
- __EXTEND_POINT__: 17
239
- }, Wa = {
240
- // tokenizer error messages
241
- [P.EXPECTED_TOKEN]: "Expected token: '{0}'",
242
- [P.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
243
- [P.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
244
- [P.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
245
- [P.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
246
- [P.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
247
- [P.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
248
- [P.EMPTY_PLACEHOLDER]: "Empty placeholder",
249
- [P.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
250
- [P.INVALID_LINKED_FORMAT]: "Invalid linked format",
251
- // parser error messages
252
- [P.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
253
- [P.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
254
- [P.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
255
- [P.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'",
256
- // generator error messages
257
- [P.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'",
258
- // minimizer error messages
259
- [P.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
260
- };
261
- function xe(e, t, n = {}) {
262
- const { domain: a, messages: l, args: r } = n, o = Va((l || Wa)[e] || "", ...r || []), i = new SyntaxError(String(o));
263
- return i.code = e, t && (i.location = t), i.domain = a, i;
264
- }
265
- function Ba(e) {
266
- throw e;
267
- }
268
- const Ga = /<\/?[\w\s="/.':;#-\/]+>/, Ya = (e) => Ga.test(e), Ie = " ", Ka = "\r", te = `
269
- `, Xa = "\u2028", ja = "\u2029";
270
- function qa(e) {
271
- const t = e;
272
- let n = 0, a = 1, l = 1, r = 0;
273
- const o = (y) => t[y] === Ka && t[y + 1] === te, i = (y) => t[y] === te, c = (y) => t[y] === ja, p = (y) => t[y] === Xa, v = (y) => o(y) || i(y) || c(y) || p(y), I = () => n, g = () => a, A = () => l, D = () => r, S = (y) => o(y) || c(y) || p(y) ? te : t[y], k = () => S(n), f = () => S(n + r);
274
- function _() {
275
- return r = 0, v(n) && (a++, l = 0), o(n) && n++, n++, l++, t[n];
276
- }
277
- function h() {
278
- return o(n + r) && r++, r++, t[n + r];
279
- }
280
- function E() {
281
- n = 0, a = 1, l = 1, r = 0;
282
- }
283
- function O(y = 0) {
284
- r = y;
285
- }
286
- function T() {
287
- const y = n + r;
288
- for (; y !== n; )
289
- _();
290
- r = 0;
291
- }
292
- return {
293
- index: I,
294
- line: g,
295
- column: A,
296
- peekOffset: D,
297
- charAt: S,
298
- currentChar: k,
299
- currentPeek: f,
300
- next: _,
301
- peek: h,
302
- reset: E,
303
- resetPeek: O,
304
- skipToPeek: T
305
- };
306
- }
307
- const ye = void 0, Ja = ".", tn = "'", Qa = "tokenizer";
308
- function Za(e, t = {}) {
309
- const n = t.location !== !1, a = qa(e), l = () => a.index(), r = () => wa(a.line(), a.column(), a.index()), o = r(), i = l(), c = {
310
- currentType: 14,
311
- offset: i,
312
- startLoc: o,
313
- endLoc: o,
314
- lastType: 14,
315
- lastOffset: i,
316
- lastStartLoc: o,
317
- lastEndLoc: o,
318
- braceNest: 0,
319
- inLinked: !1,
320
- text: ""
321
- }, p = () => c, { onError: v } = t;
322
- function I(u, s, d, ...L) {
323
- const F = p();
324
- if (s.column += d, s.offset += d, v) {
325
- const U = n ? Ot(F.startLoc, s) : null, ge = xe(u, U, {
326
- domain: Qa,
327
- args: L
328
- });
329
- v(ge);
330
- }
331
- }
332
- function g(u, s, d) {
333
- u.endLoc = r(), u.currentType = s;
334
- const L = { type: s };
335
- return n && (L.loc = Ot(u.startLoc, u.endLoc)), d != null && (L.value = d), L;
336
- }
337
- const A = (u) => g(
338
- u,
339
- 14
340
- /* TokenTypes.EOF */
341
- );
342
- function D(u, s) {
343
- return u.currentChar() === s ? (u.next(), s) : (I(P.EXPECTED_TOKEN, r(), 0, s), "");
344
- }
345
- function S(u) {
346
- let s = "";
347
- for (; u.currentPeek() === Ie || u.currentPeek() === te; )
348
- s += u.currentPeek(), u.peek();
349
- return s;
350
- }
351
- function k(u) {
352
- const s = S(u);
353
- return u.skipToPeek(), s;
354
- }
355
- function f(u) {
356
- if (u === ye)
357
- return !1;
358
- const s = u.charCodeAt(0);
359
- return s >= 97 && s <= 122 || // a-z
360
- s >= 65 && s <= 90 || // A-Z
361
- s === 95;
362
- }
363
- function _(u) {
364
- if (u === ye)
365
- return !1;
366
- const s = u.charCodeAt(0);
367
- return s >= 48 && s <= 57;
368
- }
369
- function h(u, s) {
370
- const { currentType: d } = s;
371
- if (d !== 2)
372
- return !1;
373
- S(u);
374
- const L = f(u.currentPeek());
375
- return u.resetPeek(), L;
376
- }
377
- function E(u, s) {
378
- const { currentType: d } = s;
379
- if (d !== 2)
380
- return !1;
381
- S(u);
382
- const L = u.currentPeek() === "-" ? u.peek() : u.currentPeek(), F = _(L);
383
- return u.resetPeek(), F;
384
- }
385
- function O(u, s) {
386
- const { currentType: d } = s;
387
- if (d !== 2)
388
- return !1;
389
- S(u);
390
- const L = u.currentPeek() === tn;
391
- return u.resetPeek(), L;
392
- }
393
- function T(u, s) {
394
- const { currentType: d } = s;
395
- if (d !== 8)
396
- return !1;
397
- S(u);
398
- const L = u.currentPeek() === ".";
399
- return u.resetPeek(), L;
400
- }
401
- function y(u, s) {
402
- const { currentType: d } = s;
403
- if (d !== 9)
404
- return !1;
405
- S(u);
406
- const L = f(u.currentPeek());
407
- return u.resetPeek(), L;
408
- }
409
- function b(u, s) {
410
- const { currentType: d } = s;
411
- if (!(d === 8 || d === 12))
412
- return !1;
413
- S(u);
414
- const L = u.currentPeek() === ":";
415
- return u.resetPeek(), L;
416
- }
417
- function W(u, s) {
418
- const { currentType: d } = s;
419
- if (d !== 10)
420
- return !1;
421
- const L = () => {
422
- const U = u.currentPeek();
423
- return U === "{" ? f(u.peek()) : U === "@" || U === "%" || U === "|" || U === ":" || U === "." || U === Ie || !U ? !1 : U === te ? (u.peek(), L()) : f(U);
424
- }, F = L();
425
- return u.resetPeek(), F;
426
- }
427
- function X(u) {
428
- S(u);
429
- const s = u.currentPeek() === "|";
430
- return u.resetPeek(), s;
431
- }
432
- function de(u) {
433
- const s = S(u), d = u.currentPeek() === "%" && u.peek() === "{";
434
- return u.resetPeek(), {
435
- isModulo: d,
436
- hasSpace: s.length > 0
437
- };
438
- }
439
- function Z(u, s = !0) {
440
- const d = (F = !1, U = "", ge = !1) => {
441
- const be = u.currentPeek();
442
- return be === "{" ? U === "%" ? !1 : F : be === "@" || !be ? U === "%" ? !0 : F : be === "%" ? (u.peek(), d(F, "%", !0)) : be === "|" ? U === "%" || ge ? !0 : !(U === Ie || U === te) : be === Ie ? (u.peek(), d(!0, Ie, ge)) : be === te ? (u.peek(), d(!0, te, ge)) : !0;
443
- }, L = d();
444
- return s && u.resetPeek(), L;
445
- }
446
- function oe(u, s) {
447
- const d = u.currentChar();
448
- return d === ye ? ye : s(d) ? (u.next(), d) : null;
449
- }
450
- function We(u) {
451
- return oe(u, (d) => {
452
- const L = d.charCodeAt(0);
453
- return L >= 97 && L <= 122 || // a-z
454
- L >= 65 && L <= 90 || // A-Z
455
- L >= 48 && L <= 57 || // 0-9
456
- L === 95 || // _
457
- L === 36;
458
- });
459
- }
460
- function ze(u) {
461
- return oe(u, (d) => {
462
- const L = d.charCodeAt(0);
463
- return L >= 48 && L <= 57;
464
- });
465
- }
466
- function pe(u) {
467
- return oe(u, (d) => {
468
- const L = d.charCodeAt(0);
469
- return L >= 48 && L <= 57 || // 0-9
470
- L >= 65 && L <= 70 || // A-F
471
- L >= 97 && L <= 102;
472
- });
473
- }
474
- function Be(u) {
475
- let s = "", d = "";
476
- for (; s = ze(u); )
477
- d += s;
478
- return d;
479
- }
480
- function et(u) {
481
- k(u);
482
- const s = u.currentChar();
483
- return s !== "%" && I(P.EXPECTED_TOKEN, r(), 0, s), u.next(), "%";
484
- }
485
- function Ge(u) {
486
- let s = "";
487
- for (; ; ) {
488
- const d = u.currentChar();
489
- if (d === "{" || d === "}" || d === "@" || d === "|" || !d)
490
- break;
491
- if (d === "%")
492
- if (Z(u))
493
- s += d, u.next();
494
- else
495
- break;
496
- else if (d === Ie || d === te)
497
- if (Z(u))
498
- s += d, u.next();
499
- else {
500
- if (X(u))
501
- break;
502
- s += d, u.next();
503
- }
504
- else
505
- s += d, u.next();
506
- }
507
- return s;
508
- }
509
- function tt(u) {
510
- k(u);
511
- let s = "", d = "";
512
- for (; s = We(u); )
513
- d += s;
514
- return u.currentChar() === ye && I(P.UNTERMINATED_CLOSING_BRACE, r(), 0), d;
515
- }
516
- function me(u) {
517
- k(u);
518
- let s = "";
519
- return u.currentChar() === "-" ? (u.next(), s += `-${Be(u)}`) : s += Be(u), u.currentChar() === ye && I(P.UNTERMINATED_CLOSING_BRACE, r(), 0), s;
520
- }
521
- function Ye(u) {
522
- k(u), D(u, "'");
523
- let s = "", d = "";
524
- const L = (U) => U !== tn && U !== te;
525
- for (; s = oe(u, L); )
526
- s === "\\" ? d += nt(u) : d += s;
527
- const F = u.currentChar();
528
- return F === te || F === ye ? (I(P.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, r(), 0), F === te && (u.next(), D(u, "'")), d) : (D(u, "'"), d);
529
- }
530
- function nt(u) {
531
- const s = u.currentChar();
532
- switch (s) {
533
- case "\\":
534
- case "'":
535
- return u.next(), `\\${s}`;
536
- case "u":
537
- return Ke(u, s, 4);
538
- case "U":
539
- return Ke(u, s, 6);
540
- default:
541
- return I(P.UNKNOWN_ESCAPE_SEQUENCE, r(), 0, s), "";
542
- }
543
- }
544
- function Ke(u, s, d) {
545
- D(u, s);
546
- let L = "";
547
- for (let F = 0; F < d; F++) {
548
- const U = pe(u);
549
- if (!U) {
550
- I(P.INVALID_UNICODE_ESCAPE_SEQUENCE, r(), 0, `\\${s}${L}${u.currentChar()}`);
551
- break;
552
- }
553
- L += U;
554
- }
555
- return `\\${s}${L}`;
556
- }
557
- function at(u) {
558
- k(u);
559
- let s = "", d = "";
560
- const L = (F) => F !== "{" && F !== "}" && F !== Ie && F !== te;
561
- for (; s = oe(u, L); )
562
- d += s;
563
- return d;
564
- }
565
- function rt(u) {
566
- let s = "", d = "";
567
- for (; s = We(u); )
568
- d += s;
569
- return d;
570
- }
571
- function dt(u) {
572
- const s = (d = !1, L) => {
573
- const F = u.currentChar();
574
- return F === "{" || F === "%" || F === "@" || F === "|" || F === "(" || F === ")" || !F || F === Ie ? L : F === te || F === Ja ? (L += F, u.next(), s(d, L)) : (L += F, u.next(), s(!0, L));
575
- };
576
- return s(!1, "");
577
- }
578
- function De(u) {
579
- k(u);
580
- const s = D(
581
- u,
582
- "|"
583
- /* TokenChars.Pipe */
584
- );
585
- return k(u), s;
586
- }
587
- function Re(u, s) {
588
- let d = null;
589
- switch (u.currentChar()) {
590
- case "{":
591
- return s.braceNest >= 1 && I(P.NOT_ALLOW_NEST_PLACEHOLDER, r(), 0), u.next(), d = g(
592
- s,
593
- 2,
594
- "{"
595
- /* TokenChars.BraceLeft */
596
- ), k(u), s.braceNest++, d;
597
- case "}":
598
- return s.braceNest > 0 && s.currentType === 2 && I(P.EMPTY_PLACEHOLDER, r(), 0), u.next(), d = g(
599
- s,
600
- 3,
601
- "}"
602
- /* TokenChars.BraceRight */
603
- ), s.braceNest--, s.braceNest > 0 && k(u), s.inLinked && s.braceNest === 0 && (s.inLinked = !1), d;
604
- case "@":
605
- return s.braceNest > 0 && I(P.UNTERMINATED_CLOSING_BRACE, r(), 0), d = Ce(u, s) || A(s), s.braceNest = 0, d;
606
- default:
607
- let F = !0, U = !0, ge = !0;
608
- if (X(u))
609
- return s.braceNest > 0 && I(P.UNTERMINATED_CLOSING_BRACE, r(), 0), d = g(s, 1, De(u)), s.braceNest = 0, s.inLinked = !1, d;
610
- if (s.braceNest > 0 && (s.currentType === 5 || s.currentType === 6 || s.currentType === 7))
611
- return I(P.UNTERMINATED_CLOSING_BRACE, r(), 0), s.braceNest = 0, Me(u, s);
612
- if (F = h(u, s))
613
- return d = g(s, 5, tt(u)), k(u), d;
614
- if (U = E(u, s))
615
- return d = g(s, 6, me(u)), k(u), d;
616
- if (ge = O(u, s))
617
- return d = g(s, 7, Ye(u)), k(u), d;
618
- if (!F && !U && !ge)
619
- return d = g(s, 13, at(u)), I(P.INVALID_TOKEN_IN_PLACEHOLDER, r(), 0, d.value), k(u), d;
620
- break;
621
- }
622
- return d;
623
- }
624
- function Ce(u, s) {
625
- const { currentType: d } = s;
626
- let L = null;
627
- const F = u.currentChar();
628
- switch ((d === 8 || d === 9 || d === 12 || d === 10) && (F === te || F === Ie) && I(P.INVALID_LINKED_FORMAT, r(), 0), F) {
629
- case "@":
630
- return u.next(), L = g(
631
- s,
632
- 8,
633
- "@"
634
- /* TokenChars.LinkedAlias */
635
- ), s.inLinked = !0, L;
636
- case ".":
637
- return k(u), u.next(), g(
638
- s,
639
- 9,
640
- "."
641
- /* TokenChars.LinkedDot */
642
- );
643
- case ":":
644
- return k(u), u.next(), g(
645
- s,
646
- 10,
647
- ":"
648
- /* TokenChars.LinkedDelimiter */
649
- );
650
- default:
651
- return X(u) ? (L = g(s, 1, De(u)), s.braceNest = 0, s.inLinked = !1, L) : T(u, s) || b(u, s) ? (k(u), Ce(u, s)) : y(u, s) ? (k(u), g(s, 12, rt(u))) : W(u, s) ? (k(u), F === "{" ? Re(u, s) || L : g(s, 11, dt(u))) : (d === 8 && I(P.INVALID_LINKED_FORMAT, r(), 0), s.braceNest = 0, s.inLinked = !1, Me(u, s));
652
- }
653
- }
654
- function Me(u, s) {
655
- let d = {
656
- type: 14
657
- /* TokenTypes.EOF */
658
- };
659
- if (s.braceNest > 0)
660
- return Re(u, s) || A(s);
661
- if (s.inLinked)
662
- return Ce(u, s) || A(s);
663
- switch (u.currentChar()) {
664
- case "{":
665
- return Re(u, s) || A(s);
666
- case "}":
667
- return I(P.UNBALANCED_CLOSING_BRACE, r(), 0), u.next(), g(
668
- s,
669
- 3,
670
- "}"
671
- /* TokenChars.BraceRight */
672
- );
673
- case "@":
674
- return Ce(u, s) || A(s);
675
- default:
676
- if (X(u))
677
- return d = g(s, 1, De(u)), s.braceNest = 0, s.inLinked = !1, d;
678
- const { isModulo: F, hasSpace: U } = de(u);
679
- if (F)
680
- return U ? g(s, 0, Ge(u)) : g(s, 4, et(u));
681
- if (Z(u))
682
- return g(s, 0, Ge(u));
683
- break;
684
- }
685
- return d;
686
- }
687
- function st() {
688
- const { currentType: u, offset: s, startLoc: d, endLoc: L } = c;
689
- return c.lastType = u, c.lastOffset = s, c.lastStartLoc = d, c.lastEndLoc = L, c.offset = l(), c.startLoc = r(), a.currentChar() === ye ? g(
690
- c,
691
- 14
692
- /* TokenTypes.EOF */
693
- ) : Me(a, c);
694
- }
695
- return {
696
- nextToken: st,
697
- currentOffset: l,
698
- currentPosition: r,
699
- context: p
700
- };
701
- }
702
- const xa = "parser", za = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
703
- function er(e, t, n) {
704
- switch (e) {
705
- case "\\\\":
706
- return "\\";
707
- case "\\'":
708
- return "'";
709
- default: {
710
- const a = parseInt(t || n, 16);
711
- return a <= 55295 || a >= 57344 ? String.fromCodePoint(a) : "�";
712
- }
713
- }
714
- }
715
- function tr(e = {}) {
716
- const t = e.location !== !1, { onError: n } = e;
717
- function a(f, _, h, E, ...O) {
718
- const T = f.currentPosition();
719
- if (T.offset += E, T.column += E, n) {
720
- const y = t ? Ot(h, T) : null, b = xe(_, y, {
721
- domain: xa,
722
- args: O
723
- });
724
- n(b);
725
- }
726
- }
727
- function l(f, _, h) {
728
- const E = { type: f };
729
- return t && (E.start = _, E.end = _, E.loc = { start: h, end: h }), E;
730
- }
731
- function r(f, _, h, E) {
732
- E && (f.type = E), t && (f.end = _, f.loc && (f.loc.end = h));
733
- }
734
- function o(f, _) {
735
- const h = f.context(), E = l(3, h.offset, h.startLoc);
736
- return E.value = _, r(E, f.currentOffset(), f.currentPosition()), E;
737
- }
738
- function i(f, _) {
739
- const h = f.context(), { lastOffset: E, lastStartLoc: O } = h, T = l(5, E, O);
740
- return T.index = parseInt(_, 10), f.nextToken(), r(T, f.currentOffset(), f.currentPosition()), T;
741
- }
742
- function c(f, _) {
743
- const h = f.context(), { lastOffset: E, lastStartLoc: O } = h, T = l(4, E, O);
744
- return T.key = _, f.nextToken(), r(T, f.currentOffset(), f.currentPosition()), T;
745
- }
746
- function p(f, _) {
747
- const h = f.context(), { lastOffset: E, lastStartLoc: O } = h, T = l(9, E, O);
748
- return T.value = _.replace(za, er), f.nextToken(), r(T, f.currentOffset(), f.currentPosition()), T;
749
- }
750
- function v(f) {
751
- const _ = f.nextToken(), h = f.context(), { lastOffset: E, lastStartLoc: O } = h, T = l(8, E, O);
752
- return _.type !== 12 ? (a(f, P.UNEXPECTED_EMPTY_LINKED_MODIFIER, h.lastStartLoc, 0), T.value = "", r(T, E, O), {
753
- nextConsumeToken: _,
754
- node: T
755
- }) : (_.value == null && a(f, P.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ve(_)), T.value = _.value || "", r(T, f.currentOffset(), f.currentPosition()), {
756
- node: T
757
- });
758
- }
759
- function I(f, _) {
760
- const h = f.context(), E = l(7, h.offset, h.startLoc);
761
- return E.value = _, r(E, f.currentOffset(), f.currentPosition()), E;
762
- }
763
- function g(f) {
764
- const _ = f.context(), h = l(6, _.offset, _.startLoc);
765
- let E = f.nextToken();
766
- if (E.type === 9) {
767
- const O = v(f);
768
- h.modifier = O.node, E = O.nextConsumeToken || f.nextToken();
769
- }
770
- switch (E.type !== 10 && a(f, P.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, ve(E)), E = f.nextToken(), E.type === 2 && (E = f.nextToken()), E.type) {
771
- case 11:
772
- E.value == null && a(f, P.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, ve(E)), h.key = I(f, E.value || "");
773
- break;
774
- case 5:
775
- E.value == null && a(f, P.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, ve(E)), h.key = c(f, E.value || "");
776
- break;
777
- case 6:
778
- E.value == null && a(f, P.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, ve(E)), h.key = i(f, E.value || "");
779
- break;
780
- case 7:
781
- E.value == null && a(f, P.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, ve(E)), h.key = p(f, E.value || "");
782
- break;
783
- default:
784
- a(f, P.UNEXPECTED_EMPTY_LINKED_KEY, _.lastStartLoc, 0);
785
- const O = f.context(), T = l(7, O.offset, O.startLoc);
786
- return T.value = "", r(T, O.offset, O.startLoc), h.key = T, r(h, O.offset, O.startLoc), {
787
- nextConsumeToken: E,
788
- node: h
789
- };
790
- }
791
- return r(h, f.currentOffset(), f.currentPosition()), {
792
- node: h
793
- };
794
- }
795
- function A(f) {
796
- const _ = f.context(), h = _.currentType === 1 ? f.currentOffset() : _.offset, E = _.currentType === 1 ? _.endLoc : _.startLoc, O = l(2, h, E);
797
- O.items = [];
798
- let T = null;
799
- do {
800
- const W = T || f.nextToken();
801
- switch (T = null, W.type) {
802
- case 0:
803
- W.value == null && a(f, P.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, ve(W)), O.items.push(o(f, W.value || ""));
804
- break;
805
- case 6:
806
- W.value == null && a(f, P.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, ve(W)), O.items.push(i(f, W.value || ""));
807
- break;
808
- case 5:
809
- W.value == null && a(f, P.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, ve(W)), O.items.push(c(f, W.value || ""));
810
- break;
811
- case 7:
812
- W.value == null && a(f, P.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, ve(W)), O.items.push(p(f, W.value || ""));
813
- break;
814
- case 8:
815
- const X = g(f);
816
- O.items.push(X.node), T = X.nextConsumeToken || null;
817
- break;
818
- }
819
- } while (_.currentType !== 14 && _.currentType !== 1);
820
- const y = _.currentType === 1 ? _.lastOffset : f.currentOffset(), b = _.currentType === 1 ? _.lastEndLoc : f.currentPosition();
821
- return r(O, y, b), O;
822
- }
823
- function D(f, _, h, E) {
824
- const O = f.context();
825
- let T = E.items.length === 0;
826
- const y = l(1, _, h);
827
- y.cases = [], y.cases.push(E);
828
- do {
829
- const b = A(f);
830
- T || (T = b.items.length === 0), y.cases.push(b);
831
- } while (O.currentType !== 14);
832
- return T && a(f, P.MUST_HAVE_MESSAGES_IN_PLURAL, h, 0), r(y, f.currentOffset(), f.currentPosition()), y;
833
- }
834
- function S(f) {
835
- const _ = f.context(), { offset: h, startLoc: E } = _, O = A(f);
836
- return _.currentType === 14 ? O : D(f, h, E, O);
837
- }
838
- function k(f) {
839
- const _ = Za(f, Pn({}, e)), h = _.context(), E = l(0, h.offset, h.startLoc);
840
- return t && E.loc && (E.loc.source = f), E.body = S(_), e.onCacheKey && (E.cacheKey = e.onCacheKey(f)), h.currentType !== 14 && a(_, P.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, f[h.offset] || ""), r(E, _.currentOffset(), _.currentPosition()), E;
841
- }
842
- return { parse: k };
843
- }
844
- function ve(e) {
845
- if (e.type === 14)
846
- return "EOF";
847
- const t = (e.value || "").replace(/\r?\n/gu, "\\n");
848
- return t.length > 10 ? t.slice(0, 9) + "…" : t;
849
- }
850
- function nr(e, t = {}) {
851
- const n = {
852
- ast: e,
853
- helpers: /* @__PURE__ */ new Set()
854
- };
855
- return { context: () => n, helper: (r) => (n.helpers.add(r), r) };
856
- }
857
- function nn(e, t) {
858
- for (let n = 0; n < e.length; n++)
859
- Vt(e[n], t);
860
- }
861
- function Vt(e, t) {
862
- switch (e.type) {
863
- case 1:
864
- nn(e.cases, t), t.helper(
865
- "plural"
866
- /* HelperNameMap.PLURAL */
867
- );
868
- break;
869
- case 2:
870
- nn(e.items, t);
871
- break;
872
- case 6:
873
- Vt(e.key, t), t.helper(
874
- "linked"
875
- /* HelperNameMap.LINKED */
876
- ), t.helper(
877
- "type"
878
- /* HelperNameMap.TYPE */
879
- );
880
- break;
881
- case 5:
882
- t.helper(
883
- "interpolate"
884
- /* HelperNameMap.INTERPOLATE */
885
- ), t.helper(
886
- "list"
887
- /* HelperNameMap.LIST */
888
- );
889
- break;
890
- case 4:
891
- t.helper(
892
- "interpolate"
893
- /* HelperNameMap.INTERPOLATE */
894
- ), t.helper(
895
- "named"
896
- /* HelperNameMap.NAMED */
897
- );
898
- break;
899
- }
900
- }
901
- function ar(e, t = {}) {
902
- const n = nr(e);
903
- n.helper(
904
- "normalize"
905
- /* HelperNameMap.NORMALIZE */
906
- ), e.body && Vt(e.body, n);
907
- const a = n.context();
908
- e.helpers = Array.from(a.helpers);
909
- }
910
- function rr(e) {
911
- const t = e.body;
912
- return t.type === 2 ? an(t) : t.cases.forEach((n) => an(n)), e;
913
- }
914
- function an(e) {
915
- if (e.items.length === 1) {
916
- const t = e.items[0];
917
- (t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
918
- } else {
919
- const t = [];
920
- for (let n = 0; n < e.items.length; n++) {
921
- const a = e.items[n];
922
- if (!(a.type === 3 || a.type === 9) || a.value == null)
923
- break;
924
- t.push(a.value);
925
- }
926
- if (t.length === e.items.length) {
927
- e.static = Dn(t);
928
- for (let n = 0; n < e.items.length; n++) {
929
- const a = e.items[n];
930
- (a.type === 3 || a.type === 9) && delete a.value;
931
- }
932
- }
933
- }
934
- }
935
- const sr = "minifier";
936
- function je(e) {
937
- switch (e.t = e.type, e.type) {
938
- case 0:
939
- const t = e;
940
- je(t.body), t.b = t.body, delete t.body;
941
- break;
942
- case 1:
943
- const n = e, a = n.cases;
944
- for (let v = 0; v < a.length; v++)
945
- je(a[v]);
946
- n.c = a, delete n.cases;
947
- break;
948
- case 2:
949
- const l = e, r = l.items;
950
- for (let v = 0; v < r.length; v++)
951
- je(r[v]);
952
- l.i = r, delete l.items, l.static && (l.s = l.static, delete l.static);
953
- break;
954
- case 3:
955
- case 9:
956
- case 8:
957
- case 7:
958
- const o = e;
959
- o.value && (o.v = o.value, delete o.value);
960
- break;
961
- case 6:
962
- const i = e;
963
- je(i.key), i.k = i.key, delete i.key, i.modifier && (je(i.modifier), i.m = i.modifier, delete i.modifier);
964
- break;
965
- case 5:
966
- const c = e;
967
- c.i = c.index, delete c.index;
968
- break;
969
- case 4:
970
- const p = e;
971
- p.k = p.key, delete p.key;
972
- break;
973
- default:
974
- throw xe(P.UNHANDLED_MINIFIER_NODE_TYPE, null, {
975
- domain: sr,
976
- args: [e.type]
977
- });
978
- }
979
- delete e.type;
980
- }
981
- const lr = "parser";
982
- function or(e, t) {
983
- const { sourceMap: n, filename: a, breakLineCode: l, needIndent: r } = t, o = t.location !== !1, i = {
984
- filename: a,
985
- code: "",
986
- column: 1,
987
- line: 1,
988
- offset: 0,
989
- map: void 0,
990
- breakLineCode: l,
991
- needIndent: r,
992
- indentLevel: 0
993
- };
994
- o && e.loc && (i.source = e.loc.source);
995
- const c = () => i;
996
- function p(k, f) {
997
- i.code += k;
998
- }
999
- function v(k, f = !0) {
1000
- const _ = f ? l : "";
1001
- p(r ? _ + " ".repeat(k) : _);
1002
- }
1003
- function I(k = !0) {
1004
- const f = ++i.indentLevel;
1005
- k && v(f);
1006
- }
1007
- function g(k = !0) {
1008
- const f = --i.indentLevel;
1009
- k && v(f);
1010
- }
1011
- function A() {
1012
- v(i.indentLevel);
1013
- }
1014
- return {
1015
- context: c,
1016
- push: p,
1017
- indent: I,
1018
- deindent: g,
1019
- newline: A,
1020
- helper: (k) => `_${k}`,
1021
- needIndent: () => i.needIndent
1022
- };
1023
- }
1024
- function ir(e, t) {
1025
- const { helper: n } = e;
1026
- e.push(`${n(
1027
- "linked"
1028
- /* HelperNameMap.LINKED */
1029
- )}(`), Ze(e, t.key), t.modifier ? (e.push(", "), Ze(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
1030
- }
1031
- function ur(e, t) {
1032
- const { helper: n, needIndent: a } = e;
1033
- e.push(`${n(
1034
- "normalize"
1035
- /* HelperNameMap.NORMALIZE */
1036
- )}([`), e.indent(a());
1037
- const l = t.items.length;
1038
- for (let r = 0; r < l && (Ze(e, t.items[r]), r !== l - 1); r++)
1039
- e.push(", ");
1040
- e.deindent(a()), e.push("])");
1041
- }
1042
- function cr(e, t) {
1043
- const { helper: n, needIndent: a } = e;
1044
- if (t.cases.length > 1) {
1045
- e.push(`${n(
1046
- "plural"
1047
- /* HelperNameMap.PLURAL */
1048
- )}([`), e.indent(a());
1049
- const l = t.cases.length;
1050
- for (let r = 0; r < l && (Ze(e, t.cases[r]), r !== l - 1); r++)
1051
- e.push(", ");
1052
- e.deindent(a()), e.push("])");
1053
- }
1054
- }
1055
- function fr(e, t) {
1056
- t.body ? Ze(e, t.body) : e.push("null");
1057
- }
1058
- function Ze(e, t) {
1059
- const { helper: n } = e;
1060
- switch (t.type) {
1061
- case 0:
1062
- fr(e, t);
1063
- break;
1064
- case 1:
1065
- cr(e, t);
1066
- break;
1067
- case 2:
1068
- ur(e, t);
1069
- break;
1070
- case 6:
1071
- ir(e, t);
1072
- break;
1073
- case 8:
1074
- e.push(JSON.stringify(t.value), t);
1075
- break;
1076
- case 7:
1077
- e.push(JSON.stringify(t.value), t);
1078
- break;
1079
- case 5:
1080
- e.push(`${n(
1081
- "interpolate"
1082
- /* HelperNameMap.INTERPOLATE */
1083
- )}(${n(
1084
- "list"
1085
- /* HelperNameMap.LIST */
1086
- )}(${t.index}))`, t);
1087
- break;
1088
- case 4:
1089
- e.push(`${n(
1090
- "interpolate"
1091
- /* HelperNameMap.INTERPOLATE */
1092
- )}(${n(
1093
- "named"
1094
- /* HelperNameMap.NAMED */
1095
- )}(${JSON.stringify(t.key)}))`, t);
1096
- break;
1097
- case 9:
1098
- e.push(JSON.stringify(t.value), t);
1099
- break;
1100
- case 3:
1101
- e.push(JSON.stringify(t.value), t);
1102
- break;
1103
- default:
1104
- throw xe(P.UNHANDLED_CODEGEN_NODE_TYPE, null, {
1105
- domain: lr,
1106
- args: [t.type]
1107
- });
1108
- }
1109
- }
1110
- const dr = (e, t = {}) => {
1111
- const n = en(t.mode) ? t.mode : "normal", a = en(t.filename) ? t.filename : "message.intl", l = !!t.sourceMap, r = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
1112
- `, o = t.needIndent ? t.needIndent : n !== "arrow", i = e.helpers || [], c = or(e, {
1113
- mode: n,
1114
- filename: a,
1115
- sourceMap: l,
1116
- breakLineCode: r,
1117
- needIndent: o
1118
- });
1119
- c.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), c.indent(o), i.length > 0 && (c.push(`const { ${Dn(i.map((I) => `${I}: _${I}`), ", ")} } = ctx`), c.newline()), c.push("return "), Ze(c, e), c.deindent(o), c.push("}"), delete e.helpers;
1120
- const { code: p, map: v } = c.context();
1121
- return {
1122
- ast: e,
1123
- code: p,
1124
- map: v ? v.toJSON() : void 0
1125
- // eslint-disable-line @typescript-eslint/no-explicit-any
1126
- };
1127
- };
1128
- function mr(e, t = {}) {
1129
- const n = Pn({}, t), a = !!n.jit, l = !!n.minify, r = n.optimize == null ? !0 : n.optimize, i = tr(n).parse(e);
1130
- return a ? (r && rr(i), l && je(i), { ast: i, code: "" }) : (ar(i, n), dr(i, n));
1131
- }
1132
- /*!
1133
- * core-base v9.9.0
1134
- * (c) 2024 kazuya kawaguchi
1135
- * Released under the MIT License.
1136
- */
1137
- function _r() {
1138
- typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Te().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_JIT_COMPILATION__ != "boolean" && (Te().__INTLIFY_JIT_COMPILATION__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Te().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
1139
- }
1140
- const Pe = [];
1141
- Pe[
1142
- 0
1143
- /* States.BEFORE_PATH */
1144
- ] = {
1145
- w: [
1146
- 0
1147
- /* States.BEFORE_PATH */
1148
- ],
1149
- i: [
1150
- 3,
1151
- 0
1152
- /* Actions.APPEND */
1153
- ],
1154
- "[": [
1155
- 4
1156
- /* States.IN_SUB_PATH */
1157
- ],
1158
- o: [
1159
- 7
1160
- /* States.AFTER_PATH */
1161
- ]
1162
- };
1163
- Pe[
1164
- 1
1165
- /* States.IN_PATH */
1166
- ] = {
1167
- w: [
1168
- 1
1169
- /* States.IN_PATH */
1170
- ],
1171
- ".": [
1172
- 2
1173
- /* States.BEFORE_IDENT */
1174
- ],
1175
- "[": [
1176
- 4
1177
- /* States.IN_SUB_PATH */
1178
- ],
1179
- o: [
1180
- 7
1181
- /* States.AFTER_PATH */
1182
- ]
1183
- };
1184
- Pe[
1185
- 2
1186
- /* States.BEFORE_IDENT */
1187
- ] = {
1188
- w: [
1189
- 2
1190
- /* States.BEFORE_IDENT */
1191
- ],
1192
- i: [
1193
- 3,
1194
- 0
1195
- /* Actions.APPEND */
1196
- ],
1197
- 0: [
1198
- 3,
1199
- 0
1200
- /* Actions.APPEND */
1201
- ]
1202
- };
1203
- Pe[
1204
- 3
1205
- /* States.IN_IDENT */
1206
- ] = {
1207
- i: [
1208
- 3,
1209
- 0
1210
- /* Actions.APPEND */
1211
- ],
1212
- 0: [
1213
- 3,
1214
- 0
1215
- /* Actions.APPEND */
1216
- ],
1217
- w: [
1218
- 1,
1219
- 1
1220
- /* Actions.PUSH */
1221
- ],
1222
- ".": [
1223
- 2,
1224
- 1
1225
- /* Actions.PUSH */
1226
- ],
1227
- "[": [
1228
- 4,
1229
- 1
1230
- /* Actions.PUSH */
1231
- ],
1232
- o: [
1233
- 7,
1234
- 1
1235
- /* Actions.PUSH */
1236
- ]
1237
- };
1238
- Pe[
1239
- 4
1240
- /* States.IN_SUB_PATH */
1241
- ] = {
1242
- "'": [
1243
- 5,
1244
- 0
1245
- /* Actions.APPEND */
1246
- ],
1247
- '"': [
1248
- 6,
1249
- 0
1250
- /* Actions.APPEND */
1251
- ],
1252
- "[": [
1253
- 4,
1254
- 2
1255
- /* Actions.INC_SUB_PATH_DEPTH */
1256
- ],
1257
- "]": [
1258
- 1,
1259
- 3
1260
- /* Actions.PUSH_SUB_PATH */
1261
- ],
1262
- o: 8,
1263
- l: [
1264
- 4,
1265
- 0
1266
- /* Actions.APPEND */
1267
- ]
1268
- };
1269
- Pe[
1270
- 5
1271
- /* States.IN_SINGLE_QUOTE */
1272
- ] = {
1273
- "'": [
1274
- 4,
1275
- 0
1276
- /* Actions.APPEND */
1277
- ],
1278
- o: 8,
1279
- l: [
1280
- 5,
1281
- 0
1282
- /* Actions.APPEND */
1283
- ]
1284
- };
1285
- Pe[
1286
- 6
1287
- /* States.IN_DOUBLE_QUOTE */
1288
- ] = {
1289
- '"': [
1290
- 4,
1291
- 0
1292
- /* Actions.APPEND */
1293
- ],
1294
- o: 8,
1295
- l: [
1296
- 6,
1297
- 0
1298
- /* Actions.APPEND */
1299
- ]
1300
- };
1301
- const Er = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
1302
- function pr(e) {
1303
- return Er.test(e);
1304
- }
1305
- function gr(e) {
1306
- const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
1307
- return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
1308
- }
1309
- function vr(e) {
1310
- if (e == null)
1311
- return "o";
1312
- switch (e.charCodeAt(0)) {
1313
- case 91:
1314
- case 93:
1315
- case 46:
1316
- case 34:
1317
- case 39:
1318
- return e;
1319
- case 95:
1320
- case 36:
1321
- case 45:
1322
- return "i";
1323
- case 9:
1324
- case 10:
1325
- case 13:
1326
- case 160:
1327
- case 65279:
1328
- case 8232:
1329
- case 8233:
1330
- return "w";
1331
- }
1332
- return "i";
1333
- }
1334
- function Nr(e) {
1335
- const t = e.trim();
1336
- return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : pr(t) ? gr(t) : "*" + t;
1337
- }
1338
- function hr(e) {
1339
- const t = [];
1340
- let n = -1, a = 0, l = 0, r, o, i, c, p, v, I;
1341
- const g = [];
1342
- g[
1343
- 0
1344
- /* Actions.APPEND */
1345
- ] = () => {
1346
- o === void 0 ? o = i : o += i;
1347
- }, g[
1348
- 1
1349
- /* Actions.PUSH */
1350
- ] = () => {
1351
- o !== void 0 && (t.push(o), o = void 0);
1352
- }, g[
1353
- 2
1354
- /* Actions.INC_SUB_PATH_DEPTH */
1355
- ] = () => {
1356
- g[
1357
- 0
1358
- /* Actions.APPEND */
1359
- ](), l++;
1360
- }, g[
1361
- 3
1362
- /* Actions.PUSH_SUB_PATH */
1363
- ] = () => {
1364
- if (l > 0)
1365
- l--, a = 4, g[
1366
- 0
1367
- /* Actions.APPEND */
1368
- ]();
1369
- else {
1370
- if (l = 0, o === void 0 || (o = Nr(o), o === !1))
1371
- return !1;
1372
- g[
1373
- 1
1374
- /* Actions.PUSH */
1375
- ]();
1376
- }
1377
- };
1378
- function A() {
1379
- const D = e[n + 1];
1380
- if (a === 5 && D === "'" || a === 6 && D === '"')
1381
- return n++, i = "\\" + D, g[
1382
- 0
1383
- /* Actions.APPEND */
1384
- ](), !0;
1385
- }
1386
- for (; a !== null; )
1387
- if (n++, r = e[n], !(r === "\\" && A())) {
1388
- if (c = vr(r), I = Pe[a], p = I[c] || I.l || 8, p === 8 || (a = p[0], p[1] !== void 0 && (v = g[p[1]], v && (i = r, v() === !1))))
1389
- return;
1390
- if (a === 7)
1391
- return t;
1392
- }
1393
- }
1394
- const rn = /* @__PURE__ */ new Map();
1395
- function br(e, t) {
1396
- return H(e) ? e[t] : null;
1397
- }
1398
- function Ir(e, t) {
1399
- if (!H(e))
1400
- return null;
1401
- let n = rn.get(t);
1402
- if (n || (n = hr(t), n && rn.set(t, n)), !n)
1403
- return null;
1404
- const a = n.length;
1405
- let l = e, r = 0;
1406
- for (; r < a; ) {
1407
- const o = l[n[r]];
1408
- if (o === void 0 || Y(l))
1409
- return null;
1410
- l = o, r++;
1411
- }
1412
- return l;
1413
- }
1414
- const Tr = (e) => e, Lr = (e) => "", Or = "text", Cr = (e) => e.length === 0 ? "" : Ra(e), yr = Da;
1415
- function sn(e, t) {
1416
- return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
1417
- }
1418
- function Ar(e) {
1419
- const t = z(e.pluralIndex) ? e.pluralIndex : -1;
1420
- return e.named && (z(e.named.count) || z(e.named.n)) ? z(e.named.count) ? e.named.count : z(e.named.n) ? e.named.n : t : t;
1421
- }
1422
- function kr(e, t) {
1423
- t.count || (t.count = e), t.n || (t.n = e);
1424
- }
1425
- function Sr(e = {}) {
1426
- const t = e.locale, n = Ar(e), a = H(e.pluralRules) && C(t) && Y(e.pluralRules[t]) ? e.pluralRules[t] : sn, l = H(e.pluralRules) && C(t) && Y(e.pluralRules[t]) ? sn : void 0, r = (f) => f[a(n, f.length, l)], o = e.list || [], i = (f) => o[f], c = e.named || {};
1427
- z(e.pluralIndex) && kr(n, c);
1428
- const p = (f) => c[f];
1429
- function v(f) {
1430
- const _ = Y(e.messages) ? e.messages(f) : H(e.messages) ? e.messages[f] : !1;
1431
- return _ || (e.parent ? e.parent.message(f) : Lr);
1432
- }
1433
- const I = (f) => e.modifiers ? e.modifiers[f] : Tr, g = $(e.processor) && Y(e.processor.normalize) ? e.processor.normalize : Cr, A = $(e.processor) && Y(e.processor.interpolate) ? e.processor.interpolate : yr, D = $(e.processor) && C(e.processor.type) ? e.processor.type : Or, k = {
1434
- list: i,
1435
- named: p,
1436
- plural: r,
1437
- linked: (f, ..._) => {
1438
- const [h, E] = _;
1439
- let O = "text", T = "";
1440
- _.length === 1 ? H(h) ? (T = h.modifier || T, O = h.type || O) : C(h) && (T = h || T) : _.length === 2 && (C(h) && (T = h || T), C(E) && (O = E || O));
1441
- const y = v(f)(k), b = (
1442
- // The message in vnode resolved with linked are returned as an array by processor.nomalize
1443
- O === "vnode" && Q(y) && T ? y[0] : y
1444
- );
1445
- return T ? I(T)(b, O) : b;
1446
- },
1447
- message: v,
1448
- type: D,
1449
- interpolate: A,
1450
- normalize: g,
1451
- values: ee({}, o, c)
1452
- };
1453
- return k;
1454
- }
1455
- let ot = null;
1456
- function Pr(e) {
1457
- ot = e;
1458
- }
1459
- function Dr(e, t, n) {
1460
- ot && ot.emit("i18n:init", {
1461
- timestamp: Date.now(),
1462
- i18n: e,
1463
- version: t,
1464
- meta: n
1465
- });
1466
- }
1467
- const Rr = /* @__PURE__ */ Mr(
1468
- "function:translate"
1469
- /* IntlifyDevToolsHooks.FunctionTranslate */
1470
- );
1471
- function Mr(e) {
1472
- return (t) => ot && ot.emit(e, t);
1473
- }
1474
- const ne = {
1475
- NOT_FOUND_KEY: 1,
1476
- FALLBACK_TO_TRANSLATE: 2,
1477
- CANNOT_FORMAT_NUMBER: 3,
1478
- FALLBACK_TO_NUMBER_FORMAT: 4,
1479
- CANNOT_FORMAT_DATE: 5,
1480
- FALLBACK_TO_DATE_FORMAT: 6,
1481
- EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7,
1482
- __EXTEND_POINT__: 8
1483
- }, Fr = {
1484
- [ne.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
1485
- [ne.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
1486
- [ne.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
1487
- [ne.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.",
1488
- [ne.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
1489
- [ne.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
1490
- [ne.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: "This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."
1491
- };
1492
- function Ve(e, ...t) {
1493
- return wt(Fr[e], ...t);
1494
- }
1495
- const Rn = P.__EXTEND_POINT__, we = Ut(Rn), x = {
1496
- INVALID_ARGUMENT: Rn,
1497
- INVALID_DATE_ARGUMENT: we(),
1498
- INVALID_ISO_DATE_ARGUMENT: we(),
1499
- NOT_SUPPORT_NON_STRING_MESSAGE: we(),
1500
- NOT_SUPPORT_LOCALE_PROMISE_VALUE: we(),
1501
- NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: we(),
1502
- NOT_SUPPORT_LOCALE_TYPE: we(),
1503
- __EXTEND_POINT__: we()
1504
- // 25
1505
- };
1506
- function he(e) {
1507
- return xe(e, null, process.env.NODE_ENV !== "production" ? { messages: $r } : void 0);
1508
- }
1509
- const $r = {
1510
- [x.INVALID_ARGUMENT]: "Invalid arguments",
1511
- [x.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
1512
- [x.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
1513
- [x.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
1514
- [x.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
1515
- [x.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
1516
- [x.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
1517
- };
1518
- function Ht(e, t) {
1519
- return t.locale != null ? ln(t.locale) : ln(e.locale);
1520
- }
1521
- let It;
1522
- function ln(e) {
1523
- if (C(e))
1524
- return e;
1525
- if (Y(e)) {
1526
- if (e.resolvedOnce && It != null)
1527
- return It;
1528
- if (e.constructor.name === "Function") {
1529
- const t = e();
1530
- if (Pa(t))
1531
- throw he(x.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
1532
- return It = t;
1533
- } else
1534
- throw he(x.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
1535
- } else
1536
- throw he(x.NOT_SUPPORT_LOCALE_TYPE);
1537
- }
1538
- function wr(e, t, n) {
1539
- return [.../* @__PURE__ */ new Set([
1540
- n,
1541
- ...Q(t) ? t : H(t) ? Object.keys(t) : C(t) ? [t] : [n]
1542
- ])];
1543
- }
1544
- function Mn(e, t, n) {
1545
- const a = C(n) ? n : it, l = e;
1546
- l.__localeChainCache || (l.__localeChainCache = /* @__PURE__ */ new Map());
1547
- let r = l.__localeChainCache.get(a);
1548
- if (!r) {
1549
- r = [];
1550
- let o = [n];
1551
- for (; Q(o); )
1552
- o = on(r, o, t);
1553
- const i = Q(t) || !$(t) ? t : t.default ? t.default : null;
1554
- o = C(i) ? [i] : i, Q(o) && on(r, o, !1), l.__localeChainCache.set(a, r);
1555
- }
1556
- return r;
1557
- }
1558
- function on(e, t, n) {
1559
- let a = !0;
1560
- for (let l = 0; l < t.length && G(a); l++) {
1561
- const r = t[l];
1562
- C(r) && (a = Ur(e, t[l], n));
1563
- }
1564
- return a;
1565
- }
1566
- function Ur(e, t, n) {
1567
- let a;
1568
- const l = t.split("-");
1569
- do {
1570
- const r = l.join("-");
1571
- a = Vr(e, r, n), l.splice(-1, 1);
1572
- } while (l.length && a === !0);
1573
- return a;
1574
- }
1575
- function Vr(e, t, n) {
1576
- let a = !1;
1577
- if (!e.includes(t) && (a = !0, t)) {
1578
- a = t[t.length - 1] !== "!";
1579
- const l = t.replace(/!/g, "");
1580
- e.push(l), (Q(n) || $(n)) && n[l] && (a = n[l]);
1581
- }
1582
- return a;
1583
- }
1584
- const Hr = "9.9.0", Nt = -1, it = "en-US", gt = "", un = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
1585
- function Wr() {
1586
- return {
1587
- upper: (e, t) => t === "text" && C(e) ? e.toUpperCase() : t === "vnode" && H(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
1588
- lower: (e, t) => t === "text" && C(e) ? e.toLowerCase() : t === "vnode" && H(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
1589
- capitalize: (e, t) => t === "text" && C(e) ? un(e) : t === "vnode" && H(e) && "__v_isVNode" in e ? un(e.children) : e
1590
- };
1591
- }
1592
- let Fn;
1593
- function cn(e) {
1594
- Fn = e;
1595
- }
1596
- let $n;
1597
- function Br(e) {
1598
- $n = e;
1599
- }
1600
- let wn;
1601
- function Gr(e) {
1602
- wn = e;
1603
- }
1604
- let Un = null;
1605
- const Yr = /* @__NO_SIDE_EFFECTS__ */ (e) => {
1606
- Un = e;
1607
- }, Kr = /* @__NO_SIDE_EFFECTS__ */ () => Un;
1608
- let Vn = null;
1609
- const fn = (e) => {
1610
- Vn = e;
1611
- }, Xr = () => Vn;
1612
- let dn = 0;
1613
- function jr(e = {}) {
1614
- const t = Y(e.onWarn) ? e.onWarn : Se, n = C(e.version) ? e.version : Hr, a = C(e.locale) || Y(e.locale) ? e.locale : it, l = Y(a) ? it : a, r = Q(e.fallbackLocale) || $(e.fallbackLocale) || C(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, o = $(e.messages) ? e.messages : { [l]: {} }, i = $(e.datetimeFormats) ? e.datetimeFormats : { [l]: {} }, c = $(e.numberFormats) ? e.numberFormats : { [l]: {} }, p = ee({}, e.modifiers || {}, Wr()), v = e.pluralRules || {}, I = Y(e.missing) ? e.missing : null, g = G(e.missingWarn) || Qe(e.missingWarn) ? e.missingWarn : !0, A = G(e.fallbackWarn) || Qe(e.fallbackWarn) ? e.fallbackWarn : !0, D = !!e.fallbackFormat, S = !!e.unresolving, k = Y(e.postTranslation) ? e.postTranslation : null, f = $(e.processor) ? e.processor : null, _ = G(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, h = !!e.escapeParameter, E = Y(e.messageCompiler) ? e.messageCompiler : Fn;
1615
- process.env.NODE_ENV !== "production" && Y(e.messageCompiler) && Fa(Ve(ne.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
1616
- const O = Y(e.messageResolver) ? e.messageResolver : $n || br, T = Y(e.localeFallbacker) ? e.localeFallbacker : wn || wr, y = H(e.fallbackContext) ? e.fallbackContext : void 0, b = e, W = H(b.__datetimeFormatters) ? b.__datetimeFormatters : /* @__PURE__ */ new Map(), X = H(b.__numberFormatters) ? b.__numberFormatters : /* @__PURE__ */ new Map(), de = H(b.__meta) ? b.__meta : {};
1617
- dn++;
1618
- const Z = {
1619
- version: n,
1620
- cid: dn,
1621
- locale: a,
1622
- fallbackLocale: r,
1623
- messages: o,
1624
- modifiers: p,
1625
- pluralRules: v,
1626
- missing: I,
1627
- missingWarn: g,
1628
- fallbackWarn: A,
1629
- fallbackFormat: D,
1630
- unresolving: S,
1631
- postTranslation: k,
1632
- processor: f,
1633
- warnHtmlMessage: _,
1634
- escapeParameter: h,
1635
- messageCompiler: E,
1636
- messageResolver: O,
1637
- localeFallbacker: T,
1638
- fallbackContext: y,
1639
- onWarn: t,
1640
- __meta: de
1641
- };
1642
- return Z.datetimeFormats = i, Z.numberFormats = c, Z.__datetimeFormatters = W, Z.__numberFormatters = X, process.env.NODE_ENV !== "production" && (Z.__v_emitter = b.__v_emitter != null ? b.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Dr(Z, n, de), Z;
1643
- }
1644
- function ht(e, t) {
1645
- return e instanceof RegExp ? e.test(t) : e;
1646
- }
1647
- function Hn(e, t) {
1648
- return e instanceof RegExp ? e.test(t) : e;
1649
- }
1650
- function Wt(e, t, n, a, l) {
1651
- const { missing: r, onWarn: o } = e;
1652
- if (process.env.NODE_ENV !== "production") {
1653
- const i = e.__v_emitter;
1654
- i && i.emit("missing", {
1655
- locale: n,
1656
- key: t,
1657
- type: l,
1658
- groupId: `${l}:${t}`
1659
- });
1660
- }
1661
- if (r !== null) {
1662
- const i = r(e, n, t, l);
1663
- return C(i) ? i : t;
1664
- } else
1665
- return process.env.NODE_ENV !== "production" && Hn(a, t) && o(Ve(ne.NOT_FOUND_KEY, { key: t, locale: n })), t;
1666
- }
1667
- function lt(e, t, n) {
1668
- const a = e;
1669
- a.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
1670
- }
1671
- function Tt(e) {
1672
- return (n) => qr(n, e);
1673
- }
1674
- function qr(e, t) {
1675
- const n = t.b || t.body;
1676
- if ((n.t || n.type) === 1) {
1677
- const a = n, l = a.c || a.cases;
1678
- return e.plural(l.reduce((r, o) => [
1679
- ...r,
1680
- mn(e, o)
1681
- ], []));
1682
- } else
1683
- return mn(e, n);
1684
- }
1685
- function mn(e, t) {
1686
- const n = t.s || t.static;
1687
- if (n)
1688
- return e.type === "text" ? n : e.normalize([n]);
1689
- {
1690
- const a = (t.i || t.items).reduce((l, r) => [...l, Ct(e, r)], []);
1691
- return e.normalize(a);
1692
- }
1693
- }
1694
- function Ct(e, t) {
1695
- const n = t.t || t.type;
1696
- switch (n) {
1697
- case 3:
1698
- const a = t;
1699
- return a.v || a.value;
1700
- case 9:
1701
- const l = t;
1702
- return l.v || l.value;
1703
- case 4:
1704
- const r = t;
1705
- return e.interpolate(e.named(r.k || r.key));
1706
- case 5:
1707
- const o = t;
1708
- return e.interpolate(e.list(o.i != null ? o.i : o.index));
1709
- case 6:
1710
- const i = t, c = i.m || i.modifier;
1711
- return e.linked(Ct(e, i.k || i.key), c ? Ct(e, c) : void 0, e.type);
1712
- case 7:
1713
- const p = t;
1714
- return p.v || p.value;
1715
- case 8:
1716
- const v = t;
1717
- return v.v || v.value;
1718
- default:
1719
- throw new Error(`unhandled node type on format message part: ${n}`);
1720
- }
1721
- }
1722
- const Jr = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
1723
- function Wn(e, t) {
1724
- t && Ya(e) && Se(wt(Jr, { source: e }));
1725
- }
1726
- const Bn = (e) => e;
1727
- let qe = /* @__PURE__ */ Object.create(null);
1728
- const He = (e) => H(e) && (e.t === 0 || e.type === 0) && ("b" in e || "body" in e);
1729
- function Gn(e, t = {}) {
1730
- let n = !1;
1731
- const a = t.onError || Ba;
1732
- return t.onError = (l) => {
1733
- n = !0, a(l);
1734
- }, { ...mr(e, t), detectError: n };
1735
- }
1736
- const Qr = /* @__NO_SIDE_EFFECTS__ */ (e, t) => {
1737
- if (!C(e))
1738
- throw he(x.NOT_SUPPORT_NON_STRING_MESSAGE);
1739
- {
1740
- const n = G(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
1741
- process.env.NODE_ENV !== "production" && Wn(e, n);
1742
- const l = (t.onCacheKey || Bn)(e), r = qe[l];
1743
- if (r)
1744
- return r;
1745
- const { code: o, detectError: i } = Gn(e, t), c = new Function(`return ${o}`)();
1746
- return i ? c : qe[l] = c;
1747
- }
1748
- };
1749
- function Zr(e, t) {
1750
- if (__INTLIFY_JIT_COMPILATION__ && !__INTLIFY_DROP_MESSAGE_COMPILER__ && C(e)) {
1751
- const n = G(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
1752
- process.env.NODE_ENV !== "production" && Wn(e, n);
1753
- const l = (t.onCacheKey || Bn)(e), r = qe[l];
1754
- if (r)
1755
- return r;
1756
- const { ast: o, detectError: i } = Gn(e, {
1757
- ...t,
1758
- location: process.env.NODE_ENV !== "production",
1759
- jit: !0
1760
- }), c = Tt(o);
1761
- return i ? c : qe[l] = c;
1762
- } else {
1763
- if (process.env.NODE_ENV !== "production" && !He(e))
1764
- return Se(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), () => e;
1765
- const n = e.cacheKey;
1766
- if (n) {
1767
- const a = qe[n];
1768
- return a || (qe[n] = Tt(e));
1769
- } else
1770
- return Tt(e);
1771
- }
1772
- }
1773
- const _n = () => "", ue = (e) => Y(e);
1774
- function En(e, ...t) {
1775
- const { fallbackFormat: n, postTranslation: a, unresolving: l, messageCompiler: r, fallbackLocale: o, messages: i } = e, [c, p] = yt(...t), v = G(p.missingWarn) ? p.missingWarn : e.missingWarn, I = G(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, g = G(p.escapeParameter) ? p.escapeParameter : e.escapeParameter, A = !!p.resolvedMessage, D = C(p.default) || G(p.default) ? G(p.default) ? r ? c : () => c : p.default : n ? r ? c : () => c : "", S = n || D !== "", k = Ht(e, p);
1776
- g && xr(p);
1777
- let [f, _, h] = A ? [
1778
- c,
1779
- k,
1780
- i[k] || {}
1781
- ] : Yn(e, c, k, o, I, v), E = f, O = c;
1782
- if (!A && !(C(E) || He(E) || ue(E)) && S && (E = D, O = E), !A && (!(C(E) || He(E) || ue(E)) || !C(_)))
1783
- return l ? Nt : c;
1784
- if (process.env.NODE_ENV !== "production" && C(E) && e.messageCompiler == null)
1785
- return Se(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${c}'.`), c;
1786
- let T = !1;
1787
- const y = () => {
1788
- T = !0;
1789
- }, b = ue(E) ? E : Kn(e, c, _, E, O, y);
1790
- if (T)
1791
- return E;
1792
- const W = ns(e, _, h, p), X = Sr(W), de = zr(e, b, X), Z = a ? a(de, c) : de;
1793
- if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
1794
- const oe = {
1795
- timestamp: Date.now(),
1796
- key: C(c) ? c : ue(E) ? E.key : "",
1797
- locale: _ || (ue(E) ? E.locale : ""),
1798
- format: C(E) ? E : ue(E) ? E.source : "",
1799
- message: Z
1800
- };
1801
- oe.meta = ee({}, e.__meta, /* @__PURE__ */ Kr() || {}), Rr(oe);
1802
- }
1803
- return Z;
1804
- }
1805
- function xr(e) {
1806
- Q(e.list) ? e.list = e.list.map((t) => C(t) ? Zt(t) : t) : H(e.named) && Object.keys(e.named).forEach((t) => {
1807
- C(e.named[t]) && (e.named[t] = Zt(e.named[t]));
1808
- });
1809
- }
1810
- function Yn(e, t, n, a, l, r) {
1811
- const { messages: o, onWarn: i, messageResolver: c, localeFallbacker: p } = e, v = p(e, a, n);
1812
- let I = {}, g, A = null, D = n, S = null;
1813
- const k = "translate";
1814
- for (let f = 0; f < v.length; f++) {
1815
- if (g = S = v[f], process.env.NODE_ENV !== "production" && n !== g && ht(l, t) && i(Ve(ne.FALLBACK_TO_TRANSLATE, {
1816
- key: t,
1817
- target: g
1818
- })), process.env.NODE_ENV !== "production" && n !== g) {
1819
- const T = e.__v_emitter;
1820
- T && T.emit("fallback", {
1821
- type: k,
1822
- key: t,
1823
- from: D,
1824
- to: S,
1825
- groupId: `${k}:${t}`
1826
- });
1827
- }
1828
- I = o[g] || {};
1829
- let _ = null, h, E;
1830
- if (process.env.NODE_ENV !== "production" && Le && (_ = window.performance.now(), h = "intlify-message-resolve-start", E = "intlify-message-resolve-end", le && le(h)), (A = c(I, t)) === null && (A = I[t]), process.env.NODE_ENV !== "production" && Le) {
1831
- const T = window.performance.now(), y = e.__v_emitter;
1832
- y && _ && A && y.emit("message-resolve", {
1833
- type: "message-resolve",
1834
- key: t,
1835
- message: A,
1836
- time: T - _,
1837
- groupId: `${k}:${t}`
1838
- }), h && E && le && Ue && (le(E), Ue("intlify message resolve", h, E));
1839
- }
1840
- if (C(A) || He(A) || ue(A))
1841
- break;
1842
- const O = Wt(
1843
- e,
1844
- // eslint-disable-line @typescript-eslint/no-explicit-any
1845
- t,
1846
- g,
1847
- r,
1848
- k
1849
- );
1850
- O !== t && (A = O), D = S;
1851
- }
1852
- return [A, g, I];
1853
- }
1854
- function Kn(e, t, n, a, l, r) {
1855
- const { messageCompiler: o, warnHtmlMessage: i } = e;
1856
- if (ue(a)) {
1857
- const g = a;
1858
- return g.locale = g.locale || n, g.key = g.key || t, g;
1859
- }
1860
- if (o == null) {
1861
- const g = () => a;
1862
- return g.locale = n, g.key = t, g;
1863
- }
1864
- let c = null, p, v;
1865
- process.env.NODE_ENV !== "production" && Le && (c = window.performance.now(), p = "intlify-message-compilation-start", v = "intlify-message-compilation-end", le && le(p));
1866
- const I = o(a, es(e, n, l, a, i, r));
1867
- if (process.env.NODE_ENV !== "production" && Le) {
1868
- const g = window.performance.now(), A = e.__v_emitter;
1869
- A && c && A.emit("message-compilation", {
1870
- type: "message-compilation",
1871
- message: a,
1872
- time: g - c,
1873
- groupId: `translate:${t}`
1874
- }), p && v && le && Ue && (le(v), Ue("intlify message compilation", p, v));
1875
- }
1876
- return I.locale = n, I.key = t, I.source = a, I;
1877
- }
1878
- function zr(e, t, n) {
1879
- let a = null, l, r;
1880
- process.env.NODE_ENV !== "production" && Le && (a = window.performance.now(), l = "intlify-message-evaluation-start", r = "intlify-message-evaluation-end", le && le(l));
1881
- const o = t(n);
1882
- if (process.env.NODE_ENV !== "production" && Le) {
1883
- const i = window.performance.now(), c = e.__v_emitter;
1884
- c && a && c.emit("message-evaluation", {
1885
- type: "message-evaluation",
1886
- value: o,
1887
- time: i - a,
1888
- groupId: `translate:${t.key}`
1889
- }), l && r && le && Ue && (le(r), Ue("intlify message evaluation", l, r));
1890
- }
1891
- return o;
1892
- }
1893
- function yt(...e) {
1894
- const [t, n, a] = e, l = {};
1895
- if (!C(t) && !z(t) && !ue(t) && !He(t))
1896
- throw he(x.INVALID_ARGUMENT);
1897
- const r = z(t) ? String(t) : (ue(t), t);
1898
- return z(n) ? l.plural = n : C(n) ? l.default = n : $(n) && !vt(n) ? l.named = n : Q(n) && (l.list = n), z(a) ? l.plural = a : C(a) ? l.default = a : $(a) && ee(l, a), [r, l];
1899
- }
1900
- function es(e, t, n, a, l, r) {
1901
- return {
1902
- locale: t,
1903
- key: n,
1904
- warnHtmlMessage: l,
1905
- onError: (o) => {
1906
- if (r && r(o), process.env.NODE_ENV !== "production") {
1907
- const i = ts(a), c = `Message compilation error: ${o.message}`, p = o.location && i && Ma(i, o.location.start.offset, o.location.end.offset), v = e.__v_emitter;
1908
- v && i && v.emit("compile-error", {
1909
- message: i,
1910
- error: o.message,
1911
- start: o.location && o.location.start.offset,
1912
- end: o.location && o.location.end.offset,
1913
- groupId: `translate:${n}`
1914
- }), console.error(p ? `${c}
1915
- ${p}` : c);
1916
- } else
1917
- throw o;
1918
- },
1919
- onCacheKey: (o) => ya(t, n, o)
1920
- };
1921
- }
1922
- function ts(e) {
1923
- if (C(e))
1924
- return e;
1925
- if (e.loc && e.loc.source)
1926
- return e.loc.source;
1927
- }
1928
- function ns(e, t, n, a) {
1929
- const { modifiers: l, pluralRules: r, messageResolver: o, fallbackLocale: i, fallbackWarn: c, missingWarn: p, fallbackContext: v } = e, g = {
1930
- locale: t,
1931
- modifiers: l,
1932
- pluralRules: r,
1933
- messages: (A) => {
1934
- let D = o(n, A);
1935
- if (D == null && v) {
1936
- const [, , S] = Yn(v, A, t, i, c, p);
1937
- D = o(S, A);
1938
- }
1939
- if (C(D) || He(D)) {
1940
- let S = !1;
1941
- const f = Kn(e, A, t, D, A, () => {
1942
- S = !0;
1943
- });
1944
- return S ? _n : f;
1945
- } else
1946
- return ue(D) ? D : _n;
1947
- }
1948
- };
1949
- return e.processor && (g.processor = e.processor), a.list && (g.list = a.list), a.named && (g.named = a.named), z(a.plural) && (g.pluralIndex = a.plural), g;
1950
- }
1951
- const pn = typeof Intl < "u", Xn = {
1952
- dateTimeFormat: pn && typeof Intl.DateTimeFormat < "u",
1953
- numberFormat: pn && typeof Intl.NumberFormat < "u"
1954
- };
1955
- function gn(e, ...t) {
1956
- const { datetimeFormats: n, unresolving: a, fallbackLocale: l, onWarn: r, localeFallbacker: o } = e, { __datetimeFormatters: i } = e;
1957
- if (process.env.NODE_ENV !== "production" && !Xn.dateTimeFormat)
1958
- return r(Ve(ne.CANNOT_FORMAT_DATE)), gt;
1959
- const [c, p, v, I] = At(...t), g = G(v.missingWarn) ? v.missingWarn : e.missingWarn, A = G(v.fallbackWarn) ? v.fallbackWarn : e.fallbackWarn, D = !!v.part, S = Ht(e, v), k = o(
1960
- e,
1961
- // eslint-disable-line @typescript-eslint/no-explicit-any
1962
- l,
1963
- S
1964
- );
1965
- if (!C(c) || c === "")
1966
- return new Intl.DateTimeFormat(S, I).format(p);
1967
- let f = {}, _, h = null, E = S, O = null;
1968
- const T = "datetime format";
1969
- for (let W = 0; W < k.length; W++) {
1970
- if (_ = O = k[W], process.env.NODE_ENV !== "production" && S !== _ && ht(A, c) && r(Ve(ne.FALLBACK_TO_DATE_FORMAT, {
1971
- key: c,
1972
- target: _
1973
- })), process.env.NODE_ENV !== "production" && S !== _) {
1974
- const X = e.__v_emitter;
1975
- X && X.emit("fallback", {
1976
- type: T,
1977
- key: c,
1978
- from: E,
1979
- to: O,
1980
- groupId: `${T}:${c}`
1981
- });
1982
- }
1983
- if (f = n[_] || {}, h = f[c], $(h))
1984
- break;
1985
- Wt(e, c, _, g, T), E = O;
1986
- }
1987
- if (!$(h) || !C(_))
1988
- return a ? Nt : c;
1989
- let y = `${_}__${c}`;
1990
- vt(I) || (y = `${y}__${JSON.stringify(I)}`);
1991
- let b = i.get(y);
1992
- return b || (b = new Intl.DateTimeFormat(_, ee({}, h, I)), i.set(y, b)), D ? b.formatToParts(p) : b.format(p);
1993
- }
1994
- const jn = [
1995
- "localeMatcher",
1996
- "weekday",
1997
- "era",
1998
- "year",
1999
- "month",
2000
- "day",
2001
- "hour",
2002
- "minute",
2003
- "second",
2004
- "timeZoneName",
2005
- "formatMatcher",
2006
- "hour12",
2007
- "timeZone",
2008
- "dateStyle",
2009
- "timeStyle",
2010
- "calendar",
2011
- "dayPeriod",
2012
- "numberingSystem",
2013
- "hourCycle",
2014
- "fractionalSecondDigits"
2015
- ];
2016
- function At(...e) {
2017
- const [t, n, a, l] = e, r = {};
2018
- let o = {}, i;
2019
- if (C(t)) {
2020
- const c = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
2021
- if (!c)
2022
- throw he(x.INVALID_ISO_DATE_ARGUMENT);
2023
- const p = c[3] ? c[3].trim().startsWith("T") ? `${c[1].trim()}${c[3].trim()}` : `${c[1].trim()}T${c[3].trim()}` : c[1].trim();
2024
- i = new Date(p);
2025
- try {
2026
- i.toISOString();
2027
- } catch {
2028
- throw he(x.INVALID_ISO_DATE_ARGUMENT);
2029
- }
2030
- } else if (ka(t)) {
2031
- if (isNaN(t.getTime()))
2032
- throw he(x.INVALID_DATE_ARGUMENT);
2033
- i = t;
2034
- } else if (z(t))
2035
- i = t;
2036
- else
2037
- throw he(x.INVALID_ARGUMENT);
2038
- return C(n) ? r.key = n : $(n) && Object.keys(n).forEach((c) => {
2039
- jn.includes(c) ? o[c] = n[c] : r[c] = n[c];
2040
- }), C(a) ? r.locale = a : $(a) && (o = a), $(l) && (o = l), [r.key || "", i, r, o];
2041
- }
2042
- function vn(e, t, n) {
2043
- const a = e;
2044
- for (const l in n) {
2045
- const r = `${t}__${l}`;
2046
- a.__datetimeFormatters.has(r) && a.__datetimeFormatters.delete(r);
2047
- }
2048
- }
2049
- function Nn(e, ...t) {
2050
- const { numberFormats: n, unresolving: a, fallbackLocale: l, onWarn: r, localeFallbacker: o } = e, { __numberFormatters: i } = e;
2051
- if (process.env.NODE_ENV !== "production" && !Xn.numberFormat)
2052
- return r(Ve(ne.CANNOT_FORMAT_NUMBER)), gt;
2053
- const [c, p, v, I] = kt(...t), g = G(v.missingWarn) ? v.missingWarn : e.missingWarn, A = G(v.fallbackWarn) ? v.fallbackWarn : e.fallbackWarn, D = !!v.part, S = Ht(e, v), k = o(
2054
- e,
2055
- // eslint-disable-line @typescript-eslint/no-explicit-any
2056
- l,
2057
- S
2058
- );
2059
- if (!C(c) || c === "")
2060
- return new Intl.NumberFormat(S, I).format(p);
2061
- let f = {}, _, h = null, E = S, O = null;
2062
- const T = "number format";
2063
- for (let W = 0; W < k.length; W++) {
2064
- if (_ = O = k[W], process.env.NODE_ENV !== "production" && S !== _ && ht(A, c) && r(Ve(ne.FALLBACK_TO_NUMBER_FORMAT, {
2065
- key: c,
2066
- target: _
2067
- })), process.env.NODE_ENV !== "production" && S !== _) {
2068
- const X = e.__v_emitter;
2069
- X && X.emit("fallback", {
2070
- type: T,
2071
- key: c,
2072
- from: E,
2073
- to: O,
2074
- groupId: `${T}:${c}`
2075
- });
2076
- }
2077
- if (f = n[_] || {}, h = f[c], $(h))
2078
- break;
2079
- Wt(e, c, _, g, T), E = O;
2080
- }
2081
- if (!$(h) || !C(_))
2082
- return a ? Nt : c;
2083
- let y = `${_}__${c}`;
2084
- vt(I) || (y = `${y}__${JSON.stringify(I)}`);
2085
- let b = i.get(y);
2086
- return b || (b = new Intl.NumberFormat(_, ee({}, h, I)), i.set(y, b)), D ? b.formatToParts(p) : b.format(p);
2087
- }
2088
- const qn = [
2089
- "localeMatcher",
2090
- "style",
2091
- "currency",
2092
- "currencyDisplay",
2093
- "currencySign",
2094
- "useGrouping",
2095
- "minimumIntegerDigits",
2096
- "minimumFractionDigits",
2097
- "maximumFractionDigits",
2098
- "minimumSignificantDigits",
2099
- "maximumSignificantDigits",
2100
- "compactDisplay",
2101
- "notation",
2102
- "signDisplay",
2103
- "unit",
2104
- "unitDisplay",
2105
- "roundingMode",
2106
- "roundingPriority",
2107
- "roundingIncrement",
2108
- "trailingZeroDisplay"
2109
- ];
2110
- function kt(...e) {
2111
- const [t, n, a, l] = e, r = {};
2112
- let o = {};
2113
- if (!z(t))
2114
- throw he(x.INVALID_ARGUMENT);
2115
- const i = t;
2116
- return C(n) ? r.key = n : $(n) && Object.keys(n).forEach((c) => {
2117
- qn.includes(c) ? o[c] = n[c] : r[c] = n[c];
2118
- }), C(a) ? r.locale = a : $(a) && (o = a), $(l) && (o = l), [r.key || "", i, r, o];
2119
- }
2120
- function hn(e, t, n) {
2121
- const a = e;
2122
- for (const l in n) {
2123
- const r = `${t}__${l}`;
2124
- a.__numberFormatters.has(r) && a.__numberFormatters.delete(r);
2125
- }
2126
- }
2127
- _r();
2128
- /*!
2129
- * vue-i18n v9.9.0
2130
- * (c) 2024 kazuya kawaguchi
2131
- * Released under the MIT License.
2132
- */
2133
- const as = "9.9.0";
2134
- function rs() {
2135
- typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Te().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Te().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_JIT_COMPILATION__ != "boolean" && (Te().__INTLIFY_JIT_COMPILATION__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Te().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Te().__INTLIFY_PROD_DEVTOOLS__ = !1);
2136
- }
2137
- const Jn = ne.__EXTEND_POINT__, Ae = Ut(Jn), ie = {
2138
- FALLBACK_TO_ROOT: Jn,
2139
- NOT_SUPPORTED_PRESERVE: Ae(),
2140
- NOT_SUPPORTED_FORMATTER: Ae(),
2141
- NOT_SUPPORTED_PRESERVE_DIRECTIVE: Ae(),
2142
- NOT_SUPPORTED_GET_CHOICE_INDEX: Ae(),
2143
- COMPONENT_NAME_LEGACY_COMPATIBLE: Ae(),
2144
- NOT_FOUND_PARENT_SCOPE: Ae(),
2145
- IGNORE_OBJ_FLATTEN: Ae(),
2146
- NOTICE_DROP_ALLOW_COMPOSITION: Ae()
2147
- // 17
2148
- }, ss = {
2149
- [ie.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
2150
- [ie.NOT_SUPPORTED_PRESERVE]: "Not supported 'preserve'.",
2151
- [ie.NOT_SUPPORTED_FORMATTER]: "Not supported 'formatter'.",
2152
- [ie.NOT_SUPPORTED_PRESERVE_DIRECTIVE]: "Not supported 'preserveDirectiveContent'.",
2153
- [ie.NOT_SUPPORTED_GET_CHOICE_INDEX]: "Not supported 'getChoiceIndex'.",
2154
- [ie.COMPONENT_NAME_LEGACY_COMPATIBLE]: "Component name legacy compatible: '{name}' -> 'i18n'",
2155
- [ie.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
2156
- [ie.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
2157
- [ie.NOTICE_DROP_ALLOW_COMPOSITION]: "'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze"
2158
- };
2159
- function Bt(e, ...t) {
2160
- return wt(ss[e], ...t);
2161
- }
2162
- const Qn = x.__EXTEND_POINT__, re = Ut(Qn), K = {
2163
- // composer module errors
2164
- UNEXPECTED_RETURN_TYPE: Qn,
2165
- // legacy module errors
2166
- INVALID_ARGUMENT: re(),
2167
- // i18n module errors
2168
- MUST_BE_CALL_SETUP_TOP: re(),
2169
- NOT_INSTALLED: re(),
2170
- NOT_AVAILABLE_IN_LEGACY_MODE: re(),
2171
- // directive module errors
2172
- REQUIRED_VALUE: re(),
2173
- INVALID_VALUE: re(),
2174
- // vue-devtools errors
2175
- CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: re(),
2176
- NOT_INSTALLED_WITH_PROVIDE: re(),
2177
- // unexpected error
2178
- UNEXPECTED_ERROR: re(),
2179
- // not compatible legacy vue-i18n constructor
2180
- NOT_COMPATIBLE_LEGACY_VUE_I18N: re(),
2181
- // bridge support vue 2.x only
2182
- BRIDGE_SUPPORT_VUE_2_ONLY: re(),
2183
- // need to define `i18n` option in `allowComposition: true` and `useScope: 'local' at `useI18n``
2184
- MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION: re(),
2185
- // Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly
2186
- NOT_AVAILABLE_COMPOSITION_IN_LEGACY: re(),
2187
- // for enhancement
2188
- __EXTEND_POINT__: re()
2189
- // 40
2190
- };
2191
- function ke(e, ...t) {
2192
- return xe(e, null, process.env.NODE_ENV !== "production" ? { messages: ls, args: t } : void 0);
2193
- }
2194
- const ls = {
2195
- [K.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
2196
- [K.INVALID_ARGUMENT]: "Invalid argument",
2197
- [K.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
2198
- [K.NOT_INSTALLED]: "Need to install with `app.use` function",
2199
- [K.UNEXPECTED_ERROR]: "Unexpected error",
2200
- [K.NOT_AVAILABLE_IN_LEGACY_MODE]: "Not available in legacy mode",
2201
- [K.REQUIRED_VALUE]: "Required in value: {0}",
2202
- [K.INVALID_VALUE]: "Invalid value",
2203
- [K.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
2204
- [K.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
2205
- [K.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
2206
- [K.BRIDGE_SUPPORT_VUE_2_ONLY]: "vue-i18n-bridge support Vue 2.x only",
2207
- [K.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]: "Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",
2208
- [K.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
2209
- }, St = /* @__PURE__ */ Oe("__translateVNode"), Pt = /* @__PURE__ */ Oe("__datetimeParts"), Dt = /* @__PURE__ */ Oe("__numberParts"), Rt = /* @__PURE__ */ Oe("__enableEmitter"), Mt = /* @__PURE__ */ Oe("__disableEmitter"), os = Oe("__setPluralRules"), Zn = /* @__PURE__ */ Oe("__injectWithOption"), Ft = /* @__PURE__ */ Oe("__dispose");
2210
- function ut(e) {
2211
- if (!H(e))
2212
- return e;
2213
- for (const t in e)
2214
- if (pt(e, t))
2215
- if (!t.includes("."))
2216
- H(e[t]) && ut(e[t]);
2217
- else {
2218
- const n = t.split("."), a = n.length - 1;
2219
- let l = e, r = !1;
2220
- for (let o = 0; o < a; o++) {
2221
- if (n[o] in l || (l[n[o]] = {}), !H(l[n[o]])) {
2222
- process.env.NODE_ENV !== "production" && Se(Bt(ie.IGNORE_OBJ_FLATTEN, {
2223
- key: n[o]
2224
- })), r = !0;
2225
- break;
2226
- }
2227
- l = l[n[o]];
2228
- }
2229
- r || (l[n[a]] = e[t], delete e[t]), H(l[n[a]]) && ut(l[n[a]]);
2230
- }
2231
- return e;
2232
- }
2233
- function Gt(e, t) {
2234
- const { messages: n, __i18n: a, messageResolver: l, flatJson: r } = t, o = $(n) ? n : Q(a) ? {} : { [e]: {} };
2235
- if (Q(a) && a.forEach((i) => {
2236
- if ("locale" in i && "resource" in i) {
2237
- const { locale: c, resource: p } = i;
2238
- c ? (o[c] = o[c] || {}, Et(p, o[c])) : Et(p, o);
2239
- } else
2240
- C(i) && Et(JSON.parse(i), o);
2241
- }), l == null && r)
2242
- for (const i in o)
2243
- pt(o, i) && ut(o[i]);
2244
- return o;
2245
- }
2246
- function xn(e) {
2247
- return e.type;
2248
- }
2249
- function is(e, t, n) {
2250
- let a = H(t.messages) ? t.messages : {};
2251
- "__i18nGlobal" in n && (a = Gt(e.locale.value, {
2252
- messages: a,
2253
- __i18n: n.__i18nGlobal
2254
- }));
2255
- const l = Object.keys(a);
2256
- l.length && l.forEach((r) => {
2257
- e.mergeLocaleMessage(r, a[r]);
2258
- });
2259
- {
2260
- if (H(t.datetimeFormats)) {
2261
- const r = Object.keys(t.datetimeFormats);
2262
- r.length && r.forEach((o) => {
2263
- e.mergeDateTimeFormat(o, t.datetimeFormats[o]);
2264
- });
2265
- }
2266
- if (H(t.numberFormats)) {
2267
- const r = Object.keys(t.numberFormats);
2268
- r.length && r.forEach((o) => {
2269
- e.mergeNumberFormat(o, t.numberFormats[o]);
2270
- });
2271
- }
2272
- }
2273
- }
2274
- function bn(e) {
2275
- return ma(_a, null, e, 0);
2276
- }
2277
- const In = "__INTLIFY_META__", Tn = () => [], us = () => !1;
2278
- let Ln = 0;
2279
- function On(e) {
2280
- return (t, n, a, l) => e(n, a, $t() || void 0, l);
2281
- }
2282
- const cs = /* @__NO_SIDE_EFFECTS__ */ () => {
2283
- const e = $t();
2284
- let t = null;
2285
- return e && (t = xn(e)[In]) ? { [In]: t } : null;
2286
- };
2287
- function fs(e = {}, t) {
2288
- const { __root: n, __injectWithOption: a } = e, l = n === void 0, r = e.flatJson, o = Le ? ce : An;
2289
- let i = G(e.inheritLocale) ? e.inheritLocale : !0;
2290
- const c = o(
2291
- // prettier-ignore
2292
- n && i ? n.locale.value : C(e.locale) ? e.locale : it
2293
- ), p = o(
2294
- // prettier-ignore
2295
- n && i ? n.fallbackLocale.value : C(e.fallbackLocale) || Q(e.fallbackLocale) || $(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c.value
2296
- ), v = o(Gt(c.value, e)), I = o($(e.datetimeFormats) ? e.datetimeFormats : { [c.value]: {} }), g = o($(e.numberFormats) ? e.numberFormats : { [c.value]: {} });
2297
- let A = n ? n.missingWarn : G(e.missingWarn) || Qe(e.missingWarn) ? e.missingWarn : !0, D = n ? n.fallbackWarn : G(e.fallbackWarn) || Qe(e.fallbackWarn) ? e.fallbackWarn : !0, S = n ? n.fallbackRoot : G(e.fallbackRoot) ? e.fallbackRoot : !0, k = !!e.fallbackFormat, f = Y(e.missing) ? e.missing : null, _ = Y(e.missing) ? On(e.missing) : null, h = Y(e.postTranslation) ? e.postTranslation : null, E = n ? n.warnHtmlMessage : G(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, O = !!e.escapeParameter;
2298
- const T = n ? n.modifiers : $(e.modifiers) ? e.modifiers : {};
2299
- let y = e.pluralRules || n && n.pluralRules, b;
2300
- b = (() => {
2301
- l && fn(null);
2302
- const m = {
2303
- version: as,
2304
- locale: c.value,
2305
- fallbackLocale: p.value,
2306
- messages: v.value,
2307
- modifiers: T,
2308
- pluralRules: y,
2309
- missing: _ === null ? void 0 : _,
2310
- missingWarn: A,
2311
- fallbackWarn: D,
2312
- fallbackFormat: k,
2313
- unresolving: !0,
2314
- postTranslation: h === null ? void 0 : h,
2315
- warnHtmlMessage: E,
2316
- escapeParameter: O,
2317
- messageResolver: e.messageResolver,
2318
- messageCompiler: e.messageCompiler,
2319
- __meta: { framework: "vue" }
2320
- };
2321
- m.datetimeFormats = I.value, m.numberFormats = g.value, m.__datetimeFormatters = $(b) ? b.__datetimeFormatters : void 0, m.__numberFormatters = $(b) ? b.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (m.__v_emitter = $(b) ? b.__v_emitter : void 0);
2322
- const N = jr(m);
2323
- return l && fn(N), N;
2324
- })(), lt(b, c.value, p.value);
2325
- function X() {
2326
- return [
2327
- c.value,
2328
- p.value,
2329
- v.value,
2330
- I.value,
2331
- g.value
2332
- ];
2333
- }
2334
- const de = Ne({
2335
- get: () => c.value,
2336
- set: (m) => {
2337
- c.value = m, b.locale = c.value;
2338
- }
2339
- }), Z = Ne({
2340
- get: () => p.value,
2341
- set: (m) => {
2342
- p.value = m, b.fallbackLocale = p.value, lt(b, c.value, m);
2343
- }
2344
- }), oe = Ne(() => v.value), We = /* @__PURE__ */ Ne(() => I.value), ze = /* @__PURE__ */ Ne(() => g.value);
2345
- function pe() {
2346
- return Y(h) ? h : null;
2347
- }
2348
- function Be(m) {
2349
- h = m, b.postTranslation = m;
2350
- }
2351
- function et() {
2352
- return f;
2353
- }
2354
- function Ge(m) {
2355
- m !== null && (_ = On(m)), f = m, b.missing = _;
2356
- }
2357
- function tt(m, N) {
2358
- return m !== "translate" || !N.resolvedMessage;
2359
- }
2360
- const me = (m, N, V, j, Fe, mt) => {
2361
- X();
2362
- let Xe;
2363
- try {
2364
- process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, l || (b.fallbackContext = n ? Xr() : void 0), Xe = m(b);
2365
- } finally {
2366
- process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, l || (b.fallbackContext = void 0);
2367
- }
2368
- if (V !== "translate exists" && // for not `te` (e.g `t`)
2369
- z(Xe) && Xe === Nt || V === "translate exists" && !Xe) {
2370
- const [$e, sa] = N();
2371
- if (process.env.NODE_ENV !== "production" && n && C($e) && tt(V, sa) && (S && (ht(D, $e) || Hn(A, $e)) && Se(Bt(ie.FALLBACK_TO_ROOT, {
2372
- key: $e,
2373
- type: V
2374
- })), process.env.NODE_ENV !== "production")) {
2375
- const { __v_emitter: Kt } = b;
2376
- Kt && S && Kt.emit("fallback", {
2377
- type: V,
2378
- key: $e,
2379
- to: "global",
2380
- groupId: `${V}:${$e}`
2381
- });
2382
- }
2383
- return n && S ? j(n) : Fe($e);
2384
- } else {
2385
- if (mt(Xe))
2386
- return Xe;
2387
- throw ke(K.UNEXPECTED_RETURN_TYPE);
2388
- }
2389
- };
2390
- function Ye(...m) {
2391
- return me((N) => Reflect.apply(En, null, [N, ...m]), () => yt(...m), "translate", (N) => Reflect.apply(N.t, N, [...m]), (N) => N, (N) => C(N));
2392
- }
2393
- function nt(...m) {
2394
- const [N, V, j] = m;
2395
- if (j && !H(j))
2396
- throw ke(K.INVALID_ARGUMENT);
2397
- return Ye(N, V, ee({ resolvedMessage: !0 }, j || {}));
2398
- }
2399
- function Ke(...m) {
2400
- return me((N) => Reflect.apply(gn, null, [N, ...m]), () => At(...m), "datetime format", (N) => Reflect.apply(N.d, N, [...m]), () => gt, (N) => C(N));
2401
- }
2402
- function at(...m) {
2403
- return me((N) => Reflect.apply(Nn, null, [N, ...m]), () => kt(...m), "number format", (N) => Reflect.apply(N.n, N, [...m]), () => gt, (N) => C(N));
2404
- }
2405
- function rt(m) {
2406
- return m.map((N) => C(N) || z(N) || G(N) ? bn(String(N)) : N);
2407
- }
2408
- const De = {
2409
- normalize: rt,
2410
- interpolate: (m) => m,
2411
- type: "vnode"
2412
- };
2413
- function Re(...m) {
2414
- return me(
2415
- (N) => {
2416
- let V;
2417
- const j = N;
2418
- try {
2419
- j.processor = De, V = Reflect.apply(En, null, [j, ...m]);
2420
- } finally {
2421
- j.processor = null;
2422
- }
2423
- return V;
2424
- },
2425
- () => yt(...m),
2426
- "translate",
2427
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
2428
- (N) => N[St](...m),
2429
- (N) => [bn(N)],
2430
- (N) => Q(N)
2431
- );
2432
- }
2433
- function Ce(...m) {
2434
- return me(
2435
- (N) => Reflect.apply(Nn, null, [N, ...m]),
2436
- () => kt(...m),
2437
- "number format",
2438
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
2439
- (N) => N[Dt](...m),
2440
- Tn,
2441
- (N) => C(N) || Q(N)
2442
- );
2443
- }
2444
- function Me(...m) {
2445
- return me(
2446
- (N) => Reflect.apply(gn, null, [N, ...m]),
2447
- () => At(...m),
2448
- "datetime format",
2449
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
2450
- (N) => N[Pt](...m),
2451
- Tn,
2452
- (N) => C(N) || Q(N)
2453
- );
2454
- }
2455
- function st(m) {
2456
- y = m, b.pluralRules = y;
2457
- }
2458
- function u(m, N) {
2459
- return me(() => {
2460
- if (!m)
2461
- return !1;
2462
- const V = C(N) ? N : c.value, j = L(V), Fe = b.messageResolver(j, m);
2463
- return He(Fe) || ue(Fe) || C(Fe);
2464
- }, () => [m], "translate exists", (V) => Reflect.apply(V.te, V, [m, N]), us, (V) => G(V));
2465
- }
2466
- function s(m) {
2467
- let N = null;
2468
- const V = Mn(b, p.value, c.value);
2469
- for (let j = 0; j < V.length; j++) {
2470
- const Fe = v.value[V[j]] || {}, mt = b.messageResolver(Fe, m);
2471
- if (mt != null) {
2472
- N = mt;
2473
- break;
2474
- }
2475
- }
2476
- return N;
2477
- }
2478
- function d(m) {
2479
- const N = s(m);
2480
- return N ?? (n ? n.tm(m) || {} : {});
2481
- }
2482
- function L(m) {
2483
- return v.value[m] || {};
2484
- }
2485
- function F(m, N) {
2486
- if (r) {
2487
- const V = { [m]: N };
2488
- for (const j in V)
2489
- pt(V, j) && ut(V[j]);
2490
- N = V[m];
2491
- }
2492
- v.value[m] = N, b.messages = v.value;
2493
- }
2494
- function U(m, N) {
2495
- v.value[m] = v.value[m] || {};
2496
- const V = { [m]: N };
2497
- for (const j in V)
2498
- pt(V, j) && ut(V[j]);
2499
- N = V[m], Et(N, v.value[m]), b.messages = v.value;
2500
- }
2501
- function ge(m) {
2502
- return I.value[m] || {};
2503
- }
2504
- function be(m, N) {
2505
- I.value[m] = N, b.datetimeFormats = I.value, vn(b, m, N);
2506
- }
2507
- function ta(m, N) {
2508
- I.value[m] = ee(I.value[m] || {}, N), b.datetimeFormats = I.value, vn(b, m, N);
2509
- }
2510
- function na(m) {
2511
- return g.value[m] || {};
2512
- }
2513
- function aa(m, N) {
2514
- g.value[m] = N, b.numberFormats = g.value, hn(b, m, N);
2515
- }
2516
- function ra(m, N) {
2517
- g.value[m] = ee(g.value[m] || {}, N), b.numberFormats = g.value, hn(b, m, N);
2518
- }
2519
- Ln++, n && Le && (Xt(n.locale, (m) => {
2520
- i && (c.value = m, b.locale = m, lt(b, c.value, p.value));
2521
- }), Xt(n.fallbackLocale, (m) => {
2522
- i && (p.value = m, b.fallbackLocale = m, lt(b, c.value, p.value));
2523
- }));
2524
- const q = {
2525
- id: Ln,
2526
- locale: de,
2527
- fallbackLocale: Z,
2528
- get inheritLocale() {
2529
- return i;
2530
- },
2531
- set inheritLocale(m) {
2532
- i = m, m && n && (c.value = n.locale.value, p.value = n.fallbackLocale.value, lt(b, c.value, p.value));
2533
- },
2534
- get availableLocales() {
2535
- return Object.keys(v.value).sort();
2536
- },
2537
- messages: oe,
2538
- get modifiers() {
2539
- return T;
2540
- },
2541
- get pluralRules() {
2542
- return y || {};
2543
- },
2544
- get isGlobal() {
2545
- return l;
2546
- },
2547
- get missingWarn() {
2548
- return A;
2549
- },
2550
- set missingWarn(m) {
2551
- A = m, b.missingWarn = A;
2552
- },
2553
- get fallbackWarn() {
2554
- return D;
2555
- },
2556
- set fallbackWarn(m) {
2557
- D = m, b.fallbackWarn = D;
2558
- },
2559
- get fallbackRoot() {
2560
- return S;
2561
- },
2562
- set fallbackRoot(m) {
2563
- S = m;
2564
- },
2565
- get fallbackFormat() {
2566
- return k;
2567
- },
2568
- set fallbackFormat(m) {
2569
- k = m, b.fallbackFormat = k;
2570
- },
2571
- get warnHtmlMessage() {
2572
- return E;
2573
- },
2574
- set warnHtmlMessage(m) {
2575
- E = m, b.warnHtmlMessage = m;
2576
- },
2577
- get escapeParameter() {
2578
- return O;
2579
- },
2580
- set escapeParameter(m) {
2581
- O = m, b.escapeParameter = m;
2582
- },
2583
- t: Ye,
2584
- getLocaleMessage: L,
2585
- setLocaleMessage: F,
2586
- mergeLocaleMessage: U,
2587
- getPostTranslationHandler: pe,
2588
- setPostTranslationHandler: Be,
2589
- getMissingHandler: et,
2590
- setMissingHandler: Ge,
2591
- [os]: st
2592
- };
2593
- return q.datetimeFormats = We, q.numberFormats = ze, q.rt = nt, q.te = u, q.tm = d, q.d = Ke, q.n = at, q.getDateTimeFormat = ge, q.setDateTimeFormat = be, q.mergeDateTimeFormat = ta, q.getNumberFormat = na, q.setNumberFormat = aa, q.mergeNumberFormat = ra, q[Zn] = a, q[St] = Re, q[Pt] = Me, q[Dt] = Ce, process.env.NODE_ENV !== "production" && (q[Rt] = (m) => {
2594
- b.__v_emitter = m;
2595
- }, q[Mt] = () => {
2596
- b.__v_emitter = void 0;
2597
- }), q;
2598
- }
2599
- const Yt = {
2600
- tag: {
2601
- type: [String, Object]
2602
- },
2603
- locale: {
2604
- type: String
2605
- },
2606
- scope: {
2607
- type: String,
2608
- // NOTE: avoid https://github.com/microsoft/rushstack/issues/1050
2609
- validator: (e) => e === "parent" || e === "global",
2610
- default: "parent"
2611
- /* ComponentI18nScope */
2612
- },
2613
- i18n: {
2614
- type: Object
2615
- }
2616
- };
2617
- function ds({ slots: e }, t) {
2618
- return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((a, l) => [
2619
- ...a,
2620
- // prettier-ignore
2621
- ...l.type === Ee ? l.children : [l]
2622
- ], []) : t.reduce((n, a) => {
2623
- const l = e[a];
2624
- return l && (n[a] = l()), n;
2625
- }, {});
2626
- }
2627
- function zn(e) {
2628
- return Ee;
2629
- }
2630
- ee({
2631
- keypath: {
2632
- type: String,
2633
- required: !0
2634
- },
2635
- plural: {
2636
- type: [Number, String],
2637
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
2638
- validator: (e) => z(e) || !isNaN(e)
2639
- }
2640
- }, Yt);
2641
- function ms(e) {
2642
- return Q(e) && !C(e[0]);
2643
- }
2644
- function ea(e, t, n, a) {
2645
- const { slots: l, attrs: r } = t;
2646
- return () => {
2647
- const o = { part: !0 };
2648
- let i = {};
2649
- e.locale && (o.locale = e.locale), C(e.format) ? o.key = e.format : H(e.format) && (C(e.format.key) && (o.key = e.format.key), i = Object.keys(e.format).reduce((g, A) => n.includes(A) ? ee({}, g, { [A]: e.format[A] }) : g, {}));
2650
- const c = a(e.value, o, i);
2651
- let p = [o.key];
2652
- Q(c) ? p = c.map((g, A) => {
2653
- const D = l[g.type], S = D ? D({ [g.type]: g.value, index: A, parts: c }) : [g.value];
2654
- return ms(S) && (S[0].key = `${g.type}-${A}`), S;
2655
- }) : C(c) && (p = [c]);
2656
- const v = ee({}, r), I = C(e.tag) || H(e.tag) ? e.tag : zn();
2657
- return yn(I, v, p);
2658
- };
2659
- }
2660
- ee({
2661
- value: {
2662
- type: Number,
2663
- required: !0
2664
- },
2665
- format: {
2666
- type: [String, Object]
2667
- }
2668
- }, Yt);
2669
- ee({
2670
- value: {
2671
- type: [Number, Date],
2672
- required: !0
2673
- },
2674
- format: {
2675
- type: [String, Object]
2676
- }
2677
- }, Yt);
2678
- function Cn(e, t) {
2679
- }
2680
- const _s = /* @__PURE__ */ Oe("global-vue-i18n");
2681
- function bt(e = {}) {
2682
- const t = $t();
2683
- if (t == null)
2684
- throw ke(K.MUST_BE_CALL_SETUP_TOP);
2685
- if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
2686
- throw ke(K.NOT_INSTALLED);
2687
- const n = Es(t), a = gs(n), l = xn(t), r = ps(e, l);
2688
- if (__VUE_I18N_LEGACY_API__ && n.mode === "legacy" && !e.__useComponent) {
2689
- if (!n.allowComposition)
2690
- throw ke(K.NOT_AVAILABLE_IN_LEGACY_MODE);
2691
- return bs(t, r, a, e);
2692
- }
2693
- if (r === "global")
2694
- return is(a, e, l), a;
2695
- if (r === "parent") {
2696
- let c = vs(n, t, e.__useComponent);
2697
- return c == null && (process.env.NODE_ENV !== "production" && Se(Bt(ie.NOT_FOUND_PARENT_SCOPE)), c = a), c;
2698
- }
2699
- const o = n;
2700
- let i = o.__getInstance(t);
2701
- if (i == null) {
2702
- const c = ee({}, e);
2703
- "__i18n" in l && (c.__i18n = l.__i18n), a && (c.__root = a), i = fs(c), o.__composerExtend && (i[Ft] = o.__composerExtend(i)), hs(o, t, i), o.__setInstance(t, i);
2704
- }
2705
- return i;
2706
- }
2707
- function Es(e) {
2708
- {
2709
- const t = ua(e.isCE ? _s : e.appContext.app.__VUE_I18N_SYMBOL__);
2710
- if (!t)
2711
- throw ke(e.isCE ? K.NOT_INSTALLED_WITH_PROVIDE : K.UNEXPECTED_ERROR);
2712
- return t;
2713
- }
2714
- }
2715
- function ps(e, t) {
2716
- return vt(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
2717
- }
2718
- function gs(e) {
2719
- return e.mode === "composition" ? e.global : e.global.__composer;
2720
- }
2721
- function vs(e, t, n = !1) {
2722
- let a = null;
2723
- const l = t.root;
2724
- let r = Ns(t, n);
2725
- for (; r != null; ) {
2726
- const o = e;
2727
- if (e.mode === "composition")
2728
- a = o.__getInstance(r);
2729
- else if (__VUE_I18N_LEGACY_API__) {
2730
- const i = o.__getInstance(r);
2731
- i != null && (a = i.__composer, n && a && !a[Zn] && (a = null));
2732
- }
2733
- if (a != null || l === r)
2734
- break;
2735
- r = r.parent;
2736
- }
2737
- return a;
2738
- }
2739
- function Ns(e, t = !1) {
2740
- return e == null ? null : t && e.vnode.ctx || e.parent;
2741
- }
2742
- function hs(e, t, n) {
2743
- let a = null;
2744
- ca(() => {
2745
- if (process.env.NODE_ENV !== "production" && t.vnode.el) {
2746
- t.vnode.el.__VUE_I18N__ = n, a = $a();
2747
- const l = n;
2748
- l[Rt] && l[Rt](a), a.on("*", Cn);
2749
- }
2750
- }, t), fa(() => {
2751
- const l = n;
2752
- process.env.NODE_ENV !== "production" && t.vnode.el && t.vnode.el.__VUE_I18N__ && (a && a.off("*", Cn), l[Mt] && l[Mt](), delete t.vnode.el.__VUE_I18N__), e.__deleteInstance(t);
2753
- const r = l[Ft];
2754
- r && (r(), delete l[Ft]);
2755
- }, t);
2756
- }
2757
- function bs(e, t, n, a = {}) {
2758
- const l = t === "local", r = An(null);
2759
- if (l && e.proxy && !(e.proxy.$options.i18n || e.proxy.$options.__i18n))
2760
- throw ke(K.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);
2761
- const o = G(a.inheritLocale) ? a.inheritLocale : !C(a.locale), i = ce(
2762
- // prettier-ignore
2763
- !l || o ? n.locale.value : C(a.locale) ? a.locale : it
2764
- ), c = ce(
2765
- // prettier-ignore
2766
- !l || o ? n.fallbackLocale.value : C(a.fallbackLocale) || Q(a.fallbackLocale) || $(a.fallbackLocale) || a.fallbackLocale === !1 ? a.fallbackLocale : i.value
2767
- ), p = ce(Gt(i.value, a)), v = ce($(a.datetimeFormats) ? a.datetimeFormats : { [i.value]: {} }), I = ce($(a.numberFormats) ? a.numberFormats : { [i.value]: {} }), g = l ? n.missingWarn : G(a.missingWarn) || Qe(a.missingWarn) ? a.missingWarn : !0, A = l ? n.fallbackWarn : G(a.fallbackWarn) || Qe(a.fallbackWarn) ? a.fallbackWarn : !0, D = l ? n.fallbackRoot : G(a.fallbackRoot) ? a.fallbackRoot : !0, S = !!a.fallbackFormat, k = Y(a.missing) ? a.missing : null, f = Y(a.postTranslation) ? a.postTranslation : null, _ = l ? n.warnHtmlMessage : G(a.warnHtmlMessage) ? a.warnHtmlMessage : !0, h = !!a.escapeParameter, E = l ? n.modifiers : $(a.modifiers) ? a.modifiers : {}, O = a.pluralRules || l && n.pluralRules;
2768
- function T() {
2769
- return [
2770
- i.value,
2771
- c.value,
2772
- p.value,
2773
- v.value,
2774
- I.value
2775
- ];
2776
- }
2777
- const y = Ne({
2778
- get: () => r.value ? r.value.locale.value : i.value,
2779
- set: (s) => {
2780
- r.value && (r.value.locale.value = s), i.value = s;
2781
- }
2782
- }), b = Ne({
2783
- get: () => r.value ? r.value.fallbackLocale.value : c.value,
2784
- set: (s) => {
2785
- r.value && (r.value.fallbackLocale.value = s), c.value = s;
2786
- }
2787
- }), W = Ne(() => r.value ? r.value.messages.value : p.value), X = Ne(() => v.value), de = Ne(() => I.value);
2788
- function Z() {
2789
- return r.value ? r.value.getPostTranslationHandler() : f;
2790
- }
2791
- function oe(s) {
2792
- r.value && r.value.setPostTranslationHandler(s);
2793
- }
2794
- function We() {
2795
- return r.value ? r.value.getMissingHandler() : k;
2796
- }
2797
- function ze(s) {
2798
- r.value && r.value.setMissingHandler(s);
2799
- }
2800
- function pe(s) {
2801
- return T(), s();
2802
- }
2803
- function Be(...s) {
2804
- return r.value ? pe(() => Reflect.apply(r.value.t, null, [...s])) : pe(() => "");
2805
- }
2806
- function et(...s) {
2807
- return r.value ? Reflect.apply(r.value.rt, null, [...s]) : "";
2808
- }
2809
- function Ge(...s) {
2810
- return r.value ? pe(() => Reflect.apply(r.value.d, null, [...s])) : pe(() => "");
2811
- }
2812
- function tt(...s) {
2813
- return r.value ? pe(() => Reflect.apply(r.value.n, null, [...s])) : pe(() => "");
2814
- }
2815
- function me(s) {
2816
- return r.value ? r.value.tm(s) : {};
2817
- }
2818
- function Ye(s, d) {
2819
- return r.value ? r.value.te(s, d) : !1;
2820
- }
2821
- function nt(s) {
2822
- return r.value ? r.value.getLocaleMessage(s) : {};
2823
- }
2824
- function Ke(s, d) {
2825
- r.value && (r.value.setLocaleMessage(s, d), p.value[s] = d);
2826
- }
2827
- function at(s, d) {
2828
- r.value && r.value.mergeLocaleMessage(s, d);
2829
- }
2830
- function rt(s) {
2831
- return r.value ? r.value.getDateTimeFormat(s) : {};
2832
- }
2833
- function dt(s, d) {
2834
- r.value && (r.value.setDateTimeFormat(s, d), v.value[s] = d);
2835
- }
2836
- function De(s, d) {
2837
- r.value && r.value.mergeDateTimeFormat(s, d);
2838
- }
2839
- function Re(s) {
2840
- return r.value ? r.value.getNumberFormat(s) : {};
2841
- }
2842
- function Ce(s, d) {
2843
- r.value && (r.value.setNumberFormat(s, d), I.value[s] = d);
2844
- }
2845
- function Me(s, d) {
2846
- r.value && r.value.mergeNumberFormat(s, d);
2847
- }
2848
- const st = {
2849
- get id() {
2850
- return r.value ? r.value.id : -1;
2851
- },
2852
- locale: y,
2853
- fallbackLocale: b,
2854
- messages: W,
2855
- datetimeFormats: X,
2856
- numberFormats: de,
2857
- get inheritLocale() {
2858
- return r.value ? r.value.inheritLocale : o;
2859
- },
2860
- set inheritLocale(s) {
2861
- r.value && (r.value.inheritLocale = s);
2862
- },
2863
- get availableLocales() {
2864
- return r.value ? r.value.availableLocales : Object.keys(p.value);
2865
- },
2866
- get modifiers() {
2867
- return r.value ? r.value.modifiers : E;
2868
- },
2869
- get pluralRules() {
2870
- return r.value ? r.value.pluralRules : O;
2871
- },
2872
- get isGlobal() {
2873
- return r.value ? r.value.isGlobal : !1;
2874
- },
2875
- get missingWarn() {
2876
- return r.value ? r.value.missingWarn : g;
2877
- },
2878
- set missingWarn(s) {
2879
- r.value && (r.value.missingWarn = s);
2880
- },
2881
- get fallbackWarn() {
2882
- return r.value ? r.value.fallbackWarn : A;
2883
- },
2884
- set fallbackWarn(s) {
2885
- r.value && (r.value.missingWarn = s);
2886
- },
2887
- get fallbackRoot() {
2888
- return r.value ? r.value.fallbackRoot : D;
2889
- },
2890
- set fallbackRoot(s) {
2891
- r.value && (r.value.fallbackRoot = s);
2892
- },
2893
- get fallbackFormat() {
2894
- return r.value ? r.value.fallbackFormat : S;
2895
- },
2896
- set fallbackFormat(s) {
2897
- r.value && (r.value.fallbackFormat = s);
2898
- },
2899
- get warnHtmlMessage() {
2900
- return r.value ? r.value.warnHtmlMessage : _;
2901
- },
2902
- set warnHtmlMessage(s) {
2903
- r.value && (r.value.warnHtmlMessage = s);
2904
- },
2905
- get escapeParameter() {
2906
- return r.value ? r.value.escapeParameter : h;
2907
- },
2908
- set escapeParameter(s) {
2909
- r.value && (r.value.escapeParameter = s);
2910
- },
2911
- t: Be,
2912
- getPostTranslationHandler: Z,
2913
- setPostTranslationHandler: oe,
2914
- getMissingHandler: We,
2915
- setMissingHandler: ze,
2916
- rt: et,
2917
- d: Ge,
2918
- n: tt,
2919
- tm: me,
2920
- te: Ye,
2921
- getLocaleMessage: nt,
2922
- setLocaleMessage: Ke,
2923
- mergeLocaleMessage: at,
2924
- getDateTimeFormat: rt,
2925
- setDateTimeFormat: dt,
2926
- mergeDateTimeFormat: De,
2927
- getNumberFormat: Re,
2928
- setNumberFormat: Ce,
2929
- mergeNumberFormat: Me
2930
- };
2931
- function u(s) {
2932
- s.locale.value = i.value, s.fallbackLocale.value = c.value, Object.keys(p.value).forEach((d) => {
2933
- s.mergeLocaleMessage(d, p.value[d]);
2934
- }), Object.keys(v.value).forEach((d) => {
2935
- s.mergeDateTimeFormat(d, v.value[d]);
2936
- }), Object.keys(I.value).forEach((d) => {
2937
- s.mergeNumberFormat(d, I.value[d]);
2938
- }), s.escapeParameter = h, s.fallbackFormat = S, s.fallbackRoot = D, s.fallbackWarn = A, s.missingWarn = g, s.warnHtmlMessage = _;
2939
- }
2940
- return da(() => {
2941
- if (e.proxy == null || e.proxy.$i18n == null)
2942
- throw ke(K.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);
2943
- const s = r.value = e.proxy.$i18n.__composer;
2944
- t === "global" ? (i.value = s.locale.value, c.value = s.fallbackLocale.value, p.value = s.messages.value, v.value = s.datetimeFormats.value, I.value = s.numberFormats.value) : l && u(s);
2945
- }), st;
2946
- }
2947
- rs();
2948
- __INTLIFY_JIT_COMPILATION__ ? cn(Zr) : cn(Qr);
2949
- Br(Ir);
2950
- Gr(Mn);
2951
- if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
2952
- const e = Te();
2953
- e.__INTLIFY__ = !0, Pr(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
2954
- }
2955
- process.env.NODE_ENV;
2956
- function ft(e) {
2957
- const { t } = bt(), n = ce(null);
2958
- function a(i) {
2959
- const c = e.value;
2960
- c !== null && (i !== null ? c.setCustomValidity(i) : c.setCustomValidity(""), n.value = l(c));
86
+ const dt = /* @__PURE__ */ c(F, [["render", z]]);
87
+ function I(e) {
88
+ const { t } = N(), r = C(null);
89
+ function d(n) {
90
+ const p = e.value;
91
+ p !== null && (n !== null ? p.setCustomValidity(n) : p.setCustomValidity(""), r.value = v(p));
2961
92
  }
2962
- function l(i) {
2963
- if (i.validity.valueMissing)
93
+ function v(n) {
94
+ if (n.validity.valueMissing)
2964
95
  return t("validator.error.value_missing");
2965
- if (i.validity.tooShort)
2966
- return t("validator.error.too_short", [i.minLength]);
2967
- if (i.validity.tooLong)
2968
- return t("validator.error.too_long", [i.maxLength]);
2969
- if (i.validity.rangeUnderflow)
2970
- return t("validator.error.range_underflow", [i.min]);
2971
- if (i.validity.rangeOverflow)
2972
- return t("validator.error.range_overflow", [i.max]);
2973
- if (i.validity.typeMismatch) {
2974
- if (i.type === "email")
96
+ if (n.validity.tooShort)
97
+ return t("validator.error.too_short", [n.minLength]);
98
+ if (n.validity.tooLong)
99
+ return t("validator.error.too_long", [n.maxLength]);
100
+ if (n.validity.rangeUnderflow)
101
+ return t("validator.error.range_underflow", [n.min]);
102
+ if (n.validity.rangeOverflow)
103
+ return t("validator.error.range_overflow", [n.max]);
104
+ if (n.validity.typeMismatch) {
105
+ if (n.type === "email")
2975
106
  return t("validator.error.type_mismatch.email");
2976
- if (i.type === "url")
107
+ if (n.type === "url")
2977
108
  return t("validator.error.type_mismatch.url");
2978
109
  }
2979
- if (i.validity.badInput) {
2980
- if (i.type === "number")
110
+ if (n.validity.badInput) {
111
+ if (n.type === "number")
2981
112
  return t("validator.error.bad_input.number");
2982
- if (i.type === "date")
113
+ if (n.type === "date")
2983
114
  return t("validator.error.bad_input.date");
2984
115
  }
2985
- if (i.validity.patternMismatch)
116
+ if (n.validity.patternMismatch)
2986
117
  return t("validator.error.pattern_mismatch");
2987
- if (i.validity.stepMismatch) {
2988
- const c = Math.floor(Number(i.value) / Number(i.step)) * Number(i.step), p = Math.ceil(Number(i.value) / Number(i.step)) * Number(i.step);
2989
- return t("validator.error.step_mismatch", [c, p]);
118
+ if (n.validity.stepMismatch) {
119
+ const p = Math.floor(Number(n.value) / Number(n.step)) * Number(n.step), $ = Math.ceil(Number(n.value) / Number(n.step)) * Number(n.step);
120
+ return t("validator.error.step_mismatch", [p, $]);
2990
121
  }
2991
- return i.validity.customError ? i.validationMessage : null;
122
+ return n.validity.customError ? n.validationMessage : null;
2992
123
  }
2993
- function r(i) {
2994
- i.target !== null && (n.value = l(i.target));
124
+ function f(n) {
125
+ n.target !== null && (r.value = v(n.target));
2995
126
  }
2996
127
  function o() {
2997
- return n.value;
128
+ return r.value;
2998
129
  }
2999
130
  return {
3000
- onInvalid: r,
131
+ onInvalid: f,
3001
132
  getInvalidMessage: o,
3002
- setCustomError: a
133
+ setCustomError: d
3003
134
  };
3004
135
  }
3005
- const Is = ae({
136
+ const j = m({
3006
137
  name: "BsInput",
3007
138
  props: {
3008
139
  /**
@@ -3043,10 +174,10 @@ const Is = ae({
3043
174
  },
3044
175
  emits: ["update:modelValue"],
3045
176
  setup() {
3046
- const e = ce(null);
177
+ const e = C(null);
3047
178
  return {
3048
179
  inputRef: e,
3049
- validator: ft(e)
180
+ validator: I(e)
3050
181
  };
3051
182
  },
3052
183
  methods: {
@@ -3074,16 +205,16 @@ const Is = ae({
3074
205
  this.validatorEnabled && this.validator.onInvalid(e);
3075
206
  }
3076
207
  }
3077
- }), Ts = ["for", "textContent"], Ls = ["id", "value", "aria-describedby"], Os = ["textContent"], Cs = ["id", "textContent"];
3078
- function ys(e, t, n, a, l, r) {
3079
- return R(), M(Ee, null, [
3080
- e.label !== void 0 ? (R(), M("label", {
208
+ }), U = ["for", "textContent"], G = ["id", "value", "aria-describedby"], J = ["textContent"], K = ["id", "textContent"];
209
+ function Q(e, t, r, d, v, f) {
210
+ return a(), i(b, null, [
211
+ e.label !== void 0 ? (a(), i("label", {
3081
212
  key: 0,
3082
213
  for: e.id,
3083
214
  class: "form-label",
3084
- textContent: B(e.label)
3085
- }, null, 8, Ts)) : J("", !0),
3086
- w("input", ct({
215
+ textContent: l(e.label)
216
+ }, null, 8, U)) : u("", !0),
217
+ s("input", k({
3087
218
  id: e.id,
3088
219
  ref: "inputRef",
3089
220
  value: e.modelValue,
@@ -3092,21 +223,21 @@ function ys(e, t, n, a, l, r) {
3092
223
  "aria-describedby": e.hint !== void 0 ? e.getHintId() : null,
3093
224
  onInput: t[0] || (t[0] = (...o) => e.onInput && e.onInput(...o)),
3094
225
  onInvalid: t[1] || (t[1] = (...o) => e.onInvalid && e.onInvalid(...o))
3095
- }), null, 16, Ls),
3096
- e.validatorEnabled && e.validator.getInvalidMessage() !== null ? (R(), M("div", {
226
+ }), null, 16, G),
227
+ e.validatorEnabled && e.validator.getInvalidMessage() !== null ? (a(), i("div", {
3097
228
  key: 1,
3098
229
  class: "invalid-feedback",
3099
- textContent: B(e.validator.getInvalidMessage())
3100
- }, null, 8, Os)) : J("", !0),
3101
- e.hint !== void 0 ? (R(), M("div", {
230
+ textContent: l(e.validator.getInvalidMessage())
231
+ }, null, 8, J)) : u("", !0),
232
+ e.hint !== void 0 ? (a(), i("div", {
3102
233
  key: 2,
3103
234
  id: e.getHintId(),
3104
235
  class: "form-text",
3105
- textContent: B(e.hint)
3106
- }, null, 8, Cs)) : J("", !0)
236
+ textContent: l(e.hint)
237
+ }, null, 8, K)) : u("", !0)
3107
238
  ], 64);
3108
239
  }
3109
- const Bl = /* @__PURE__ */ fe(Is, [["render", ys]]), As = ae({
240
+ const ut = /* @__PURE__ */ c(j, [["render", Q]]), W = m({
3110
241
  name: "BsCheckbox",
3111
242
  props: {
3112
243
  /**
@@ -3161,10 +292,10 @@ const Bl = /* @__PURE__ */ fe(Is, [["render", ys]]), As = ae({
3161
292
  },
3162
293
  emits: ["update:modelValue"],
3163
294
  setup() {
3164
- const e = ce(null);
295
+ const e = C(null);
3165
296
  return {
3166
297
  inputRef: e,
3167
- validator: ft(e)
298
+ validator: I(e)
3168
299
  };
3169
300
  },
3170
301
  computed: {
@@ -3188,12 +319,12 @@ const Bl = /* @__PURE__ */ fe(Is, [["render", ys]]), As = ae({
3188
319
  * @param event
3189
320
  */
3190
321
  onInput(e) {
3191
- const n = e.target.checked;
322
+ const r = e.target.checked;
3192
323
  if (this.modelValue instanceof Array) {
3193
- const a = [...this.modelValue];
3194
- n ? a.push(this.value) : a.splice(a.indexOf(this.value), 1), this.$emit("update:modelValue", a);
324
+ const d = [...this.modelValue];
325
+ r ? d.push(this.value) : d.splice(d.indexOf(this.value), 1), this.$emit("update:modelValue", d);
3195
326
  } else
3196
- this.$emit("update:modelValue", n);
327
+ this.$emit("update:modelValue", r);
3197
328
  },
3198
329
  /**
3199
330
  * On invalid event
@@ -3204,12 +335,12 @@ const Bl = /* @__PURE__ */ fe(Is, [["render", ys]]), As = ae({
3204
335
  this.validatorEnabled && this.validator.onInvalid(e);
3205
336
  }
3206
337
  }
3207
- }), ks = ["id", "value", "checked", "aria-describedby"], Ss = ["for", "textContent"], Ps = ["textContent"], Ds = ["id", "textContent"];
3208
- function Rs(e, t, n, a, l, r) {
3209
- return R(), M("div", {
3210
- class: se(["form-check", e.classContainer])
338
+ }), X = ["id", "value", "checked", "aria-describedby"], Y = ["for", "textContent"], Z = ["textContent"], x = ["id", "textContent"];
339
+ function ee(e, t, r, d, v, f) {
340
+ return a(), i("div", {
341
+ class: h(["form-check", e.classContainer])
3211
342
  }, [
3212
- w("input", ct({
343
+ s("input", k({
3213
344
  id: e.id,
3214
345
  ref: "inputRef",
3215
346
  value: e.modelValue
@@ -3220,27 +351,27 @@ function Rs(e, t, n, a, l, r) {
3220
351
  "aria-describedby": e.hint !== void 0 ? e.getHintId() : null,
3221
352
  onInput: t[0] || (t[0] = (...o) => e.onInput && e.onInput(...o)),
3222
353
  onInvalid: t[1] || (t[1] = (...o) => e.onInvalid && e.onInvalid(...o))
3223
- }), null, 16, ks),
3224
- e.label !== void 0 ? (R(), M("label", {
354
+ }), null, 16, X),
355
+ e.label !== void 0 ? (a(), i("label", {
3225
356
  key: 0,
3226
357
  for: e.id,
3227
358
  class: "form-check-label",
3228
- textContent: B(e.label)
3229
- }, null, 8, Ss)) : J("", !0),
3230
- e.validatorEnabled && e.validator.getInvalidMessage() !== null ? (R(), M("div", {
359
+ textContent: l(e.label)
360
+ }, null, 8, Y)) : u("", !0),
361
+ e.validatorEnabled && e.validator.getInvalidMessage() !== null ? (a(), i("div", {
3231
362
  key: 1,
3232
363
  class: "invalid-feedback",
3233
- textContent: B(e.validator.getInvalidMessage())
3234
- }, null, 8, Ps)) : J("", !0),
3235
- e.hint !== void 0 ? (R(), M("div", {
364
+ textContent: l(e.validator.getInvalidMessage())
365
+ }, null, 8, Z)) : u("", !0),
366
+ e.hint !== void 0 ? (a(), i("div", {
3236
367
  key: 2,
3237
368
  id: e.getHintId(),
3238
369
  class: "form-text",
3239
- textContent: B(e.hint)
3240
- }, null, 8, Ds)) : J("", !0)
370
+ textContent: l(e.hint)
371
+ }, null, 8, x)) : u("", !0)
3241
372
  ], 2);
3242
373
  }
3243
- const Gl = /* @__PURE__ */ fe(As, [["render", Rs]]), Ms = ae({
374
+ const vt = /* @__PURE__ */ c(W, [["render", ee]]), te = m({
3244
375
  name: "BsTextarea",
3245
376
  props: {
3246
377
  /**
@@ -3281,10 +412,10 @@ const Gl = /* @__PURE__ */ fe(As, [["render", Rs]]), Ms = ae({
3281
412
  },
3282
413
  emits: ["update:modelValue"],
3283
414
  setup() {
3284
- const e = ce(null);
415
+ const e = C(null);
3285
416
  return {
3286
417
  inputRef: e,
3287
- validator: ft(e)
418
+ validator: I(e)
3288
419
  };
3289
420
  },
3290
421
  methods: {
@@ -3312,16 +443,16 @@ const Gl = /* @__PURE__ */ fe(As, [["render", Rs]]), Ms = ae({
3312
443
  this.validatorEnabled && this.validator.onInvalid(e);
3313
444
  }
3314
445
  }
3315
- }), Fs = ["for", "textContent"], $s = ["id", "value", "aria-describedby"], ws = ["textContent"], Us = ["id", "textContent"];
3316
- function Vs(e, t, n, a, l, r) {
3317
- return R(), M(Ee, null, [
3318
- e.label !== void 0 ? (R(), M("label", {
446
+ }), ne = ["for", "textContent"], ae = ["id", "value", "aria-describedby"], ie = ["textContent"], oe = ["id", "textContent"];
447
+ function se(e, t, r, d, v, f) {
448
+ return a(), i(b, null, [
449
+ e.label !== void 0 ? (a(), i("label", {
3319
450
  key: 0,
3320
451
  for: e.id,
3321
452
  class: "form-label",
3322
- textContent: B(e.label)
3323
- }, null, 8, Fs)) : J("", !0),
3324
- w("textarea", ct({
453
+ textContent: l(e.label)
454
+ }, null, 8, ne)) : u("", !0),
455
+ s("textarea", k({
3325
456
  id: e.id,
3326
457
  ref: "inputRef",
3327
458
  value: e.modelValue
@@ -3330,21 +461,21 @@ function Vs(e, t, n, a, l, r) {
3330
461
  "aria-describedby": e.hint !== void 0 ? e.getHintId() : null,
3331
462
  onInput: t[0] || (t[0] = (...o) => e.onInput && e.onInput(...o)),
3332
463
  onInvalid: t[1] || (t[1] = (...o) => e.onInvalid && e.onInvalid(...o))
3333
- }), null, 16, $s),
3334
- e.validatorEnabled && e.validator.getInvalidMessage() !== null ? (R(), M("div", {
464
+ }), null, 16, ae),
465
+ e.validatorEnabled && e.validator.getInvalidMessage() !== null ? (a(), i("div", {
3335
466
  key: 1,
3336
467
  class: "invalid-feedback",
3337
- textContent: B(e.validator.getInvalidMessage())
3338
- }, null, 8, ws)) : J("", !0),
3339
- e.hint !== void 0 ? (R(), M("div", {
468
+ textContent: l(e.validator.getInvalidMessage())
469
+ }, null, 8, ie)) : u("", !0),
470
+ e.hint !== void 0 ? (a(), i("div", {
3340
471
  key: 2,
3341
472
  id: e.getHintId(),
3342
473
  class: "form-text",
3343
- textContent: B(e.hint)
3344
- }, null, 8, Us)) : J("", !0)
474
+ textContent: l(e.hint)
475
+ }, null, 8, oe)) : u("", !0)
3345
476
  ], 64);
3346
477
  }
3347
- const Yl = /* @__PURE__ */ fe(Ms, [["render", Vs]]), Hs = ae({
478
+ const ht = /* @__PURE__ */ c(te, [["render", se]]), le = m({
3348
479
  name: "BsPaginator",
3349
480
  props: {
3350
481
  /**
@@ -3421,8 +552,8 @@ const Yl = /* @__PURE__ */ fe(Ms, [["render", Vs]]), Hs = ae({
3421
552
  */
3422
553
  getVisiblePages() {
3423
554
  const e = [], t = this.getPageRange();
3424
- for (let n = t.beginPage; n <= t.endPage; n += 1)
3425
- e.push(n + 1);
555
+ for (let r = t.beginPage; r <= t.endPage; r += 1)
556
+ e.push(r + 1);
3426
557
  return e;
3427
558
  },
3428
559
  /**
@@ -3453,62 +584,62 @@ const Yl = /* @__PURE__ */ fe(Ms, [["render", Vs]]), Hs = ae({
3453
584
  };
3454
585
  }
3455
586
  }
3456
- }), Ws = { class: "pagination" }, Bs = ["textContent"], Gs = ["textContent"], Ys = ["onClick", "textContent"], Ks = ["textContent"], Xs = ["textContent"];
3457
- function js(e, t, n, a, l, r) {
3458
- return R(), M("nav", null, [
3459
- w("ul", Ws, [
3460
- w("li", {
3461
- class: se(["page-item page-item-first", { disabled: e.isPageActive(1) }])
587
+ }), re = { class: "pagination" }, de = ["textContent"], ue = ["textContent"], ve = ["onClick", "textContent"], he = ["textContent"], fe = ["textContent"];
588
+ function pe(e, t, r, d, v, f) {
589
+ return a(), i("nav", null, [
590
+ s("ul", re, [
591
+ s("li", {
592
+ class: h(["page-item page-item-first", { disabled: e.isPageActive(1) }])
3462
593
  }, [
3463
- w("div", {
594
+ s("div", {
3464
595
  class: "page-link",
3465
596
  onClick: t[0] || (t[0] = (o) => e.onPageClick(1)),
3466
- textContent: B(e.firstPageLabel)
3467
- }, null, 8, Bs)
597
+ textContent: l(e.firstPageLabel)
598
+ }, null, 8, de)
3468
599
  ], 2),
3469
- w("li", {
3470
- class: se(["page-item page-item-previous", { disabled: e.isPageActive(1) }])
600
+ s("li", {
601
+ class: h(["page-item page-item-previous", { disabled: e.isPageActive(1) }])
3471
602
  }, [
3472
- w("div", {
603
+ s("div", {
3473
604
  class: "page-link",
3474
605
  onClick: t[1] || (t[1] = (o) => e.onPageClick(e.currentPage - 1)),
3475
- textContent: B(e.previousPageLabel)
3476
- }, null, 8, Gs)
606
+ textContent: l(e.previousPageLabel)
607
+ }, null, 8, ue)
3477
608
  ], 2),
3478
- (R(!0), M(Ee, null, Je(e.getVisiblePages(), (o, i) => (R(), M("li", {
3479
- key: i,
3480
- class: se(["page-item page-item-number", {
609
+ (a(!0), i(b, null, y(e.getVisiblePages(), (o, n) => (a(), i("li", {
610
+ key: n,
611
+ class: h(["page-item page-item-number", {
3481
612
  active: e.isPageActive(o)
3482
613
  }])
3483
614
  }, [
3484
- w("div", {
615
+ s("div", {
3485
616
  class: "page-link",
3486
- onClick: (c) => e.onPageClick(o),
3487
- textContent: B(o)
3488
- }, null, 8, Ys)
617
+ onClick: (p) => e.onPageClick(o),
618
+ textContent: l(o)
619
+ }, null, 8, ve)
3489
620
  ], 2))), 128)),
3490
- w("li", {
3491
- class: se(["page-item page-item-next", { disabled: e.isPageActive(e.getPageCount()) }])
621
+ s("li", {
622
+ class: h(["page-item page-item-next", { disabled: e.isPageActive(e.getPageCount()) }])
3492
623
  }, [
3493
- w("div", {
624
+ s("div", {
3494
625
  class: "page-link",
3495
626
  onClick: t[2] || (t[2] = (o) => e.onPageClick(e.currentPage + 1)),
3496
- textContent: B(e.nextPageLabel)
3497
- }, null, 8, Ks)
627
+ textContent: l(e.nextPageLabel)
628
+ }, null, 8, he)
3498
629
  ], 2),
3499
- w("li", {
3500
- class: se(["page-item page-item-last", { disabled: e.isPageActive(e.getPageCount()) }])
630
+ s("li", {
631
+ class: h(["page-item page-item-last", { disabled: e.isPageActive(e.getPageCount()) }])
3501
632
  }, [
3502
- w("div", {
633
+ s("div", {
3503
634
  class: "page-link",
3504
635
  onClick: t[3] || (t[3] = (o) => e.onPageClick(e.getPageCount())),
3505
- textContent: B(e.lastPageLabel)
3506
- }, null, 8, Xs)
636
+ textContent: l(e.lastPageLabel)
637
+ }, null, 8, fe)
3507
638
  ], 2)
3508
639
  ])
3509
640
  ]);
3510
641
  }
3511
- const Kl = /* @__PURE__ */ fe(Hs, [["render", js], ["__scopeId", "data-v-ff85ae67"]]), qs = ae({
642
+ const ft = /* @__PURE__ */ c(le, [["render", pe], ["__scopeId", "data-v-ff85ae67"]]), me = m({
3512
643
  name: "BsTable",
3513
644
  props: {
3514
645
  /**
@@ -3611,86 +742,86 @@ const Kl = /* @__PURE__ */ fe(Hs, [["render", js], ["__scopeId", "data-v-ff85ae6
3611
742
  this.isSortableField(e) && this.$emit("orderChanged", { sortDesc: this.calcSortDesc(e.key), orderBy: e.key });
3612
743
  }
3613
744
  }
3614
- }), Js = (e) => (ga("data-v-e8d4b4dc"), e = e(), va(), e), Qs = { class: "table" }, Zs = ["onClick"], xs = { key: 0 }, zs = ["colspan"], el = /* @__PURE__ */ Js(() => /* @__PURE__ */ w("div", { class: "d-flex justify-content-center p-2" }, [
3615
- /* @__PURE__ */ w("div", { class: "spinner-border spinner-border-sm" })
3616
- ], -1)), tl = { key: 1 }, nl = ["colspan"], al = { class: "text-center text-muted small" };
3617
- function rl(e, t, n, a, l, r) {
3618
- const o = Ea("t");
3619
- return R(), M("table", Qs, [
3620
- w("thead", null, [
3621
- w("tr", null, [
3622
- (R(!0), M(Ee, null, Je(e.fields, (i) => (R(), M("th", {
3623
- key: i.key,
3624
- class: se({
3625
- "cursor-pointer": e.isSortableField(i),
3626
- "text-decoration-underline": e.isActiveOrderBy(i.key),
745
+ }), ce = (e) => (A("data-v-e8d4b4dc"), e = e(), L(), e), ge = { class: "table" }, be = ["onClick"], $e = { key: 0 }, ye = ["colspan"], Ce = /* @__PURE__ */ ce(() => /* @__PURE__ */ s("div", { class: "d-flex justify-content-center p-2" }, [
746
+ /* @__PURE__ */ s("div", { class: "spinner-border spinner-border-sm" })
747
+ ], -1)), ke = { key: 1 }, Ie = ["colspan"], Se = { class: "text-center text-muted small" };
748
+ function Be(e, t, r, d, v, f) {
749
+ const o = E("t");
750
+ return a(), i("table", ge, [
751
+ s("thead", null, [
752
+ s("tr", null, [
753
+ (a(!0), i(b, null, y(e.fields, (n) => (a(), i("th", {
754
+ key: n.key,
755
+ class: h({
756
+ "cursor-pointer": e.isSortableField(n),
757
+ "text-decoration-underline": e.isActiveOrderBy(n.key),
3627
758
  thClass: e.thClass
3628
759
  }),
3629
- onClick: (c) => e.onHeadClick(i)
760
+ onClick: (p) => e.onHeadClick(n)
3630
761
  }, [
3631
- _e(e.$slots, "tr", {}, () => [
3632
- Lt(B(i.label) + " ", 1),
3633
- e.isActiveOrderBy(i.key) && e.sortDesc !== void 0 ? (R(), M("i", {
762
+ g(e.$slots, "tr", {}, () => [
763
+ S(l(n.label) + " ", 1),
764
+ e.isActiveOrderBy(n.key) && e.sortDesc !== void 0 ? (a(), i("i", {
3634
765
  key: 0,
3635
- class: se(e.getSortIconClass())
3636
- }, null, 2)) : J("", !0)
766
+ class: h(e.getSortIconClass())
767
+ }, null, 2)) : u("", !0)
3637
768
  ], !0)
3638
- ], 10, Zs))), 128))
769
+ ], 10, be))), 128))
3639
770
  ])
3640
771
  ]),
3641
- w("tbody", null, [
3642
- e.isLoading ? (R(), M("tr", xs, [
3643
- w("td", {
772
+ s("tbody", null, [
773
+ e.isLoading ? (a(), i("tr", $e, [
774
+ s("td", {
3644
775
  colspan: e.fields.length
3645
776
  }, [
3646
- _e(e.$slots, "loading", {}, () => [
3647
- el
777
+ g(e.$slots, "loading", {}, () => [
778
+ Ce
3648
779
  ], !0)
3649
- ], 8, zs)
3650
- ])) : e.items.length === 0 ? (R(), M("tr", tl, [
3651
- w("td", {
780
+ ], 8, ye)
781
+ ])) : e.items.length === 0 ? (a(), i("tr", ke, [
782
+ s("td", {
3652
783
  colspan: e.fields.length
3653
784
  }, [
3654
- _e(e.$slots, "empty", {}, () => [
3655
- pa(w("div", al, null, 512), [
785
+ g(e.$slots, "empty", {}, () => [
786
+ R(s("div", Se, null, 512), [
3656
787
  [o, "table.empty_text"]
3657
788
  ])
3658
789
  ], !0)
3659
- ], 8, nl)
3660
- ])) : (R(!0), M(Ee, { key: 2 }, Je(e.items, (i, c) => (R(), M("tr", {
3661
- key: c,
3662
- class: se(i.trClass)
790
+ ], 8, Ie)
791
+ ])) : (a(!0), i(b, { key: 2 }, y(e.items, (n, p) => (a(), i("tr", {
792
+ key: p,
793
+ class: h(n.trClass)
3663
794
  }, [
3664
- (R(!0), M(Ee, null, Je(e.fields, (p) => (R(), M("td", {
3665
- key: p.key,
3666
- class: se(e.tdClass)
795
+ (a(!0), i(b, null, y(e.fields, ($) => (a(), i("td", {
796
+ key: $.key,
797
+ class: h(e.tdClass)
3667
798
  }, [
3668
- _e(e.$slots, "td", {
3669
- key: c,
3670
- field: p.key,
3671
- row: i,
3672
- value: p.key in i ? i[p.key] : null
799
+ g(e.$slots, "td", {
800
+ key: p,
801
+ field: $.key,
802
+ row: n,
803
+ value: $.key in n ? n[$.key] : null
3673
804
  }, () => [
3674
- Lt(B(i[p.key]), 1)
805
+ S(l(n[$.key]), 1)
3675
806
  ], !0)
3676
807
  ], 2))), 128))
3677
808
  ], 2))), 128))
3678
809
  ])
3679
810
  ]);
3680
811
  }
3681
- const Xl = /* @__PURE__ */ fe(qs, [["render", rl], ["__scopeId", "data-v-e8d4b4dc"]]), sl = ae({
812
+ const pt = /* @__PURE__ */ c(me, [["render", Be], ["__scopeId", "data-v-e8d4b4dc"]]), Pe = m({
3682
813
  name: "BsToast",
3683
814
  emits: ["shown", "hidden"],
3684
815
  mounted() {
3685
816
  const e = this.$refs.toastRef;
3686
- jt.getOrCreateInstance(e).show(), e.addEventListener("shown.bs.toast", this.onShown), e.addEventListener("hidden.bs.toast", this.onHidden);
817
+ B.getOrCreateInstance(e).show(), e.addEventListener("shown.bs.toast", this.onShown), e.addEventListener("hidden.bs.toast", this.onHidden);
3687
818
  },
3688
819
  methods: {
3689
820
  /**
3690
821
  * Trigger toast hide event.
3691
822
  */
3692
823
  hide() {
3693
- jt.getOrCreateInstance(this.$refs.toastRef).hide();
824
+ B.getOrCreateInstance(this.$refs.toastRef).hide();
3694
825
  },
3695
826
  /**
3696
827
  * Hidden event.
@@ -3705,19 +836,19 @@ const Xl = /* @__PURE__ */ fe(qs, [["render", rl], ["__scopeId", "data-v-e8d4b4d
3705
836
  this.$emit("hidden");
3706
837
  }
3707
838
  }
3708
- }), ll = {
839
+ }), Ve = {
3709
840
  ref: "toastRef",
3710
841
  class: "toast hide",
3711
842
  role: "alert",
3712
843
  "aria-live": "assertive",
3713
844
  "aria-atomic": "true"
3714
845
  };
3715
- function ol(e, t, n, a, l, r) {
3716
- return R(), M("div", ll, [
3717
- _e(e.$slots, "default")
846
+ function we(e, t, r, d, v, f) {
847
+ return a(), i("div", Ve, [
848
+ g(e.$slots, "default")
3718
849
  ], 512);
3719
850
  }
3720
- const jl = /* @__PURE__ */ fe(sl, [["render", ol]]), il = ae({
851
+ const mt = /* @__PURE__ */ c(Pe, [["render", we]]), He = m({
3721
852
  name: "BsModal",
3722
853
  props: {
3723
854
  /**
@@ -3747,14 +878,14 @@ const jl = /* @__PURE__ */ fe(sl, [["render", ol]]), il = ae({
3747
878
  emits: ["shown", "hidden"],
3748
879
  mounted() {
3749
880
  const e = this.$refs.modalRef;
3750
- qt.getOrCreateInstance(e).show(), e.addEventListener("shown.bs.modal", this.onShown), e.addEventListener("hidden.bs.modal", this.onHidden);
881
+ P.getOrCreateInstance(e).show(), e.addEventListener("shown.bs.modal", this.onShown), e.addEventListener("hidden.bs.modal", this.onHidden);
3751
882
  },
3752
883
  methods: {
3753
884
  /**
3754
885
  * Trigger modal hide event.
3755
886
  */
3756
887
  hide() {
3757
- qt.getOrCreateInstance(this.$refs.modalRef).hide();
888
+ P.getOrCreateInstance(this.$refs.modalRef).hide();
3758
889
  },
3759
890
  /**
3760
891
  * Shown event.
@@ -3769,51 +900,51 @@ const jl = /* @__PURE__ */ fe(sl, [["render", ol]]), il = ae({
3769
900
  this.$emit("hidden");
3770
901
  }
3771
902
  }
3772
- }), ul = {
903
+ }), Me = {
3773
904
  ref: "modalRef",
3774
905
  class: "modal fade",
3775
906
  tabindex: "-1",
3776
907
  "aria-hidden": "true"
3777
- }, cl = { class: "modal-content" }, fl = {
908
+ }, Ee = { class: "modal-content" }, Re = {
3778
909
  key: 0,
3779
910
  class: "modal-header"
3780
- }, dl = ["textContent"], ml = /* @__PURE__ */ w("button", {
911
+ }, Ae = ["textContent"], Le = /* @__PURE__ */ s("button", {
3781
912
  type: "button",
3782
913
  class: "btn-close",
3783
914
  "data-bs-dismiss": "modal"
3784
- }, null, -1), _l = {
915
+ }, null, -1), Ne = {
3785
916
  key: 1,
3786
917
  class: "modal-body"
3787
- }, El = {
918
+ }, Oe = {
3788
919
  key: 2,
3789
920
  class: "modal-footer"
3790
921
  };
3791
- function pl(e, t, n, a, l, r) {
3792
- return R(), M("div", ul, [
3793
- w("div", {
3794
- class: se(["modal-dialog", e.classDialog])
922
+ function _e(e, t, r, d, v, f) {
923
+ return a(), i("div", Me, [
924
+ s("div", {
925
+ class: h(["modal-dialog", e.classDialog])
3795
926
  }, [
3796
- w("div", cl, [
3797
- e.hideHeader ? J("", !0) : (R(), M("div", fl, [
3798
- _e(e.$slots, "header", {}, () => [
3799
- w("div", {
927
+ s("div", Ee, [
928
+ e.hideHeader ? u("", !0) : (a(), i("div", Re, [
929
+ g(e.$slots, "header", {}, () => [
930
+ s("div", {
3800
931
  class: "h5 modal-title",
3801
- textContent: B(e.title)
3802
- }, null, 8, dl),
3803
- ml
932
+ textContent: l(e.title)
933
+ }, null, 8, Ae),
934
+ Le
3804
935
  ])
3805
936
  ])),
3806
- e.hideBody ? J("", !0) : (R(), M("div", _l, [
3807
- _e(e.$slots, "body")
937
+ e.hideBody ? u("", !0) : (a(), i("div", Ne, [
938
+ g(e.$slots, "body")
3808
939
  ])),
3809
- e.hideFooter ? J("", !0) : (R(), M("div", El, [
3810
- _e(e.$slots, "footer")
940
+ e.hideFooter ? u("", !0) : (a(), i("div", Oe, [
941
+ g(e.$slots, "footer")
3811
942
  ]))
3812
943
  ])
3813
944
  ], 2)
3814
945
  ], 512);
3815
946
  }
3816
- const ql = /* @__PURE__ */ fe(il, [["render", pl]]), gl = ae({
947
+ const ct = /* @__PURE__ */ c(He, [["render", _e]]), De = m({
3817
948
  name: "BsSelect",
3818
949
  props: {
3819
950
  /**
@@ -3868,10 +999,10 @@ const ql = /* @__PURE__ */ fe(il, [["render", pl]]), gl = ae({
3868
999
  },
3869
1000
  emits: ["update:modelValue"],
3870
1001
  setup() {
3871
- const e = ce(null);
1002
+ const e = C(null);
3872
1003
  return {
3873
1004
  inputRef: e,
3874
- validator: ft(e)
1005
+ validator: I(e)
3875
1006
  };
3876
1007
  },
3877
1008
  methods: {
@@ -3899,21 +1030,21 @@ const ql = /* @__PURE__ */ fe(il, [["render", pl]]), gl = ae({
3899
1030
  this.validatorEnabled && this.validator.onInvalid(e);
3900
1031
  }
3901
1032
  }
3902
- }), vl = ["for", "textContent"], Nl = ["id", "value", "aria-labelledby"], hl = {
1033
+ }), qe = ["for", "textContent"], Te = ["id", "value", "aria-labelledby"], Fe = {
3903
1034
  key: 0,
3904
1035
  value: "",
3905
1036
  disabled: "",
3906
1037
  hidden: ""
3907
- }, bl = ["value"], Il = ["textContent"], Tl = ["id", "textContent"];
3908
- function Ll(e, t, n, a, l, r) {
3909
- return R(), M(Ee, null, [
3910
- e.label !== void 0 ? (R(), M("label", {
1038
+ }, ze = ["value"], je = ["textContent"], Ue = ["id", "textContent"];
1039
+ function Ge(e, t, r, d, v, f) {
1040
+ return a(), i(b, null, [
1041
+ e.label !== void 0 ? (a(), i("label", {
3911
1042
  key: 0,
3912
1043
  for: e.id,
3913
1044
  class: "form-label",
3914
- textContent: B(e.label)
3915
- }, null, 8, vl)) : J("", !0),
3916
- w("select", ct({
1045
+ textContent: l(e.label)
1046
+ }, null, 8, qe)) : u("", !0),
1047
+ s("select", k({
3917
1048
  id: e.id,
3918
1049
  ref: "inputRef",
3919
1050
  class: "form-select",
@@ -3923,26 +1054,26 @@ function Ll(e, t, n, a, l, r) {
3923
1054
  onInput: t[0] || (t[0] = (...o) => e.onInput && e.onInput(...o)),
3924
1055
  onInvalid: t[1] || (t[1] = (...o) => e.onInvalid && e.onInvalid(...o))
3925
1056
  }), [
3926
- e.placeholder !== void 0 ? (R(), M("option", hl, B(e.placeholder), 1)) : J("", !0),
3927
- (R(!0), M(Ee, null, Je(e.options, (o, i) => (R(), M("option", {
3928
- key: i,
1057
+ e.placeholder !== void 0 ? (a(), i("option", Fe, l(e.placeholder), 1)) : u("", !0),
1058
+ (a(!0), i(b, null, y(e.options, (o, n) => (a(), i("option", {
1059
+ key: n,
3929
1060
  value: o.value
3930
- }, B(o.text), 9, bl))), 128))
3931
- ], 16, Nl),
3932
- e.validatorEnabled && e.validator.getInvalidMessage() !== null ? (R(), M("div", {
1061
+ }, l(o.text), 9, ze))), 128))
1062
+ ], 16, Te),
1063
+ e.validatorEnabled && e.validator.getInvalidMessage() !== null ? (a(), i("div", {
3933
1064
  key: 1,
3934
1065
  class: "invalid-feedback",
3935
- textContent: B(e.validator.getInvalidMessage())
3936
- }, null, 8, Il)) : J("", !0),
3937
- e.hint !== void 0 ? (R(), M("div", {
1066
+ textContent: l(e.validator.getInvalidMessage())
1067
+ }, null, 8, je)) : u("", !0),
1068
+ e.hint !== void 0 ? (a(), i("div", {
3938
1069
  key: 2,
3939
1070
  id: e.getHintId(),
3940
1071
  class: "form-text",
3941
- textContent: B(e.hint)
3942
- }, null, 8, Tl)) : J("", !0)
1072
+ textContent: l(e.hint)
1073
+ }, null, 8, Ue)) : u("", !0)
3943
1074
  ], 64);
3944
1075
  }
3945
- const Jl = /* @__PURE__ */ fe(gl, [["render", Ll]]), Ol = ae({
1076
+ const gt = /* @__PURE__ */ c(De, [["render", Ge]]), Je = m({
3946
1077
  name: "BsRadio",
3947
1078
  props: {
3948
1079
  /**
@@ -3997,10 +1128,10 @@ const Jl = /* @__PURE__ */ fe(gl, [["render", Ll]]), Ol = ae({
3997
1128
  },
3998
1129
  emits: ["update:modelValue"],
3999
1130
  setup() {
4000
- const e = ce(null);
1131
+ const e = C(null);
4001
1132
  return {
4002
1133
  inputRef: e,
4003
- validator: ft(e)
1134
+ validator: I(e)
4004
1135
  };
4005
1136
  },
4006
1137
  computed: {
@@ -4033,12 +1164,12 @@ const Jl = /* @__PURE__ */ fe(gl, [["render", Ll]]), Ol = ae({
4033
1164
  this.validatorEnabled && this.validator.onInvalid(e);
4034
1165
  }
4035
1166
  }
4036
- }), Cl = ["id", "value", "checked", "aria-describedby"], yl = ["for", "textContent"], Al = ["textContent"], kl = ["id", "textContent"];
4037
- function Sl(e, t, n, a, l, r) {
4038
- return R(), M("div", {
4039
- class: se(["form-check", e.classContainer])
1167
+ }), Ke = ["id", "value", "checked", "aria-describedby"], Qe = ["for", "textContent"], We = ["textContent"], Xe = ["id", "textContent"];
1168
+ function Ye(e, t, r, d, v, f) {
1169
+ return a(), i("div", {
1170
+ class: h(["form-check", e.classContainer])
4040
1171
  }, [
4041
- w("input", ct({
1172
+ s("input", k({
4042
1173
  id: e.id,
4043
1174
  ref: "inputRef",
4044
1175
  value: e.modelValue
@@ -4049,27 +1180,27 @@ function Sl(e, t, n, a, l, r) {
4049
1180
  "aria-describedby": e.hint !== void 0 ? e.getHintId() : null,
4050
1181
  onInput: t[0] || (t[0] = (...o) => e.onInput && e.onInput(...o)),
4051
1182
  onInvalid: t[1] || (t[1] = (...o) => e.onInvalid && e.onInvalid(...o))
4052
- }), null, 16, Cl),
4053
- e.label !== void 0 ? (R(), M("label", {
1183
+ }), null, 16, Ke),
1184
+ e.label !== void 0 ? (a(), i("label", {
4054
1185
  key: 0,
4055
1186
  for: e.id,
4056
1187
  class: "form-check-label",
4057
- textContent: B(e.label)
4058
- }, null, 8, yl)) : J("", !0),
4059
- e.validatorEnabled && e.validator.getInvalidMessage() !== null ? (R(), M("div", {
1188
+ textContent: l(e.label)
1189
+ }, null, 8, Qe)) : u("", !0),
1190
+ e.validatorEnabled && e.validator.getInvalidMessage() !== null ? (a(), i("div", {
4060
1191
  key: 1,
4061
1192
  class: "invalid-feedback",
4062
- textContent: B(e.validator.getInvalidMessage())
4063
- }, null, 8, Al)) : J("", !0),
4064
- e.hint !== void 0 ? (R(), M("div", {
1193
+ textContent: l(e.validator.getInvalidMessage())
1194
+ }, null, 8, We)) : u("", !0),
1195
+ e.hint !== void 0 ? (a(), i("div", {
4065
1196
  key: 2,
4066
1197
  id: e.getHintId(),
4067
1198
  class: "form-text",
4068
- textContent: B(e.hint)
4069
- }, null, 8, kl)) : J("", !0)
1199
+ textContent: l(e.hint)
1200
+ }, null, 8, Xe)) : u("", !0)
4070
1201
  ], 2);
4071
1202
  }
4072
- const Ql = /* @__PURE__ */ fe(Ol, [["render", Sl]]), Pl = ae({
1203
+ const bt = /* @__PURE__ */ c(Je, [["render", Ye]]), Ze = m({
4073
1204
  name: "BsOffcanvas",
4074
1205
  props: {
4075
1206
  /**
@@ -4083,14 +1214,14 @@ const Ql = /* @__PURE__ */ fe(Ol, [["render", Sl]]), Pl = ae({
4083
1214
  emits: ["shown", "hidden"],
4084
1215
  mounted() {
4085
1216
  const e = this.$refs.offcanvasRef;
4086
- Jt.getOrCreateInstance(e).show(), e.addEventListener("shown.bs.offcanvas", this.onShown), e.addEventListener("hidden.bs.offcanvas", this.onHidden);
1217
+ V.getOrCreateInstance(e).show(), e.addEventListener("shown.bs.offcanvas", this.onShown), e.addEventListener("hidden.bs.offcanvas", this.onHidden);
4087
1218
  },
4088
1219
  methods: {
4089
1220
  /**
4090
1221
  * Trigger offcanvas hide event.
4091
1222
  */
4092
1223
  hide() {
4093
- Jt.getOrCreateInstance(this.$refs.offcanvasRef).hide();
1224
+ V.getOrCreateInstance(this.$refs.offcanvasRef).hide();
4094
1225
  },
4095
1226
  /**
4096
1227
  * Shown event.
@@ -4105,46 +1236,46 @@ const Ql = /* @__PURE__ */ fe(Ol, [["render", Sl]]), Pl = ae({
4105
1236
  this.$emit("hidden");
4106
1237
  }
4107
1238
  }
4108
- }), Dl = {
1239
+ }), xe = {
4109
1240
  ref: "offcanvasRef",
4110
1241
  class: "offcanvas",
4111
1242
  tabindex: "-1",
4112
1243
  "aria-labelledby": "offcanvasTitle"
4113
- }, Rl = { class: "offcanvas-header" }, Ml = ["textContent"], Fl = /* @__PURE__ */ w("button", {
1244
+ }, et = { class: "offcanvas-header" }, tt = ["textContent"], nt = /* @__PURE__ */ s("button", {
4114
1245
  type: "button",
4115
1246
  class: "btn-close text-reset",
4116
1247
  "data-bs-dismiss": "offcanvas"
4117
- }, null, -1), $l = { class: "offcanvas-body" };
4118
- function wl(e, t, n, a, l, r) {
4119
- return R(), M("div", Dl, [
4120
- w("div", Rl, [
4121
- _e(e.$slots, "header", {}, () => [
4122
- w("div", {
1248
+ }, null, -1), at = { class: "offcanvas-body" };
1249
+ function it(e, t, r, d, v, f) {
1250
+ return a(), i("div", xe, [
1251
+ s("div", et, [
1252
+ g(e.$slots, "header", {}, () => [
1253
+ s("div", {
4123
1254
  id: "offcanvasTitle",
4124
1255
  class: "h5 mb-0",
4125
- textContent: B(e.title)
4126
- }, null, 8, Ml),
4127
- Fl
1256
+ textContent: l(e.title)
1257
+ }, null, 8, tt),
1258
+ nt
4128
1259
  ])
4129
1260
  ]),
4130
- w("div", $l, [
4131
- _e(e.$slots, "body")
1261
+ s("div", at, [
1262
+ g(e.$slots, "body")
4132
1263
  ])
4133
1264
  ], 512);
4134
1265
  }
4135
- const Zl = /* @__PURE__ */ fe(Pl, [["render", wl]]);
1266
+ const $t = /* @__PURE__ */ c(Ze, [["render", it]]);
4136
1267
  export {
4137
- Hl as BsBreadcrumb,
4138
- Gl as BsCheckbox,
4139
- Wl as BsForm,
4140
- Bl as BsInput,
4141
- ql as BsModal,
4142
- Zl as BsOffcanvas,
4143
- Kl as BsPaginator,
4144
- Ql as BsRadio,
4145
- Jl as BsSelect,
4146
- Xl as BsTable,
4147
- Yl as BsTextarea,
4148
- jl as BsToast,
4149
- ft as useValidator
1268
+ rt as BsBreadcrumb,
1269
+ vt as BsCheckbox,
1270
+ dt as BsForm,
1271
+ ut as BsInput,
1272
+ ct as BsModal,
1273
+ $t as BsOffcanvas,
1274
+ ft as BsPaginator,
1275
+ bt as BsRadio,
1276
+ gt as BsSelect,
1277
+ pt as BsTable,
1278
+ ht as BsTextarea,
1279
+ mt as BsToast,
1280
+ I as useValidator
4150
1281
  };