@ozdao/prometheus-framework 0.1.55 → 0.1.57

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. package/dist/_virtual/vue.runtime.esm-bundler.cjs +1 -0
  2. package/dist/_virtual/vue.runtime.esm-bundler.js +6 -0
  3. package/dist/node_modules/@intlify/core-base/dist/core-base.esm-bundler.cjs +6 -0
  4. package/dist/node_modules/@intlify/core-base/dist/core-base.esm-bundler.js +887 -0
  5. package/dist/node_modules/@intlify/devtools-if/dist/devtools-if.esm-bundler.cjs +5 -0
  6. package/dist/node_modules/@intlify/devtools-if/dist/devtools-if.esm-bundler.js +12 -0
  7. package/dist/node_modules/@intlify/message-compiler/dist/message-compiler.esm-bundler.cjs +5 -0
  8. package/dist/node_modules/@intlify/message-compiler/dist/message-compiler.esm-bundler.js +54 -0
  9. package/dist/node_modules/@intlify/shared/dist/shared.esm-bundler.cjs +6 -0
  10. package/dist/node_modules/@intlify/shared/dist/shared.esm-bundler.js +109 -0
  11. package/dist/node_modules/@intlify/vue-devtools/dist/vue-devtools.esm-bundler.cjs +5 -0
  12. package/dist/node_modules/@intlify/vue-devtools/dist/vue-devtools.esm-bundler.js +19 -0
  13. package/dist/node_modules/vue-i18n/dist/vue-i18n.runtime.esm-bundler.cjs +5 -0
  14. package/dist/node_modules/vue-i18n/dist/vue-i18n.runtime.esm-bundler.js +1111 -0
  15. package/dist/node_modules/vue-router/dist/vue-router.cjs +5 -0
  16. package/dist/node_modules/vue-router/dist/vue-router.js +37 -0
  17. package/dist/prometheus-framework/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.cjs +1 -0
  18. package/dist/prometheus-framework/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js +700 -0
  19. package/dist/prometheus-framework/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.cjs +14 -0
  20. package/dist/prometheus-framework/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +3863 -0
  21. package/dist/prometheus-framework/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.cjs +1 -0
  22. package/dist/prometheus-framework/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js +1023 -0
  23. package/dist/prometheus-framework/node_modules/@vue/shared/dist/shared.esm-bundler.cjs +1 -0
  24. package/dist/prometheus-framework/node_modules/@vue/shared/dist/shared.esm-bundler.js +176 -0
  25. package/dist/prometheus-framework/node_modules/vue/dist/vue.runtime.esm-bundler.cjs +1 -0
  26. package/dist/prometheus-framework/node_modules/vue/dist/vue.runtime.esm-bundler.js +163 -0
  27. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  28. package/dist/prometheus-framework/src/modules/auth/store/auth.js +17 -18
  29. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  30. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  31. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  32. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  33. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  34. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +2 -11
  35. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  36. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +11 -2
  37. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  38. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  39. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  40. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  41. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  42. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
  43. package/dist/style.css +1 -1
  44. package/package.json +1 -1
  45. package/src/modules/auth/store/auth.js +5 -8
@@ -0,0 +1,887 @@
1
+ import { getGlobalThis as Ae, isObject as M, isArray as $, isPlainObject as b, isString as u, isBoolean as C, assign as Y, isFunction as h, isRegExp as q, warn as ie, escapeHtml as ee, inBrowser as B, mark as w, measure as x, isNumber as L, isEmptyObject as H, generateCodeFrame as Oe, generateFormatCacheKey as De, isDate as Fe, format as be, toDisplayString as ve } from "../../shared/dist/shared.esm-bundler.js";
2
+ import { createCompileError as Ie, CompileErrorCodes as Me } from "../../message-compiler/dist/message-compiler.esm-bundler.js";
3
+ import { IntlifyDevToolsHooks as ce } from "../../devtools-if/dist/devtools-if.esm-bundler.js";
4
+ /*!
5
+ * core-base v9.2.2
6
+ * (c) 2022 kazuya kawaguchi
7
+ * Released under the MIT License.
8
+ */
9
+ const U = [];
10
+ U[
11
+ 0
12
+ /* BEFORE_PATH */
13
+ ] = {
14
+ w: [
15
+ 0
16
+ /* BEFORE_PATH */
17
+ ],
18
+ i: [
19
+ 3,
20
+ 0
21
+ /* APPEND */
22
+ ],
23
+ "[": [
24
+ 4
25
+ /* IN_SUB_PATH */
26
+ ],
27
+ o: [
28
+ 7
29
+ /* AFTER_PATH */
30
+ ]
31
+ };
32
+ U[
33
+ 1
34
+ /* IN_PATH */
35
+ ] = {
36
+ w: [
37
+ 1
38
+ /* IN_PATH */
39
+ ],
40
+ ".": [
41
+ 2
42
+ /* BEFORE_IDENT */
43
+ ],
44
+ "[": [
45
+ 4
46
+ /* IN_SUB_PATH */
47
+ ],
48
+ o: [
49
+ 7
50
+ /* AFTER_PATH */
51
+ ]
52
+ };
53
+ U[
54
+ 2
55
+ /* BEFORE_IDENT */
56
+ ] = {
57
+ w: [
58
+ 2
59
+ /* BEFORE_IDENT */
60
+ ],
61
+ i: [
62
+ 3,
63
+ 0
64
+ /* APPEND */
65
+ ],
66
+ 0: [
67
+ 3,
68
+ 0
69
+ /* APPEND */
70
+ ]
71
+ };
72
+ U[
73
+ 3
74
+ /* IN_IDENT */
75
+ ] = {
76
+ i: [
77
+ 3,
78
+ 0
79
+ /* APPEND */
80
+ ],
81
+ 0: [
82
+ 3,
83
+ 0
84
+ /* APPEND */
85
+ ],
86
+ w: [
87
+ 1,
88
+ 1
89
+ /* PUSH */
90
+ ],
91
+ ".": [
92
+ 2,
93
+ 1
94
+ /* PUSH */
95
+ ],
96
+ "[": [
97
+ 4,
98
+ 1
99
+ /* PUSH */
100
+ ],
101
+ o: [
102
+ 7,
103
+ 1
104
+ /* PUSH */
105
+ ]
106
+ };
107
+ U[
108
+ 4
109
+ /* IN_SUB_PATH */
110
+ ] = {
111
+ "'": [
112
+ 5,
113
+ 0
114
+ /* APPEND */
115
+ ],
116
+ '"': [
117
+ 6,
118
+ 0
119
+ /* APPEND */
120
+ ],
121
+ "[": [
122
+ 4,
123
+ 2
124
+ /* INC_SUB_PATH_DEPTH */
125
+ ],
126
+ "]": [
127
+ 1,
128
+ 3
129
+ /* PUSH_SUB_PATH */
130
+ ],
131
+ o: 8,
132
+ l: [
133
+ 4,
134
+ 0
135
+ /* APPEND */
136
+ ]
137
+ };
138
+ U[
139
+ 5
140
+ /* IN_SINGLE_QUOTE */
141
+ ] = {
142
+ "'": [
143
+ 4,
144
+ 0
145
+ /* APPEND */
146
+ ],
147
+ o: 8,
148
+ l: [
149
+ 5,
150
+ 0
151
+ /* APPEND */
152
+ ]
153
+ };
154
+ U[
155
+ 6
156
+ /* IN_DOUBLE_QUOTE */
157
+ ] = {
158
+ '"': [
159
+ 4,
160
+ 0
161
+ /* APPEND */
162
+ ],
163
+ o: 8,
164
+ l: [
165
+ 6,
166
+ 0
167
+ /* APPEND */
168
+ ]
169
+ };
170
+ const he = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
171
+ function Ce(e) {
172
+ return he.test(e);
173
+ }
174
+ function Le(e) {
175
+ const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
176
+ return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
177
+ }
178
+ function Re(e) {
179
+ if (e == null)
180
+ return "o";
181
+ switch (e.charCodeAt(0)) {
182
+ case 91:
183
+ case 93:
184
+ case 46:
185
+ case 34:
186
+ case 39:
187
+ return e;
188
+ case 95:
189
+ case 36:
190
+ case 45:
191
+ return "i";
192
+ case 9:
193
+ case 10:
194
+ case 13:
195
+ case 160:
196
+ case 65279:
197
+ case 8232:
198
+ case 8233:
199
+ return "w";
200
+ }
201
+ return "i";
202
+ }
203
+ function we(e) {
204
+ const t = e.trim();
205
+ return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Ce(t) ? Le(t) : "*" + t;
206
+ }
207
+ function ye(e) {
208
+ const t = [];
209
+ let n = -1, a = 0, s = 0, l, o, c, r, i, f, N;
210
+ const m = [];
211
+ m[
212
+ 0
213
+ /* APPEND */
214
+ ] = () => {
215
+ o === void 0 ? o = c : o += c;
216
+ }, m[
217
+ 1
218
+ /* PUSH */
219
+ ] = () => {
220
+ o !== void 0 && (t.push(o), o = void 0);
221
+ }, m[
222
+ 2
223
+ /* INC_SUB_PATH_DEPTH */
224
+ ] = () => {
225
+ m[
226
+ 0
227
+ /* APPEND */
228
+ ](), s++;
229
+ }, m[
230
+ 3
231
+ /* PUSH_SUB_PATH */
232
+ ] = () => {
233
+ if (s > 0)
234
+ s--, a = 4, m[
235
+ 0
236
+ /* APPEND */
237
+ ]();
238
+ else {
239
+ if (s = 0, o === void 0 || (o = we(o), o === !1))
240
+ return !1;
241
+ m[
242
+ 1
243
+ /* PUSH */
244
+ ]();
245
+ }
246
+ };
247
+ function g() {
248
+ const D = e[n + 1];
249
+ if (a === 5 && D === "'" || a === 6 && D === '"')
250
+ return n++, c = "\\" + D, m[
251
+ 0
252
+ /* APPEND */
253
+ ](), !0;
254
+ }
255
+ for (; a !== null; )
256
+ if (n++, l = e[n], !(l === "\\" && g())) {
257
+ if (r = Re(l), N = U[a], i = N[r] || N.l || 8, i === 8 || (a = i[0], i[1] !== void 0 && (f = m[i[1]], f && (c = l, f() === !1))))
258
+ return;
259
+ if (a === 7)
260
+ return t;
261
+ }
262
+ }
263
+ const te = /* @__PURE__ */ new Map();
264
+ function ke(e, t) {
265
+ return M(e) ? e[t] : null;
266
+ }
267
+ function dt(e, t) {
268
+ if (!M(e))
269
+ return null;
270
+ let n = te.get(t);
271
+ if (n || (n = ye(t), n && te.set(t, n)), !n)
272
+ return null;
273
+ const a = n.length;
274
+ let s = e, l = 0;
275
+ for (; l < a; ) {
276
+ const o = s[n[l]];
277
+ if (o === void 0)
278
+ return null;
279
+ s = o, l++;
280
+ }
281
+ return s;
282
+ }
283
+ const Ve = (e) => e, We = (e) => "", Se = "text", $e = (e) => e.length === 0 ? "" : e.join(""), Ue = ve;
284
+ function ne(e, t) {
285
+ return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
286
+ }
287
+ function Pe(e) {
288
+ const t = L(e.pluralIndex) ? e.pluralIndex : -1;
289
+ return e.named && (L(e.named.count) || L(e.named.n)) ? L(e.named.count) ? e.named.count : L(e.named.n) ? e.named.n : t : t;
290
+ }
291
+ function Be(e, t) {
292
+ t.count || (t.count = e), t.n || (t.n = e);
293
+ }
294
+ function xe(e = {}) {
295
+ const t = e.locale, n = Pe(e), a = M(e.pluralRules) && u(t) && h(e.pluralRules[t]) ? e.pluralRules[t] : ne, s = M(e.pluralRules) && u(t) && h(e.pluralRules[t]) ? ne : void 0, l = (T) => T[a(n, T.length, s)], o = e.list || [], c = (T) => o[T], r = e.named || {};
296
+ L(e.pluralIndex) && Be(n, r);
297
+ const i = (T) => r[T];
298
+ function f(T) {
299
+ const _ = h(e.messages) ? e.messages(T) : M(e.messages) ? e.messages[T] : !1;
300
+ return _ || (e.parent ? e.parent.message(T) : We);
301
+ }
302
+ const N = (T) => e.modifiers ? e.modifiers[T] : Ve, m = b(e.processor) && h(e.processor.normalize) ? e.processor.normalize : $e, g = b(e.processor) && h(e.processor.interpolate) ? e.processor.interpolate : Ue, D = b(e.processor) && u(e.processor.type) ? e.processor.type : Se, v = {
303
+ list: c,
304
+ named: i,
305
+ plural: l,
306
+ linked: (T, ..._) => {
307
+ const [A, d] = _;
308
+ let F = "text", p = "";
309
+ _.length === 1 ? M(A) ? (p = A.modifier || p, F = A.type || F) : u(A) && (p = A || p) : _.length === 2 && (u(A) && (p = A || p), u(d) && (F = d || F));
310
+ let E = f(T)(v);
311
+ return F === "vnode" && $(E) && p && (E = E[0]), p ? N(p)(E, F) : E;
312
+ },
313
+ message: f,
314
+ type: D,
315
+ interpolate: g,
316
+ normalize: m
317
+ };
318
+ return v;
319
+ }
320
+ let G = null;
321
+ function gt(e) {
322
+ G = e;
323
+ }
324
+ function Ke(e, t, n) {
325
+ G && G.emit(ce.I18nInit, {
326
+ timestamp: Date.now(),
327
+ i18n: e,
328
+ version: t,
329
+ meta: n
330
+ });
331
+ }
332
+ const Ge = /* @__PURE__ */ Ye(ce.FunctionTranslate);
333
+ function Ye(e) {
334
+ return (t) => G && G.emit(e, t);
335
+ }
336
+ const R = {
337
+ NOT_FOUND_KEY: 1,
338
+ FALLBACK_TO_TRANSLATE: 2,
339
+ CANNOT_FORMAT_NUMBER: 3,
340
+ FALLBACK_TO_NUMBER_FORMAT: 4,
341
+ CANNOT_FORMAT_DATE: 5,
342
+ FALLBACK_TO_DATE_FORMAT: 6,
343
+ __EXTEND_POINT__: 7
344
+ }, je = {
345
+ [R.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
346
+ [R.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
347
+ [R.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
348
+ [R.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.",
349
+ [R.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
350
+ [R.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale."
351
+ };
352
+ function K(e, ...t) {
353
+ return be(je[e], ...t);
354
+ }
355
+ function He(e, t, n) {
356
+ return [.../* @__PURE__ */ new Set([
357
+ n,
358
+ ...$(t) ? t : M(t) ? Object.keys(t) : u(t) ? [t] : [n]
359
+ ])];
360
+ }
361
+ function Nt(e, t, n) {
362
+ const a = u(n) ? n : me, s = e;
363
+ s.__localeChainCache || (s.__localeChainCache = /* @__PURE__ */ new Map());
364
+ let l = s.__localeChainCache.get(a);
365
+ if (!l) {
366
+ l = [];
367
+ let o = [n];
368
+ for (; $(o); )
369
+ o = ae(l, o, t);
370
+ const c = $(t) || !b(t) ? t : t.default ? t.default : null;
371
+ o = u(c) ? [c] : c, $(o) && ae(l, o, !1), s.__localeChainCache.set(a, l);
372
+ }
373
+ return l;
374
+ }
375
+ function ae(e, t, n) {
376
+ let a = !0;
377
+ for (let s = 0; s < t.length && C(a); s++) {
378
+ const l = t[s];
379
+ u(l) && (a = ze(e, t[s], n));
380
+ }
381
+ return a;
382
+ }
383
+ function ze(e, t, n) {
384
+ let a;
385
+ const s = t.split("-");
386
+ do {
387
+ const l = s.join("-");
388
+ a = Ze(e, l, n), s.splice(-1, 1);
389
+ } while (s.length && a === !0);
390
+ return a;
391
+ }
392
+ function Ze(e, t, n) {
393
+ let a = !1;
394
+ if (!e.includes(t) && (a = !0, t)) {
395
+ a = t[t.length - 1] !== "!";
396
+ const s = t.replace(/!/g, "");
397
+ e.push(s), ($(n) || b(n)) && n[s] && (a = n[s]);
398
+ }
399
+ return a;
400
+ }
401
+ const Xe = "9.2.2", z = -1, me = "en-US", ue = "", re = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
402
+ function Je() {
403
+ return {
404
+ upper: (e, t) => t === "text" && u(e) ? e.toUpperCase() : t === "vnode" && M(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
405
+ lower: (e, t) => t === "text" && u(e) ? e.toLowerCase() : t === "vnode" && M(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
406
+ capitalize: (e, t) => t === "text" && u(e) ? re(e) : t === "vnode" && M(e) && "__v_isVNode" in e ? re(e.children) : e
407
+ };
408
+ }
409
+ let Qe, fe;
410
+ function Tt(e) {
411
+ fe = e;
412
+ }
413
+ let _e;
414
+ function Et(e) {
415
+ _e = e;
416
+ }
417
+ let de = null;
418
+ const pt = (e) => {
419
+ de = e;
420
+ }, qe = () => de;
421
+ let ge = null;
422
+ const At = (e) => {
423
+ ge = e;
424
+ }, Ot = () => ge;
425
+ let se = 0;
426
+ function Dt(e = {}) {
427
+ const t = u(e.version) ? e.version : Xe, n = u(e.locale) ? e.locale : me, a = $(e.fallbackLocale) || b(e.fallbackLocale) || u(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : n, s = b(e.messages) ? e.messages : { [n]: {} }, l = b(e.datetimeFormats) ? e.datetimeFormats : { [n]: {} }, o = b(e.numberFormats) ? e.numberFormats : { [n]: {} }, c = Y({}, e.modifiers || {}, Je()), r = e.pluralRules || {}, i = h(e.missing) ? e.missing : null, f = C(e.missingWarn) || q(e.missingWarn) ? e.missingWarn : !0, N = C(e.fallbackWarn) || q(e.fallbackWarn) ? e.fallbackWarn : !0, m = !!e.fallbackFormat, g = !!e.unresolving, D = h(e.postTranslation) ? e.postTranslation : null, O = b(e.processor) ? e.processor : null, v = C(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, T = !!e.escapeParameter, _ = h(e.messageCompiler) ? e.messageCompiler : Qe, A = h(e.messageResolver) ? e.messageResolver : fe || ke, d = h(e.localeFallbacker) ? e.localeFallbacker : _e || He, F = M(e.fallbackContext) ? e.fallbackContext : void 0, p = h(e.onWarn) ? e.onWarn : ie, E = e, I = M(E.__datetimeFormatters) ? E.__datetimeFormatters : /* @__PURE__ */ new Map(), y = M(E.__numberFormatters) ? E.__numberFormatters : /* @__PURE__ */ new Map(), k = M(E.__meta) ? E.__meta : {};
428
+ se++;
429
+ const V = {
430
+ version: t,
431
+ cid: se,
432
+ locale: n,
433
+ fallbackLocale: a,
434
+ messages: s,
435
+ modifiers: c,
436
+ pluralRules: r,
437
+ missing: i,
438
+ missingWarn: f,
439
+ fallbackWarn: N,
440
+ fallbackFormat: m,
441
+ unresolving: g,
442
+ postTranslation: D,
443
+ processor: O,
444
+ warnHtmlMessage: v,
445
+ escapeParameter: T,
446
+ messageCompiler: _,
447
+ messageResolver: A,
448
+ localeFallbacker: d,
449
+ fallbackContext: F,
450
+ onWarn: p,
451
+ __meta: k
452
+ };
453
+ return V.datetimeFormats = l, V.numberFormats = o, V.__datetimeFormatters = I, V.__numberFormatters = y, process.env.NODE_ENV !== "production" && (V.__v_emitter = E.__v_emitter != null ? E.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Ke(V, t, k), V;
454
+ }
455
+ function Z(e, t) {
456
+ return e instanceof RegExp ? e.test(t) : e;
457
+ }
458
+ function et(e, t) {
459
+ return e instanceof RegExp ? e.test(t) : e;
460
+ }
461
+ function X(e, t, n, a, s) {
462
+ const { missing: l, onWarn: o } = e;
463
+ if (process.env.NODE_ENV !== "production") {
464
+ const c = e.__v_emitter;
465
+ c && c.emit("missing", {
466
+ locale: n,
467
+ key: t,
468
+ type: s,
469
+ groupId: `${s}:${t}`
470
+ });
471
+ }
472
+ if (l !== null) {
473
+ const c = l(e, n, t, s);
474
+ return u(c) ? c : t;
475
+ } else
476
+ return process.env.NODE_ENV !== "production" && et(a, t) && o(K(R.NOT_FOUND_KEY, { key: t, locale: n })), t;
477
+ }
478
+ function Ft(e, t, n) {
479
+ const a = e;
480
+ a.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
481
+ }
482
+ let Ne = Me.__EXTEND_POINT__;
483
+ const j = () => ++Ne, S = {
484
+ INVALID_ARGUMENT: Ne,
485
+ INVALID_DATE_ARGUMENT: j(),
486
+ INVALID_ISO_DATE_ARGUMENT: j(),
487
+ __EXTEND_POINT__: j()
488
+ // 18
489
+ };
490
+ function P(e) {
491
+ return Ie(e, null, process.env.NODE_ENV !== "production" ? { messages: tt } : void 0);
492
+ }
493
+ const tt = {
494
+ [S.INVALID_ARGUMENT]: "Invalid arguments",
495
+ [S.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
496
+ [S.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string"
497
+ }, le = () => "", W = (e) => h(e);
498
+ function bt(e, ...t) {
499
+ const { fallbackFormat: n, postTranslation: a, unresolving: s, messageCompiler: l, fallbackLocale: o, messages: c } = e, [r, i] = rt(...t), f = C(i.missingWarn) ? i.missingWarn : e.missingWarn, N = C(i.fallbackWarn) ? i.fallbackWarn : e.fallbackWarn, m = C(i.escapeParameter) ? i.escapeParameter : e.escapeParameter, g = !!i.resolvedMessage, D = u(i.default) || C(i.default) ? C(i.default) ? l ? r : () => r : i.default : n ? l ? r : () => r : "", O = n || D !== "", v = u(i.locale) ? i.locale : e.locale;
500
+ m && nt(i);
501
+ let [T, _, A] = g ? [
502
+ r,
503
+ v,
504
+ c[v] || {}
505
+ ] : Te(e, r, v, o, N, f), d = T, F = r;
506
+ if (!g && !(u(d) || W(d)) && O && (d = D, F = d), !g && (!(u(d) || W(d)) || !u(_)))
507
+ return s ? z : r;
508
+ if (process.env.NODE_ENV !== "production" && u(d) && e.messageCompiler == null)
509
+ return ie(`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 '${r}'.`), r;
510
+ let p = !1;
511
+ const E = () => {
512
+ p = !0;
513
+ }, I = W(d) ? d : Ee(e, r, _, d, F, E);
514
+ if (p)
515
+ return d;
516
+ const y = lt(e, _, A, i), k = xe(y), V = at(e, I, k), J = a ? a(V, r) : V;
517
+ if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
518
+ const Q = {
519
+ timestamp: Date.now(),
520
+ key: u(r) ? r : W(d) ? d.key : "",
521
+ locale: _ || (W(d) ? d.locale : ""),
522
+ format: u(d) ? d : W(d) ? d.source : "",
523
+ message: J
524
+ };
525
+ Q.meta = Y({}, e.__meta, qe() || {}), Ge(Q);
526
+ }
527
+ return J;
528
+ }
529
+ function nt(e) {
530
+ $(e.list) ? e.list = e.list.map((t) => u(t) ? ee(t) : t) : M(e.named) && Object.keys(e.named).forEach((t) => {
531
+ u(e.named[t]) && (e.named[t] = ee(e.named[t]));
532
+ });
533
+ }
534
+ function Te(e, t, n, a, s, l) {
535
+ const { messages: o, onWarn: c, messageResolver: r, localeFallbacker: i } = e, f = i(e, a, n);
536
+ let N = {}, m, g = null, D = n, O = null;
537
+ const v = "translate";
538
+ for (let T = 0; T < f.length; T++) {
539
+ if (m = O = f[T], process.env.NODE_ENV !== "production" && n !== m && Z(s, t) && c(K(R.FALLBACK_TO_TRANSLATE, {
540
+ key: t,
541
+ target: m
542
+ })), process.env.NODE_ENV !== "production" && n !== m) {
543
+ const p = e.__v_emitter;
544
+ p && p.emit("fallback", {
545
+ type: v,
546
+ key: t,
547
+ from: D,
548
+ to: O,
549
+ groupId: `${v}:${t}`
550
+ });
551
+ }
552
+ N = o[m] || {};
553
+ let _ = null, A, d;
554
+ if (process.env.NODE_ENV !== "production" && B && (_ = window.performance.now(), A = "intlify-message-resolve-start", d = "intlify-message-resolve-end", w && w(A)), (g = r(N, t)) === null && (g = N[t]), process.env.NODE_ENV !== "production" && B) {
555
+ const p = window.performance.now(), E = e.__v_emitter;
556
+ E && _ && g && E.emit("message-resolve", {
557
+ type: "message-resolve",
558
+ key: t,
559
+ message: g,
560
+ time: p - _,
561
+ groupId: `${v}:${t}`
562
+ }), A && d && w && x && (w(d), x("intlify message resolve", A, d));
563
+ }
564
+ if (u(g) || h(g))
565
+ break;
566
+ const F = X(
567
+ e,
568
+ // eslint-disable-line @typescript-eslint/no-explicit-any
569
+ t,
570
+ m,
571
+ l,
572
+ v
573
+ );
574
+ F !== t && (g = F), D = O;
575
+ }
576
+ return [g, m, N];
577
+ }
578
+ function Ee(e, t, n, a, s, l) {
579
+ const { messageCompiler: o, warnHtmlMessage: c } = e;
580
+ if (W(a)) {
581
+ const m = a;
582
+ return m.locale = m.locale || n, m.key = m.key || t, m;
583
+ }
584
+ if (o == null) {
585
+ const m = () => a;
586
+ return m.locale = n, m.key = t, m;
587
+ }
588
+ let r = null, i, f;
589
+ process.env.NODE_ENV !== "production" && B && (r = window.performance.now(), i = "intlify-message-compilation-start", f = "intlify-message-compilation-end", w && w(i));
590
+ const N = o(a, st(e, n, s, a, c, l));
591
+ if (process.env.NODE_ENV !== "production" && B) {
592
+ const m = window.performance.now(), g = e.__v_emitter;
593
+ g && r && g.emit("message-compilation", {
594
+ type: "message-compilation",
595
+ message: a,
596
+ time: m - r,
597
+ groupId: `translate:${t}`
598
+ }), i && f && w && x && (w(f), x("intlify message compilation", i, f));
599
+ }
600
+ return N.locale = n, N.key = t, N.source = a, N;
601
+ }
602
+ function at(e, t, n) {
603
+ let a = null, s, l;
604
+ process.env.NODE_ENV !== "production" && B && (a = window.performance.now(), s = "intlify-message-evaluation-start", l = "intlify-message-evaluation-end", w && w(s));
605
+ const o = t(n);
606
+ if (process.env.NODE_ENV !== "production" && B) {
607
+ const c = window.performance.now(), r = e.__v_emitter;
608
+ r && a && r.emit("message-evaluation", {
609
+ type: "message-evaluation",
610
+ value: o,
611
+ time: c - a,
612
+ groupId: `translate:${t.key}`
613
+ }), s && l && w && x && (w(l), x("intlify message evaluation", s, l));
614
+ }
615
+ return o;
616
+ }
617
+ function rt(...e) {
618
+ const [t, n, a] = e, s = {};
619
+ if (!u(t) && !L(t) && !W(t))
620
+ throw P(S.INVALID_ARGUMENT);
621
+ const l = L(t) ? String(t) : (W(t), t);
622
+ return L(n) ? s.plural = n : u(n) ? s.default = n : b(n) && !H(n) ? s.named = n : $(n) && (s.list = n), L(a) ? s.plural = a : u(a) ? s.default = a : b(a) && Y(s, a), [l, s];
623
+ }
624
+ function st(e, t, n, a, s, l) {
625
+ return {
626
+ warnHtmlMessage: s,
627
+ onError: (o) => {
628
+ if (l && l(o), process.env.NODE_ENV !== "production") {
629
+ const c = `Message compilation error: ${o.message}`, r = o.location && Oe(a, o.location.start.offset, o.location.end.offset), i = e.__v_emitter;
630
+ i && i.emit("compile-error", {
631
+ message: a,
632
+ error: o.message,
633
+ start: o.location && o.location.start.offset,
634
+ end: o.location && o.location.end.offset,
635
+ groupId: `translate:${n}`
636
+ }), console.error(r ? `${c}
637
+ ${r}` : c);
638
+ } else
639
+ throw o;
640
+ },
641
+ onCacheKey: (o) => De(t, n, o)
642
+ };
643
+ }
644
+ function lt(e, t, n, a) {
645
+ const { modifiers: s, pluralRules: l, messageResolver: o, fallbackLocale: c, fallbackWarn: r, missingWarn: i, fallbackContext: f } = e, m = {
646
+ locale: t,
647
+ modifiers: s,
648
+ pluralRules: l,
649
+ messages: (g) => {
650
+ let D = o(n, g);
651
+ if (D == null && f) {
652
+ const [, , O] = Te(f, g, t, c, r, i);
653
+ D = o(O, g);
654
+ }
655
+ if (u(D)) {
656
+ let O = !1;
657
+ const T = Ee(e, g, t, D, g, () => {
658
+ O = !0;
659
+ });
660
+ return O ? le : T;
661
+ } else
662
+ return W(D) ? D : le;
663
+ }
664
+ };
665
+ return e.processor && (m.processor = e.processor), a.list && (m.list = a.list), a.named && (m.named = a.named), L(a.plural) && (m.pluralIndex = a.plural), m;
666
+ }
667
+ const oe = typeof Intl < "u", pe = {
668
+ dateTimeFormat: oe && typeof Intl.DateTimeFormat < "u",
669
+ numberFormat: oe && typeof Intl.NumberFormat < "u"
670
+ };
671
+ function vt(e, ...t) {
672
+ const { datetimeFormats: n, unresolving: a, fallbackLocale: s, onWarn: l, localeFallbacker: o } = e, { __datetimeFormatters: c } = e;
673
+ if (process.env.NODE_ENV !== "production" && !pe.dateTimeFormat)
674
+ return l(K(R.CANNOT_FORMAT_DATE)), ue;
675
+ const [r, i, f, N] = it(...t), m = C(f.missingWarn) ? f.missingWarn : e.missingWarn, g = C(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, D = !!f.part, O = u(f.locale) ? f.locale : e.locale, v = o(
676
+ e,
677
+ // eslint-disable-line @typescript-eslint/no-explicit-any
678
+ s,
679
+ O
680
+ );
681
+ if (!u(r) || r === "")
682
+ return new Intl.DateTimeFormat(O, N).format(i);
683
+ let T = {}, _, A = null, d = O, F = null;
684
+ const p = "datetime format";
685
+ for (let y = 0; y < v.length; y++) {
686
+ if (_ = F = v[y], process.env.NODE_ENV !== "production" && O !== _ && Z(g, r) && l(K(R.FALLBACK_TO_DATE_FORMAT, {
687
+ key: r,
688
+ target: _
689
+ })), process.env.NODE_ENV !== "production" && O !== _) {
690
+ const k = e.__v_emitter;
691
+ k && k.emit("fallback", {
692
+ type: p,
693
+ key: r,
694
+ from: d,
695
+ to: F,
696
+ groupId: `${p}:${r}`
697
+ });
698
+ }
699
+ if (T = n[_] || {}, A = T[r], b(A))
700
+ break;
701
+ X(e, r, _, m, p), d = F;
702
+ }
703
+ if (!b(A) || !u(_))
704
+ return a ? z : r;
705
+ let E = `${_}__${r}`;
706
+ H(N) || (E = `${E}__${JSON.stringify(N)}`);
707
+ let I = c.get(E);
708
+ return I || (I = new Intl.DateTimeFormat(_, Y({}, A, N)), c.set(E, I)), D ? I.formatToParts(i) : I.format(i);
709
+ }
710
+ const ot = [
711
+ "localeMatcher",
712
+ "weekday",
713
+ "era",
714
+ "year",
715
+ "month",
716
+ "day",
717
+ "hour",
718
+ "minute",
719
+ "second",
720
+ "timeZoneName",
721
+ "formatMatcher",
722
+ "hour12",
723
+ "timeZone",
724
+ "dateStyle",
725
+ "timeStyle",
726
+ "calendar",
727
+ "dayPeriod",
728
+ "numberingSystem",
729
+ "hourCycle",
730
+ "fractionalSecondDigits"
731
+ ];
732
+ function it(...e) {
733
+ const [t, n, a, s] = e, l = {};
734
+ let o = {}, c;
735
+ if (u(t)) {
736
+ const r = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
737
+ if (!r)
738
+ throw P(S.INVALID_ISO_DATE_ARGUMENT);
739
+ const i = r[3] ? r[3].trim().startsWith("T") ? `${r[1].trim()}${r[3].trim()}` : `${r[1].trim()}T${r[3].trim()}` : r[1].trim();
740
+ c = new Date(i);
741
+ try {
742
+ c.toISOString();
743
+ } catch {
744
+ throw P(S.INVALID_ISO_DATE_ARGUMENT);
745
+ }
746
+ } else if (Fe(t)) {
747
+ if (isNaN(t.getTime()))
748
+ throw P(S.INVALID_DATE_ARGUMENT);
749
+ c = t;
750
+ } else if (L(t))
751
+ c = t;
752
+ else
753
+ throw P(S.INVALID_ARGUMENT);
754
+ return u(n) ? l.key = n : b(n) && Object.keys(n).forEach((r) => {
755
+ ot.includes(r) ? o[r] = n[r] : l[r] = n[r];
756
+ }), u(a) ? l.locale = a : b(a) && (o = a), b(s) && (o = s), [l.key || "", c, l, o];
757
+ }
758
+ function It(e, t, n) {
759
+ const a = e;
760
+ for (const s in n) {
761
+ const l = `${t}__${s}`;
762
+ a.__datetimeFormatters.has(l) && a.__datetimeFormatters.delete(l);
763
+ }
764
+ }
765
+ function Mt(e, ...t) {
766
+ const { numberFormats: n, unresolving: a, fallbackLocale: s, onWarn: l, localeFallbacker: o } = e, { __numberFormatters: c } = e;
767
+ if (process.env.NODE_ENV !== "production" && !pe.numberFormat)
768
+ return l(K(R.CANNOT_FORMAT_NUMBER)), ue;
769
+ const [r, i, f, N] = mt(...t), m = C(f.missingWarn) ? f.missingWarn : e.missingWarn, g = C(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, D = !!f.part, O = u(f.locale) ? f.locale : e.locale, v = o(
770
+ e,
771
+ // eslint-disable-line @typescript-eslint/no-explicit-any
772
+ s,
773
+ O
774
+ );
775
+ if (!u(r) || r === "")
776
+ return new Intl.NumberFormat(O, N).format(i);
777
+ let T = {}, _, A = null, d = O, F = null;
778
+ const p = "number format";
779
+ for (let y = 0; y < v.length; y++) {
780
+ if (_ = F = v[y], process.env.NODE_ENV !== "production" && O !== _ && Z(g, r) && l(K(R.FALLBACK_TO_NUMBER_FORMAT, {
781
+ key: r,
782
+ target: _
783
+ })), process.env.NODE_ENV !== "production" && O !== _) {
784
+ const k = e.__v_emitter;
785
+ k && k.emit("fallback", {
786
+ type: p,
787
+ key: r,
788
+ from: d,
789
+ to: F,
790
+ groupId: `${p}:${r}`
791
+ });
792
+ }
793
+ if (T = n[_] || {}, A = T[r], b(A))
794
+ break;
795
+ X(e, r, _, m, p), d = F;
796
+ }
797
+ if (!b(A) || !u(_))
798
+ return a ? z : r;
799
+ let E = `${_}__${r}`;
800
+ H(N) || (E = `${E}__${JSON.stringify(N)}`);
801
+ let I = c.get(E);
802
+ return I || (I = new Intl.NumberFormat(_, Y({}, A, N)), c.set(E, I)), D ? I.formatToParts(i) : I.format(i);
803
+ }
804
+ const ct = [
805
+ "localeMatcher",
806
+ "style",
807
+ "currency",
808
+ "currencyDisplay",
809
+ "currencySign",
810
+ "useGrouping",
811
+ "minimumIntegerDigits",
812
+ "minimumFractionDigits",
813
+ "maximumFractionDigits",
814
+ "minimumSignificantDigits",
815
+ "maximumSignificantDigits",
816
+ "compactDisplay",
817
+ "notation",
818
+ "signDisplay",
819
+ "unit",
820
+ "unitDisplay",
821
+ "roundingMode",
822
+ "roundingPriority",
823
+ "roundingIncrement",
824
+ "trailingZeroDisplay"
825
+ ];
826
+ function mt(...e) {
827
+ const [t, n, a, s] = e, l = {};
828
+ let o = {};
829
+ if (!L(t))
830
+ throw P(S.INVALID_ARGUMENT);
831
+ const c = t;
832
+ return u(n) ? l.key = n : b(n) && Object.keys(n).forEach((r) => {
833
+ ct.includes(r) ? o[r] = n[r] : l[r] = n[r];
834
+ }), u(a) ? l.locale = a : b(a) && (o = a), b(s) && (o = s), [l.key || "", c, l, o];
835
+ }
836
+ function ht(e, t, n) {
837
+ const a = e;
838
+ for (const s in n) {
839
+ const l = `${t}__${s}`;
840
+ a.__numberFormatters.has(l) && a.__numberFormatters.delete(l);
841
+ }
842
+ }
843
+ typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Ae().__INTLIFY_PROD_DEVTOOLS__ = !1);
844
+ export {
845
+ Me as CompileErrorCodes,
846
+ S as CoreErrorCodes,
847
+ R as CoreWarnCodes,
848
+ ot as DATETIME_FORMAT_OPTIONS_KEYS,
849
+ me as DEFAULT_LOCALE,
850
+ Se as DEFAULT_MESSAGE_DATA_TYPE,
851
+ ue as MISSING_RESOLVE_VALUE,
852
+ z as NOT_REOSLVED,
853
+ ct as NUMBER_FORMAT_OPTIONS_KEYS,
854
+ Xe as VERSION,
855
+ It as clearDateTimeFormat,
856
+ ht as clearNumberFormat,
857
+ Ie as createCompileError,
858
+ Dt as createCoreContext,
859
+ P as createCoreError,
860
+ xe as createMessageContext,
861
+ vt as datetime,
862
+ Nt as fallbackWithLocaleChain,
863
+ He as fallbackWithSimple,
864
+ qe as getAdditionalMeta,
865
+ Ot as getFallbackContext,
866
+ K as getWarnMessage,
867
+ X as handleMissing,
868
+ Ke as initI18nDevTools,
869
+ W as isMessageFunction,
870
+ Z as isTranslateFallbackWarn,
871
+ et as isTranslateMissingWarn,
872
+ Mt as number,
873
+ ye as parse,
874
+ it as parseDateTimeArgs,
875
+ mt as parseNumberArgs,
876
+ rt as parseTranslateArgs,
877
+ Et as registerLocaleFallbacker,
878
+ Tt as registerMessageResolver,
879
+ dt as resolveValue,
880
+ ke as resolveWithKeyValue,
881
+ pt as setAdditionalMeta,
882
+ gt as setDevToolsHook,
883
+ At as setFallbackContext,
884
+ bt as translate,
885
+ Ge as translateDevTools,
886
+ Ft as updateFallbackLocale
887
+ };